]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_gdi_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_buffer swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_double swig_types[2]
2469 #define SWIGTYPE_p_form_ops_t swig_types[3]
2470 #define SWIGTYPE_p_int swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_wxANIHandler swig_types[8]
2475 #define SWIGTYPE_p_wxAcceleratorTable swig_types[9]
2476 #define SWIGTYPE_p_wxActivateEvent swig_types[10]
2477 #define SWIGTYPE_p_wxAlphaPixelData swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[12]
2479 #define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[13]
2480 #define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481 #define SWIGTYPE_p_wxBitmap swig_types[15]
2482 #define SWIGTYPE_p_wxBoxSizer swig_types[16]
2483 #define SWIGTYPE_p_wxBrush swig_types[17]
2484 #define SWIGTYPE_p_wxBrushList swig_types[18]
2485 #define SWIGTYPE_p_wxBufferedDC swig_types[19]
2486 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[20]
2487 #define SWIGTYPE_p_wxCURHandler swig_types[21]
2488 #define SWIGTYPE_p_wxChar swig_types[22]
2489 #define SWIGTYPE_p_wxChildFocusEvent swig_types[23]
2490 #define SWIGTYPE_p_wxClientDC swig_types[24]
2491 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[25]
2492 #define SWIGTYPE_p_wxCloseEvent swig_types[26]
2493 #define SWIGTYPE_p_wxColor swig_types[27]
2494 #define SWIGTYPE_p_wxColour swig_types[28]
2495 #define SWIGTYPE_p_wxColourDatabase swig_types[29]
2496 #define SWIGTYPE_p_wxCommandEvent swig_types[30]
2497 #define SWIGTYPE_p_wxContextMenuEvent swig_types[31]
2498 #define SWIGTYPE_p_wxControl swig_types[32]
2499 #define SWIGTYPE_p_wxControlWithItems swig_types[33]
2500 #define SWIGTYPE_p_wxCursor swig_types[34]
2501 #define SWIGTYPE_p_wxDC swig_types[35]
2502 #define SWIGTYPE_p_wxDCOverlay swig_types[36]
2503 #define SWIGTYPE_p_wxDash swig_types[37]
2504 #define SWIGTYPE_p_wxDateEvent swig_types[38]
2505 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[39]
2506 #define SWIGTYPE_p_wxDropFilesEvent swig_types[40]
2507 #define SWIGTYPE_p_wxDuplexMode swig_types[41]
2508 #define SWIGTYPE_p_wxEffects swig_types[42]
2509 #define SWIGTYPE_p_wxEncodingConverter swig_types[43]
2510 #define SWIGTYPE_p_wxEraseEvent swig_types[44]
2511 #define SWIGTYPE_p_wxEvent swig_types[45]
2512 #define SWIGTYPE_p_wxEvtHandler swig_types[46]
2513 #define SWIGTYPE_p_wxFSFile swig_types[47]
2514 #define SWIGTYPE_p_wxFileSystem swig_types[48]
2515 #define SWIGTYPE_p_wxFlexGridSizer swig_types[49]
2516 #define SWIGTYPE_p_wxFocusEvent swig_types[50]
2517 #define SWIGTYPE_p_wxFont swig_types[51]
2518 #define SWIGTYPE_p_wxFontList swig_types[52]
2519 #define SWIGTYPE_p_wxFontMapper swig_types[53]
2520 #define SWIGTYPE_p_wxGBSizerItem swig_types[54]
2521 #define SWIGTYPE_p_wxGCDC swig_types[55]
2522 #define SWIGTYPE_p_wxGDIObjListBase swig_types[56]
2523 #define SWIGTYPE_p_wxGDIObject swig_types[57]
2524 #define SWIGTYPE_p_wxGIFHandler swig_types[58]
2525 #define SWIGTYPE_p_wxGraphicsContext swig_types[59]
2526 #define SWIGTYPE_p_wxGraphicsPath swig_types[60]
2527 #define SWIGTYPE_p_wxGridBagSizer swig_types[61]
2528 #define SWIGTYPE_p_wxGridSizer swig_types[62]
2529 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[63]
2530 #define SWIGTYPE_p_wxICOHandler swig_types[64]
2531 #define SWIGTYPE_p_wxIcon swig_types[65]
2532 #define SWIGTYPE_p_wxIconBundle swig_types[66]
2533 #define SWIGTYPE_p_wxIconLocation swig_types[67]
2534 #define SWIGTYPE_p_wxIconizeEvent swig_types[68]
2535 #define SWIGTYPE_p_wxIdleEvent swig_types[69]
2536 #define SWIGTYPE_p_wxImage swig_types[70]
2537 #define SWIGTYPE_p_wxImageHandler swig_types[71]
2538 #define SWIGTYPE_p_wxImageList swig_types[72]
2539 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[73]
2540 #define SWIGTYPE_p_wxInitDialogEvent swig_types[74]
2541 #define SWIGTYPE_p_wxJPEGHandler swig_types[75]
2542 #define SWIGTYPE_p_wxKeyEvent swig_types[76]
2543 #define SWIGTYPE_p_wxLanguageInfo swig_types[77]
2544 #define SWIGTYPE_p_wxLayoutConstraints swig_types[78]
2545 #define SWIGTYPE_p_wxLocale swig_types[79]
2546 #define SWIGTYPE_p_wxMask swig_types[80]
2547 #define SWIGTYPE_p_wxMaximizeEvent swig_types[81]
2548 #define SWIGTYPE_p_wxMemoryDC swig_types[82]
2549 #define SWIGTYPE_p_wxMenu swig_types[83]
2550 #define SWIGTYPE_p_wxMenuBar swig_types[84]
2551 #define SWIGTYPE_p_wxMenuEvent swig_types[85]
2552 #define SWIGTYPE_p_wxMenuItem swig_types[86]
2553 #define SWIGTYPE_p_wxMetaFile swig_types[87]
2554 #define SWIGTYPE_p_wxMetaFileDC swig_types[88]
2555 #define SWIGTYPE_p_wxMirrorDC swig_types[89]
2556 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[90]
2557 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[91]
2558 #define SWIGTYPE_p_wxMouseEvent swig_types[92]
2559 #define SWIGTYPE_p_wxMoveEvent swig_types[93]
2560 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[94]
2561 #define SWIGTYPE_p_wxNativeFontInfo swig_types[95]
2562 #define SWIGTYPE_p_wxNativePixelData swig_types[96]
2563 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[97]
2564 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[98]
2565 #define SWIGTYPE_p_wxNcPaintEvent swig_types[99]
2566 #define SWIGTYPE_p_wxNotifyEvent swig_types[100]
2567 #define SWIGTYPE_p_wxObject swig_types[101]
2568 #define SWIGTYPE_p_wxOverlay swig_types[102]
2569 #define SWIGTYPE_p_wxPCXHandler swig_types[103]
2570 #define SWIGTYPE_p_wxPNGHandler swig_types[104]
2571 #define SWIGTYPE_p_wxPNMHandler swig_types[105]
2572 #define SWIGTYPE_p_wxPaintDC swig_types[106]
2573 #define SWIGTYPE_p_wxPaintEvent swig_types[107]
2574 #define SWIGTYPE_p_wxPalette swig_types[108]
2575 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[109]
2576 #define SWIGTYPE_p_wxPaperSize swig_types[110]
2577 #define SWIGTYPE_p_wxPen swig_types[111]
2578 #define SWIGTYPE_p_wxPenList swig_types[112]
2579 #define SWIGTYPE_p_wxPixelDataBase swig_types[113]
2580 #define SWIGTYPE_p_wxPoint swig_types[114]
2581 #define SWIGTYPE_p_wxPoint2D swig_types[115]
2582 #define SWIGTYPE_p_wxPostScriptDC swig_types[116]
2583 #define SWIGTYPE_p_wxPrintData swig_types[117]
2584 #define SWIGTYPE_p_wxPrinterDC swig_types[118]
2585 #define SWIGTYPE_p_wxPseudoDC swig_types[119]
2586 #define SWIGTYPE_p_wxPyApp swig_types[120]
2587 #define SWIGTYPE_p_wxPyCommandEvent swig_types[121]
2588 #define SWIGTYPE_p_wxPyEvent swig_types[122]
2589 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[123]
2590 #define SWIGTYPE_p_wxPyImageHandler swig_types[124]
2591 #define SWIGTYPE_p_wxPyLocale swig_types[125]
2592 #define SWIGTYPE_p_wxPySizer swig_types[126]
2593 #define SWIGTYPE_p_wxPyValidator swig_types[127]
2594 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[128]
2595 #define SWIGTYPE_p_wxRect swig_types[129]
2596 #define SWIGTYPE_p_wxRegion swig_types[130]
2597 #define SWIGTYPE_p_wxRegionIterator swig_types[131]
2598 #define SWIGTYPE_p_wxRendererNative swig_types[132]
2599 #define SWIGTYPE_p_wxRendererVersion swig_types[133]
2600 #define SWIGTYPE_p_wxScreenDC swig_types[134]
2601 #define SWIGTYPE_p_wxScrollEvent swig_types[135]
2602 #define SWIGTYPE_p_wxScrollWinEvent swig_types[136]
2603 #define SWIGTYPE_p_wxSetCursorEvent swig_types[137]
2604 #define SWIGTYPE_p_wxShowEvent swig_types[138]
2605 #define SWIGTYPE_p_wxSize swig_types[139]
2606 #define SWIGTYPE_p_wxSizeEvent swig_types[140]
2607 #define SWIGTYPE_p_wxSizer swig_types[141]
2608 #define SWIGTYPE_p_wxSizerItem swig_types[142]
2609 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[143]
2610 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[144]
2611 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[145]
2612 #define SWIGTYPE_p_wxStockGDI swig_types[146]
2613 #define SWIGTYPE_p_wxString swig_types[147]
2614 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[148]
2615 #define SWIGTYPE_p_wxTIFFHandler swig_types[149]
2616 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[150]
2617 #define SWIGTYPE_p_wxValidator swig_types[151]
2618 #define SWIGTYPE_p_wxWindow swig_types[152]
2619 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[153]
2620 #define SWIGTYPE_p_wxWindowDC swig_types[154]
2621 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[155]
2622 #define SWIGTYPE_p_wxXPMHandler swig_types[156]
2623 static swig_type_info *swig_types[158];
2624 static swig_module_info swig_module = {swig_types, 157, 0, 0, 0, 0};
2625 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2626 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2627
2628 /* -------- TYPES TABLE (END) -------- */
2629
2630 #if (PY_VERSION_HEX <= 0x02000000)
2631 # if !defined(SWIG_PYTHON_CLASSIC)
2632 # error "This python version requires to use swig with the '-classic' option"
2633 # endif
2634 #endif
2635 #if (PY_VERSION_HEX <= 0x02020000)
2636 # error "This python version requires to use swig with the '-nomodern' option"
2637 #endif
2638 #if (PY_VERSION_HEX <= 0x02020000)
2639 # error "This python version requires to use swig with the '-nomodernargs' option"
2640 #endif
2641 #ifndef METH_O
2642 # error "This python version requires to use swig with the '-nofastunpack' option"
2643 #endif
2644
2645 /*-----------------------------------------------
2646 @(target):= _gdi_.so
2647 ------------------------------------------------*/
2648 #define SWIG_init init_gdi_
2649
2650 #define SWIG_name "_gdi_"
2651
2652 #define SWIGVERSION 0x010329
2653
2654
2655 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2656 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2657
2658
2659 #include <stdexcept>
2660
2661
2662 namespace swig {
2663 class PyObject_ptr {
2664 protected:
2665 PyObject *_obj;
2666
2667 public:
2668 PyObject_ptr() :_obj(0)
2669 {
2670 }
2671
2672 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2673 {
2674 Py_XINCREF(_obj);
2675 }
2676
2677 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2678 {
2679 if (initial_ref) Py_XINCREF(_obj);
2680 }
2681
2682 PyObject_ptr & operator=(const PyObject_ptr& item)
2683 {
2684 Py_XINCREF(item._obj);
2685 Py_XDECREF(_obj);
2686 _obj = item._obj;
2687 return *this;
2688 }
2689
2690 ~PyObject_ptr()
2691 {
2692 Py_XDECREF(_obj);
2693 }
2694
2695 operator PyObject *() const
2696 {
2697 return _obj;
2698 }
2699
2700 PyObject *operator->() const
2701 {
2702 return _obj;
2703 }
2704 };
2705 }
2706
2707
2708 namespace swig {
2709 struct PyObject_var : PyObject_ptr {
2710 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2711
2712 PyObject_var & operator = (PyObject* obj)
2713 {
2714 Py_XDECREF(_obj);
2715 _obj = obj;
2716 return *this;
2717 }
2718 };
2719 }
2720
2721
2722 #include "wx/wxPython/wxPython.h"
2723 #include "wx/wxPython/pyclasses.h"
2724
2725
2726 static const wxString wxPyEmptyString(wxEmptyString);
2727
2728 #define SWIG_From_long PyInt_FromLong
2729
2730
2731 SWIGINTERNINLINE PyObject *
2732 SWIG_From_int (int value)
2733 {
2734 return SWIG_From_long (value);
2735 }
2736
2737
2738 #include <limits.h>
2739 #ifndef LLONG_MIN
2740 # define LLONG_MIN LONG_LONG_MIN
2741 #endif
2742 #ifndef LLONG_MAX
2743 # define LLONG_MAX LONG_LONG_MAX
2744 #endif
2745 #ifndef ULLONG_MAX
2746 # define ULLONG_MAX ULONG_LONG_MAX
2747 #endif
2748
2749
2750 SWIGINTERN int
2751 SWIG_AsVal_long (PyObject* obj, long* val)
2752 {
2753 if (PyNumber_Check(obj)) {
2754 if (val) *val = PyInt_AsLong(obj);
2755 return SWIG_OK;
2756 }
2757 return SWIG_TypeError;
2758 }
2759
2760
2761 SWIGINTERN int
2762 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2763 {
2764 long v = 0;
2765 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2766 return SWIG_TypeError;
2767 }
2768 else if (val)
2769 *val = (unsigned long)v;
2770 return SWIG_OK;
2771 }
2772
2773
2774 SWIGINTERN int
2775 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2776 {
2777 unsigned long v;
2778 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2779 if (SWIG_IsOK(res)) {
2780 if ((v > UCHAR_MAX)) {
2781 return SWIG_OverflowError;
2782 } else {
2783 if (val) *val = static_cast< unsigned char >(v);
2784 }
2785 }
2786 return res;
2787 }
2788
2789
2790 SWIGINTERNINLINE PyObject*
2791 SWIG_From_unsigned_SS_long (unsigned long value)
2792 {
2793 return (value > LONG_MAX) ?
2794 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2795 }
2796
2797
2798 SWIGINTERNINLINE PyObject *
2799 SWIG_From_unsigned_SS_char (unsigned char value)
2800 {
2801 return SWIG_From_unsigned_SS_long (value);
2802 }
2803
2804 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2805 wxColour temp, *obj = &temp;
2806 if ( other == Py_None ) return false;
2807 if ( ! wxColour_helper(other, &obj) ) {
2808 PyErr_Clear();
2809 return false;
2810 }
2811 return self->operator==(*obj);
2812 }
2813 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2814 wxColour temp, *obj = &temp;
2815 if ( other == Py_None ) return true;
2816 if ( ! wxColour_helper(other, &obj)) {
2817 PyErr_Clear();
2818 return true;
2819 }
2820 return self->operator!=(*obj);
2821 }
2822
2823 SWIGINTERN int
2824 SWIG_AsVal_bool (PyObject *obj, bool *val)
2825 {
2826 if (obj == Py_True) {
2827 if (val) *val = true;
2828 return SWIG_OK;
2829 } else if (obj == Py_False) {
2830 if (val) *val = false;
2831 return SWIG_OK;
2832 } else {
2833 long v = 0;
2834 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2835 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2836 return res;
2837 }
2838 }
2839
2840 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2841 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2842 int red = -1;
2843 int green = -1;
2844 int blue = -1;
2845 int alpha = wxALPHA_OPAQUE;
2846 if (self->IsOk()) {
2847 red = self->Red();
2848 green = self->Green();
2849 blue = self->Blue();
2850 alpha = self->Alpha();
2851 }
2852 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2853 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2854 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2855 if (includeAlpha)
2856 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2857 return rv;
2858 }
2859 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2860 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2861 }
2862
2863 SWIGINTERN int
2864 SWIG_AsVal_int (PyObject * obj, int *val)
2865 {
2866 long v;
2867 int res = SWIG_AsVal_long (obj, &v);
2868 if (SWIG_IsOK(res)) {
2869 if ((v < INT_MIN || v > INT_MAX)) {
2870 return SWIG_OverflowError;
2871 } else {
2872 if (val) *val = static_cast< int >(v);
2873 }
2874 }
2875 return res;
2876 }
2877
2878 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2879 wxDash* dashes;
2880 int count = self->GetDashes(&dashes);
2881 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2882 PyObject* retval = PyList_New(0);
2883 for (int x=0; x<count; x++) {
2884 PyObject* pyint = PyInt_FromLong(dashes[x]);
2885 PyList_Append(retval, pyint);
2886 Py_DECREF(pyint);
2887 }
2888 wxPyEndBlockThreads(blocked);
2889 return retval;
2890 }
2891 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2892 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2893 int size = PyList_Size(pyDashes);
2894 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2895
2896 // black magic warning! The array of wxDashes needs to exist as
2897 // long as the pen does because wxPen does not copy the array. So
2898 // stick a copy in a Python string object and attach it to _self,
2899 // and then call SetDashes with a pointer to that array. Then
2900 // when the Python pen object is destroyed the array will be
2901 // cleaned up too.
2902 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2903 PyObject_SetAttrString(_self, "_dashes", strDashes);
2904
2905 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2906 delete [] dashes;
2907 Py_DECREF(strDashes);
2908 wxPyEndBlockThreads(blocked);
2909 }
2910 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2911 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2912
2913 SWIGINTERNINLINE PyObject *
2914 SWIG_From_short (short value)
2915 {
2916 return SWIG_From_long (value);
2917 }
2918
2919
2920 SWIGINTERN int
2921 SWIG_AsVal_short (PyObject * obj, short *val)
2922 {
2923 long v;
2924 int res = SWIG_AsVal_long (obj, &v);
2925 if (SWIG_IsOK(res)) {
2926 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2927 return SWIG_OverflowError;
2928 } else {
2929 if (val) *val = static_cast< short >(v);
2930 }
2931 }
2932 return res;
2933 }
2934
2935
2936 #include <wx/rawbmp.h>
2937
2938
2939 #include <wx/image.h>
2940
2941 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2942 char** cArray = NULL;
2943 int count;
2944
2945 if (!PyList_Check(listOfStrings)) {
2946 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2947 return NULL;
2948 }
2949 count = PyList_Size(listOfStrings);
2950 cArray = new char*[count];
2951
2952 for(int x=0; x<count; x++) {
2953 // TODO: Need some validation and error checking here
2954 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2955 }
2956 return cArray;
2957 }
2958
2959
2960 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2961 char** cArray = NULL;
2962 wxBitmap* bmp;
2963
2964 cArray = ConvertListOfStrings(listOfStrings);
2965 if (! cArray)
2966 return NULL;
2967 bmp = new wxBitmap(cArray);
2968 delete [] cArray;
2969 return bmp;
2970 }
2971 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2972 char* buf;
2973 Py_ssize_t length;
2974 PyString_AsStringAndSize(bits, &buf, &length);
2975 return new wxBitmap(buf, width, height, depth);
2976 }
2977 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2978 wxSize size(self->GetWidth(), self->GetHeight());
2979 return size;
2980 }
2981 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2982 wxMask *mask = new wxMask(*self, colour);
2983 self->SetMask(mask);
2984 }
2985 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2986 self->SetWidth(size.x);
2987 self->SetHeight(size.y);
2988 }
2989 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2990 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2991
2992 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2993 // appears to me that the other platforms are already doing it, so I'll just
2994 // automatically do it for wxMSW here.
2995 #ifdef __WXMSW__
2996 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2997 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2998 #else
2999 #define wxPy_premultiply(p, a) (p)
3000 #define wxPy_unpremultiply(p, a) (p)
3001 #endif
3002
3003
3004 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3005 buffer data, int DATASIZE,
3006 buffer alpha, int ALPHASIZE)
3007 {
3008 if (DATASIZE != width*height*3) {
3009 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3010 return NULL;
3011 }
3012
3013 if (ALPHASIZE != width*height) {
3014 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3015 return NULL;
3016 }
3017
3018 wxBitmap* bmp = new wxBitmap(width, height, 32);
3019 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3020 if (! pixData) {
3021 // raise an exception...
3022 wxPyErr_SetString(PyExc_RuntimeError,
3023 "Failed to gain raw access to bitmap data.");
3024 return NULL;
3025 }
3026
3027 pixData.UseAlpha();
3028 wxAlphaPixelData::Iterator p(pixData);
3029 for (int y=0; y<height; y++) {
3030 wxAlphaPixelData::Iterator rowStart = p;
3031 for (int x=0; x<width; x++) {
3032 byte a = *(alpha++);
3033 p.Red() = wxPy_premultiply(*(data++), a);
3034 p.Green() = wxPy_premultiply(*(data++), a);
3035 p.Blue() = wxPy_premultiply(*(data++), a);
3036 p.Alpha() = a;
3037 ++p;
3038 }
3039 p = rowStart;
3040 p.OffsetY(pixData, 1);
3041 }
3042 return bmp;
3043 }
3044
3045 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3046 {
3047 if (DATASIZE != width*height*3) {
3048 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3049 return NULL;
3050 }
3051
3052 wxBitmap* bmp = new wxBitmap(width, height, 24);
3053 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3054 if (! pixData) {
3055 // raise an exception...
3056 wxPyErr_SetString(PyExc_RuntimeError,
3057 "Failed to gain raw access to bitmap data.");
3058 return NULL;
3059 }
3060
3061 wxNativePixelData::Iterator p(pixData);
3062 for (int y=0; y<height; y++) {
3063 wxNativePixelData::Iterator rowStart = p;
3064 for (int x=0; x<width; x++) {
3065 p.Red() = *(data++);
3066 p.Green() = *(data++);
3067 p.Blue() = *(data++);
3068 ++p;
3069 }
3070 p = rowStart;
3071 p.OffsetY(pixData, 1);
3072 }
3073 return bmp;
3074 }
3075
3076
3077 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3078 {
3079 if (DATASIZE != width*height*4) {
3080 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3081 return NULL;
3082 }
3083
3084 wxBitmap* bmp = new wxBitmap(width, height, 32);
3085 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3086 if (! pixData) {
3087 // raise an exception...
3088 wxPyErr_SetString(PyExc_RuntimeError,
3089 "Failed to gain raw access to bitmap data.");
3090 return NULL;
3091 }
3092
3093 pixData.UseAlpha();
3094 wxAlphaPixelData::Iterator p(pixData);
3095 for (int y=0; y<height; y++) {
3096 wxAlphaPixelData::Iterator rowStart = p;
3097 for (int x=0; x<width; x++) {
3098 byte a = data[3];
3099 p.Red() = wxPy_premultiply(*(data++), a);
3100 p.Green() = wxPy_premultiply(*(data++), a);
3101 p.Blue() = wxPy_premultiply(*(data++), a);
3102 p.Alpha() = a; data++;
3103 ++p;
3104 }
3105 p = rowStart;
3106 p.OffsetY(pixData, 1);
3107 }
3108 return bmp;
3109 }
3110
3111
3112 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3113
3114 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3115 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3116 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3117 self->Red() = red;
3118 self->Green() = green;
3119 self->Blue() = blue;
3120 }
3121 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3122 PyObject* rv = PyTuple_New(3);
3123 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3124 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3125 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3126 return rv;
3127 }
3128
3129 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3130
3131 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3132 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3133 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3134 self->Red() = wxPy_premultiply(red, alpha);
3135 self->Green() = wxPy_premultiply(green, alpha);
3136 self->Blue() = wxPy_premultiply(blue, alpha);
3137 self->Alpha() = alpha;
3138 }
3139 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3140 PyObject* rv = PyTuple_New(4);
3141 int red = self->Red();
3142 int green = self->Green();
3143 int blue = self->Blue();
3144 int alpha = self->Alpha();
3145
3146 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3147 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3148 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3149 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3150 return rv;
3151 }
3152 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3153 if ( !colour.IsOk() )
3154 return new wxMask(bitmap, *wxBLACK);
3155 else
3156 return new wxMask(bitmap, colour);
3157 }
3158
3159 #include <wx/iconbndl.h>
3160
3161 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3162 wxIcon* icon = new wxIcon();
3163 icon->CopyFromBitmap(bmp);
3164 return icon;
3165 }
3166 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3167 char** cArray = NULL;
3168 wxIcon* icon;
3169
3170 cArray = ConvertListOfStrings(listOfStrings);
3171 if (! cArray)
3172 return NULL;
3173 icon = new wxIcon(cArray);
3174 delete [] cArray;
3175 return icon;
3176 }
3177 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3178
3179
3180
3181 return new wxIconLocation(*filename);
3182
3183 }
3184 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3185
3186
3187
3188 // do nothing
3189
3190 }
3191 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3192
3193
3194
3195 return -1;
3196
3197 }
3198 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3199 #ifdef __WXGTK__
3200 wxImage img(cursorName, type);
3201 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3202 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3203 return new wxCursor(img);
3204 #else
3205 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3206 #endif
3207 }
3208
3209
3210 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3211 (*self) ++;
3212 }
3213 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3214 return self->operator bool();
3215 }
3216
3217 #include <wx/fontutil.h>
3218 #include <wx/fontmap.h>
3219 #include <wx/fontenum.h>
3220
3221 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3222 return self->ToString();
3223 }
3224
3225 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3226 static wxNativeEncodingInfo info;
3227 if ( wxGetNativeFontEncoding(encoding, &info) )
3228 return &info;
3229 else
3230 return NULL;
3231 }
3232
3233
3234 SWIGINTERNINLINE PyObject *
3235 SWIG_From_size_t (size_t value)
3236 {
3237 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3238 }
3239
3240
3241 SWIGINTERNINLINE int
3242 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3243 {
3244 unsigned long v;
3245 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3246 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3247 return res;
3248 }
3249
3250 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3251 wxFontEncoding alt_enc;
3252 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3253 return PyInt_FromLong(alt_enc);
3254 else {
3255 Py_INCREF(Py_None);
3256 return Py_None;
3257 }
3258 }
3259 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3260 wxNativeFontInfo nfi;
3261 nfi.FromString(info);
3262 return new wxFont(nfi);
3263 }
3264 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3265 return wxFont::New(pointSize, family, flags, face, encoding);
3266 }
3267 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3268 return wxFontBase::New(pixelSize, family,
3269 style, weight, underlined,
3270 face, encoding);
3271 }
3272 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3273 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3274 }
3275 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3276 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3277
3278 class wxPyFontEnumerator : public wxFontEnumerator {
3279 public:
3280 wxPyFontEnumerator() {}
3281 ~wxPyFontEnumerator() {}
3282
3283 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3284 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3285
3286 PYPRIVATE;
3287 };
3288
3289 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3290 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3291
3292
3293 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3294 PyObject* ret;
3295 wxArrayString arr = wxFontEnumerator::GetEncodings();
3296 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3297 ret = wxArrayString2PyList_helper(arr);
3298 wxPyEndBlockThreads(blocked);
3299 return ret;
3300 }
3301 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3302 PyObject* ret;
3303 wxArrayString arr = wxFontEnumerator::GetFacenames();
3304 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3305 ret = wxArrayString2PyList_helper(arr);
3306 wxPyEndBlockThreads(blocked);
3307 return ret;
3308 }
3309
3310 #include <locale.h>
3311
3312 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3313 wxLocale* loc;
3314 if (language == -1)
3315 loc = new wxLocale();
3316 else
3317 loc = new wxLocale(language, flags);
3318 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3319 // for the floating point conversions and such to work right.
3320 #if PY_VERSION_HEX < 0x02040000
3321 setlocale(LC_NUMERIC, "C");
3322 #endif
3323 return loc;
3324 }
3325 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3326 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3327 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3328 // for the floating point conversions and such to work right.
3329 #if PY_VERSION_HEX < 0x02040000
3330 setlocale(LC_NUMERIC, "C");
3331 #endif
3332 return rc;
3333 }
3334 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3335 bool rc = self->Init(language, flags);
3336 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3337 // for the floating point conversions and such to work right.
3338 #if PY_VERSION_HEX < 0x02040000
3339 setlocale(LC_NUMERIC, "C");
3340 #endif
3341 return rc;
3342 }
3343
3344 class wxPyLocale : public wxLocale
3345 {
3346 public:
3347 wxPyLocale();
3348
3349 wxPyLocale(const wxChar *szName, // name (for messages)
3350 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3351 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3352 bool bLoadDefault = true, // preload wxstd.mo?
3353 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3354
3355 wxPyLocale(int language, // wxLanguage id or custom language
3356 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3357
3358 ~wxPyLocale();
3359
3360 virtual const wxChar *GetString(const wxChar *szOrigString,
3361 const wxChar *szDomain = NULL) const;
3362 virtual const wxChar *GetString(const wxChar *szOrigString,
3363 const wxChar *szOrigString2, size_t n,
3364 const wxChar *szDomain = NULL) const;
3365
3366 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3367 const wxChar *szDomain = NULL) const;
3368 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3369 const wxChar *szOrigString2, size_t n,
3370 const wxChar *szDomain = NULL) const;
3371
3372 PYPRIVATE;
3373 private:
3374 DECLARE_NO_COPY_CLASS(wxPyLocale)
3375 };
3376
3377 wxPyLocale::wxPyLocale() : wxLocale()
3378 {
3379 }
3380
3381 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3382 const wxChar *szShort, // dir prefix (for msg files)
3383 const wxChar *szLocale, // locale (for setlocale)
3384 bool bLoadDefault, // preload wxstd.mo?
3385 bool bConvertEncoding) // convert Win<->Unix if necessary?
3386 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3387 {
3388 }
3389
3390 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3391 int flags) : wxLocale(language, flags)
3392 {
3393 }
3394
3395 wxPyLocale::~wxPyLocale()
3396 {
3397 }
3398
3399 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3400 const wxChar *szDomain) const
3401 {
3402 wxChar *str = GetSingularString(szOrigString, szDomain);
3403 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3404 }
3405
3406 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3407 const wxChar *szOrigString2, size_t n,
3408 const wxChar *szDomain) const
3409 {
3410 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3411 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3412 }
3413
3414 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3415 const wxChar *szDomain) const
3416 {
3417 bool found;
3418 static wxString str;
3419 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.
3420 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3421 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3422 PyObject* param1 = wx2PyString(szOrigString);
3423 PyObject* param2 = wx2PyString(szDomain);
3424 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3425 Py_DECREF(param1);
3426 Py_DECREF(param2);
3427 if (ret) {
3428 str = Py2wxString(ret);
3429 Py_DECREF(ret);
3430 }
3431 }
3432 wxPyEndBlockThreads(blocked);
3433 return (found ? (wxChar*)str.c_str() : NULL);
3434 }
3435
3436 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3437 const wxChar *szOrigString2, size_t n,
3438 const wxChar *szDomain) const
3439 {
3440 bool found;
3441 static wxString str;
3442 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.
3443 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3444 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3445 PyObject* param1 = wx2PyString(szOrigString);
3446 PyObject* param2 = wx2PyString(szOrigString2);
3447 PyObject* param4 = wx2PyString(szDomain);
3448 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3449 Py_DECREF(param1);
3450 Py_DECREF(param2);
3451 Py_DECREF(param4);
3452 if( ret) {
3453 str = Py2wxString(ret);
3454 Py_DECREF(ret);
3455 }
3456 }
3457 wxPyEndBlockThreads(blocked);
3458 return (found ? (wxChar*)str.c_str() : NULL);
3459 }
3460
3461 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3462 wxPyLocale* loc;
3463 if (language == -1)
3464 loc = new wxPyLocale();
3465 else
3466 loc = new wxPyLocale(language, flags);
3467 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3468 // for the floating point conversions and such to work right.
3469 #if PY_VERSION_HEX < 0x02040000
3470 setlocale(LC_NUMERIC, "C");
3471 #endif
3472 return loc;
3473 }
3474
3475 #include "wx/wxPython/pydrawxxx.h"
3476
3477 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3478 wxColour col;
3479 self->GetPixel(x, y, &col);
3480 return col;
3481 }
3482 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3483 wxColour col;
3484 self->GetPixel(pt, &col);
3485 return col;
3486 }
3487
3488 SWIGINTERN int
3489 SWIG_AsVal_double (PyObject *obj, double* val)
3490 {
3491 if (PyNumber_Check(obj)) {
3492 if (val) *val = PyFloat_AsDouble(obj);
3493 return SWIG_OK;
3494 }
3495 return SWIG_TypeError;
3496 }
3497
3498 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3499 wxRect rv;
3500 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3501 return rv;
3502 }
3503 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3504 wxRect rect;
3505 self->GetClippingBox(rect);
3506 return rect;
3507 }
3508 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3509 wxArrayInt widths;
3510 self->GetPartialTextExtents(text, widths);
3511 return widths;
3512 }
3513
3514 #define SWIG_From_double PyFloat_FromDouble
3515
3516 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3517 self->SetLogicalOrigin(point.x, point.y);
3518 }
3519 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3520 self->SetDeviceOrigin(point.x, point.y);
3521 }
3522 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3523 self->CalcBoundingBox(point.x, point.y);
3524 }
3525 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3526 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3527 }
3528 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3529 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3530 }
3531 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3532 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3533 }
3534 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3535 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3536 }
3537 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3538 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3539 }
3540 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3541 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3542 }
3543
3544 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3545 *x1 = dc->MinX();
3546 *y1 = dc->MinY();
3547 *x2 = dc->MaxX();
3548 *y2 = dc->MaxY();
3549 }
3550
3551
3552 #include <wx/dcbuffer.h>
3553
3554
3555 #include <wx/dcps.h>
3556
3557
3558 #include <wx/metafile.h>
3559
3560
3561 #include <wx/graphics.h>
3562
3563
3564 #if !wxUSE_GRAPHICS_CONTEXT
3565 // C++ stub classes for platforms that don't have wxGraphicsContext yet.
3566
3567 class wxGraphicsPath
3568 {
3569 public :
3570 wxGraphicsPath() {
3571 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3572 PyErr_SetString(PyExc_NotImplementedError,
3573 "wxGraphicsPath is not available on this platform.");
3574 wxPyEndBlockThreads(blocked);
3575 }
3576 virtual ~wxGraphicsPath() {}
3577
3578 void MoveToPoint( wxDouble, wxDouble ) {}
3579 void AddLineToPoint( wxDouble, wxDouble ) {}
3580 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3581 void CloseSubpath() {}
3582 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3583 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3584
3585 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3586 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3587 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3588 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3589
3590 wxPoint2DDouble GetCurrentPoint() { return wxPoint2DDouble(0,0); }
3591 void MoveToPoint( const wxPoint2DDouble& ) {}
3592 void AddLineToPoint( const wxPoint2DDouble&) {}
3593 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3594 void AddArc( const wxPoint2DDouble&, wxDouble, wxDouble, wxDouble, bool) {}
3595 };
3596
3597
3598 class wxGraphicsContext
3599 {
3600 public:
3601 wxGraphicsContext() {
3602 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3603 PyErr_SetString(PyExc_NotImplementedError,
3604 "wxGraphicsContext is not available on this platform.");
3605 wxPyEndBlockThreads(blocked);
3606 }
3607 virtual ~wxGraphicsContext() {}
3608
3609 static wxGraphicsContext* Create( const wxWindowDC&) {
3610 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3611 PyErr_SetString(PyExc_NotImplementedError,
3612 "wxGraphicsPath is not available on this platform.");
3613 wxPyEndBlockThreads(blocked);
3614 return NULL;
3615 }
3616
3617 wxGraphicsPath * CreatePath() { return NULL; }
3618 void PushState() {}
3619 void PopState() {}
3620 void Clip( const wxRegion & ) {}
3621 void Translate( wxDouble , wxDouble ) {}
3622 void Scale( wxDouble , wxDouble ) {}
3623 void Rotate( wxDouble ) {}
3624 void SetPen( const wxPen & ) {}
3625 void SetBrush( const wxBrush & ) {}
3626 void SetLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3627 const wxColour&, const wxColour&) {}
3628 void SetRadialGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3629 const wxColour &, const wxColour &) {}
3630 void SetFont( const wxFont & ) {}
3631 void SetTextColor( const wxColour & ) {}
3632 void StrokePath( const wxGraphicsPath * ) {}
3633 void FillPath( const wxGraphicsPath *, int ) {}
3634 void DrawPath( const wxGraphicsPath *, int ) {}
3635 void DrawText( const wxString &, wxDouble , wxDouble ) {}
3636 void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3637 void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3638 wxDouble *, wxDouble * ) const {}
3639 void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3640 void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3641 void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3642 void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3643 void StrokeLines( size_t , const wxPoint2DDouble *) {}
3644 void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3645 void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3646 void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3647 void DrawEllipse( wxDouble , wxDouble, wxDouble , wxDouble) {}
3648 void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3649 };
3650
3651
3652 class wxGCDC: public wxWindowDC
3653 {
3654 public:
3655 wxGCDC(const wxWindowDC&) {
3656 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3657 PyErr_SetString(PyExc_NotImplementedError,
3658 "wxGCDC is not available on this platform.");
3659 wxPyEndBlockThreads(blocked);
3660 }
3661
3662 wxGCDC() {
3663 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3664 PyErr_SetString(PyExc_NotImplementedError,
3665 "wxGCDC is not available on this platform.");
3666 wxPyEndBlockThreads(blocked);
3667 }
3668
3669 virtual ~wxGCDC() {}
3670
3671 wxGraphicsContext* GetGraphicContext() { return NULL; }
3672 };
3673
3674 #endif
3675
3676 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3677 wxArrayDouble widths;
3678 self->GetPartialTextExtents(text, widths);
3679 return widths;
3680 }
3681 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3682 size_t c1, c2, count;
3683 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3684 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3685
3686 if ( beginP != NULL && endP != NULL )
3687 {
3688 count = wxMin(c1, c2);
3689 self->StrokeLines(count, beginP, endP);
3690 }
3691 delete [] beginP;
3692 delete [] endP;
3693 }
3694
3695
3696 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3697 self->AddColour(name, wxColour(red, green, blue));
3698 }
3699
3700 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3701 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3702 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3703 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3704
3705
3706 #include <wx/effects.h>
3707
3708
3709 #include "wx/renderer.h"
3710
3711
3712 SWIGINTERNINLINE PyObject*
3713 SWIG_From_bool (bool value)
3714 {
3715 return PyBool_FromLong(value ? 1 : 0);
3716 }
3717
3718
3719 #include "wx/wxPython/pseudodc.h"
3720
3721 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3722 wxRect rect;
3723 self->GetIdBounds(id, rect);
3724 return rect;
3725 }
3726 #ifdef __cplusplus
3727 extern "C" {
3728 #endif
3729 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3730 PyObject *resultobj = 0;
3731 wxGDIObject *result = 0 ;
3732
3733 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3734 {
3735 if (!wxPyCheckForApp()) SWIG_fail;
3736 PyThreadState* __tstate = wxPyBeginAllowThreads();
3737 result = (wxGDIObject *)new wxGDIObject();
3738 wxPyEndAllowThreads(__tstate);
3739 if (PyErr_Occurred()) SWIG_fail;
3740 }
3741 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3742 return resultobj;
3743 fail:
3744 return NULL;
3745 }
3746
3747
3748 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3749 PyObject *resultobj = 0;
3750 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3751 void *argp1 = 0 ;
3752 int res1 = 0 ;
3753 PyObject *swig_obj[1] ;
3754
3755 if (!args) SWIG_fail;
3756 swig_obj[0] = args;
3757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3758 if (!SWIG_IsOK(res1)) {
3759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3760 }
3761 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3762 {
3763 PyThreadState* __tstate = wxPyBeginAllowThreads();
3764 delete arg1;
3765
3766 wxPyEndAllowThreads(__tstate);
3767 if (PyErr_Occurred()) SWIG_fail;
3768 }
3769 resultobj = SWIG_Py_Void();
3770 return resultobj;
3771 fail:
3772 return NULL;
3773 }
3774
3775
3776 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3777 PyObject *resultobj = 0;
3778 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3779 bool result;
3780 void *argp1 = 0 ;
3781 int res1 = 0 ;
3782 PyObject *swig_obj[1] ;
3783
3784 if (!args) SWIG_fail;
3785 swig_obj[0] = args;
3786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3787 if (!SWIG_IsOK(res1)) {
3788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3789 }
3790 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3791 {
3792 PyThreadState* __tstate = wxPyBeginAllowThreads();
3793 result = (bool)(arg1)->IsNull();
3794 wxPyEndAllowThreads(__tstate);
3795 if (PyErr_Occurred()) SWIG_fail;
3796 }
3797 {
3798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3799 }
3800 return resultobj;
3801 fail:
3802 return NULL;
3803 }
3804
3805
3806 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3807 PyObject *obj;
3808 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3809 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3810 return SWIG_Py_Void();
3811 }
3812
3813 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3814 return SWIG_Python_InitShadowInstance(args);
3815 }
3816
3817 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3818 PyObject *resultobj = 0;
3819 byte arg1 = (byte) 0 ;
3820 byte arg2 = (byte) 0 ;
3821 byte arg3 = (byte) 0 ;
3822 byte arg4 = (byte) wxALPHA_OPAQUE ;
3823 wxColour *result = 0 ;
3824 unsigned char val1 ;
3825 int ecode1 = 0 ;
3826 unsigned char val2 ;
3827 int ecode2 = 0 ;
3828 unsigned char val3 ;
3829 int ecode3 = 0 ;
3830 unsigned char val4 ;
3831 int ecode4 = 0 ;
3832 PyObject * obj0 = 0 ;
3833 PyObject * obj1 = 0 ;
3834 PyObject * obj2 = 0 ;
3835 PyObject * obj3 = 0 ;
3836 char * kwnames[] = {
3837 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3838 };
3839
3840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3841 if (obj0) {
3842 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3843 if (!SWIG_IsOK(ecode1)) {
3844 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3845 }
3846 arg1 = static_cast< byte >(val1);
3847 }
3848 if (obj1) {
3849 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3850 if (!SWIG_IsOK(ecode2)) {
3851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3852 }
3853 arg2 = static_cast< byte >(val2);
3854 }
3855 if (obj2) {
3856 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3857 if (!SWIG_IsOK(ecode3)) {
3858 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3859 }
3860 arg3 = static_cast< byte >(val3);
3861 }
3862 if (obj3) {
3863 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3864 if (!SWIG_IsOK(ecode4)) {
3865 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3866 }
3867 arg4 = static_cast< byte >(val4);
3868 }
3869 {
3870 PyThreadState* __tstate = wxPyBeginAllowThreads();
3871 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
3872 wxPyEndAllowThreads(__tstate);
3873 if (PyErr_Occurred()) SWIG_fail;
3874 }
3875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3876 return resultobj;
3877 fail:
3878 return NULL;
3879 }
3880
3881
3882 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3883 PyObject *resultobj = 0;
3884 wxString *arg1 = 0 ;
3885 wxColour *result = 0 ;
3886 bool temp1 = false ;
3887 PyObject * obj0 = 0 ;
3888 char * kwnames[] = {
3889 (char *) "colorName", NULL
3890 };
3891
3892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3893 {
3894 arg1 = wxString_in_helper(obj0);
3895 if (arg1 == NULL) SWIG_fail;
3896 temp1 = true;
3897 }
3898 {
3899 if (!wxPyCheckForApp()) SWIG_fail;
3900 PyThreadState* __tstate = wxPyBeginAllowThreads();
3901 result = (wxColour *)new wxColour((wxString const &)*arg1);
3902 wxPyEndAllowThreads(__tstate);
3903 if (PyErr_Occurred()) SWIG_fail;
3904 }
3905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3906 {
3907 if (temp1)
3908 delete arg1;
3909 }
3910 return resultobj;
3911 fail:
3912 {
3913 if (temp1)
3914 delete arg1;
3915 }
3916 return NULL;
3917 }
3918
3919
3920 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3921 PyObject *resultobj = 0;
3922 unsigned long arg1 ;
3923 wxColour *result = 0 ;
3924 unsigned long val1 ;
3925 int ecode1 = 0 ;
3926 PyObject * obj0 = 0 ;
3927 char * kwnames[] = {
3928 (char *) "colRGB", NULL
3929 };
3930
3931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3932 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3933 if (!SWIG_IsOK(ecode1)) {
3934 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3935 }
3936 arg1 = static_cast< unsigned long >(val1);
3937 {
3938 PyThreadState* __tstate = wxPyBeginAllowThreads();
3939 result = (wxColour *)new wxColour(arg1);
3940 wxPyEndAllowThreads(__tstate);
3941 if (PyErr_Occurred()) SWIG_fail;
3942 }
3943 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3944 return resultobj;
3945 fail:
3946 return NULL;
3947 }
3948
3949
3950 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3951 PyObject *resultobj = 0;
3952 wxColour *arg1 = (wxColour *) 0 ;
3953 void *argp1 = 0 ;
3954 int res1 = 0 ;
3955 PyObject *swig_obj[1] ;
3956
3957 if (!args) SWIG_fail;
3958 swig_obj[0] = args;
3959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3960 if (!SWIG_IsOK(res1)) {
3961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3962 }
3963 arg1 = reinterpret_cast< wxColour * >(argp1);
3964 {
3965 PyThreadState* __tstate = wxPyBeginAllowThreads();
3966 delete arg1;
3967
3968 wxPyEndAllowThreads(__tstate);
3969 if (PyErr_Occurred()) SWIG_fail;
3970 }
3971 resultobj = SWIG_Py_Void();
3972 return resultobj;
3973 fail:
3974 return NULL;
3975 }
3976
3977
3978 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3979 PyObject *resultobj = 0;
3980 wxColour *arg1 = (wxColour *) 0 ;
3981 byte result;
3982 void *argp1 = 0 ;
3983 int res1 = 0 ;
3984 PyObject *swig_obj[1] ;
3985
3986 if (!args) SWIG_fail;
3987 swig_obj[0] = args;
3988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3989 if (!SWIG_IsOK(res1)) {
3990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3991 }
3992 arg1 = reinterpret_cast< wxColour * >(argp1);
3993 {
3994 PyThreadState* __tstate = wxPyBeginAllowThreads();
3995 result = (byte)(arg1)->Red();
3996 wxPyEndAllowThreads(__tstate);
3997 if (PyErr_Occurred()) SWIG_fail;
3998 }
3999 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4000 return resultobj;
4001 fail:
4002 return NULL;
4003 }
4004
4005
4006 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4007 PyObject *resultobj = 0;
4008 wxColour *arg1 = (wxColour *) 0 ;
4009 byte result;
4010 void *argp1 = 0 ;
4011 int res1 = 0 ;
4012 PyObject *swig_obj[1] ;
4013
4014 if (!args) SWIG_fail;
4015 swig_obj[0] = args;
4016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4017 if (!SWIG_IsOK(res1)) {
4018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4019 }
4020 arg1 = reinterpret_cast< wxColour * >(argp1);
4021 {
4022 PyThreadState* __tstate = wxPyBeginAllowThreads();
4023 result = (byte)(arg1)->Green();
4024 wxPyEndAllowThreads(__tstate);
4025 if (PyErr_Occurred()) SWIG_fail;
4026 }
4027 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4028 return resultobj;
4029 fail:
4030 return NULL;
4031 }
4032
4033
4034 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4035 PyObject *resultobj = 0;
4036 wxColour *arg1 = (wxColour *) 0 ;
4037 byte result;
4038 void *argp1 = 0 ;
4039 int res1 = 0 ;
4040 PyObject *swig_obj[1] ;
4041
4042 if (!args) SWIG_fail;
4043 swig_obj[0] = args;
4044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4045 if (!SWIG_IsOK(res1)) {
4046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4047 }
4048 arg1 = reinterpret_cast< wxColour * >(argp1);
4049 {
4050 PyThreadState* __tstate = wxPyBeginAllowThreads();
4051 result = (byte)(arg1)->Blue();
4052 wxPyEndAllowThreads(__tstate);
4053 if (PyErr_Occurred()) SWIG_fail;
4054 }
4055 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4056 return resultobj;
4057 fail:
4058 return NULL;
4059 }
4060
4061
4062 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4063 PyObject *resultobj = 0;
4064 wxColour *arg1 = (wxColour *) 0 ;
4065 byte result;
4066 void *argp1 = 0 ;
4067 int res1 = 0 ;
4068 PyObject *swig_obj[1] ;
4069
4070 if (!args) SWIG_fail;
4071 swig_obj[0] = args;
4072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4073 if (!SWIG_IsOK(res1)) {
4074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4075 }
4076 arg1 = reinterpret_cast< wxColour * >(argp1);
4077 {
4078 PyThreadState* __tstate = wxPyBeginAllowThreads();
4079 result = (byte)(arg1)->Alpha();
4080 wxPyEndAllowThreads(__tstate);
4081 if (PyErr_Occurred()) SWIG_fail;
4082 }
4083 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4084 return resultobj;
4085 fail:
4086 return NULL;
4087 }
4088
4089
4090 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4091 PyObject *resultobj = 0;
4092 wxColour *arg1 = (wxColour *) 0 ;
4093 bool result;
4094 void *argp1 = 0 ;
4095 int res1 = 0 ;
4096 PyObject *swig_obj[1] ;
4097
4098 if (!args) SWIG_fail;
4099 swig_obj[0] = args;
4100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4101 if (!SWIG_IsOK(res1)) {
4102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4103 }
4104 arg1 = reinterpret_cast< wxColour * >(argp1);
4105 {
4106 PyThreadState* __tstate = wxPyBeginAllowThreads();
4107 result = (bool)(arg1)->IsOk();
4108 wxPyEndAllowThreads(__tstate);
4109 if (PyErr_Occurred()) SWIG_fail;
4110 }
4111 {
4112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4113 }
4114 return resultobj;
4115 fail:
4116 return NULL;
4117 }
4118
4119
4120 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4121 PyObject *resultobj = 0;
4122 wxColour *arg1 = (wxColour *) 0 ;
4123 byte arg2 ;
4124 byte arg3 ;
4125 byte arg4 ;
4126 byte arg5 = (byte) wxALPHA_OPAQUE ;
4127 void *argp1 = 0 ;
4128 int res1 = 0 ;
4129 unsigned char val2 ;
4130 int ecode2 = 0 ;
4131 unsigned char val3 ;
4132 int ecode3 = 0 ;
4133 unsigned char val4 ;
4134 int ecode4 = 0 ;
4135 unsigned char val5 ;
4136 int ecode5 = 0 ;
4137 PyObject * obj0 = 0 ;
4138 PyObject * obj1 = 0 ;
4139 PyObject * obj2 = 0 ;
4140 PyObject * obj3 = 0 ;
4141 PyObject * obj4 = 0 ;
4142 char * kwnames[] = {
4143 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4144 };
4145
4146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4148 if (!SWIG_IsOK(res1)) {
4149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4150 }
4151 arg1 = reinterpret_cast< wxColour * >(argp1);
4152 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4153 if (!SWIG_IsOK(ecode2)) {
4154 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4155 }
4156 arg2 = static_cast< byte >(val2);
4157 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4158 if (!SWIG_IsOK(ecode3)) {
4159 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4160 }
4161 arg3 = static_cast< byte >(val3);
4162 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4163 if (!SWIG_IsOK(ecode4)) {
4164 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4165 }
4166 arg4 = static_cast< byte >(val4);
4167 if (obj4) {
4168 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4169 if (!SWIG_IsOK(ecode5)) {
4170 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4171 }
4172 arg5 = static_cast< byte >(val5);
4173 }
4174 {
4175 PyThreadState* __tstate = wxPyBeginAllowThreads();
4176 (arg1)->Set(arg2,arg3,arg4,arg5);
4177 wxPyEndAllowThreads(__tstate);
4178 if (PyErr_Occurred()) SWIG_fail;
4179 }
4180 resultobj = SWIG_Py_Void();
4181 return resultobj;
4182 fail:
4183 return NULL;
4184 }
4185
4186
4187 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4188 PyObject *resultobj = 0;
4189 wxColour *arg1 = (wxColour *) 0 ;
4190 unsigned long arg2 ;
4191 void *argp1 = 0 ;
4192 int res1 = 0 ;
4193 unsigned long val2 ;
4194 int ecode2 = 0 ;
4195 PyObject * obj0 = 0 ;
4196 PyObject * obj1 = 0 ;
4197 char * kwnames[] = {
4198 (char *) "self",(char *) "colRGB", NULL
4199 };
4200
4201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4203 if (!SWIG_IsOK(res1)) {
4204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4205 }
4206 arg1 = reinterpret_cast< wxColour * >(argp1);
4207 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4208 if (!SWIG_IsOK(ecode2)) {
4209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4210 }
4211 arg2 = static_cast< unsigned long >(val2);
4212 {
4213 PyThreadState* __tstate = wxPyBeginAllowThreads();
4214 (arg1)->Set(arg2);
4215 wxPyEndAllowThreads(__tstate);
4216 if (PyErr_Occurred()) SWIG_fail;
4217 }
4218 resultobj = SWIG_Py_Void();
4219 return resultobj;
4220 fail:
4221 return NULL;
4222 }
4223
4224
4225 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4226 PyObject *resultobj = 0;
4227 wxColour *arg1 = (wxColour *) 0 ;
4228 wxString *arg2 = 0 ;
4229 void *argp1 = 0 ;
4230 int res1 = 0 ;
4231 bool temp2 = false ;
4232 PyObject * obj0 = 0 ;
4233 PyObject * obj1 = 0 ;
4234 char * kwnames[] = {
4235 (char *) "self",(char *) "colourName", NULL
4236 };
4237
4238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4240 if (!SWIG_IsOK(res1)) {
4241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4242 }
4243 arg1 = reinterpret_cast< wxColour * >(argp1);
4244 {
4245 arg2 = wxString_in_helper(obj1);
4246 if (arg2 == NULL) SWIG_fail;
4247 temp2 = true;
4248 }
4249 {
4250 PyThreadState* __tstate = wxPyBeginAllowThreads();
4251 (arg1)->Set((wxString const &)*arg2);
4252 wxPyEndAllowThreads(__tstate);
4253 if (PyErr_Occurred()) SWIG_fail;
4254 }
4255 resultobj = SWIG_Py_Void();
4256 {
4257 if (temp2)
4258 delete arg2;
4259 }
4260 return resultobj;
4261 fail:
4262 {
4263 if (temp2)
4264 delete arg2;
4265 }
4266 return NULL;
4267 }
4268
4269
4270 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4271 PyObject *resultobj = 0;
4272 wxColour *arg1 = (wxColour *) 0 ;
4273 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4274 wxString result;
4275 void *argp1 = 0 ;
4276 int res1 = 0 ;
4277 long val2 ;
4278 int ecode2 = 0 ;
4279 PyObject * obj0 = 0 ;
4280 PyObject * obj1 = 0 ;
4281 char * kwnames[] = {
4282 (char *) "self",(char *) "flags", NULL
4283 };
4284
4285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4287 if (!SWIG_IsOK(res1)) {
4288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4289 }
4290 arg1 = reinterpret_cast< wxColour * >(argp1);
4291 if (obj1) {
4292 ecode2 = SWIG_AsVal_long(obj1, &val2);
4293 if (!SWIG_IsOK(ecode2)) {
4294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4295 }
4296 arg2 = static_cast< long >(val2);
4297 }
4298 {
4299 PyThreadState* __tstate = wxPyBeginAllowThreads();
4300 result = ((wxColour const *)arg1)->GetAsString(arg2);
4301 wxPyEndAllowThreads(__tstate);
4302 if (PyErr_Occurred()) SWIG_fail;
4303 }
4304 {
4305 #if wxUSE_UNICODE
4306 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4307 #else
4308 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4309 #endif
4310 }
4311 return resultobj;
4312 fail:
4313 return NULL;
4314 }
4315
4316
4317 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4318 PyObject *resultobj = 0;
4319 wxColour *arg1 = (wxColour *) 0 ;
4320 long result;
4321 void *argp1 = 0 ;
4322 int res1 = 0 ;
4323 PyObject *swig_obj[1] ;
4324
4325 if (!args) SWIG_fail;
4326 swig_obj[0] = args;
4327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4328 if (!SWIG_IsOK(res1)) {
4329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4330 }
4331 arg1 = reinterpret_cast< wxColour * >(argp1);
4332 {
4333 PyThreadState* __tstate = wxPyBeginAllowThreads();
4334 result = (long)((wxColour const *)arg1)->GetPixel();
4335 wxPyEndAllowThreads(__tstate);
4336 if (PyErr_Occurred()) SWIG_fail;
4337 }
4338 resultobj = SWIG_From_long(static_cast< long >(result));
4339 return resultobj;
4340 fail:
4341 return NULL;
4342 }
4343
4344
4345 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4346 PyObject *resultobj = 0;
4347 wxColour *arg1 = (wxColour *) 0 ;
4348 PyObject *arg2 = (PyObject *) 0 ;
4349 bool result;
4350 void *argp1 = 0 ;
4351 int res1 = 0 ;
4352 PyObject * obj0 = 0 ;
4353 PyObject * obj1 = 0 ;
4354 char * kwnames[] = {
4355 (char *) "self",(char *) "other", NULL
4356 };
4357
4358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4360 if (!SWIG_IsOK(res1)) {
4361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4362 }
4363 arg1 = reinterpret_cast< wxColour * >(argp1);
4364 arg2 = obj1;
4365 {
4366 result = (bool)wxColour___eq__(arg1,arg2);
4367 if (PyErr_Occurred()) SWIG_fail;
4368 }
4369 {
4370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4371 }
4372 return resultobj;
4373 fail:
4374 return NULL;
4375 }
4376
4377
4378 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4379 PyObject *resultobj = 0;
4380 wxColour *arg1 = (wxColour *) 0 ;
4381 PyObject *arg2 = (PyObject *) 0 ;
4382 bool result;
4383 void *argp1 = 0 ;
4384 int res1 = 0 ;
4385 PyObject * obj0 = 0 ;
4386 PyObject * obj1 = 0 ;
4387 char * kwnames[] = {
4388 (char *) "self",(char *) "other", NULL
4389 };
4390
4391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4393 if (!SWIG_IsOK(res1)) {
4394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4395 }
4396 arg1 = reinterpret_cast< wxColour * >(argp1);
4397 arg2 = obj1;
4398 {
4399 result = (bool)wxColour___ne__(arg1,arg2);
4400 if (PyErr_Occurred()) SWIG_fail;
4401 }
4402 {
4403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4404 }
4405 return resultobj;
4406 fail:
4407 return NULL;
4408 }
4409
4410
4411 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4412 PyObject *resultobj = 0;
4413 wxColour *arg1 = (wxColour *) 0 ;
4414 bool arg2 = (bool) false ;
4415 PyObject *result = 0 ;
4416 void *argp1 = 0 ;
4417 int res1 = 0 ;
4418 bool val2 ;
4419 int ecode2 = 0 ;
4420 PyObject * obj0 = 0 ;
4421 PyObject * obj1 = 0 ;
4422 char * kwnames[] = {
4423 (char *) "self",(char *) "includeAlpha", NULL
4424 };
4425
4426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4428 if (!SWIG_IsOK(res1)) {
4429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4430 }
4431 arg1 = reinterpret_cast< wxColour * >(argp1);
4432 if (obj1) {
4433 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4434 if (!SWIG_IsOK(ecode2)) {
4435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4436 }
4437 arg2 = static_cast< bool >(val2);
4438 }
4439 {
4440 result = (PyObject *)wxColour_Get(arg1,arg2);
4441 if (PyErr_Occurred()) SWIG_fail;
4442 }
4443 resultobj = result;
4444 return resultobj;
4445 fail:
4446 return NULL;
4447 }
4448
4449
4450 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4451 PyObject *resultobj = 0;
4452 wxColour *arg1 = (wxColour *) 0 ;
4453 unsigned long result;
4454 void *argp1 = 0 ;
4455 int res1 = 0 ;
4456 PyObject *swig_obj[1] ;
4457
4458 if (!args) SWIG_fail;
4459 swig_obj[0] = args;
4460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4461 if (!SWIG_IsOK(res1)) {
4462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4463 }
4464 arg1 = reinterpret_cast< wxColour * >(argp1);
4465 {
4466 result = (unsigned long)wxColour_GetRGB(arg1);
4467 if (PyErr_Occurred()) SWIG_fail;
4468 }
4469 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4470 return resultobj;
4471 fail:
4472 return NULL;
4473 }
4474
4475
4476 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4477 PyObject *obj;
4478 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4479 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4480 return SWIG_Py_Void();
4481 }
4482
4483 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4484 return SWIG_Python_InitShadowInstance(args);
4485 }
4486
4487 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4488 PyObject *resultobj = 0;
4489 int arg1 ;
4490 unsigned char *arg2 = (unsigned char *) 0 ;
4491 unsigned char *arg3 = (unsigned char *) 0 ;
4492 unsigned char *arg4 = (unsigned char *) 0 ;
4493 wxPalette *result = 0 ;
4494 int val1 ;
4495 int ecode1 = 0 ;
4496 void *argp2 = 0 ;
4497 int res2 = 0 ;
4498 void *argp3 = 0 ;
4499 int res3 = 0 ;
4500 void *argp4 = 0 ;
4501 int res4 = 0 ;
4502 PyObject * obj0 = 0 ;
4503 PyObject * obj1 = 0 ;
4504 PyObject * obj2 = 0 ;
4505 PyObject * obj3 = 0 ;
4506 char * kwnames[] = {
4507 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4508 };
4509
4510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4511 ecode1 = SWIG_AsVal_int(obj0, &val1);
4512 if (!SWIG_IsOK(ecode1)) {
4513 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4514 }
4515 arg1 = static_cast< int >(val1);
4516 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4517 if (!SWIG_IsOK(res2)) {
4518 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4519 }
4520 arg2 = reinterpret_cast< unsigned char * >(argp2);
4521 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4522 if (!SWIG_IsOK(res3)) {
4523 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4524 }
4525 arg3 = reinterpret_cast< unsigned char * >(argp3);
4526 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4527 if (!SWIG_IsOK(res4)) {
4528 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4529 }
4530 arg4 = reinterpret_cast< unsigned char * >(argp4);
4531 {
4532 if (!wxPyCheckForApp()) SWIG_fail;
4533 PyThreadState* __tstate = wxPyBeginAllowThreads();
4534 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4535 wxPyEndAllowThreads(__tstate);
4536 if (PyErr_Occurred()) SWIG_fail;
4537 }
4538 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4539 return resultobj;
4540 fail:
4541 return NULL;
4542 }
4543
4544
4545 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4546 PyObject *resultobj = 0;
4547 wxPalette *arg1 = (wxPalette *) 0 ;
4548 void *argp1 = 0 ;
4549 int res1 = 0 ;
4550 PyObject *swig_obj[1] ;
4551
4552 if (!args) SWIG_fail;
4553 swig_obj[0] = args;
4554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4555 if (!SWIG_IsOK(res1)) {
4556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4557 }
4558 arg1 = reinterpret_cast< wxPalette * >(argp1);
4559 {
4560 PyThreadState* __tstate = wxPyBeginAllowThreads();
4561 delete arg1;
4562
4563 wxPyEndAllowThreads(__tstate);
4564 if (PyErr_Occurred()) SWIG_fail;
4565 }
4566 resultobj = SWIG_Py_Void();
4567 return resultobj;
4568 fail:
4569 return NULL;
4570 }
4571
4572
4573 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4574 PyObject *resultobj = 0;
4575 wxPalette *arg1 = (wxPalette *) 0 ;
4576 byte arg2 ;
4577 byte arg3 ;
4578 byte arg4 ;
4579 int result;
4580 void *argp1 = 0 ;
4581 int res1 = 0 ;
4582 unsigned char val2 ;
4583 int ecode2 = 0 ;
4584 unsigned char val3 ;
4585 int ecode3 = 0 ;
4586 unsigned char val4 ;
4587 int ecode4 = 0 ;
4588 PyObject * obj0 = 0 ;
4589 PyObject * obj1 = 0 ;
4590 PyObject * obj2 = 0 ;
4591 PyObject * obj3 = 0 ;
4592 char * kwnames[] = {
4593 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4594 };
4595
4596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4598 if (!SWIG_IsOK(res1)) {
4599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4600 }
4601 arg1 = reinterpret_cast< wxPalette * >(argp1);
4602 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4603 if (!SWIG_IsOK(ecode2)) {
4604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4605 }
4606 arg2 = static_cast< byte >(val2);
4607 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4608 if (!SWIG_IsOK(ecode3)) {
4609 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4610 }
4611 arg3 = static_cast< byte >(val3);
4612 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4613 if (!SWIG_IsOK(ecode4)) {
4614 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4615 }
4616 arg4 = static_cast< byte >(val4);
4617 {
4618 PyThreadState* __tstate = wxPyBeginAllowThreads();
4619 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4620 wxPyEndAllowThreads(__tstate);
4621 if (PyErr_Occurred()) SWIG_fail;
4622 }
4623 resultobj = SWIG_From_int(static_cast< int >(result));
4624 return resultobj;
4625 fail:
4626 return NULL;
4627 }
4628
4629
4630 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4631 PyObject *resultobj = 0;
4632 wxPalette *arg1 = (wxPalette *) 0 ;
4633 int arg2 ;
4634 byte *arg3 = (byte *) 0 ;
4635 byte *arg4 = (byte *) 0 ;
4636 byte *arg5 = (byte *) 0 ;
4637 bool result;
4638 void *argp1 = 0 ;
4639 int res1 = 0 ;
4640 int val2 ;
4641 int ecode2 = 0 ;
4642 byte temp3 ;
4643 int res3 = SWIG_TMPOBJ ;
4644 byte temp4 ;
4645 int res4 = SWIG_TMPOBJ ;
4646 byte temp5 ;
4647 int res5 = SWIG_TMPOBJ ;
4648 PyObject * obj0 = 0 ;
4649 PyObject * obj1 = 0 ;
4650 char * kwnames[] = {
4651 (char *) "self",(char *) "pixel", NULL
4652 };
4653
4654 arg3 = &temp3;
4655 arg4 = &temp4;
4656 arg5 = &temp5;
4657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4659 if (!SWIG_IsOK(res1)) {
4660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4661 }
4662 arg1 = reinterpret_cast< wxPalette * >(argp1);
4663 ecode2 = SWIG_AsVal_int(obj1, &val2);
4664 if (!SWIG_IsOK(ecode2)) {
4665 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4666 }
4667 arg2 = static_cast< int >(val2);
4668 {
4669 PyThreadState* __tstate = wxPyBeginAllowThreads();
4670 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4671 wxPyEndAllowThreads(__tstate);
4672 if (PyErr_Occurred()) SWIG_fail;
4673 }
4674 {
4675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4676 }
4677 if (SWIG_IsTmpObj(res3)) {
4678 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4679 } else {
4680 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4681 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4682 }
4683 if (SWIG_IsTmpObj(res4)) {
4684 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4685 } else {
4686 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4687 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4688 }
4689 if (SWIG_IsTmpObj(res5)) {
4690 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4691 } else {
4692 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4693 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4694 }
4695 return resultobj;
4696 fail:
4697 return NULL;
4698 }
4699
4700
4701 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4702 PyObject *resultobj = 0;
4703 wxPalette *arg1 = (wxPalette *) 0 ;
4704 int result;
4705 void *argp1 = 0 ;
4706 int res1 = 0 ;
4707 PyObject *swig_obj[1] ;
4708
4709 if (!args) SWIG_fail;
4710 swig_obj[0] = args;
4711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4712 if (!SWIG_IsOK(res1)) {
4713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4714 }
4715 arg1 = reinterpret_cast< wxPalette * >(argp1);
4716 {
4717 PyThreadState* __tstate = wxPyBeginAllowThreads();
4718 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4719 wxPyEndAllowThreads(__tstate);
4720 if (PyErr_Occurred()) SWIG_fail;
4721 }
4722 resultobj = SWIG_From_int(static_cast< int >(result));
4723 return resultobj;
4724 fail:
4725 return NULL;
4726 }
4727
4728
4729 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4730 PyObject *resultobj = 0;
4731 wxPalette *arg1 = (wxPalette *) 0 ;
4732 bool result;
4733 void *argp1 = 0 ;
4734 int res1 = 0 ;
4735 PyObject *swig_obj[1] ;
4736
4737 if (!args) SWIG_fail;
4738 swig_obj[0] = args;
4739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4740 if (!SWIG_IsOK(res1)) {
4741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
4742 }
4743 arg1 = reinterpret_cast< wxPalette * >(argp1);
4744 {
4745 PyThreadState* __tstate = wxPyBeginAllowThreads();
4746 result = (bool)(arg1)->IsOk();
4747 wxPyEndAllowThreads(__tstate);
4748 if (PyErr_Occurred()) SWIG_fail;
4749 }
4750 {
4751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4752 }
4753 return resultobj;
4754 fail:
4755 return NULL;
4756 }
4757
4758
4759 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4760 PyObject *obj;
4761 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4762 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4763 return SWIG_Py_Void();
4764 }
4765
4766 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4767 return SWIG_Python_InitShadowInstance(args);
4768 }
4769
4770 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4771 PyObject *resultobj = 0;
4772 wxColour *arg1 = 0 ;
4773 int arg2 = (int) 1 ;
4774 int arg3 = (int) wxSOLID ;
4775 wxPen *result = 0 ;
4776 wxColour temp1 ;
4777 int val2 ;
4778 int ecode2 = 0 ;
4779 int val3 ;
4780 int ecode3 = 0 ;
4781 PyObject * obj0 = 0 ;
4782 PyObject * obj1 = 0 ;
4783 PyObject * obj2 = 0 ;
4784 char * kwnames[] = {
4785 (char *) "colour",(char *) "width",(char *) "style", NULL
4786 };
4787
4788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4789 {
4790 arg1 = &temp1;
4791 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4792 }
4793 if (obj1) {
4794 ecode2 = SWIG_AsVal_int(obj1, &val2);
4795 if (!SWIG_IsOK(ecode2)) {
4796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4797 }
4798 arg2 = static_cast< int >(val2);
4799 }
4800 if (obj2) {
4801 ecode3 = SWIG_AsVal_int(obj2, &val3);
4802 if (!SWIG_IsOK(ecode3)) {
4803 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4804 }
4805 arg3 = static_cast< int >(val3);
4806 }
4807 {
4808 if (!wxPyCheckForApp()) SWIG_fail;
4809 PyThreadState* __tstate = wxPyBeginAllowThreads();
4810 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4811 wxPyEndAllowThreads(__tstate);
4812 if (PyErr_Occurred()) SWIG_fail;
4813 }
4814 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4815 return resultobj;
4816 fail:
4817 return NULL;
4818 }
4819
4820
4821 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4822 PyObject *resultobj = 0;
4823 wxPen *arg1 = (wxPen *) 0 ;
4824 void *argp1 = 0 ;
4825 int res1 = 0 ;
4826 PyObject *swig_obj[1] ;
4827
4828 if (!args) SWIG_fail;
4829 swig_obj[0] = args;
4830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4831 if (!SWIG_IsOK(res1)) {
4832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4833 }
4834 arg1 = reinterpret_cast< wxPen * >(argp1);
4835 {
4836 PyThreadState* __tstate = wxPyBeginAllowThreads();
4837 delete arg1;
4838
4839 wxPyEndAllowThreads(__tstate);
4840 if (PyErr_Occurred()) SWIG_fail;
4841 }
4842 resultobj = SWIG_Py_Void();
4843 return resultobj;
4844 fail:
4845 return NULL;
4846 }
4847
4848
4849 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4850 PyObject *resultobj = 0;
4851 wxPen *arg1 = (wxPen *) 0 ;
4852 int result;
4853 void *argp1 = 0 ;
4854 int res1 = 0 ;
4855 PyObject *swig_obj[1] ;
4856
4857 if (!args) SWIG_fail;
4858 swig_obj[0] = args;
4859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4860 if (!SWIG_IsOK(res1)) {
4861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4862 }
4863 arg1 = reinterpret_cast< wxPen * >(argp1);
4864 {
4865 PyThreadState* __tstate = wxPyBeginAllowThreads();
4866 result = (int)(arg1)->GetCap();
4867 wxPyEndAllowThreads(__tstate);
4868 if (PyErr_Occurred()) SWIG_fail;
4869 }
4870 resultobj = SWIG_From_int(static_cast< int >(result));
4871 return resultobj;
4872 fail:
4873 return NULL;
4874 }
4875
4876
4877 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4878 PyObject *resultobj = 0;
4879 wxPen *arg1 = (wxPen *) 0 ;
4880 wxColour result;
4881 void *argp1 = 0 ;
4882 int res1 = 0 ;
4883 PyObject *swig_obj[1] ;
4884
4885 if (!args) SWIG_fail;
4886 swig_obj[0] = args;
4887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4888 if (!SWIG_IsOK(res1)) {
4889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4890 }
4891 arg1 = reinterpret_cast< wxPen * >(argp1);
4892 {
4893 PyThreadState* __tstate = wxPyBeginAllowThreads();
4894 result = (arg1)->GetColour();
4895 wxPyEndAllowThreads(__tstate);
4896 if (PyErr_Occurred()) SWIG_fail;
4897 }
4898 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4899 return resultobj;
4900 fail:
4901 return NULL;
4902 }
4903
4904
4905 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4906 PyObject *resultobj = 0;
4907 wxPen *arg1 = (wxPen *) 0 ;
4908 int result;
4909 void *argp1 = 0 ;
4910 int res1 = 0 ;
4911 PyObject *swig_obj[1] ;
4912
4913 if (!args) SWIG_fail;
4914 swig_obj[0] = args;
4915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4916 if (!SWIG_IsOK(res1)) {
4917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4918 }
4919 arg1 = reinterpret_cast< wxPen * >(argp1);
4920 {
4921 PyThreadState* __tstate = wxPyBeginAllowThreads();
4922 result = (int)(arg1)->GetJoin();
4923 wxPyEndAllowThreads(__tstate);
4924 if (PyErr_Occurred()) SWIG_fail;
4925 }
4926 resultobj = SWIG_From_int(static_cast< int >(result));
4927 return resultobj;
4928 fail:
4929 return NULL;
4930 }
4931
4932
4933 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4934 PyObject *resultobj = 0;
4935 wxPen *arg1 = (wxPen *) 0 ;
4936 int result;
4937 void *argp1 = 0 ;
4938 int res1 = 0 ;
4939 PyObject *swig_obj[1] ;
4940
4941 if (!args) SWIG_fail;
4942 swig_obj[0] = args;
4943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4944 if (!SWIG_IsOK(res1)) {
4945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4946 }
4947 arg1 = reinterpret_cast< wxPen * >(argp1);
4948 {
4949 PyThreadState* __tstate = wxPyBeginAllowThreads();
4950 result = (int)(arg1)->GetStyle();
4951 wxPyEndAllowThreads(__tstate);
4952 if (PyErr_Occurred()) SWIG_fail;
4953 }
4954 resultobj = SWIG_From_int(static_cast< int >(result));
4955 return resultobj;
4956 fail:
4957 return NULL;
4958 }
4959
4960
4961 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4962 PyObject *resultobj = 0;
4963 wxPen *arg1 = (wxPen *) 0 ;
4964 int result;
4965 void *argp1 = 0 ;
4966 int res1 = 0 ;
4967 PyObject *swig_obj[1] ;
4968
4969 if (!args) SWIG_fail;
4970 swig_obj[0] = args;
4971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4972 if (!SWIG_IsOK(res1)) {
4973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4974 }
4975 arg1 = reinterpret_cast< wxPen * >(argp1);
4976 {
4977 PyThreadState* __tstate = wxPyBeginAllowThreads();
4978 result = (int)(arg1)->GetWidth();
4979 wxPyEndAllowThreads(__tstate);
4980 if (PyErr_Occurred()) SWIG_fail;
4981 }
4982 resultobj = SWIG_From_int(static_cast< int >(result));
4983 return resultobj;
4984 fail:
4985 return NULL;
4986 }
4987
4988
4989 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4990 PyObject *resultobj = 0;
4991 wxPen *arg1 = (wxPen *) 0 ;
4992 bool result;
4993 void *argp1 = 0 ;
4994 int res1 = 0 ;
4995 PyObject *swig_obj[1] ;
4996
4997 if (!args) SWIG_fail;
4998 swig_obj[0] = args;
4999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5000 if (!SWIG_IsOK(res1)) {
5001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
5002 }
5003 arg1 = reinterpret_cast< wxPen * >(argp1);
5004 {
5005 PyThreadState* __tstate = wxPyBeginAllowThreads();
5006 result = (bool)(arg1)->IsOk();
5007 wxPyEndAllowThreads(__tstate);
5008 if (PyErr_Occurred()) SWIG_fail;
5009 }
5010 {
5011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5012 }
5013 return resultobj;
5014 fail:
5015 return NULL;
5016 }
5017
5018
5019 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5020 PyObject *resultobj = 0;
5021 wxPen *arg1 = (wxPen *) 0 ;
5022 int arg2 ;
5023 void *argp1 = 0 ;
5024 int res1 = 0 ;
5025 int val2 ;
5026 int ecode2 = 0 ;
5027 PyObject * obj0 = 0 ;
5028 PyObject * obj1 = 0 ;
5029 char * kwnames[] = {
5030 (char *) "self",(char *) "cap_style", NULL
5031 };
5032
5033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5035 if (!SWIG_IsOK(res1)) {
5036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5037 }
5038 arg1 = reinterpret_cast< wxPen * >(argp1);
5039 ecode2 = SWIG_AsVal_int(obj1, &val2);
5040 if (!SWIG_IsOK(ecode2)) {
5041 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5042 }
5043 arg2 = static_cast< int >(val2);
5044 {
5045 PyThreadState* __tstate = wxPyBeginAllowThreads();
5046 (arg1)->SetCap(arg2);
5047 wxPyEndAllowThreads(__tstate);
5048 if (PyErr_Occurred()) SWIG_fail;
5049 }
5050 resultobj = SWIG_Py_Void();
5051 return resultobj;
5052 fail:
5053 return NULL;
5054 }
5055
5056
5057 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5058 PyObject *resultobj = 0;
5059 wxPen *arg1 = (wxPen *) 0 ;
5060 wxColour *arg2 = 0 ;
5061 void *argp1 = 0 ;
5062 int res1 = 0 ;
5063 wxColour temp2 ;
5064 PyObject * obj0 = 0 ;
5065 PyObject * obj1 = 0 ;
5066 char * kwnames[] = {
5067 (char *) "self",(char *) "colour", NULL
5068 };
5069
5070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5072 if (!SWIG_IsOK(res1)) {
5073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5074 }
5075 arg1 = reinterpret_cast< wxPen * >(argp1);
5076 {
5077 arg2 = &temp2;
5078 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5079 }
5080 {
5081 PyThreadState* __tstate = wxPyBeginAllowThreads();
5082 (arg1)->SetColour(*arg2);
5083 wxPyEndAllowThreads(__tstate);
5084 if (PyErr_Occurred()) SWIG_fail;
5085 }
5086 resultobj = SWIG_Py_Void();
5087 return resultobj;
5088 fail:
5089 return NULL;
5090 }
5091
5092
5093 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5094 PyObject *resultobj = 0;
5095 wxPen *arg1 = (wxPen *) 0 ;
5096 int arg2 ;
5097 void *argp1 = 0 ;
5098 int res1 = 0 ;
5099 int val2 ;
5100 int ecode2 = 0 ;
5101 PyObject * obj0 = 0 ;
5102 PyObject * obj1 = 0 ;
5103 char * kwnames[] = {
5104 (char *) "self",(char *) "join_style", NULL
5105 };
5106
5107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5109 if (!SWIG_IsOK(res1)) {
5110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5111 }
5112 arg1 = reinterpret_cast< wxPen * >(argp1);
5113 ecode2 = SWIG_AsVal_int(obj1, &val2);
5114 if (!SWIG_IsOK(ecode2)) {
5115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5116 }
5117 arg2 = static_cast< int >(val2);
5118 {
5119 PyThreadState* __tstate = wxPyBeginAllowThreads();
5120 (arg1)->SetJoin(arg2);
5121 wxPyEndAllowThreads(__tstate);
5122 if (PyErr_Occurred()) SWIG_fail;
5123 }
5124 resultobj = SWIG_Py_Void();
5125 return resultobj;
5126 fail:
5127 return NULL;
5128 }
5129
5130
5131 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5132 PyObject *resultobj = 0;
5133 wxPen *arg1 = (wxPen *) 0 ;
5134 int arg2 ;
5135 void *argp1 = 0 ;
5136 int res1 = 0 ;
5137 int val2 ;
5138 int ecode2 = 0 ;
5139 PyObject * obj0 = 0 ;
5140 PyObject * obj1 = 0 ;
5141 char * kwnames[] = {
5142 (char *) "self",(char *) "style", NULL
5143 };
5144
5145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5147 if (!SWIG_IsOK(res1)) {
5148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5149 }
5150 arg1 = reinterpret_cast< wxPen * >(argp1);
5151 ecode2 = SWIG_AsVal_int(obj1, &val2);
5152 if (!SWIG_IsOK(ecode2)) {
5153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5154 }
5155 arg2 = static_cast< int >(val2);
5156 {
5157 PyThreadState* __tstate = wxPyBeginAllowThreads();
5158 (arg1)->SetStyle(arg2);
5159 wxPyEndAllowThreads(__tstate);
5160 if (PyErr_Occurred()) SWIG_fail;
5161 }
5162 resultobj = SWIG_Py_Void();
5163 return resultobj;
5164 fail:
5165 return NULL;
5166 }
5167
5168
5169 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5170 PyObject *resultobj = 0;
5171 wxPen *arg1 = (wxPen *) 0 ;
5172 int arg2 ;
5173 void *argp1 = 0 ;
5174 int res1 = 0 ;
5175 int val2 ;
5176 int ecode2 = 0 ;
5177 PyObject * obj0 = 0 ;
5178 PyObject * obj1 = 0 ;
5179 char * kwnames[] = {
5180 (char *) "self",(char *) "width", NULL
5181 };
5182
5183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5185 if (!SWIG_IsOK(res1)) {
5186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5187 }
5188 arg1 = reinterpret_cast< wxPen * >(argp1);
5189 ecode2 = SWIG_AsVal_int(obj1, &val2);
5190 if (!SWIG_IsOK(ecode2)) {
5191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5192 }
5193 arg2 = static_cast< int >(val2);
5194 {
5195 PyThreadState* __tstate = wxPyBeginAllowThreads();
5196 (arg1)->SetWidth(arg2);
5197 wxPyEndAllowThreads(__tstate);
5198 if (PyErr_Occurred()) SWIG_fail;
5199 }
5200 resultobj = SWIG_Py_Void();
5201 return resultobj;
5202 fail:
5203 return NULL;
5204 }
5205
5206
5207 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5208 PyObject *resultobj = 0;
5209 wxPen *arg1 = (wxPen *) 0 ;
5210 int arg2 ;
5211 wxDash *arg3 = (wxDash *) 0 ;
5212 void *argp1 = 0 ;
5213 int res1 = 0 ;
5214 PyObject * obj0 = 0 ;
5215 PyObject * obj1 = 0 ;
5216 char * kwnames[] = {
5217 (char *) "self",(char *) "dashes", NULL
5218 };
5219
5220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5222 if (!SWIG_IsOK(res1)) {
5223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5224 }
5225 arg1 = reinterpret_cast< wxPen * >(argp1);
5226 {
5227 arg2 = PyList_Size(obj1);
5228 arg3 = (wxDash*)byte_LIST_helper(obj1);
5229 if (arg3 == NULL) SWIG_fail;
5230 }
5231 {
5232 PyThreadState* __tstate = wxPyBeginAllowThreads();
5233 (arg1)->SetDashes(arg2,arg3);
5234 wxPyEndAllowThreads(__tstate);
5235 if (PyErr_Occurred()) SWIG_fail;
5236 }
5237 resultobj = SWIG_Py_Void();
5238 {
5239 if (arg3) delete [] arg3;
5240 }
5241 return resultobj;
5242 fail:
5243 {
5244 if (arg3) delete [] arg3;
5245 }
5246 return NULL;
5247 }
5248
5249
5250 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5251 PyObject *resultobj = 0;
5252 wxPen *arg1 = (wxPen *) 0 ;
5253 PyObject *result = 0 ;
5254 void *argp1 = 0 ;
5255 int res1 = 0 ;
5256 PyObject *swig_obj[1] ;
5257
5258 if (!args) SWIG_fail;
5259 swig_obj[0] = args;
5260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5261 if (!SWIG_IsOK(res1)) {
5262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5263 }
5264 arg1 = reinterpret_cast< wxPen * >(argp1);
5265 {
5266 PyThreadState* __tstate = wxPyBeginAllowThreads();
5267 result = (PyObject *)wxPen_GetDashes(arg1);
5268 wxPyEndAllowThreads(__tstate);
5269 if (PyErr_Occurred()) SWIG_fail;
5270 }
5271 resultobj = result;
5272 return resultobj;
5273 fail:
5274 return NULL;
5275 }
5276
5277
5278 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5279 PyObject *resultobj = 0;
5280 wxPen *arg1 = (wxPen *) 0 ;
5281 PyObject *arg2 = (PyObject *) 0 ;
5282 PyObject *arg3 = (PyObject *) 0 ;
5283 void *argp1 = 0 ;
5284 int res1 = 0 ;
5285 PyObject * obj0 = 0 ;
5286 PyObject * obj1 = 0 ;
5287 PyObject * obj2 = 0 ;
5288 char * kwnames[] = {
5289 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5290 };
5291
5292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5294 if (!SWIG_IsOK(res1)) {
5295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5296 }
5297 arg1 = reinterpret_cast< wxPen * >(argp1);
5298 arg2 = obj1;
5299 arg3 = obj2;
5300 {
5301 PyThreadState* __tstate = wxPyBeginAllowThreads();
5302 wxPen__SetDashes(arg1,arg2,arg3);
5303 wxPyEndAllowThreads(__tstate);
5304 if (PyErr_Occurred()) SWIG_fail;
5305 }
5306 resultobj = SWIG_Py_Void();
5307 return resultobj;
5308 fail:
5309 return NULL;
5310 }
5311
5312
5313 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5314 PyObject *resultobj = 0;
5315 wxPen *arg1 = (wxPen *) 0 ;
5316 wxPen *arg2 = (wxPen *) 0 ;
5317 bool result;
5318 void *argp1 = 0 ;
5319 int res1 = 0 ;
5320 void *argp2 = 0 ;
5321 int res2 = 0 ;
5322 PyObject * obj0 = 0 ;
5323 PyObject * obj1 = 0 ;
5324 char * kwnames[] = {
5325 (char *) "self",(char *) "other", NULL
5326 };
5327
5328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5330 if (!SWIG_IsOK(res1)) {
5331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5332 }
5333 arg1 = reinterpret_cast< wxPen * >(argp1);
5334 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5335 if (!SWIG_IsOK(res2)) {
5336 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5337 }
5338 arg2 = reinterpret_cast< wxPen * >(argp2);
5339 {
5340 PyThreadState* __tstate = wxPyBeginAllowThreads();
5341 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5342 wxPyEndAllowThreads(__tstate);
5343 if (PyErr_Occurred()) SWIG_fail;
5344 }
5345 {
5346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5347 }
5348 return resultobj;
5349 fail:
5350 return NULL;
5351 }
5352
5353
5354 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5355 PyObject *resultobj = 0;
5356 wxPen *arg1 = (wxPen *) 0 ;
5357 wxPen *arg2 = (wxPen *) 0 ;
5358 bool result;
5359 void *argp1 = 0 ;
5360 int res1 = 0 ;
5361 void *argp2 = 0 ;
5362 int res2 = 0 ;
5363 PyObject * obj0 = 0 ;
5364 PyObject * obj1 = 0 ;
5365 char * kwnames[] = {
5366 (char *) "self",(char *) "other", NULL
5367 };
5368
5369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5371 if (!SWIG_IsOK(res1)) {
5372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5373 }
5374 arg1 = reinterpret_cast< wxPen * >(argp1);
5375 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5376 if (!SWIG_IsOK(res2)) {
5377 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5378 }
5379 arg2 = reinterpret_cast< wxPen * >(argp2);
5380 {
5381 PyThreadState* __tstate = wxPyBeginAllowThreads();
5382 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5383 wxPyEndAllowThreads(__tstate);
5384 if (PyErr_Occurred()) SWIG_fail;
5385 }
5386 {
5387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5388 }
5389 return resultobj;
5390 fail:
5391 return NULL;
5392 }
5393
5394
5395 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5396 PyObject *obj;
5397 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5398 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5399 return SWIG_Py_Void();
5400 }
5401
5402 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5403 return SWIG_Python_InitShadowInstance(args);
5404 }
5405
5406 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5407 PyObject *resultobj = 0;
5408 wxColour *arg1 = 0 ;
5409 int arg2 = (int) wxSOLID ;
5410 wxBrush *result = 0 ;
5411 wxColour temp1 ;
5412 int val2 ;
5413 int ecode2 = 0 ;
5414 PyObject * obj0 = 0 ;
5415 PyObject * obj1 = 0 ;
5416 char * kwnames[] = {
5417 (char *) "colour",(char *) "style", NULL
5418 };
5419
5420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5421 {
5422 arg1 = &temp1;
5423 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5424 }
5425 if (obj1) {
5426 ecode2 = SWIG_AsVal_int(obj1, &val2);
5427 if (!SWIG_IsOK(ecode2)) {
5428 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5429 }
5430 arg2 = static_cast< int >(val2);
5431 }
5432 {
5433 if (!wxPyCheckForApp()) SWIG_fail;
5434 PyThreadState* __tstate = wxPyBeginAllowThreads();
5435 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5436 wxPyEndAllowThreads(__tstate);
5437 if (PyErr_Occurred()) SWIG_fail;
5438 }
5439 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5440 return resultobj;
5441 fail:
5442 return NULL;
5443 }
5444
5445
5446 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5447 PyObject *resultobj = 0;
5448 wxBitmap *arg1 = 0 ;
5449 wxBrush *result = 0 ;
5450 void *argp1 = 0 ;
5451 int res1 = 0 ;
5452 PyObject * obj0 = 0 ;
5453 char * kwnames[] = {
5454 (char *) "stippleBitmap", NULL
5455 };
5456
5457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5458 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5459 if (!SWIG_IsOK(res1)) {
5460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5461 }
5462 if (!argp1) {
5463 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5464 }
5465 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5466 {
5467 if (!wxPyCheckForApp()) SWIG_fail;
5468 PyThreadState* __tstate = wxPyBeginAllowThreads();
5469 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5470 wxPyEndAllowThreads(__tstate);
5471 if (PyErr_Occurred()) SWIG_fail;
5472 }
5473 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5474 return resultobj;
5475 fail:
5476 return NULL;
5477 }
5478
5479
5480 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5481 PyObject *resultobj = 0;
5482 wxBrush *arg1 = (wxBrush *) 0 ;
5483 void *argp1 = 0 ;
5484 int res1 = 0 ;
5485 PyObject *swig_obj[1] ;
5486
5487 if (!args) SWIG_fail;
5488 swig_obj[0] = args;
5489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5490 if (!SWIG_IsOK(res1)) {
5491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5492 }
5493 arg1 = reinterpret_cast< wxBrush * >(argp1);
5494 {
5495 PyThreadState* __tstate = wxPyBeginAllowThreads();
5496 delete arg1;
5497
5498 wxPyEndAllowThreads(__tstate);
5499 if (PyErr_Occurred()) SWIG_fail;
5500 }
5501 resultobj = SWIG_Py_Void();
5502 return resultobj;
5503 fail:
5504 return NULL;
5505 }
5506
5507
5508 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5509 PyObject *resultobj = 0;
5510 wxBrush *arg1 = (wxBrush *) 0 ;
5511 wxColour *arg2 = 0 ;
5512 void *argp1 = 0 ;
5513 int res1 = 0 ;
5514 wxColour temp2 ;
5515 PyObject * obj0 = 0 ;
5516 PyObject * obj1 = 0 ;
5517 char * kwnames[] = {
5518 (char *) "self",(char *) "col", NULL
5519 };
5520
5521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5523 if (!SWIG_IsOK(res1)) {
5524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5525 }
5526 arg1 = reinterpret_cast< wxBrush * >(argp1);
5527 {
5528 arg2 = &temp2;
5529 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5530 }
5531 {
5532 PyThreadState* __tstate = wxPyBeginAllowThreads();
5533 (arg1)->SetColour((wxColour const &)*arg2);
5534 wxPyEndAllowThreads(__tstate);
5535 if (PyErr_Occurred()) SWIG_fail;
5536 }
5537 resultobj = SWIG_Py_Void();
5538 return resultobj;
5539 fail:
5540 return NULL;
5541 }
5542
5543
5544 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5545 PyObject *resultobj = 0;
5546 wxBrush *arg1 = (wxBrush *) 0 ;
5547 int arg2 ;
5548 void *argp1 = 0 ;
5549 int res1 = 0 ;
5550 int val2 ;
5551 int ecode2 = 0 ;
5552 PyObject * obj0 = 0 ;
5553 PyObject * obj1 = 0 ;
5554 char * kwnames[] = {
5555 (char *) "self",(char *) "style", NULL
5556 };
5557
5558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5560 if (!SWIG_IsOK(res1)) {
5561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5562 }
5563 arg1 = reinterpret_cast< wxBrush * >(argp1);
5564 ecode2 = SWIG_AsVal_int(obj1, &val2);
5565 if (!SWIG_IsOK(ecode2)) {
5566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5567 }
5568 arg2 = static_cast< int >(val2);
5569 {
5570 PyThreadState* __tstate = wxPyBeginAllowThreads();
5571 (arg1)->SetStyle(arg2);
5572 wxPyEndAllowThreads(__tstate);
5573 if (PyErr_Occurred()) SWIG_fail;
5574 }
5575 resultobj = SWIG_Py_Void();
5576 return resultobj;
5577 fail:
5578 return NULL;
5579 }
5580
5581
5582 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5583 PyObject *resultobj = 0;
5584 wxBrush *arg1 = (wxBrush *) 0 ;
5585 wxBitmap *arg2 = 0 ;
5586 void *argp1 = 0 ;
5587 int res1 = 0 ;
5588 void *argp2 = 0 ;
5589 int res2 = 0 ;
5590 PyObject * obj0 = 0 ;
5591 PyObject * obj1 = 0 ;
5592 char * kwnames[] = {
5593 (char *) "self",(char *) "stipple", NULL
5594 };
5595
5596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5598 if (!SWIG_IsOK(res1)) {
5599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5600 }
5601 arg1 = reinterpret_cast< wxBrush * >(argp1);
5602 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5603 if (!SWIG_IsOK(res2)) {
5604 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5605 }
5606 if (!argp2) {
5607 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5608 }
5609 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5610 {
5611 PyThreadState* __tstate = wxPyBeginAllowThreads();
5612 (arg1)->SetStipple((wxBitmap const &)*arg2);
5613 wxPyEndAllowThreads(__tstate);
5614 if (PyErr_Occurred()) SWIG_fail;
5615 }
5616 resultobj = SWIG_Py_Void();
5617 return resultobj;
5618 fail:
5619 return NULL;
5620 }
5621
5622
5623 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5624 PyObject *resultobj = 0;
5625 wxBrush *arg1 = (wxBrush *) 0 ;
5626 wxColour result;
5627 void *argp1 = 0 ;
5628 int res1 = 0 ;
5629 PyObject *swig_obj[1] ;
5630
5631 if (!args) SWIG_fail;
5632 swig_obj[0] = args;
5633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5634 if (!SWIG_IsOK(res1)) {
5635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5636 }
5637 arg1 = reinterpret_cast< wxBrush * >(argp1);
5638 {
5639 PyThreadState* __tstate = wxPyBeginAllowThreads();
5640 result = ((wxBrush const *)arg1)->GetColour();
5641 wxPyEndAllowThreads(__tstate);
5642 if (PyErr_Occurred()) SWIG_fail;
5643 }
5644 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5645 return resultobj;
5646 fail:
5647 return NULL;
5648 }
5649
5650
5651 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5652 PyObject *resultobj = 0;
5653 wxBrush *arg1 = (wxBrush *) 0 ;
5654 int result;
5655 void *argp1 = 0 ;
5656 int res1 = 0 ;
5657 PyObject *swig_obj[1] ;
5658
5659 if (!args) SWIG_fail;
5660 swig_obj[0] = args;
5661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5662 if (!SWIG_IsOK(res1)) {
5663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5664 }
5665 arg1 = reinterpret_cast< wxBrush * >(argp1);
5666 {
5667 PyThreadState* __tstate = wxPyBeginAllowThreads();
5668 result = (int)((wxBrush const *)arg1)->GetStyle();
5669 wxPyEndAllowThreads(__tstate);
5670 if (PyErr_Occurred()) SWIG_fail;
5671 }
5672 resultobj = SWIG_From_int(static_cast< int >(result));
5673 return resultobj;
5674 fail:
5675 return NULL;
5676 }
5677
5678
5679 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5680 PyObject *resultobj = 0;
5681 wxBrush *arg1 = (wxBrush *) 0 ;
5682 wxBitmap *result = 0 ;
5683 void *argp1 = 0 ;
5684 int res1 = 0 ;
5685 PyObject *swig_obj[1] ;
5686
5687 if (!args) SWIG_fail;
5688 swig_obj[0] = args;
5689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5690 if (!SWIG_IsOK(res1)) {
5691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5692 }
5693 arg1 = reinterpret_cast< wxBrush * >(argp1);
5694 {
5695 PyThreadState* __tstate = wxPyBeginAllowThreads();
5696 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5697 wxPyEndAllowThreads(__tstate);
5698 if (PyErr_Occurred()) SWIG_fail;
5699 }
5700 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5701 return resultobj;
5702 fail:
5703 return NULL;
5704 }
5705
5706
5707 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5708 PyObject *resultobj = 0;
5709 wxBrush *arg1 = (wxBrush *) 0 ;
5710 bool result;
5711 void *argp1 = 0 ;
5712 int res1 = 0 ;
5713 PyObject *swig_obj[1] ;
5714
5715 if (!args) SWIG_fail;
5716 swig_obj[0] = args;
5717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5718 if (!SWIG_IsOK(res1)) {
5719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5720 }
5721 arg1 = reinterpret_cast< wxBrush * >(argp1);
5722 {
5723 PyThreadState* __tstate = wxPyBeginAllowThreads();
5724 result = (bool)((wxBrush const *)arg1)->IsHatch();
5725 wxPyEndAllowThreads(__tstate);
5726 if (PyErr_Occurred()) SWIG_fail;
5727 }
5728 {
5729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5730 }
5731 return resultobj;
5732 fail:
5733 return NULL;
5734 }
5735
5736
5737 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5738 PyObject *resultobj = 0;
5739 wxBrush *arg1 = (wxBrush *) 0 ;
5740 bool result;
5741 void *argp1 = 0 ;
5742 int res1 = 0 ;
5743 PyObject *swig_obj[1] ;
5744
5745 if (!args) SWIG_fail;
5746 swig_obj[0] = args;
5747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5748 if (!SWIG_IsOK(res1)) {
5749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
5750 }
5751 arg1 = reinterpret_cast< wxBrush * >(argp1);
5752 {
5753 PyThreadState* __tstate = wxPyBeginAllowThreads();
5754 result = (bool)(arg1)->IsOk();
5755 wxPyEndAllowThreads(__tstate);
5756 if (PyErr_Occurred()) SWIG_fail;
5757 }
5758 {
5759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5760 }
5761 return resultobj;
5762 fail:
5763 return NULL;
5764 }
5765
5766
5767 SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5768 PyObject *resultobj = 0;
5769 wxBrush *arg1 = (wxBrush *) 0 ;
5770 short result;
5771 void *argp1 = 0 ;
5772 int res1 = 0 ;
5773 PyObject *swig_obj[1] ;
5774
5775 if (!args) SWIG_fail;
5776 swig_obj[0] = args;
5777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5778 if (!SWIG_IsOK(res1)) {
5779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5780 }
5781 arg1 = reinterpret_cast< wxBrush * >(argp1);
5782 {
5783 PyThreadState* __tstate = wxPyBeginAllowThreads();
5784 result = (short)(arg1)->MacGetTheme();
5785 wxPyEndAllowThreads(__tstate);
5786 if (PyErr_Occurred()) SWIG_fail;
5787 }
5788 resultobj = SWIG_From_short(static_cast< short >(result));
5789 return resultobj;
5790 fail:
5791 return NULL;
5792 }
5793
5794
5795 SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5796 PyObject *resultobj = 0;
5797 wxBrush *arg1 = (wxBrush *) 0 ;
5798 short arg2 ;
5799 void *argp1 = 0 ;
5800 int res1 = 0 ;
5801 short val2 ;
5802 int ecode2 = 0 ;
5803 PyObject * obj0 = 0 ;
5804 PyObject * obj1 = 0 ;
5805 char * kwnames[] = {
5806 (char *) "self",(char *) "macThemeBrush", NULL
5807 };
5808
5809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
5810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5811 if (!SWIG_IsOK(res1)) {
5812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5813 }
5814 arg1 = reinterpret_cast< wxBrush * >(argp1);
5815 ecode2 = SWIG_AsVal_short(obj1, &val2);
5816 if (!SWIG_IsOK(ecode2)) {
5817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
5818 }
5819 arg2 = static_cast< short >(val2);
5820 {
5821 PyThreadState* __tstate = wxPyBeginAllowThreads();
5822 (arg1)->MacSetTheme(arg2);
5823 wxPyEndAllowThreads(__tstate);
5824 if (PyErr_Occurred()) SWIG_fail;
5825 }
5826 resultobj = SWIG_Py_Void();
5827 return resultobj;
5828 fail:
5829 return NULL;
5830 }
5831
5832
5833 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5834 PyObject *obj;
5835 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5836 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5837 return SWIG_Py_Void();
5838 }
5839
5840 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5841 return SWIG_Python_InitShadowInstance(args);
5842 }
5843
5844 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5845 PyObject *resultobj = 0;
5846 wxString *arg1 = 0 ;
5847 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5848 wxBitmap *result = 0 ;
5849 bool temp1 = false ;
5850 int val2 ;
5851 int ecode2 = 0 ;
5852 PyObject * obj0 = 0 ;
5853 PyObject * obj1 = 0 ;
5854 char * kwnames[] = {
5855 (char *) "name",(char *) "type", NULL
5856 };
5857
5858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5859 {
5860 arg1 = wxString_in_helper(obj0);
5861 if (arg1 == NULL) SWIG_fail;
5862 temp1 = true;
5863 }
5864 if (obj1) {
5865 ecode2 = SWIG_AsVal_int(obj1, &val2);
5866 if (!SWIG_IsOK(ecode2)) {
5867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5868 }
5869 arg2 = static_cast< wxBitmapType >(val2);
5870 }
5871 {
5872 if (!wxPyCheckForApp()) SWIG_fail;
5873 PyThreadState* __tstate = wxPyBeginAllowThreads();
5874 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5875 wxPyEndAllowThreads(__tstate);
5876 if (PyErr_Occurred()) SWIG_fail;
5877 }
5878 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5879 {
5880 if (temp1)
5881 delete arg1;
5882 }
5883 return resultobj;
5884 fail:
5885 {
5886 if (temp1)
5887 delete arg1;
5888 }
5889 return NULL;
5890 }
5891
5892
5893 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5894 PyObject *resultobj = 0;
5895 wxBitmap *arg1 = (wxBitmap *) 0 ;
5896 void *argp1 = 0 ;
5897 int res1 = 0 ;
5898 PyObject *swig_obj[1] ;
5899
5900 if (!args) SWIG_fail;
5901 swig_obj[0] = args;
5902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5903 if (!SWIG_IsOK(res1)) {
5904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5905 }
5906 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5907 {
5908 delete arg1;
5909
5910 if (PyErr_Occurred()) SWIG_fail;
5911 }
5912 resultobj = SWIG_Py_Void();
5913 return resultobj;
5914 fail:
5915 return NULL;
5916 }
5917
5918
5919 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5920 PyObject *resultobj = 0;
5921 int arg1 ;
5922 int arg2 ;
5923 int arg3 = (int) -1 ;
5924 wxBitmap *result = 0 ;
5925 int val1 ;
5926 int ecode1 = 0 ;
5927 int val2 ;
5928 int ecode2 = 0 ;
5929 int val3 ;
5930 int ecode3 = 0 ;
5931 PyObject * obj0 = 0 ;
5932 PyObject * obj1 = 0 ;
5933 PyObject * obj2 = 0 ;
5934 char * kwnames[] = {
5935 (char *) "width",(char *) "height",(char *) "depth", NULL
5936 };
5937
5938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5939 ecode1 = SWIG_AsVal_int(obj0, &val1);
5940 if (!SWIG_IsOK(ecode1)) {
5941 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5942 }
5943 arg1 = static_cast< int >(val1);
5944 ecode2 = SWIG_AsVal_int(obj1, &val2);
5945 if (!SWIG_IsOK(ecode2)) {
5946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5947 }
5948 arg2 = static_cast< int >(val2);
5949 if (obj2) {
5950 ecode3 = SWIG_AsVal_int(obj2, &val3);
5951 if (!SWIG_IsOK(ecode3)) {
5952 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5953 }
5954 arg3 = static_cast< int >(val3);
5955 }
5956 {
5957 if (!wxPyCheckForApp()) SWIG_fail;
5958 PyThreadState* __tstate = wxPyBeginAllowThreads();
5959 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5960 wxPyEndAllowThreads(__tstate);
5961 if (PyErr_Occurred()) SWIG_fail;
5962 }
5963 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5964 return resultobj;
5965 fail:
5966 return NULL;
5967 }
5968
5969
5970 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5971 PyObject *resultobj = 0;
5972 wxIcon *arg1 = 0 ;
5973 wxBitmap *result = 0 ;
5974 void *argp1 = 0 ;
5975 int res1 = 0 ;
5976 PyObject * obj0 = 0 ;
5977 char * kwnames[] = {
5978 (char *) "icon", NULL
5979 };
5980
5981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5982 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5983 if (!SWIG_IsOK(res1)) {
5984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5985 }
5986 if (!argp1) {
5987 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5988 }
5989 arg1 = reinterpret_cast< wxIcon * >(argp1);
5990 {
5991 if (!wxPyCheckForApp()) SWIG_fail;
5992 PyThreadState* __tstate = wxPyBeginAllowThreads();
5993 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5994 wxPyEndAllowThreads(__tstate);
5995 if (PyErr_Occurred()) SWIG_fail;
5996 }
5997 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5998 return resultobj;
5999 fail:
6000 return NULL;
6001 }
6002
6003
6004 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6005 PyObject *resultobj = 0;
6006 wxImage *arg1 = 0 ;
6007 int arg2 = (int) -1 ;
6008 wxBitmap *result = 0 ;
6009 void *argp1 = 0 ;
6010 int res1 = 0 ;
6011 int val2 ;
6012 int ecode2 = 0 ;
6013 PyObject * obj0 = 0 ;
6014 PyObject * obj1 = 0 ;
6015 char * kwnames[] = {
6016 (char *) "image",(char *) "depth", NULL
6017 };
6018
6019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6020 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6021 if (!SWIG_IsOK(res1)) {
6022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6023 }
6024 if (!argp1) {
6025 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6026 }
6027 arg1 = reinterpret_cast< wxImage * >(argp1);
6028 if (obj1) {
6029 ecode2 = SWIG_AsVal_int(obj1, &val2);
6030 if (!SWIG_IsOK(ecode2)) {
6031 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6032 }
6033 arg2 = static_cast< int >(val2);
6034 }
6035 {
6036 if (!wxPyCheckForApp()) SWIG_fail;
6037 PyThreadState* __tstate = wxPyBeginAllowThreads();
6038 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6039 wxPyEndAllowThreads(__tstate);
6040 if (PyErr_Occurred()) SWIG_fail;
6041 }
6042 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6043 return resultobj;
6044 fail:
6045 return NULL;
6046 }
6047
6048
6049 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6050 PyObject *resultobj = 0;
6051 PyObject *arg1 = (PyObject *) 0 ;
6052 wxBitmap *result = 0 ;
6053 PyObject * obj0 = 0 ;
6054 char * kwnames[] = {
6055 (char *) "listOfStrings", NULL
6056 };
6057
6058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6059 arg1 = obj0;
6060 {
6061 if (!wxPyCheckForApp()) SWIG_fail;
6062 PyThreadState* __tstate = wxPyBeginAllowThreads();
6063 result = (wxBitmap *)new_wxBitmap(arg1);
6064 wxPyEndAllowThreads(__tstate);
6065 if (PyErr_Occurred()) SWIG_fail;
6066 }
6067 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6068 return resultobj;
6069 fail:
6070 return NULL;
6071 }
6072
6073
6074 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6075 PyObject *resultobj = 0;
6076 PyObject *arg1 = (PyObject *) 0 ;
6077 int arg2 ;
6078 int arg3 ;
6079 int arg4 = (int) 1 ;
6080 wxBitmap *result = 0 ;
6081 int val2 ;
6082 int ecode2 = 0 ;
6083 int val3 ;
6084 int ecode3 = 0 ;
6085 int val4 ;
6086 int ecode4 = 0 ;
6087 PyObject * obj0 = 0 ;
6088 PyObject * obj1 = 0 ;
6089 PyObject * obj2 = 0 ;
6090 PyObject * obj3 = 0 ;
6091 char * kwnames[] = {
6092 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6093 };
6094
6095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6096 arg1 = obj0;
6097 ecode2 = SWIG_AsVal_int(obj1, &val2);
6098 if (!SWIG_IsOK(ecode2)) {
6099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6100 }
6101 arg2 = static_cast< int >(val2);
6102 ecode3 = SWIG_AsVal_int(obj2, &val3);
6103 if (!SWIG_IsOK(ecode3)) {
6104 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6105 }
6106 arg3 = static_cast< int >(val3);
6107 if (obj3) {
6108 ecode4 = SWIG_AsVal_int(obj3, &val4);
6109 if (!SWIG_IsOK(ecode4)) {
6110 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6111 }
6112 arg4 = static_cast< int >(val4);
6113 }
6114 {
6115 if (!wxPyCheckForApp()) SWIG_fail;
6116 PyThreadState* __tstate = wxPyBeginAllowThreads();
6117 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6118 wxPyEndAllowThreads(__tstate);
6119 if (PyErr_Occurred()) SWIG_fail;
6120 }
6121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6122 return resultobj;
6123 fail:
6124 return NULL;
6125 }
6126
6127
6128 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6129 PyObject *resultobj = 0;
6130 wxBitmap *arg1 = (wxBitmap *) 0 ;
6131 bool result;
6132 void *argp1 = 0 ;
6133 int res1 = 0 ;
6134 PyObject *swig_obj[1] ;
6135
6136 if (!args) SWIG_fail;
6137 swig_obj[0] = args;
6138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6139 if (!SWIG_IsOK(res1)) {
6140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6141 }
6142 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6143 {
6144 result = (bool)(arg1)->IsOk();
6145 if (PyErr_Occurred()) SWIG_fail;
6146 }
6147 {
6148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6149 }
6150 return resultobj;
6151 fail:
6152 return NULL;
6153 }
6154
6155
6156 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6157 PyObject *resultobj = 0;
6158 wxBitmap *arg1 = (wxBitmap *) 0 ;
6159 int result;
6160 void *argp1 = 0 ;
6161 int res1 = 0 ;
6162 PyObject *swig_obj[1] ;
6163
6164 if (!args) SWIG_fail;
6165 swig_obj[0] = args;
6166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6167 if (!SWIG_IsOK(res1)) {
6168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6169 }
6170 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6171 {
6172 result = (int)(arg1)->GetWidth();
6173 if (PyErr_Occurred()) SWIG_fail;
6174 }
6175 resultobj = SWIG_From_int(static_cast< int >(result));
6176 return resultobj;
6177 fail:
6178 return NULL;
6179 }
6180
6181
6182 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6183 PyObject *resultobj = 0;
6184 wxBitmap *arg1 = (wxBitmap *) 0 ;
6185 int result;
6186 void *argp1 = 0 ;
6187 int res1 = 0 ;
6188 PyObject *swig_obj[1] ;
6189
6190 if (!args) SWIG_fail;
6191 swig_obj[0] = args;
6192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6193 if (!SWIG_IsOK(res1)) {
6194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6195 }
6196 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6197 {
6198 result = (int)(arg1)->GetHeight();
6199 if (PyErr_Occurred()) SWIG_fail;
6200 }
6201 resultobj = SWIG_From_int(static_cast< int >(result));
6202 return resultobj;
6203 fail:
6204 return NULL;
6205 }
6206
6207
6208 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6209 PyObject *resultobj = 0;
6210 wxBitmap *arg1 = (wxBitmap *) 0 ;
6211 int result;
6212 void *argp1 = 0 ;
6213 int res1 = 0 ;
6214 PyObject *swig_obj[1] ;
6215
6216 if (!args) SWIG_fail;
6217 swig_obj[0] = args;
6218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6219 if (!SWIG_IsOK(res1)) {
6220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6221 }
6222 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6223 {
6224 result = (int)(arg1)->GetDepth();
6225 if (PyErr_Occurred()) SWIG_fail;
6226 }
6227 resultobj = SWIG_From_int(static_cast< int >(result));
6228 return resultobj;
6229 fail:
6230 return NULL;
6231 }
6232
6233
6234 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6235 PyObject *resultobj = 0;
6236 wxBitmap *arg1 = (wxBitmap *) 0 ;
6237 wxSize result;
6238 void *argp1 = 0 ;
6239 int res1 = 0 ;
6240 PyObject *swig_obj[1] ;
6241
6242 if (!args) SWIG_fail;
6243 swig_obj[0] = args;
6244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6245 if (!SWIG_IsOK(res1)) {
6246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6247 }
6248 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6249 {
6250 result = wxBitmap_GetSize(arg1);
6251 if (PyErr_Occurred()) SWIG_fail;
6252 }
6253 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6254 return resultobj;
6255 fail:
6256 return NULL;
6257 }
6258
6259
6260 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6261 PyObject *resultobj = 0;
6262 wxBitmap *arg1 = (wxBitmap *) 0 ;
6263 SwigValueWrapper<wxImage > result;
6264 void *argp1 = 0 ;
6265 int res1 = 0 ;
6266 PyObject *swig_obj[1] ;
6267
6268 if (!args) SWIG_fail;
6269 swig_obj[0] = args;
6270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6271 if (!SWIG_IsOK(res1)) {
6272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6273 }
6274 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6275 {
6276 result = ((wxBitmap const *)arg1)->ConvertToImage();
6277 if (PyErr_Occurred()) SWIG_fail;
6278 }
6279 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6280 return resultobj;
6281 fail:
6282 return NULL;
6283 }
6284
6285
6286 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6287 PyObject *resultobj = 0;
6288 wxBitmap *arg1 = (wxBitmap *) 0 ;
6289 wxMask *result = 0 ;
6290 void *argp1 = 0 ;
6291 int res1 = 0 ;
6292 PyObject *swig_obj[1] ;
6293
6294 if (!args) SWIG_fail;
6295 swig_obj[0] = args;
6296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6297 if (!SWIG_IsOK(res1)) {
6298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6299 }
6300 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6301 {
6302 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6303 if (PyErr_Occurred()) SWIG_fail;
6304 }
6305 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6306 return resultobj;
6307 fail:
6308 return NULL;
6309 }
6310
6311
6312 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6313 PyObject *resultobj = 0;
6314 wxBitmap *arg1 = (wxBitmap *) 0 ;
6315 wxMask *arg2 = (wxMask *) 0 ;
6316 void *argp1 = 0 ;
6317 int res1 = 0 ;
6318 int res2 = 0 ;
6319 PyObject * obj0 = 0 ;
6320 PyObject * obj1 = 0 ;
6321 char * kwnames[] = {
6322 (char *) "self",(char *) "mask", NULL
6323 };
6324
6325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6327 if (!SWIG_IsOK(res1)) {
6328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6329 }
6330 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6331 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6332 if (!SWIG_IsOK(res2)) {
6333 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6334 }
6335 {
6336 (arg1)->SetMask(arg2);
6337 if (PyErr_Occurred()) SWIG_fail;
6338 }
6339 resultobj = SWIG_Py_Void();
6340 return resultobj;
6341 fail:
6342 return NULL;
6343 }
6344
6345
6346 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6347 PyObject *resultobj = 0;
6348 wxBitmap *arg1 = (wxBitmap *) 0 ;
6349 wxColour *arg2 = 0 ;
6350 void *argp1 = 0 ;
6351 int res1 = 0 ;
6352 wxColour temp2 ;
6353 PyObject * obj0 = 0 ;
6354 PyObject * obj1 = 0 ;
6355 char * kwnames[] = {
6356 (char *) "self",(char *) "colour", NULL
6357 };
6358
6359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6361 if (!SWIG_IsOK(res1)) {
6362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6363 }
6364 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6365 {
6366 arg2 = &temp2;
6367 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6368 }
6369 {
6370 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6371 if (PyErr_Occurred()) SWIG_fail;
6372 }
6373 resultobj = SWIG_Py_Void();
6374 return resultobj;
6375 fail:
6376 return NULL;
6377 }
6378
6379
6380 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6381 PyObject *resultobj = 0;
6382 wxBitmap *arg1 = (wxBitmap *) 0 ;
6383 wxRect *arg2 = 0 ;
6384 SwigValueWrapper<wxBitmap > result;
6385 void *argp1 = 0 ;
6386 int res1 = 0 ;
6387 wxRect temp2 ;
6388 PyObject * obj0 = 0 ;
6389 PyObject * obj1 = 0 ;
6390 char * kwnames[] = {
6391 (char *) "self",(char *) "rect", NULL
6392 };
6393
6394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6396 if (!SWIG_IsOK(res1)) {
6397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6398 }
6399 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6400 {
6401 arg2 = &temp2;
6402 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6403 }
6404 {
6405 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6406 if (PyErr_Occurred()) SWIG_fail;
6407 }
6408 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6409 return resultobj;
6410 fail:
6411 return NULL;
6412 }
6413
6414
6415 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6416 PyObject *resultobj = 0;
6417 wxBitmap *arg1 = (wxBitmap *) 0 ;
6418 wxString *arg2 = 0 ;
6419 wxBitmapType arg3 ;
6420 wxPalette *arg4 = (wxPalette *) NULL ;
6421 bool result;
6422 void *argp1 = 0 ;
6423 int res1 = 0 ;
6424 bool temp2 = false ;
6425 int val3 ;
6426 int ecode3 = 0 ;
6427 void *argp4 = 0 ;
6428 int res4 = 0 ;
6429 PyObject * obj0 = 0 ;
6430 PyObject * obj1 = 0 ;
6431 PyObject * obj2 = 0 ;
6432 PyObject * obj3 = 0 ;
6433 char * kwnames[] = {
6434 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6435 };
6436
6437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6439 if (!SWIG_IsOK(res1)) {
6440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6441 }
6442 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6443 {
6444 arg2 = wxString_in_helper(obj1);
6445 if (arg2 == NULL) SWIG_fail;
6446 temp2 = true;
6447 }
6448 ecode3 = SWIG_AsVal_int(obj2, &val3);
6449 if (!SWIG_IsOK(ecode3)) {
6450 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6451 }
6452 arg3 = static_cast< wxBitmapType >(val3);
6453 if (obj3) {
6454 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6455 if (!SWIG_IsOK(res4)) {
6456 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6457 }
6458 arg4 = reinterpret_cast< wxPalette * >(argp4);
6459 }
6460 {
6461 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6462 if (PyErr_Occurred()) SWIG_fail;
6463 }
6464 {
6465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6466 }
6467 {
6468 if (temp2)
6469 delete arg2;
6470 }
6471 return resultobj;
6472 fail:
6473 {
6474 if (temp2)
6475 delete arg2;
6476 }
6477 return NULL;
6478 }
6479
6480
6481 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6482 PyObject *resultobj = 0;
6483 wxBitmap *arg1 = (wxBitmap *) 0 ;
6484 wxString *arg2 = 0 ;
6485 wxBitmapType arg3 ;
6486 bool result;
6487 void *argp1 = 0 ;
6488 int res1 = 0 ;
6489 bool temp2 = false ;
6490 int val3 ;
6491 int ecode3 = 0 ;
6492 PyObject * obj0 = 0 ;
6493 PyObject * obj1 = 0 ;
6494 PyObject * obj2 = 0 ;
6495 char * kwnames[] = {
6496 (char *) "self",(char *) "name",(char *) "type", NULL
6497 };
6498
6499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6501 if (!SWIG_IsOK(res1)) {
6502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6503 }
6504 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6505 {
6506 arg2 = wxString_in_helper(obj1);
6507 if (arg2 == NULL) SWIG_fail;
6508 temp2 = true;
6509 }
6510 ecode3 = SWIG_AsVal_int(obj2, &val3);
6511 if (!SWIG_IsOK(ecode3)) {
6512 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6513 }
6514 arg3 = static_cast< wxBitmapType >(val3);
6515 {
6516 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6517 if (PyErr_Occurred()) SWIG_fail;
6518 }
6519 {
6520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6521 }
6522 {
6523 if (temp2)
6524 delete arg2;
6525 }
6526 return resultobj;
6527 fail:
6528 {
6529 if (temp2)
6530 delete arg2;
6531 }
6532 return NULL;
6533 }
6534
6535
6536 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6537 PyObject *resultobj = 0;
6538 wxBitmap *arg1 = (wxBitmap *) 0 ;
6539 wxPalette *result = 0 ;
6540 void *argp1 = 0 ;
6541 int res1 = 0 ;
6542 PyObject *swig_obj[1] ;
6543
6544 if (!args) SWIG_fail;
6545 swig_obj[0] = args;
6546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6547 if (!SWIG_IsOK(res1)) {
6548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6549 }
6550 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6551 {
6552 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6553 if (PyErr_Occurred()) SWIG_fail;
6554 }
6555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6556 return resultobj;
6557 fail:
6558 return NULL;
6559 }
6560
6561
6562 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6563 PyObject *resultobj = 0;
6564 wxBitmap *arg1 = (wxBitmap *) 0 ;
6565 wxIcon *arg2 = 0 ;
6566 bool result;
6567 void *argp1 = 0 ;
6568 int res1 = 0 ;
6569 void *argp2 = 0 ;
6570 int res2 = 0 ;
6571 PyObject * obj0 = 0 ;
6572 PyObject * obj1 = 0 ;
6573 char * kwnames[] = {
6574 (char *) "self",(char *) "icon", NULL
6575 };
6576
6577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6579 if (!SWIG_IsOK(res1)) {
6580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6581 }
6582 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6583 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6584 if (!SWIG_IsOK(res2)) {
6585 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6586 }
6587 if (!argp2) {
6588 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6589 }
6590 arg2 = reinterpret_cast< wxIcon * >(argp2);
6591 {
6592 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6593 if (PyErr_Occurred()) SWIG_fail;
6594 }
6595 {
6596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6597 }
6598 return resultobj;
6599 fail:
6600 return NULL;
6601 }
6602
6603
6604 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6605 PyObject *resultobj = 0;
6606 wxBitmap *arg1 = (wxBitmap *) 0 ;
6607 int arg2 ;
6608 void *argp1 = 0 ;
6609 int res1 = 0 ;
6610 int val2 ;
6611 int ecode2 = 0 ;
6612 PyObject * obj0 = 0 ;
6613 PyObject * obj1 = 0 ;
6614 char * kwnames[] = {
6615 (char *) "self",(char *) "height", NULL
6616 };
6617
6618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6620 if (!SWIG_IsOK(res1)) {
6621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6622 }
6623 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6624 ecode2 = SWIG_AsVal_int(obj1, &val2);
6625 if (!SWIG_IsOK(ecode2)) {
6626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6627 }
6628 arg2 = static_cast< int >(val2);
6629 {
6630 (arg1)->SetHeight(arg2);
6631 if (PyErr_Occurred()) SWIG_fail;
6632 }
6633 resultobj = SWIG_Py_Void();
6634 return resultobj;
6635 fail:
6636 return NULL;
6637 }
6638
6639
6640 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6641 PyObject *resultobj = 0;
6642 wxBitmap *arg1 = (wxBitmap *) 0 ;
6643 int arg2 ;
6644 void *argp1 = 0 ;
6645 int res1 = 0 ;
6646 int val2 ;
6647 int ecode2 = 0 ;
6648 PyObject * obj0 = 0 ;
6649 PyObject * obj1 = 0 ;
6650 char * kwnames[] = {
6651 (char *) "self",(char *) "width", NULL
6652 };
6653
6654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6656 if (!SWIG_IsOK(res1)) {
6657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6658 }
6659 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6660 ecode2 = SWIG_AsVal_int(obj1, &val2);
6661 if (!SWIG_IsOK(ecode2)) {
6662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6663 }
6664 arg2 = static_cast< int >(val2);
6665 {
6666 (arg1)->SetWidth(arg2);
6667 if (PyErr_Occurred()) SWIG_fail;
6668 }
6669 resultobj = SWIG_Py_Void();
6670 return resultobj;
6671 fail:
6672 return NULL;
6673 }
6674
6675
6676 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6677 PyObject *resultobj = 0;
6678 wxBitmap *arg1 = (wxBitmap *) 0 ;
6679 int arg2 ;
6680 void *argp1 = 0 ;
6681 int res1 = 0 ;
6682 int val2 ;
6683 int ecode2 = 0 ;
6684 PyObject * obj0 = 0 ;
6685 PyObject * obj1 = 0 ;
6686 char * kwnames[] = {
6687 (char *) "self",(char *) "depth", NULL
6688 };
6689
6690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6692 if (!SWIG_IsOK(res1)) {
6693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6694 }
6695 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6696 ecode2 = SWIG_AsVal_int(obj1, &val2);
6697 if (!SWIG_IsOK(ecode2)) {
6698 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6699 }
6700 arg2 = static_cast< int >(val2);
6701 {
6702 (arg1)->SetDepth(arg2);
6703 if (PyErr_Occurred()) SWIG_fail;
6704 }
6705 resultobj = SWIG_Py_Void();
6706 return resultobj;
6707 fail:
6708 return NULL;
6709 }
6710
6711
6712 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6713 PyObject *resultobj = 0;
6714 wxBitmap *arg1 = (wxBitmap *) 0 ;
6715 wxSize *arg2 = 0 ;
6716 void *argp1 = 0 ;
6717 int res1 = 0 ;
6718 wxSize temp2 ;
6719 PyObject * obj0 = 0 ;
6720 PyObject * obj1 = 0 ;
6721 char * kwnames[] = {
6722 (char *) "self",(char *) "size", NULL
6723 };
6724
6725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6727 if (!SWIG_IsOK(res1)) {
6728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6729 }
6730 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6731 {
6732 arg2 = &temp2;
6733 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6734 }
6735 {
6736 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6737 if (PyErr_Occurred()) SWIG_fail;
6738 }
6739 resultobj = SWIG_Py_Void();
6740 return resultobj;
6741 fail:
6742 return NULL;
6743 }
6744
6745
6746 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6747 PyObject *resultobj = 0;
6748 wxBitmap *arg1 = (wxBitmap *) 0 ;
6749 wxBitmap *arg2 = (wxBitmap *) 0 ;
6750 bool result;
6751 void *argp1 = 0 ;
6752 int res1 = 0 ;
6753 void *argp2 = 0 ;
6754 int res2 = 0 ;
6755 PyObject * obj0 = 0 ;
6756 PyObject * obj1 = 0 ;
6757 char * kwnames[] = {
6758 (char *) "self",(char *) "other", NULL
6759 };
6760
6761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6763 if (!SWIG_IsOK(res1)) {
6764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6765 }
6766 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6767 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6768 if (!SWIG_IsOK(res2)) {
6769 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6770 }
6771 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6772 {
6773 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6774 if (PyErr_Occurred()) SWIG_fail;
6775 }
6776 {
6777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6778 }
6779 return resultobj;
6780 fail:
6781 return NULL;
6782 }
6783
6784
6785 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6786 PyObject *resultobj = 0;
6787 wxBitmap *arg1 = (wxBitmap *) 0 ;
6788 wxBitmap *arg2 = (wxBitmap *) 0 ;
6789 bool result;
6790 void *argp1 = 0 ;
6791 int res1 = 0 ;
6792 void *argp2 = 0 ;
6793 int res2 = 0 ;
6794 PyObject * obj0 = 0 ;
6795 PyObject * obj1 = 0 ;
6796 char * kwnames[] = {
6797 (char *) "self",(char *) "other", NULL
6798 };
6799
6800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6802 if (!SWIG_IsOK(res1)) {
6803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6804 }
6805 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6806 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6807 if (!SWIG_IsOK(res2)) {
6808 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6809 }
6810 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6811 {
6812 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6813 if (PyErr_Occurred()) SWIG_fail;
6814 }
6815 {
6816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6817 }
6818 return resultobj;
6819 fail:
6820 return NULL;
6821 }
6822
6823
6824 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6825 PyObject *obj;
6826 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6827 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6828 return SWIG_Py_Void();
6829 }
6830
6831 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6832 return SWIG_Python_InitShadowInstance(args);
6833 }
6834
6835 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6836 PyObject *resultobj = 0;
6837 int arg1 ;
6838 int arg2 ;
6839 buffer arg3 ;
6840 int arg4 ;
6841 buffer arg5 ;
6842 int arg6 ;
6843 wxBitmap *result = 0 ;
6844 int val1 ;
6845 int ecode1 = 0 ;
6846 int val2 ;
6847 int ecode2 = 0 ;
6848 Py_ssize_t temp3 ;
6849 Py_ssize_t temp5 ;
6850 PyObject * obj0 = 0 ;
6851 PyObject * obj1 = 0 ;
6852 PyObject * obj2 = 0 ;
6853 PyObject * obj3 = 0 ;
6854 char * kwnames[] = {
6855 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
6856 };
6857
6858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6859 ecode1 = SWIG_AsVal_int(obj0, &val1);
6860 if (!SWIG_IsOK(ecode1)) {
6861 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
6862 }
6863 arg1 = static_cast< int >(val1);
6864 ecode2 = SWIG_AsVal_int(obj1, &val2);
6865 if (!SWIG_IsOK(ecode2)) {
6866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
6867 }
6868 arg2 = static_cast< int >(val2);
6869 {
6870 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6871 arg4 = (int)temp3;
6872 }
6873 {
6874 if (obj3 != Py_None) {
6875 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
6876 arg6 = (int)temp5;
6877 }
6878 }
6879 {
6880 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
6881 if (PyErr_Occurred()) SWIG_fail;
6882 }
6883 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6884 return resultobj;
6885 fail:
6886 return NULL;
6887 }
6888
6889
6890 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6891 PyObject *resultobj = 0;
6892 int arg1 ;
6893 int arg2 ;
6894 buffer arg3 ;
6895 int arg4 ;
6896 wxBitmap *result = 0 ;
6897 int val1 ;
6898 int ecode1 = 0 ;
6899 int val2 ;
6900 int ecode2 = 0 ;
6901 Py_ssize_t temp3 ;
6902 PyObject * obj0 = 0 ;
6903 PyObject * obj1 = 0 ;
6904 PyObject * obj2 = 0 ;
6905 char * kwnames[] = {
6906 (char *) "width",(char *) "height",(char *) "data", NULL
6907 };
6908
6909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6910 ecode1 = SWIG_AsVal_int(obj0, &val1);
6911 if (!SWIG_IsOK(ecode1)) {
6912 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
6913 }
6914 arg1 = static_cast< int >(val1);
6915 ecode2 = SWIG_AsVal_int(obj1, &val2);
6916 if (!SWIG_IsOK(ecode2)) {
6917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
6918 }
6919 arg2 = static_cast< int >(val2);
6920 {
6921 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6922 arg4 = (int)temp3;
6923 }
6924 {
6925 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
6926 if (PyErr_Occurred()) SWIG_fail;
6927 }
6928 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6929 return resultobj;
6930 fail:
6931 return NULL;
6932 }
6933
6934
6935 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6936 PyObject *resultobj = 0;
6937 int arg1 ;
6938 int arg2 ;
6939 buffer arg3 ;
6940 int arg4 ;
6941 wxBitmap *result = 0 ;
6942 int val1 ;
6943 int ecode1 = 0 ;
6944 int val2 ;
6945 int ecode2 = 0 ;
6946 Py_ssize_t temp3 ;
6947 PyObject * obj0 = 0 ;
6948 PyObject * obj1 = 0 ;
6949 PyObject * obj2 = 0 ;
6950 char * kwnames[] = {
6951 (char *) "width",(char *) "height",(char *) "data", NULL
6952 };
6953
6954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6955 ecode1 = SWIG_AsVal_int(obj0, &val1);
6956 if (!SWIG_IsOK(ecode1)) {
6957 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
6958 }
6959 arg1 = static_cast< int >(val1);
6960 ecode2 = SWIG_AsVal_int(obj1, &val2);
6961 if (!SWIG_IsOK(ecode2)) {
6962 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
6963 }
6964 arg2 = static_cast< int >(val2);
6965 {
6966 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6967 arg4 = (int)temp3;
6968 }
6969 {
6970 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
6971 if (PyErr_Occurred()) SWIG_fail;
6972 }
6973 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6974 return resultobj;
6975 fail:
6976 return NULL;
6977 }
6978
6979
6980 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6981 PyObject *resultobj = 0;
6982 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6983 wxPoint result;
6984 void *argp1 = 0 ;
6985 int res1 = 0 ;
6986 PyObject *swig_obj[1] ;
6987
6988 if (!args) SWIG_fail;
6989 swig_obj[0] = args;
6990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6991 if (!SWIG_IsOK(res1)) {
6992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6993 }
6994 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6995 {
6996 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
6997 if (PyErr_Occurred()) SWIG_fail;
6998 }
6999 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7000 return resultobj;
7001 fail:
7002 return NULL;
7003 }
7004
7005
7006 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7007 PyObject *resultobj = 0;
7008 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7009 int result;
7010 void *argp1 = 0 ;
7011 int res1 = 0 ;
7012 PyObject *swig_obj[1] ;
7013
7014 if (!args) SWIG_fail;
7015 swig_obj[0] = args;
7016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7017 if (!SWIG_IsOK(res1)) {
7018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7019 }
7020 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7021 {
7022 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7023 if (PyErr_Occurred()) SWIG_fail;
7024 }
7025 resultobj = SWIG_From_int(static_cast< int >(result));
7026 return resultobj;
7027 fail:
7028 return NULL;
7029 }
7030
7031
7032 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7033 PyObject *resultobj = 0;
7034 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7035 int result;
7036 void *argp1 = 0 ;
7037 int res1 = 0 ;
7038 PyObject *swig_obj[1] ;
7039
7040 if (!args) SWIG_fail;
7041 swig_obj[0] = args;
7042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7043 if (!SWIG_IsOK(res1)) {
7044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7045 }
7046 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7047 {
7048 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7049 if (PyErr_Occurred()) SWIG_fail;
7050 }
7051 resultobj = SWIG_From_int(static_cast< int >(result));
7052 return resultobj;
7053 fail:
7054 return NULL;
7055 }
7056
7057
7058 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7059 PyObject *resultobj = 0;
7060 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7061 wxSize result;
7062 void *argp1 = 0 ;
7063 int res1 = 0 ;
7064 PyObject *swig_obj[1] ;
7065
7066 if (!args) SWIG_fail;
7067 swig_obj[0] = args;
7068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7069 if (!SWIG_IsOK(res1)) {
7070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7071 }
7072 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7073 {
7074 result = ((wxPixelDataBase const *)arg1)->GetSize();
7075 if (PyErr_Occurred()) SWIG_fail;
7076 }
7077 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7078 return resultobj;
7079 fail:
7080 return NULL;
7081 }
7082
7083
7084 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7085 PyObject *resultobj = 0;
7086 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7087 int result;
7088 void *argp1 = 0 ;
7089 int res1 = 0 ;
7090 PyObject *swig_obj[1] ;
7091
7092 if (!args) SWIG_fail;
7093 swig_obj[0] = args;
7094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7095 if (!SWIG_IsOK(res1)) {
7096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7097 }
7098 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7099 {
7100 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7101 if (PyErr_Occurred()) SWIG_fail;
7102 }
7103 resultobj = SWIG_From_int(static_cast< int >(result));
7104 return resultobj;
7105 fail:
7106 return NULL;
7107 }
7108
7109
7110 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7111 PyObject *obj;
7112 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7113 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7114 return SWIG_Py_Void();
7115 }
7116
7117 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7118 PyObject *resultobj = 0;
7119 wxBitmap *arg1 = 0 ;
7120 wxNativePixelData *result = 0 ;
7121 void *argp1 = 0 ;
7122 int res1 = 0 ;
7123
7124 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7126 if (!SWIG_IsOK(res1)) {
7127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7128 }
7129 if (!argp1) {
7130 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7131 }
7132 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7133 {
7134 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7135 if (PyErr_Occurred()) SWIG_fail;
7136 }
7137 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7138 return resultobj;
7139 fail:
7140 return NULL;
7141 }
7142
7143
7144 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7145 PyObject *resultobj = 0;
7146 wxBitmap *arg1 = 0 ;
7147 wxRect *arg2 = 0 ;
7148 wxNativePixelData *result = 0 ;
7149 void *argp1 = 0 ;
7150 int res1 = 0 ;
7151 wxRect temp2 ;
7152
7153 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7155 if (!SWIG_IsOK(res1)) {
7156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7157 }
7158 if (!argp1) {
7159 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7160 }
7161 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7162 {
7163 arg2 = &temp2;
7164 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7165 }
7166 {
7167 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7168 if (PyErr_Occurred()) SWIG_fail;
7169 }
7170 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7171 return resultobj;
7172 fail:
7173 return NULL;
7174 }
7175
7176
7177 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7178 PyObject *resultobj = 0;
7179 wxBitmap *arg1 = 0 ;
7180 wxPoint *arg2 = 0 ;
7181 wxSize *arg3 = 0 ;
7182 wxNativePixelData *result = 0 ;
7183 void *argp1 = 0 ;
7184 int res1 = 0 ;
7185 wxPoint temp2 ;
7186 wxSize temp3 ;
7187
7188 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7190 if (!SWIG_IsOK(res1)) {
7191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7192 }
7193 if (!argp1) {
7194 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7195 }
7196 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7197 {
7198 arg2 = &temp2;
7199 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7200 }
7201 {
7202 arg3 = &temp3;
7203 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7204 }
7205 {
7206 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7207 if (PyErr_Occurred()) SWIG_fail;
7208 }
7209 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7210 return resultobj;
7211 fail:
7212 return NULL;
7213 }
7214
7215
7216 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7217 int argc;
7218 PyObject *argv[4];
7219
7220 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7221 --argc;
7222 if (argc == 1) {
7223 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7224 }
7225 if (argc == 2) {
7226 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7227 }
7228 if (argc == 3) {
7229 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7230 }
7231
7232 fail:
7233 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7234 return NULL;
7235 }
7236
7237
7238 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7239 PyObject *resultobj = 0;
7240 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7241 void *argp1 = 0 ;
7242 int res1 = 0 ;
7243 PyObject *swig_obj[1] ;
7244
7245 if (!args) SWIG_fail;
7246 swig_obj[0] = args;
7247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7248 if (!SWIG_IsOK(res1)) {
7249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7250 }
7251 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7252 {
7253 delete arg1;
7254
7255 if (PyErr_Occurred()) SWIG_fail;
7256 }
7257 resultobj = SWIG_Py_Void();
7258 return resultobj;
7259 fail:
7260 return NULL;
7261 }
7262
7263
7264 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7265 PyObject *resultobj = 0;
7266 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7267 wxNativePixelData_Accessor result;
7268 void *argp1 = 0 ;
7269 int res1 = 0 ;
7270 PyObject *swig_obj[1] ;
7271
7272 if (!args) SWIG_fail;
7273 swig_obj[0] = args;
7274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7275 if (!SWIG_IsOK(res1)) {
7276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7277 }
7278 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7279 {
7280 result = ((wxNativePixelData const *)arg1)->GetPixels();
7281 if (PyErr_Occurred()) SWIG_fail;
7282 }
7283 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7284 return resultobj;
7285 fail:
7286 return NULL;
7287 }
7288
7289
7290 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7291 PyObject *resultobj = 0;
7292 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7293 void *argp1 = 0 ;
7294 int res1 = 0 ;
7295 PyObject *swig_obj[1] ;
7296
7297 if (!args) SWIG_fail;
7298 swig_obj[0] = args;
7299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7300 if (!SWIG_IsOK(res1)) {
7301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7302 }
7303 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7304 {
7305 (arg1)->UseAlpha();
7306 if (PyErr_Occurred()) SWIG_fail;
7307 }
7308 resultobj = SWIG_Py_Void();
7309 return resultobj;
7310 fail:
7311 return NULL;
7312 }
7313
7314
7315 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7316 PyObject *resultobj = 0;
7317 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7318 bool result;
7319 void *argp1 = 0 ;
7320 int res1 = 0 ;
7321 PyObject *swig_obj[1] ;
7322
7323 if (!args) SWIG_fail;
7324 swig_obj[0] = args;
7325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7326 if (!SWIG_IsOK(res1)) {
7327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7328 }
7329 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7330 {
7331 result = (bool)wxNativePixelData___nonzero__(arg1);
7332 if (PyErr_Occurred()) SWIG_fail;
7333 }
7334 {
7335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7336 }
7337 return resultobj;
7338 fail:
7339 return NULL;
7340 }
7341
7342
7343 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7344 PyObject *obj;
7345 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7346 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7347 return SWIG_Py_Void();
7348 }
7349
7350 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7351 return SWIG_Python_InitShadowInstance(args);
7352 }
7353
7354 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7355 PyObject *resultobj = 0;
7356 wxNativePixelData *arg1 = 0 ;
7357 wxNativePixelData_Accessor *result = 0 ;
7358 void *argp1 = 0 ;
7359 int res1 = 0 ;
7360
7361 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7363 if (!SWIG_IsOK(res1)) {
7364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7365 }
7366 if (!argp1) {
7367 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7368 }
7369 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7370 {
7371 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7372 if (PyErr_Occurred()) SWIG_fail;
7373 }
7374 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7375 return resultobj;
7376 fail:
7377 return NULL;
7378 }
7379
7380
7381 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7382 PyObject *resultobj = 0;
7383 wxBitmap *arg1 = 0 ;
7384 wxNativePixelData *arg2 = 0 ;
7385 wxNativePixelData_Accessor *result = 0 ;
7386 void *argp1 = 0 ;
7387 int res1 = 0 ;
7388 void *argp2 = 0 ;
7389 int res2 = 0 ;
7390
7391 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7393 if (!SWIG_IsOK(res1)) {
7394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7395 }
7396 if (!argp1) {
7397 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7398 }
7399 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7400 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7401 if (!SWIG_IsOK(res2)) {
7402 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7403 }
7404 if (!argp2) {
7405 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7406 }
7407 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7408 {
7409 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7410 if (PyErr_Occurred()) SWIG_fail;
7411 }
7412 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7413 return resultobj;
7414 fail:
7415 return NULL;
7416 }
7417
7418
7419 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7420 PyObject *resultobj = 0;
7421 wxNativePixelData_Accessor *result = 0 ;
7422
7423 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7424 {
7425 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
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(PyObject *self, PyObject *args) {
7436 int argc;
7437 PyObject *argv[3];
7438
7439 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7440 --argc;
7441 if (argc == 0) {
7442 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7443 }
7444 if (argc == 1) {
7445 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7446 }
7447 if (argc == 2) {
7448 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7449 }
7450
7451 fail:
7452 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7453 return NULL;
7454 }
7455
7456
7457 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7458 PyObject *resultobj = 0;
7459 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7460 void *argp1 = 0 ;
7461 int res1 = 0 ;
7462 PyObject *swig_obj[1] ;
7463
7464 if (!args) SWIG_fail;
7465 swig_obj[0] = args;
7466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7467 if (!SWIG_IsOK(res1)) {
7468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7469 }
7470 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7471 {
7472 delete arg1;
7473
7474 if (PyErr_Occurred()) SWIG_fail;
7475 }
7476 resultobj = SWIG_Py_Void();
7477 return resultobj;
7478 fail:
7479 return NULL;
7480 }
7481
7482
7483 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7484 PyObject *resultobj = 0;
7485 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7486 wxNativePixelData *arg2 = 0 ;
7487 void *argp1 = 0 ;
7488 int res1 = 0 ;
7489 void *argp2 = 0 ;
7490 int res2 = 0 ;
7491 PyObject * obj0 = 0 ;
7492 PyObject * obj1 = 0 ;
7493 char * kwnames[] = {
7494 (char *) "self",(char *) "data", NULL
7495 };
7496
7497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7499 if (!SWIG_IsOK(res1)) {
7500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7501 }
7502 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7503 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7504 if (!SWIG_IsOK(res2)) {
7505 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7506 }
7507 if (!argp2) {
7508 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7509 }
7510 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7511 {
7512 (arg1)->Reset((wxNativePixelData const &)*arg2);
7513 if (PyErr_Occurred()) SWIG_fail;
7514 }
7515 resultobj = SWIG_Py_Void();
7516 return resultobj;
7517 fail:
7518 return NULL;
7519 }
7520
7521
7522 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7523 PyObject *resultobj = 0;
7524 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7525 bool result;
7526 void *argp1 = 0 ;
7527 int res1 = 0 ;
7528 PyObject *swig_obj[1] ;
7529
7530 if (!args) SWIG_fail;
7531 swig_obj[0] = args;
7532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7533 if (!SWIG_IsOK(res1)) {
7534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7535 }
7536 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7537 {
7538 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7539 if (PyErr_Occurred()) SWIG_fail;
7540 }
7541 {
7542 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7543 }
7544 return resultobj;
7545 fail:
7546 return NULL;
7547 }
7548
7549
7550 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7551 PyObject *resultobj = 0;
7552 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7553 void *argp1 = 0 ;
7554 int res1 = 0 ;
7555 PyObject *swig_obj[1] ;
7556
7557 if (!args) SWIG_fail;
7558 swig_obj[0] = args;
7559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7560 if (!SWIG_IsOK(res1)) {
7561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7562 }
7563 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7564 {
7565 wxNativePixelData_Accessor_nextPixel(arg1);
7566 if (PyErr_Occurred()) SWIG_fail;
7567 }
7568 resultobj = SWIG_Py_Void();
7569 return resultobj;
7570 fail:
7571 return NULL;
7572 }
7573
7574
7575 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7576 PyObject *resultobj = 0;
7577 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7578 wxNativePixelData *arg2 = 0 ;
7579 int arg3 ;
7580 int arg4 ;
7581 void *argp1 = 0 ;
7582 int res1 = 0 ;
7583 void *argp2 = 0 ;
7584 int res2 = 0 ;
7585 int val3 ;
7586 int ecode3 = 0 ;
7587 int val4 ;
7588 int ecode4 = 0 ;
7589 PyObject * obj0 = 0 ;
7590 PyObject * obj1 = 0 ;
7591 PyObject * obj2 = 0 ;
7592 PyObject * obj3 = 0 ;
7593 char * kwnames[] = {
7594 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7595 };
7596
7597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7599 if (!SWIG_IsOK(res1)) {
7600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7601 }
7602 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7603 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7604 if (!SWIG_IsOK(res2)) {
7605 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7606 }
7607 if (!argp2) {
7608 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7609 }
7610 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7611 ecode3 = SWIG_AsVal_int(obj2, &val3);
7612 if (!SWIG_IsOK(ecode3)) {
7613 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7614 }
7615 arg3 = static_cast< int >(val3);
7616 ecode4 = SWIG_AsVal_int(obj3, &val4);
7617 if (!SWIG_IsOK(ecode4)) {
7618 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7619 }
7620 arg4 = static_cast< int >(val4);
7621 {
7622 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7623 if (PyErr_Occurred()) SWIG_fail;
7624 }
7625 resultobj = SWIG_Py_Void();
7626 return resultobj;
7627 fail:
7628 return NULL;
7629 }
7630
7631
7632 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7633 PyObject *resultobj = 0;
7634 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7635 wxNativePixelData *arg2 = 0 ;
7636 int arg3 ;
7637 void *argp1 = 0 ;
7638 int res1 = 0 ;
7639 void *argp2 = 0 ;
7640 int res2 = 0 ;
7641 int val3 ;
7642 int ecode3 = 0 ;
7643 PyObject * obj0 = 0 ;
7644 PyObject * obj1 = 0 ;
7645 PyObject * obj2 = 0 ;
7646 char * kwnames[] = {
7647 (char *) "self",(char *) "data",(char *) "x", NULL
7648 };
7649
7650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7652 if (!SWIG_IsOK(res1)) {
7653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7654 }
7655 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7656 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7657 if (!SWIG_IsOK(res2)) {
7658 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7659 }
7660 if (!argp2) {
7661 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7662 }
7663 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7664 ecode3 = SWIG_AsVal_int(obj2, &val3);
7665 if (!SWIG_IsOK(ecode3)) {
7666 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7667 }
7668 arg3 = static_cast< int >(val3);
7669 {
7670 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7671 if (PyErr_Occurred()) SWIG_fail;
7672 }
7673 resultobj = SWIG_Py_Void();
7674 return resultobj;
7675 fail:
7676 return NULL;
7677 }
7678
7679
7680 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7681 PyObject *resultobj = 0;
7682 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7683 wxNativePixelData *arg2 = 0 ;
7684 int arg3 ;
7685 void *argp1 = 0 ;
7686 int res1 = 0 ;
7687 void *argp2 = 0 ;
7688 int res2 = 0 ;
7689 int val3 ;
7690 int ecode3 = 0 ;
7691 PyObject * obj0 = 0 ;
7692 PyObject * obj1 = 0 ;
7693 PyObject * obj2 = 0 ;
7694 char * kwnames[] = {
7695 (char *) "self",(char *) "data",(char *) "y", NULL
7696 };
7697
7698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7700 if (!SWIG_IsOK(res1)) {
7701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7702 }
7703 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7704 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7705 if (!SWIG_IsOK(res2)) {
7706 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7707 }
7708 if (!argp2) {
7709 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7710 }
7711 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7712 ecode3 = SWIG_AsVal_int(obj2, &val3);
7713 if (!SWIG_IsOK(ecode3)) {
7714 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7715 }
7716 arg3 = static_cast< int >(val3);
7717 {
7718 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7719 if (PyErr_Occurred()) SWIG_fail;
7720 }
7721 resultobj = SWIG_Py_Void();
7722 return resultobj;
7723 fail:
7724 return NULL;
7725 }
7726
7727
7728 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7729 PyObject *resultobj = 0;
7730 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7731 wxNativePixelData *arg2 = 0 ;
7732 int arg3 ;
7733 int arg4 ;
7734 void *argp1 = 0 ;
7735 int res1 = 0 ;
7736 void *argp2 = 0 ;
7737 int res2 = 0 ;
7738 int val3 ;
7739 int ecode3 = 0 ;
7740 int val4 ;
7741 int ecode4 = 0 ;
7742 PyObject * obj0 = 0 ;
7743 PyObject * obj1 = 0 ;
7744 PyObject * obj2 = 0 ;
7745 PyObject * obj3 = 0 ;
7746 char * kwnames[] = {
7747 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7748 };
7749
7750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7752 if (!SWIG_IsOK(res1)) {
7753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7754 }
7755 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7756 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7757 if (!SWIG_IsOK(res2)) {
7758 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7759 }
7760 if (!argp2) {
7761 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7762 }
7763 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7764 ecode3 = SWIG_AsVal_int(obj2, &val3);
7765 if (!SWIG_IsOK(ecode3)) {
7766 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7767 }
7768 arg3 = static_cast< int >(val3);
7769 ecode4 = SWIG_AsVal_int(obj3, &val4);
7770 if (!SWIG_IsOK(ecode4)) {
7771 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7772 }
7773 arg4 = static_cast< int >(val4);
7774 {
7775 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7776 if (PyErr_Occurred()) SWIG_fail;
7777 }
7778 resultobj = SWIG_Py_Void();
7779 return resultobj;
7780 fail:
7781 return NULL;
7782 }
7783
7784
7785 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7786 PyObject *resultobj = 0;
7787 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7788 byte arg2 ;
7789 byte arg3 ;
7790 byte arg4 ;
7791 void *argp1 = 0 ;
7792 int res1 = 0 ;
7793 unsigned char val2 ;
7794 int ecode2 = 0 ;
7795 unsigned char val3 ;
7796 int ecode3 = 0 ;
7797 unsigned char val4 ;
7798 int ecode4 = 0 ;
7799 PyObject * obj0 = 0 ;
7800 PyObject * obj1 = 0 ;
7801 PyObject * obj2 = 0 ;
7802 PyObject * obj3 = 0 ;
7803 char * kwnames[] = {
7804 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7805 };
7806
7807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7809 if (!SWIG_IsOK(res1)) {
7810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7811 }
7812 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7813 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7814 if (!SWIG_IsOK(ecode2)) {
7815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7816 }
7817 arg2 = static_cast< byte >(val2);
7818 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7819 if (!SWIG_IsOK(ecode3)) {
7820 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7821 }
7822 arg3 = static_cast< byte >(val3);
7823 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7824 if (!SWIG_IsOK(ecode4)) {
7825 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7826 }
7827 arg4 = static_cast< byte >(val4);
7828 {
7829 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7830 if (PyErr_Occurred()) SWIG_fail;
7831 }
7832 resultobj = SWIG_Py_Void();
7833 return resultobj;
7834 fail:
7835 return NULL;
7836 }
7837
7838
7839 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7840 PyObject *resultobj = 0;
7841 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7842 PyObject *result = 0 ;
7843 void *argp1 = 0 ;
7844 int res1 = 0 ;
7845 PyObject *swig_obj[1] ;
7846
7847 if (!args) SWIG_fail;
7848 swig_obj[0] = args;
7849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7850 if (!SWIG_IsOK(res1)) {
7851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7852 }
7853 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7854 {
7855 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
7856 if (PyErr_Occurred()) SWIG_fail;
7857 }
7858 resultobj = result;
7859 return resultobj;
7860 fail:
7861 return NULL;
7862 }
7863
7864
7865 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7866 PyObject *obj;
7867 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7868 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
7869 return SWIG_Py_Void();
7870 }
7871
7872 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7873 return SWIG_Python_InitShadowInstance(args);
7874 }
7875
7876 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7877 PyObject *resultobj = 0;
7878 wxBitmap *arg1 = 0 ;
7879 wxAlphaPixelData *result = 0 ;
7880 void *argp1 = 0 ;
7881 int res1 = 0 ;
7882
7883 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7885 if (!SWIG_IsOK(res1)) {
7886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7887 }
7888 if (!argp1) {
7889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7890 }
7891 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7892 {
7893 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
7894 if (PyErr_Occurred()) SWIG_fail;
7895 }
7896 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7897 return resultobj;
7898 fail:
7899 return NULL;
7900 }
7901
7902
7903 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7904 PyObject *resultobj = 0;
7905 wxBitmap *arg1 = 0 ;
7906 wxRect *arg2 = 0 ;
7907 wxAlphaPixelData *result = 0 ;
7908 void *argp1 = 0 ;
7909 int res1 = 0 ;
7910 wxRect temp2 ;
7911
7912 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7914 if (!SWIG_IsOK(res1)) {
7915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7916 }
7917 if (!argp1) {
7918 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7919 }
7920 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7921 {
7922 arg2 = &temp2;
7923 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7924 }
7925 {
7926 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
7927 if (PyErr_Occurred()) SWIG_fail;
7928 }
7929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7930 return resultobj;
7931 fail:
7932 return NULL;
7933 }
7934
7935
7936 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7937 PyObject *resultobj = 0;
7938 wxBitmap *arg1 = 0 ;
7939 wxPoint *arg2 = 0 ;
7940 wxSize *arg3 = 0 ;
7941 wxAlphaPixelData *result = 0 ;
7942 void *argp1 = 0 ;
7943 int res1 = 0 ;
7944 wxPoint temp2 ;
7945 wxSize temp3 ;
7946
7947 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7949 if (!SWIG_IsOK(res1)) {
7950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7951 }
7952 if (!argp1) {
7953 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7954 }
7955 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7956 {
7957 arg2 = &temp2;
7958 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7959 }
7960 {
7961 arg3 = &temp3;
7962 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7963 }
7964 {
7965 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7966 if (PyErr_Occurred()) SWIG_fail;
7967 }
7968 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7969 return resultobj;
7970 fail:
7971 return NULL;
7972 }
7973
7974
7975 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
7976 int argc;
7977 PyObject *argv[4];
7978
7979 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
7980 --argc;
7981 if (argc == 1) {
7982 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
7983 }
7984 if (argc == 2) {
7985 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
7986 }
7987 if (argc == 3) {
7988 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
7989 }
7990
7991 fail:
7992 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
7993 return NULL;
7994 }
7995
7996
7997 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7998 PyObject *resultobj = 0;
7999 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8000 void *argp1 = 0 ;
8001 int res1 = 0 ;
8002 PyObject *swig_obj[1] ;
8003
8004 if (!args) SWIG_fail;
8005 swig_obj[0] = args;
8006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8007 if (!SWIG_IsOK(res1)) {
8008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8009 }
8010 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8011 {
8012 delete arg1;
8013
8014 if (PyErr_Occurred()) SWIG_fail;
8015 }
8016 resultobj = SWIG_Py_Void();
8017 return resultobj;
8018 fail:
8019 return NULL;
8020 }
8021
8022
8023 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8024 PyObject *resultobj = 0;
8025 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8026 wxAlphaPixelData_Accessor result;
8027 void *argp1 = 0 ;
8028 int res1 = 0 ;
8029 PyObject *swig_obj[1] ;
8030
8031 if (!args) SWIG_fail;
8032 swig_obj[0] = args;
8033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8034 if (!SWIG_IsOK(res1)) {
8035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8036 }
8037 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8038 {
8039 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8040 if (PyErr_Occurred()) SWIG_fail;
8041 }
8042 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8043 return resultobj;
8044 fail:
8045 return NULL;
8046 }
8047
8048
8049 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8050 PyObject *resultobj = 0;
8051 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8052 void *argp1 = 0 ;
8053 int res1 = 0 ;
8054 PyObject *swig_obj[1] ;
8055
8056 if (!args) SWIG_fail;
8057 swig_obj[0] = args;
8058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8059 if (!SWIG_IsOK(res1)) {
8060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8061 }
8062 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8063 {
8064 (arg1)->UseAlpha();
8065 if (PyErr_Occurred()) SWIG_fail;
8066 }
8067 resultobj = SWIG_Py_Void();
8068 return resultobj;
8069 fail:
8070 return NULL;
8071 }
8072
8073
8074 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8075 PyObject *resultobj = 0;
8076 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8077 bool result;
8078 void *argp1 = 0 ;
8079 int res1 = 0 ;
8080 PyObject *swig_obj[1] ;
8081
8082 if (!args) SWIG_fail;
8083 swig_obj[0] = args;
8084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8085 if (!SWIG_IsOK(res1)) {
8086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8087 }
8088 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8089 {
8090 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8091 if (PyErr_Occurred()) SWIG_fail;
8092 }
8093 {
8094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8095 }
8096 return resultobj;
8097 fail:
8098 return NULL;
8099 }
8100
8101
8102 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8103 PyObject *obj;
8104 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8105 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8106 return SWIG_Py_Void();
8107 }
8108
8109 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8110 return SWIG_Python_InitShadowInstance(args);
8111 }
8112
8113 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8114 PyObject *resultobj = 0;
8115 wxAlphaPixelData *arg1 = 0 ;
8116 wxAlphaPixelData_Accessor *result = 0 ;
8117 void *argp1 = 0 ;
8118 int res1 = 0 ;
8119
8120 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8122 if (!SWIG_IsOK(res1)) {
8123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8124 }
8125 if (!argp1) {
8126 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8127 }
8128 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8129 {
8130 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8131 if (PyErr_Occurred()) SWIG_fail;
8132 }
8133 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8134 return resultobj;
8135 fail:
8136 return NULL;
8137 }
8138
8139
8140 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8141 PyObject *resultobj = 0;
8142 wxBitmap *arg1 = 0 ;
8143 wxAlphaPixelData *arg2 = 0 ;
8144 wxAlphaPixelData_Accessor *result = 0 ;
8145 void *argp1 = 0 ;
8146 int res1 = 0 ;
8147 void *argp2 = 0 ;
8148 int res2 = 0 ;
8149
8150 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8152 if (!SWIG_IsOK(res1)) {
8153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8154 }
8155 if (!argp1) {
8156 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8157 }
8158 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8159 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8160 if (!SWIG_IsOK(res2)) {
8161 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8162 }
8163 if (!argp2) {
8164 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8165 }
8166 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8167 {
8168 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8169 if (PyErr_Occurred()) SWIG_fail;
8170 }
8171 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8172 return resultobj;
8173 fail:
8174 return NULL;
8175 }
8176
8177
8178 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8179 PyObject *resultobj = 0;
8180 wxAlphaPixelData_Accessor *result = 0 ;
8181
8182 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8183 {
8184 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
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(PyObject *self, PyObject *args) {
8195 int argc;
8196 PyObject *argv[3];
8197
8198 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8199 --argc;
8200 if (argc == 0) {
8201 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8202 }
8203 if (argc == 1) {
8204 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8205 }
8206 if (argc == 2) {
8207 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8208 }
8209
8210 fail:
8211 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8212 return NULL;
8213 }
8214
8215
8216 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8217 PyObject *resultobj = 0;
8218 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8219 void *argp1 = 0 ;
8220 int res1 = 0 ;
8221 PyObject *swig_obj[1] ;
8222
8223 if (!args) SWIG_fail;
8224 swig_obj[0] = args;
8225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8226 if (!SWIG_IsOK(res1)) {
8227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8228 }
8229 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8230 {
8231 delete arg1;
8232
8233 if (PyErr_Occurred()) SWIG_fail;
8234 }
8235 resultobj = SWIG_Py_Void();
8236 return resultobj;
8237 fail:
8238 return NULL;
8239 }
8240
8241
8242 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8243 PyObject *resultobj = 0;
8244 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8245 wxAlphaPixelData *arg2 = 0 ;
8246 void *argp1 = 0 ;
8247 int res1 = 0 ;
8248 void *argp2 = 0 ;
8249 int res2 = 0 ;
8250 PyObject * obj0 = 0 ;
8251 PyObject * obj1 = 0 ;
8252 char * kwnames[] = {
8253 (char *) "self",(char *) "data", NULL
8254 };
8255
8256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8258 if (!SWIG_IsOK(res1)) {
8259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8260 }
8261 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8262 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8263 if (!SWIG_IsOK(res2)) {
8264 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8265 }
8266 if (!argp2) {
8267 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8268 }
8269 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8270 {
8271 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8272 if (PyErr_Occurred()) SWIG_fail;
8273 }
8274 resultobj = SWIG_Py_Void();
8275 return resultobj;
8276 fail:
8277 return NULL;
8278 }
8279
8280
8281 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8282 PyObject *resultobj = 0;
8283 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8284 bool result;
8285 void *argp1 = 0 ;
8286 int res1 = 0 ;
8287 PyObject *swig_obj[1] ;
8288
8289 if (!args) SWIG_fail;
8290 swig_obj[0] = args;
8291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8292 if (!SWIG_IsOK(res1)) {
8293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8294 }
8295 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8296 {
8297 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8298 if (PyErr_Occurred()) SWIG_fail;
8299 }
8300 {
8301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8302 }
8303 return resultobj;
8304 fail:
8305 return NULL;
8306 }
8307
8308
8309 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8310 PyObject *resultobj = 0;
8311 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8312 void *argp1 = 0 ;
8313 int res1 = 0 ;
8314 PyObject *swig_obj[1] ;
8315
8316 if (!args) SWIG_fail;
8317 swig_obj[0] = args;
8318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8319 if (!SWIG_IsOK(res1)) {
8320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8321 }
8322 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8323 {
8324 wxAlphaPixelData_Accessor_nextPixel(arg1);
8325 if (PyErr_Occurred()) SWIG_fail;
8326 }
8327 resultobj = SWIG_Py_Void();
8328 return resultobj;
8329 fail:
8330 return NULL;
8331 }
8332
8333
8334 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8335 PyObject *resultobj = 0;
8336 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8337 wxAlphaPixelData *arg2 = 0 ;
8338 int arg3 ;
8339 int arg4 ;
8340 void *argp1 = 0 ;
8341 int res1 = 0 ;
8342 void *argp2 = 0 ;
8343 int res2 = 0 ;
8344 int val3 ;
8345 int ecode3 = 0 ;
8346 int val4 ;
8347 int ecode4 = 0 ;
8348 PyObject * obj0 = 0 ;
8349 PyObject * obj1 = 0 ;
8350 PyObject * obj2 = 0 ;
8351 PyObject * obj3 = 0 ;
8352 char * kwnames[] = {
8353 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8354 };
8355
8356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8358 if (!SWIG_IsOK(res1)) {
8359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8360 }
8361 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8362 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8363 if (!SWIG_IsOK(res2)) {
8364 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8365 }
8366 if (!argp2) {
8367 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8368 }
8369 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8370 ecode3 = SWIG_AsVal_int(obj2, &val3);
8371 if (!SWIG_IsOK(ecode3)) {
8372 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8373 }
8374 arg3 = static_cast< int >(val3);
8375 ecode4 = SWIG_AsVal_int(obj3, &val4);
8376 if (!SWIG_IsOK(ecode4)) {
8377 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8378 }
8379 arg4 = static_cast< int >(val4);
8380 {
8381 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8382 if (PyErr_Occurred()) SWIG_fail;
8383 }
8384 resultobj = SWIG_Py_Void();
8385 return resultobj;
8386 fail:
8387 return NULL;
8388 }
8389
8390
8391 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8392 PyObject *resultobj = 0;
8393 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8394 wxAlphaPixelData *arg2 = 0 ;
8395 int arg3 ;
8396 void *argp1 = 0 ;
8397 int res1 = 0 ;
8398 void *argp2 = 0 ;
8399 int res2 = 0 ;
8400 int val3 ;
8401 int ecode3 = 0 ;
8402 PyObject * obj0 = 0 ;
8403 PyObject * obj1 = 0 ;
8404 PyObject * obj2 = 0 ;
8405 char * kwnames[] = {
8406 (char *) "self",(char *) "data",(char *) "x", NULL
8407 };
8408
8409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8411 if (!SWIG_IsOK(res1)) {
8412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8413 }
8414 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8415 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8416 if (!SWIG_IsOK(res2)) {
8417 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8418 }
8419 if (!argp2) {
8420 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8421 }
8422 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8423 ecode3 = SWIG_AsVal_int(obj2, &val3);
8424 if (!SWIG_IsOK(ecode3)) {
8425 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8426 }
8427 arg3 = static_cast< int >(val3);
8428 {
8429 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8430 if (PyErr_Occurred()) SWIG_fail;
8431 }
8432 resultobj = SWIG_Py_Void();
8433 return resultobj;
8434 fail:
8435 return NULL;
8436 }
8437
8438
8439 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8440 PyObject *resultobj = 0;
8441 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8442 wxAlphaPixelData *arg2 = 0 ;
8443 int arg3 ;
8444 void *argp1 = 0 ;
8445 int res1 = 0 ;
8446 void *argp2 = 0 ;
8447 int res2 = 0 ;
8448 int val3 ;
8449 int ecode3 = 0 ;
8450 PyObject * obj0 = 0 ;
8451 PyObject * obj1 = 0 ;
8452 PyObject * obj2 = 0 ;
8453 char * kwnames[] = {
8454 (char *) "self",(char *) "data",(char *) "y", NULL
8455 };
8456
8457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8459 if (!SWIG_IsOK(res1)) {
8460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8461 }
8462 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8463 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8464 if (!SWIG_IsOK(res2)) {
8465 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8466 }
8467 if (!argp2) {
8468 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8469 }
8470 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8471 ecode3 = SWIG_AsVal_int(obj2, &val3);
8472 if (!SWIG_IsOK(ecode3)) {
8473 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8474 }
8475 arg3 = static_cast< int >(val3);
8476 {
8477 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8478 if (PyErr_Occurred()) SWIG_fail;
8479 }
8480 resultobj = SWIG_Py_Void();
8481 return resultobj;
8482 fail:
8483 return NULL;
8484 }
8485
8486
8487 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8488 PyObject *resultobj = 0;
8489 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8490 wxAlphaPixelData *arg2 = 0 ;
8491 int arg3 ;
8492 int arg4 ;
8493 void *argp1 = 0 ;
8494 int res1 = 0 ;
8495 void *argp2 = 0 ;
8496 int res2 = 0 ;
8497 int val3 ;
8498 int ecode3 = 0 ;
8499 int val4 ;
8500 int ecode4 = 0 ;
8501 PyObject * obj0 = 0 ;
8502 PyObject * obj1 = 0 ;
8503 PyObject * obj2 = 0 ;
8504 PyObject * obj3 = 0 ;
8505 char * kwnames[] = {
8506 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8507 };
8508
8509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8511 if (!SWIG_IsOK(res1)) {
8512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8513 }
8514 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8515 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8516 if (!SWIG_IsOK(res2)) {
8517 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8518 }
8519 if (!argp2) {
8520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8521 }
8522 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8523 ecode3 = SWIG_AsVal_int(obj2, &val3);
8524 if (!SWIG_IsOK(ecode3)) {
8525 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8526 }
8527 arg3 = static_cast< int >(val3);
8528 ecode4 = SWIG_AsVal_int(obj3, &val4);
8529 if (!SWIG_IsOK(ecode4)) {
8530 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8531 }
8532 arg4 = static_cast< int >(val4);
8533 {
8534 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8535 if (PyErr_Occurred()) SWIG_fail;
8536 }
8537 resultobj = SWIG_Py_Void();
8538 return resultobj;
8539 fail:
8540 return NULL;
8541 }
8542
8543
8544 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8545 PyObject *resultobj = 0;
8546 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8547 byte arg2 ;
8548 byte arg3 ;
8549 byte arg4 ;
8550 byte arg5 ;
8551 void *argp1 = 0 ;
8552 int res1 = 0 ;
8553 unsigned char val2 ;
8554 int ecode2 = 0 ;
8555 unsigned char val3 ;
8556 int ecode3 = 0 ;
8557 unsigned char val4 ;
8558 int ecode4 = 0 ;
8559 unsigned char val5 ;
8560 int ecode5 = 0 ;
8561 PyObject * obj0 = 0 ;
8562 PyObject * obj1 = 0 ;
8563 PyObject * obj2 = 0 ;
8564 PyObject * obj3 = 0 ;
8565 PyObject * obj4 = 0 ;
8566 char * kwnames[] = {
8567 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8568 };
8569
8570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8572 if (!SWIG_IsOK(res1)) {
8573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8574 }
8575 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8576 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8577 if (!SWIG_IsOK(ecode2)) {
8578 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8579 }
8580 arg2 = static_cast< byte >(val2);
8581 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8582 if (!SWIG_IsOK(ecode3)) {
8583 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8584 }
8585 arg3 = static_cast< byte >(val3);
8586 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8587 if (!SWIG_IsOK(ecode4)) {
8588 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8589 }
8590 arg4 = static_cast< byte >(val4);
8591 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8592 if (!SWIG_IsOK(ecode5)) {
8593 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8594 }
8595 arg5 = static_cast< byte >(val5);
8596 {
8597 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8598 if (PyErr_Occurred()) SWIG_fail;
8599 }
8600 resultobj = SWIG_Py_Void();
8601 return resultobj;
8602 fail:
8603 return NULL;
8604 }
8605
8606
8607 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8608 PyObject *resultobj = 0;
8609 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8610 PyObject *result = 0 ;
8611 void *argp1 = 0 ;
8612 int res1 = 0 ;
8613 PyObject *swig_obj[1] ;
8614
8615 if (!args) SWIG_fail;
8616 swig_obj[0] = args;
8617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8618 if (!SWIG_IsOK(res1)) {
8619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8620 }
8621 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8622 {
8623 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8624 if (PyErr_Occurred()) SWIG_fail;
8625 }
8626 resultobj = result;
8627 return resultobj;
8628 fail:
8629 return NULL;
8630 }
8631
8632
8633 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8634 PyObject *obj;
8635 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8636 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8637 return SWIG_Py_Void();
8638 }
8639
8640 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8641 return SWIG_Python_InitShadowInstance(args);
8642 }
8643
8644 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8645 PyObject *resultobj = 0;
8646 wxBitmap *arg1 = 0 ;
8647 wxColour const &arg2_defvalue = wxNullColour ;
8648 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8649 wxMask *result = 0 ;
8650 void *argp1 = 0 ;
8651 int res1 = 0 ;
8652 wxColour temp2 ;
8653 PyObject * obj0 = 0 ;
8654 PyObject * obj1 = 0 ;
8655 char * kwnames[] = {
8656 (char *) "bitmap",(char *) "colour", NULL
8657 };
8658
8659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8660 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8661 if (!SWIG_IsOK(res1)) {
8662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8663 }
8664 if (!argp1) {
8665 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8666 }
8667 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8668 if (obj1) {
8669 {
8670 arg2 = &temp2;
8671 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8672 }
8673 }
8674 {
8675 if (!wxPyCheckForApp()) SWIG_fail;
8676 PyThreadState* __tstate = wxPyBeginAllowThreads();
8677 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8678 wxPyEndAllowThreads(__tstate);
8679 if (PyErr_Occurred()) SWIG_fail;
8680 }
8681 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8682 return resultobj;
8683 fail:
8684 return NULL;
8685 }
8686
8687
8688 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8689 PyObject *resultobj = 0;
8690 wxMask *arg1 = (wxMask *) 0 ;
8691 void *argp1 = 0 ;
8692 int res1 = 0 ;
8693 PyObject *swig_obj[1] ;
8694
8695 if (!args) SWIG_fail;
8696 swig_obj[0] = args;
8697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8698 if (!SWIG_IsOK(res1)) {
8699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8700 }
8701 arg1 = reinterpret_cast< wxMask * >(argp1);
8702 {
8703 delete arg1;
8704
8705 if (PyErr_Occurred()) SWIG_fail;
8706 }
8707 resultobj = SWIG_Py_Void();
8708 return resultobj;
8709 fail:
8710 return NULL;
8711 }
8712
8713
8714 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8715 PyObject *obj;
8716 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8717 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8718 return SWIG_Py_Void();
8719 }
8720
8721 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8722 return SWIG_Python_InitShadowInstance(args);
8723 }
8724
8725 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8726 PyObject *resultobj = 0;
8727 wxString *arg1 = 0 ;
8728 wxBitmapType arg2 ;
8729 int arg3 = (int) -1 ;
8730 int arg4 = (int) -1 ;
8731 wxIcon *result = 0 ;
8732 bool temp1 = false ;
8733 int val2 ;
8734 int ecode2 = 0 ;
8735 int val3 ;
8736 int ecode3 = 0 ;
8737 int val4 ;
8738 int ecode4 = 0 ;
8739 PyObject * obj0 = 0 ;
8740 PyObject * obj1 = 0 ;
8741 PyObject * obj2 = 0 ;
8742 PyObject * obj3 = 0 ;
8743 char * kwnames[] = {
8744 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8745 };
8746
8747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8748 {
8749 arg1 = wxString_in_helper(obj0);
8750 if (arg1 == NULL) SWIG_fail;
8751 temp1 = true;
8752 }
8753 ecode2 = SWIG_AsVal_int(obj1, &val2);
8754 if (!SWIG_IsOK(ecode2)) {
8755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8756 }
8757 arg2 = static_cast< wxBitmapType >(val2);
8758 if (obj2) {
8759 ecode3 = SWIG_AsVal_int(obj2, &val3);
8760 if (!SWIG_IsOK(ecode3)) {
8761 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8762 }
8763 arg3 = static_cast< int >(val3);
8764 }
8765 if (obj3) {
8766 ecode4 = SWIG_AsVal_int(obj3, &val4);
8767 if (!SWIG_IsOK(ecode4)) {
8768 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8769 }
8770 arg4 = static_cast< int >(val4);
8771 }
8772 {
8773 if (!wxPyCheckForApp()) SWIG_fail;
8774 PyThreadState* __tstate = wxPyBeginAllowThreads();
8775 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8776 wxPyEndAllowThreads(__tstate);
8777 if (PyErr_Occurred()) SWIG_fail;
8778 }
8779 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8780 {
8781 if (temp1)
8782 delete arg1;
8783 }
8784 return resultobj;
8785 fail:
8786 {
8787 if (temp1)
8788 delete arg1;
8789 }
8790 return NULL;
8791 }
8792
8793
8794 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8795 PyObject *resultobj = 0;
8796 wxIcon *arg1 = (wxIcon *) 0 ;
8797 void *argp1 = 0 ;
8798 int res1 = 0 ;
8799 PyObject *swig_obj[1] ;
8800
8801 if (!args) SWIG_fail;
8802 swig_obj[0] = args;
8803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8804 if (!SWIG_IsOK(res1)) {
8805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8806 }
8807 arg1 = reinterpret_cast< wxIcon * >(argp1);
8808 {
8809 PyThreadState* __tstate = wxPyBeginAllowThreads();
8810 delete arg1;
8811
8812 wxPyEndAllowThreads(__tstate);
8813 if (PyErr_Occurred()) SWIG_fail;
8814 }
8815 resultobj = SWIG_Py_Void();
8816 return resultobj;
8817 fail:
8818 return NULL;
8819 }
8820
8821
8822 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8823 PyObject *resultobj = 0;
8824 wxIcon *result = 0 ;
8825
8826 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8827 {
8828 if (!wxPyCheckForApp()) SWIG_fail;
8829 PyThreadState* __tstate = wxPyBeginAllowThreads();
8830 result = (wxIcon *)new wxIcon();
8831 wxPyEndAllowThreads(__tstate);
8832 if (PyErr_Occurred()) SWIG_fail;
8833 }
8834 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8835 return resultobj;
8836 fail:
8837 return NULL;
8838 }
8839
8840
8841 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8842 PyObject *resultobj = 0;
8843 wxIconLocation *arg1 = 0 ;
8844 wxIcon *result = 0 ;
8845 void *argp1 = 0 ;
8846 int res1 = 0 ;
8847 PyObject * obj0 = 0 ;
8848 char * kwnames[] = {
8849 (char *) "loc", NULL
8850 };
8851
8852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
8853 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
8854 if (!SWIG_IsOK(res1)) {
8855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8856 }
8857 if (!argp1) {
8858 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8859 }
8860 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
8861 {
8862 if (!wxPyCheckForApp()) SWIG_fail;
8863 PyThreadState* __tstate = wxPyBeginAllowThreads();
8864 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
8865 wxPyEndAllowThreads(__tstate);
8866 if (PyErr_Occurred()) SWIG_fail;
8867 }
8868 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8869 return resultobj;
8870 fail:
8871 return NULL;
8872 }
8873
8874
8875 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8876 PyObject *resultobj = 0;
8877 wxBitmap *arg1 = 0 ;
8878 wxIcon *result = 0 ;
8879 void *argp1 = 0 ;
8880 int res1 = 0 ;
8881 PyObject * obj0 = 0 ;
8882 char * kwnames[] = {
8883 (char *) "bmp", NULL
8884 };
8885
8886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
8887 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8888 if (!SWIG_IsOK(res1)) {
8889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8890 }
8891 if (!argp1) {
8892 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8893 }
8894 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8895 {
8896 if (!wxPyCheckForApp()) SWIG_fail;
8897 PyThreadState* __tstate = wxPyBeginAllowThreads();
8898 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
8899 wxPyEndAllowThreads(__tstate);
8900 if (PyErr_Occurred()) SWIG_fail;
8901 }
8902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8903 return resultobj;
8904 fail:
8905 return NULL;
8906 }
8907
8908
8909 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8910 PyObject *resultobj = 0;
8911 PyObject *arg1 = (PyObject *) 0 ;
8912 wxIcon *result = 0 ;
8913 PyObject * obj0 = 0 ;
8914 char * kwnames[] = {
8915 (char *) "listOfStrings", NULL
8916 };
8917
8918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
8919 arg1 = obj0;
8920 {
8921 if (!wxPyCheckForApp()) SWIG_fail;
8922 PyThreadState* __tstate = wxPyBeginAllowThreads();
8923 result = (wxIcon *)new_wxIcon(arg1);
8924 wxPyEndAllowThreads(__tstate);
8925 if (PyErr_Occurred()) SWIG_fail;
8926 }
8927 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8928 return resultobj;
8929 fail:
8930 return NULL;
8931 }
8932
8933
8934 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8935 PyObject *resultobj = 0;
8936 wxIcon *arg1 = (wxIcon *) 0 ;
8937 bool result;
8938 void *argp1 = 0 ;
8939 int res1 = 0 ;
8940 PyObject *swig_obj[1] ;
8941
8942 if (!args) SWIG_fail;
8943 swig_obj[0] = args;
8944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8945 if (!SWIG_IsOK(res1)) {
8946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
8947 }
8948 arg1 = reinterpret_cast< wxIcon * >(argp1);
8949 {
8950 PyThreadState* __tstate = wxPyBeginAllowThreads();
8951 result = (bool)(arg1)->IsOk();
8952 wxPyEndAllowThreads(__tstate);
8953 if (PyErr_Occurred()) SWIG_fail;
8954 }
8955 {
8956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8957 }
8958 return resultobj;
8959 fail:
8960 return NULL;
8961 }
8962
8963
8964 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8965 PyObject *resultobj = 0;
8966 wxIcon *arg1 = (wxIcon *) 0 ;
8967 int result;
8968 void *argp1 = 0 ;
8969 int res1 = 0 ;
8970 PyObject *swig_obj[1] ;
8971
8972 if (!args) SWIG_fail;
8973 swig_obj[0] = args;
8974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8975 if (!SWIG_IsOK(res1)) {
8976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
8977 }
8978 arg1 = reinterpret_cast< wxIcon * >(argp1);
8979 {
8980 PyThreadState* __tstate = wxPyBeginAllowThreads();
8981 result = (int)(arg1)->GetWidth();
8982 wxPyEndAllowThreads(__tstate);
8983 if (PyErr_Occurred()) SWIG_fail;
8984 }
8985 resultobj = SWIG_From_int(static_cast< int >(result));
8986 return resultobj;
8987 fail:
8988 return NULL;
8989 }
8990
8991
8992 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8993 PyObject *resultobj = 0;
8994 wxIcon *arg1 = (wxIcon *) 0 ;
8995 int result;
8996 void *argp1 = 0 ;
8997 int res1 = 0 ;
8998 PyObject *swig_obj[1] ;
8999
9000 if (!args) SWIG_fail;
9001 swig_obj[0] = args;
9002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9003 if (!SWIG_IsOK(res1)) {
9004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9005 }
9006 arg1 = reinterpret_cast< wxIcon * >(argp1);
9007 {
9008 PyThreadState* __tstate = wxPyBeginAllowThreads();
9009 result = (int)(arg1)->GetHeight();
9010 wxPyEndAllowThreads(__tstate);
9011 if (PyErr_Occurred()) SWIG_fail;
9012 }
9013 resultobj = SWIG_From_int(static_cast< int >(result));
9014 return resultobj;
9015 fail:
9016 return NULL;
9017 }
9018
9019
9020 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9021 PyObject *resultobj = 0;
9022 wxIcon *arg1 = (wxIcon *) 0 ;
9023 int result;
9024 void *argp1 = 0 ;
9025 int res1 = 0 ;
9026 PyObject *swig_obj[1] ;
9027
9028 if (!args) SWIG_fail;
9029 swig_obj[0] = args;
9030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9031 if (!SWIG_IsOK(res1)) {
9032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9033 }
9034 arg1 = reinterpret_cast< wxIcon * >(argp1);
9035 {
9036 PyThreadState* __tstate = wxPyBeginAllowThreads();
9037 result = (int)(arg1)->GetDepth();
9038 wxPyEndAllowThreads(__tstate);
9039 if (PyErr_Occurred()) SWIG_fail;
9040 }
9041 resultobj = SWIG_From_int(static_cast< int >(result));
9042 return resultobj;
9043 fail:
9044 return NULL;
9045 }
9046
9047
9048 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9049 PyObject *resultobj = 0;
9050 wxIcon *arg1 = (wxIcon *) 0 ;
9051 int arg2 ;
9052 void *argp1 = 0 ;
9053 int res1 = 0 ;
9054 int val2 ;
9055 int ecode2 = 0 ;
9056 PyObject * obj0 = 0 ;
9057 PyObject * obj1 = 0 ;
9058 char * kwnames[] = {
9059 (char *) "self",(char *) "w", NULL
9060 };
9061
9062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9064 if (!SWIG_IsOK(res1)) {
9065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9066 }
9067 arg1 = reinterpret_cast< wxIcon * >(argp1);
9068 ecode2 = SWIG_AsVal_int(obj1, &val2);
9069 if (!SWIG_IsOK(ecode2)) {
9070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9071 }
9072 arg2 = static_cast< int >(val2);
9073 {
9074 PyThreadState* __tstate = wxPyBeginAllowThreads();
9075 (arg1)->SetWidth(arg2);
9076 wxPyEndAllowThreads(__tstate);
9077 if (PyErr_Occurred()) SWIG_fail;
9078 }
9079 resultobj = SWIG_Py_Void();
9080 return resultobj;
9081 fail:
9082 return NULL;
9083 }
9084
9085
9086 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9087 PyObject *resultobj = 0;
9088 wxIcon *arg1 = (wxIcon *) 0 ;
9089 int arg2 ;
9090 void *argp1 = 0 ;
9091 int res1 = 0 ;
9092 int val2 ;
9093 int ecode2 = 0 ;
9094 PyObject * obj0 = 0 ;
9095 PyObject * obj1 = 0 ;
9096 char * kwnames[] = {
9097 (char *) "self",(char *) "h", NULL
9098 };
9099
9100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9102 if (!SWIG_IsOK(res1)) {
9103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9104 }
9105 arg1 = reinterpret_cast< wxIcon * >(argp1);
9106 ecode2 = SWIG_AsVal_int(obj1, &val2);
9107 if (!SWIG_IsOK(ecode2)) {
9108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9109 }
9110 arg2 = static_cast< int >(val2);
9111 {
9112 PyThreadState* __tstate = wxPyBeginAllowThreads();
9113 (arg1)->SetHeight(arg2);
9114 wxPyEndAllowThreads(__tstate);
9115 if (PyErr_Occurred()) SWIG_fail;
9116 }
9117 resultobj = SWIG_Py_Void();
9118 return resultobj;
9119 fail:
9120 return NULL;
9121 }
9122
9123
9124 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9125 PyObject *resultobj = 0;
9126 wxIcon *arg1 = (wxIcon *) 0 ;
9127 int arg2 ;
9128 void *argp1 = 0 ;
9129 int res1 = 0 ;
9130 int val2 ;
9131 int ecode2 = 0 ;
9132 PyObject * obj0 = 0 ;
9133 PyObject * obj1 = 0 ;
9134 char * kwnames[] = {
9135 (char *) "self",(char *) "d", NULL
9136 };
9137
9138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9140 if (!SWIG_IsOK(res1)) {
9141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9142 }
9143 arg1 = reinterpret_cast< wxIcon * >(argp1);
9144 ecode2 = SWIG_AsVal_int(obj1, &val2);
9145 if (!SWIG_IsOK(ecode2)) {
9146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9147 }
9148 arg2 = static_cast< int >(val2);
9149 {
9150 PyThreadState* __tstate = wxPyBeginAllowThreads();
9151 (arg1)->SetDepth(arg2);
9152 wxPyEndAllowThreads(__tstate);
9153 if (PyErr_Occurred()) SWIG_fail;
9154 }
9155 resultobj = SWIG_Py_Void();
9156 return resultobj;
9157 fail:
9158 return NULL;
9159 }
9160
9161
9162 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9163 PyObject *resultobj = 0;
9164 wxIcon *arg1 = (wxIcon *) 0 ;
9165 wxBitmap *arg2 = 0 ;
9166 void *argp1 = 0 ;
9167 int res1 = 0 ;
9168 void *argp2 = 0 ;
9169 int res2 = 0 ;
9170 PyObject * obj0 = 0 ;
9171 PyObject * obj1 = 0 ;
9172 char * kwnames[] = {
9173 (char *) "self",(char *) "bmp", NULL
9174 };
9175
9176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9178 if (!SWIG_IsOK(res1)) {
9179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9180 }
9181 arg1 = reinterpret_cast< wxIcon * >(argp1);
9182 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9183 if (!SWIG_IsOK(res2)) {
9184 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9185 }
9186 if (!argp2) {
9187 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9188 }
9189 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9190 {
9191 PyThreadState* __tstate = wxPyBeginAllowThreads();
9192 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9193 wxPyEndAllowThreads(__tstate);
9194 if (PyErr_Occurred()) SWIG_fail;
9195 }
9196 resultobj = SWIG_Py_Void();
9197 return resultobj;
9198 fail:
9199 return NULL;
9200 }
9201
9202
9203 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9204 PyObject *obj;
9205 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9206 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9207 return SWIG_Py_Void();
9208 }
9209
9210 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9211 return SWIG_Python_InitShadowInstance(args);
9212 }
9213
9214 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9215 PyObject *resultobj = 0;
9216 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9217 int arg2 = (int) 0 ;
9218 wxIconLocation *result = 0 ;
9219 bool temp1 = false ;
9220 int val2 ;
9221 int ecode2 = 0 ;
9222 PyObject * obj0 = 0 ;
9223 PyObject * obj1 = 0 ;
9224 char * kwnames[] = {
9225 (char *) "filename",(char *) "num", NULL
9226 };
9227
9228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9229 if (obj0) {
9230 {
9231 arg1 = wxString_in_helper(obj0);
9232 if (arg1 == NULL) SWIG_fail;
9233 temp1 = true;
9234 }
9235 }
9236 if (obj1) {
9237 ecode2 = SWIG_AsVal_int(obj1, &val2);
9238 if (!SWIG_IsOK(ecode2)) {
9239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9240 }
9241 arg2 = static_cast< int >(val2);
9242 }
9243 {
9244 PyThreadState* __tstate = wxPyBeginAllowThreads();
9245 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9246 wxPyEndAllowThreads(__tstate);
9247 if (PyErr_Occurred()) SWIG_fail;
9248 }
9249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9250 {
9251 if (temp1)
9252 delete arg1;
9253 }
9254 return resultobj;
9255 fail:
9256 {
9257 if (temp1)
9258 delete arg1;
9259 }
9260 return NULL;
9261 }
9262
9263
9264 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9265 PyObject *resultobj = 0;
9266 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9267 void *argp1 = 0 ;
9268 int res1 = 0 ;
9269 PyObject *swig_obj[1] ;
9270
9271 if (!args) SWIG_fail;
9272 swig_obj[0] = args;
9273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9274 if (!SWIG_IsOK(res1)) {
9275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9276 }
9277 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9278 {
9279 PyThreadState* __tstate = wxPyBeginAllowThreads();
9280 delete arg1;
9281
9282 wxPyEndAllowThreads(__tstate);
9283 if (PyErr_Occurred()) SWIG_fail;
9284 }
9285 resultobj = SWIG_Py_Void();
9286 return resultobj;
9287 fail:
9288 return NULL;
9289 }
9290
9291
9292 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9293 PyObject *resultobj = 0;
9294 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9295 bool result;
9296 void *argp1 = 0 ;
9297 int res1 = 0 ;
9298 PyObject *swig_obj[1] ;
9299
9300 if (!args) SWIG_fail;
9301 swig_obj[0] = args;
9302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9303 if (!SWIG_IsOK(res1)) {
9304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9305 }
9306 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9307 {
9308 PyThreadState* __tstate = wxPyBeginAllowThreads();
9309 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9310 wxPyEndAllowThreads(__tstate);
9311 if (PyErr_Occurred()) SWIG_fail;
9312 }
9313 {
9314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9315 }
9316 return resultobj;
9317 fail:
9318 return NULL;
9319 }
9320
9321
9322 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9323 PyObject *resultobj = 0;
9324 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9325 wxString *arg2 = 0 ;
9326 void *argp1 = 0 ;
9327 int res1 = 0 ;
9328 bool temp2 = false ;
9329 PyObject * obj0 = 0 ;
9330 PyObject * obj1 = 0 ;
9331 char * kwnames[] = {
9332 (char *) "self",(char *) "filename", NULL
9333 };
9334
9335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9337 if (!SWIG_IsOK(res1)) {
9338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9339 }
9340 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9341 {
9342 arg2 = wxString_in_helper(obj1);
9343 if (arg2 == NULL) SWIG_fail;
9344 temp2 = true;
9345 }
9346 {
9347 PyThreadState* __tstate = wxPyBeginAllowThreads();
9348 (arg1)->SetFileName((wxString const &)*arg2);
9349 wxPyEndAllowThreads(__tstate);
9350 if (PyErr_Occurred()) SWIG_fail;
9351 }
9352 resultobj = SWIG_Py_Void();
9353 {
9354 if (temp2)
9355 delete arg2;
9356 }
9357 return resultobj;
9358 fail:
9359 {
9360 if (temp2)
9361 delete arg2;
9362 }
9363 return NULL;
9364 }
9365
9366
9367 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9368 PyObject *resultobj = 0;
9369 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9370 wxString *result = 0 ;
9371 void *argp1 = 0 ;
9372 int res1 = 0 ;
9373 PyObject *swig_obj[1] ;
9374
9375 if (!args) SWIG_fail;
9376 swig_obj[0] = args;
9377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9378 if (!SWIG_IsOK(res1)) {
9379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9380 }
9381 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9382 {
9383 PyThreadState* __tstate = wxPyBeginAllowThreads();
9384 {
9385 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9386 result = (wxString *) &_result_ref;
9387 }
9388 wxPyEndAllowThreads(__tstate);
9389 if (PyErr_Occurred()) SWIG_fail;
9390 }
9391 {
9392 #if wxUSE_UNICODE
9393 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9394 #else
9395 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9396 #endif
9397 }
9398 return resultobj;
9399 fail:
9400 return NULL;
9401 }
9402
9403
9404 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9405 PyObject *resultobj = 0;
9406 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9407 int arg2 ;
9408 void *argp1 = 0 ;
9409 int res1 = 0 ;
9410 int val2 ;
9411 int ecode2 = 0 ;
9412 PyObject * obj0 = 0 ;
9413 PyObject * obj1 = 0 ;
9414 char * kwnames[] = {
9415 (char *) "self",(char *) "num", NULL
9416 };
9417
9418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9420 if (!SWIG_IsOK(res1)) {
9421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9422 }
9423 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9424 ecode2 = SWIG_AsVal_int(obj1, &val2);
9425 if (!SWIG_IsOK(ecode2)) {
9426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9427 }
9428 arg2 = static_cast< int >(val2);
9429 {
9430 PyThreadState* __tstate = wxPyBeginAllowThreads();
9431 wxIconLocation_SetIndex(arg1,arg2);
9432 wxPyEndAllowThreads(__tstate);
9433 if (PyErr_Occurred()) SWIG_fail;
9434 }
9435 resultobj = SWIG_Py_Void();
9436 return resultobj;
9437 fail:
9438 return NULL;
9439 }
9440
9441
9442 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9443 PyObject *resultobj = 0;
9444 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9445 int result;
9446 void *argp1 = 0 ;
9447 int res1 = 0 ;
9448 PyObject *swig_obj[1] ;
9449
9450 if (!args) SWIG_fail;
9451 swig_obj[0] = args;
9452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9453 if (!SWIG_IsOK(res1)) {
9454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9455 }
9456 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9457 {
9458 PyThreadState* __tstate = wxPyBeginAllowThreads();
9459 result = (int)wxIconLocation_GetIndex(arg1);
9460 wxPyEndAllowThreads(__tstate);
9461 if (PyErr_Occurred()) SWIG_fail;
9462 }
9463 resultobj = SWIG_From_int(static_cast< int >(result));
9464 return resultobj;
9465 fail:
9466 return NULL;
9467 }
9468
9469
9470 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9471 PyObject *obj;
9472 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9473 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9474 return SWIG_Py_Void();
9475 }
9476
9477 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9478 return SWIG_Python_InitShadowInstance(args);
9479 }
9480
9481 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9482 PyObject *resultobj = 0;
9483 wxIconBundle *result = 0 ;
9484
9485 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9486 {
9487 PyThreadState* __tstate = wxPyBeginAllowThreads();
9488 result = (wxIconBundle *)new wxIconBundle();
9489 wxPyEndAllowThreads(__tstate);
9490 if (PyErr_Occurred()) SWIG_fail;
9491 }
9492 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9493 return resultobj;
9494 fail:
9495 return NULL;
9496 }
9497
9498
9499 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9500 PyObject *resultobj = 0;
9501 wxString *arg1 = 0 ;
9502 long arg2 ;
9503 wxIconBundle *result = 0 ;
9504 bool temp1 = false ;
9505 long val2 ;
9506 int ecode2 = 0 ;
9507 PyObject * obj0 = 0 ;
9508 PyObject * obj1 = 0 ;
9509 char * kwnames[] = {
9510 (char *) "file",(char *) "type", NULL
9511 };
9512
9513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9514 {
9515 arg1 = wxString_in_helper(obj0);
9516 if (arg1 == NULL) SWIG_fail;
9517 temp1 = true;
9518 }
9519 ecode2 = SWIG_AsVal_long(obj1, &val2);
9520 if (!SWIG_IsOK(ecode2)) {
9521 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9522 }
9523 arg2 = static_cast< long >(val2);
9524 {
9525 PyThreadState* __tstate = wxPyBeginAllowThreads();
9526 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9527 wxPyEndAllowThreads(__tstate);
9528 if (PyErr_Occurred()) SWIG_fail;
9529 }
9530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9531 {
9532 if (temp1)
9533 delete arg1;
9534 }
9535 return resultobj;
9536 fail:
9537 {
9538 if (temp1)
9539 delete arg1;
9540 }
9541 return NULL;
9542 }
9543
9544
9545 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9546 PyObject *resultobj = 0;
9547 wxIcon *arg1 = 0 ;
9548 wxIconBundle *result = 0 ;
9549 void *argp1 = 0 ;
9550 int res1 = 0 ;
9551 PyObject * obj0 = 0 ;
9552 char * kwnames[] = {
9553 (char *) "icon", NULL
9554 };
9555
9556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9557 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9558 if (!SWIG_IsOK(res1)) {
9559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9560 }
9561 if (!argp1) {
9562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9563 }
9564 arg1 = reinterpret_cast< wxIcon * >(argp1);
9565 {
9566 PyThreadState* __tstate = wxPyBeginAllowThreads();
9567 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9568 wxPyEndAllowThreads(__tstate);
9569 if (PyErr_Occurred()) SWIG_fail;
9570 }
9571 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9572 return resultobj;
9573 fail:
9574 return NULL;
9575 }
9576
9577
9578 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9579 PyObject *resultobj = 0;
9580 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9581 void *argp1 = 0 ;
9582 int res1 = 0 ;
9583 PyObject *swig_obj[1] ;
9584
9585 if (!args) SWIG_fail;
9586 swig_obj[0] = args;
9587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9588 if (!SWIG_IsOK(res1)) {
9589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9590 }
9591 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9592 {
9593 PyThreadState* __tstate = wxPyBeginAllowThreads();
9594 delete arg1;
9595
9596 wxPyEndAllowThreads(__tstate);
9597 if (PyErr_Occurred()) SWIG_fail;
9598 }
9599 resultobj = SWIG_Py_Void();
9600 return resultobj;
9601 fail:
9602 return NULL;
9603 }
9604
9605
9606 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9607 PyObject *resultobj = 0;
9608 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9609 wxIcon *arg2 = 0 ;
9610 void *argp1 = 0 ;
9611 int res1 = 0 ;
9612 void *argp2 = 0 ;
9613 int res2 = 0 ;
9614 PyObject * obj0 = 0 ;
9615 PyObject * obj1 = 0 ;
9616 char * kwnames[] = {
9617 (char *) "self",(char *) "icon", NULL
9618 };
9619
9620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9622 if (!SWIG_IsOK(res1)) {
9623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9624 }
9625 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9626 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9627 if (!SWIG_IsOK(res2)) {
9628 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9629 }
9630 if (!argp2) {
9631 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9632 }
9633 arg2 = reinterpret_cast< wxIcon * >(argp2);
9634 {
9635 PyThreadState* __tstate = wxPyBeginAllowThreads();
9636 (arg1)->AddIcon((wxIcon const &)*arg2);
9637 wxPyEndAllowThreads(__tstate);
9638 if (PyErr_Occurred()) SWIG_fail;
9639 }
9640 resultobj = SWIG_Py_Void();
9641 return resultobj;
9642 fail:
9643 return NULL;
9644 }
9645
9646
9647 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9648 PyObject *resultobj = 0;
9649 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9650 wxString *arg2 = 0 ;
9651 long arg3 ;
9652 void *argp1 = 0 ;
9653 int res1 = 0 ;
9654 bool temp2 = false ;
9655 long val3 ;
9656 int ecode3 = 0 ;
9657 PyObject * obj0 = 0 ;
9658 PyObject * obj1 = 0 ;
9659 PyObject * obj2 = 0 ;
9660 char * kwnames[] = {
9661 (char *) "self",(char *) "file",(char *) "type", NULL
9662 };
9663
9664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9666 if (!SWIG_IsOK(res1)) {
9667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9668 }
9669 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9670 {
9671 arg2 = wxString_in_helper(obj1);
9672 if (arg2 == NULL) SWIG_fail;
9673 temp2 = true;
9674 }
9675 ecode3 = SWIG_AsVal_long(obj2, &val3);
9676 if (!SWIG_IsOK(ecode3)) {
9677 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9678 }
9679 arg3 = static_cast< long >(val3);
9680 {
9681 PyThreadState* __tstate = wxPyBeginAllowThreads();
9682 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9683 wxPyEndAllowThreads(__tstate);
9684 if (PyErr_Occurred()) SWIG_fail;
9685 }
9686 resultobj = SWIG_Py_Void();
9687 {
9688 if (temp2)
9689 delete arg2;
9690 }
9691 return resultobj;
9692 fail:
9693 {
9694 if (temp2)
9695 delete arg2;
9696 }
9697 return NULL;
9698 }
9699
9700
9701 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9702 PyObject *resultobj = 0;
9703 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9704 wxSize *arg2 = 0 ;
9705 wxIcon *result = 0 ;
9706 void *argp1 = 0 ;
9707 int res1 = 0 ;
9708 wxSize temp2 ;
9709 PyObject * obj0 = 0 ;
9710 PyObject * obj1 = 0 ;
9711 char * kwnames[] = {
9712 (char *) "self",(char *) "size", NULL
9713 };
9714
9715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9717 if (!SWIG_IsOK(res1)) {
9718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9719 }
9720 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9721 {
9722 arg2 = &temp2;
9723 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9724 }
9725 {
9726 PyThreadState* __tstate = wxPyBeginAllowThreads();
9727 {
9728 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9729 result = (wxIcon *) &_result_ref;
9730 }
9731 wxPyEndAllowThreads(__tstate);
9732 if (PyErr_Occurred()) SWIG_fail;
9733 }
9734 {
9735 wxIcon* resultptr = new wxIcon(*result);
9736 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9737 }
9738 return resultobj;
9739 fail:
9740 return NULL;
9741 }
9742
9743
9744 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9745 PyObject *obj;
9746 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9747 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9748 return SWIG_Py_Void();
9749 }
9750
9751 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9752 return SWIG_Python_InitShadowInstance(args);
9753 }
9754
9755 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9756 PyObject *resultobj = 0;
9757 wxString *arg1 = 0 ;
9758 long arg2 ;
9759 int arg3 = (int) 0 ;
9760 int arg4 = (int) 0 ;
9761 wxCursor *result = 0 ;
9762 bool temp1 = false ;
9763 long val2 ;
9764 int ecode2 = 0 ;
9765 int val3 ;
9766 int ecode3 = 0 ;
9767 int val4 ;
9768 int ecode4 = 0 ;
9769 PyObject * obj0 = 0 ;
9770 PyObject * obj1 = 0 ;
9771 PyObject * obj2 = 0 ;
9772 PyObject * obj3 = 0 ;
9773 char * kwnames[] = {
9774 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9775 };
9776
9777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9778 {
9779 arg1 = wxString_in_helper(obj0);
9780 if (arg1 == NULL) SWIG_fail;
9781 temp1 = true;
9782 }
9783 ecode2 = SWIG_AsVal_long(obj1, &val2);
9784 if (!SWIG_IsOK(ecode2)) {
9785 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9786 }
9787 arg2 = static_cast< long >(val2);
9788 if (obj2) {
9789 ecode3 = SWIG_AsVal_int(obj2, &val3);
9790 if (!SWIG_IsOK(ecode3)) {
9791 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9792 }
9793 arg3 = static_cast< int >(val3);
9794 }
9795 if (obj3) {
9796 ecode4 = SWIG_AsVal_int(obj3, &val4);
9797 if (!SWIG_IsOK(ecode4)) {
9798 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
9799 }
9800 arg4 = static_cast< int >(val4);
9801 }
9802 {
9803 if (!wxPyCheckForApp()) SWIG_fail;
9804 PyThreadState* __tstate = wxPyBeginAllowThreads();
9805 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
9806 wxPyEndAllowThreads(__tstate);
9807 if (PyErr_Occurred()) SWIG_fail;
9808 }
9809 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
9810 {
9811 if (temp1)
9812 delete arg1;
9813 }
9814 return resultobj;
9815 fail:
9816 {
9817 if (temp1)
9818 delete arg1;
9819 }
9820 return NULL;
9821 }
9822
9823
9824 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9825 PyObject *resultobj = 0;
9826 wxCursor *arg1 = (wxCursor *) 0 ;
9827 void *argp1 = 0 ;
9828 int res1 = 0 ;
9829 PyObject *swig_obj[1] ;
9830
9831 if (!args) SWIG_fail;
9832 swig_obj[0] = args;
9833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
9834 if (!SWIG_IsOK(res1)) {
9835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
9836 }
9837 arg1 = reinterpret_cast< wxCursor * >(argp1);
9838 {
9839 PyThreadState* __tstate = wxPyBeginAllowThreads();
9840 delete arg1;
9841
9842 wxPyEndAllowThreads(__tstate);
9843 if (PyErr_Occurred()) SWIG_fail;
9844 }
9845 resultobj = SWIG_Py_Void();
9846 return resultobj;
9847 fail:
9848 return NULL;
9849 }
9850
9851
9852 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9853 PyObject *resultobj = 0;
9854 int arg1 ;
9855 wxCursor *result = 0 ;
9856 int val1 ;
9857 int ecode1 = 0 ;
9858 PyObject * obj0 = 0 ;
9859 char * kwnames[] = {
9860 (char *) "id", NULL
9861 };
9862
9863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
9864 ecode1 = SWIG_AsVal_int(obj0, &val1);
9865 if (!SWIG_IsOK(ecode1)) {
9866 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
9867 }
9868 arg1 = static_cast< int >(val1);
9869 {
9870 if (!wxPyCheckForApp()) SWIG_fail;
9871 PyThreadState* __tstate = wxPyBeginAllowThreads();
9872 result = (wxCursor *)new wxCursor(arg1);
9873 wxPyEndAllowThreads(__tstate);
9874 if (PyErr_Occurred()) SWIG_fail;
9875 }
9876 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9877 return resultobj;
9878 fail:
9879 return NULL;
9880 }
9881
9882
9883 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9884 PyObject *resultobj = 0;
9885 wxImage *arg1 = 0 ;
9886 wxCursor *result = 0 ;
9887 void *argp1 = 0 ;
9888 int res1 = 0 ;
9889 PyObject * obj0 = 0 ;
9890 char * kwnames[] = {
9891 (char *) "image", NULL
9892 };
9893
9894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
9895 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
9896 if (!SWIG_IsOK(res1)) {
9897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9898 }
9899 if (!argp1) {
9900 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9901 }
9902 arg1 = reinterpret_cast< wxImage * >(argp1);
9903 {
9904 if (!wxPyCheckForApp()) SWIG_fail;
9905 PyThreadState* __tstate = wxPyBeginAllowThreads();
9906 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
9907 wxPyEndAllowThreads(__tstate);
9908 if (PyErr_Occurred()) SWIG_fail;
9909 }
9910 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9911 return resultobj;
9912 fail:
9913 return NULL;
9914 }
9915
9916
9917 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9918 PyObject *resultobj = 0;
9919 wxCursor *arg1 = (wxCursor *) 0 ;
9920 bool result;
9921 void *argp1 = 0 ;
9922 int res1 = 0 ;
9923 PyObject *swig_obj[1] ;
9924
9925 if (!args) SWIG_fail;
9926 swig_obj[0] = args;
9927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
9928 if (!SWIG_IsOK(res1)) {
9929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
9930 }
9931 arg1 = reinterpret_cast< wxCursor * >(argp1);
9932 {
9933 PyThreadState* __tstate = wxPyBeginAllowThreads();
9934 result = (bool)(arg1)->IsOk();
9935 wxPyEndAllowThreads(__tstate);
9936 if (PyErr_Occurred()) SWIG_fail;
9937 }
9938 {
9939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9940 }
9941 return resultobj;
9942 fail:
9943 return NULL;
9944 }
9945
9946
9947 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9948 PyObject *obj;
9949 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9950 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
9951 return SWIG_Py_Void();
9952 }
9953
9954 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9955 return SWIG_Python_InitShadowInstance(args);
9956 }
9957
9958 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9959 PyObject *resultobj = 0;
9960 int arg1 = (int) 0 ;
9961 int arg2 = (int) 0 ;
9962 int arg3 = (int) 0 ;
9963 int arg4 = (int) 0 ;
9964 wxRegion *result = 0 ;
9965 int val1 ;
9966 int ecode1 = 0 ;
9967 int val2 ;
9968 int ecode2 = 0 ;
9969 int val3 ;
9970 int ecode3 = 0 ;
9971 int val4 ;
9972 int ecode4 = 0 ;
9973 PyObject * obj0 = 0 ;
9974 PyObject * obj1 = 0 ;
9975 PyObject * obj2 = 0 ;
9976 PyObject * obj3 = 0 ;
9977 char * kwnames[] = {
9978 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9979 };
9980
9981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9982 if (obj0) {
9983 ecode1 = SWIG_AsVal_int(obj0, &val1);
9984 if (!SWIG_IsOK(ecode1)) {
9985 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
9986 }
9987 arg1 = static_cast< int >(val1);
9988 }
9989 if (obj1) {
9990 ecode2 = SWIG_AsVal_int(obj1, &val2);
9991 if (!SWIG_IsOK(ecode2)) {
9992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
9993 }
9994 arg2 = static_cast< int >(val2);
9995 }
9996 if (obj2) {
9997 ecode3 = SWIG_AsVal_int(obj2, &val3);
9998 if (!SWIG_IsOK(ecode3)) {
9999 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10000 }
10001 arg3 = static_cast< int >(val3);
10002 }
10003 if (obj3) {
10004 ecode4 = SWIG_AsVal_int(obj3, &val4);
10005 if (!SWIG_IsOK(ecode4)) {
10006 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10007 }
10008 arg4 = static_cast< int >(val4);
10009 }
10010 {
10011 if (!wxPyCheckForApp()) SWIG_fail;
10012 PyThreadState* __tstate = wxPyBeginAllowThreads();
10013 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10014 wxPyEndAllowThreads(__tstate);
10015 if (PyErr_Occurred()) SWIG_fail;
10016 }
10017 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10018 return resultobj;
10019 fail:
10020 return NULL;
10021 }
10022
10023
10024 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10025 PyObject *resultobj = 0;
10026 wxBitmap *arg1 = 0 ;
10027 wxRegion *result = 0 ;
10028 void *argp1 = 0 ;
10029 int res1 = 0 ;
10030 PyObject * obj0 = 0 ;
10031 char * kwnames[] = {
10032 (char *) "bmp", NULL
10033 };
10034
10035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10036 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10037 if (!SWIG_IsOK(res1)) {
10038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10039 }
10040 if (!argp1) {
10041 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10042 }
10043 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10044 {
10045 if (!wxPyCheckForApp()) SWIG_fail;
10046 PyThreadState* __tstate = wxPyBeginAllowThreads();
10047 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10048 wxPyEndAllowThreads(__tstate);
10049 if (PyErr_Occurred()) SWIG_fail;
10050 }
10051 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10052 return resultobj;
10053 fail:
10054 return NULL;
10055 }
10056
10057
10058 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10059 PyObject *resultobj = 0;
10060 wxBitmap *arg1 = 0 ;
10061 wxColour *arg2 = 0 ;
10062 int arg3 = (int) 0 ;
10063 wxRegion *result = 0 ;
10064 void *argp1 = 0 ;
10065 int res1 = 0 ;
10066 wxColour temp2 ;
10067 int val3 ;
10068 int ecode3 = 0 ;
10069 PyObject * obj0 = 0 ;
10070 PyObject * obj1 = 0 ;
10071 PyObject * obj2 = 0 ;
10072 char * kwnames[] = {
10073 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10074 };
10075
10076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10077 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10078 if (!SWIG_IsOK(res1)) {
10079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10080 }
10081 if (!argp1) {
10082 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10083 }
10084 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10085 {
10086 arg2 = &temp2;
10087 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10088 }
10089 if (obj2) {
10090 ecode3 = SWIG_AsVal_int(obj2, &val3);
10091 if (!SWIG_IsOK(ecode3)) {
10092 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10093 }
10094 arg3 = static_cast< int >(val3);
10095 }
10096 {
10097 if (!wxPyCheckForApp()) SWIG_fail;
10098 PyThreadState* __tstate = wxPyBeginAllowThreads();
10099 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10100 wxPyEndAllowThreads(__tstate);
10101 if (PyErr_Occurred()) SWIG_fail;
10102 }
10103 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10104 return resultobj;
10105 fail:
10106 return NULL;
10107 }
10108
10109
10110 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10111 PyObject *resultobj = 0;
10112 int arg1 ;
10113 wxPoint *arg2 = (wxPoint *) 0 ;
10114 int arg3 = (int) wxWINDING_RULE ;
10115 wxRegion *result = 0 ;
10116 int val3 ;
10117 int ecode3 = 0 ;
10118 PyObject * obj0 = 0 ;
10119 PyObject * obj1 = 0 ;
10120 char * kwnames[] = {
10121 (char *) "points",(char *) "fillStyle", NULL
10122 };
10123
10124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10125 {
10126 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10127 if (arg2 == NULL) SWIG_fail;
10128 }
10129 if (obj1) {
10130 ecode3 = SWIG_AsVal_int(obj1, &val3);
10131 if (!SWIG_IsOK(ecode3)) {
10132 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10133 }
10134 arg3 = static_cast< int >(val3);
10135 }
10136 {
10137 if (!wxPyCheckForApp()) SWIG_fail;
10138 PyThreadState* __tstate = wxPyBeginAllowThreads();
10139 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10140 wxPyEndAllowThreads(__tstate);
10141 if (PyErr_Occurred()) SWIG_fail;
10142 }
10143 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10144 {
10145 if (arg2) delete [] arg2;
10146 }
10147 return resultobj;
10148 fail:
10149 {
10150 if (arg2) delete [] arg2;
10151 }
10152 return NULL;
10153 }
10154
10155
10156 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10157 PyObject *resultobj = 0;
10158 wxRegion *arg1 = (wxRegion *) 0 ;
10159 void *argp1 = 0 ;
10160 int res1 = 0 ;
10161 PyObject *swig_obj[1] ;
10162
10163 if (!args) SWIG_fail;
10164 swig_obj[0] = args;
10165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10166 if (!SWIG_IsOK(res1)) {
10167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10168 }
10169 arg1 = reinterpret_cast< wxRegion * >(argp1);
10170 {
10171 PyThreadState* __tstate = wxPyBeginAllowThreads();
10172 delete arg1;
10173
10174 wxPyEndAllowThreads(__tstate);
10175 if (PyErr_Occurred()) SWIG_fail;
10176 }
10177 resultobj = SWIG_Py_Void();
10178 return resultobj;
10179 fail:
10180 return NULL;
10181 }
10182
10183
10184 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10185 PyObject *resultobj = 0;
10186 wxRegion *arg1 = (wxRegion *) 0 ;
10187 void *argp1 = 0 ;
10188 int res1 = 0 ;
10189 PyObject *swig_obj[1] ;
10190
10191 if (!args) SWIG_fail;
10192 swig_obj[0] = args;
10193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10194 if (!SWIG_IsOK(res1)) {
10195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10196 }
10197 arg1 = reinterpret_cast< wxRegion * >(argp1);
10198 {
10199 PyThreadState* __tstate = wxPyBeginAllowThreads();
10200 (arg1)->Clear();
10201 wxPyEndAllowThreads(__tstate);
10202 if (PyErr_Occurred()) SWIG_fail;
10203 }
10204 resultobj = SWIG_Py_Void();
10205 return resultobj;
10206 fail:
10207 return NULL;
10208 }
10209
10210
10211 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10212 PyObject *resultobj = 0;
10213 wxRegion *arg1 = (wxRegion *) 0 ;
10214 int arg2 ;
10215 int arg3 ;
10216 bool result;
10217 void *argp1 = 0 ;
10218 int res1 = 0 ;
10219 int val2 ;
10220 int ecode2 = 0 ;
10221 int val3 ;
10222 int ecode3 = 0 ;
10223 PyObject * obj0 = 0 ;
10224 PyObject * obj1 = 0 ;
10225 PyObject * obj2 = 0 ;
10226 char * kwnames[] = {
10227 (char *) "self",(char *) "x",(char *) "y", NULL
10228 };
10229
10230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10232 if (!SWIG_IsOK(res1)) {
10233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10234 }
10235 arg1 = reinterpret_cast< wxRegion * >(argp1);
10236 ecode2 = SWIG_AsVal_int(obj1, &val2);
10237 if (!SWIG_IsOK(ecode2)) {
10238 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10239 }
10240 arg2 = static_cast< int >(val2);
10241 ecode3 = SWIG_AsVal_int(obj2, &val3);
10242 if (!SWIG_IsOK(ecode3)) {
10243 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10244 }
10245 arg3 = static_cast< int >(val3);
10246 {
10247 PyThreadState* __tstate = wxPyBeginAllowThreads();
10248 result = (bool)(arg1)->Offset(arg2,arg3);
10249 wxPyEndAllowThreads(__tstate);
10250 if (PyErr_Occurred()) SWIG_fail;
10251 }
10252 {
10253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10254 }
10255 return resultobj;
10256 fail:
10257 return NULL;
10258 }
10259
10260
10261 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10262 PyObject *resultobj = 0;
10263 wxRegion *arg1 = (wxRegion *) 0 ;
10264 int arg2 ;
10265 int arg3 ;
10266 wxRegionContain result;
10267 void *argp1 = 0 ;
10268 int res1 = 0 ;
10269 int val2 ;
10270 int ecode2 = 0 ;
10271 int val3 ;
10272 int ecode3 = 0 ;
10273 PyObject * obj0 = 0 ;
10274 PyObject * obj1 = 0 ;
10275 PyObject * obj2 = 0 ;
10276 char * kwnames[] = {
10277 (char *) "self",(char *) "x",(char *) "y", NULL
10278 };
10279
10280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10282 if (!SWIG_IsOK(res1)) {
10283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10284 }
10285 arg1 = reinterpret_cast< wxRegion * >(argp1);
10286 ecode2 = SWIG_AsVal_int(obj1, &val2);
10287 if (!SWIG_IsOK(ecode2)) {
10288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10289 }
10290 arg2 = static_cast< int >(val2);
10291 ecode3 = SWIG_AsVal_int(obj2, &val3);
10292 if (!SWIG_IsOK(ecode3)) {
10293 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10294 }
10295 arg3 = static_cast< int >(val3);
10296 {
10297 PyThreadState* __tstate = wxPyBeginAllowThreads();
10298 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10299 wxPyEndAllowThreads(__tstate);
10300 if (PyErr_Occurred()) SWIG_fail;
10301 }
10302 resultobj = SWIG_From_int(static_cast< int >(result));
10303 return resultobj;
10304 fail:
10305 return NULL;
10306 }
10307
10308
10309 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10310 PyObject *resultobj = 0;
10311 wxRegion *arg1 = (wxRegion *) 0 ;
10312 wxPoint *arg2 = 0 ;
10313 wxRegionContain result;
10314 void *argp1 = 0 ;
10315 int res1 = 0 ;
10316 wxPoint temp2 ;
10317 PyObject * obj0 = 0 ;
10318 PyObject * obj1 = 0 ;
10319 char * kwnames[] = {
10320 (char *) "self",(char *) "pt", NULL
10321 };
10322
10323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10325 if (!SWIG_IsOK(res1)) {
10326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10327 }
10328 arg1 = reinterpret_cast< wxRegion * >(argp1);
10329 {
10330 arg2 = &temp2;
10331 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10332 }
10333 {
10334 PyThreadState* __tstate = wxPyBeginAllowThreads();
10335 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10336 wxPyEndAllowThreads(__tstate);
10337 if (PyErr_Occurred()) SWIG_fail;
10338 }
10339 resultobj = SWIG_From_int(static_cast< int >(result));
10340 return resultobj;
10341 fail:
10342 return NULL;
10343 }
10344
10345
10346 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10347 PyObject *resultobj = 0;
10348 wxRegion *arg1 = (wxRegion *) 0 ;
10349 wxRect *arg2 = 0 ;
10350 wxRegionContain result;
10351 void *argp1 = 0 ;
10352 int res1 = 0 ;
10353 wxRect temp2 ;
10354 PyObject * obj0 = 0 ;
10355 PyObject * obj1 = 0 ;
10356 char * kwnames[] = {
10357 (char *) "self",(char *) "rect", NULL
10358 };
10359
10360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10362 if (!SWIG_IsOK(res1)) {
10363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10364 }
10365 arg1 = reinterpret_cast< wxRegion * >(argp1);
10366 {
10367 arg2 = &temp2;
10368 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10369 }
10370 {
10371 PyThreadState* __tstate = wxPyBeginAllowThreads();
10372 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10373 wxPyEndAllowThreads(__tstate);
10374 if (PyErr_Occurred()) SWIG_fail;
10375 }
10376 resultobj = SWIG_From_int(static_cast< int >(result));
10377 return resultobj;
10378 fail:
10379 return NULL;
10380 }
10381
10382
10383 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10384 PyObject *resultobj = 0;
10385 wxRegion *arg1 = (wxRegion *) 0 ;
10386 int arg2 ;
10387 int arg3 ;
10388 int arg4 ;
10389 int arg5 ;
10390 wxRegionContain result;
10391 void *argp1 = 0 ;
10392 int res1 = 0 ;
10393 int val2 ;
10394 int ecode2 = 0 ;
10395 int val3 ;
10396 int ecode3 = 0 ;
10397 int val4 ;
10398 int ecode4 = 0 ;
10399 int val5 ;
10400 int ecode5 = 0 ;
10401 PyObject * obj0 = 0 ;
10402 PyObject * obj1 = 0 ;
10403 PyObject * obj2 = 0 ;
10404 PyObject * obj3 = 0 ;
10405 PyObject * obj4 = 0 ;
10406 char * kwnames[] = {
10407 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10408 };
10409
10410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10412 if (!SWIG_IsOK(res1)) {
10413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10414 }
10415 arg1 = reinterpret_cast< wxRegion * >(argp1);
10416 ecode2 = SWIG_AsVal_int(obj1, &val2);
10417 if (!SWIG_IsOK(ecode2)) {
10418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10419 }
10420 arg2 = static_cast< int >(val2);
10421 ecode3 = SWIG_AsVal_int(obj2, &val3);
10422 if (!SWIG_IsOK(ecode3)) {
10423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10424 }
10425 arg3 = static_cast< int >(val3);
10426 ecode4 = SWIG_AsVal_int(obj3, &val4);
10427 if (!SWIG_IsOK(ecode4)) {
10428 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10429 }
10430 arg4 = static_cast< int >(val4);
10431 ecode5 = SWIG_AsVal_int(obj4, &val5);
10432 if (!SWIG_IsOK(ecode5)) {
10433 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10434 }
10435 arg5 = static_cast< int >(val5);
10436 {
10437 PyThreadState* __tstate = wxPyBeginAllowThreads();
10438 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10439 wxPyEndAllowThreads(__tstate);
10440 if (PyErr_Occurred()) SWIG_fail;
10441 }
10442 resultobj = SWIG_From_int(static_cast< int >(result));
10443 return resultobj;
10444 fail:
10445 return NULL;
10446 }
10447
10448
10449 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10450 PyObject *resultobj = 0;
10451 wxRegion *arg1 = (wxRegion *) 0 ;
10452 wxRect result;
10453 void *argp1 = 0 ;
10454 int res1 = 0 ;
10455 PyObject *swig_obj[1] ;
10456
10457 if (!args) SWIG_fail;
10458 swig_obj[0] = args;
10459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10460 if (!SWIG_IsOK(res1)) {
10461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10462 }
10463 arg1 = reinterpret_cast< wxRegion * >(argp1);
10464 {
10465 PyThreadState* __tstate = wxPyBeginAllowThreads();
10466 result = (arg1)->GetBox();
10467 wxPyEndAllowThreads(__tstate);
10468 if (PyErr_Occurred()) SWIG_fail;
10469 }
10470 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10471 return resultobj;
10472 fail:
10473 return NULL;
10474 }
10475
10476
10477 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10478 PyObject *resultobj = 0;
10479 wxRegion *arg1 = (wxRegion *) 0 ;
10480 int arg2 ;
10481 int arg3 ;
10482 int arg4 ;
10483 int arg5 ;
10484 bool result;
10485 void *argp1 = 0 ;
10486 int res1 = 0 ;
10487 int val2 ;
10488 int ecode2 = 0 ;
10489 int val3 ;
10490 int ecode3 = 0 ;
10491 int val4 ;
10492 int ecode4 = 0 ;
10493 int val5 ;
10494 int ecode5 = 0 ;
10495 PyObject * obj0 = 0 ;
10496 PyObject * obj1 = 0 ;
10497 PyObject * obj2 = 0 ;
10498 PyObject * obj3 = 0 ;
10499 PyObject * obj4 = 0 ;
10500 char * kwnames[] = {
10501 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10502 };
10503
10504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10506 if (!SWIG_IsOK(res1)) {
10507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10508 }
10509 arg1 = reinterpret_cast< wxRegion * >(argp1);
10510 ecode2 = SWIG_AsVal_int(obj1, &val2);
10511 if (!SWIG_IsOK(ecode2)) {
10512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10513 }
10514 arg2 = static_cast< int >(val2);
10515 ecode3 = SWIG_AsVal_int(obj2, &val3);
10516 if (!SWIG_IsOK(ecode3)) {
10517 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10518 }
10519 arg3 = static_cast< int >(val3);
10520 ecode4 = SWIG_AsVal_int(obj3, &val4);
10521 if (!SWIG_IsOK(ecode4)) {
10522 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10523 }
10524 arg4 = static_cast< int >(val4);
10525 ecode5 = SWIG_AsVal_int(obj4, &val5);
10526 if (!SWIG_IsOK(ecode5)) {
10527 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10528 }
10529 arg5 = static_cast< int >(val5);
10530 {
10531 PyThreadState* __tstate = wxPyBeginAllowThreads();
10532 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10533 wxPyEndAllowThreads(__tstate);
10534 if (PyErr_Occurred()) SWIG_fail;
10535 }
10536 {
10537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10538 }
10539 return resultobj;
10540 fail:
10541 return NULL;
10542 }
10543
10544
10545 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10546 PyObject *resultobj = 0;
10547 wxRegion *arg1 = (wxRegion *) 0 ;
10548 wxRect *arg2 = 0 ;
10549 bool result;
10550 void *argp1 = 0 ;
10551 int res1 = 0 ;
10552 wxRect temp2 ;
10553 PyObject * obj0 = 0 ;
10554 PyObject * obj1 = 0 ;
10555 char * kwnames[] = {
10556 (char *) "self",(char *) "rect", NULL
10557 };
10558
10559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10561 if (!SWIG_IsOK(res1)) {
10562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10563 }
10564 arg1 = reinterpret_cast< wxRegion * >(argp1);
10565 {
10566 arg2 = &temp2;
10567 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10568 }
10569 {
10570 PyThreadState* __tstate = wxPyBeginAllowThreads();
10571 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10572 wxPyEndAllowThreads(__tstate);
10573 if (PyErr_Occurred()) SWIG_fail;
10574 }
10575 {
10576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10577 }
10578 return resultobj;
10579 fail:
10580 return NULL;
10581 }
10582
10583
10584 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10585 PyObject *resultobj = 0;
10586 wxRegion *arg1 = (wxRegion *) 0 ;
10587 wxRegion *arg2 = 0 ;
10588 bool result;
10589 void *argp1 = 0 ;
10590 int res1 = 0 ;
10591 void *argp2 = 0 ;
10592 int res2 = 0 ;
10593 PyObject * obj0 = 0 ;
10594 PyObject * obj1 = 0 ;
10595 char * kwnames[] = {
10596 (char *) "self",(char *) "region", NULL
10597 };
10598
10599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10601 if (!SWIG_IsOK(res1)) {
10602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10603 }
10604 arg1 = reinterpret_cast< wxRegion * >(argp1);
10605 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10606 if (!SWIG_IsOK(res2)) {
10607 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10608 }
10609 if (!argp2) {
10610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10611 }
10612 arg2 = reinterpret_cast< wxRegion * >(argp2);
10613 {
10614 PyThreadState* __tstate = wxPyBeginAllowThreads();
10615 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10616 wxPyEndAllowThreads(__tstate);
10617 if (PyErr_Occurred()) SWIG_fail;
10618 }
10619 {
10620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10621 }
10622 return resultobj;
10623 fail:
10624 return NULL;
10625 }
10626
10627
10628 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10629 PyObject *resultobj = 0;
10630 wxRegion *arg1 = (wxRegion *) 0 ;
10631 bool result;
10632 void *argp1 = 0 ;
10633 int res1 = 0 ;
10634 PyObject *swig_obj[1] ;
10635
10636 if (!args) SWIG_fail;
10637 swig_obj[0] = args;
10638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10639 if (!SWIG_IsOK(res1)) {
10640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10641 }
10642 arg1 = reinterpret_cast< wxRegion * >(argp1);
10643 {
10644 PyThreadState* __tstate = wxPyBeginAllowThreads();
10645 result = (bool)(arg1)->IsEmpty();
10646 wxPyEndAllowThreads(__tstate);
10647 if (PyErr_Occurred()) SWIG_fail;
10648 }
10649 {
10650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10651 }
10652 return resultobj;
10653 fail:
10654 return NULL;
10655 }
10656
10657
10658 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10659 PyObject *resultobj = 0;
10660 wxRegion *arg1 = (wxRegion *) 0 ;
10661 wxRegion *arg2 = 0 ;
10662 bool result;
10663 void *argp1 = 0 ;
10664 int res1 = 0 ;
10665 void *argp2 = 0 ;
10666 int res2 = 0 ;
10667 PyObject * obj0 = 0 ;
10668 PyObject * obj1 = 0 ;
10669 char * kwnames[] = {
10670 (char *) "self",(char *) "region", NULL
10671 };
10672
10673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
10674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10675 if (!SWIG_IsOK(res1)) {
10676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
10677 }
10678 arg1 = reinterpret_cast< wxRegion * >(argp1);
10679 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10680 if (!SWIG_IsOK(res2)) {
10681 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10682 }
10683 if (!argp2) {
10684 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10685 }
10686 arg2 = reinterpret_cast< wxRegion * >(argp2);
10687 {
10688 PyThreadState* __tstate = wxPyBeginAllowThreads();
10689 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
10690 wxPyEndAllowThreads(__tstate);
10691 if (PyErr_Occurred()) SWIG_fail;
10692 }
10693 {
10694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10695 }
10696 return resultobj;
10697 fail:
10698 return NULL;
10699 }
10700
10701
10702 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10703 PyObject *resultobj = 0;
10704 wxRegion *arg1 = (wxRegion *) 0 ;
10705 int arg2 ;
10706 int arg3 ;
10707 int arg4 ;
10708 int arg5 ;
10709 bool result;
10710 void *argp1 = 0 ;
10711 int res1 = 0 ;
10712 int val2 ;
10713 int ecode2 = 0 ;
10714 int val3 ;
10715 int ecode3 = 0 ;
10716 int val4 ;
10717 int ecode4 = 0 ;
10718 int val5 ;
10719 int ecode5 = 0 ;
10720 PyObject * obj0 = 0 ;
10721 PyObject * obj1 = 0 ;
10722 PyObject * obj2 = 0 ;
10723 PyObject * obj3 = 0 ;
10724 PyObject * obj4 = 0 ;
10725 char * kwnames[] = {
10726 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10727 };
10728
10729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10731 if (!SWIG_IsOK(res1)) {
10732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
10733 }
10734 arg1 = reinterpret_cast< wxRegion * >(argp1);
10735 ecode2 = SWIG_AsVal_int(obj1, &val2);
10736 if (!SWIG_IsOK(ecode2)) {
10737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
10738 }
10739 arg2 = static_cast< int >(val2);
10740 ecode3 = SWIG_AsVal_int(obj2, &val3);
10741 if (!SWIG_IsOK(ecode3)) {
10742 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
10743 }
10744 arg3 = static_cast< int >(val3);
10745 ecode4 = SWIG_AsVal_int(obj3, &val4);
10746 if (!SWIG_IsOK(ecode4)) {
10747 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
10748 }
10749 arg4 = static_cast< int >(val4);
10750 ecode5 = SWIG_AsVal_int(obj4, &val5);
10751 if (!SWIG_IsOK(ecode5)) {
10752 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
10753 }
10754 arg5 = static_cast< int >(val5);
10755 {
10756 PyThreadState* __tstate = wxPyBeginAllowThreads();
10757 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
10758 wxPyEndAllowThreads(__tstate);
10759 if (PyErr_Occurred()) SWIG_fail;
10760 }
10761 {
10762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10763 }
10764 return resultobj;
10765 fail:
10766 return NULL;
10767 }
10768
10769
10770 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10771 PyObject *resultobj = 0;
10772 wxRegion *arg1 = (wxRegion *) 0 ;
10773 wxRect *arg2 = 0 ;
10774 bool result;
10775 void *argp1 = 0 ;
10776 int res1 = 0 ;
10777 wxRect temp2 ;
10778 PyObject * obj0 = 0 ;
10779 PyObject * obj1 = 0 ;
10780 char * kwnames[] = {
10781 (char *) "self",(char *) "rect", NULL
10782 };
10783
10784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
10785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10786 if (!SWIG_IsOK(res1)) {
10787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10788 }
10789 arg1 = reinterpret_cast< wxRegion * >(argp1);
10790 {
10791 arg2 = &temp2;
10792 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10793 }
10794 {
10795 PyThreadState* __tstate = wxPyBeginAllowThreads();
10796 result = (bool)(arg1)->Union((wxRect const &)*arg2);
10797 wxPyEndAllowThreads(__tstate);
10798 if (PyErr_Occurred()) SWIG_fail;
10799 }
10800 {
10801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10802 }
10803 return resultobj;
10804 fail:
10805 return NULL;
10806 }
10807
10808
10809 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10810 PyObject *resultobj = 0;
10811 wxRegion *arg1 = (wxRegion *) 0 ;
10812 wxRegion *arg2 = 0 ;
10813 bool result;
10814 void *argp1 = 0 ;
10815 int res1 = 0 ;
10816 void *argp2 = 0 ;
10817 int res2 = 0 ;
10818 PyObject * obj0 = 0 ;
10819 PyObject * obj1 = 0 ;
10820 char * kwnames[] = {
10821 (char *) "self",(char *) "region", NULL
10822 };
10823
10824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10826 if (!SWIG_IsOK(res1)) {
10827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10828 }
10829 arg1 = reinterpret_cast< wxRegion * >(argp1);
10830 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10831 if (!SWIG_IsOK(res2)) {
10832 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10833 }
10834 if (!argp2) {
10835 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10836 }
10837 arg2 = reinterpret_cast< wxRegion * >(argp2);
10838 {
10839 PyThreadState* __tstate = wxPyBeginAllowThreads();
10840 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
10841 wxPyEndAllowThreads(__tstate);
10842 if (PyErr_Occurred()) SWIG_fail;
10843 }
10844 {
10845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10846 }
10847 return resultobj;
10848 fail:
10849 return NULL;
10850 }
10851
10852
10853 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10854 PyObject *resultobj = 0;
10855 wxRegion *arg1 = (wxRegion *) 0 ;
10856 int arg2 ;
10857 int arg3 ;
10858 int arg4 ;
10859 int arg5 ;
10860 bool result;
10861 void *argp1 = 0 ;
10862 int res1 = 0 ;
10863 int val2 ;
10864 int ecode2 = 0 ;
10865 int val3 ;
10866 int ecode3 = 0 ;
10867 int val4 ;
10868 int ecode4 = 0 ;
10869 int val5 ;
10870 int ecode5 = 0 ;
10871 PyObject * obj0 = 0 ;
10872 PyObject * obj1 = 0 ;
10873 PyObject * obj2 = 0 ;
10874 PyObject * obj3 = 0 ;
10875 PyObject * obj4 = 0 ;
10876 char * kwnames[] = {
10877 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10878 };
10879
10880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10882 if (!SWIG_IsOK(res1)) {
10883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
10884 }
10885 arg1 = reinterpret_cast< wxRegion * >(argp1);
10886 ecode2 = SWIG_AsVal_int(obj1, &val2);
10887 if (!SWIG_IsOK(ecode2)) {
10888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
10889 }
10890 arg2 = static_cast< int >(val2);
10891 ecode3 = SWIG_AsVal_int(obj2, &val3);
10892 if (!SWIG_IsOK(ecode3)) {
10893 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
10894 }
10895 arg3 = static_cast< int >(val3);
10896 ecode4 = SWIG_AsVal_int(obj3, &val4);
10897 if (!SWIG_IsOK(ecode4)) {
10898 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
10899 }
10900 arg4 = static_cast< int >(val4);
10901 ecode5 = SWIG_AsVal_int(obj4, &val5);
10902 if (!SWIG_IsOK(ecode5)) {
10903 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
10904 }
10905 arg5 = static_cast< int >(val5);
10906 {
10907 PyThreadState* __tstate = wxPyBeginAllowThreads();
10908 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
10909 wxPyEndAllowThreads(__tstate);
10910 if (PyErr_Occurred()) SWIG_fail;
10911 }
10912 {
10913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10914 }
10915 return resultobj;
10916 fail:
10917 return NULL;
10918 }
10919
10920
10921 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10922 PyObject *resultobj = 0;
10923 wxRegion *arg1 = (wxRegion *) 0 ;
10924 wxRect *arg2 = 0 ;
10925 bool result;
10926 void *argp1 = 0 ;
10927 int res1 = 0 ;
10928 wxRect temp2 ;
10929 PyObject * obj0 = 0 ;
10930 PyObject * obj1 = 0 ;
10931 char * kwnames[] = {
10932 (char *) "self",(char *) "rect", NULL
10933 };
10934
10935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
10936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10937 if (!SWIG_IsOK(res1)) {
10938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10939 }
10940 arg1 = reinterpret_cast< wxRegion * >(argp1);
10941 {
10942 arg2 = &temp2;
10943 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10944 }
10945 {
10946 PyThreadState* __tstate = wxPyBeginAllowThreads();
10947 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
10948 wxPyEndAllowThreads(__tstate);
10949 if (PyErr_Occurred()) SWIG_fail;
10950 }
10951 {
10952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10953 }
10954 return resultobj;
10955 fail:
10956 return NULL;
10957 }
10958
10959
10960 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10961 PyObject *resultobj = 0;
10962 wxRegion *arg1 = (wxRegion *) 0 ;
10963 wxRegion *arg2 = 0 ;
10964 bool result;
10965 void *argp1 = 0 ;
10966 int res1 = 0 ;
10967 void *argp2 = 0 ;
10968 int res2 = 0 ;
10969 PyObject * obj0 = 0 ;
10970 PyObject * obj1 = 0 ;
10971 char * kwnames[] = {
10972 (char *) "self",(char *) "region", NULL
10973 };
10974
10975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10977 if (!SWIG_IsOK(res1)) {
10978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10979 }
10980 arg1 = reinterpret_cast< wxRegion * >(argp1);
10981 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10982 if (!SWIG_IsOK(res2)) {
10983 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10984 }
10985 if (!argp2) {
10986 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10987 }
10988 arg2 = reinterpret_cast< wxRegion * >(argp2);
10989 {
10990 PyThreadState* __tstate = wxPyBeginAllowThreads();
10991 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
10992 wxPyEndAllowThreads(__tstate);
10993 if (PyErr_Occurred()) SWIG_fail;
10994 }
10995 {
10996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10997 }
10998 return resultobj;
10999 fail:
11000 return NULL;
11001 }
11002
11003
11004 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11005 PyObject *resultobj = 0;
11006 wxRegion *arg1 = (wxRegion *) 0 ;
11007 int arg2 ;
11008 int arg3 ;
11009 int arg4 ;
11010 int arg5 ;
11011 bool result;
11012 void *argp1 = 0 ;
11013 int res1 = 0 ;
11014 int val2 ;
11015 int ecode2 = 0 ;
11016 int val3 ;
11017 int ecode3 = 0 ;
11018 int val4 ;
11019 int ecode4 = 0 ;
11020 int val5 ;
11021 int ecode5 = 0 ;
11022 PyObject * obj0 = 0 ;
11023 PyObject * obj1 = 0 ;
11024 PyObject * obj2 = 0 ;
11025 PyObject * obj3 = 0 ;
11026 PyObject * obj4 = 0 ;
11027 char * kwnames[] = {
11028 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11029 };
11030
11031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11033 if (!SWIG_IsOK(res1)) {
11034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11035 }
11036 arg1 = reinterpret_cast< wxRegion * >(argp1);
11037 ecode2 = SWIG_AsVal_int(obj1, &val2);
11038 if (!SWIG_IsOK(ecode2)) {
11039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11040 }
11041 arg2 = static_cast< int >(val2);
11042 ecode3 = SWIG_AsVal_int(obj2, &val3);
11043 if (!SWIG_IsOK(ecode3)) {
11044 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11045 }
11046 arg3 = static_cast< int >(val3);
11047 ecode4 = SWIG_AsVal_int(obj3, &val4);
11048 if (!SWIG_IsOK(ecode4)) {
11049 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11050 }
11051 arg4 = static_cast< int >(val4);
11052 ecode5 = SWIG_AsVal_int(obj4, &val5);
11053 if (!SWIG_IsOK(ecode5)) {
11054 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11055 }
11056 arg5 = static_cast< int >(val5);
11057 {
11058 PyThreadState* __tstate = wxPyBeginAllowThreads();
11059 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11060 wxPyEndAllowThreads(__tstate);
11061 if (PyErr_Occurred()) SWIG_fail;
11062 }
11063 {
11064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11065 }
11066 return resultobj;
11067 fail:
11068 return NULL;
11069 }
11070
11071
11072 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11073 PyObject *resultobj = 0;
11074 wxRegion *arg1 = (wxRegion *) 0 ;
11075 wxRect *arg2 = 0 ;
11076 bool result;
11077 void *argp1 = 0 ;
11078 int res1 = 0 ;
11079 wxRect temp2 ;
11080 PyObject * obj0 = 0 ;
11081 PyObject * obj1 = 0 ;
11082 char * kwnames[] = {
11083 (char *) "self",(char *) "rect", NULL
11084 };
11085
11086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11088 if (!SWIG_IsOK(res1)) {
11089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11090 }
11091 arg1 = reinterpret_cast< wxRegion * >(argp1);
11092 {
11093 arg2 = &temp2;
11094 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11095 }
11096 {
11097 PyThreadState* __tstate = wxPyBeginAllowThreads();
11098 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11099 wxPyEndAllowThreads(__tstate);
11100 if (PyErr_Occurred()) SWIG_fail;
11101 }
11102 {
11103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11104 }
11105 return resultobj;
11106 fail:
11107 return NULL;
11108 }
11109
11110
11111 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11112 PyObject *resultobj = 0;
11113 wxRegion *arg1 = (wxRegion *) 0 ;
11114 wxRegion *arg2 = 0 ;
11115 bool result;
11116 void *argp1 = 0 ;
11117 int res1 = 0 ;
11118 void *argp2 = 0 ;
11119 int res2 = 0 ;
11120 PyObject * obj0 = 0 ;
11121 PyObject * obj1 = 0 ;
11122 char * kwnames[] = {
11123 (char *) "self",(char *) "region", NULL
11124 };
11125
11126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11128 if (!SWIG_IsOK(res1)) {
11129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11130 }
11131 arg1 = reinterpret_cast< wxRegion * >(argp1);
11132 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11133 if (!SWIG_IsOK(res2)) {
11134 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11135 }
11136 if (!argp2) {
11137 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11138 }
11139 arg2 = reinterpret_cast< wxRegion * >(argp2);
11140 {
11141 PyThreadState* __tstate = wxPyBeginAllowThreads();
11142 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11143 wxPyEndAllowThreads(__tstate);
11144 if (PyErr_Occurred()) SWIG_fail;
11145 }
11146 {
11147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11148 }
11149 return resultobj;
11150 fail:
11151 return NULL;
11152 }
11153
11154
11155 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11156 PyObject *resultobj = 0;
11157 wxRegion *arg1 = (wxRegion *) 0 ;
11158 SwigValueWrapper<wxBitmap > result;
11159 void *argp1 = 0 ;
11160 int res1 = 0 ;
11161 PyObject *swig_obj[1] ;
11162
11163 if (!args) SWIG_fail;
11164 swig_obj[0] = args;
11165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11166 if (!SWIG_IsOK(res1)) {
11167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11168 }
11169 arg1 = reinterpret_cast< wxRegion * >(argp1);
11170 {
11171 PyThreadState* __tstate = wxPyBeginAllowThreads();
11172 result = (arg1)->ConvertToBitmap();
11173 wxPyEndAllowThreads(__tstate);
11174 if (PyErr_Occurred()) SWIG_fail;
11175 }
11176 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11177 return resultobj;
11178 fail:
11179 return NULL;
11180 }
11181
11182
11183 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11184 PyObject *resultobj = 0;
11185 wxRegion *arg1 = (wxRegion *) 0 ;
11186 wxBitmap *arg2 = 0 ;
11187 bool result;
11188 void *argp1 = 0 ;
11189 int res1 = 0 ;
11190 void *argp2 = 0 ;
11191 int res2 = 0 ;
11192 PyObject * obj0 = 0 ;
11193 PyObject * obj1 = 0 ;
11194 char * kwnames[] = {
11195 (char *) "self",(char *) "bmp", NULL
11196 };
11197
11198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11200 if (!SWIG_IsOK(res1)) {
11201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11202 }
11203 arg1 = reinterpret_cast< wxRegion * >(argp1);
11204 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11205 if (!SWIG_IsOK(res2)) {
11206 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11207 }
11208 if (!argp2) {
11209 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11210 }
11211 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11212 {
11213 PyThreadState* __tstate = wxPyBeginAllowThreads();
11214 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11215 wxPyEndAllowThreads(__tstate);
11216 if (PyErr_Occurred()) SWIG_fail;
11217 }
11218 {
11219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11220 }
11221 return resultobj;
11222 fail:
11223 return NULL;
11224 }
11225
11226
11227 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11228 PyObject *resultobj = 0;
11229 wxRegion *arg1 = (wxRegion *) 0 ;
11230 wxBitmap *arg2 = 0 ;
11231 wxColour *arg3 = 0 ;
11232 int arg4 = (int) 0 ;
11233 bool result;
11234 void *argp1 = 0 ;
11235 int res1 = 0 ;
11236 void *argp2 = 0 ;
11237 int res2 = 0 ;
11238 wxColour temp3 ;
11239 int val4 ;
11240 int ecode4 = 0 ;
11241 PyObject * obj0 = 0 ;
11242 PyObject * obj1 = 0 ;
11243 PyObject * obj2 = 0 ;
11244 PyObject * obj3 = 0 ;
11245 char * kwnames[] = {
11246 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11247 };
11248
11249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11251 if (!SWIG_IsOK(res1)) {
11252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11253 }
11254 arg1 = reinterpret_cast< wxRegion * >(argp1);
11255 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11256 if (!SWIG_IsOK(res2)) {
11257 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11258 }
11259 if (!argp2) {
11260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11261 }
11262 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11263 {
11264 arg3 = &temp3;
11265 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11266 }
11267 if (obj3) {
11268 ecode4 = SWIG_AsVal_int(obj3, &val4);
11269 if (!SWIG_IsOK(ecode4)) {
11270 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11271 }
11272 arg4 = static_cast< int >(val4);
11273 }
11274 {
11275 PyThreadState* __tstate = wxPyBeginAllowThreads();
11276 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11277 wxPyEndAllowThreads(__tstate);
11278 if (PyErr_Occurred()) SWIG_fail;
11279 }
11280 {
11281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11282 }
11283 return resultobj;
11284 fail:
11285 return NULL;
11286 }
11287
11288
11289 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11290 PyObject *obj;
11291 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11292 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11293 return SWIG_Py_Void();
11294 }
11295
11296 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11297 return SWIG_Python_InitShadowInstance(args);
11298 }
11299
11300 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11301 PyObject *resultobj = 0;
11302 wxRegion *arg1 = 0 ;
11303 wxRegionIterator *result = 0 ;
11304 void *argp1 = 0 ;
11305 int res1 = 0 ;
11306 PyObject * obj0 = 0 ;
11307 char * kwnames[] = {
11308 (char *) "region", NULL
11309 };
11310
11311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11312 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11313 if (!SWIG_IsOK(res1)) {
11314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11315 }
11316 if (!argp1) {
11317 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11318 }
11319 arg1 = reinterpret_cast< wxRegion * >(argp1);
11320 {
11321 if (!wxPyCheckForApp()) SWIG_fail;
11322 PyThreadState* __tstate = wxPyBeginAllowThreads();
11323 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11324 wxPyEndAllowThreads(__tstate);
11325 if (PyErr_Occurred()) SWIG_fail;
11326 }
11327 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11328 return resultobj;
11329 fail:
11330 return NULL;
11331 }
11332
11333
11334 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11335 PyObject *resultobj = 0;
11336 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11337 void *argp1 = 0 ;
11338 int res1 = 0 ;
11339 PyObject *swig_obj[1] ;
11340
11341 if (!args) SWIG_fail;
11342 swig_obj[0] = args;
11343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11344 if (!SWIG_IsOK(res1)) {
11345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11346 }
11347 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11348 {
11349 PyThreadState* __tstate = wxPyBeginAllowThreads();
11350 delete arg1;
11351
11352 wxPyEndAllowThreads(__tstate);
11353 if (PyErr_Occurred()) SWIG_fail;
11354 }
11355 resultobj = SWIG_Py_Void();
11356 return resultobj;
11357 fail:
11358 return NULL;
11359 }
11360
11361
11362 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11363 PyObject *resultobj = 0;
11364 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11365 int result;
11366 void *argp1 = 0 ;
11367 int res1 = 0 ;
11368 PyObject *swig_obj[1] ;
11369
11370 if (!args) SWIG_fail;
11371 swig_obj[0] = args;
11372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11373 if (!SWIG_IsOK(res1)) {
11374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11375 }
11376 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11377 {
11378 PyThreadState* __tstate = wxPyBeginAllowThreads();
11379 result = (int)(arg1)->GetX();
11380 wxPyEndAllowThreads(__tstate);
11381 if (PyErr_Occurred()) SWIG_fail;
11382 }
11383 resultobj = SWIG_From_int(static_cast< int >(result));
11384 return resultobj;
11385 fail:
11386 return NULL;
11387 }
11388
11389
11390 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11391 PyObject *resultobj = 0;
11392 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11393 int result;
11394 void *argp1 = 0 ;
11395 int res1 = 0 ;
11396 PyObject *swig_obj[1] ;
11397
11398 if (!args) SWIG_fail;
11399 swig_obj[0] = args;
11400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11401 if (!SWIG_IsOK(res1)) {
11402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11403 }
11404 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11405 {
11406 PyThreadState* __tstate = wxPyBeginAllowThreads();
11407 result = (int)(arg1)->GetY();
11408 wxPyEndAllowThreads(__tstate);
11409 if (PyErr_Occurred()) SWIG_fail;
11410 }
11411 resultobj = SWIG_From_int(static_cast< int >(result));
11412 return resultobj;
11413 fail:
11414 return NULL;
11415 }
11416
11417
11418 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11419 PyObject *resultobj = 0;
11420 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11421 int result;
11422 void *argp1 = 0 ;
11423 int res1 = 0 ;
11424 PyObject *swig_obj[1] ;
11425
11426 if (!args) SWIG_fail;
11427 swig_obj[0] = args;
11428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11429 if (!SWIG_IsOK(res1)) {
11430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11431 }
11432 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11433 {
11434 PyThreadState* __tstate = wxPyBeginAllowThreads();
11435 result = (int)(arg1)->GetW();
11436 wxPyEndAllowThreads(__tstate);
11437 if (PyErr_Occurred()) SWIG_fail;
11438 }
11439 resultobj = SWIG_From_int(static_cast< int >(result));
11440 return resultobj;
11441 fail:
11442 return NULL;
11443 }
11444
11445
11446 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11447 PyObject *resultobj = 0;
11448 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11449 int result;
11450 void *argp1 = 0 ;
11451 int res1 = 0 ;
11452 PyObject *swig_obj[1] ;
11453
11454 if (!args) SWIG_fail;
11455 swig_obj[0] = args;
11456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11457 if (!SWIG_IsOK(res1)) {
11458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11459 }
11460 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11461 {
11462 PyThreadState* __tstate = wxPyBeginAllowThreads();
11463 result = (int)(arg1)->GetWidth();
11464 wxPyEndAllowThreads(__tstate);
11465 if (PyErr_Occurred()) SWIG_fail;
11466 }
11467 resultobj = SWIG_From_int(static_cast< int >(result));
11468 return resultobj;
11469 fail:
11470 return NULL;
11471 }
11472
11473
11474 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11475 PyObject *resultobj = 0;
11476 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11477 int result;
11478 void *argp1 = 0 ;
11479 int res1 = 0 ;
11480 PyObject *swig_obj[1] ;
11481
11482 if (!args) SWIG_fail;
11483 swig_obj[0] = args;
11484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11485 if (!SWIG_IsOK(res1)) {
11486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11487 }
11488 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11489 {
11490 PyThreadState* __tstate = wxPyBeginAllowThreads();
11491 result = (int)(arg1)->GetH();
11492 wxPyEndAllowThreads(__tstate);
11493 if (PyErr_Occurred()) SWIG_fail;
11494 }
11495 resultobj = SWIG_From_int(static_cast< int >(result));
11496 return resultobj;
11497 fail:
11498 return NULL;
11499 }
11500
11501
11502 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11503 PyObject *resultobj = 0;
11504 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11505 int result;
11506 void *argp1 = 0 ;
11507 int res1 = 0 ;
11508 PyObject *swig_obj[1] ;
11509
11510 if (!args) SWIG_fail;
11511 swig_obj[0] = args;
11512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11513 if (!SWIG_IsOK(res1)) {
11514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11515 }
11516 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11517 {
11518 PyThreadState* __tstate = wxPyBeginAllowThreads();
11519 result = (int)(arg1)->GetHeight();
11520 wxPyEndAllowThreads(__tstate);
11521 if (PyErr_Occurred()) SWIG_fail;
11522 }
11523 resultobj = SWIG_From_int(static_cast< int >(result));
11524 return resultobj;
11525 fail:
11526 return NULL;
11527 }
11528
11529
11530 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11531 PyObject *resultobj = 0;
11532 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11533 wxRect result;
11534 void *argp1 = 0 ;
11535 int res1 = 0 ;
11536 PyObject *swig_obj[1] ;
11537
11538 if (!args) SWIG_fail;
11539 swig_obj[0] = args;
11540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11541 if (!SWIG_IsOK(res1)) {
11542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11543 }
11544 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11545 {
11546 PyThreadState* __tstate = wxPyBeginAllowThreads();
11547 result = (arg1)->GetRect();
11548 wxPyEndAllowThreads(__tstate);
11549 if (PyErr_Occurred()) SWIG_fail;
11550 }
11551 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11552 return resultobj;
11553 fail:
11554 return NULL;
11555 }
11556
11557
11558 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11559 PyObject *resultobj = 0;
11560 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11561 bool result;
11562 void *argp1 = 0 ;
11563 int res1 = 0 ;
11564 PyObject *swig_obj[1] ;
11565
11566 if (!args) SWIG_fail;
11567 swig_obj[0] = args;
11568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11569 if (!SWIG_IsOK(res1)) {
11570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11571 }
11572 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11573 {
11574 PyThreadState* __tstate = wxPyBeginAllowThreads();
11575 result = (bool)(arg1)->HaveRects();
11576 wxPyEndAllowThreads(__tstate);
11577 if (PyErr_Occurred()) SWIG_fail;
11578 }
11579 {
11580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11581 }
11582 return resultobj;
11583 fail:
11584 return NULL;
11585 }
11586
11587
11588 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11589 PyObject *resultobj = 0;
11590 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11591 void *argp1 = 0 ;
11592 int res1 = 0 ;
11593 PyObject *swig_obj[1] ;
11594
11595 if (!args) SWIG_fail;
11596 swig_obj[0] = args;
11597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11598 if (!SWIG_IsOK(res1)) {
11599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11600 }
11601 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11602 {
11603 PyThreadState* __tstate = wxPyBeginAllowThreads();
11604 (arg1)->Reset();
11605 wxPyEndAllowThreads(__tstate);
11606 if (PyErr_Occurred()) SWIG_fail;
11607 }
11608 resultobj = SWIG_Py_Void();
11609 return resultobj;
11610 fail:
11611 return NULL;
11612 }
11613
11614
11615 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11616 PyObject *resultobj = 0;
11617 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11618 void *argp1 = 0 ;
11619 int res1 = 0 ;
11620 PyObject *swig_obj[1] ;
11621
11622 if (!args) SWIG_fail;
11623 swig_obj[0] = args;
11624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11625 if (!SWIG_IsOK(res1)) {
11626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11627 }
11628 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11629 {
11630 PyThreadState* __tstate = wxPyBeginAllowThreads();
11631 wxRegionIterator_Next(arg1);
11632 wxPyEndAllowThreads(__tstate);
11633 if (PyErr_Occurred()) SWIG_fail;
11634 }
11635 resultobj = SWIG_Py_Void();
11636 return resultobj;
11637 fail:
11638 return NULL;
11639 }
11640
11641
11642 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11643 PyObject *resultobj = 0;
11644 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11645 bool result;
11646 void *argp1 = 0 ;
11647 int res1 = 0 ;
11648 PyObject *swig_obj[1] ;
11649
11650 if (!args) SWIG_fail;
11651 swig_obj[0] = args;
11652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11653 if (!SWIG_IsOK(res1)) {
11654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11655 }
11656 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11657 {
11658 PyThreadState* __tstate = wxPyBeginAllowThreads();
11659 result = (bool)wxRegionIterator___nonzero__(arg1);
11660 wxPyEndAllowThreads(__tstate);
11661 if (PyErr_Occurred()) SWIG_fail;
11662 }
11663 {
11664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11665 }
11666 return resultobj;
11667 fail:
11668 return NULL;
11669 }
11670
11671
11672 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11673 PyObject *obj;
11674 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11675 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11676 return SWIG_Py_Void();
11677 }
11678
11679 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11680 return SWIG_Python_InitShadowInstance(args);
11681 }
11682
11683 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11684 PyObject *resultobj = 0;
11685 wxNativeFontInfo *result = 0 ;
11686
11687 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
11688 {
11689 PyThreadState* __tstate = wxPyBeginAllowThreads();
11690 result = (wxNativeFontInfo *)new wxNativeFontInfo();
11691 wxPyEndAllowThreads(__tstate);
11692 if (PyErr_Occurred()) SWIG_fail;
11693 }
11694 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
11695 return resultobj;
11696 fail:
11697 return NULL;
11698 }
11699
11700
11701 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11702 PyObject *resultobj = 0;
11703 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11704 void *argp1 = 0 ;
11705 int res1 = 0 ;
11706 PyObject *swig_obj[1] ;
11707
11708 if (!args) SWIG_fail;
11709 swig_obj[0] = args;
11710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
11711 if (!SWIG_IsOK(res1)) {
11712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11713 }
11714 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11715 {
11716 PyThreadState* __tstate = wxPyBeginAllowThreads();
11717 delete arg1;
11718
11719 wxPyEndAllowThreads(__tstate);
11720 if (PyErr_Occurred()) SWIG_fail;
11721 }
11722 resultobj = SWIG_Py_Void();
11723 return resultobj;
11724 fail:
11725 return NULL;
11726 }
11727
11728
11729 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11730 PyObject *resultobj = 0;
11731 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11732 void *argp1 = 0 ;
11733 int res1 = 0 ;
11734 PyObject *swig_obj[1] ;
11735
11736 if (!args) SWIG_fail;
11737 swig_obj[0] = args;
11738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11739 if (!SWIG_IsOK(res1)) {
11740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11741 }
11742 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11743 {
11744 PyThreadState* __tstate = wxPyBeginAllowThreads();
11745 (arg1)->Init();
11746 wxPyEndAllowThreads(__tstate);
11747 if (PyErr_Occurred()) SWIG_fail;
11748 }
11749 resultobj = SWIG_Py_Void();
11750 return resultobj;
11751 fail:
11752 return NULL;
11753 }
11754
11755
11756 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11757 PyObject *resultobj = 0;
11758 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11759 wxFont *arg2 = 0 ;
11760 void *argp1 = 0 ;
11761 int res1 = 0 ;
11762 void *argp2 = 0 ;
11763 int res2 = 0 ;
11764 PyObject * obj0 = 0 ;
11765 PyObject * obj1 = 0 ;
11766 char * kwnames[] = {
11767 (char *) "self",(char *) "font", NULL
11768 };
11769
11770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
11771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11772 if (!SWIG_IsOK(res1)) {
11773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11774 }
11775 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11776 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
11777 if (!SWIG_IsOK(res2)) {
11778 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11779 }
11780 if (!argp2) {
11781 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11782 }
11783 arg2 = reinterpret_cast< wxFont * >(argp2);
11784 {
11785 PyThreadState* __tstate = wxPyBeginAllowThreads();
11786 (arg1)->InitFromFont((wxFont const &)*arg2);
11787 wxPyEndAllowThreads(__tstate);
11788 if (PyErr_Occurred()) SWIG_fail;
11789 }
11790 resultobj = SWIG_Py_Void();
11791 return resultobj;
11792 fail:
11793 return NULL;
11794 }
11795
11796
11797 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11798 PyObject *resultobj = 0;
11799 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11800 int result;
11801 void *argp1 = 0 ;
11802 int res1 = 0 ;
11803 PyObject *swig_obj[1] ;
11804
11805 if (!args) SWIG_fail;
11806 swig_obj[0] = args;
11807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11808 if (!SWIG_IsOK(res1)) {
11809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11810 }
11811 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11812 {
11813 PyThreadState* __tstate = wxPyBeginAllowThreads();
11814 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
11815 wxPyEndAllowThreads(__tstate);
11816 if (PyErr_Occurred()) SWIG_fail;
11817 }
11818 resultobj = SWIG_From_int(static_cast< int >(result));
11819 return resultobj;
11820 fail:
11821 return NULL;
11822 }
11823
11824
11825 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11826 PyObject *resultobj = 0;
11827 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11828 wxFontStyle result;
11829 void *argp1 = 0 ;
11830 int res1 = 0 ;
11831 PyObject *swig_obj[1] ;
11832
11833 if (!args) SWIG_fail;
11834 swig_obj[0] = args;
11835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11836 if (!SWIG_IsOK(res1)) {
11837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11838 }
11839 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11840 {
11841 PyThreadState* __tstate = wxPyBeginAllowThreads();
11842 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
11843 wxPyEndAllowThreads(__tstate);
11844 if (PyErr_Occurred()) SWIG_fail;
11845 }
11846 resultobj = SWIG_From_int(static_cast< int >(result));
11847 return resultobj;
11848 fail:
11849 return NULL;
11850 }
11851
11852
11853 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11854 PyObject *resultobj = 0;
11855 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11856 wxFontWeight result;
11857 void *argp1 = 0 ;
11858 int res1 = 0 ;
11859 PyObject *swig_obj[1] ;
11860
11861 if (!args) SWIG_fail;
11862 swig_obj[0] = args;
11863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11864 if (!SWIG_IsOK(res1)) {
11865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11866 }
11867 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11868 {
11869 PyThreadState* __tstate = wxPyBeginAllowThreads();
11870 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
11871 wxPyEndAllowThreads(__tstate);
11872 if (PyErr_Occurred()) SWIG_fail;
11873 }
11874 resultobj = SWIG_From_int(static_cast< int >(result));
11875 return resultobj;
11876 fail:
11877 return NULL;
11878 }
11879
11880
11881 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11882 PyObject *resultobj = 0;
11883 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11884 bool result;
11885 void *argp1 = 0 ;
11886 int res1 = 0 ;
11887 PyObject *swig_obj[1] ;
11888
11889 if (!args) SWIG_fail;
11890 swig_obj[0] = args;
11891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11892 if (!SWIG_IsOK(res1)) {
11893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11894 }
11895 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11896 {
11897 PyThreadState* __tstate = wxPyBeginAllowThreads();
11898 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
11899 wxPyEndAllowThreads(__tstate);
11900 if (PyErr_Occurred()) SWIG_fail;
11901 }
11902 {
11903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11904 }
11905 return resultobj;
11906 fail:
11907 return NULL;
11908 }
11909
11910
11911 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11912 PyObject *resultobj = 0;
11913 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11914 wxString result;
11915 void *argp1 = 0 ;
11916 int res1 = 0 ;
11917 PyObject *swig_obj[1] ;
11918
11919 if (!args) SWIG_fail;
11920 swig_obj[0] = args;
11921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11922 if (!SWIG_IsOK(res1)) {
11923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11924 }
11925 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11926 {
11927 PyThreadState* __tstate = wxPyBeginAllowThreads();
11928 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
11929 wxPyEndAllowThreads(__tstate);
11930 if (PyErr_Occurred()) SWIG_fail;
11931 }
11932 {
11933 #if wxUSE_UNICODE
11934 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11935 #else
11936 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11937 #endif
11938 }
11939 return resultobj;
11940 fail:
11941 return NULL;
11942 }
11943
11944
11945 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11946 PyObject *resultobj = 0;
11947 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11948 wxFontFamily result;
11949 void *argp1 = 0 ;
11950 int res1 = 0 ;
11951 PyObject *swig_obj[1] ;
11952
11953 if (!args) SWIG_fail;
11954 swig_obj[0] = args;
11955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11956 if (!SWIG_IsOK(res1)) {
11957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11958 }
11959 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11960 {
11961 PyThreadState* __tstate = wxPyBeginAllowThreads();
11962 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
11963 wxPyEndAllowThreads(__tstate);
11964 if (PyErr_Occurred()) SWIG_fail;
11965 }
11966 resultobj = SWIG_From_int(static_cast< int >(result));
11967 return resultobj;
11968 fail:
11969 return NULL;
11970 }
11971
11972
11973 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11974 PyObject *resultobj = 0;
11975 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11976 wxFontEncoding result;
11977 void *argp1 = 0 ;
11978 int res1 = 0 ;
11979 PyObject *swig_obj[1] ;
11980
11981 if (!args) SWIG_fail;
11982 swig_obj[0] = args;
11983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11984 if (!SWIG_IsOK(res1)) {
11985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11986 }
11987 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11988 {
11989 PyThreadState* __tstate = wxPyBeginAllowThreads();
11990 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
11991 wxPyEndAllowThreads(__tstate);
11992 if (PyErr_Occurred()) SWIG_fail;
11993 }
11994 resultobj = SWIG_From_int(static_cast< int >(result));
11995 return resultobj;
11996 fail:
11997 return NULL;
11998 }
11999
12000
12001 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12002 PyObject *resultobj = 0;
12003 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12004 int arg2 ;
12005 void *argp1 = 0 ;
12006 int res1 = 0 ;
12007 int val2 ;
12008 int ecode2 = 0 ;
12009 PyObject * obj0 = 0 ;
12010 PyObject * obj1 = 0 ;
12011 char * kwnames[] = {
12012 (char *) "self",(char *) "pointsize", NULL
12013 };
12014
12015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12017 if (!SWIG_IsOK(res1)) {
12018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12019 }
12020 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12021 ecode2 = SWIG_AsVal_int(obj1, &val2);
12022 if (!SWIG_IsOK(ecode2)) {
12023 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12024 }
12025 arg2 = static_cast< int >(val2);
12026 {
12027 PyThreadState* __tstate = wxPyBeginAllowThreads();
12028 (arg1)->SetPointSize(arg2);
12029 wxPyEndAllowThreads(__tstate);
12030 if (PyErr_Occurred()) SWIG_fail;
12031 }
12032 resultobj = SWIG_Py_Void();
12033 return resultobj;
12034 fail:
12035 return NULL;
12036 }
12037
12038
12039 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12040 PyObject *resultobj = 0;
12041 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12042 wxFontStyle arg2 ;
12043 void *argp1 = 0 ;
12044 int res1 = 0 ;
12045 int val2 ;
12046 int ecode2 = 0 ;
12047 PyObject * obj0 = 0 ;
12048 PyObject * obj1 = 0 ;
12049 char * kwnames[] = {
12050 (char *) "self",(char *) "style", NULL
12051 };
12052
12053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12055 if (!SWIG_IsOK(res1)) {
12056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12057 }
12058 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12059 ecode2 = SWIG_AsVal_int(obj1, &val2);
12060 if (!SWIG_IsOK(ecode2)) {
12061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12062 }
12063 arg2 = static_cast< wxFontStyle >(val2);
12064 {
12065 PyThreadState* __tstate = wxPyBeginAllowThreads();
12066 (arg1)->SetStyle(arg2);
12067 wxPyEndAllowThreads(__tstate);
12068 if (PyErr_Occurred()) SWIG_fail;
12069 }
12070 resultobj = SWIG_Py_Void();
12071 return resultobj;
12072 fail:
12073 return NULL;
12074 }
12075
12076
12077 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12078 PyObject *resultobj = 0;
12079 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12080 wxFontWeight arg2 ;
12081 void *argp1 = 0 ;
12082 int res1 = 0 ;
12083 int val2 ;
12084 int ecode2 = 0 ;
12085 PyObject * obj0 = 0 ;
12086 PyObject * obj1 = 0 ;
12087 char * kwnames[] = {
12088 (char *) "self",(char *) "weight", NULL
12089 };
12090
12091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12093 if (!SWIG_IsOK(res1)) {
12094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12095 }
12096 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12097 ecode2 = SWIG_AsVal_int(obj1, &val2);
12098 if (!SWIG_IsOK(ecode2)) {
12099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12100 }
12101 arg2 = static_cast< wxFontWeight >(val2);
12102 {
12103 PyThreadState* __tstate = wxPyBeginAllowThreads();
12104 (arg1)->SetWeight(arg2);
12105 wxPyEndAllowThreads(__tstate);
12106 if (PyErr_Occurred()) SWIG_fail;
12107 }
12108 resultobj = SWIG_Py_Void();
12109 return resultobj;
12110 fail:
12111 return NULL;
12112 }
12113
12114
12115 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12116 PyObject *resultobj = 0;
12117 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12118 bool arg2 ;
12119 void *argp1 = 0 ;
12120 int res1 = 0 ;
12121 bool val2 ;
12122 int ecode2 = 0 ;
12123 PyObject * obj0 = 0 ;
12124 PyObject * obj1 = 0 ;
12125 char * kwnames[] = {
12126 (char *) "self",(char *) "underlined", NULL
12127 };
12128
12129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12131 if (!SWIG_IsOK(res1)) {
12132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12133 }
12134 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12135 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12136 if (!SWIG_IsOK(ecode2)) {
12137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12138 }
12139 arg2 = static_cast< bool >(val2);
12140 {
12141 PyThreadState* __tstate = wxPyBeginAllowThreads();
12142 (arg1)->SetUnderlined(arg2);
12143 wxPyEndAllowThreads(__tstate);
12144 if (PyErr_Occurred()) SWIG_fail;
12145 }
12146 resultobj = SWIG_Py_Void();
12147 return resultobj;
12148 fail:
12149 return NULL;
12150 }
12151
12152
12153 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12154 PyObject *resultobj = 0;
12155 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12156 wxString arg2 ;
12157 bool result;
12158 void *argp1 = 0 ;
12159 int res1 = 0 ;
12160 PyObject * obj0 = 0 ;
12161 PyObject * obj1 = 0 ;
12162 char * kwnames[] = {
12163 (char *) "self",(char *) "facename", NULL
12164 };
12165
12166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12168 if (!SWIG_IsOK(res1)) {
12169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12170 }
12171 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12172 {
12173 wxString* sptr = wxString_in_helper(obj1);
12174 if (sptr == NULL) SWIG_fail;
12175 arg2 = *sptr;
12176 delete sptr;
12177 }
12178 {
12179 PyThreadState* __tstate = wxPyBeginAllowThreads();
12180 result = (bool)(arg1)->SetFaceName(arg2);
12181 wxPyEndAllowThreads(__tstate);
12182 if (PyErr_Occurred()) SWIG_fail;
12183 }
12184 {
12185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12186 }
12187 return resultobj;
12188 fail:
12189 return NULL;
12190 }
12191
12192
12193 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12194 PyObject *resultobj = 0;
12195 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12196 wxFontFamily arg2 ;
12197 void *argp1 = 0 ;
12198 int res1 = 0 ;
12199 int val2 ;
12200 int ecode2 = 0 ;
12201 PyObject * obj0 = 0 ;
12202 PyObject * obj1 = 0 ;
12203 char * kwnames[] = {
12204 (char *) "self",(char *) "family", NULL
12205 };
12206
12207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12209 if (!SWIG_IsOK(res1)) {
12210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12211 }
12212 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12213 ecode2 = SWIG_AsVal_int(obj1, &val2);
12214 if (!SWIG_IsOK(ecode2)) {
12215 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12216 }
12217 arg2 = static_cast< wxFontFamily >(val2);
12218 {
12219 PyThreadState* __tstate = wxPyBeginAllowThreads();
12220 (arg1)->SetFamily(arg2);
12221 wxPyEndAllowThreads(__tstate);
12222 if (PyErr_Occurred()) SWIG_fail;
12223 }
12224 resultobj = SWIG_Py_Void();
12225 return resultobj;
12226 fail:
12227 return NULL;
12228 }
12229
12230
12231 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12232 PyObject *resultobj = 0;
12233 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12234 wxFontEncoding arg2 ;
12235 void *argp1 = 0 ;
12236 int res1 = 0 ;
12237 int val2 ;
12238 int ecode2 = 0 ;
12239 PyObject * obj0 = 0 ;
12240 PyObject * obj1 = 0 ;
12241 char * kwnames[] = {
12242 (char *) "self",(char *) "encoding", NULL
12243 };
12244
12245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12247 if (!SWIG_IsOK(res1)) {
12248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12249 }
12250 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12251 ecode2 = SWIG_AsVal_int(obj1, &val2);
12252 if (!SWIG_IsOK(ecode2)) {
12253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12254 }
12255 arg2 = static_cast< wxFontEncoding >(val2);
12256 {
12257 PyThreadState* __tstate = wxPyBeginAllowThreads();
12258 (arg1)->SetEncoding(arg2);
12259 wxPyEndAllowThreads(__tstate);
12260 if (PyErr_Occurred()) SWIG_fail;
12261 }
12262 resultobj = SWIG_Py_Void();
12263 return resultobj;
12264 fail:
12265 return NULL;
12266 }
12267
12268
12269 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12270 PyObject *resultobj = 0;
12271 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12272 wxString *arg2 = 0 ;
12273 bool result;
12274 void *argp1 = 0 ;
12275 int res1 = 0 ;
12276 bool temp2 = false ;
12277 PyObject * obj0 = 0 ;
12278 PyObject * obj1 = 0 ;
12279 char * kwnames[] = {
12280 (char *) "self",(char *) "s", NULL
12281 };
12282
12283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12285 if (!SWIG_IsOK(res1)) {
12286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12287 }
12288 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12289 {
12290 arg2 = wxString_in_helper(obj1);
12291 if (arg2 == NULL) SWIG_fail;
12292 temp2 = true;
12293 }
12294 {
12295 PyThreadState* __tstate = wxPyBeginAllowThreads();
12296 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12297 wxPyEndAllowThreads(__tstate);
12298 if (PyErr_Occurred()) SWIG_fail;
12299 }
12300 {
12301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12302 }
12303 {
12304 if (temp2)
12305 delete arg2;
12306 }
12307 return resultobj;
12308 fail:
12309 {
12310 if (temp2)
12311 delete arg2;
12312 }
12313 return NULL;
12314 }
12315
12316
12317 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12318 PyObject *resultobj = 0;
12319 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12320 wxString result;
12321 void *argp1 = 0 ;
12322 int res1 = 0 ;
12323 PyObject *swig_obj[1] ;
12324
12325 if (!args) SWIG_fail;
12326 swig_obj[0] = args;
12327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12328 if (!SWIG_IsOK(res1)) {
12329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12330 }
12331 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12332 {
12333 PyThreadState* __tstate = wxPyBeginAllowThreads();
12334 result = ((wxNativeFontInfo const *)arg1)->ToString();
12335 wxPyEndAllowThreads(__tstate);
12336 if (PyErr_Occurred()) SWIG_fail;
12337 }
12338 {
12339 #if wxUSE_UNICODE
12340 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12341 #else
12342 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12343 #endif
12344 }
12345 return resultobj;
12346 fail:
12347 return NULL;
12348 }
12349
12350
12351 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12352 PyObject *resultobj = 0;
12353 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12354 wxString result;
12355 void *argp1 = 0 ;
12356 int res1 = 0 ;
12357 PyObject *swig_obj[1] ;
12358
12359 if (!args) SWIG_fail;
12360 swig_obj[0] = args;
12361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12362 if (!SWIG_IsOK(res1)) {
12363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12364 }
12365 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12366 {
12367 PyThreadState* __tstate = wxPyBeginAllowThreads();
12368 result = wxNativeFontInfo___str__(arg1);
12369 wxPyEndAllowThreads(__tstate);
12370 if (PyErr_Occurred()) SWIG_fail;
12371 }
12372 {
12373 #if wxUSE_UNICODE
12374 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12375 #else
12376 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12377 #endif
12378 }
12379 return resultobj;
12380 fail:
12381 return NULL;
12382 }
12383
12384
12385 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12386 PyObject *resultobj = 0;
12387 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12388 wxString *arg2 = 0 ;
12389 bool result;
12390 void *argp1 = 0 ;
12391 int res1 = 0 ;
12392 bool temp2 = false ;
12393 PyObject * obj0 = 0 ;
12394 PyObject * obj1 = 0 ;
12395 char * kwnames[] = {
12396 (char *) "self",(char *) "s", NULL
12397 };
12398
12399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12401 if (!SWIG_IsOK(res1)) {
12402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12403 }
12404 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12405 {
12406 arg2 = wxString_in_helper(obj1);
12407 if (arg2 == NULL) SWIG_fail;
12408 temp2 = true;
12409 }
12410 {
12411 PyThreadState* __tstate = wxPyBeginAllowThreads();
12412 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12413 wxPyEndAllowThreads(__tstate);
12414 if (PyErr_Occurred()) SWIG_fail;
12415 }
12416 {
12417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12418 }
12419 {
12420 if (temp2)
12421 delete arg2;
12422 }
12423 return resultobj;
12424 fail:
12425 {
12426 if (temp2)
12427 delete arg2;
12428 }
12429 return NULL;
12430 }
12431
12432
12433 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12434 PyObject *resultobj = 0;
12435 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12436 wxString result;
12437 void *argp1 = 0 ;
12438 int res1 = 0 ;
12439 PyObject *swig_obj[1] ;
12440
12441 if (!args) SWIG_fail;
12442 swig_obj[0] = args;
12443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12444 if (!SWIG_IsOK(res1)) {
12445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12446 }
12447 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12448 {
12449 PyThreadState* __tstate = wxPyBeginAllowThreads();
12450 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12451 wxPyEndAllowThreads(__tstate);
12452 if (PyErr_Occurred()) SWIG_fail;
12453 }
12454 {
12455 #if wxUSE_UNICODE
12456 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12457 #else
12458 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12459 #endif
12460 }
12461 return resultobj;
12462 fail:
12463 return NULL;
12464 }
12465
12466
12467 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12468 PyObject *obj;
12469 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12470 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12471 return SWIG_Py_Void();
12472 }
12473
12474 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12475 return SWIG_Python_InitShadowInstance(args);
12476 }
12477
12478 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12479 PyObject *resultobj = 0;
12480 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12481 wxString *arg2 = (wxString *) 0 ;
12482 void *argp1 = 0 ;
12483 int res1 = 0 ;
12484 bool temp2 = false ;
12485 PyObject *swig_obj[2] ;
12486
12487 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12489 if (!SWIG_IsOK(res1)) {
12490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12491 }
12492 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12493 {
12494 arg2 = wxString_in_helper(swig_obj[1]);
12495 if (arg2 == NULL) SWIG_fail;
12496 temp2 = true;
12497 }
12498 if (arg1) (arg1)->facename = *arg2;
12499
12500 resultobj = SWIG_Py_Void();
12501 {
12502 if (temp2)
12503 delete arg2;
12504 }
12505 return resultobj;
12506 fail:
12507 {
12508 if (temp2)
12509 delete arg2;
12510 }
12511 return NULL;
12512 }
12513
12514
12515 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12516 PyObject *resultobj = 0;
12517 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12518 wxString *result = 0 ;
12519 void *argp1 = 0 ;
12520 int res1 = 0 ;
12521 PyObject *swig_obj[1] ;
12522
12523 if (!args) SWIG_fail;
12524 swig_obj[0] = args;
12525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12526 if (!SWIG_IsOK(res1)) {
12527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12528 }
12529 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12530 result = (wxString *)& ((arg1)->facename);
12531 {
12532 #if wxUSE_UNICODE
12533 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12534 #else
12535 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12536 #endif
12537 }
12538 return resultobj;
12539 fail:
12540 return NULL;
12541 }
12542
12543
12544 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12545 PyObject *resultobj = 0;
12546 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12547 wxFontEncoding arg2 ;
12548 void *argp1 = 0 ;
12549 int res1 = 0 ;
12550 int val2 ;
12551 int ecode2 = 0 ;
12552 PyObject *swig_obj[2] ;
12553
12554 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12556 if (!SWIG_IsOK(res1)) {
12557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12558 }
12559 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12560 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12561 if (!SWIG_IsOK(ecode2)) {
12562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12563 }
12564 arg2 = static_cast< wxFontEncoding >(val2);
12565 if (arg1) (arg1)->encoding = arg2;
12566
12567 resultobj = SWIG_Py_Void();
12568 return resultobj;
12569 fail:
12570 return NULL;
12571 }
12572
12573
12574 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12575 PyObject *resultobj = 0;
12576 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12577 wxFontEncoding result;
12578 void *argp1 = 0 ;
12579 int res1 = 0 ;
12580 PyObject *swig_obj[1] ;
12581
12582 if (!args) SWIG_fail;
12583 swig_obj[0] = args;
12584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12585 if (!SWIG_IsOK(res1)) {
12586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12587 }
12588 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12589 result = (wxFontEncoding) ((arg1)->encoding);
12590 resultobj = SWIG_From_int(static_cast< int >(result));
12591 return resultobj;
12592 fail:
12593 return NULL;
12594 }
12595
12596
12597 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12598 PyObject *resultobj = 0;
12599 wxNativeEncodingInfo *result = 0 ;
12600
12601 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12602 {
12603 PyThreadState* __tstate = wxPyBeginAllowThreads();
12604 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12605 wxPyEndAllowThreads(__tstate);
12606 if (PyErr_Occurred()) SWIG_fail;
12607 }
12608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12609 return resultobj;
12610 fail:
12611 return NULL;
12612 }
12613
12614
12615 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12616 PyObject *resultobj = 0;
12617 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12618 void *argp1 = 0 ;
12619 int res1 = 0 ;
12620 PyObject *swig_obj[1] ;
12621
12622 if (!args) SWIG_fail;
12623 swig_obj[0] = args;
12624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12625 if (!SWIG_IsOK(res1)) {
12626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12627 }
12628 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12629 {
12630 PyThreadState* __tstate = wxPyBeginAllowThreads();
12631 delete arg1;
12632
12633 wxPyEndAllowThreads(__tstate);
12634 if (PyErr_Occurred()) SWIG_fail;
12635 }
12636 resultobj = SWIG_Py_Void();
12637 return resultobj;
12638 fail:
12639 return NULL;
12640 }
12641
12642
12643 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12644 PyObject *resultobj = 0;
12645 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12646 wxString *arg2 = 0 ;
12647 bool result;
12648 void *argp1 = 0 ;
12649 int res1 = 0 ;
12650 bool temp2 = false ;
12651 PyObject * obj0 = 0 ;
12652 PyObject * obj1 = 0 ;
12653 char * kwnames[] = {
12654 (char *) "self",(char *) "s", NULL
12655 };
12656
12657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12659 if (!SWIG_IsOK(res1)) {
12660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12661 }
12662 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12663 {
12664 arg2 = wxString_in_helper(obj1);
12665 if (arg2 == NULL) SWIG_fail;
12666 temp2 = true;
12667 }
12668 {
12669 PyThreadState* __tstate = wxPyBeginAllowThreads();
12670 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12671 wxPyEndAllowThreads(__tstate);
12672 if (PyErr_Occurred()) SWIG_fail;
12673 }
12674 {
12675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12676 }
12677 {
12678 if (temp2)
12679 delete arg2;
12680 }
12681 return resultobj;
12682 fail:
12683 {
12684 if (temp2)
12685 delete arg2;
12686 }
12687 return NULL;
12688 }
12689
12690
12691 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12692 PyObject *resultobj = 0;
12693 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12694 wxString result;
12695 void *argp1 = 0 ;
12696 int res1 = 0 ;
12697 PyObject *swig_obj[1] ;
12698
12699 if (!args) SWIG_fail;
12700 swig_obj[0] = args;
12701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12702 if (!SWIG_IsOK(res1)) {
12703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
12704 }
12705 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12706 {
12707 PyThreadState* __tstate = wxPyBeginAllowThreads();
12708 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
12709 wxPyEndAllowThreads(__tstate);
12710 if (PyErr_Occurred()) SWIG_fail;
12711 }
12712 {
12713 #if wxUSE_UNICODE
12714 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12715 #else
12716 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12717 #endif
12718 }
12719 return resultobj;
12720 fail:
12721 return NULL;
12722 }
12723
12724
12725 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12726 PyObject *obj;
12727 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12728 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
12729 return SWIG_Py_Void();
12730 }
12731
12732 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12733 return SWIG_Python_InitShadowInstance(args);
12734 }
12735
12736 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12737 PyObject *resultobj = 0;
12738 wxFontEncoding arg1 ;
12739 wxNativeEncodingInfo *result = 0 ;
12740 int val1 ;
12741 int ecode1 = 0 ;
12742 PyObject * obj0 = 0 ;
12743 char * kwnames[] = {
12744 (char *) "encoding", NULL
12745 };
12746
12747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
12748 ecode1 = SWIG_AsVal_int(obj0, &val1);
12749 if (!SWIG_IsOK(ecode1)) {
12750 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12751 }
12752 arg1 = static_cast< wxFontEncoding >(val1);
12753 {
12754 PyThreadState* __tstate = wxPyBeginAllowThreads();
12755 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
12756 wxPyEndAllowThreads(__tstate);
12757 if (PyErr_Occurred()) SWIG_fail;
12758 }
12759 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12760 return resultobj;
12761 fail:
12762 return NULL;
12763 }
12764
12765
12766 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12767 PyObject *resultobj = 0;
12768 wxNativeEncodingInfo *arg1 = 0 ;
12769 bool result;
12770 void *argp1 = 0 ;
12771 int res1 = 0 ;
12772 PyObject * obj0 = 0 ;
12773 char * kwnames[] = {
12774 (char *) "info", NULL
12775 };
12776
12777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
12778 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
12779 if (!SWIG_IsOK(res1)) {
12780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12781 }
12782 if (!argp1) {
12783 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12784 }
12785 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12786 {
12787 PyThreadState* __tstate = wxPyBeginAllowThreads();
12788 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
12789 wxPyEndAllowThreads(__tstate);
12790 if (PyErr_Occurred()) SWIG_fail;
12791 }
12792 {
12793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12794 }
12795 return resultobj;
12796 fail:
12797 return NULL;
12798 }
12799
12800
12801 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12802 PyObject *resultobj = 0;
12803 wxFontMapper *result = 0 ;
12804
12805 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
12806 {
12807 PyThreadState* __tstate = wxPyBeginAllowThreads();
12808 result = (wxFontMapper *)new wxFontMapper();
12809 wxPyEndAllowThreads(__tstate);
12810 if (PyErr_Occurred()) SWIG_fail;
12811 }
12812 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
12813 return resultobj;
12814 fail:
12815 return NULL;
12816 }
12817
12818
12819 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12820 PyObject *resultobj = 0;
12821 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12822 void *argp1 = 0 ;
12823 int res1 = 0 ;
12824 PyObject *swig_obj[1] ;
12825
12826 if (!args) SWIG_fail;
12827 swig_obj[0] = args;
12828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
12829 if (!SWIG_IsOK(res1)) {
12830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12831 }
12832 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12833 {
12834 PyThreadState* __tstate = wxPyBeginAllowThreads();
12835 delete arg1;
12836
12837 wxPyEndAllowThreads(__tstate);
12838 if (PyErr_Occurred()) SWIG_fail;
12839 }
12840 resultobj = SWIG_Py_Void();
12841 return resultobj;
12842 fail:
12843 return NULL;
12844 }
12845
12846
12847 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12848 PyObject *resultobj = 0;
12849 wxFontMapper *result = 0 ;
12850
12851 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
12852 {
12853 PyThreadState* __tstate = wxPyBeginAllowThreads();
12854 result = (wxFontMapper *)wxFontMapper::Get();
12855 wxPyEndAllowThreads(__tstate);
12856 if (PyErr_Occurred()) SWIG_fail;
12857 }
12858 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12859 return resultobj;
12860 fail:
12861 return NULL;
12862 }
12863
12864
12865 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12866 PyObject *resultobj = 0;
12867 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12868 wxFontMapper *result = 0 ;
12869 void *argp1 = 0 ;
12870 int res1 = 0 ;
12871 PyObject * obj0 = 0 ;
12872 char * kwnames[] = {
12873 (char *) "mapper", NULL
12874 };
12875
12876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
12877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12878 if (!SWIG_IsOK(res1)) {
12879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12880 }
12881 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12882 {
12883 PyThreadState* __tstate = wxPyBeginAllowThreads();
12884 result = (wxFontMapper *)wxFontMapper::Set(arg1);
12885 wxPyEndAllowThreads(__tstate);
12886 if (PyErr_Occurred()) SWIG_fail;
12887 }
12888 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12889 return resultobj;
12890 fail:
12891 return NULL;
12892 }
12893
12894
12895 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12896 PyObject *resultobj = 0;
12897 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12898 wxString *arg2 = 0 ;
12899 bool arg3 = (bool) true ;
12900 wxFontEncoding result;
12901 void *argp1 = 0 ;
12902 int res1 = 0 ;
12903 bool temp2 = false ;
12904 bool val3 ;
12905 int ecode3 = 0 ;
12906 PyObject * obj0 = 0 ;
12907 PyObject * obj1 = 0 ;
12908 PyObject * obj2 = 0 ;
12909 char * kwnames[] = {
12910 (char *) "self",(char *) "charset",(char *) "interactive", NULL
12911 };
12912
12913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12915 if (!SWIG_IsOK(res1)) {
12916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12917 }
12918 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12919 {
12920 arg2 = wxString_in_helper(obj1);
12921 if (arg2 == NULL) SWIG_fail;
12922 temp2 = true;
12923 }
12924 if (obj2) {
12925 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12926 if (!SWIG_IsOK(ecode3)) {
12927 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
12928 }
12929 arg3 = static_cast< bool >(val3);
12930 }
12931 {
12932 PyThreadState* __tstate = wxPyBeginAllowThreads();
12933 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
12934 wxPyEndAllowThreads(__tstate);
12935 if (PyErr_Occurred()) SWIG_fail;
12936 }
12937 resultobj = SWIG_From_int(static_cast< int >(result));
12938 {
12939 if (temp2)
12940 delete arg2;
12941 }
12942 return resultobj;
12943 fail:
12944 {
12945 if (temp2)
12946 delete arg2;
12947 }
12948 return NULL;
12949 }
12950
12951
12952 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12953 PyObject *resultobj = 0;
12954 size_t result;
12955
12956 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
12957 {
12958 PyThreadState* __tstate = wxPyBeginAllowThreads();
12959 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
12960 wxPyEndAllowThreads(__tstate);
12961 if (PyErr_Occurred()) SWIG_fail;
12962 }
12963 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
12964 return resultobj;
12965 fail:
12966 return NULL;
12967 }
12968
12969
12970 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12971 PyObject *resultobj = 0;
12972 size_t arg1 ;
12973 wxFontEncoding result;
12974 size_t val1 ;
12975 int ecode1 = 0 ;
12976 PyObject * obj0 = 0 ;
12977 char * kwnames[] = {
12978 (char *) "n", NULL
12979 };
12980
12981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
12982 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
12983 if (!SWIG_IsOK(ecode1)) {
12984 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
12985 }
12986 arg1 = static_cast< size_t >(val1);
12987 {
12988 PyThreadState* __tstate = wxPyBeginAllowThreads();
12989 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
12990 wxPyEndAllowThreads(__tstate);
12991 if (PyErr_Occurred()) SWIG_fail;
12992 }
12993 resultobj = SWIG_From_int(static_cast< int >(result));
12994 return resultobj;
12995 fail:
12996 return NULL;
12997 }
12998
12999
13000 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13001 PyObject *resultobj = 0;
13002 wxFontEncoding arg1 ;
13003 wxString result;
13004 int val1 ;
13005 int ecode1 = 0 ;
13006 PyObject * obj0 = 0 ;
13007 char * kwnames[] = {
13008 (char *) "encoding", NULL
13009 };
13010
13011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13012 ecode1 = SWIG_AsVal_int(obj0, &val1);
13013 if (!SWIG_IsOK(ecode1)) {
13014 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13015 }
13016 arg1 = static_cast< wxFontEncoding >(val1);
13017 {
13018 PyThreadState* __tstate = wxPyBeginAllowThreads();
13019 result = wxFontMapper::GetEncodingName(arg1);
13020 wxPyEndAllowThreads(__tstate);
13021 if (PyErr_Occurred()) SWIG_fail;
13022 }
13023 {
13024 #if wxUSE_UNICODE
13025 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13026 #else
13027 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13028 #endif
13029 }
13030 return resultobj;
13031 fail:
13032 return NULL;
13033 }
13034
13035
13036 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13037 PyObject *resultobj = 0;
13038 wxFontEncoding arg1 ;
13039 wxString result;
13040 int val1 ;
13041 int ecode1 = 0 ;
13042 PyObject * obj0 = 0 ;
13043 char * kwnames[] = {
13044 (char *) "encoding", NULL
13045 };
13046
13047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13048 ecode1 = SWIG_AsVal_int(obj0, &val1);
13049 if (!SWIG_IsOK(ecode1)) {
13050 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13051 }
13052 arg1 = static_cast< wxFontEncoding >(val1);
13053 {
13054 PyThreadState* __tstate = wxPyBeginAllowThreads();
13055 result = wxFontMapper::GetEncodingDescription(arg1);
13056 wxPyEndAllowThreads(__tstate);
13057 if (PyErr_Occurred()) SWIG_fail;
13058 }
13059 {
13060 #if wxUSE_UNICODE
13061 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13062 #else
13063 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13064 #endif
13065 }
13066 return resultobj;
13067 fail:
13068 return NULL;
13069 }
13070
13071
13072 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13073 PyObject *resultobj = 0;
13074 wxString *arg1 = 0 ;
13075 wxFontEncoding result;
13076 bool temp1 = false ;
13077 PyObject * obj0 = 0 ;
13078 char * kwnames[] = {
13079 (char *) "name", NULL
13080 };
13081
13082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13083 {
13084 arg1 = wxString_in_helper(obj0);
13085 if (arg1 == NULL) SWIG_fail;
13086 temp1 = true;
13087 }
13088 {
13089 PyThreadState* __tstate = wxPyBeginAllowThreads();
13090 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13091 wxPyEndAllowThreads(__tstate);
13092 if (PyErr_Occurred()) SWIG_fail;
13093 }
13094 resultobj = SWIG_From_int(static_cast< int >(result));
13095 {
13096 if (temp1)
13097 delete arg1;
13098 }
13099 return resultobj;
13100 fail:
13101 {
13102 if (temp1)
13103 delete arg1;
13104 }
13105 return NULL;
13106 }
13107
13108
13109 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13110 PyObject *resultobj = 0;
13111 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13112 wxString *arg2 = 0 ;
13113 void *argp1 = 0 ;
13114 int res1 = 0 ;
13115 bool temp2 = false ;
13116 PyObject * obj0 = 0 ;
13117 PyObject * obj1 = 0 ;
13118 char * kwnames[] = {
13119 (char *) "self",(char *) "prefix", NULL
13120 };
13121
13122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13124 if (!SWIG_IsOK(res1)) {
13125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13126 }
13127 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13128 {
13129 arg2 = wxString_in_helper(obj1);
13130 if (arg2 == NULL) SWIG_fail;
13131 temp2 = true;
13132 }
13133 {
13134 PyThreadState* __tstate = wxPyBeginAllowThreads();
13135 (arg1)->SetConfigPath((wxString const &)*arg2);
13136 wxPyEndAllowThreads(__tstate);
13137 if (PyErr_Occurred()) SWIG_fail;
13138 }
13139 resultobj = SWIG_Py_Void();
13140 {
13141 if (temp2)
13142 delete arg2;
13143 }
13144 return resultobj;
13145 fail:
13146 {
13147 if (temp2)
13148 delete arg2;
13149 }
13150 return NULL;
13151 }
13152
13153
13154 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13155 PyObject *resultobj = 0;
13156 wxString result;
13157
13158 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13159 {
13160 PyThreadState* __tstate = wxPyBeginAllowThreads();
13161 result = wxFontMapper::GetDefaultConfigPath();
13162 wxPyEndAllowThreads(__tstate);
13163 if (PyErr_Occurred()) SWIG_fail;
13164 }
13165 {
13166 #if wxUSE_UNICODE
13167 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13168 #else
13169 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13170 #endif
13171 }
13172 return resultobj;
13173 fail:
13174 return NULL;
13175 }
13176
13177
13178 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13179 PyObject *resultobj = 0;
13180 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13181 wxFontEncoding arg2 ;
13182 wxString const &arg3_defvalue = wxPyEmptyString ;
13183 wxString *arg3 = (wxString *) &arg3_defvalue ;
13184 bool arg4 = (bool) true ;
13185 PyObject *result = 0 ;
13186 void *argp1 = 0 ;
13187 int res1 = 0 ;
13188 int val2 ;
13189 int ecode2 = 0 ;
13190 bool temp3 = false ;
13191 bool val4 ;
13192 int ecode4 = 0 ;
13193 PyObject * obj0 = 0 ;
13194 PyObject * obj1 = 0 ;
13195 PyObject * obj2 = 0 ;
13196 PyObject * obj3 = 0 ;
13197 char * kwnames[] = {
13198 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13199 };
13200
13201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13203 if (!SWIG_IsOK(res1)) {
13204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13205 }
13206 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13207 ecode2 = SWIG_AsVal_int(obj1, &val2);
13208 if (!SWIG_IsOK(ecode2)) {
13209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13210 }
13211 arg2 = static_cast< wxFontEncoding >(val2);
13212 if (obj2) {
13213 {
13214 arg3 = wxString_in_helper(obj2);
13215 if (arg3 == NULL) SWIG_fail;
13216 temp3 = true;
13217 }
13218 }
13219 if (obj3) {
13220 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13221 if (!SWIG_IsOK(ecode4)) {
13222 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13223 }
13224 arg4 = static_cast< bool >(val4);
13225 }
13226 {
13227 PyThreadState* __tstate = wxPyBeginAllowThreads();
13228 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13229 wxPyEndAllowThreads(__tstate);
13230 if (PyErr_Occurred()) SWIG_fail;
13231 }
13232 resultobj = result;
13233 {
13234 if (temp3)
13235 delete arg3;
13236 }
13237 return resultobj;
13238 fail:
13239 {
13240 if (temp3)
13241 delete arg3;
13242 }
13243 return NULL;
13244 }
13245
13246
13247 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13248 PyObject *resultobj = 0;
13249 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13250 wxFontEncoding arg2 ;
13251 wxString const &arg3_defvalue = wxPyEmptyString ;
13252 wxString *arg3 = (wxString *) &arg3_defvalue ;
13253 bool result;
13254 void *argp1 = 0 ;
13255 int res1 = 0 ;
13256 int val2 ;
13257 int ecode2 = 0 ;
13258 bool temp3 = false ;
13259 PyObject * obj0 = 0 ;
13260 PyObject * obj1 = 0 ;
13261 PyObject * obj2 = 0 ;
13262 char * kwnames[] = {
13263 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13264 };
13265
13266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13268 if (!SWIG_IsOK(res1)) {
13269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13270 }
13271 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13272 ecode2 = SWIG_AsVal_int(obj1, &val2);
13273 if (!SWIG_IsOK(ecode2)) {
13274 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13275 }
13276 arg2 = static_cast< wxFontEncoding >(val2);
13277 if (obj2) {
13278 {
13279 arg3 = wxString_in_helper(obj2);
13280 if (arg3 == NULL) SWIG_fail;
13281 temp3 = true;
13282 }
13283 }
13284 {
13285 PyThreadState* __tstate = wxPyBeginAllowThreads();
13286 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13287 wxPyEndAllowThreads(__tstate);
13288 if (PyErr_Occurred()) SWIG_fail;
13289 }
13290 {
13291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13292 }
13293 {
13294 if (temp3)
13295 delete arg3;
13296 }
13297 return resultobj;
13298 fail:
13299 {
13300 if (temp3)
13301 delete arg3;
13302 }
13303 return NULL;
13304 }
13305
13306
13307 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13308 PyObject *resultobj = 0;
13309 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13310 wxWindow *arg2 = (wxWindow *) 0 ;
13311 void *argp1 = 0 ;
13312 int res1 = 0 ;
13313 void *argp2 = 0 ;
13314 int res2 = 0 ;
13315 PyObject * obj0 = 0 ;
13316 PyObject * obj1 = 0 ;
13317 char * kwnames[] = {
13318 (char *) "self",(char *) "parent", NULL
13319 };
13320
13321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13323 if (!SWIG_IsOK(res1)) {
13324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13325 }
13326 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13327 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13328 if (!SWIG_IsOK(res2)) {
13329 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13330 }
13331 arg2 = reinterpret_cast< wxWindow * >(argp2);
13332 {
13333 PyThreadState* __tstate = wxPyBeginAllowThreads();
13334 (arg1)->SetDialogParent(arg2);
13335 wxPyEndAllowThreads(__tstate);
13336 if (PyErr_Occurred()) SWIG_fail;
13337 }
13338 resultobj = SWIG_Py_Void();
13339 return resultobj;
13340 fail:
13341 return NULL;
13342 }
13343
13344
13345 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13346 PyObject *resultobj = 0;
13347 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13348 wxString *arg2 = 0 ;
13349 void *argp1 = 0 ;
13350 int res1 = 0 ;
13351 bool temp2 = false ;
13352 PyObject * obj0 = 0 ;
13353 PyObject * obj1 = 0 ;
13354 char * kwnames[] = {
13355 (char *) "self",(char *) "title", NULL
13356 };
13357
13358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13360 if (!SWIG_IsOK(res1)) {
13361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13362 }
13363 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13364 {
13365 arg2 = wxString_in_helper(obj1);
13366 if (arg2 == NULL) SWIG_fail;
13367 temp2 = true;
13368 }
13369 {
13370 PyThreadState* __tstate = wxPyBeginAllowThreads();
13371 (arg1)->SetDialogTitle((wxString const &)*arg2);
13372 wxPyEndAllowThreads(__tstate);
13373 if (PyErr_Occurred()) SWIG_fail;
13374 }
13375 resultobj = SWIG_Py_Void();
13376 {
13377 if (temp2)
13378 delete arg2;
13379 }
13380 return resultobj;
13381 fail:
13382 {
13383 if (temp2)
13384 delete arg2;
13385 }
13386 return NULL;
13387 }
13388
13389
13390 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13391 PyObject *obj;
13392 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13393 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13394 return SWIG_Py_Void();
13395 }
13396
13397 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13398 return SWIG_Python_InitShadowInstance(args);
13399 }
13400
13401 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13402 PyObject *resultobj = 0;
13403 int arg1 ;
13404 int arg2 ;
13405 int arg3 ;
13406 int arg4 ;
13407 bool arg5 = (bool) false ;
13408 wxString const &arg6_defvalue = wxPyEmptyString ;
13409 wxString *arg6 = (wxString *) &arg6_defvalue ;
13410 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13411 wxFont *result = 0 ;
13412 int val1 ;
13413 int ecode1 = 0 ;
13414 int val2 ;
13415 int ecode2 = 0 ;
13416 int val3 ;
13417 int ecode3 = 0 ;
13418 int val4 ;
13419 int ecode4 = 0 ;
13420 bool val5 ;
13421 int ecode5 = 0 ;
13422 bool temp6 = false ;
13423 int val7 ;
13424 int ecode7 = 0 ;
13425 PyObject * obj0 = 0 ;
13426 PyObject * obj1 = 0 ;
13427 PyObject * obj2 = 0 ;
13428 PyObject * obj3 = 0 ;
13429 PyObject * obj4 = 0 ;
13430 PyObject * obj5 = 0 ;
13431 PyObject * obj6 = 0 ;
13432 char * kwnames[] = {
13433 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13434 };
13435
13436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13437 ecode1 = SWIG_AsVal_int(obj0, &val1);
13438 if (!SWIG_IsOK(ecode1)) {
13439 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13440 }
13441 arg1 = static_cast< int >(val1);
13442 ecode2 = SWIG_AsVal_int(obj1, &val2);
13443 if (!SWIG_IsOK(ecode2)) {
13444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13445 }
13446 arg2 = static_cast< int >(val2);
13447 ecode3 = SWIG_AsVal_int(obj2, &val3);
13448 if (!SWIG_IsOK(ecode3)) {
13449 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13450 }
13451 arg3 = static_cast< int >(val3);
13452 ecode4 = SWIG_AsVal_int(obj3, &val4);
13453 if (!SWIG_IsOK(ecode4)) {
13454 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13455 }
13456 arg4 = static_cast< int >(val4);
13457 if (obj4) {
13458 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13459 if (!SWIG_IsOK(ecode5)) {
13460 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13461 }
13462 arg5 = static_cast< bool >(val5);
13463 }
13464 if (obj5) {
13465 {
13466 arg6 = wxString_in_helper(obj5);
13467 if (arg6 == NULL) SWIG_fail;
13468 temp6 = true;
13469 }
13470 }
13471 if (obj6) {
13472 ecode7 = SWIG_AsVal_int(obj6, &val7);
13473 if (!SWIG_IsOK(ecode7)) {
13474 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13475 }
13476 arg7 = static_cast< wxFontEncoding >(val7);
13477 }
13478 {
13479 if (!wxPyCheckForApp()) SWIG_fail;
13480 PyThreadState* __tstate = wxPyBeginAllowThreads();
13481 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13482 wxPyEndAllowThreads(__tstate);
13483 if (PyErr_Occurred()) SWIG_fail;
13484 }
13485 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13486 {
13487 if (temp6)
13488 delete arg6;
13489 }
13490 return resultobj;
13491 fail:
13492 {
13493 if (temp6)
13494 delete arg6;
13495 }
13496 return NULL;
13497 }
13498
13499
13500 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13501 PyObject *resultobj = 0;
13502 wxFont *arg1 = (wxFont *) 0 ;
13503 void *argp1 = 0 ;
13504 int res1 = 0 ;
13505 PyObject *swig_obj[1] ;
13506
13507 if (!args) SWIG_fail;
13508 swig_obj[0] = args;
13509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13510 if (!SWIG_IsOK(res1)) {
13511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13512 }
13513 arg1 = reinterpret_cast< wxFont * >(argp1);
13514 {
13515 PyThreadState* __tstate = wxPyBeginAllowThreads();
13516 delete arg1;
13517
13518 wxPyEndAllowThreads(__tstate);
13519 if (PyErr_Occurred()) SWIG_fail;
13520 }
13521 resultobj = SWIG_Py_Void();
13522 return resultobj;
13523 fail:
13524 return NULL;
13525 }
13526
13527
13528 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13529 PyObject *resultobj = 0;
13530 wxNativeFontInfo *arg1 = 0 ;
13531 wxFont *result = 0 ;
13532 void *argp1 = 0 ;
13533 int res1 = 0 ;
13534 PyObject * obj0 = 0 ;
13535 char * kwnames[] = {
13536 (char *) "info", NULL
13537 };
13538
13539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13540 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13541 if (!SWIG_IsOK(res1)) {
13542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13543 }
13544 if (!argp1) {
13545 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13546 }
13547 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13548 {
13549 if (!wxPyCheckForApp()) SWIG_fail;
13550 PyThreadState* __tstate = wxPyBeginAllowThreads();
13551 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13552 wxPyEndAllowThreads(__tstate);
13553 if (PyErr_Occurred()) SWIG_fail;
13554 }
13555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13556 return resultobj;
13557 fail:
13558 return NULL;
13559 }
13560
13561
13562 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13563 PyObject *resultobj = 0;
13564 wxString *arg1 = 0 ;
13565 wxFont *result = 0 ;
13566 bool temp1 = false ;
13567 PyObject * obj0 = 0 ;
13568 char * kwnames[] = {
13569 (char *) "info", NULL
13570 };
13571
13572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13573 {
13574 arg1 = wxString_in_helper(obj0);
13575 if (arg1 == NULL) SWIG_fail;
13576 temp1 = true;
13577 }
13578 {
13579 if (!wxPyCheckForApp()) SWIG_fail;
13580 PyThreadState* __tstate = wxPyBeginAllowThreads();
13581 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13582 wxPyEndAllowThreads(__tstate);
13583 if (PyErr_Occurred()) SWIG_fail;
13584 }
13585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13586 {
13587 if (temp1)
13588 delete arg1;
13589 }
13590 return resultobj;
13591 fail:
13592 {
13593 if (temp1)
13594 delete arg1;
13595 }
13596 return NULL;
13597 }
13598
13599
13600 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13601 PyObject *resultobj = 0;
13602 int arg1 ;
13603 wxFontFamily arg2 ;
13604 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13605 wxString const &arg4_defvalue = wxPyEmptyString ;
13606 wxString *arg4 = (wxString *) &arg4_defvalue ;
13607 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13608 wxFont *result = 0 ;
13609 int val1 ;
13610 int ecode1 = 0 ;
13611 int val2 ;
13612 int ecode2 = 0 ;
13613 int val3 ;
13614 int ecode3 = 0 ;
13615 bool temp4 = false ;
13616 int val5 ;
13617 int ecode5 = 0 ;
13618 PyObject * obj0 = 0 ;
13619 PyObject * obj1 = 0 ;
13620 PyObject * obj2 = 0 ;
13621 PyObject * obj3 = 0 ;
13622 PyObject * obj4 = 0 ;
13623 char * kwnames[] = {
13624 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13625 };
13626
13627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13628 ecode1 = SWIG_AsVal_int(obj0, &val1);
13629 if (!SWIG_IsOK(ecode1)) {
13630 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13631 }
13632 arg1 = static_cast< int >(val1);
13633 ecode2 = SWIG_AsVal_int(obj1, &val2);
13634 if (!SWIG_IsOK(ecode2)) {
13635 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13636 }
13637 arg2 = static_cast< wxFontFamily >(val2);
13638 if (obj2) {
13639 ecode3 = SWIG_AsVal_int(obj2, &val3);
13640 if (!SWIG_IsOK(ecode3)) {
13641 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13642 }
13643 arg3 = static_cast< int >(val3);
13644 }
13645 if (obj3) {
13646 {
13647 arg4 = wxString_in_helper(obj3);
13648 if (arg4 == NULL) SWIG_fail;
13649 temp4 = true;
13650 }
13651 }
13652 if (obj4) {
13653 ecode5 = SWIG_AsVal_int(obj4, &val5);
13654 if (!SWIG_IsOK(ecode5)) {
13655 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13656 }
13657 arg5 = static_cast< wxFontEncoding >(val5);
13658 }
13659 {
13660 if (!wxPyCheckForApp()) SWIG_fail;
13661 PyThreadState* __tstate = wxPyBeginAllowThreads();
13662 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13663 wxPyEndAllowThreads(__tstate);
13664 if (PyErr_Occurred()) SWIG_fail;
13665 }
13666 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13667 {
13668 if (temp4)
13669 delete arg4;
13670 }
13671 return resultobj;
13672 fail:
13673 {
13674 if (temp4)
13675 delete arg4;
13676 }
13677 return NULL;
13678 }
13679
13680
13681 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13682 PyObject *resultobj = 0;
13683 wxSize *arg1 = 0 ;
13684 int arg2 ;
13685 int arg3 ;
13686 int arg4 ;
13687 bool arg5 = (bool) false ;
13688 wxString const &arg6_defvalue = wxEmptyString ;
13689 wxString *arg6 = (wxString *) &arg6_defvalue ;
13690 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13691 wxFont *result = 0 ;
13692 wxSize temp1 ;
13693 int val2 ;
13694 int ecode2 = 0 ;
13695 int val3 ;
13696 int ecode3 = 0 ;
13697 int val4 ;
13698 int ecode4 = 0 ;
13699 bool val5 ;
13700 int ecode5 = 0 ;
13701 bool temp6 = false ;
13702 int val7 ;
13703 int ecode7 = 0 ;
13704 PyObject * obj0 = 0 ;
13705 PyObject * obj1 = 0 ;
13706 PyObject * obj2 = 0 ;
13707 PyObject * obj3 = 0 ;
13708 PyObject * obj4 = 0 ;
13709 PyObject * obj5 = 0 ;
13710 PyObject * obj6 = 0 ;
13711 char * kwnames[] = {
13712 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
13713 };
13714
13715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13716 {
13717 arg1 = &temp1;
13718 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13719 }
13720 ecode2 = SWIG_AsVal_int(obj1, &val2);
13721 if (!SWIG_IsOK(ecode2)) {
13722 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
13723 }
13724 arg2 = static_cast< int >(val2);
13725 ecode3 = SWIG_AsVal_int(obj2, &val3);
13726 if (!SWIG_IsOK(ecode3)) {
13727 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13728 }
13729 arg3 = static_cast< int >(val3);
13730 ecode4 = SWIG_AsVal_int(obj3, &val4);
13731 if (!SWIG_IsOK(ecode4)) {
13732 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
13733 }
13734 arg4 = static_cast< int >(val4);
13735 if (obj4) {
13736 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13737 if (!SWIG_IsOK(ecode5)) {
13738 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
13739 }
13740 arg5 = static_cast< bool >(val5);
13741 }
13742 if (obj5) {
13743 {
13744 arg6 = wxString_in_helper(obj5);
13745 if (arg6 == NULL) SWIG_fail;
13746 temp6 = true;
13747 }
13748 }
13749 if (obj6) {
13750 ecode7 = SWIG_AsVal_int(obj6, &val7);
13751 if (!SWIG_IsOK(ecode7)) {
13752 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13753 }
13754 arg7 = static_cast< wxFontEncoding >(val7);
13755 }
13756 {
13757 if (!wxPyCheckForApp()) SWIG_fail;
13758 PyThreadState* __tstate = wxPyBeginAllowThreads();
13759 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13760 wxPyEndAllowThreads(__tstate);
13761 if (PyErr_Occurred()) SWIG_fail;
13762 }
13763 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13764 {
13765 if (temp6)
13766 delete arg6;
13767 }
13768 return resultobj;
13769 fail:
13770 {
13771 if (temp6)
13772 delete arg6;
13773 }
13774 return NULL;
13775 }
13776
13777
13778 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13779 PyObject *resultobj = 0;
13780 wxSize *arg1 = 0 ;
13781 wxFontFamily arg2 ;
13782 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13783 wxString const &arg4_defvalue = wxEmptyString ;
13784 wxString *arg4 = (wxString *) &arg4_defvalue ;
13785 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13786 wxFont *result = 0 ;
13787 wxSize temp1 ;
13788 int val2 ;
13789 int ecode2 = 0 ;
13790 int val3 ;
13791 int ecode3 = 0 ;
13792 bool temp4 = false ;
13793 int val5 ;
13794 int ecode5 = 0 ;
13795 PyObject * obj0 = 0 ;
13796 PyObject * obj1 = 0 ;
13797 PyObject * obj2 = 0 ;
13798 PyObject * obj3 = 0 ;
13799 PyObject * obj4 = 0 ;
13800 char * kwnames[] = {
13801 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13802 };
13803
13804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13805 {
13806 arg1 = &temp1;
13807 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13808 }
13809 ecode2 = SWIG_AsVal_int(obj1, &val2);
13810 if (!SWIG_IsOK(ecode2)) {
13811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
13812 }
13813 arg2 = static_cast< wxFontFamily >(val2);
13814 if (obj2) {
13815 ecode3 = SWIG_AsVal_int(obj2, &val3);
13816 if (!SWIG_IsOK(ecode3)) {
13817 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13818 }
13819 arg3 = static_cast< int >(val3);
13820 }
13821 if (obj3) {
13822 {
13823 arg4 = wxString_in_helper(obj3);
13824 if (arg4 == NULL) SWIG_fail;
13825 temp4 = true;
13826 }
13827 }
13828 if (obj4) {
13829 ecode5 = SWIG_AsVal_int(obj4, &val5);
13830 if (!SWIG_IsOK(ecode5)) {
13831 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13832 }
13833 arg5 = static_cast< wxFontEncoding >(val5);
13834 }
13835 {
13836 if (!wxPyCheckForApp()) SWIG_fail;
13837 PyThreadState* __tstate = wxPyBeginAllowThreads();
13838 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13839 wxPyEndAllowThreads(__tstate);
13840 if (PyErr_Occurred()) SWIG_fail;
13841 }
13842 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13843 {
13844 if (temp4)
13845 delete arg4;
13846 }
13847 return resultobj;
13848 fail:
13849 {
13850 if (temp4)
13851 delete arg4;
13852 }
13853 return NULL;
13854 }
13855
13856
13857 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13858 PyObject *resultobj = 0;
13859 wxFont *arg1 = (wxFont *) 0 ;
13860 bool result;
13861 void *argp1 = 0 ;
13862 int res1 = 0 ;
13863 PyObject *swig_obj[1] ;
13864
13865 if (!args) SWIG_fail;
13866 swig_obj[0] = args;
13867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13868 if (!SWIG_IsOK(res1)) {
13869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
13870 }
13871 arg1 = reinterpret_cast< wxFont * >(argp1);
13872 {
13873 PyThreadState* __tstate = wxPyBeginAllowThreads();
13874 result = (bool)((wxFont const *)arg1)->IsOk();
13875 wxPyEndAllowThreads(__tstate);
13876 if (PyErr_Occurred()) SWIG_fail;
13877 }
13878 {
13879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13880 }
13881 return resultobj;
13882 fail:
13883 return NULL;
13884 }
13885
13886
13887 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13888 PyObject *resultobj = 0;
13889 wxFont *arg1 = (wxFont *) 0 ;
13890 wxFont *arg2 = (wxFont *) 0 ;
13891 bool result;
13892 void *argp1 = 0 ;
13893 int res1 = 0 ;
13894 void *argp2 = 0 ;
13895 int res2 = 0 ;
13896 PyObject * obj0 = 0 ;
13897 PyObject * obj1 = 0 ;
13898 char * kwnames[] = {
13899 (char *) "self",(char *) "other", NULL
13900 };
13901
13902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
13903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13904 if (!SWIG_IsOK(res1)) {
13905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
13906 }
13907 arg1 = reinterpret_cast< wxFont * >(argp1);
13908 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13909 if (!SWIG_IsOK(res2)) {
13910 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
13911 }
13912 arg2 = reinterpret_cast< wxFont * >(argp2);
13913 {
13914 PyThreadState* __tstate = wxPyBeginAllowThreads();
13915 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
13916 wxPyEndAllowThreads(__tstate);
13917 if (PyErr_Occurred()) SWIG_fail;
13918 }
13919 {
13920 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13921 }
13922 return resultobj;
13923 fail:
13924 return NULL;
13925 }
13926
13927
13928 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13929 PyObject *resultobj = 0;
13930 wxFont *arg1 = (wxFont *) 0 ;
13931 wxFont *arg2 = (wxFont *) 0 ;
13932 bool result;
13933 void *argp1 = 0 ;
13934 int res1 = 0 ;
13935 void *argp2 = 0 ;
13936 int res2 = 0 ;
13937 PyObject * obj0 = 0 ;
13938 PyObject * obj1 = 0 ;
13939 char * kwnames[] = {
13940 (char *) "self",(char *) "other", NULL
13941 };
13942
13943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
13944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13945 if (!SWIG_IsOK(res1)) {
13946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
13947 }
13948 arg1 = reinterpret_cast< wxFont * >(argp1);
13949 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13950 if (!SWIG_IsOK(res2)) {
13951 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
13952 }
13953 arg2 = reinterpret_cast< wxFont * >(argp2);
13954 {
13955 PyThreadState* __tstate = wxPyBeginAllowThreads();
13956 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
13957 wxPyEndAllowThreads(__tstate);
13958 if (PyErr_Occurred()) SWIG_fail;
13959 }
13960 {
13961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13962 }
13963 return resultobj;
13964 fail:
13965 return NULL;
13966 }
13967
13968
13969 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13970 PyObject *resultobj = 0;
13971 wxFont *arg1 = (wxFont *) 0 ;
13972 int result;
13973 void *argp1 = 0 ;
13974 int res1 = 0 ;
13975 PyObject *swig_obj[1] ;
13976
13977 if (!args) SWIG_fail;
13978 swig_obj[0] = args;
13979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13980 if (!SWIG_IsOK(res1)) {
13981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
13982 }
13983 arg1 = reinterpret_cast< wxFont * >(argp1);
13984 {
13985 PyThreadState* __tstate = wxPyBeginAllowThreads();
13986 result = (int)((wxFont const *)arg1)->GetPointSize();
13987 wxPyEndAllowThreads(__tstate);
13988 if (PyErr_Occurred()) SWIG_fail;
13989 }
13990 resultobj = SWIG_From_int(static_cast< int >(result));
13991 return resultobj;
13992 fail:
13993 return NULL;
13994 }
13995
13996
13997 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13998 PyObject *resultobj = 0;
13999 wxFont *arg1 = (wxFont *) 0 ;
14000 wxSize result;
14001 void *argp1 = 0 ;
14002 int res1 = 0 ;
14003 PyObject *swig_obj[1] ;
14004
14005 if (!args) SWIG_fail;
14006 swig_obj[0] = args;
14007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14008 if (!SWIG_IsOK(res1)) {
14009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14010 }
14011 arg1 = reinterpret_cast< wxFont * >(argp1);
14012 {
14013 PyThreadState* __tstate = wxPyBeginAllowThreads();
14014 result = ((wxFont const *)arg1)->GetPixelSize();
14015 wxPyEndAllowThreads(__tstate);
14016 if (PyErr_Occurred()) SWIG_fail;
14017 }
14018 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14019 return resultobj;
14020 fail:
14021 return NULL;
14022 }
14023
14024
14025 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14026 PyObject *resultobj = 0;
14027 wxFont *arg1 = (wxFont *) 0 ;
14028 bool result;
14029 void *argp1 = 0 ;
14030 int res1 = 0 ;
14031 PyObject *swig_obj[1] ;
14032
14033 if (!args) SWIG_fail;
14034 swig_obj[0] = args;
14035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14036 if (!SWIG_IsOK(res1)) {
14037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14038 }
14039 arg1 = reinterpret_cast< wxFont * >(argp1);
14040 {
14041 PyThreadState* __tstate = wxPyBeginAllowThreads();
14042 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14043 wxPyEndAllowThreads(__tstate);
14044 if (PyErr_Occurred()) SWIG_fail;
14045 }
14046 {
14047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14048 }
14049 return resultobj;
14050 fail:
14051 return NULL;
14052 }
14053
14054
14055 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14056 PyObject *resultobj = 0;
14057 wxFont *arg1 = (wxFont *) 0 ;
14058 int result;
14059 void *argp1 = 0 ;
14060 int res1 = 0 ;
14061 PyObject *swig_obj[1] ;
14062
14063 if (!args) SWIG_fail;
14064 swig_obj[0] = args;
14065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14066 if (!SWIG_IsOK(res1)) {
14067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14068 }
14069 arg1 = reinterpret_cast< wxFont * >(argp1);
14070 {
14071 PyThreadState* __tstate = wxPyBeginAllowThreads();
14072 result = (int)((wxFont const *)arg1)->GetFamily();
14073 wxPyEndAllowThreads(__tstate);
14074 if (PyErr_Occurred()) SWIG_fail;
14075 }
14076 resultobj = SWIG_From_int(static_cast< int >(result));
14077 return resultobj;
14078 fail:
14079 return NULL;
14080 }
14081
14082
14083 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14084 PyObject *resultobj = 0;
14085 wxFont *arg1 = (wxFont *) 0 ;
14086 int result;
14087 void *argp1 = 0 ;
14088 int res1 = 0 ;
14089 PyObject *swig_obj[1] ;
14090
14091 if (!args) SWIG_fail;
14092 swig_obj[0] = args;
14093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14094 if (!SWIG_IsOK(res1)) {
14095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14096 }
14097 arg1 = reinterpret_cast< wxFont * >(argp1);
14098 {
14099 PyThreadState* __tstate = wxPyBeginAllowThreads();
14100 result = (int)((wxFont const *)arg1)->GetStyle();
14101 wxPyEndAllowThreads(__tstate);
14102 if (PyErr_Occurred()) SWIG_fail;
14103 }
14104 resultobj = SWIG_From_int(static_cast< int >(result));
14105 return resultobj;
14106 fail:
14107 return NULL;
14108 }
14109
14110
14111 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14112 PyObject *resultobj = 0;
14113 wxFont *arg1 = (wxFont *) 0 ;
14114 int result;
14115 void *argp1 = 0 ;
14116 int res1 = 0 ;
14117 PyObject *swig_obj[1] ;
14118
14119 if (!args) SWIG_fail;
14120 swig_obj[0] = args;
14121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14122 if (!SWIG_IsOK(res1)) {
14123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14124 }
14125 arg1 = reinterpret_cast< wxFont * >(argp1);
14126 {
14127 PyThreadState* __tstate = wxPyBeginAllowThreads();
14128 result = (int)((wxFont const *)arg1)->GetWeight();
14129 wxPyEndAllowThreads(__tstate);
14130 if (PyErr_Occurred()) SWIG_fail;
14131 }
14132 resultobj = SWIG_From_int(static_cast< int >(result));
14133 return resultobj;
14134 fail:
14135 return NULL;
14136 }
14137
14138
14139 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14140 PyObject *resultobj = 0;
14141 wxFont *arg1 = (wxFont *) 0 ;
14142 bool result;
14143 void *argp1 = 0 ;
14144 int res1 = 0 ;
14145 PyObject *swig_obj[1] ;
14146
14147 if (!args) SWIG_fail;
14148 swig_obj[0] = args;
14149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14150 if (!SWIG_IsOK(res1)) {
14151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14152 }
14153 arg1 = reinterpret_cast< wxFont * >(argp1);
14154 {
14155 PyThreadState* __tstate = wxPyBeginAllowThreads();
14156 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14157 wxPyEndAllowThreads(__tstate);
14158 if (PyErr_Occurred()) SWIG_fail;
14159 }
14160 {
14161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14162 }
14163 return resultobj;
14164 fail:
14165 return NULL;
14166 }
14167
14168
14169 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14170 PyObject *resultobj = 0;
14171 wxFont *arg1 = (wxFont *) 0 ;
14172 wxString result;
14173 void *argp1 = 0 ;
14174 int res1 = 0 ;
14175 PyObject *swig_obj[1] ;
14176
14177 if (!args) SWIG_fail;
14178 swig_obj[0] = args;
14179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14180 if (!SWIG_IsOK(res1)) {
14181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14182 }
14183 arg1 = reinterpret_cast< wxFont * >(argp1);
14184 {
14185 PyThreadState* __tstate = wxPyBeginAllowThreads();
14186 result = ((wxFont const *)arg1)->GetFaceName();
14187 wxPyEndAllowThreads(__tstate);
14188 if (PyErr_Occurred()) SWIG_fail;
14189 }
14190 {
14191 #if wxUSE_UNICODE
14192 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14193 #else
14194 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14195 #endif
14196 }
14197 return resultobj;
14198 fail:
14199 return NULL;
14200 }
14201
14202
14203 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14204 PyObject *resultobj = 0;
14205 wxFont *arg1 = (wxFont *) 0 ;
14206 wxFontEncoding result;
14207 void *argp1 = 0 ;
14208 int res1 = 0 ;
14209 PyObject *swig_obj[1] ;
14210
14211 if (!args) SWIG_fail;
14212 swig_obj[0] = args;
14213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14214 if (!SWIG_IsOK(res1)) {
14215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14216 }
14217 arg1 = reinterpret_cast< wxFont * >(argp1);
14218 {
14219 PyThreadState* __tstate = wxPyBeginAllowThreads();
14220 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14221 wxPyEndAllowThreads(__tstate);
14222 if (PyErr_Occurred()) SWIG_fail;
14223 }
14224 resultobj = SWIG_From_int(static_cast< int >(result));
14225 return resultobj;
14226 fail:
14227 return NULL;
14228 }
14229
14230
14231 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14232 PyObject *resultobj = 0;
14233 wxFont *arg1 = (wxFont *) 0 ;
14234 wxNativeFontInfo *result = 0 ;
14235 void *argp1 = 0 ;
14236 int res1 = 0 ;
14237 PyObject *swig_obj[1] ;
14238
14239 if (!args) SWIG_fail;
14240 swig_obj[0] = args;
14241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14242 if (!SWIG_IsOK(res1)) {
14243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14244 }
14245 arg1 = reinterpret_cast< wxFont * >(argp1);
14246 {
14247 PyThreadState* __tstate = wxPyBeginAllowThreads();
14248 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14249 wxPyEndAllowThreads(__tstate);
14250 if (PyErr_Occurred()) SWIG_fail;
14251 }
14252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14253 return resultobj;
14254 fail:
14255 return NULL;
14256 }
14257
14258
14259 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14260 PyObject *resultobj = 0;
14261 wxFont *arg1 = (wxFont *) 0 ;
14262 bool result;
14263 void *argp1 = 0 ;
14264 int res1 = 0 ;
14265 PyObject *swig_obj[1] ;
14266
14267 if (!args) SWIG_fail;
14268 swig_obj[0] = args;
14269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14270 if (!SWIG_IsOK(res1)) {
14271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14272 }
14273 arg1 = reinterpret_cast< wxFont * >(argp1);
14274 {
14275 PyThreadState* __tstate = wxPyBeginAllowThreads();
14276 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14277 wxPyEndAllowThreads(__tstate);
14278 if (PyErr_Occurred()) SWIG_fail;
14279 }
14280 {
14281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14282 }
14283 return resultobj;
14284 fail:
14285 return NULL;
14286 }
14287
14288
14289 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14290 PyObject *resultobj = 0;
14291 wxFont *arg1 = (wxFont *) 0 ;
14292 wxString result;
14293 void *argp1 = 0 ;
14294 int res1 = 0 ;
14295 PyObject *swig_obj[1] ;
14296
14297 if (!args) SWIG_fail;
14298 swig_obj[0] = args;
14299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14300 if (!SWIG_IsOK(res1)) {
14301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14302 }
14303 arg1 = reinterpret_cast< wxFont * >(argp1);
14304 {
14305 PyThreadState* __tstate = wxPyBeginAllowThreads();
14306 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14307 wxPyEndAllowThreads(__tstate);
14308 if (PyErr_Occurred()) SWIG_fail;
14309 }
14310 {
14311 #if wxUSE_UNICODE
14312 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14313 #else
14314 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14315 #endif
14316 }
14317 return resultobj;
14318 fail:
14319 return NULL;
14320 }
14321
14322
14323 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14324 PyObject *resultobj = 0;
14325 wxFont *arg1 = (wxFont *) 0 ;
14326 wxString result;
14327 void *argp1 = 0 ;
14328 int res1 = 0 ;
14329 PyObject *swig_obj[1] ;
14330
14331 if (!args) SWIG_fail;
14332 swig_obj[0] = args;
14333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14334 if (!SWIG_IsOK(res1)) {
14335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14336 }
14337 arg1 = reinterpret_cast< wxFont * >(argp1);
14338 {
14339 PyThreadState* __tstate = wxPyBeginAllowThreads();
14340 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14341 wxPyEndAllowThreads(__tstate);
14342 if (PyErr_Occurred()) SWIG_fail;
14343 }
14344 {
14345 #if wxUSE_UNICODE
14346 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14347 #else
14348 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14349 #endif
14350 }
14351 return resultobj;
14352 fail:
14353 return NULL;
14354 }
14355
14356
14357 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14358 PyObject *resultobj = 0;
14359 wxFont *arg1 = (wxFont *) 0 ;
14360 int arg2 ;
14361 void *argp1 = 0 ;
14362 int res1 = 0 ;
14363 int val2 ;
14364 int ecode2 = 0 ;
14365 PyObject * obj0 = 0 ;
14366 PyObject * obj1 = 0 ;
14367 char * kwnames[] = {
14368 (char *) "self",(char *) "pointSize", NULL
14369 };
14370
14371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14373 if (!SWIG_IsOK(res1)) {
14374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14375 }
14376 arg1 = reinterpret_cast< wxFont * >(argp1);
14377 ecode2 = SWIG_AsVal_int(obj1, &val2);
14378 if (!SWIG_IsOK(ecode2)) {
14379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14380 }
14381 arg2 = static_cast< int >(val2);
14382 {
14383 PyThreadState* __tstate = wxPyBeginAllowThreads();
14384 (arg1)->SetPointSize(arg2);
14385 wxPyEndAllowThreads(__tstate);
14386 if (PyErr_Occurred()) SWIG_fail;
14387 }
14388 resultobj = SWIG_Py_Void();
14389 return resultobj;
14390 fail:
14391 return NULL;
14392 }
14393
14394
14395 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14396 PyObject *resultobj = 0;
14397 wxFont *arg1 = (wxFont *) 0 ;
14398 wxSize *arg2 = 0 ;
14399 void *argp1 = 0 ;
14400 int res1 = 0 ;
14401 wxSize temp2 ;
14402 PyObject * obj0 = 0 ;
14403 PyObject * obj1 = 0 ;
14404 char * kwnames[] = {
14405 (char *) "self",(char *) "pixelSize", NULL
14406 };
14407
14408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14410 if (!SWIG_IsOK(res1)) {
14411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14412 }
14413 arg1 = reinterpret_cast< wxFont * >(argp1);
14414 {
14415 arg2 = &temp2;
14416 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14417 }
14418 {
14419 PyThreadState* __tstate = wxPyBeginAllowThreads();
14420 (arg1)->SetPixelSize((wxSize const &)*arg2);
14421 wxPyEndAllowThreads(__tstate);
14422 if (PyErr_Occurred()) SWIG_fail;
14423 }
14424 resultobj = SWIG_Py_Void();
14425 return resultobj;
14426 fail:
14427 return NULL;
14428 }
14429
14430
14431 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14432 PyObject *resultobj = 0;
14433 wxFont *arg1 = (wxFont *) 0 ;
14434 int arg2 ;
14435 void *argp1 = 0 ;
14436 int res1 = 0 ;
14437 int val2 ;
14438 int ecode2 = 0 ;
14439 PyObject * obj0 = 0 ;
14440 PyObject * obj1 = 0 ;
14441 char * kwnames[] = {
14442 (char *) "self",(char *) "family", NULL
14443 };
14444
14445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14447 if (!SWIG_IsOK(res1)) {
14448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14449 }
14450 arg1 = reinterpret_cast< wxFont * >(argp1);
14451 ecode2 = SWIG_AsVal_int(obj1, &val2);
14452 if (!SWIG_IsOK(ecode2)) {
14453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14454 }
14455 arg2 = static_cast< int >(val2);
14456 {
14457 PyThreadState* __tstate = wxPyBeginAllowThreads();
14458 (arg1)->SetFamily(arg2);
14459 wxPyEndAllowThreads(__tstate);
14460 if (PyErr_Occurred()) SWIG_fail;
14461 }
14462 resultobj = SWIG_Py_Void();
14463 return resultobj;
14464 fail:
14465 return NULL;
14466 }
14467
14468
14469 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14470 PyObject *resultobj = 0;
14471 wxFont *arg1 = (wxFont *) 0 ;
14472 int arg2 ;
14473 void *argp1 = 0 ;
14474 int res1 = 0 ;
14475 int val2 ;
14476 int ecode2 = 0 ;
14477 PyObject * obj0 = 0 ;
14478 PyObject * obj1 = 0 ;
14479 char * kwnames[] = {
14480 (char *) "self",(char *) "style", NULL
14481 };
14482
14483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14485 if (!SWIG_IsOK(res1)) {
14486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14487 }
14488 arg1 = reinterpret_cast< wxFont * >(argp1);
14489 ecode2 = SWIG_AsVal_int(obj1, &val2);
14490 if (!SWIG_IsOK(ecode2)) {
14491 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14492 }
14493 arg2 = static_cast< int >(val2);
14494 {
14495 PyThreadState* __tstate = wxPyBeginAllowThreads();
14496 (arg1)->SetStyle(arg2);
14497 wxPyEndAllowThreads(__tstate);
14498 if (PyErr_Occurred()) SWIG_fail;
14499 }
14500 resultobj = SWIG_Py_Void();
14501 return resultobj;
14502 fail:
14503 return NULL;
14504 }
14505
14506
14507 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14508 PyObject *resultobj = 0;
14509 wxFont *arg1 = (wxFont *) 0 ;
14510 int arg2 ;
14511 void *argp1 = 0 ;
14512 int res1 = 0 ;
14513 int val2 ;
14514 int ecode2 = 0 ;
14515 PyObject * obj0 = 0 ;
14516 PyObject * obj1 = 0 ;
14517 char * kwnames[] = {
14518 (char *) "self",(char *) "weight", NULL
14519 };
14520
14521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14523 if (!SWIG_IsOK(res1)) {
14524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14525 }
14526 arg1 = reinterpret_cast< wxFont * >(argp1);
14527 ecode2 = SWIG_AsVal_int(obj1, &val2);
14528 if (!SWIG_IsOK(ecode2)) {
14529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14530 }
14531 arg2 = static_cast< int >(val2);
14532 {
14533 PyThreadState* __tstate = wxPyBeginAllowThreads();
14534 (arg1)->SetWeight(arg2);
14535 wxPyEndAllowThreads(__tstate);
14536 if (PyErr_Occurred()) SWIG_fail;
14537 }
14538 resultobj = SWIG_Py_Void();
14539 return resultobj;
14540 fail:
14541 return NULL;
14542 }
14543
14544
14545 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14546 PyObject *resultobj = 0;
14547 wxFont *arg1 = (wxFont *) 0 ;
14548 wxString *arg2 = 0 ;
14549 bool result;
14550 void *argp1 = 0 ;
14551 int res1 = 0 ;
14552 bool temp2 = false ;
14553 PyObject * obj0 = 0 ;
14554 PyObject * obj1 = 0 ;
14555 char * kwnames[] = {
14556 (char *) "self",(char *) "faceName", NULL
14557 };
14558
14559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14561 if (!SWIG_IsOK(res1)) {
14562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14563 }
14564 arg1 = reinterpret_cast< wxFont * >(argp1);
14565 {
14566 arg2 = wxString_in_helper(obj1);
14567 if (arg2 == NULL) SWIG_fail;
14568 temp2 = true;
14569 }
14570 {
14571 PyThreadState* __tstate = wxPyBeginAllowThreads();
14572 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
14573 wxPyEndAllowThreads(__tstate);
14574 if (PyErr_Occurred()) SWIG_fail;
14575 }
14576 {
14577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14578 }
14579 {
14580 if (temp2)
14581 delete arg2;
14582 }
14583 return resultobj;
14584 fail:
14585 {
14586 if (temp2)
14587 delete arg2;
14588 }
14589 return NULL;
14590 }
14591
14592
14593 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14594 PyObject *resultobj = 0;
14595 wxFont *arg1 = (wxFont *) 0 ;
14596 bool arg2 ;
14597 void *argp1 = 0 ;
14598 int res1 = 0 ;
14599 bool val2 ;
14600 int ecode2 = 0 ;
14601 PyObject * obj0 = 0 ;
14602 PyObject * obj1 = 0 ;
14603 char * kwnames[] = {
14604 (char *) "self",(char *) "underlined", NULL
14605 };
14606
14607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14609 if (!SWIG_IsOK(res1)) {
14610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14611 }
14612 arg1 = reinterpret_cast< wxFont * >(argp1);
14613 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14614 if (!SWIG_IsOK(ecode2)) {
14615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14616 }
14617 arg2 = static_cast< bool >(val2);
14618 {
14619 PyThreadState* __tstate = wxPyBeginAllowThreads();
14620 (arg1)->SetUnderlined(arg2);
14621 wxPyEndAllowThreads(__tstate);
14622 if (PyErr_Occurred()) SWIG_fail;
14623 }
14624 resultobj = SWIG_Py_Void();
14625 return resultobj;
14626 fail:
14627 return NULL;
14628 }
14629
14630
14631 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14632 PyObject *resultobj = 0;
14633 wxFont *arg1 = (wxFont *) 0 ;
14634 wxFontEncoding arg2 ;
14635 void *argp1 = 0 ;
14636 int res1 = 0 ;
14637 int val2 ;
14638 int ecode2 = 0 ;
14639 PyObject * obj0 = 0 ;
14640 PyObject * obj1 = 0 ;
14641 char * kwnames[] = {
14642 (char *) "self",(char *) "encoding", NULL
14643 };
14644
14645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14647 if (!SWIG_IsOK(res1)) {
14648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14649 }
14650 arg1 = reinterpret_cast< wxFont * >(argp1);
14651 ecode2 = SWIG_AsVal_int(obj1, &val2);
14652 if (!SWIG_IsOK(ecode2)) {
14653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14654 }
14655 arg2 = static_cast< wxFontEncoding >(val2);
14656 {
14657 PyThreadState* __tstate = wxPyBeginAllowThreads();
14658 (arg1)->SetEncoding(arg2);
14659 wxPyEndAllowThreads(__tstate);
14660 if (PyErr_Occurred()) SWIG_fail;
14661 }
14662 resultobj = SWIG_Py_Void();
14663 return resultobj;
14664 fail:
14665 return NULL;
14666 }
14667
14668
14669 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14670 PyObject *resultobj = 0;
14671 wxFont *arg1 = (wxFont *) 0 ;
14672 wxNativeFontInfo *arg2 = 0 ;
14673 void *argp1 = 0 ;
14674 int res1 = 0 ;
14675 void *argp2 = 0 ;
14676 int res2 = 0 ;
14677 PyObject * obj0 = 0 ;
14678 PyObject * obj1 = 0 ;
14679 char * kwnames[] = {
14680 (char *) "self",(char *) "info", NULL
14681 };
14682
14683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
14684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14685 if (!SWIG_IsOK(res1)) {
14686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
14687 }
14688 arg1 = reinterpret_cast< wxFont * >(argp1);
14689 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14690 if (!SWIG_IsOK(res2)) {
14691 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14692 }
14693 if (!argp2) {
14694 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14695 }
14696 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
14697 {
14698 PyThreadState* __tstate = wxPyBeginAllowThreads();
14699 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
14700 wxPyEndAllowThreads(__tstate);
14701 if (PyErr_Occurred()) SWIG_fail;
14702 }
14703 resultobj = SWIG_Py_Void();
14704 return resultobj;
14705 fail:
14706 return NULL;
14707 }
14708
14709
14710 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14711 PyObject *resultobj = 0;
14712 wxFont *arg1 = (wxFont *) 0 ;
14713 wxString *arg2 = 0 ;
14714 bool result;
14715 void *argp1 = 0 ;
14716 int res1 = 0 ;
14717 bool temp2 = false ;
14718 PyObject * obj0 = 0 ;
14719 PyObject * obj1 = 0 ;
14720 char * kwnames[] = {
14721 (char *) "self",(char *) "info", NULL
14722 };
14723
14724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
14725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14726 if (!SWIG_IsOK(res1)) {
14727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
14728 }
14729 arg1 = reinterpret_cast< wxFont * >(argp1);
14730 {
14731 arg2 = wxString_in_helper(obj1);
14732 if (arg2 == NULL) SWIG_fail;
14733 temp2 = true;
14734 }
14735 {
14736 PyThreadState* __tstate = wxPyBeginAllowThreads();
14737 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
14738 wxPyEndAllowThreads(__tstate);
14739 if (PyErr_Occurred()) SWIG_fail;
14740 }
14741 {
14742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14743 }
14744 {
14745 if (temp2)
14746 delete arg2;
14747 }
14748 return resultobj;
14749 fail:
14750 {
14751 if (temp2)
14752 delete arg2;
14753 }
14754 return NULL;
14755 }
14756
14757
14758 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14759 PyObject *resultobj = 0;
14760 wxFont *arg1 = (wxFont *) 0 ;
14761 wxString *arg2 = 0 ;
14762 bool result;
14763 void *argp1 = 0 ;
14764 int res1 = 0 ;
14765 bool temp2 = false ;
14766 PyObject * obj0 = 0 ;
14767 PyObject * obj1 = 0 ;
14768 char * kwnames[] = {
14769 (char *) "self",(char *) "info", NULL
14770 };
14771
14772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
14773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14774 if (!SWIG_IsOK(res1)) {
14775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
14776 }
14777 arg1 = reinterpret_cast< wxFont * >(argp1);
14778 {
14779 arg2 = wxString_in_helper(obj1);
14780 if (arg2 == NULL) SWIG_fail;
14781 temp2 = true;
14782 }
14783 {
14784 PyThreadState* __tstate = wxPyBeginAllowThreads();
14785 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
14786 wxPyEndAllowThreads(__tstate);
14787 if (PyErr_Occurred()) SWIG_fail;
14788 }
14789 {
14790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14791 }
14792 {
14793 if (temp2)
14794 delete arg2;
14795 }
14796 return resultobj;
14797 fail:
14798 {
14799 if (temp2)
14800 delete arg2;
14801 }
14802 return NULL;
14803 }
14804
14805
14806 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14807 PyObject *resultobj = 0;
14808 wxFont *arg1 = (wxFont *) 0 ;
14809 wxString result;
14810 void *argp1 = 0 ;
14811 int res1 = 0 ;
14812 PyObject *swig_obj[1] ;
14813
14814 if (!args) SWIG_fail;
14815 swig_obj[0] = args;
14816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14817 if (!SWIG_IsOK(res1)) {
14818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
14819 }
14820 arg1 = reinterpret_cast< wxFont * >(argp1);
14821 {
14822 PyThreadState* __tstate = wxPyBeginAllowThreads();
14823 result = ((wxFont const *)arg1)->GetFamilyString();
14824 wxPyEndAllowThreads(__tstate);
14825 if (PyErr_Occurred()) SWIG_fail;
14826 }
14827 {
14828 #if wxUSE_UNICODE
14829 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14830 #else
14831 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14832 #endif
14833 }
14834 return resultobj;
14835 fail:
14836 return NULL;
14837 }
14838
14839
14840 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14841 PyObject *resultobj = 0;
14842 wxFont *arg1 = (wxFont *) 0 ;
14843 wxString result;
14844 void *argp1 = 0 ;
14845 int res1 = 0 ;
14846 PyObject *swig_obj[1] ;
14847
14848 if (!args) SWIG_fail;
14849 swig_obj[0] = args;
14850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14851 if (!SWIG_IsOK(res1)) {
14852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
14853 }
14854 arg1 = reinterpret_cast< wxFont * >(argp1);
14855 {
14856 PyThreadState* __tstate = wxPyBeginAllowThreads();
14857 result = ((wxFont const *)arg1)->GetStyleString();
14858 wxPyEndAllowThreads(__tstate);
14859 if (PyErr_Occurred()) SWIG_fail;
14860 }
14861 {
14862 #if wxUSE_UNICODE
14863 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14864 #else
14865 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14866 #endif
14867 }
14868 return resultobj;
14869 fail:
14870 return NULL;
14871 }
14872
14873
14874 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14875 PyObject *resultobj = 0;
14876 wxFont *arg1 = (wxFont *) 0 ;
14877 wxString result;
14878 void *argp1 = 0 ;
14879 int res1 = 0 ;
14880 PyObject *swig_obj[1] ;
14881
14882 if (!args) SWIG_fail;
14883 swig_obj[0] = args;
14884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14885 if (!SWIG_IsOK(res1)) {
14886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
14887 }
14888 arg1 = reinterpret_cast< wxFont * >(argp1);
14889 {
14890 PyThreadState* __tstate = wxPyBeginAllowThreads();
14891 result = ((wxFont const *)arg1)->GetWeightString();
14892 wxPyEndAllowThreads(__tstate);
14893 if (PyErr_Occurred()) SWIG_fail;
14894 }
14895 {
14896 #if wxUSE_UNICODE
14897 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14898 #else
14899 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14900 #endif
14901 }
14902 return resultobj;
14903 fail:
14904 return NULL;
14905 }
14906
14907
14908 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14909 PyObject *resultobj = 0;
14910 wxFont *arg1 = (wxFont *) 0 ;
14911 bool arg2 = (bool) true ;
14912 void *argp1 = 0 ;
14913 int res1 = 0 ;
14914 bool val2 ;
14915 int ecode2 = 0 ;
14916 PyObject * obj0 = 0 ;
14917 PyObject * obj1 = 0 ;
14918 char * kwnames[] = {
14919 (char *) "self",(char *) "no", NULL
14920 };
14921
14922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
14923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14924 if (!SWIG_IsOK(res1)) {
14925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
14926 }
14927 arg1 = reinterpret_cast< wxFont * >(argp1);
14928 if (obj1) {
14929 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14930 if (!SWIG_IsOK(ecode2)) {
14931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
14932 }
14933 arg2 = static_cast< bool >(val2);
14934 }
14935 {
14936 PyThreadState* __tstate = wxPyBeginAllowThreads();
14937 (arg1)->SetNoAntiAliasing(arg2);
14938 wxPyEndAllowThreads(__tstate);
14939 if (PyErr_Occurred()) SWIG_fail;
14940 }
14941 resultobj = SWIG_Py_Void();
14942 return resultobj;
14943 fail:
14944 return NULL;
14945 }
14946
14947
14948 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14949 PyObject *resultobj = 0;
14950 wxFont *arg1 = (wxFont *) 0 ;
14951 bool result;
14952 void *argp1 = 0 ;
14953 int res1 = 0 ;
14954 PyObject *swig_obj[1] ;
14955
14956 if (!args) SWIG_fail;
14957 swig_obj[0] = args;
14958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14959 if (!SWIG_IsOK(res1)) {
14960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
14961 }
14962 arg1 = reinterpret_cast< wxFont * >(argp1);
14963 {
14964 PyThreadState* __tstate = wxPyBeginAllowThreads();
14965 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
14966 wxPyEndAllowThreads(__tstate);
14967 if (PyErr_Occurred()) SWIG_fail;
14968 }
14969 {
14970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14971 }
14972 return resultobj;
14973 fail:
14974 return NULL;
14975 }
14976
14977
14978 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14979 PyObject *resultobj = 0;
14980 wxFontEncoding result;
14981
14982 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
14983 {
14984 if (!wxPyCheckForApp()) SWIG_fail;
14985 PyThreadState* __tstate = wxPyBeginAllowThreads();
14986 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
14987 wxPyEndAllowThreads(__tstate);
14988 if (PyErr_Occurred()) SWIG_fail;
14989 }
14990 resultobj = SWIG_From_int(static_cast< int >(result));
14991 return resultobj;
14992 fail:
14993 return NULL;
14994 }
14995
14996
14997 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14998 PyObject *resultobj = 0;
14999 wxFontEncoding arg1 ;
15000 int val1 ;
15001 int ecode1 = 0 ;
15002 PyObject * obj0 = 0 ;
15003 char * kwnames[] = {
15004 (char *) "encoding", NULL
15005 };
15006
15007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15008 ecode1 = SWIG_AsVal_int(obj0, &val1);
15009 if (!SWIG_IsOK(ecode1)) {
15010 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15011 }
15012 arg1 = static_cast< wxFontEncoding >(val1);
15013 {
15014 if (!wxPyCheckForApp()) SWIG_fail;
15015 PyThreadState* __tstate = wxPyBeginAllowThreads();
15016 wxFont::SetDefaultEncoding(arg1);
15017 wxPyEndAllowThreads(__tstate);
15018 if (PyErr_Occurred()) SWIG_fail;
15019 }
15020 resultobj = SWIG_Py_Void();
15021 return resultobj;
15022 fail:
15023 return NULL;
15024 }
15025
15026
15027 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15028 PyObject *obj;
15029 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15030 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15031 return SWIG_Py_Void();
15032 }
15033
15034 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15035 return SWIG_Python_InitShadowInstance(args);
15036 }
15037
15038 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15039 PyObject *resultobj = 0;
15040 wxPyFontEnumerator *result = 0 ;
15041
15042 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15043 {
15044 if (!wxPyCheckForApp()) SWIG_fail;
15045 PyThreadState* __tstate = wxPyBeginAllowThreads();
15046 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15047 wxPyEndAllowThreads(__tstate);
15048 if (PyErr_Occurred()) SWIG_fail;
15049 }
15050 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15051 return resultobj;
15052 fail:
15053 return NULL;
15054 }
15055
15056
15057 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15058 PyObject *resultobj = 0;
15059 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15060 void *argp1 = 0 ;
15061 int res1 = 0 ;
15062 PyObject *swig_obj[1] ;
15063
15064 if (!args) SWIG_fail;
15065 swig_obj[0] = args;
15066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15067 if (!SWIG_IsOK(res1)) {
15068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15069 }
15070 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15071 {
15072 PyThreadState* __tstate = wxPyBeginAllowThreads();
15073 delete arg1;
15074
15075 wxPyEndAllowThreads(__tstate);
15076 if (PyErr_Occurred()) SWIG_fail;
15077 }
15078 resultobj = SWIG_Py_Void();
15079 return resultobj;
15080 fail:
15081 return NULL;
15082 }
15083
15084
15085 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15086 PyObject *resultobj = 0;
15087 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15088 PyObject *arg2 = (PyObject *) 0 ;
15089 PyObject *arg3 = (PyObject *) 0 ;
15090 bool arg4 ;
15091 void *argp1 = 0 ;
15092 int res1 = 0 ;
15093 bool val4 ;
15094 int ecode4 = 0 ;
15095 PyObject * obj0 = 0 ;
15096 PyObject * obj1 = 0 ;
15097 PyObject * obj2 = 0 ;
15098 PyObject * obj3 = 0 ;
15099 char * kwnames[] = {
15100 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15101 };
15102
15103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15105 if (!SWIG_IsOK(res1)) {
15106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15107 }
15108 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15109 arg2 = obj1;
15110 arg3 = obj2;
15111 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15112 if (!SWIG_IsOK(ecode4)) {
15113 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15114 }
15115 arg4 = static_cast< bool >(val4);
15116 {
15117 PyThreadState* __tstate = wxPyBeginAllowThreads();
15118 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15119 wxPyEndAllowThreads(__tstate);
15120 if (PyErr_Occurred()) SWIG_fail;
15121 }
15122 resultobj = SWIG_Py_Void();
15123 return resultobj;
15124 fail:
15125 return NULL;
15126 }
15127
15128
15129 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15130 PyObject *resultobj = 0;
15131 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15132 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15133 bool arg3 = (bool) false ;
15134 bool result;
15135 void *argp1 = 0 ;
15136 int res1 = 0 ;
15137 int val2 ;
15138 int ecode2 = 0 ;
15139 bool val3 ;
15140 int ecode3 = 0 ;
15141 PyObject * obj0 = 0 ;
15142 PyObject * obj1 = 0 ;
15143 PyObject * obj2 = 0 ;
15144 char * kwnames[] = {
15145 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15146 };
15147
15148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15150 if (!SWIG_IsOK(res1)) {
15151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15152 }
15153 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15154 if (obj1) {
15155 ecode2 = SWIG_AsVal_int(obj1, &val2);
15156 if (!SWIG_IsOK(ecode2)) {
15157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15158 }
15159 arg2 = static_cast< wxFontEncoding >(val2);
15160 }
15161 if (obj2) {
15162 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15163 if (!SWIG_IsOK(ecode3)) {
15164 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15165 }
15166 arg3 = static_cast< bool >(val3);
15167 }
15168 {
15169 PyThreadState* __tstate = wxPyBeginAllowThreads();
15170 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15171 wxPyEndAllowThreads(__tstate);
15172 if (PyErr_Occurred()) SWIG_fail;
15173 }
15174 {
15175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15176 }
15177 return resultobj;
15178 fail:
15179 return NULL;
15180 }
15181
15182
15183 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15184 PyObject *resultobj = 0;
15185 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15186 wxString const &arg2_defvalue = wxPyEmptyString ;
15187 wxString *arg2 = (wxString *) &arg2_defvalue ;
15188 bool result;
15189 void *argp1 = 0 ;
15190 int res1 = 0 ;
15191 bool temp2 = false ;
15192 PyObject * obj0 = 0 ;
15193 PyObject * obj1 = 0 ;
15194 char * kwnames[] = {
15195 (char *) "self",(char *) "facename", NULL
15196 };
15197
15198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15200 if (!SWIG_IsOK(res1)) {
15201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15202 }
15203 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15204 if (obj1) {
15205 {
15206 arg2 = wxString_in_helper(obj1);
15207 if (arg2 == NULL) SWIG_fail;
15208 temp2 = true;
15209 }
15210 }
15211 {
15212 PyThreadState* __tstate = wxPyBeginAllowThreads();
15213 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15214 wxPyEndAllowThreads(__tstate);
15215 if (PyErr_Occurred()) SWIG_fail;
15216 }
15217 {
15218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15219 }
15220 {
15221 if (temp2)
15222 delete arg2;
15223 }
15224 return resultobj;
15225 fail:
15226 {
15227 if (temp2)
15228 delete arg2;
15229 }
15230 return NULL;
15231 }
15232
15233
15234 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15235 PyObject *resultobj = 0;
15236 PyObject *result = 0 ;
15237
15238 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15239 {
15240 PyThreadState* __tstate = wxPyBeginAllowThreads();
15241 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15242 wxPyEndAllowThreads(__tstate);
15243 if (PyErr_Occurred()) SWIG_fail;
15244 }
15245 resultobj = result;
15246 return resultobj;
15247 fail:
15248 return NULL;
15249 }
15250
15251
15252 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15253 PyObject *resultobj = 0;
15254 PyObject *result = 0 ;
15255
15256 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15257 {
15258 PyThreadState* __tstate = wxPyBeginAllowThreads();
15259 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15260 wxPyEndAllowThreads(__tstate);
15261 if (PyErr_Occurred()) SWIG_fail;
15262 }
15263 resultobj = result;
15264 return resultobj;
15265 fail:
15266 return NULL;
15267 }
15268
15269
15270 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15271 PyObject *resultobj = 0;
15272 wxString *arg1 = 0 ;
15273 bool result;
15274 bool temp1 = false ;
15275 PyObject * obj0 = 0 ;
15276 char * kwnames[] = {
15277 (char *) "str", NULL
15278 };
15279
15280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15281 {
15282 arg1 = wxString_in_helper(obj0);
15283 if (arg1 == NULL) SWIG_fail;
15284 temp1 = true;
15285 }
15286 {
15287 PyThreadState* __tstate = wxPyBeginAllowThreads();
15288 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15289 wxPyEndAllowThreads(__tstate);
15290 if (PyErr_Occurred()) SWIG_fail;
15291 }
15292 {
15293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15294 }
15295 {
15296 if (temp1)
15297 delete arg1;
15298 }
15299 return resultobj;
15300 fail:
15301 {
15302 if (temp1)
15303 delete arg1;
15304 }
15305 return NULL;
15306 }
15307
15308
15309 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15310 PyObject *obj;
15311 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15312 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15313 return SWIG_Py_Void();
15314 }
15315
15316 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15317 return SWIG_Python_InitShadowInstance(args);
15318 }
15319
15320 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15321 PyObject *resultobj = 0;
15322 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15323 int arg2 ;
15324 void *argp1 = 0 ;
15325 int res1 = 0 ;
15326 int val2 ;
15327 int ecode2 = 0 ;
15328 PyObject *swig_obj[2] ;
15329
15330 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15332 if (!SWIG_IsOK(res1)) {
15333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15334 }
15335 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15336 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15337 if (!SWIG_IsOK(ecode2)) {
15338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15339 }
15340 arg2 = static_cast< int >(val2);
15341 if (arg1) (arg1)->Language = arg2;
15342
15343 resultobj = SWIG_Py_Void();
15344 return resultobj;
15345 fail:
15346 return NULL;
15347 }
15348
15349
15350 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15351 PyObject *resultobj = 0;
15352 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15353 int result;
15354 void *argp1 = 0 ;
15355 int res1 = 0 ;
15356 PyObject *swig_obj[1] ;
15357
15358 if (!args) SWIG_fail;
15359 swig_obj[0] = args;
15360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15361 if (!SWIG_IsOK(res1)) {
15362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15363 }
15364 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15365 result = (int) ((arg1)->Language);
15366 resultobj = SWIG_From_int(static_cast< int >(result));
15367 return resultobj;
15368 fail:
15369 return NULL;
15370 }
15371
15372
15373 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15374 PyObject *resultobj = 0;
15375 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15376 wxString *arg2 = (wxString *) 0 ;
15377 void *argp1 = 0 ;
15378 int res1 = 0 ;
15379 bool temp2 = false ;
15380 PyObject *swig_obj[2] ;
15381
15382 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15384 if (!SWIG_IsOK(res1)) {
15385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15386 }
15387 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15388 {
15389 arg2 = wxString_in_helper(swig_obj[1]);
15390 if (arg2 == NULL) SWIG_fail;
15391 temp2 = true;
15392 }
15393 if (arg1) (arg1)->CanonicalName = *arg2;
15394
15395 resultobj = SWIG_Py_Void();
15396 {
15397 if (temp2)
15398 delete arg2;
15399 }
15400 return resultobj;
15401 fail:
15402 {
15403 if (temp2)
15404 delete arg2;
15405 }
15406 return NULL;
15407 }
15408
15409
15410 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15411 PyObject *resultobj = 0;
15412 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15413 wxString *result = 0 ;
15414 void *argp1 = 0 ;
15415 int res1 = 0 ;
15416 PyObject *swig_obj[1] ;
15417
15418 if (!args) SWIG_fail;
15419 swig_obj[0] = args;
15420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15421 if (!SWIG_IsOK(res1)) {
15422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15423 }
15424 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15425 result = (wxString *)& ((arg1)->CanonicalName);
15426 {
15427 #if wxUSE_UNICODE
15428 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15429 #else
15430 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15431 #endif
15432 }
15433 return resultobj;
15434 fail:
15435 return NULL;
15436 }
15437
15438
15439 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15440 PyObject *resultobj = 0;
15441 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15442 wxString *arg2 = (wxString *) 0 ;
15443 void *argp1 = 0 ;
15444 int res1 = 0 ;
15445 bool temp2 = false ;
15446 PyObject *swig_obj[2] ;
15447
15448 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15450 if (!SWIG_IsOK(res1)) {
15451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15452 }
15453 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15454 {
15455 arg2 = wxString_in_helper(swig_obj[1]);
15456 if (arg2 == NULL) SWIG_fail;
15457 temp2 = true;
15458 }
15459 if (arg1) (arg1)->Description = *arg2;
15460
15461 resultobj = SWIG_Py_Void();
15462 {
15463 if (temp2)
15464 delete arg2;
15465 }
15466 return resultobj;
15467 fail:
15468 {
15469 if (temp2)
15470 delete arg2;
15471 }
15472 return NULL;
15473 }
15474
15475
15476 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15477 PyObject *resultobj = 0;
15478 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15479 wxString *result = 0 ;
15480 void *argp1 = 0 ;
15481 int res1 = 0 ;
15482 PyObject *swig_obj[1] ;
15483
15484 if (!args) SWIG_fail;
15485 swig_obj[0] = args;
15486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15487 if (!SWIG_IsOK(res1)) {
15488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15489 }
15490 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15491 result = (wxString *)& ((arg1)->Description);
15492 {
15493 #if wxUSE_UNICODE
15494 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15495 #else
15496 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15497 #endif
15498 }
15499 return resultobj;
15500 fail:
15501 return NULL;
15502 }
15503
15504
15505 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15506 PyObject *obj;
15507 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15508 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15509 return SWIG_Py_Void();
15510 }
15511
15512 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15513 PyObject *resultobj = 0;
15514 int arg1 = (int) -1 ;
15515 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15516 wxLocale *result = 0 ;
15517 int val1 ;
15518 int ecode1 = 0 ;
15519 int val2 ;
15520 int ecode2 = 0 ;
15521 PyObject * obj0 = 0 ;
15522 PyObject * obj1 = 0 ;
15523 char * kwnames[] = {
15524 (char *) "language",(char *) "flags", NULL
15525 };
15526
15527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15528 if (obj0) {
15529 ecode1 = SWIG_AsVal_int(obj0, &val1);
15530 if (!SWIG_IsOK(ecode1)) {
15531 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15532 }
15533 arg1 = static_cast< int >(val1);
15534 }
15535 if (obj1) {
15536 ecode2 = SWIG_AsVal_int(obj1, &val2);
15537 if (!SWIG_IsOK(ecode2)) {
15538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15539 }
15540 arg2 = static_cast< int >(val2);
15541 }
15542 {
15543 PyThreadState* __tstate = wxPyBeginAllowThreads();
15544 result = (wxLocale *)new_wxLocale(arg1,arg2);
15545 wxPyEndAllowThreads(__tstate);
15546 if (PyErr_Occurred()) SWIG_fail;
15547 }
15548 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15549 return resultobj;
15550 fail:
15551 return NULL;
15552 }
15553
15554
15555 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15556 PyObject *resultobj = 0;
15557 wxLocale *arg1 = (wxLocale *) 0 ;
15558 void *argp1 = 0 ;
15559 int res1 = 0 ;
15560 PyObject *swig_obj[1] ;
15561
15562 if (!args) SWIG_fail;
15563 swig_obj[0] = args;
15564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15565 if (!SWIG_IsOK(res1)) {
15566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15567 }
15568 arg1 = reinterpret_cast< wxLocale * >(argp1);
15569 {
15570 PyThreadState* __tstate = wxPyBeginAllowThreads();
15571 delete arg1;
15572
15573 wxPyEndAllowThreads(__tstate);
15574 if (PyErr_Occurred()) SWIG_fail;
15575 }
15576 resultobj = SWIG_Py_Void();
15577 return resultobj;
15578 fail:
15579 return NULL;
15580 }
15581
15582
15583 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15584 PyObject *resultobj = 0;
15585 wxLocale *arg1 = (wxLocale *) 0 ;
15586 wxString *arg2 = 0 ;
15587 wxString const &arg3_defvalue = wxPyEmptyString ;
15588 wxString *arg3 = (wxString *) &arg3_defvalue ;
15589 wxString const &arg4_defvalue = wxPyEmptyString ;
15590 wxString *arg4 = (wxString *) &arg4_defvalue ;
15591 bool arg5 = (bool) true ;
15592 bool arg6 = (bool) false ;
15593 bool result;
15594 void *argp1 = 0 ;
15595 int res1 = 0 ;
15596 bool temp2 = false ;
15597 bool temp3 = false ;
15598 bool temp4 = false ;
15599 bool val5 ;
15600 int ecode5 = 0 ;
15601 bool val6 ;
15602 int ecode6 = 0 ;
15603 PyObject * obj0 = 0 ;
15604 PyObject * obj1 = 0 ;
15605 PyObject * obj2 = 0 ;
15606 PyObject * obj3 = 0 ;
15607 PyObject * obj4 = 0 ;
15608 PyObject * obj5 = 0 ;
15609 char * kwnames[] = {
15610 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15611 };
15612
15613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15615 if (!SWIG_IsOK(res1)) {
15616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15617 }
15618 arg1 = reinterpret_cast< wxLocale * >(argp1);
15619 {
15620 arg2 = wxString_in_helper(obj1);
15621 if (arg2 == NULL) SWIG_fail;
15622 temp2 = true;
15623 }
15624 if (obj2) {
15625 {
15626 arg3 = wxString_in_helper(obj2);
15627 if (arg3 == NULL) SWIG_fail;
15628 temp3 = true;
15629 }
15630 }
15631 if (obj3) {
15632 {
15633 arg4 = wxString_in_helper(obj3);
15634 if (arg4 == NULL) SWIG_fail;
15635 temp4 = true;
15636 }
15637 }
15638 if (obj4) {
15639 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15640 if (!SWIG_IsOK(ecode5)) {
15641 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15642 }
15643 arg5 = static_cast< bool >(val5);
15644 }
15645 if (obj5) {
15646 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15647 if (!SWIG_IsOK(ecode6)) {
15648 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15649 }
15650 arg6 = static_cast< bool >(val6);
15651 }
15652 {
15653 PyThreadState* __tstate = wxPyBeginAllowThreads();
15654 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15655 wxPyEndAllowThreads(__tstate);
15656 if (PyErr_Occurred()) SWIG_fail;
15657 }
15658 {
15659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15660 }
15661 {
15662 if (temp2)
15663 delete arg2;
15664 }
15665 {
15666 if (temp3)
15667 delete arg3;
15668 }
15669 {
15670 if (temp4)
15671 delete arg4;
15672 }
15673 return resultobj;
15674 fail:
15675 {
15676 if (temp2)
15677 delete arg2;
15678 }
15679 {
15680 if (temp3)
15681 delete arg3;
15682 }
15683 {
15684 if (temp4)
15685 delete arg4;
15686 }
15687 return NULL;
15688 }
15689
15690
15691 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15692 PyObject *resultobj = 0;
15693 wxLocale *arg1 = (wxLocale *) 0 ;
15694 int arg2 = (int) wxLANGUAGE_DEFAULT ;
15695 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15696 bool result;
15697 void *argp1 = 0 ;
15698 int res1 = 0 ;
15699 int val2 ;
15700 int ecode2 = 0 ;
15701 int val3 ;
15702 int ecode3 = 0 ;
15703 PyObject * obj0 = 0 ;
15704 PyObject * obj1 = 0 ;
15705 PyObject * obj2 = 0 ;
15706 char * kwnames[] = {
15707 (char *) "self",(char *) "language",(char *) "flags", NULL
15708 };
15709
15710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15712 if (!SWIG_IsOK(res1)) {
15713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
15714 }
15715 arg1 = reinterpret_cast< wxLocale * >(argp1);
15716 if (obj1) {
15717 ecode2 = SWIG_AsVal_int(obj1, &val2);
15718 if (!SWIG_IsOK(ecode2)) {
15719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
15720 }
15721 arg2 = static_cast< int >(val2);
15722 }
15723 if (obj2) {
15724 ecode3 = SWIG_AsVal_int(obj2, &val3);
15725 if (!SWIG_IsOK(ecode3)) {
15726 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
15727 }
15728 arg3 = static_cast< int >(val3);
15729 }
15730 {
15731 PyThreadState* __tstate = wxPyBeginAllowThreads();
15732 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
15733 wxPyEndAllowThreads(__tstate);
15734 if (PyErr_Occurred()) SWIG_fail;
15735 }
15736 {
15737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15738 }
15739 return resultobj;
15740 fail:
15741 return NULL;
15742 }
15743
15744
15745 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15746 PyObject *resultobj = 0;
15747 int result;
15748
15749 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
15750 {
15751 PyThreadState* __tstate = wxPyBeginAllowThreads();
15752 result = (int)wxLocale::GetSystemLanguage();
15753 wxPyEndAllowThreads(__tstate);
15754 if (PyErr_Occurred()) SWIG_fail;
15755 }
15756 resultobj = SWIG_From_int(static_cast< int >(result));
15757 return resultobj;
15758 fail:
15759 return NULL;
15760 }
15761
15762
15763 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15764 PyObject *resultobj = 0;
15765 wxFontEncoding result;
15766
15767 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
15768 {
15769 PyThreadState* __tstate = wxPyBeginAllowThreads();
15770 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
15771 wxPyEndAllowThreads(__tstate);
15772 if (PyErr_Occurred()) SWIG_fail;
15773 }
15774 resultobj = SWIG_From_int(static_cast< int >(result));
15775 return resultobj;
15776 fail:
15777 return NULL;
15778 }
15779
15780
15781 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15782 PyObject *resultobj = 0;
15783 wxString result;
15784
15785 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
15786 {
15787 PyThreadState* __tstate = wxPyBeginAllowThreads();
15788 result = wxLocale::GetSystemEncodingName();
15789 wxPyEndAllowThreads(__tstate);
15790 if (PyErr_Occurred()) SWIG_fail;
15791 }
15792 {
15793 #if wxUSE_UNICODE
15794 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15795 #else
15796 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15797 #endif
15798 }
15799 return resultobj;
15800 fail:
15801 return NULL;
15802 }
15803
15804
15805 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15806 PyObject *resultobj = 0;
15807 wxLocale *arg1 = (wxLocale *) 0 ;
15808 bool result;
15809 void *argp1 = 0 ;
15810 int res1 = 0 ;
15811 PyObject *swig_obj[1] ;
15812
15813 if (!args) SWIG_fail;
15814 swig_obj[0] = args;
15815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15816 if (!SWIG_IsOK(res1)) {
15817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
15818 }
15819 arg1 = reinterpret_cast< wxLocale * >(argp1);
15820 {
15821 PyThreadState* __tstate = wxPyBeginAllowThreads();
15822 result = (bool)((wxLocale const *)arg1)->IsOk();
15823 wxPyEndAllowThreads(__tstate);
15824 if (PyErr_Occurred()) SWIG_fail;
15825 }
15826 {
15827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15828 }
15829 return resultobj;
15830 fail:
15831 return NULL;
15832 }
15833
15834
15835 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15836 PyObject *resultobj = 0;
15837 wxLocale *arg1 = (wxLocale *) 0 ;
15838 wxString result;
15839 void *argp1 = 0 ;
15840 int res1 = 0 ;
15841 PyObject *swig_obj[1] ;
15842
15843 if (!args) SWIG_fail;
15844 swig_obj[0] = args;
15845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15846 if (!SWIG_IsOK(res1)) {
15847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
15848 }
15849 arg1 = reinterpret_cast< wxLocale * >(argp1);
15850 {
15851 PyThreadState* __tstate = wxPyBeginAllowThreads();
15852 result = ((wxLocale const *)arg1)->GetLocale();
15853 wxPyEndAllowThreads(__tstate);
15854 if (PyErr_Occurred()) SWIG_fail;
15855 }
15856 {
15857 #if wxUSE_UNICODE
15858 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15859 #else
15860 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15861 #endif
15862 }
15863 return resultobj;
15864 fail:
15865 return NULL;
15866 }
15867
15868
15869 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15870 PyObject *resultobj = 0;
15871 wxLocale *arg1 = (wxLocale *) 0 ;
15872 int result;
15873 void *argp1 = 0 ;
15874 int res1 = 0 ;
15875 PyObject *swig_obj[1] ;
15876
15877 if (!args) SWIG_fail;
15878 swig_obj[0] = args;
15879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15880 if (!SWIG_IsOK(res1)) {
15881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
15882 }
15883 arg1 = reinterpret_cast< wxLocale * >(argp1);
15884 {
15885 PyThreadState* __tstate = wxPyBeginAllowThreads();
15886 result = (int)((wxLocale const *)arg1)->GetLanguage();
15887 wxPyEndAllowThreads(__tstate);
15888 if (PyErr_Occurred()) SWIG_fail;
15889 }
15890 resultobj = SWIG_From_int(static_cast< int >(result));
15891 return resultobj;
15892 fail:
15893 return NULL;
15894 }
15895
15896
15897 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15898 PyObject *resultobj = 0;
15899 wxLocale *arg1 = (wxLocale *) 0 ;
15900 wxString result;
15901 void *argp1 = 0 ;
15902 int res1 = 0 ;
15903 PyObject *swig_obj[1] ;
15904
15905 if (!args) SWIG_fail;
15906 swig_obj[0] = args;
15907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15908 if (!SWIG_IsOK(res1)) {
15909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15910 }
15911 arg1 = reinterpret_cast< wxLocale * >(argp1);
15912 {
15913 PyThreadState* __tstate = wxPyBeginAllowThreads();
15914 result = ((wxLocale const *)arg1)->GetSysName();
15915 wxPyEndAllowThreads(__tstate);
15916 if (PyErr_Occurred()) SWIG_fail;
15917 }
15918 {
15919 #if wxUSE_UNICODE
15920 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15921 #else
15922 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15923 #endif
15924 }
15925 return resultobj;
15926 fail:
15927 return NULL;
15928 }
15929
15930
15931 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15932 PyObject *resultobj = 0;
15933 wxLocale *arg1 = (wxLocale *) 0 ;
15934 wxString result;
15935 void *argp1 = 0 ;
15936 int res1 = 0 ;
15937 PyObject *swig_obj[1] ;
15938
15939 if (!args) SWIG_fail;
15940 swig_obj[0] = args;
15941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15942 if (!SWIG_IsOK(res1)) {
15943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15944 }
15945 arg1 = reinterpret_cast< wxLocale * >(argp1);
15946 {
15947 PyThreadState* __tstate = wxPyBeginAllowThreads();
15948 result = ((wxLocale const *)arg1)->GetCanonicalName();
15949 wxPyEndAllowThreads(__tstate);
15950 if (PyErr_Occurred()) SWIG_fail;
15951 }
15952 {
15953 #if wxUSE_UNICODE
15954 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15955 #else
15956 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15957 #endif
15958 }
15959 return resultobj;
15960 fail:
15961 return NULL;
15962 }
15963
15964
15965 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15966 PyObject *resultobj = 0;
15967 wxString *arg1 = 0 ;
15968 bool temp1 = false ;
15969 PyObject * obj0 = 0 ;
15970 char * kwnames[] = {
15971 (char *) "prefix", NULL
15972 };
15973
15974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
15975 {
15976 arg1 = wxString_in_helper(obj0);
15977 if (arg1 == NULL) SWIG_fail;
15978 temp1 = true;
15979 }
15980 {
15981 PyThreadState* __tstate = wxPyBeginAllowThreads();
15982 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
15983 wxPyEndAllowThreads(__tstate);
15984 if (PyErr_Occurred()) SWIG_fail;
15985 }
15986 resultobj = SWIG_Py_Void();
15987 {
15988 if (temp1)
15989 delete arg1;
15990 }
15991 return resultobj;
15992 fail:
15993 {
15994 if (temp1)
15995 delete arg1;
15996 }
15997 return NULL;
15998 }
15999
16000
16001 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16002 PyObject *resultobj = 0;
16003 wxLocale *arg1 = (wxLocale *) 0 ;
16004 wxString *arg2 = 0 ;
16005 bool result;
16006 void *argp1 = 0 ;
16007 int res1 = 0 ;
16008 bool temp2 = false ;
16009 PyObject * obj0 = 0 ;
16010 PyObject * obj1 = 0 ;
16011 char * kwnames[] = {
16012 (char *) "self",(char *) "szDomain", NULL
16013 };
16014
16015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16017 if (!SWIG_IsOK(res1)) {
16018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16019 }
16020 arg1 = reinterpret_cast< wxLocale * >(argp1);
16021 {
16022 arg2 = wxString_in_helper(obj1);
16023 if (arg2 == NULL) SWIG_fail;
16024 temp2 = true;
16025 }
16026 {
16027 PyThreadState* __tstate = wxPyBeginAllowThreads();
16028 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16029 wxPyEndAllowThreads(__tstate);
16030 if (PyErr_Occurred()) SWIG_fail;
16031 }
16032 {
16033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16034 }
16035 {
16036 if (temp2)
16037 delete arg2;
16038 }
16039 return resultobj;
16040 fail:
16041 {
16042 if (temp2)
16043 delete arg2;
16044 }
16045 return NULL;
16046 }
16047
16048
16049 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16050 PyObject *resultobj = 0;
16051 int arg1 ;
16052 bool result;
16053 int val1 ;
16054 int ecode1 = 0 ;
16055 PyObject * obj0 = 0 ;
16056 char * kwnames[] = {
16057 (char *) "lang", NULL
16058 };
16059
16060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16061 ecode1 = SWIG_AsVal_int(obj0, &val1);
16062 if (!SWIG_IsOK(ecode1)) {
16063 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16064 }
16065 arg1 = static_cast< int >(val1);
16066 {
16067 PyThreadState* __tstate = wxPyBeginAllowThreads();
16068 result = (bool)wxLocale::IsAvailable(arg1);
16069 wxPyEndAllowThreads(__tstate);
16070 if (PyErr_Occurred()) SWIG_fail;
16071 }
16072 {
16073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16074 }
16075 return resultobj;
16076 fail:
16077 return NULL;
16078 }
16079
16080
16081 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16082 PyObject *resultobj = 0;
16083 wxLocale *arg1 = (wxLocale *) 0 ;
16084 wxString *arg2 = 0 ;
16085 bool result;
16086 void *argp1 = 0 ;
16087 int res1 = 0 ;
16088 bool temp2 = false ;
16089 PyObject * obj0 = 0 ;
16090 PyObject * obj1 = 0 ;
16091 char * kwnames[] = {
16092 (char *) "self",(char *) "szDomain", NULL
16093 };
16094
16095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16097 if (!SWIG_IsOK(res1)) {
16098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16099 }
16100 arg1 = reinterpret_cast< wxLocale * >(argp1);
16101 {
16102 arg2 = wxString_in_helper(obj1);
16103 if (arg2 == NULL) SWIG_fail;
16104 temp2 = true;
16105 }
16106 {
16107 PyThreadState* __tstate = wxPyBeginAllowThreads();
16108 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16109 wxPyEndAllowThreads(__tstate);
16110 if (PyErr_Occurred()) SWIG_fail;
16111 }
16112 {
16113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16114 }
16115 {
16116 if (temp2)
16117 delete arg2;
16118 }
16119 return resultobj;
16120 fail:
16121 {
16122 if (temp2)
16123 delete arg2;
16124 }
16125 return NULL;
16126 }
16127
16128
16129 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16130 PyObject *resultobj = 0;
16131 int arg1 ;
16132 wxLanguageInfo *result = 0 ;
16133 int val1 ;
16134 int ecode1 = 0 ;
16135 PyObject * obj0 = 0 ;
16136 char * kwnames[] = {
16137 (char *) "lang", NULL
16138 };
16139
16140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16141 ecode1 = SWIG_AsVal_int(obj0, &val1);
16142 if (!SWIG_IsOK(ecode1)) {
16143 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16144 }
16145 arg1 = static_cast< int >(val1);
16146 {
16147 PyThreadState* __tstate = wxPyBeginAllowThreads();
16148 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16149 wxPyEndAllowThreads(__tstate);
16150 if (PyErr_Occurred()) SWIG_fail;
16151 }
16152 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16153 return resultobj;
16154 fail:
16155 return NULL;
16156 }
16157
16158
16159 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16160 PyObject *resultobj = 0;
16161 int arg1 ;
16162 wxString result;
16163 int val1 ;
16164 int ecode1 = 0 ;
16165 PyObject * obj0 = 0 ;
16166 char * kwnames[] = {
16167 (char *) "lang", NULL
16168 };
16169
16170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16171 ecode1 = SWIG_AsVal_int(obj0, &val1);
16172 if (!SWIG_IsOK(ecode1)) {
16173 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16174 }
16175 arg1 = static_cast< int >(val1);
16176 {
16177 PyThreadState* __tstate = wxPyBeginAllowThreads();
16178 result = wxLocale::GetLanguageName(arg1);
16179 wxPyEndAllowThreads(__tstate);
16180 if (PyErr_Occurred()) SWIG_fail;
16181 }
16182 {
16183 #if wxUSE_UNICODE
16184 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16185 #else
16186 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16187 #endif
16188 }
16189 return resultobj;
16190 fail:
16191 return NULL;
16192 }
16193
16194
16195 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16196 PyObject *resultobj = 0;
16197 wxString *arg1 = 0 ;
16198 wxLanguageInfo *result = 0 ;
16199 bool temp1 = false ;
16200 PyObject * obj0 = 0 ;
16201 char * kwnames[] = {
16202 (char *) "locale", NULL
16203 };
16204
16205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16206 {
16207 arg1 = wxString_in_helper(obj0);
16208 if (arg1 == NULL) SWIG_fail;
16209 temp1 = true;
16210 }
16211 {
16212 PyThreadState* __tstate = wxPyBeginAllowThreads();
16213 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16214 wxPyEndAllowThreads(__tstate);
16215 if (PyErr_Occurred()) SWIG_fail;
16216 }
16217 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16218 {
16219 if (temp1)
16220 delete arg1;
16221 }
16222 return resultobj;
16223 fail:
16224 {
16225 if (temp1)
16226 delete arg1;
16227 }
16228 return NULL;
16229 }
16230
16231
16232 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16233 PyObject *resultobj = 0;
16234 wxLanguageInfo *arg1 = 0 ;
16235 void *argp1 = 0 ;
16236 int res1 = 0 ;
16237 PyObject * obj0 = 0 ;
16238 char * kwnames[] = {
16239 (char *) "info", NULL
16240 };
16241
16242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16243 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16244 if (!SWIG_IsOK(res1)) {
16245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16246 }
16247 if (!argp1) {
16248 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16249 }
16250 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16251 {
16252 PyThreadState* __tstate = wxPyBeginAllowThreads();
16253 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16254 wxPyEndAllowThreads(__tstate);
16255 if (PyErr_Occurred()) SWIG_fail;
16256 }
16257 resultobj = SWIG_Py_Void();
16258 return resultobj;
16259 fail:
16260 return NULL;
16261 }
16262
16263
16264 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16265 PyObject *resultobj = 0;
16266 wxLocale *arg1 = (wxLocale *) 0 ;
16267 wxString *arg2 = 0 ;
16268 wxString const &arg3_defvalue = wxPyEmptyString ;
16269 wxString *arg3 = (wxString *) &arg3_defvalue ;
16270 wxString result;
16271 void *argp1 = 0 ;
16272 int res1 = 0 ;
16273 bool temp2 = false ;
16274 bool temp3 = false ;
16275 PyObject * obj0 = 0 ;
16276 PyObject * obj1 = 0 ;
16277 PyObject * obj2 = 0 ;
16278 char * kwnames[] = {
16279 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16280 };
16281
16282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16284 if (!SWIG_IsOK(res1)) {
16285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16286 }
16287 arg1 = reinterpret_cast< wxLocale * >(argp1);
16288 {
16289 arg2 = wxString_in_helper(obj1);
16290 if (arg2 == NULL) SWIG_fail;
16291 temp2 = true;
16292 }
16293 if (obj2) {
16294 {
16295 arg3 = wxString_in_helper(obj2);
16296 if (arg3 == NULL) SWIG_fail;
16297 temp3 = true;
16298 }
16299 }
16300 {
16301 PyThreadState* __tstate = wxPyBeginAllowThreads();
16302 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16303 wxPyEndAllowThreads(__tstate);
16304 if (PyErr_Occurred()) SWIG_fail;
16305 }
16306 {
16307 #if wxUSE_UNICODE
16308 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16309 #else
16310 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16311 #endif
16312 }
16313 {
16314 if (temp2)
16315 delete arg2;
16316 }
16317 {
16318 if (temp3)
16319 delete arg3;
16320 }
16321 return resultobj;
16322 fail:
16323 {
16324 if (temp2)
16325 delete arg2;
16326 }
16327 {
16328 if (temp3)
16329 delete arg3;
16330 }
16331 return NULL;
16332 }
16333
16334
16335 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16336 PyObject *resultobj = 0;
16337 wxLocale *arg1 = (wxLocale *) 0 ;
16338 wxString *result = 0 ;
16339 void *argp1 = 0 ;
16340 int res1 = 0 ;
16341 PyObject *swig_obj[1] ;
16342
16343 if (!args) SWIG_fail;
16344 swig_obj[0] = args;
16345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16346 if (!SWIG_IsOK(res1)) {
16347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16348 }
16349 arg1 = reinterpret_cast< wxLocale * >(argp1);
16350 {
16351 PyThreadState* __tstate = wxPyBeginAllowThreads();
16352 {
16353 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16354 result = (wxString *) &_result_ref;
16355 }
16356 wxPyEndAllowThreads(__tstate);
16357 if (PyErr_Occurred()) SWIG_fail;
16358 }
16359 {
16360 #if wxUSE_UNICODE
16361 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16362 #else
16363 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16364 #endif
16365 }
16366 return resultobj;
16367 fail:
16368 return NULL;
16369 }
16370
16371
16372 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16373 PyObject *obj;
16374 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16375 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16376 return SWIG_Py_Void();
16377 }
16378
16379 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16380 return SWIG_Python_InitShadowInstance(args);
16381 }
16382
16383 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16384 PyObject *resultobj = 0;
16385 int arg1 = (int) -1 ;
16386 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16387 wxPyLocale *result = 0 ;
16388 int val1 ;
16389 int ecode1 = 0 ;
16390 int val2 ;
16391 int ecode2 = 0 ;
16392 PyObject * obj0 = 0 ;
16393 PyObject * obj1 = 0 ;
16394 char * kwnames[] = {
16395 (char *) "language",(char *) "flags", NULL
16396 };
16397
16398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16399 if (obj0) {
16400 ecode1 = SWIG_AsVal_int(obj0, &val1);
16401 if (!SWIG_IsOK(ecode1)) {
16402 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16403 }
16404 arg1 = static_cast< int >(val1);
16405 }
16406 if (obj1) {
16407 ecode2 = SWIG_AsVal_int(obj1, &val2);
16408 if (!SWIG_IsOK(ecode2)) {
16409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16410 }
16411 arg2 = static_cast< int >(val2);
16412 }
16413 {
16414 PyThreadState* __tstate = wxPyBeginAllowThreads();
16415 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16416 wxPyEndAllowThreads(__tstate);
16417 if (PyErr_Occurred()) SWIG_fail;
16418 }
16419 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16420 return resultobj;
16421 fail:
16422 return NULL;
16423 }
16424
16425
16426 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16427 PyObject *resultobj = 0;
16428 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16429 void *argp1 = 0 ;
16430 int res1 = 0 ;
16431 PyObject *swig_obj[1] ;
16432
16433 if (!args) SWIG_fail;
16434 swig_obj[0] = args;
16435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16436 if (!SWIG_IsOK(res1)) {
16437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16438 }
16439 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16440 {
16441 PyThreadState* __tstate = wxPyBeginAllowThreads();
16442 delete arg1;
16443
16444 wxPyEndAllowThreads(__tstate);
16445 if (PyErr_Occurred()) SWIG_fail;
16446 }
16447 resultobj = SWIG_Py_Void();
16448 return resultobj;
16449 fail:
16450 return NULL;
16451 }
16452
16453
16454 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16455 PyObject *resultobj = 0;
16456 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16457 PyObject *arg2 = (PyObject *) 0 ;
16458 PyObject *arg3 = (PyObject *) 0 ;
16459 void *argp1 = 0 ;
16460 int res1 = 0 ;
16461 PyObject * obj0 = 0 ;
16462 PyObject * obj1 = 0 ;
16463 PyObject * obj2 = 0 ;
16464 char * kwnames[] = {
16465 (char *) "self",(char *) "self",(char *) "_class", NULL
16466 };
16467
16468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16470 if (!SWIG_IsOK(res1)) {
16471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16472 }
16473 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16474 arg2 = obj1;
16475 arg3 = obj2;
16476 {
16477 PyThreadState* __tstate = wxPyBeginAllowThreads();
16478 (arg1)->_setCallbackInfo(arg2,arg3);
16479 wxPyEndAllowThreads(__tstate);
16480 if (PyErr_Occurred()) SWIG_fail;
16481 }
16482 resultobj = SWIG_Py_Void();
16483 return resultobj;
16484 fail:
16485 return NULL;
16486 }
16487
16488
16489 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16490 PyObject *resultobj = 0;
16491 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16492 wxChar *arg2 = (wxChar *) 0 ;
16493 wxChar *arg3 = (wxChar *) NULL ;
16494 wxChar *result = 0 ;
16495 void *argp1 = 0 ;
16496 int res1 = 0 ;
16497 void *argp2 = 0 ;
16498 int res2 = 0 ;
16499 void *argp3 = 0 ;
16500 int res3 = 0 ;
16501 PyObject * obj0 = 0 ;
16502 PyObject * obj1 = 0 ;
16503 PyObject * obj2 = 0 ;
16504 char * kwnames[] = {
16505 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16506 };
16507
16508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16510 if (!SWIG_IsOK(res1)) {
16511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16512 }
16513 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16514 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16515 if (!SWIG_IsOK(res2)) {
16516 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
16517 }
16518 arg2 = reinterpret_cast< wxChar * >(argp2);
16519 if (obj2) {
16520 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16521 if (!SWIG_IsOK(res3)) {
16522 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
16523 }
16524 arg3 = reinterpret_cast< wxChar * >(argp3);
16525 }
16526 {
16527 PyThreadState* __tstate = wxPyBeginAllowThreads();
16528 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
16529 wxPyEndAllowThreads(__tstate);
16530 if (PyErr_Occurred()) SWIG_fail;
16531 }
16532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16533 return resultobj;
16534 fail:
16535 return NULL;
16536 }
16537
16538
16539 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16540 PyObject *resultobj = 0;
16541 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16542 wxChar *arg2 = (wxChar *) 0 ;
16543 wxChar *arg3 = (wxChar *) 0 ;
16544 size_t arg4 ;
16545 wxChar *arg5 = (wxChar *) NULL ;
16546 wxChar *result = 0 ;
16547 void *argp1 = 0 ;
16548 int res1 = 0 ;
16549 void *argp2 = 0 ;
16550 int res2 = 0 ;
16551 void *argp3 = 0 ;
16552 int res3 = 0 ;
16553 size_t val4 ;
16554 int ecode4 = 0 ;
16555 void *argp5 = 0 ;
16556 int res5 = 0 ;
16557 PyObject * obj0 = 0 ;
16558 PyObject * obj1 = 0 ;
16559 PyObject * obj2 = 0 ;
16560 PyObject * obj3 = 0 ;
16561 PyObject * obj4 = 0 ;
16562 char * kwnames[] = {
16563 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16564 };
16565
16566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16568 if (!SWIG_IsOK(res1)) {
16569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16570 }
16571 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16572 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16573 if (!SWIG_IsOK(res2)) {
16574 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16575 }
16576 arg2 = reinterpret_cast< wxChar * >(argp2);
16577 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16578 if (!SWIG_IsOK(res3)) {
16579 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16580 }
16581 arg3 = reinterpret_cast< wxChar * >(argp3);
16582 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16583 if (!SWIG_IsOK(ecode4)) {
16584 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16585 }
16586 arg4 = static_cast< size_t >(val4);
16587 if (obj4) {
16588 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16589 if (!SWIG_IsOK(res5)) {
16590 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16591 }
16592 arg5 = reinterpret_cast< wxChar * >(argp5);
16593 }
16594 {
16595 PyThreadState* __tstate = wxPyBeginAllowThreads();
16596 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
16597 wxPyEndAllowThreads(__tstate);
16598 if (PyErr_Occurred()) SWIG_fail;
16599 }
16600 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16601 return resultobj;
16602 fail:
16603 return NULL;
16604 }
16605
16606
16607 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16608 PyObject *obj;
16609 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16610 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
16611 return SWIG_Py_Void();
16612 }
16613
16614 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16615 return SWIG_Python_InitShadowInstance(args);
16616 }
16617
16618 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16619 PyObject *resultobj = 0;
16620 wxLocale *result = 0 ;
16621
16622 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16623 {
16624 PyThreadState* __tstate = wxPyBeginAllowThreads();
16625 result = (wxLocale *)wxGetLocale();
16626 wxPyEndAllowThreads(__tstate);
16627 if (PyErr_Occurred()) SWIG_fail;
16628 }
16629 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16630 return resultobj;
16631 fail:
16632 return NULL;
16633 }
16634
16635
16636 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16637 PyObject *resultobj = 0;
16638 wxString *arg1 = 0 ;
16639 wxString result;
16640 bool temp1 = false ;
16641
16642 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16643 {
16644 arg1 = wxString_in_helper(swig_obj[0]);
16645 if (arg1 == NULL) SWIG_fail;
16646 temp1 = true;
16647 }
16648 {
16649 PyThreadState* __tstate = wxPyBeginAllowThreads();
16650 result = wxGetTranslation((wxString const &)*arg1);
16651 wxPyEndAllowThreads(__tstate);
16652 if (PyErr_Occurred()) SWIG_fail;
16653 }
16654 {
16655 #if wxUSE_UNICODE
16656 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16657 #else
16658 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16659 #endif
16660 }
16661 {
16662 if (temp1)
16663 delete arg1;
16664 }
16665 return resultobj;
16666 fail:
16667 {
16668 if (temp1)
16669 delete arg1;
16670 }
16671 return NULL;
16672 }
16673
16674
16675 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16676 PyObject *resultobj = 0;
16677 wxString *arg1 = 0 ;
16678 wxString *arg2 = 0 ;
16679 wxString result;
16680 bool temp1 = false ;
16681 bool temp2 = false ;
16682
16683 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16684 {
16685 arg1 = wxString_in_helper(swig_obj[0]);
16686 if (arg1 == NULL) SWIG_fail;
16687 temp1 = true;
16688 }
16689 {
16690 arg2 = wxString_in_helper(swig_obj[1]);
16691 if (arg2 == NULL) SWIG_fail;
16692 temp2 = true;
16693 }
16694 {
16695 PyThreadState* __tstate = wxPyBeginAllowThreads();
16696 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
16697 wxPyEndAllowThreads(__tstate);
16698 if (PyErr_Occurred()) SWIG_fail;
16699 }
16700 {
16701 #if wxUSE_UNICODE
16702 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16703 #else
16704 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16705 #endif
16706 }
16707 {
16708 if (temp1)
16709 delete arg1;
16710 }
16711 {
16712 if (temp2)
16713 delete arg2;
16714 }
16715 return resultobj;
16716 fail:
16717 {
16718 if (temp1)
16719 delete arg1;
16720 }
16721 {
16722 if (temp2)
16723 delete arg2;
16724 }
16725 return NULL;
16726 }
16727
16728
16729 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16730 PyObject *resultobj = 0;
16731 wxString *arg1 = 0 ;
16732 wxString *arg2 = 0 ;
16733 size_t arg3 ;
16734 wxString result;
16735 bool temp1 = false ;
16736 bool temp2 = false ;
16737 size_t val3 ;
16738 int ecode3 = 0 ;
16739
16740 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
16741 {
16742 arg1 = wxString_in_helper(swig_obj[0]);
16743 if (arg1 == NULL) SWIG_fail;
16744 temp1 = true;
16745 }
16746 {
16747 arg2 = wxString_in_helper(swig_obj[1]);
16748 if (arg2 == NULL) SWIG_fail;
16749 temp2 = true;
16750 }
16751 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16752 if (!SWIG_IsOK(ecode3)) {
16753 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16754 }
16755 arg3 = static_cast< size_t >(val3);
16756 {
16757 PyThreadState* __tstate = wxPyBeginAllowThreads();
16758 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
16759 wxPyEndAllowThreads(__tstate);
16760 if (PyErr_Occurred()) SWIG_fail;
16761 }
16762 {
16763 #if wxUSE_UNICODE
16764 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16765 #else
16766 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16767 #endif
16768 }
16769 {
16770 if (temp1)
16771 delete arg1;
16772 }
16773 {
16774 if (temp2)
16775 delete arg2;
16776 }
16777 return resultobj;
16778 fail:
16779 {
16780 if (temp1)
16781 delete arg1;
16782 }
16783 {
16784 if (temp2)
16785 delete arg2;
16786 }
16787 return NULL;
16788 }
16789
16790
16791 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16792 PyObject *resultobj = 0;
16793 wxString *arg1 = 0 ;
16794 wxString *arg2 = 0 ;
16795 size_t arg3 ;
16796 wxString *arg4 = 0 ;
16797 wxString result;
16798 bool temp1 = false ;
16799 bool temp2 = false ;
16800 size_t val3 ;
16801 int ecode3 = 0 ;
16802 bool temp4 = false ;
16803
16804 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
16805 {
16806 arg1 = wxString_in_helper(swig_obj[0]);
16807 if (arg1 == NULL) SWIG_fail;
16808 temp1 = true;
16809 }
16810 {
16811 arg2 = wxString_in_helper(swig_obj[1]);
16812 if (arg2 == NULL) SWIG_fail;
16813 temp2 = true;
16814 }
16815 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16816 if (!SWIG_IsOK(ecode3)) {
16817 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16818 }
16819 arg3 = static_cast< size_t >(val3);
16820 {
16821 arg4 = wxString_in_helper(swig_obj[3]);
16822 if (arg4 == NULL) SWIG_fail;
16823 temp4 = true;
16824 }
16825 {
16826 PyThreadState* __tstate = wxPyBeginAllowThreads();
16827 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
16828 wxPyEndAllowThreads(__tstate);
16829 if (PyErr_Occurred()) SWIG_fail;
16830 }
16831 {
16832 #if wxUSE_UNICODE
16833 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16834 #else
16835 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16836 #endif
16837 }
16838 {
16839 if (temp1)
16840 delete arg1;
16841 }
16842 {
16843 if (temp2)
16844 delete arg2;
16845 }
16846 {
16847 if (temp4)
16848 delete arg4;
16849 }
16850 return resultobj;
16851 fail:
16852 {
16853 if (temp1)
16854 delete arg1;
16855 }
16856 {
16857 if (temp2)
16858 delete arg2;
16859 }
16860 {
16861 if (temp4)
16862 delete arg4;
16863 }
16864 return NULL;
16865 }
16866
16867
16868 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
16869 int argc;
16870 PyObject *argv[5];
16871
16872 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
16873 --argc;
16874 if (argc == 1) {
16875 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
16876 }
16877 if (argc == 2) {
16878 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
16879 }
16880 if (argc == 3) {
16881 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
16882 }
16883 if (argc == 4) {
16884 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
16885 }
16886
16887 fail:
16888 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
16889 return NULL;
16890 }
16891
16892
16893 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16894 PyObject *resultobj = 0;
16895 wxEncodingConverter *result = 0 ;
16896
16897 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
16898 {
16899 PyThreadState* __tstate = wxPyBeginAllowThreads();
16900 result = (wxEncodingConverter *)new wxEncodingConverter();
16901 wxPyEndAllowThreads(__tstate);
16902 if (PyErr_Occurred()) SWIG_fail;
16903 }
16904 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
16905 return resultobj;
16906 fail:
16907 return NULL;
16908 }
16909
16910
16911 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16912 PyObject *resultobj = 0;
16913 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16914 void *argp1 = 0 ;
16915 int res1 = 0 ;
16916 PyObject *swig_obj[1] ;
16917
16918 if (!args) SWIG_fail;
16919 swig_obj[0] = args;
16920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
16921 if (!SWIG_IsOK(res1)) {
16922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16923 }
16924 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16925 {
16926 PyThreadState* __tstate = wxPyBeginAllowThreads();
16927 delete arg1;
16928
16929 wxPyEndAllowThreads(__tstate);
16930 if (PyErr_Occurred()) SWIG_fail;
16931 }
16932 resultobj = SWIG_Py_Void();
16933 return resultobj;
16934 fail:
16935 return NULL;
16936 }
16937
16938
16939 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16940 PyObject *resultobj = 0;
16941 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16942 wxFontEncoding arg2 ;
16943 wxFontEncoding arg3 ;
16944 int arg4 = (int) wxCONVERT_STRICT ;
16945 bool result;
16946 void *argp1 = 0 ;
16947 int res1 = 0 ;
16948 int val2 ;
16949 int ecode2 = 0 ;
16950 int val3 ;
16951 int ecode3 = 0 ;
16952 int val4 ;
16953 int ecode4 = 0 ;
16954 PyObject * obj0 = 0 ;
16955 PyObject * obj1 = 0 ;
16956 PyObject * obj2 = 0 ;
16957 PyObject * obj3 = 0 ;
16958 char * kwnames[] = {
16959 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
16960 };
16961
16962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16964 if (!SWIG_IsOK(res1)) {
16965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16966 }
16967 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16968 ecode2 = SWIG_AsVal_int(obj1, &val2);
16969 if (!SWIG_IsOK(ecode2)) {
16970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16971 }
16972 arg2 = static_cast< wxFontEncoding >(val2);
16973 ecode3 = SWIG_AsVal_int(obj2, &val3);
16974 if (!SWIG_IsOK(ecode3)) {
16975 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
16976 }
16977 arg3 = static_cast< wxFontEncoding >(val3);
16978 if (obj3) {
16979 ecode4 = SWIG_AsVal_int(obj3, &val4);
16980 if (!SWIG_IsOK(ecode4)) {
16981 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
16982 }
16983 arg4 = static_cast< int >(val4);
16984 }
16985 {
16986 PyThreadState* __tstate = wxPyBeginAllowThreads();
16987 result = (bool)(arg1)->Init(arg2,arg3,arg4);
16988 wxPyEndAllowThreads(__tstate);
16989 if (PyErr_Occurred()) SWIG_fail;
16990 }
16991 {
16992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16993 }
16994 return resultobj;
16995 fail:
16996 return NULL;
16997 }
16998
16999
17000 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17001 PyObject *resultobj = 0;
17002 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17003 wxString *arg2 = 0 ;
17004 wxString result;
17005 void *argp1 = 0 ;
17006 int res1 = 0 ;
17007 bool temp2 = false ;
17008 PyObject * obj0 = 0 ;
17009 PyObject * obj1 = 0 ;
17010 char * kwnames[] = {
17011 (char *) "self",(char *) "input", NULL
17012 };
17013
17014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17016 if (!SWIG_IsOK(res1)) {
17017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17018 }
17019 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17020 {
17021 arg2 = wxString_in_helper(obj1);
17022 if (arg2 == NULL) SWIG_fail;
17023 temp2 = true;
17024 }
17025 {
17026 PyThreadState* __tstate = wxPyBeginAllowThreads();
17027 result = (arg1)->Convert((wxString const &)*arg2);
17028 wxPyEndAllowThreads(__tstate);
17029 if (PyErr_Occurred()) SWIG_fail;
17030 }
17031 {
17032 #if wxUSE_UNICODE
17033 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17034 #else
17035 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17036 #endif
17037 }
17038 {
17039 if (temp2)
17040 delete arg2;
17041 }
17042 return resultobj;
17043 fail:
17044 {
17045 if (temp2)
17046 delete arg2;
17047 }
17048 return NULL;
17049 }
17050
17051
17052 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17053 PyObject *resultobj = 0;
17054 wxFontEncoding arg1 ;
17055 int arg2 = (int) wxPLATFORM_CURRENT ;
17056 wxFontEncodingArray result;
17057 int val1 ;
17058 int ecode1 = 0 ;
17059 int val2 ;
17060 int ecode2 = 0 ;
17061 PyObject * obj0 = 0 ;
17062 PyObject * obj1 = 0 ;
17063 char * kwnames[] = {
17064 (char *) "enc",(char *) "platform", NULL
17065 };
17066
17067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17068 ecode1 = SWIG_AsVal_int(obj0, &val1);
17069 if (!SWIG_IsOK(ecode1)) {
17070 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17071 }
17072 arg1 = static_cast< wxFontEncoding >(val1);
17073 if (obj1) {
17074 ecode2 = SWIG_AsVal_int(obj1, &val2);
17075 if (!SWIG_IsOK(ecode2)) {
17076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17077 }
17078 arg2 = static_cast< int >(val2);
17079 }
17080 {
17081 PyThreadState* __tstate = wxPyBeginAllowThreads();
17082 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17083 wxPyEndAllowThreads(__tstate);
17084 if (PyErr_Occurred()) SWIG_fail;
17085 }
17086 {
17087 resultobj = PyList_New(0);
17088 for (size_t i=0; i < (&result)->GetCount(); i++) {
17089 PyObject* number = PyInt_FromLong((&result)->Item(i));
17090 PyList_Append(resultobj, number);
17091 Py_DECREF(number);
17092 }
17093 }
17094 return resultobj;
17095 fail:
17096 return NULL;
17097 }
17098
17099
17100 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17101 PyObject *resultobj = 0;
17102 wxFontEncoding arg1 ;
17103 wxFontEncodingArray result;
17104 int val1 ;
17105 int ecode1 = 0 ;
17106 PyObject * obj0 = 0 ;
17107 char * kwnames[] = {
17108 (char *) "enc", NULL
17109 };
17110
17111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17112 ecode1 = SWIG_AsVal_int(obj0, &val1);
17113 if (!SWIG_IsOK(ecode1)) {
17114 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17115 }
17116 arg1 = static_cast< wxFontEncoding >(val1);
17117 {
17118 PyThreadState* __tstate = wxPyBeginAllowThreads();
17119 result = wxEncodingConverter::GetAllEquivalents(arg1);
17120 wxPyEndAllowThreads(__tstate);
17121 if (PyErr_Occurred()) SWIG_fail;
17122 }
17123 {
17124 resultobj = PyList_New(0);
17125 for (size_t i=0; i < (&result)->GetCount(); i++) {
17126 PyObject* number = PyInt_FromLong((&result)->Item(i));
17127 PyList_Append(resultobj, number);
17128 Py_DECREF(number);
17129 }
17130 }
17131 return resultobj;
17132 fail:
17133 return NULL;
17134 }
17135
17136
17137 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17138 PyObject *resultobj = 0;
17139 wxFontEncoding arg1 ;
17140 wxFontEncoding arg2 ;
17141 bool result;
17142 int val1 ;
17143 int ecode1 = 0 ;
17144 int val2 ;
17145 int ecode2 = 0 ;
17146 PyObject * obj0 = 0 ;
17147 PyObject * obj1 = 0 ;
17148 char * kwnames[] = {
17149 (char *) "encIn",(char *) "encOut", NULL
17150 };
17151
17152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17153 ecode1 = SWIG_AsVal_int(obj0, &val1);
17154 if (!SWIG_IsOK(ecode1)) {
17155 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17156 }
17157 arg1 = static_cast< wxFontEncoding >(val1);
17158 ecode2 = SWIG_AsVal_int(obj1, &val2);
17159 if (!SWIG_IsOK(ecode2)) {
17160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17161 }
17162 arg2 = static_cast< wxFontEncoding >(val2);
17163 {
17164 PyThreadState* __tstate = wxPyBeginAllowThreads();
17165 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17166 wxPyEndAllowThreads(__tstate);
17167 if (PyErr_Occurred()) SWIG_fail;
17168 }
17169 {
17170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17171 }
17172 return resultobj;
17173 fail:
17174 return NULL;
17175 }
17176
17177
17178 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17179 PyObject *obj;
17180 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17181 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17182 return SWIG_Py_Void();
17183 }
17184
17185 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17186 return SWIG_Python_InitShadowInstance(args);
17187 }
17188
17189 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17190 PyObject *resultobj = 0;
17191 wxDC *arg1 = (wxDC *) 0 ;
17192 void *argp1 = 0 ;
17193 int res1 = 0 ;
17194 PyObject *swig_obj[1] ;
17195
17196 if (!args) SWIG_fail;
17197 swig_obj[0] = args;
17198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17199 if (!SWIG_IsOK(res1)) {
17200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17201 }
17202 arg1 = reinterpret_cast< wxDC * >(argp1);
17203 {
17204 PyThreadState* __tstate = wxPyBeginAllowThreads();
17205 delete arg1;
17206
17207 wxPyEndAllowThreads(__tstate);
17208 if (PyErr_Occurred()) SWIG_fail;
17209 }
17210 resultobj = SWIG_Py_Void();
17211 return resultobj;
17212 fail:
17213 return NULL;
17214 }
17215
17216
17217 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17218 PyObject *resultobj = 0;
17219 wxDC *arg1 = (wxDC *) 0 ;
17220 int arg2 ;
17221 int arg3 ;
17222 wxColour *arg4 = 0 ;
17223 int arg5 = (int) wxFLOOD_SURFACE ;
17224 bool result;
17225 void *argp1 = 0 ;
17226 int res1 = 0 ;
17227 int val2 ;
17228 int ecode2 = 0 ;
17229 int val3 ;
17230 int ecode3 = 0 ;
17231 wxColour temp4 ;
17232 int val5 ;
17233 int ecode5 = 0 ;
17234 PyObject * obj0 = 0 ;
17235 PyObject * obj1 = 0 ;
17236 PyObject * obj2 = 0 ;
17237 PyObject * obj3 = 0 ;
17238 PyObject * obj4 = 0 ;
17239 char * kwnames[] = {
17240 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17241 };
17242
17243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17245 if (!SWIG_IsOK(res1)) {
17246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17247 }
17248 arg1 = reinterpret_cast< wxDC * >(argp1);
17249 ecode2 = SWIG_AsVal_int(obj1, &val2);
17250 if (!SWIG_IsOK(ecode2)) {
17251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17252 }
17253 arg2 = static_cast< int >(val2);
17254 ecode3 = SWIG_AsVal_int(obj2, &val3);
17255 if (!SWIG_IsOK(ecode3)) {
17256 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17257 }
17258 arg3 = static_cast< int >(val3);
17259 {
17260 arg4 = &temp4;
17261 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17262 }
17263 if (obj4) {
17264 ecode5 = SWIG_AsVal_int(obj4, &val5);
17265 if (!SWIG_IsOK(ecode5)) {
17266 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17267 }
17268 arg5 = static_cast< int >(val5);
17269 }
17270 {
17271 PyThreadState* __tstate = wxPyBeginAllowThreads();
17272 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17273 wxPyEndAllowThreads(__tstate);
17274 if (PyErr_Occurred()) SWIG_fail;
17275 }
17276 {
17277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17278 }
17279 return resultobj;
17280 fail:
17281 return NULL;
17282 }
17283
17284
17285 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17286 PyObject *resultobj = 0;
17287 wxDC *arg1 = (wxDC *) 0 ;
17288 wxPoint *arg2 = 0 ;
17289 wxColour *arg3 = 0 ;
17290 int arg4 = (int) wxFLOOD_SURFACE ;
17291 bool result;
17292 void *argp1 = 0 ;
17293 int res1 = 0 ;
17294 wxPoint temp2 ;
17295 wxColour temp3 ;
17296 int val4 ;
17297 int ecode4 = 0 ;
17298 PyObject * obj0 = 0 ;
17299 PyObject * obj1 = 0 ;
17300 PyObject * obj2 = 0 ;
17301 PyObject * obj3 = 0 ;
17302 char * kwnames[] = {
17303 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17304 };
17305
17306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17308 if (!SWIG_IsOK(res1)) {
17309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17310 }
17311 arg1 = reinterpret_cast< wxDC * >(argp1);
17312 {
17313 arg2 = &temp2;
17314 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17315 }
17316 {
17317 arg3 = &temp3;
17318 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17319 }
17320 if (obj3) {
17321 ecode4 = SWIG_AsVal_int(obj3, &val4);
17322 if (!SWIG_IsOK(ecode4)) {
17323 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17324 }
17325 arg4 = static_cast< int >(val4);
17326 }
17327 {
17328 PyThreadState* __tstate = wxPyBeginAllowThreads();
17329 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17330 wxPyEndAllowThreads(__tstate);
17331 if (PyErr_Occurred()) SWIG_fail;
17332 }
17333 {
17334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17335 }
17336 return resultobj;
17337 fail:
17338 return NULL;
17339 }
17340
17341
17342 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17343 PyObject *resultobj = 0;
17344 wxDC *arg1 = (wxDC *) 0 ;
17345 wxRect *arg2 = 0 ;
17346 wxColour *arg3 = 0 ;
17347 wxColour *arg4 = 0 ;
17348 wxPoint *arg5 = 0 ;
17349 void *argp1 = 0 ;
17350 int res1 = 0 ;
17351 wxRect temp2 ;
17352 wxColour temp3 ;
17353 wxColour temp4 ;
17354 wxPoint temp5 ;
17355 PyObject * obj0 = 0 ;
17356 PyObject * obj1 = 0 ;
17357 PyObject * obj2 = 0 ;
17358 PyObject * obj3 = 0 ;
17359 PyObject * obj4 = 0 ;
17360 char * kwnames[] = {
17361 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17362 };
17363
17364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17366 if (!SWIG_IsOK(res1)) {
17367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17368 }
17369 arg1 = reinterpret_cast< wxDC * >(argp1);
17370 {
17371 arg2 = &temp2;
17372 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17373 }
17374 {
17375 arg3 = &temp3;
17376 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17377 }
17378 {
17379 arg4 = &temp4;
17380 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17381 }
17382 {
17383 arg5 = &temp5;
17384 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17385 }
17386 {
17387 PyThreadState* __tstate = wxPyBeginAllowThreads();
17388 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17389 wxPyEndAllowThreads(__tstate);
17390 if (PyErr_Occurred()) SWIG_fail;
17391 }
17392 resultobj = SWIG_Py_Void();
17393 return resultobj;
17394 fail:
17395 return NULL;
17396 }
17397
17398
17399 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17400 PyObject *resultobj = 0;
17401 wxDC *arg1 = (wxDC *) 0 ;
17402 wxRect *arg2 = 0 ;
17403 wxColour *arg3 = 0 ;
17404 wxColour *arg4 = 0 ;
17405 wxDirection arg5 = (wxDirection) wxEAST ;
17406 void *argp1 = 0 ;
17407 int res1 = 0 ;
17408 wxRect temp2 ;
17409 wxColour temp3 ;
17410 wxColour temp4 ;
17411 int val5 ;
17412 int ecode5 = 0 ;
17413 PyObject * obj0 = 0 ;
17414 PyObject * obj1 = 0 ;
17415 PyObject * obj2 = 0 ;
17416 PyObject * obj3 = 0 ;
17417 PyObject * obj4 = 0 ;
17418 char * kwnames[] = {
17419 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17420 };
17421
17422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17424 if (!SWIG_IsOK(res1)) {
17425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17426 }
17427 arg1 = reinterpret_cast< wxDC * >(argp1);
17428 {
17429 arg2 = &temp2;
17430 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17431 }
17432 {
17433 arg3 = &temp3;
17434 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17435 }
17436 {
17437 arg4 = &temp4;
17438 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17439 }
17440 if (obj4) {
17441 ecode5 = SWIG_AsVal_int(obj4, &val5);
17442 if (!SWIG_IsOK(ecode5)) {
17443 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17444 }
17445 arg5 = static_cast< wxDirection >(val5);
17446 }
17447 {
17448 PyThreadState* __tstate = wxPyBeginAllowThreads();
17449 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17450 wxPyEndAllowThreads(__tstate);
17451 if (PyErr_Occurred()) SWIG_fail;
17452 }
17453 resultobj = SWIG_Py_Void();
17454 return resultobj;
17455 fail:
17456 return NULL;
17457 }
17458
17459
17460 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17461 PyObject *resultobj = 0;
17462 wxDC *arg1 = (wxDC *) 0 ;
17463 int arg2 ;
17464 int arg3 ;
17465 wxColour result;
17466 void *argp1 = 0 ;
17467 int res1 = 0 ;
17468 int val2 ;
17469 int ecode2 = 0 ;
17470 int val3 ;
17471 int ecode3 = 0 ;
17472 PyObject * obj0 = 0 ;
17473 PyObject * obj1 = 0 ;
17474 PyObject * obj2 = 0 ;
17475 char * kwnames[] = {
17476 (char *) "self",(char *) "x",(char *) "y", NULL
17477 };
17478
17479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17481 if (!SWIG_IsOK(res1)) {
17482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17483 }
17484 arg1 = reinterpret_cast< wxDC * >(argp1);
17485 ecode2 = SWIG_AsVal_int(obj1, &val2);
17486 if (!SWIG_IsOK(ecode2)) {
17487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17488 }
17489 arg2 = static_cast< int >(val2);
17490 ecode3 = SWIG_AsVal_int(obj2, &val3);
17491 if (!SWIG_IsOK(ecode3)) {
17492 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17493 }
17494 arg3 = static_cast< int >(val3);
17495 {
17496 PyThreadState* __tstate = wxPyBeginAllowThreads();
17497 result = wxDC_GetPixel(arg1,arg2,arg3);
17498 wxPyEndAllowThreads(__tstate);
17499 if (PyErr_Occurred()) SWIG_fail;
17500 }
17501 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17502 return resultobj;
17503 fail:
17504 return NULL;
17505 }
17506
17507
17508 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17509 PyObject *resultobj = 0;
17510 wxDC *arg1 = (wxDC *) 0 ;
17511 wxPoint *arg2 = 0 ;
17512 wxColour result;
17513 void *argp1 = 0 ;
17514 int res1 = 0 ;
17515 wxPoint temp2 ;
17516 PyObject * obj0 = 0 ;
17517 PyObject * obj1 = 0 ;
17518 char * kwnames[] = {
17519 (char *) "self",(char *) "pt", NULL
17520 };
17521
17522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17524 if (!SWIG_IsOK(res1)) {
17525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17526 }
17527 arg1 = reinterpret_cast< wxDC * >(argp1);
17528 {
17529 arg2 = &temp2;
17530 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17531 }
17532 {
17533 PyThreadState* __tstate = wxPyBeginAllowThreads();
17534 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17535 wxPyEndAllowThreads(__tstate);
17536 if (PyErr_Occurred()) SWIG_fail;
17537 }
17538 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17539 return resultobj;
17540 fail:
17541 return NULL;
17542 }
17543
17544
17545 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17546 PyObject *resultobj = 0;
17547 wxDC *arg1 = (wxDC *) 0 ;
17548 int arg2 ;
17549 int arg3 ;
17550 int arg4 ;
17551 int arg5 ;
17552 void *argp1 = 0 ;
17553 int res1 = 0 ;
17554 int val2 ;
17555 int ecode2 = 0 ;
17556 int val3 ;
17557 int ecode3 = 0 ;
17558 int val4 ;
17559 int ecode4 = 0 ;
17560 int val5 ;
17561 int ecode5 = 0 ;
17562 PyObject * obj0 = 0 ;
17563 PyObject * obj1 = 0 ;
17564 PyObject * obj2 = 0 ;
17565 PyObject * obj3 = 0 ;
17566 PyObject * obj4 = 0 ;
17567 char * kwnames[] = {
17568 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17569 };
17570
17571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17573 if (!SWIG_IsOK(res1)) {
17574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17575 }
17576 arg1 = reinterpret_cast< wxDC * >(argp1);
17577 ecode2 = SWIG_AsVal_int(obj1, &val2);
17578 if (!SWIG_IsOK(ecode2)) {
17579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17580 }
17581 arg2 = static_cast< int >(val2);
17582 ecode3 = SWIG_AsVal_int(obj2, &val3);
17583 if (!SWIG_IsOK(ecode3)) {
17584 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17585 }
17586 arg3 = static_cast< int >(val3);
17587 ecode4 = SWIG_AsVal_int(obj3, &val4);
17588 if (!SWIG_IsOK(ecode4)) {
17589 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17590 }
17591 arg4 = static_cast< int >(val4);
17592 ecode5 = SWIG_AsVal_int(obj4, &val5);
17593 if (!SWIG_IsOK(ecode5)) {
17594 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17595 }
17596 arg5 = static_cast< int >(val5);
17597 {
17598 PyThreadState* __tstate = wxPyBeginAllowThreads();
17599 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17600 wxPyEndAllowThreads(__tstate);
17601 if (PyErr_Occurred()) SWIG_fail;
17602 }
17603 resultobj = SWIG_Py_Void();
17604 return resultobj;
17605 fail:
17606 return NULL;
17607 }
17608
17609
17610 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17611 PyObject *resultobj = 0;
17612 wxDC *arg1 = (wxDC *) 0 ;
17613 wxPoint *arg2 = 0 ;
17614 wxPoint *arg3 = 0 ;
17615 void *argp1 = 0 ;
17616 int res1 = 0 ;
17617 wxPoint temp2 ;
17618 wxPoint temp3 ;
17619 PyObject * obj0 = 0 ;
17620 PyObject * obj1 = 0 ;
17621 PyObject * obj2 = 0 ;
17622 char * kwnames[] = {
17623 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17624 };
17625
17626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17628 if (!SWIG_IsOK(res1)) {
17629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17630 }
17631 arg1 = reinterpret_cast< wxDC * >(argp1);
17632 {
17633 arg2 = &temp2;
17634 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17635 }
17636 {
17637 arg3 = &temp3;
17638 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17639 }
17640 {
17641 PyThreadState* __tstate = wxPyBeginAllowThreads();
17642 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17643 wxPyEndAllowThreads(__tstate);
17644 if (PyErr_Occurred()) SWIG_fail;
17645 }
17646 resultobj = SWIG_Py_Void();
17647 return resultobj;
17648 fail:
17649 return NULL;
17650 }
17651
17652
17653 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17654 PyObject *resultobj = 0;
17655 wxDC *arg1 = (wxDC *) 0 ;
17656 int arg2 ;
17657 int arg3 ;
17658 void *argp1 = 0 ;
17659 int res1 = 0 ;
17660 int val2 ;
17661 int ecode2 = 0 ;
17662 int val3 ;
17663 int ecode3 = 0 ;
17664 PyObject * obj0 = 0 ;
17665 PyObject * obj1 = 0 ;
17666 PyObject * obj2 = 0 ;
17667 char * kwnames[] = {
17668 (char *) "self",(char *) "x",(char *) "y", NULL
17669 };
17670
17671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17673 if (!SWIG_IsOK(res1)) {
17674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17675 }
17676 arg1 = reinterpret_cast< wxDC * >(argp1);
17677 ecode2 = SWIG_AsVal_int(obj1, &val2);
17678 if (!SWIG_IsOK(ecode2)) {
17679 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
17680 }
17681 arg2 = static_cast< int >(val2);
17682 ecode3 = SWIG_AsVal_int(obj2, &val3);
17683 if (!SWIG_IsOK(ecode3)) {
17684 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
17685 }
17686 arg3 = static_cast< int >(val3);
17687 {
17688 PyThreadState* __tstate = wxPyBeginAllowThreads();
17689 (arg1)->CrossHair(arg2,arg3);
17690 wxPyEndAllowThreads(__tstate);
17691 if (PyErr_Occurred()) SWIG_fail;
17692 }
17693 resultobj = SWIG_Py_Void();
17694 return resultobj;
17695 fail:
17696 return NULL;
17697 }
17698
17699
17700 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17701 PyObject *resultobj = 0;
17702 wxDC *arg1 = (wxDC *) 0 ;
17703 wxPoint *arg2 = 0 ;
17704 void *argp1 = 0 ;
17705 int res1 = 0 ;
17706 wxPoint temp2 ;
17707 PyObject * obj0 = 0 ;
17708 PyObject * obj1 = 0 ;
17709 char * kwnames[] = {
17710 (char *) "self",(char *) "pt", NULL
17711 };
17712
17713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17715 if (!SWIG_IsOK(res1)) {
17716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17717 }
17718 arg1 = reinterpret_cast< wxDC * >(argp1);
17719 {
17720 arg2 = &temp2;
17721 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17722 }
17723 {
17724 PyThreadState* __tstate = wxPyBeginAllowThreads();
17725 (arg1)->CrossHair((wxPoint const &)*arg2);
17726 wxPyEndAllowThreads(__tstate);
17727 if (PyErr_Occurred()) SWIG_fail;
17728 }
17729 resultobj = SWIG_Py_Void();
17730 return resultobj;
17731 fail:
17732 return NULL;
17733 }
17734
17735
17736 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17737 PyObject *resultobj = 0;
17738 wxDC *arg1 = (wxDC *) 0 ;
17739 int arg2 ;
17740 int arg3 ;
17741 int arg4 ;
17742 int arg5 ;
17743 int arg6 ;
17744 int arg7 ;
17745 void *argp1 = 0 ;
17746 int res1 = 0 ;
17747 int val2 ;
17748 int ecode2 = 0 ;
17749 int val3 ;
17750 int ecode3 = 0 ;
17751 int val4 ;
17752 int ecode4 = 0 ;
17753 int val5 ;
17754 int ecode5 = 0 ;
17755 int val6 ;
17756 int ecode6 = 0 ;
17757 int val7 ;
17758 int ecode7 = 0 ;
17759 PyObject * obj0 = 0 ;
17760 PyObject * obj1 = 0 ;
17761 PyObject * obj2 = 0 ;
17762 PyObject * obj3 = 0 ;
17763 PyObject * obj4 = 0 ;
17764 PyObject * obj5 = 0 ;
17765 PyObject * obj6 = 0 ;
17766 char * kwnames[] = {
17767 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
17768 };
17769
17770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17772 if (!SWIG_IsOK(res1)) {
17773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
17774 }
17775 arg1 = reinterpret_cast< wxDC * >(argp1);
17776 ecode2 = SWIG_AsVal_int(obj1, &val2);
17777 if (!SWIG_IsOK(ecode2)) {
17778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
17779 }
17780 arg2 = static_cast< int >(val2);
17781 ecode3 = SWIG_AsVal_int(obj2, &val3);
17782 if (!SWIG_IsOK(ecode3)) {
17783 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
17784 }
17785 arg3 = static_cast< int >(val3);
17786 ecode4 = SWIG_AsVal_int(obj3, &val4);
17787 if (!SWIG_IsOK(ecode4)) {
17788 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
17789 }
17790 arg4 = static_cast< int >(val4);
17791 ecode5 = SWIG_AsVal_int(obj4, &val5);
17792 if (!SWIG_IsOK(ecode5)) {
17793 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
17794 }
17795 arg5 = static_cast< int >(val5);
17796 ecode6 = SWIG_AsVal_int(obj5, &val6);
17797 if (!SWIG_IsOK(ecode6)) {
17798 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
17799 }
17800 arg6 = static_cast< int >(val6);
17801 ecode7 = SWIG_AsVal_int(obj6, &val7);
17802 if (!SWIG_IsOK(ecode7)) {
17803 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
17804 }
17805 arg7 = static_cast< int >(val7);
17806 {
17807 PyThreadState* __tstate = wxPyBeginAllowThreads();
17808 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
17809 wxPyEndAllowThreads(__tstate);
17810 if (PyErr_Occurred()) SWIG_fail;
17811 }
17812 resultobj = SWIG_Py_Void();
17813 return resultobj;
17814 fail:
17815 return NULL;
17816 }
17817
17818
17819 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17820 PyObject *resultobj = 0;
17821 wxDC *arg1 = (wxDC *) 0 ;
17822 wxPoint *arg2 = 0 ;
17823 wxPoint *arg3 = 0 ;
17824 wxPoint *arg4 = 0 ;
17825 void *argp1 = 0 ;
17826 int res1 = 0 ;
17827 wxPoint temp2 ;
17828 wxPoint temp3 ;
17829 wxPoint temp4 ;
17830 PyObject * obj0 = 0 ;
17831 PyObject * obj1 = 0 ;
17832 PyObject * obj2 = 0 ;
17833 PyObject * obj3 = 0 ;
17834 char * kwnames[] = {
17835 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
17836 };
17837
17838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17840 if (!SWIG_IsOK(res1)) {
17841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17842 }
17843 arg1 = reinterpret_cast< wxDC * >(argp1);
17844 {
17845 arg2 = &temp2;
17846 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17847 }
17848 {
17849 arg3 = &temp3;
17850 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17851 }
17852 {
17853 arg4 = &temp4;
17854 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17855 }
17856 {
17857 PyThreadState* __tstate = wxPyBeginAllowThreads();
17858 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
17859 wxPyEndAllowThreads(__tstate);
17860 if (PyErr_Occurred()) SWIG_fail;
17861 }
17862 resultobj = SWIG_Py_Void();
17863 return resultobj;
17864 fail:
17865 return NULL;
17866 }
17867
17868
17869 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17870 PyObject *resultobj = 0;
17871 wxDC *arg1 = (wxDC *) 0 ;
17872 int arg2 ;
17873 int arg3 ;
17874 int arg4 ;
17875 int arg5 ;
17876 void *argp1 = 0 ;
17877 int res1 = 0 ;
17878 int val2 ;
17879 int ecode2 = 0 ;
17880 int val3 ;
17881 int ecode3 = 0 ;
17882 int val4 ;
17883 int ecode4 = 0 ;
17884 int val5 ;
17885 int ecode5 = 0 ;
17886 PyObject * obj0 = 0 ;
17887 PyObject * obj1 = 0 ;
17888 PyObject * obj2 = 0 ;
17889 PyObject * obj3 = 0 ;
17890 PyObject * obj4 = 0 ;
17891 char * kwnames[] = {
17892 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17893 };
17894
17895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17897 if (!SWIG_IsOK(res1)) {
17898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
17899 }
17900 arg1 = reinterpret_cast< wxDC * >(argp1);
17901 ecode2 = SWIG_AsVal_int(obj1, &val2);
17902 if (!SWIG_IsOK(ecode2)) {
17903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
17904 }
17905 arg2 = static_cast< int >(val2);
17906 ecode3 = SWIG_AsVal_int(obj2, &val3);
17907 if (!SWIG_IsOK(ecode3)) {
17908 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
17909 }
17910 arg3 = static_cast< int >(val3);
17911 ecode4 = SWIG_AsVal_int(obj3, &val4);
17912 if (!SWIG_IsOK(ecode4)) {
17913 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
17914 }
17915 arg4 = static_cast< int >(val4);
17916 ecode5 = SWIG_AsVal_int(obj4, &val5);
17917 if (!SWIG_IsOK(ecode5)) {
17918 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
17919 }
17920 arg5 = static_cast< int >(val5);
17921 {
17922 PyThreadState* __tstate = wxPyBeginAllowThreads();
17923 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
17924 wxPyEndAllowThreads(__tstate);
17925 if (PyErr_Occurred()) SWIG_fail;
17926 }
17927 resultobj = SWIG_Py_Void();
17928 return resultobj;
17929 fail:
17930 return NULL;
17931 }
17932
17933
17934 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17935 PyObject *resultobj = 0;
17936 wxDC *arg1 = (wxDC *) 0 ;
17937 wxRect *arg2 = 0 ;
17938 void *argp1 = 0 ;
17939 int res1 = 0 ;
17940 wxRect temp2 ;
17941 PyObject * obj0 = 0 ;
17942 PyObject * obj1 = 0 ;
17943 char * kwnames[] = {
17944 (char *) "self",(char *) "rect", NULL
17945 };
17946
17947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
17948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17949 if (!SWIG_IsOK(res1)) {
17950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
17951 }
17952 arg1 = reinterpret_cast< wxDC * >(argp1);
17953 {
17954 arg2 = &temp2;
17955 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17956 }
17957 {
17958 PyThreadState* __tstate = wxPyBeginAllowThreads();
17959 (arg1)->DrawCheckMark((wxRect const &)*arg2);
17960 wxPyEndAllowThreads(__tstate);
17961 if (PyErr_Occurred()) SWIG_fail;
17962 }
17963 resultobj = SWIG_Py_Void();
17964 return resultobj;
17965 fail:
17966 return NULL;
17967 }
17968
17969
17970 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17971 PyObject *resultobj = 0;
17972 wxDC *arg1 = (wxDC *) 0 ;
17973 int arg2 ;
17974 int arg3 ;
17975 int arg4 ;
17976 int arg5 ;
17977 double arg6 ;
17978 double arg7 ;
17979 void *argp1 = 0 ;
17980 int res1 = 0 ;
17981 int val2 ;
17982 int ecode2 = 0 ;
17983 int val3 ;
17984 int ecode3 = 0 ;
17985 int val4 ;
17986 int ecode4 = 0 ;
17987 int val5 ;
17988 int ecode5 = 0 ;
17989 double val6 ;
17990 int ecode6 = 0 ;
17991 double val7 ;
17992 int ecode7 = 0 ;
17993 PyObject * obj0 = 0 ;
17994 PyObject * obj1 = 0 ;
17995 PyObject * obj2 = 0 ;
17996 PyObject * obj3 = 0 ;
17997 PyObject * obj4 = 0 ;
17998 PyObject * obj5 = 0 ;
17999 PyObject * obj6 = 0 ;
18000 char * kwnames[] = {
18001 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18002 };
18003
18004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18006 if (!SWIG_IsOK(res1)) {
18007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18008 }
18009 arg1 = reinterpret_cast< wxDC * >(argp1);
18010 ecode2 = SWIG_AsVal_int(obj1, &val2);
18011 if (!SWIG_IsOK(ecode2)) {
18012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18013 }
18014 arg2 = static_cast< int >(val2);
18015 ecode3 = SWIG_AsVal_int(obj2, &val3);
18016 if (!SWIG_IsOK(ecode3)) {
18017 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18018 }
18019 arg3 = static_cast< int >(val3);
18020 ecode4 = SWIG_AsVal_int(obj3, &val4);
18021 if (!SWIG_IsOK(ecode4)) {
18022 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18023 }
18024 arg4 = static_cast< int >(val4);
18025 ecode5 = SWIG_AsVal_int(obj4, &val5);
18026 if (!SWIG_IsOK(ecode5)) {
18027 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18028 }
18029 arg5 = static_cast< int >(val5);
18030 ecode6 = SWIG_AsVal_double(obj5, &val6);
18031 if (!SWIG_IsOK(ecode6)) {
18032 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18033 }
18034 arg6 = static_cast< double >(val6);
18035 ecode7 = SWIG_AsVal_double(obj6, &val7);
18036 if (!SWIG_IsOK(ecode7)) {
18037 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18038 }
18039 arg7 = static_cast< double >(val7);
18040 {
18041 PyThreadState* __tstate = wxPyBeginAllowThreads();
18042 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18043 wxPyEndAllowThreads(__tstate);
18044 if (PyErr_Occurred()) SWIG_fail;
18045 }
18046 resultobj = SWIG_Py_Void();
18047 return resultobj;
18048 fail:
18049 return NULL;
18050 }
18051
18052
18053 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18054 PyObject *resultobj = 0;
18055 wxDC *arg1 = (wxDC *) 0 ;
18056 wxPoint *arg2 = 0 ;
18057 wxSize *arg3 = 0 ;
18058 double arg4 ;
18059 double arg5 ;
18060 void *argp1 = 0 ;
18061 int res1 = 0 ;
18062 wxPoint temp2 ;
18063 wxSize temp3 ;
18064 double val4 ;
18065 int ecode4 = 0 ;
18066 double val5 ;
18067 int ecode5 = 0 ;
18068 PyObject * obj0 = 0 ;
18069 PyObject * obj1 = 0 ;
18070 PyObject * obj2 = 0 ;
18071 PyObject * obj3 = 0 ;
18072 PyObject * obj4 = 0 ;
18073 char * kwnames[] = {
18074 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18075 };
18076
18077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18079 if (!SWIG_IsOK(res1)) {
18080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18081 }
18082 arg1 = reinterpret_cast< wxDC * >(argp1);
18083 {
18084 arg2 = &temp2;
18085 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18086 }
18087 {
18088 arg3 = &temp3;
18089 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18090 }
18091 ecode4 = SWIG_AsVal_double(obj3, &val4);
18092 if (!SWIG_IsOK(ecode4)) {
18093 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18094 }
18095 arg4 = static_cast< double >(val4);
18096 ecode5 = SWIG_AsVal_double(obj4, &val5);
18097 if (!SWIG_IsOK(ecode5)) {
18098 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18099 }
18100 arg5 = static_cast< double >(val5);
18101 {
18102 PyThreadState* __tstate = wxPyBeginAllowThreads();
18103 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18104 wxPyEndAllowThreads(__tstate);
18105 if (PyErr_Occurred()) SWIG_fail;
18106 }
18107 resultobj = SWIG_Py_Void();
18108 return resultobj;
18109 fail:
18110 return NULL;
18111 }
18112
18113
18114 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18115 PyObject *resultobj = 0;
18116 wxDC *arg1 = (wxDC *) 0 ;
18117 int arg2 ;
18118 int arg3 ;
18119 void *argp1 = 0 ;
18120 int res1 = 0 ;
18121 int val2 ;
18122 int ecode2 = 0 ;
18123 int val3 ;
18124 int ecode3 = 0 ;
18125 PyObject * obj0 = 0 ;
18126 PyObject * obj1 = 0 ;
18127 PyObject * obj2 = 0 ;
18128 char * kwnames[] = {
18129 (char *) "self",(char *) "x",(char *) "y", NULL
18130 };
18131
18132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18134 if (!SWIG_IsOK(res1)) {
18135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18136 }
18137 arg1 = reinterpret_cast< wxDC * >(argp1);
18138 ecode2 = SWIG_AsVal_int(obj1, &val2);
18139 if (!SWIG_IsOK(ecode2)) {
18140 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18141 }
18142 arg2 = static_cast< int >(val2);
18143 ecode3 = SWIG_AsVal_int(obj2, &val3);
18144 if (!SWIG_IsOK(ecode3)) {
18145 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18146 }
18147 arg3 = static_cast< int >(val3);
18148 {
18149 PyThreadState* __tstate = wxPyBeginAllowThreads();
18150 (arg1)->DrawPoint(arg2,arg3);
18151 wxPyEndAllowThreads(__tstate);
18152 if (PyErr_Occurred()) SWIG_fail;
18153 }
18154 resultobj = SWIG_Py_Void();
18155 return resultobj;
18156 fail:
18157 return NULL;
18158 }
18159
18160
18161 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18162 PyObject *resultobj = 0;
18163 wxDC *arg1 = (wxDC *) 0 ;
18164 wxPoint *arg2 = 0 ;
18165 void *argp1 = 0 ;
18166 int res1 = 0 ;
18167 wxPoint temp2 ;
18168 PyObject * obj0 = 0 ;
18169 PyObject * obj1 = 0 ;
18170 char * kwnames[] = {
18171 (char *) "self",(char *) "pt", NULL
18172 };
18173
18174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18176 if (!SWIG_IsOK(res1)) {
18177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18178 }
18179 arg1 = reinterpret_cast< wxDC * >(argp1);
18180 {
18181 arg2 = &temp2;
18182 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18183 }
18184 {
18185 PyThreadState* __tstate = wxPyBeginAllowThreads();
18186 (arg1)->DrawPoint((wxPoint const &)*arg2);
18187 wxPyEndAllowThreads(__tstate);
18188 if (PyErr_Occurred()) SWIG_fail;
18189 }
18190 resultobj = SWIG_Py_Void();
18191 return resultobj;
18192 fail:
18193 return NULL;
18194 }
18195
18196
18197 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18198 PyObject *resultobj = 0;
18199 wxDC *arg1 = (wxDC *) 0 ;
18200 int arg2 ;
18201 int arg3 ;
18202 int arg4 ;
18203 int arg5 ;
18204 void *argp1 = 0 ;
18205 int res1 = 0 ;
18206 int val2 ;
18207 int ecode2 = 0 ;
18208 int val3 ;
18209 int ecode3 = 0 ;
18210 int val4 ;
18211 int ecode4 = 0 ;
18212 int val5 ;
18213 int ecode5 = 0 ;
18214 PyObject * obj0 = 0 ;
18215 PyObject * obj1 = 0 ;
18216 PyObject * obj2 = 0 ;
18217 PyObject * obj3 = 0 ;
18218 PyObject * obj4 = 0 ;
18219 char * kwnames[] = {
18220 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18221 };
18222
18223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18225 if (!SWIG_IsOK(res1)) {
18226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18227 }
18228 arg1 = reinterpret_cast< wxDC * >(argp1);
18229 ecode2 = SWIG_AsVal_int(obj1, &val2);
18230 if (!SWIG_IsOK(ecode2)) {
18231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18232 }
18233 arg2 = static_cast< int >(val2);
18234 ecode3 = SWIG_AsVal_int(obj2, &val3);
18235 if (!SWIG_IsOK(ecode3)) {
18236 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18237 }
18238 arg3 = static_cast< int >(val3);
18239 ecode4 = SWIG_AsVal_int(obj3, &val4);
18240 if (!SWIG_IsOK(ecode4)) {
18241 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18242 }
18243 arg4 = static_cast< int >(val4);
18244 ecode5 = SWIG_AsVal_int(obj4, &val5);
18245 if (!SWIG_IsOK(ecode5)) {
18246 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18247 }
18248 arg5 = static_cast< int >(val5);
18249 {
18250 PyThreadState* __tstate = wxPyBeginAllowThreads();
18251 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18252 wxPyEndAllowThreads(__tstate);
18253 if (PyErr_Occurred()) SWIG_fail;
18254 }
18255 resultobj = SWIG_Py_Void();
18256 return resultobj;
18257 fail:
18258 return NULL;
18259 }
18260
18261
18262 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18263 PyObject *resultobj = 0;
18264 wxDC *arg1 = (wxDC *) 0 ;
18265 wxRect *arg2 = 0 ;
18266 void *argp1 = 0 ;
18267 int res1 = 0 ;
18268 wxRect temp2 ;
18269 PyObject * obj0 = 0 ;
18270 PyObject * obj1 = 0 ;
18271 char * kwnames[] = {
18272 (char *) "self",(char *) "rect", NULL
18273 };
18274
18275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18277 if (!SWIG_IsOK(res1)) {
18278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18279 }
18280 arg1 = reinterpret_cast< wxDC * >(argp1);
18281 {
18282 arg2 = &temp2;
18283 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18284 }
18285 {
18286 PyThreadState* __tstate = wxPyBeginAllowThreads();
18287 (arg1)->DrawRectangle((wxRect const &)*arg2);
18288 wxPyEndAllowThreads(__tstate);
18289 if (PyErr_Occurred()) SWIG_fail;
18290 }
18291 resultobj = SWIG_Py_Void();
18292 return resultobj;
18293 fail:
18294 return NULL;
18295 }
18296
18297
18298 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18299 PyObject *resultobj = 0;
18300 wxDC *arg1 = (wxDC *) 0 ;
18301 wxPoint *arg2 = 0 ;
18302 wxSize *arg3 = 0 ;
18303 void *argp1 = 0 ;
18304 int res1 = 0 ;
18305 wxPoint temp2 ;
18306 wxSize temp3 ;
18307 PyObject * obj0 = 0 ;
18308 PyObject * obj1 = 0 ;
18309 PyObject * obj2 = 0 ;
18310 char * kwnames[] = {
18311 (char *) "self",(char *) "pt",(char *) "sz", NULL
18312 };
18313
18314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18316 if (!SWIG_IsOK(res1)) {
18317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18318 }
18319 arg1 = reinterpret_cast< wxDC * >(argp1);
18320 {
18321 arg2 = &temp2;
18322 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18323 }
18324 {
18325 arg3 = &temp3;
18326 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18327 }
18328 {
18329 PyThreadState* __tstate = wxPyBeginAllowThreads();
18330 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18331 wxPyEndAllowThreads(__tstate);
18332 if (PyErr_Occurred()) SWIG_fail;
18333 }
18334 resultobj = SWIG_Py_Void();
18335 return resultobj;
18336 fail:
18337 return NULL;
18338 }
18339
18340
18341 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18342 PyObject *resultobj = 0;
18343 wxDC *arg1 = (wxDC *) 0 ;
18344 int arg2 ;
18345 int arg3 ;
18346 int arg4 ;
18347 int arg5 ;
18348 double arg6 ;
18349 void *argp1 = 0 ;
18350 int res1 = 0 ;
18351 int val2 ;
18352 int ecode2 = 0 ;
18353 int val3 ;
18354 int ecode3 = 0 ;
18355 int val4 ;
18356 int ecode4 = 0 ;
18357 int val5 ;
18358 int ecode5 = 0 ;
18359 double val6 ;
18360 int ecode6 = 0 ;
18361 PyObject * obj0 = 0 ;
18362 PyObject * obj1 = 0 ;
18363 PyObject * obj2 = 0 ;
18364 PyObject * obj3 = 0 ;
18365 PyObject * obj4 = 0 ;
18366 PyObject * obj5 = 0 ;
18367 char * kwnames[] = {
18368 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18369 };
18370
18371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18373 if (!SWIG_IsOK(res1)) {
18374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18375 }
18376 arg1 = reinterpret_cast< wxDC * >(argp1);
18377 ecode2 = SWIG_AsVal_int(obj1, &val2);
18378 if (!SWIG_IsOK(ecode2)) {
18379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18380 }
18381 arg2 = static_cast< int >(val2);
18382 ecode3 = SWIG_AsVal_int(obj2, &val3);
18383 if (!SWIG_IsOK(ecode3)) {
18384 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18385 }
18386 arg3 = static_cast< int >(val3);
18387 ecode4 = SWIG_AsVal_int(obj3, &val4);
18388 if (!SWIG_IsOK(ecode4)) {
18389 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18390 }
18391 arg4 = static_cast< int >(val4);
18392 ecode5 = SWIG_AsVal_int(obj4, &val5);
18393 if (!SWIG_IsOK(ecode5)) {
18394 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18395 }
18396 arg5 = static_cast< int >(val5);
18397 ecode6 = SWIG_AsVal_double(obj5, &val6);
18398 if (!SWIG_IsOK(ecode6)) {
18399 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18400 }
18401 arg6 = static_cast< double >(val6);
18402 {
18403 PyThreadState* __tstate = wxPyBeginAllowThreads();
18404 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18405 wxPyEndAllowThreads(__tstate);
18406 if (PyErr_Occurred()) SWIG_fail;
18407 }
18408 resultobj = SWIG_Py_Void();
18409 return resultobj;
18410 fail:
18411 return NULL;
18412 }
18413
18414
18415 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18416 PyObject *resultobj = 0;
18417 wxDC *arg1 = (wxDC *) 0 ;
18418 wxRect *arg2 = 0 ;
18419 double arg3 ;
18420 void *argp1 = 0 ;
18421 int res1 = 0 ;
18422 wxRect temp2 ;
18423 double val3 ;
18424 int ecode3 = 0 ;
18425 PyObject * obj0 = 0 ;
18426 PyObject * obj1 = 0 ;
18427 PyObject * obj2 = 0 ;
18428 char * kwnames[] = {
18429 (char *) "self",(char *) "r",(char *) "radius", NULL
18430 };
18431
18432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18434 if (!SWIG_IsOK(res1)) {
18435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18436 }
18437 arg1 = reinterpret_cast< wxDC * >(argp1);
18438 {
18439 arg2 = &temp2;
18440 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18441 }
18442 ecode3 = SWIG_AsVal_double(obj2, &val3);
18443 if (!SWIG_IsOK(ecode3)) {
18444 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18445 }
18446 arg3 = static_cast< double >(val3);
18447 {
18448 PyThreadState* __tstate = wxPyBeginAllowThreads();
18449 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18450 wxPyEndAllowThreads(__tstate);
18451 if (PyErr_Occurred()) SWIG_fail;
18452 }
18453 resultobj = SWIG_Py_Void();
18454 return resultobj;
18455 fail:
18456 return NULL;
18457 }
18458
18459
18460 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18461 PyObject *resultobj = 0;
18462 wxDC *arg1 = (wxDC *) 0 ;
18463 wxPoint *arg2 = 0 ;
18464 wxSize *arg3 = 0 ;
18465 double arg4 ;
18466 void *argp1 = 0 ;
18467 int res1 = 0 ;
18468 wxPoint temp2 ;
18469 wxSize temp3 ;
18470 double val4 ;
18471 int ecode4 = 0 ;
18472 PyObject * obj0 = 0 ;
18473 PyObject * obj1 = 0 ;
18474 PyObject * obj2 = 0 ;
18475 PyObject * obj3 = 0 ;
18476 char * kwnames[] = {
18477 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18478 };
18479
18480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18482 if (!SWIG_IsOK(res1)) {
18483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18484 }
18485 arg1 = reinterpret_cast< wxDC * >(argp1);
18486 {
18487 arg2 = &temp2;
18488 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18489 }
18490 {
18491 arg3 = &temp3;
18492 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18493 }
18494 ecode4 = SWIG_AsVal_double(obj3, &val4);
18495 if (!SWIG_IsOK(ecode4)) {
18496 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18497 }
18498 arg4 = static_cast< double >(val4);
18499 {
18500 PyThreadState* __tstate = wxPyBeginAllowThreads();
18501 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18502 wxPyEndAllowThreads(__tstate);
18503 if (PyErr_Occurred()) SWIG_fail;
18504 }
18505 resultobj = SWIG_Py_Void();
18506 return resultobj;
18507 fail:
18508 return NULL;
18509 }
18510
18511
18512 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18513 PyObject *resultobj = 0;
18514 wxDC *arg1 = (wxDC *) 0 ;
18515 int arg2 ;
18516 int arg3 ;
18517 int arg4 ;
18518 void *argp1 = 0 ;
18519 int res1 = 0 ;
18520 int val2 ;
18521 int ecode2 = 0 ;
18522 int val3 ;
18523 int ecode3 = 0 ;
18524 int val4 ;
18525 int ecode4 = 0 ;
18526 PyObject * obj0 = 0 ;
18527 PyObject * obj1 = 0 ;
18528 PyObject * obj2 = 0 ;
18529 PyObject * obj3 = 0 ;
18530 char * kwnames[] = {
18531 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18532 };
18533
18534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18536 if (!SWIG_IsOK(res1)) {
18537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18538 }
18539 arg1 = reinterpret_cast< wxDC * >(argp1);
18540 ecode2 = SWIG_AsVal_int(obj1, &val2);
18541 if (!SWIG_IsOK(ecode2)) {
18542 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18543 }
18544 arg2 = static_cast< int >(val2);
18545 ecode3 = SWIG_AsVal_int(obj2, &val3);
18546 if (!SWIG_IsOK(ecode3)) {
18547 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18548 }
18549 arg3 = static_cast< int >(val3);
18550 ecode4 = SWIG_AsVal_int(obj3, &val4);
18551 if (!SWIG_IsOK(ecode4)) {
18552 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18553 }
18554 arg4 = static_cast< int >(val4);
18555 {
18556 PyThreadState* __tstate = wxPyBeginAllowThreads();
18557 (arg1)->DrawCircle(arg2,arg3,arg4);
18558 wxPyEndAllowThreads(__tstate);
18559 if (PyErr_Occurred()) SWIG_fail;
18560 }
18561 resultobj = SWIG_Py_Void();
18562 return resultobj;
18563 fail:
18564 return NULL;
18565 }
18566
18567
18568 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18569 PyObject *resultobj = 0;
18570 wxDC *arg1 = (wxDC *) 0 ;
18571 wxPoint *arg2 = 0 ;
18572 int arg3 ;
18573 void *argp1 = 0 ;
18574 int res1 = 0 ;
18575 wxPoint temp2 ;
18576 int val3 ;
18577 int ecode3 = 0 ;
18578 PyObject * obj0 = 0 ;
18579 PyObject * obj1 = 0 ;
18580 PyObject * obj2 = 0 ;
18581 char * kwnames[] = {
18582 (char *) "self",(char *) "pt",(char *) "radius", NULL
18583 };
18584
18585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18587 if (!SWIG_IsOK(res1)) {
18588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18589 }
18590 arg1 = reinterpret_cast< wxDC * >(argp1);
18591 {
18592 arg2 = &temp2;
18593 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18594 }
18595 ecode3 = SWIG_AsVal_int(obj2, &val3);
18596 if (!SWIG_IsOK(ecode3)) {
18597 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18598 }
18599 arg3 = static_cast< int >(val3);
18600 {
18601 PyThreadState* __tstate = wxPyBeginAllowThreads();
18602 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18603 wxPyEndAllowThreads(__tstate);
18604 if (PyErr_Occurred()) SWIG_fail;
18605 }
18606 resultobj = SWIG_Py_Void();
18607 return resultobj;
18608 fail:
18609 return NULL;
18610 }
18611
18612
18613 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18614 PyObject *resultobj = 0;
18615 wxDC *arg1 = (wxDC *) 0 ;
18616 int arg2 ;
18617 int arg3 ;
18618 int arg4 ;
18619 int arg5 ;
18620 void *argp1 = 0 ;
18621 int res1 = 0 ;
18622 int val2 ;
18623 int ecode2 = 0 ;
18624 int val3 ;
18625 int ecode3 = 0 ;
18626 int val4 ;
18627 int ecode4 = 0 ;
18628 int val5 ;
18629 int ecode5 = 0 ;
18630 PyObject * obj0 = 0 ;
18631 PyObject * obj1 = 0 ;
18632 PyObject * obj2 = 0 ;
18633 PyObject * obj3 = 0 ;
18634 PyObject * obj4 = 0 ;
18635 char * kwnames[] = {
18636 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18637 };
18638
18639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18641 if (!SWIG_IsOK(res1)) {
18642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18643 }
18644 arg1 = reinterpret_cast< wxDC * >(argp1);
18645 ecode2 = SWIG_AsVal_int(obj1, &val2);
18646 if (!SWIG_IsOK(ecode2)) {
18647 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18648 }
18649 arg2 = static_cast< int >(val2);
18650 ecode3 = SWIG_AsVal_int(obj2, &val3);
18651 if (!SWIG_IsOK(ecode3)) {
18652 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18653 }
18654 arg3 = static_cast< int >(val3);
18655 ecode4 = SWIG_AsVal_int(obj3, &val4);
18656 if (!SWIG_IsOK(ecode4)) {
18657 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18658 }
18659 arg4 = static_cast< int >(val4);
18660 ecode5 = SWIG_AsVal_int(obj4, &val5);
18661 if (!SWIG_IsOK(ecode5)) {
18662 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18663 }
18664 arg5 = static_cast< int >(val5);
18665 {
18666 PyThreadState* __tstate = wxPyBeginAllowThreads();
18667 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18668 wxPyEndAllowThreads(__tstate);
18669 if (PyErr_Occurred()) SWIG_fail;
18670 }
18671 resultobj = SWIG_Py_Void();
18672 return resultobj;
18673 fail:
18674 return NULL;
18675 }
18676
18677
18678 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18679 PyObject *resultobj = 0;
18680 wxDC *arg1 = (wxDC *) 0 ;
18681 wxRect *arg2 = 0 ;
18682 void *argp1 = 0 ;
18683 int res1 = 0 ;
18684 wxRect temp2 ;
18685 PyObject * obj0 = 0 ;
18686 PyObject * obj1 = 0 ;
18687 char * kwnames[] = {
18688 (char *) "self",(char *) "rect", NULL
18689 };
18690
18691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
18692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18693 if (!SWIG_IsOK(res1)) {
18694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
18695 }
18696 arg1 = reinterpret_cast< wxDC * >(argp1);
18697 {
18698 arg2 = &temp2;
18699 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18700 }
18701 {
18702 PyThreadState* __tstate = wxPyBeginAllowThreads();
18703 (arg1)->DrawEllipse((wxRect const &)*arg2);
18704 wxPyEndAllowThreads(__tstate);
18705 if (PyErr_Occurred()) SWIG_fail;
18706 }
18707 resultobj = SWIG_Py_Void();
18708 return resultobj;
18709 fail:
18710 return NULL;
18711 }
18712
18713
18714 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18715 PyObject *resultobj = 0;
18716 wxDC *arg1 = (wxDC *) 0 ;
18717 wxPoint *arg2 = 0 ;
18718 wxSize *arg3 = 0 ;
18719 void *argp1 = 0 ;
18720 int res1 = 0 ;
18721 wxPoint temp2 ;
18722 wxSize temp3 ;
18723 PyObject * obj0 = 0 ;
18724 PyObject * obj1 = 0 ;
18725 PyObject * obj2 = 0 ;
18726 char * kwnames[] = {
18727 (char *) "self",(char *) "pt",(char *) "sz", NULL
18728 };
18729
18730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18732 if (!SWIG_IsOK(res1)) {
18733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18734 }
18735 arg1 = reinterpret_cast< wxDC * >(argp1);
18736 {
18737 arg2 = &temp2;
18738 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18739 }
18740 {
18741 arg3 = &temp3;
18742 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18743 }
18744 {
18745 PyThreadState* __tstate = wxPyBeginAllowThreads();
18746 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
18747 wxPyEndAllowThreads(__tstate);
18748 if (PyErr_Occurred()) SWIG_fail;
18749 }
18750 resultobj = SWIG_Py_Void();
18751 return resultobj;
18752 fail:
18753 return NULL;
18754 }
18755
18756
18757 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18758 PyObject *resultobj = 0;
18759 wxDC *arg1 = (wxDC *) 0 ;
18760 wxIcon *arg2 = 0 ;
18761 int arg3 ;
18762 int arg4 ;
18763 void *argp1 = 0 ;
18764 int res1 = 0 ;
18765 void *argp2 = 0 ;
18766 int res2 = 0 ;
18767 int val3 ;
18768 int ecode3 = 0 ;
18769 int val4 ;
18770 int ecode4 = 0 ;
18771 PyObject * obj0 = 0 ;
18772 PyObject * obj1 = 0 ;
18773 PyObject * obj2 = 0 ;
18774 PyObject * obj3 = 0 ;
18775 char * kwnames[] = {
18776 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
18777 };
18778
18779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18781 if (!SWIG_IsOK(res1)) {
18782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
18783 }
18784 arg1 = reinterpret_cast< wxDC * >(argp1);
18785 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18786 if (!SWIG_IsOK(res2)) {
18787 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18788 }
18789 if (!argp2) {
18790 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18791 }
18792 arg2 = reinterpret_cast< wxIcon * >(argp2);
18793 ecode3 = SWIG_AsVal_int(obj2, &val3);
18794 if (!SWIG_IsOK(ecode3)) {
18795 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
18796 }
18797 arg3 = static_cast< int >(val3);
18798 ecode4 = SWIG_AsVal_int(obj3, &val4);
18799 if (!SWIG_IsOK(ecode4)) {
18800 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
18801 }
18802 arg4 = static_cast< int >(val4);
18803 {
18804 PyThreadState* __tstate = wxPyBeginAllowThreads();
18805 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
18806 wxPyEndAllowThreads(__tstate);
18807 if (PyErr_Occurred()) SWIG_fail;
18808 }
18809 resultobj = SWIG_Py_Void();
18810 return resultobj;
18811 fail:
18812 return NULL;
18813 }
18814
18815
18816 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18817 PyObject *resultobj = 0;
18818 wxDC *arg1 = (wxDC *) 0 ;
18819 wxIcon *arg2 = 0 ;
18820 wxPoint *arg3 = 0 ;
18821 void *argp1 = 0 ;
18822 int res1 = 0 ;
18823 void *argp2 = 0 ;
18824 int res2 = 0 ;
18825 wxPoint temp3 ;
18826 PyObject * obj0 = 0 ;
18827 PyObject * obj1 = 0 ;
18828 PyObject * obj2 = 0 ;
18829 char * kwnames[] = {
18830 (char *) "self",(char *) "icon",(char *) "pt", NULL
18831 };
18832
18833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18835 if (!SWIG_IsOK(res1)) {
18836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18837 }
18838 arg1 = reinterpret_cast< wxDC * >(argp1);
18839 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18840 if (!SWIG_IsOK(res2)) {
18841 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18842 }
18843 if (!argp2) {
18844 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18845 }
18846 arg2 = reinterpret_cast< wxIcon * >(argp2);
18847 {
18848 arg3 = &temp3;
18849 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18850 }
18851 {
18852 PyThreadState* __tstate = wxPyBeginAllowThreads();
18853 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
18854 wxPyEndAllowThreads(__tstate);
18855 if (PyErr_Occurred()) SWIG_fail;
18856 }
18857 resultobj = SWIG_Py_Void();
18858 return resultobj;
18859 fail:
18860 return NULL;
18861 }
18862
18863
18864 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18865 PyObject *resultobj = 0;
18866 wxDC *arg1 = (wxDC *) 0 ;
18867 wxBitmap *arg2 = 0 ;
18868 int arg3 ;
18869 int arg4 ;
18870 bool arg5 = (bool) false ;
18871 void *argp1 = 0 ;
18872 int res1 = 0 ;
18873 void *argp2 = 0 ;
18874 int res2 = 0 ;
18875 int val3 ;
18876 int ecode3 = 0 ;
18877 int val4 ;
18878 int ecode4 = 0 ;
18879 bool val5 ;
18880 int ecode5 = 0 ;
18881 PyObject * obj0 = 0 ;
18882 PyObject * obj1 = 0 ;
18883 PyObject * obj2 = 0 ;
18884 PyObject * obj3 = 0 ;
18885 PyObject * obj4 = 0 ;
18886 char * kwnames[] = {
18887 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
18888 };
18889
18890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18892 if (!SWIG_IsOK(res1)) {
18893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
18894 }
18895 arg1 = reinterpret_cast< wxDC * >(argp1);
18896 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18897 if (!SWIG_IsOK(res2)) {
18898 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18899 }
18900 if (!argp2) {
18901 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18902 }
18903 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18904 ecode3 = SWIG_AsVal_int(obj2, &val3);
18905 if (!SWIG_IsOK(ecode3)) {
18906 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
18907 }
18908 arg3 = static_cast< int >(val3);
18909 ecode4 = SWIG_AsVal_int(obj3, &val4);
18910 if (!SWIG_IsOK(ecode4)) {
18911 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
18912 }
18913 arg4 = static_cast< int >(val4);
18914 if (obj4) {
18915 ecode5 = SWIG_AsVal_bool(obj4, &val5);
18916 if (!SWIG_IsOK(ecode5)) {
18917 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
18918 }
18919 arg5 = static_cast< bool >(val5);
18920 }
18921 {
18922 PyThreadState* __tstate = wxPyBeginAllowThreads();
18923 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
18924 wxPyEndAllowThreads(__tstate);
18925 if (PyErr_Occurred()) SWIG_fail;
18926 }
18927 resultobj = SWIG_Py_Void();
18928 return resultobj;
18929 fail:
18930 return NULL;
18931 }
18932
18933
18934 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18935 PyObject *resultobj = 0;
18936 wxDC *arg1 = (wxDC *) 0 ;
18937 wxBitmap *arg2 = 0 ;
18938 wxPoint *arg3 = 0 ;
18939 bool arg4 = (bool) false ;
18940 void *argp1 = 0 ;
18941 int res1 = 0 ;
18942 void *argp2 = 0 ;
18943 int res2 = 0 ;
18944 wxPoint temp3 ;
18945 bool val4 ;
18946 int ecode4 = 0 ;
18947 PyObject * obj0 = 0 ;
18948 PyObject * obj1 = 0 ;
18949 PyObject * obj2 = 0 ;
18950 PyObject * obj3 = 0 ;
18951 char * kwnames[] = {
18952 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
18953 };
18954
18955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18957 if (!SWIG_IsOK(res1)) {
18958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18959 }
18960 arg1 = reinterpret_cast< wxDC * >(argp1);
18961 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18962 if (!SWIG_IsOK(res2)) {
18963 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18964 }
18965 if (!argp2) {
18966 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18967 }
18968 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18969 {
18970 arg3 = &temp3;
18971 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18972 }
18973 if (obj3) {
18974 ecode4 = SWIG_AsVal_bool(obj3, &val4);
18975 if (!SWIG_IsOK(ecode4)) {
18976 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
18977 }
18978 arg4 = static_cast< bool >(val4);
18979 }
18980 {
18981 PyThreadState* __tstate = wxPyBeginAllowThreads();
18982 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
18983 wxPyEndAllowThreads(__tstate);
18984 if (PyErr_Occurred()) SWIG_fail;
18985 }
18986 resultobj = SWIG_Py_Void();
18987 return resultobj;
18988 fail:
18989 return NULL;
18990 }
18991
18992
18993 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18994 PyObject *resultobj = 0;
18995 wxDC *arg1 = (wxDC *) 0 ;
18996 wxString *arg2 = 0 ;
18997 int arg3 ;
18998 int arg4 ;
18999 void *argp1 = 0 ;
19000 int res1 = 0 ;
19001 bool temp2 = false ;
19002 int val3 ;
19003 int ecode3 = 0 ;
19004 int val4 ;
19005 int ecode4 = 0 ;
19006 PyObject * obj0 = 0 ;
19007 PyObject * obj1 = 0 ;
19008 PyObject * obj2 = 0 ;
19009 PyObject * obj3 = 0 ;
19010 char * kwnames[] = {
19011 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19012 };
19013
19014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19016 if (!SWIG_IsOK(res1)) {
19017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19018 }
19019 arg1 = reinterpret_cast< wxDC * >(argp1);
19020 {
19021 arg2 = wxString_in_helper(obj1);
19022 if (arg2 == NULL) SWIG_fail;
19023 temp2 = true;
19024 }
19025 ecode3 = SWIG_AsVal_int(obj2, &val3);
19026 if (!SWIG_IsOK(ecode3)) {
19027 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19028 }
19029 arg3 = static_cast< int >(val3);
19030 ecode4 = SWIG_AsVal_int(obj3, &val4);
19031 if (!SWIG_IsOK(ecode4)) {
19032 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19033 }
19034 arg4 = static_cast< int >(val4);
19035 {
19036 PyThreadState* __tstate = wxPyBeginAllowThreads();
19037 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19038 wxPyEndAllowThreads(__tstate);
19039 if (PyErr_Occurred()) SWIG_fail;
19040 }
19041 resultobj = SWIG_Py_Void();
19042 {
19043 if (temp2)
19044 delete arg2;
19045 }
19046 return resultobj;
19047 fail:
19048 {
19049 if (temp2)
19050 delete arg2;
19051 }
19052 return NULL;
19053 }
19054
19055
19056 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19057 PyObject *resultobj = 0;
19058 wxDC *arg1 = (wxDC *) 0 ;
19059 wxString *arg2 = 0 ;
19060 wxPoint *arg3 = 0 ;
19061 void *argp1 = 0 ;
19062 int res1 = 0 ;
19063 bool temp2 = false ;
19064 wxPoint temp3 ;
19065 PyObject * obj0 = 0 ;
19066 PyObject * obj1 = 0 ;
19067 PyObject * obj2 = 0 ;
19068 char * kwnames[] = {
19069 (char *) "self",(char *) "text",(char *) "pt", NULL
19070 };
19071
19072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19074 if (!SWIG_IsOK(res1)) {
19075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19076 }
19077 arg1 = reinterpret_cast< wxDC * >(argp1);
19078 {
19079 arg2 = wxString_in_helper(obj1);
19080 if (arg2 == NULL) SWIG_fail;
19081 temp2 = true;
19082 }
19083 {
19084 arg3 = &temp3;
19085 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19086 }
19087 {
19088 PyThreadState* __tstate = wxPyBeginAllowThreads();
19089 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19090 wxPyEndAllowThreads(__tstate);
19091 if (PyErr_Occurred()) SWIG_fail;
19092 }
19093 resultobj = SWIG_Py_Void();
19094 {
19095 if (temp2)
19096 delete arg2;
19097 }
19098 return resultobj;
19099 fail:
19100 {
19101 if (temp2)
19102 delete arg2;
19103 }
19104 return NULL;
19105 }
19106
19107
19108 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19109 PyObject *resultobj = 0;
19110 wxDC *arg1 = (wxDC *) 0 ;
19111 wxString *arg2 = 0 ;
19112 int arg3 ;
19113 int arg4 ;
19114 double arg5 ;
19115 void *argp1 = 0 ;
19116 int res1 = 0 ;
19117 bool temp2 = false ;
19118 int val3 ;
19119 int ecode3 = 0 ;
19120 int val4 ;
19121 int ecode4 = 0 ;
19122 double val5 ;
19123 int ecode5 = 0 ;
19124 PyObject * obj0 = 0 ;
19125 PyObject * obj1 = 0 ;
19126 PyObject * obj2 = 0 ;
19127 PyObject * obj3 = 0 ;
19128 PyObject * obj4 = 0 ;
19129 char * kwnames[] = {
19130 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19131 };
19132
19133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19135 if (!SWIG_IsOK(res1)) {
19136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19137 }
19138 arg1 = reinterpret_cast< wxDC * >(argp1);
19139 {
19140 arg2 = wxString_in_helper(obj1);
19141 if (arg2 == NULL) SWIG_fail;
19142 temp2 = true;
19143 }
19144 ecode3 = SWIG_AsVal_int(obj2, &val3);
19145 if (!SWIG_IsOK(ecode3)) {
19146 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19147 }
19148 arg3 = static_cast< int >(val3);
19149 ecode4 = SWIG_AsVal_int(obj3, &val4);
19150 if (!SWIG_IsOK(ecode4)) {
19151 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19152 }
19153 arg4 = static_cast< int >(val4);
19154 ecode5 = SWIG_AsVal_double(obj4, &val5);
19155 if (!SWIG_IsOK(ecode5)) {
19156 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19157 }
19158 arg5 = static_cast< double >(val5);
19159 {
19160 PyThreadState* __tstate = wxPyBeginAllowThreads();
19161 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19162 wxPyEndAllowThreads(__tstate);
19163 if (PyErr_Occurred()) SWIG_fail;
19164 }
19165 resultobj = SWIG_Py_Void();
19166 {
19167 if (temp2)
19168 delete arg2;
19169 }
19170 return resultobj;
19171 fail:
19172 {
19173 if (temp2)
19174 delete arg2;
19175 }
19176 return NULL;
19177 }
19178
19179
19180 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19181 PyObject *resultobj = 0;
19182 wxDC *arg1 = (wxDC *) 0 ;
19183 wxString *arg2 = 0 ;
19184 wxPoint *arg3 = 0 ;
19185 double arg4 ;
19186 void *argp1 = 0 ;
19187 int res1 = 0 ;
19188 bool temp2 = false ;
19189 wxPoint temp3 ;
19190 double val4 ;
19191 int ecode4 = 0 ;
19192 PyObject * obj0 = 0 ;
19193 PyObject * obj1 = 0 ;
19194 PyObject * obj2 = 0 ;
19195 PyObject * obj3 = 0 ;
19196 char * kwnames[] = {
19197 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19198 };
19199
19200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19202 if (!SWIG_IsOK(res1)) {
19203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19204 }
19205 arg1 = reinterpret_cast< wxDC * >(argp1);
19206 {
19207 arg2 = wxString_in_helper(obj1);
19208 if (arg2 == NULL) SWIG_fail;
19209 temp2 = true;
19210 }
19211 {
19212 arg3 = &temp3;
19213 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19214 }
19215 ecode4 = SWIG_AsVal_double(obj3, &val4);
19216 if (!SWIG_IsOK(ecode4)) {
19217 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19218 }
19219 arg4 = static_cast< double >(val4);
19220 {
19221 PyThreadState* __tstate = wxPyBeginAllowThreads();
19222 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19223 wxPyEndAllowThreads(__tstate);
19224 if (PyErr_Occurred()) SWIG_fail;
19225 }
19226 resultobj = SWIG_Py_Void();
19227 {
19228 if (temp2)
19229 delete arg2;
19230 }
19231 return resultobj;
19232 fail:
19233 {
19234 if (temp2)
19235 delete arg2;
19236 }
19237 return NULL;
19238 }
19239
19240
19241 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19242 PyObject *resultobj = 0;
19243 wxDC *arg1 = (wxDC *) 0 ;
19244 int arg2 ;
19245 int arg3 ;
19246 int arg4 ;
19247 int arg5 ;
19248 wxDC *arg6 = (wxDC *) 0 ;
19249 int arg7 ;
19250 int arg8 ;
19251 int arg9 = (int) wxCOPY ;
19252 bool arg10 = (bool) false ;
19253 int arg11 = (int) -1 ;
19254 int arg12 = (int) -1 ;
19255 bool result;
19256 void *argp1 = 0 ;
19257 int res1 = 0 ;
19258 int val2 ;
19259 int ecode2 = 0 ;
19260 int val3 ;
19261 int ecode3 = 0 ;
19262 int val4 ;
19263 int ecode4 = 0 ;
19264 int val5 ;
19265 int ecode5 = 0 ;
19266 void *argp6 = 0 ;
19267 int res6 = 0 ;
19268 int val7 ;
19269 int ecode7 = 0 ;
19270 int val8 ;
19271 int ecode8 = 0 ;
19272 int val9 ;
19273 int ecode9 = 0 ;
19274 bool val10 ;
19275 int ecode10 = 0 ;
19276 int val11 ;
19277 int ecode11 = 0 ;
19278 int val12 ;
19279 int ecode12 = 0 ;
19280 PyObject * obj0 = 0 ;
19281 PyObject * obj1 = 0 ;
19282 PyObject * obj2 = 0 ;
19283 PyObject * obj3 = 0 ;
19284 PyObject * obj4 = 0 ;
19285 PyObject * obj5 = 0 ;
19286 PyObject * obj6 = 0 ;
19287 PyObject * obj7 = 0 ;
19288 PyObject * obj8 = 0 ;
19289 PyObject * obj9 = 0 ;
19290 PyObject * obj10 = 0 ;
19291 PyObject * obj11 = 0 ;
19292 char * kwnames[] = {
19293 (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
19294 };
19295
19296 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;
19297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19298 if (!SWIG_IsOK(res1)) {
19299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19300 }
19301 arg1 = reinterpret_cast< wxDC * >(argp1);
19302 ecode2 = SWIG_AsVal_int(obj1, &val2);
19303 if (!SWIG_IsOK(ecode2)) {
19304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19305 }
19306 arg2 = static_cast< int >(val2);
19307 ecode3 = SWIG_AsVal_int(obj2, &val3);
19308 if (!SWIG_IsOK(ecode3)) {
19309 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19310 }
19311 arg3 = static_cast< int >(val3);
19312 ecode4 = SWIG_AsVal_int(obj3, &val4);
19313 if (!SWIG_IsOK(ecode4)) {
19314 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19315 }
19316 arg4 = static_cast< int >(val4);
19317 ecode5 = SWIG_AsVal_int(obj4, &val5);
19318 if (!SWIG_IsOK(ecode5)) {
19319 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19320 }
19321 arg5 = static_cast< int >(val5);
19322 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19323 if (!SWIG_IsOK(res6)) {
19324 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19325 }
19326 arg6 = reinterpret_cast< wxDC * >(argp6);
19327 ecode7 = SWIG_AsVal_int(obj6, &val7);
19328 if (!SWIG_IsOK(ecode7)) {
19329 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19330 }
19331 arg7 = static_cast< int >(val7);
19332 ecode8 = SWIG_AsVal_int(obj7, &val8);
19333 if (!SWIG_IsOK(ecode8)) {
19334 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19335 }
19336 arg8 = static_cast< int >(val8);
19337 if (obj8) {
19338 ecode9 = SWIG_AsVal_int(obj8, &val9);
19339 if (!SWIG_IsOK(ecode9)) {
19340 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19341 }
19342 arg9 = static_cast< int >(val9);
19343 }
19344 if (obj9) {
19345 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19346 if (!SWIG_IsOK(ecode10)) {
19347 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19348 }
19349 arg10 = static_cast< bool >(val10);
19350 }
19351 if (obj10) {
19352 ecode11 = SWIG_AsVal_int(obj10, &val11);
19353 if (!SWIG_IsOK(ecode11)) {
19354 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19355 }
19356 arg11 = static_cast< int >(val11);
19357 }
19358 if (obj11) {
19359 ecode12 = SWIG_AsVal_int(obj11, &val12);
19360 if (!SWIG_IsOK(ecode12)) {
19361 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19362 }
19363 arg12 = static_cast< int >(val12);
19364 }
19365 {
19366 PyThreadState* __tstate = wxPyBeginAllowThreads();
19367 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19368 wxPyEndAllowThreads(__tstate);
19369 if (PyErr_Occurred()) SWIG_fail;
19370 }
19371 {
19372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19373 }
19374 return resultobj;
19375 fail:
19376 return NULL;
19377 }
19378
19379
19380 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19381 PyObject *resultobj = 0;
19382 wxDC *arg1 = (wxDC *) 0 ;
19383 wxPoint *arg2 = 0 ;
19384 wxSize *arg3 = 0 ;
19385 wxDC *arg4 = (wxDC *) 0 ;
19386 wxPoint *arg5 = 0 ;
19387 int arg6 = (int) wxCOPY ;
19388 bool arg7 = (bool) false ;
19389 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19390 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19391 bool result;
19392 void *argp1 = 0 ;
19393 int res1 = 0 ;
19394 wxPoint temp2 ;
19395 wxSize temp3 ;
19396 void *argp4 = 0 ;
19397 int res4 = 0 ;
19398 wxPoint temp5 ;
19399 int val6 ;
19400 int ecode6 = 0 ;
19401 bool val7 ;
19402 int ecode7 = 0 ;
19403 wxPoint temp8 ;
19404 PyObject * obj0 = 0 ;
19405 PyObject * obj1 = 0 ;
19406 PyObject * obj2 = 0 ;
19407 PyObject * obj3 = 0 ;
19408 PyObject * obj4 = 0 ;
19409 PyObject * obj5 = 0 ;
19410 PyObject * obj6 = 0 ;
19411 PyObject * obj7 = 0 ;
19412 char * kwnames[] = {
19413 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19414 };
19415
19416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19418 if (!SWIG_IsOK(res1)) {
19419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19420 }
19421 arg1 = reinterpret_cast< wxDC * >(argp1);
19422 {
19423 arg2 = &temp2;
19424 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19425 }
19426 {
19427 arg3 = &temp3;
19428 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19429 }
19430 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19431 if (!SWIG_IsOK(res4)) {
19432 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19433 }
19434 arg4 = reinterpret_cast< wxDC * >(argp4);
19435 {
19436 arg5 = &temp5;
19437 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19438 }
19439 if (obj5) {
19440 ecode6 = SWIG_AsVal_int(obj5, &val6);
19441 if (!SWIG_IsOK(ecode6)) {
19442 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19443 }
19444 arg6 = static_cast< int >(val6);
19445 }
19446 if (obj6) {
19447 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19448 if (!SWIG_IsOK(ecode7)) {
19449 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19450 }
19451 arg7 = static_cast< bool >(val7);
19452 }
19453 if (obj7) {
19454 {
19455 arg8 = &temp8;
19456 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
19457 }
19458 }
19459 {
19460 PyThreadState* __tstate = wxPyBeginAllowThreads();
19461 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19462 wxPyEndAllowThreads(__tstate);
19463 if (PyErr_Occurred()) SWIG_fail;
19464 }
19465 {
19466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19467 }
19468 return resultobj;
19469 fail:
19470 return NULL;
19471 }
19472
19473
19474 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19475 PyObject *resultobj = 0;
19476 wxDC *arg1 = (wxDC *) 0 ;
19477 int arg2 ;
19478 int arg3 ;
19479 int arg4 ;
19480 int arg5 ;
19481 void *argp1 = 0 ;
19482 int res1 = 0 ;
19483 int val2 ;
19484 int ecode2 = 0 ;
19485 int val3 ;
19486 int ecode3 = 0 ;
19487 int val4 ;
19488 int ecode4 = 0 ;
19489 int val5 ;
19490 int ecode5 = 0 ;
19491 PyObject * obj0 = 0 ;
19492 PyObject * obj1 = 0 ;
19493 PyObject * obj2 = 0 ;
19494 PyObject * obj3 = 0 ;
19495 PyObject * obj4 = 0 ;
19496 char * kwnames[] = {
19497 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19498 };
19499
19500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19502 if (!SWIG_IsOK(res1)) {
19503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19504 }
19505 arg1 = reinterpret_cast< wxDC * >(argp1);
19506 ecode2 = SWIG_AsVal_int(obj1, &val2);
19507 if (!SWIG_IsOK(ecode2)) {
19508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19509 }
19510 arg2 = static_cast< int >(val2);
19511 ecode3 = SWIG_AsVal_int(obj2, &val3);
19512 if (!SWIG_IsOK(ecode3)) {
19513 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19514 }
19515 arg3 = static_cast< int >(val3);
19516 ecode4 = SWIG_AsVal_int(obj3, &val4);
19517 if (!SWIG_IsOK(ecode4)) {
19518 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19519 }
19520 arg4 = static_cast< int >(val4);
19521 ecode5 = SWIG_AsVal_int(obj4, &val5);
19522 if (!SWIG_IsOK(ecode5)) {
19523 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19524 }
19525 arg5 = static_cast< int >(val5);
19526 {
19527 PyThreadState* __tstate = wxPyBeginAllowThreads();
19528 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19529 wxPyEndAllowThreads(__tstate);
19530 if (PyErr_Occurred()) SWIG_fail;
19531 }
19532 resultobj = SWIG_Py_Void();
19533 return resultobj;
19534 fail:
19535 return NULL;
19536 }
19537
19538
19539 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19540 PyObject *resultobj = 0;
19541 wxDC *arg1 = (wxDC *) 0 ;
19542 wxPoint *arg2 = 0 ;
19543 wxSize *arg3 = 0 ;
19544 void *argp1 = 0 ;
19545 int res1 = 0 ;
19546 wxPoint temp2 ;
19547 wxSize temp3 ;
19548 PyObject * obj0 = 0 ;
19549 PyObject * obj1 = 0 ;
19550 PyObject * obj2 = 0 ;
19551 char * kwnames[] = {
19552 (char *) "self",(char *) "pt",(char *) "sz", NULL
19553 };
19554
19555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19557 if (!SWIG_IsOK(res1)) {
19558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19559 }
19560 arg1 = reinterpret_cast< wxDC * >(argp1);
19561 {
19562 arg2 = &temp2;
19563 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19564 }
19565 {
19566 arg3 = &temp3;
19567 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19568 }
19569 {
19570 PyThreadState* __tstate = wxPyBeginAllowThreads();
19571 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19572 wxPyEndAllowThreads(__tstate);
19573 if (PyErr_Occurred()) SWIG_fail;
19574 }
19575 resultobj = SWIG_Py_Void();
19576 return resultobj;
19577 fail:
19578 return NULL;
19579 }
19580
19581
19582 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19583 PyObject *resultobj = 0;
19584 wxDC *arg1 = (wxDC *) 0 ;
19585 wxRegion *arg2 = 0 ;
19586 void *argp1 = 0 ;
19587 int res1 = 0 ;
19588 void *argp2 = 0 ;
19589 int res2 = 0 ;
19590 PyObject * obj0 = 0 ;
19591 PyObject * obj1 = 0 ;
19592 char * kwnames[] = {
19593 (char *) "self",(char *) "region", NULL
19594 };
19595
19596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19598 if (!SWIG_IsOK(res1)) {
19599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19600 }
19601 arg1 = reinterpret_cast< wxDC * >(argp1);
19602 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19603 if (!SWIG_IsOK(res2)) {
19604 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19605 }
19606 if (!argp2) {
19607 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19608 }
19609 arg2 = reinterpret_cast< wxRegion * >(argp2);
19610 {
19611 PyThreadState* __tstate = wxPyBeginAllowThreads();
19612 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19613 wxPyEndAllowThreads(__tstate);
19614 if (PyErr_Occurred()) SWIG_fail;
19615 }
19616 resultobj = SWIG_Py_Void();
19617 return resultobj;
19618 fail:
19619 return NULL;
19620 }
19621
19622
19623 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19624 PyObject *resultobj = 0;
19625 wxDC *arg1 = (wxDC *) 0 ;
19626 wxRect *arg2 = 0 ;
19627 void *argp1 = 0 ;
19628 int res1 = 0 ;
19629 wxRect temp2 ;
19630 PyObject * obj0 = 0 ;
19631 PyObject * obj1 = 0 ;
19632 char * kwnames[] = {
19633 (char *) "self",(char *) "rect", NULL
19634 };
19635
19636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19638 if (!SWIG_IsOK(res1)) {
19639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
19640 }
19641 arg1 = reinterpret_cast< wxDC * >(argp1);
19642 {
19643 arg2 = &temp2;
19644 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19645 }
19646 {
19647 PyThreadState* __tstate = wxPyBeginAllowThreads();
19648 (arg1)->SetClippingRegion((wxRect const &)*arg2);
19649 wxPyEndAllowThreads(__tstate);
19650 if (PyErr_Occurred()) SWIG_fail;
19651 }
19652 resultobj = SWIG_Py_Void();
19653 return resultobj;
19654 fail:
19655 return NULL;
19656 }
19657
19658
19659 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19660 PyObject *resultobj = 0;
19661 wxDC *arg1 = (wxDC *) 0 ;
19662 int arg2 ;
19663 wxPoint *arg3 = (wxPoint *) 0 ;
19664 int arg4 = (int) 0 ;
19665 int arg5 = (int) 0 ;
19666 void *argp1 = 0 ;
19667 int res1 = 0 ;
19668 int val4 ;
19669 int ecode4 = 0 ;
19670 int val5 ;
19671 int ecode5 = 0 ;
19672 PyObject * obj0 = 0 ;
19673 PyObject * obj1 = 0 ;
19674 PyObject * obj2 = 0 ;
19675 PyObject * obj3 = 0 ;
19676 char * kwnames[] = {
19677 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
19678 };
19679
19680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19682 if (!SWIG_IsOK(res1)) {
19683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
19684 }
19685 arg1 = reinterpret_cast< wxDC * >(argp1);
19686 {
19687 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19688 if (arg3 == NULL) SWIG_fail;
19689 }
19690 if (obj2) {
19691 ecode4 = SWIG_AsVal_int(obj2, &val4);
19692 if (!SWIG_IsOK(ecode4)) {
19693 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
19694 }
19695 arg4 = static_cast< int >(val4);
19696 }
19697 if (obj3) {
19698 ecode5 = SWIG_AsVal_int(obj3, &val5);
19699 if (!SWIG_IsOK(ecode5)) {
19700 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
19701 }
19702 arg5 = static_cast< int >(val5);
19703 }
19704 {
19705 PyThreadState* __tstate = wxPyBeginAllowThreads();
19706 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
19707 wxPyEndAllowThreads(__tstate);
19708 if (PyErr_Occurred()) SWIG_fail;
19709 }
19710 resultobj = SWIG_Py_Void();
19711 {
19712 if (arg3) delete [] arg3;
19713 }
19714 return resultobj;
19715 fail:
19716 {
19717 if (arg3) delete [] arg3;
19718 }
19719 return NULL;
19720 }
19721
19722
19723 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19724 PyObject *resultobj = 0;
19725 wxDC *arg1 = (wxDC *) 0 ;
19726 int arg2 ;
19727 wxPoint *arg3 = (wxPoint *) 0 ;
19728 int arg4 = (int) 0 ;
19729 int arg5 = (int) 0 ;
19730 int arg6 = (int) wxODDEVEN_RULE ;
19731 void *argp1 = 0 ;
19732 int res1 = 0 ;
19733 int val4 ;
19734 int ecode4 = 0 ;
19735 int val5 ;
19736 int ecode5 = 0 ;
19737 int val6 ;
19738 int ecode6 = 0 ;
19739 PyObject * obj0 = 0 ;
19740 PyObject * obj1 = 0 ;
19741 PyObject * obj2 = 0 ;
19742 PyObject * obj3 = 0 ;
19743 PyObject * obj4 = 0 ;
19744 char * kwnames[] = {
19745 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
19746 };
19747
19748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19750 if (!SWIG_IsOK(res1)) {
19751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
19752 }
19753 arg1 = reinterpret_cast< wxDC * >(argp1);
19754 {
19755 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19756 if (arg3 == NULL) SWIG_fail;
19757 }
19758 if (obj2) {
19759 ecode4 = SWIG_AsVal_int(obj2, &val4);
19760 if (!SWIG_IsOK(ecode4)) {
19761 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
19762 }
19763 arg4 = static_cast< int >(val4);
19764 }
19765 if (obj3) {
19766 ecode5 = SWIG_AsVal_int(obj3, &val5);
19767 if (!SWIG_IsOK(ecode5)) {
19768 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
19769 }
19770 arg5 = static_cast< int >(val5);
19771 }
19772 if (obj4) {
19773 ecode6 = SWIG_AsVal_int(obj4, &val6);
19774 if (!SWIG_IsOK(ecode6)) {
19775 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
19776 }
19777 arg6 = static_cast< int >(val6);
19778 }
19779 {
19780 PyThreadState* __tstate = wxPyBeginAllowThreads();
19781 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
19782 wxPyEndAllowThreads(__tstate);
19783 if (PyErr_Occurred()) SWIG_fail;
19784 }
19785 resultobj = SWIG_Py_Void();
19786 {
19787 if (arg3) delete [] arg3;
19788 }
19789 return resultobj;
19790 fail:
19791 {
19792 if (arg3) delete [] arg3;
19793 }
19794 return NULL;
19795 }
19796
19797
19798 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19799 PyObject *resultobj = 0;
19800 wxDC *arg1 = (wxDC *) 0 ;
19801 wxString *arg2 = 0 ;
19802 wxRect *arg3 = 0 ;
19803 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19804 int arg5 = (int) -1 ;
19805 void *argp1 = 0 ;
19806 int res1 = 0 ;
19807 bool temp2 = false ;
19808 wxRect temp3 ;
19809 int val4 ;
19810 int ecode4 = 0 ;
19811 int val5 ;
19812 int ecode5 = 0 ;
19813 PyObject * obj0 = 0 ;
19814 PyObject * obj1 = 0 ;
19815 PyObject * obj2 = 0 ;
19816 PyObject * obj3 = 0 ;
19817 PyObject * obj4 = 0 ;
19818 char * kwnames[] = {
19819 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19820 };
19821
19822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19824 if (!SWIG_IsOK(res1)) {
19825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19826 }
19827 arg1 = reinterpret_cast< wxDC * >(argp1);
19828 {
19829 arg2 = wxString_in_helper(obj1);
19830 if (arg2 == NULL) SWIG_fail;
19831 temp2 = true;
19832 }
19833 {
19834 arg3 = &temp3;
19835 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
19836 }
19837 if (obj3) {
19838 ecode4 = SWIG_AsVal_int(obj3, &val4);
19839 if (!SWIG_IsOK(ecode4)) {
19840 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
19841 }
19842 arg4 = static_cast< int >(val4);
19843 }
19844 if (obj4) {
19845 ecode5 = SWIG_AsVal_int(obj4, &val5);
19846 if (!SWIG_IsOK(ecode5)) {
19847 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
19848 }
19849 arg5 = static_cast< int >(val5);
19850 }
19851 {
19852 PyThreadState* __tstate = wxPyBeginAllowThreads();
19853 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
19854 wxPyEndAllowThreads(__tstate);
19855 if (PyErr_Occurred()) SWIG_fail;
19856 }
19857 resultobj = SWIG_Py_Void();
19858 {
19859 if (temp2)
19860 delete arg2;
19861 }
19862 return resultobj;
19863 fail:
19864 {
19865 if (temp2)
19866 delete arg2;
19867 }
19868 return NULL;
19869 }
19870
19871
19872 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19873 PyObject *resultobj = 0;
19874 wxDC *arg1 = (wxDC *) 0 ;
19875 wxString *arg2 = 0 ;
19876 wxBitmap *arg3 = 0 ;
19877 wxRect *arg4 = 0 ;
19878 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19879 int arg6 = (int) -1 ;
19880 wxRect result;
19881 void *argp1 = 0 ;
19882 int res1 = 0 ;
19883 bool temp2 = false ;
19884 void *argp3 = 0 ;
19885 int res3 = 0 ;
19886 wxRect temp4 ;
19887 int val5 ;
19888 int ecode5 = 0 ;
19889 int val6 ;
19890 int ecode6 = 0 ;
19891 PyObject * obj0 = 0 ;
19892 PyObject * obj1 = 0 ;
19893 PyObject * obj2 = 0 ;
19894 PyObject * obj3 = 0 ;
19895 PyObject * obj4 = 0 ;
19896 PyObject * obj5 = 0 ;
19897 char * kwnames[] = {
19898 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19899 };
19900
19901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19903 if (!SWIG_IsOK(res1)) {
19904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19905 }
19906 arg1 = reinterpret_cast< wxDC * >(argp1);
19907 {
19908 arg2 = wxString_in_helper(obj1);
19909 if (arg2 == NULL) SWIG_fail;
19910 temp2 = true;
19911 }
19912 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
19913 if (!SWIG_IsOK(res3)) {
19914 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19915 }
19916 if (!argp3) {
19917 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19918 }
19919 arg3 = reinterpret_cast< wxBitmap * >(argp3);
19920 {
19921 arg4 = &temp4;
19922 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
19923 }
19924 if (obj4) {
19925 ecode5 = SWIG_AsVal_int(obj4, &val5);
19926 if (!SWIG_IsOK(ecode5)) {
19927 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
19928 }
19929 arg5 = static_cast< int >(val5);
19930 }
19931 if (obj5) {
19932 ecode6 = SWIG_AsVal_int(obj5, &val6);
19933 if (!SWIG_IsOK(ecode6)) {
19934 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
19935 }
19936 arg6 = static_cast< int >(val6);
19937 }
19938 {
19939 PyThreadState* __tstate = wxPyBeginAllowThreads();
19940 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
19941 wxPyEndAllowThreads(__tstate);
19942 if (PyErr_Occurred()) SWIG_fail;
19943 }
19944 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
19945 {
19946 if (temp2)
19947 delete arg2;
19948 }
19949 return resultobj;
19950 fail:
19951 {
19952 if (temp2)
19953 delete arg2;
19954 }
19955 return NULL;
19956 }
19957
19958
19959 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19960 PyObject *resultobj = 0;
19961 wxDC *arg1 = (wxDC *) 0 ;
19962 int arg2 ;
19963 wxPoint *arg3 = (wxPoint *) 0 ;
19964 void *argp1 = 0 ;
19965 int res1 = 0 ;
19966 PyObject * obj0 = 0 ;
19967 PyObject * obj1 = 0 ;
19968 char * kwnames[] = {
19969 (char *) "self",(char *) "points", NULL
19970 };
19971
19972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
19973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19974 if (!SWIG_IsOK(res1)) {
19975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
19976 }
19977 arg1 = reinterpret_cast< wxDC * >(argp1);
19978 {
19979 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19980 if (arg3 == NULL) SWIG_fail;
19981 }
19982 {
19983 PyThreadState* __tstate = wxPyBeginAllowThreads();
19984 (arg1)->DrawSpline(arg2,arg3);
19985 wxPyEndAllowThreads(__tstate);
19986 if (PyErr_Occurred()) SWIG_fail;
19987 }
19988 resultobj = SWIG_Py_Void();
19989 {
19990 if (arg3) delete [] arg3;
19991 }
19992 return resultobj;
19993 fail:
19994 {
19995 if (arg3) delete [] arg3;
19996 }
19997 return NULL;
19998 }
19999
20000
20001 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20002 PyObject *resultobj = 0;
20003 wxDC *arg1 = (wxDC *) 0 ;
20004 void *argp1 = 0 ;
20005 int res1 = 0 ;
20006 PyObject *swig_obj[1] ;
20007
20008 if (!args) SWIG_fail;
20009 swig_obj[0] = args;
20010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20011 if (!SWIG_IsOK(res1)) {
20012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20013 }
20014 arg1 = reinterpret_cast< wxDC * >(argp1);
20015 {
20016 PyThreadState* __tstate = wxPyBeginAllowThreads();
20017 (arg1)->Clear();
20018 wxPyEndAllowThreads(__tstate);
20019 if (PyErr_Occurred()) SWIG_fail;
20020 }
20021 resultobj = SWIG_Py_Void();
20022 return resultobj;
20023 fail:
20024 return NULL;
20025 }
20026
20027
20028 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20029 PyObject *resultobj = 0;
20030 wxDC *arg1 = (wxDC *) 0 ;
20031 wxString *arg2 = 0 ;
20032 bool result;
20033 void *argp1 = 0 ;
20034 int res1 = 0 ;
20035 bool temp2 = false ;
20036 PyObject * obj0 = 0 ;
20037 PyObject * obj1 = 0 ;
20038 char * kwnames[] = {
20039 (char *) "self",(char *) "message", NULL
20040 };
20041
20042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20044 if (!SWIG_IsOK(res1)) {
20045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20046 }
20047 arg1 = reinterpret_cast< wxDC * >(argp1);
20048 {
20049 arg2 = wxString_in_helper(obj1);
20050 if (arg2 == NULL) SWIG_fail;
20051 temp2 = true;
20052 }
20053 {
20054 PyThreadState* __tstate = wxPyBeginAllowThreads();
20055 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20056 wxPyEndAllowThreads(__tstate);
20057 if (PyErr_Occurred()) SWIG_fail;
20058 }
20059 {
20060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20061 }
20062 {
20063 if (temp2)
20064 delete arg2;
20065 }
20066 return resultobj;
20067 fail:
20068 {
20069 if (temp2)
20070 delete arg2;
20071 }
20072 return NULL;
20073 }
20074
20075
20076 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20077 PyObject *resultobj = 0;
20078 wxDC *arg1 = (wxDC *) 0 ;
20079 void *argp1 = 0 ;
20080 int res1 = 0 ;
20081 PyObject *swig_obj[1] ;
20082
20083 if (!args) SWIG_fail;
20084 swig_obj[0] = args;
20085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20086 if (!SWIG_IsOK(res1)) {
20087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20088 }
20089 arg1 = reinterpret_cast< wxDC * >(argp1);
20090 {
20091 PyThreadState* __tstate = wxPyBeginAllowThreads();
20092 (arg1)->EndDoc();
20093 wxPyEndAllowThreads(__tstate);
20094 if (PyErr_Occurred()) SWIG_fail;
20095 }
20096 resultobj = SWIG_Py_Void();
20097 return resultobj;
20098 fail:
20099 return NULL;
20100 }
20101
20102
20103 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20104 PyObject *resultobj = 0;
20105 wxDC *arg1 = (wxDC *) 0 ;
20106 void *argp1 = 0 ;
20107 int res1 = 0 ;
20108 PyObject *swig_obj[1] ;
20109
20110 if (!args) SWIG_fail;
20111 swig_obj[0] = args;
20112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20113 if (!SWIG_IsOK(res1)) {
20114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20115 }
20116 arg1 = reinterpret_cast< wxDC * >(argp1);
20117 {
20118 PyThreadState* __tstate = wxPyBeginAllowThreads();
20119 (arg1)->StartPage();
20120 wxPyEndAllowThreads(__tstate);
20121 if (PyErr_Occurred()) SWIG_fail;
20122 }
20123 resultobj = SWIG_Py_Void();
20124 return resultobj;
20125 fail:
20126 return NULL;
20127 }
20128
20129
20130 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20131 PyObject *resultobj = 0;
20132 wxDC *arg1 = (wxDC *) 0 ;
20133 void *argp1 = 0 ;
20134 int res1 = 0 ;
20135 PyObject *swig_obj[1] ;
20136
20137 if (!args) SWIG_fail;
20138 swig_obj[0] = args;
20139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20140 if (!SWIG_IsOK(res1)) {
20141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20142 }
20143 arg1 = reinterpret_cast< wxDC * >(argp1);
20144 {
20145 PyThreadState* __tstate = wxPyBeginAllowThreads();
20146 (arg1)->EndPage();
20147 wxPyEndAllowThreads(__tstate);
20148 if (PyErr_Occurred()) SWIG_fail;
20149 }
20150 resultobj = SWIG_Py_Void();
20151 return resultobj;
20152 fail:
20153 return NULL;
20154 }
20155
20156
20157 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20158 PyObject *resultobj = 0;
20159 wxDC *arg1 = (wxDC *) 0 ;
20160 wxFont *arg2 = 0 ;
20161 void *argp1 = 0 ;
20162 int res1 = 0 ;
20163 void *argp2 = 0 ;
20164 int res2 = 0 ;
20165 PyObject * obj0 = 0 ;
20166 PyObject * obj1 = 0 ;
20167 char * kwnames[] = {
20168 (char *) "self",(char *) "font", NULL
20169 };
20170
20171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20173 if (!SWIG_IsOK(res1)) {
20174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20175 }
20176 arg1 = reinterpret_cast< wxDC * >(argp1);
20177 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20178 if (!SWIG_IsOK(res2)) {
20179 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20180 }
20181 if (!argp2) {
20182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20183 }
20184 arg2 = reinterpret_cast< wxFont * >(argp2);
20185 {
20186 PyThreadState* __tstate = wxPyBeginAllowThreads();
20187 (arg1)->SetFont((wxFont const &)*arg2);
20188 wxPyEndAllowThreads(__tstate);
20189 if (PyErr_Occurred()) SWIG_fail;
20190 }
20191 resultobj = SWIG_Py_Void();
20192 return resultobj;
20193 fail:
20194 return NULL;
20195 }
20196
20197
20198 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20199 PyObject *resultobj = 0;
20200 wxDC *arg1 = (wxDC *) 0 ;
20201 wxPen *arg2 = 0 ;
20202 void *argp1 = 0 ;
20203 int res1 = 0 ;
20204 void *argp2 = 0 ;
20205 int res2 = 0 ;
20206 PyObject * obj0 = 0 ;
20207 PyObject * obj1 = 0 ;
20208 char * kwnames[] = {
20209 (char *) "self",(char *) "pen", NULL
20210 };
20211
20212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20214 if (!SWIG_IsOK(res1)) {
20215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20216 }
20217 arg1 = reinterpret_cast< wxDC * >(argp1);
20218 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20219 if (!SWIG_IsOK(res2)) {
20220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20221 }
20222 if (!argp2) {
20223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20224 }
20225 arg2 = reinterpret_cast< wxPen * >(argp2);
20226 {
20227 PyThreadState* __tstate = wxPyBeginAllowThreads();
20228 (arg1)->SetPen((wxPen const &)*arg2);
20229 wxPyEndAllowThreads(__tstate);
20230 if (PyErr_Occurred()) SWIG_fail;
20231 }
20232 resultobj = SWIG_Py_Void();
20233 return resultobj;
20234 fail:
20235 return NULL;
20236 }
20237
20238
20239 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20240 PyObject *resultobj = 0;
20241 wxDC *arg1 = (wxDC *) 0 ;
20242 wxBrush *arg2 = 0 ;
20243 void *argp1 = 0 ;
20244 int res1 = 0 ;
20245 void *argp2 = 0 ;
20246 int res2 = 0 ;
20247 PyObject * obj0 = 0 ;
20248 PyObject * obj1 = 0 ;
20249 char * kwnames[] = {
20250 (char *) "self",(char *) "brush", NULL
20251 };
20252
20253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20255 if (!SWIG_IsOK(res1)) {
20256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20257 }
20258 arg1 = reinterpret_cast< wxDC * >(argp1);
20259 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20260 if (!SWIG_IsOK(res2)) {
20261 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20262 }
20263 if (!argp2) {
20264 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20265 }
20266 arg2 = reinterpret_cast< wxBrush * >(argp2);
20267 {
20268 PyThreadState* __tstate = wxPyBeginAllowThreads();
20269 (arg1)->SetBrush((wxBrush const &)*arg2);
20270 wxPyEndAllowThreads(__tstate);
20271 if (PyErr_Occurred()) SWIG_fail;
20272 }
20273 resultobj = SWIG_Py_Void();
20274 return resultobj;
20275 fail:
20276 return NULL;
20277 }
20278
20279
20280 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20281 PyObject *resultobj = 0;
20282 wxDC *arg1 = (wxDC *) 0 ;
20283 wxBrush *arg2 = 0 ;
20284 void *argp1 = 0 ;
20285 int res1 = 0 ;
20286 void *argp2 = 0 ;
20287 int res2 = 0 ;
20288 PyObject * obj0 = 0 ;
20289 PyObject * obj1 = 0 ;
20290 char * kwnames[] = {
20291 (char *) "self",(char *) "brush", NULL
20292 };
20293
20294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20296 if (!SWIG_IsOK(res1)) {
20297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20298 }
20299 arg1 = reinterpret_cast< wxDC * >(argp1);
20300 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20301 if (!SWIG_IsOK(res2)) {
20302 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20303 }
20304 if (!argp2) {
20305 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20306 }
20307 arg2 = reinterpret_cast< wxBrush * >(argp2);
20308 {
20309 PyThreadState* __tstate = wxPyBeginAllowThreads();
20310 (arg1)->SetBackground((wxBrush const &)*arg2);
20311 wxPyEndAllowThreads(__tstate);
20312 if (PyErr_Occurred()) SWIG_fail;
20313 }
20314 resultobj = SWIG_Py_Void();
20315 return resultobj;
20316 fail:
20317 return NULL;
20318 }
20319
20320
20321 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20322 PyObject *resultobj = 0;
20323 wxDC *arg1 = (wxDC *) 0 ;
20324 int arg2 ;
20325 void *argp1 = 0 ;
20326 int res1 = 0 ;
20327 int val2 ;
20328 int ecode2 = 0 ;
20329 PyObject * obj0 = 0 ;
20330 PyObject * obj1 = 0 ;
20331 char * kwnames[] = {
20332 (char *) "self",(char *) "mode", NULL
20333 };
20334
20335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20337 if (!SWIG_IsOK(res1)) {
20338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20339 }
20340 arg1 = reinterpret_cast< wxDC * >(argp1);
20341 ecode2 = SWIG_AsVal_int(obj1, &val2);
20342 if (!SWIG_IsOK(ecode2)) {
20343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20344 }
20345 arg2 = static_cast< int >(val2);
20346 {
20347 PyThreadState* __tstate = wxPyBeginAllowThreads();
20348 (arg1)->SetBackgroundMode(arg2);
20349 wxPyEndAllowThreads(__tstate);
20350 if (PyErr_Occurred()) SWIG_fail;
20351 }
20352 resultobj = SWIG_Py_Void();
20353 return resultobj;
20354 fail:
20355 return NULL;
20356 }
20357
20358
20359 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20360 PyObject *resultobj = 0;
20361 wxDC *arg1 = (wxDC *) 0 ;
20362 wxPalette *arg2 = 0 ;
20363 void *argp1 = 0 ;
20364 int res1 = 0 ;
20365 void *argp2 = 0 ;
20366 int res2 = 0 ;
20367 PyObject * obj0 = 0 ;
20368 PyObject * obj1 = 0 ;
20369 char * kwnames[] = {
20370 (char *) "self",(char *) "palette", NULL
20371 };
20372
20373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20375 if (!SWIG_IsOK(res1)) {
20376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20377 }
20378 arg1 = reinterpret_cast< wxDC * >(argp1);
20379 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20380 if (!SWIG_IsOK(res2)) {
20381 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20382 }
20383 if (!argp2) {
20384 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20385 }
20386 arg2 = reinterpret_cast< wxPalette * >(argp2);
20387 {
20388 PyThreadState* __tstate = wxPyBeginAllowThreads();
20389 (arg1)->SetPalette((wxPalette const &)*arg2);
20390 wxPyEndAllowThreads(__tstate);
20391 if (PyErr_Occurred()) SWIG_fail;
20392 }
20393 resultobj = SWIG_Py_Void();
20394 return resultobj;
20395 fail:
20396 return NULL;
20397 }
20398
20399
20400 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20401 PyObject *resultobj = 0;
20402 wxDC *arg1 = (wxDC *) 0 ;
20403 void *argp1 = 0 ;
20404 int res1 = 0 ;
20405 PyObject *swig_obj[1] ;
20406
20407 if (!args) SWIG_fail;
20408 swig_obj[0] = args;
20409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20410 if (!SWIG_IsOK(res1)) {
20411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20412 }
20413 arg1 = reinterpret_cast< wxDC * >(argp1);
20414 {
20415 PyThreadState* __tstate = wxPyBeginAllowThreads();
20416 (arg1)->DestroyClippingRegion();
20417 wxPyEndAllowThreads(__tstate);
20418 if (PyErr_Occurred()) SWIG_fail;
20419 }
20420 resultobj = SWIG_Py_Void();
20421 return resultobj;
20422 fail:
20423 return NULL;
20424 }
20425
20426
20427 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20428 PyObject *resultobj = 0;
20429 wxDC *arg1 = (wxDC *) 0 ;
20430 int *arg2 = (int *) 0 ;
20431 int *arg3 = (int *) 0 ;
20432 int *arg4 = (int *) 0 ;
20433 int *arg5 = (int *) 0 ;
20434 void *argp1 = 0 ;
20435 int res1 = 0 ;
20436 int temp2 ;
20437 int res2 = SWIG_TMPOBJ ;
20438 int temp3 ;
20439 int res3 = SWIG_TMPOBJ ;
20440 int temp4 ;
20441 int res4 = SWIG_TMPOBJ ;
20442 int temp5 ;
20443 int res5 = SWIG_TMPOBJ ;
20444 PyObject *swig_obj[1] ;
20445
20446 arg2 = &temp2;
20447 arg3 = &temp3;
20448 arg4 = &temp4;
20449 arg5 = &temp5;
20450 if (!args) SWIG_fail;
20451 swig_obj[0] = args;
20452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20453 if (!SWIG_IsOK(res1)) {
20454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20455 }
20456 arg1 = reinterpret_cast< wxDC * >(argp1);
20457 {
20458 PyThreadState* __tstate = wxPyBeginAllowThreads();
20459 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20460 wxPyEndAllowThreads(__tstate);
20461 if (PyErr_Occurred()) SWIG_fail;
20462 }
20463 resultobj = SWIG_Py_Void();
20464 if (SWIG_IsTmpObj(res2)) {
20465 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20466 } else {
20467 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20468 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20469 }
20470 if (SWIG_IsTmpObj(res3)) {
20471 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20472 } else {
20473 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20474 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20475 }
20476 if (SWIG_IsTmpObj(res4)) {
20477 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20478 } else {
20479 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20480 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20481 }
20482 if (SWIG_IsTmpObj(res5)) {
20483 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20484 } else {
20485 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20486 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20487 }
20488 return resultobj;
20489 fail:
20490 return NULL;
20491 }
20492
20493
20494 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20495 PyObject *resultobj = 0;
20496 wxDC *arg1 = (wxDC *) 0 ;
20497 wxRect result;
20498 void *argp1 = 0 ;
20499 int res1 = 0 ;
20500 PyObject *swig_obj[1] ;
20501
20502 if (!args) SWIG_fail;
20503 swig_obj[0] = args;
20504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20505 if (!SWIG_IsOK(res1)) {
20506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20507 }
20508 arg1 = reinterpret_cast< wxDC * >(argp1);
20509 {
20510 PyThreadState* __tstate = wxPyBeginAllowThreads();
20511 result = wxDC_GetClippingRect(arg1);
20512 wxPyEndAllowThreads(__tstate);
20513 if (PyErr_Occurred()) SWIG_fail;
20514 }
20515 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20516 return resultobj;
20517 fail:
20518 return NULL;
20519 }
20520
20521
20522 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20523 PyObject *resultobj = 0;
20524 wxDC *arg1 = (wxDC *) 0 ;
20525 int result;
20526 void *argp1 = 0 ;
20527 int res1 = 0 ;
20528 PyObject *swig_obj[1] ;
20529
20530 if (!args) SWIG_fail;
20531 swig_obj[0] = args;
20532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20533 if (!SWIG_IsOK(res1)) {
20534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20535 }
20536 arg1 = reinterpret_cast< wxDC * >(argp1);
20537 {
20538 PyThreadState* __tstate = wxPyBeginAllowThreads();
20539 result = (int)((wxDC const *)arg1)->GetCharHeight();
20540 wxPyEndAllowThreads(__tstate);
20541 if (PyErr_Occurred()) SWIG_fail;
20542 }
20543 resultobj = SWIG_From_int(static_cast< int >(result));
20544 return resultobj;
20545 fail:
20546 return NULL;
20547 }
20548
20549
20550 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20551 PyObject *resultobj = 0;
20552 wxDC *arg1 = (wxDC *) 0 ;
20553 int result;
20554 void *argp1 = 0 ;
20555 int res1 = 0 ;
20556 PyObject *swig_obj[1] ;
20557
20558 if (!args) SWIG_fail;
20559 swig_obj[0] = args;
20560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20561 if (!SWIG_IsOK(res1)) {
20562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20563 }
20564 arg1 = reinterpret_cast< wxDC * >(argp1);
20565 {
20566 PyThreadState* __tstate = wxPyBeginAllowThreads();
20567 result = (int)((wxDC const *)arg1)->GetCharWidth();
20568 wxPyEndAllowThreads(__tstate);
20569 if (PyErr_Occurred()) SWIG_fail;
20570 }
20571 resultobj = SWIG_From_int(static_cast< int >(result));
20572 return resultobj;
20573 fail:
20574 return NULL;
20575 }
20576
20577
20578 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20579 PyObject *resultobj = 0;
20580 wxDC *arg1 = (wxDC *) 0 ;
20581 wxString *arg2 = 0 ;
20582 int *arg3 = (int *) 0 ;
20583 int *arg4 = (int *) 0 ;
20584 void *argp1 = 0 ;
20585 int res1 = 0 ;
20586 bool temp2 = false ;
20587 int temp3 ;
20588 int res3 = SWIG_TMPOBJ ;
20589 int temp4 ;
20590 int res4 = SWIG_TMPOBJ ;
20591 PyObject * obj0 = 0 ;
20592 PyObject * obj1 = 0 ;
20593 char * kwnames[] = {
20594 (char *) "self",(char *) "string", NULL
20595 };
20596
20597 arg3 = &temp3;
20598 arg4 = &temp4;
20599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20601 if (!SWIG_IsOK(res1)) {
20602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20603 }
20604 arg1 = reinterpret_cast< wxDC * >(argp1);
20605 {
20606 arg2 = wxString_in_helper(obj1);
20607 if (arg2 == NULL) SWIG_fail;
20608 temp2 = true;
20609 }
20610 {
20611 PyThreadState* __tstate = wxPyBeginAllowThreads();
20612 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20613 wxPyEndAllowThreads(__tstate);
20614 if (PyErr_Occurred()) SWIG_fail;
20615 }
20616 resultobj = SWIG_Py_Void();
20617 if (SWIG_IsTmpObj(res3)) {
20618 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20619 } else {
20620 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20621 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20622 }
20623 if (SWIG_IsTmpObj(res4)) {
20624 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20625 } else {
20626 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20627 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20628 }
20629 {
20630 if (temp2)
20631 delete arg2;
20632 }
20633 return resultobj;
20634 fail:
20635 {
20636 if (temp2)
20637 delete arg2;
20638 }
20639 return NULL;
20640 }
20641
20642
20643 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20644 PyObject *resultobj = 0;
20645 wxDC *arg1 = (wxDC *) 0 ;
20646 wxString *arg2 = 0 ;
20647 int *arg3 = (int *) 0 ;
20648 int *arg4 = (int *) 0 ;
20649 int *arg5 = (int *) 0 ;
20650 int *arg6 = (int *) 0 ;
20651 wxFont *arg7 = (wxFont *) NULL ;
20652 void *argp1 = 0 ;
20653 int res1 = 0 ;
20654 bool temp2 = false ;
20655 int temp3 ;
20656 int res3 = SWIG_TMPOBJ ;
20657 int temp4 ;
20658 int res4 = SWIG_TMPOBJ ;
20659 int temp5 ;
20660 int res5 = SWIG_TMPOBJ ;
20661 int temp6 ;
20662 int res6 = SWIG_TMPOBJ ;
20663 void *argp7 = 0 ;
20664 int res7 = 0 ;
20665 PyObject * obj0 = 0 ;
20666 PyObject * obj1 = 0 ;
20667 PyObject * obj2 = 0 ;
20668 char * kwnames[] = {
20669 (char *) "self",(char *) "string",(char *) "font", NULL
20670 };
20671
20672 arg3 = &temp3;
20673 arg4 = &temp4;
20674 arg5 = &temp5;
20675 arg6 = &temp6;
20676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20678 if (!SWIG_IsOK(res1)) {
20679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20680 }
20681 arg1 = reinterpret_cast< wxDC * >(argp1);
20682 {
20683 arg2 = wxString_in_helper(obj1);
20684 if (arg2 == NULL) SWIG_fail;
20685 temp2 = true;
20686 }
20687 if (obj2) {
20688 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
20689 if (!SWIG_IsOK(res7)) {
20690 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
20691 }
20692 arg7 = reinterpret_cast< wxFont * >(argp7);
20693 }
20694 {
20695 PyThreadState* __tstate = wxPyBeginAllowThreads();
20696 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
20697 wxPyEndAllowThreads(__tstate);
20698 if (PyErr_Occurred()) SWIG_fail;
20699 }
20700 resultobj = SWIG_Py_Void();
20701 if (SWIG_IsTmpObj(res3)) {
20702 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20703 } else {
20704 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20705 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20706 }
20707 if (SWIG_IsTmpObj(res4)) {
20708 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20709 } else {
20710 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20711 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20712 }
20713 if (SWIG_IsTmpObj(res5)) {
20714 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20715 } else {
20716 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20717 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20718 }
20719 if (SWIG_IsTmpObj(res6)) {
20720 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
20721 } else {
20722 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20723 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
20724 }
20725 {
20726 if (temp2)
20727 delete arg2;
20728 }
20729 return resultobj;
20730 fail:
20731 {
20732 if (temp2)
20733 delete arg2;
20734 }
20735 return NULL;
20736 }
20737
20738
20739 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20740 PyObject *resultobj = 0;
20741 wxDC *arg1 = (wxDC *) 0 ;
20742 wxString *arg2 = 0 ;
20743 int *arg3 = (int *) 0 ;
20744 int *arg4 = (int *) 0 ;
20745 int *arg5 = (int *) 0 ;
20746 wxFont *arg6 = (wxFont *) NULL ;
20747 void *argp1 = 0 ;
20748 int res1 = 0 ;
20749 bool temp2 = false ;
20750 int temp3 ;
20751 int res3 = SWIG_TMPOBJ ;
20752 int temp4 ;
20753 int res4 = SWIG_TMPOBJ ;
20754 int temp5 ;
20755 int res5 = SWIG_TMPOBJ ;
20756 void *argp6 = 0 ;
20757 int res6 = 0 ;
20758 PyObject * obj0 = 0 ;
20759 PyObject * obj1 = 0 ;
20760 PyObject * obj2 = 0 ;
20761 char * kwnames[] = {
20762 (char *) "self",(char *) "text",(char *) "font", NULL
20763 };
20764
20765 arg3 = &temp3;
20766 arg4 = &temp4;
20767 arg5 = &temp5;
20768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20770 if (!SWIG_IsOK(res1)) {
20771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20772 }
20773 arg1 = reinterpret_cast< wxDC * >(argp1);
20774 {
20775 arg2 = wxString_in_helper(obj1);
20776 if (arg2 == NULL) SWIG_fail;
20777 temp2 = true;
20778 }
20779 if (obj2) {
20780 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
20781 if (!SWIG_IsOK(res6)) {
20782 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
20783 }
20784 arg6 = reinterpret_cast< wxFont * >(argp6);
20785 }
20786 {
20787 PyThreadState* __tstate = wxPyBeginAllowThreads();
20788 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
20789 wxPyEndAllowThreads(__tstate);
20790 if (PyErr_Occurred()) SWIG_fail;
20791 }
20792 resultobj = SWIG_Py_Void();
20793 if (SWIG_IsTmpObj(res3)) {
20794 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20795 } else {
20796 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20797 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20798 }
20799 if (SWIG_IsTmpObj(res4)) {
20800 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20801 } else {
20802 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20803 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20804 }
20805 if (SWIG_IsTmpObj(res5)) {
20806 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20807 } else {
20808 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20809 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20810 }
20811 {
20812 if (temp2)
20813 delete arg2;
20814 }
20815 return resultobj;
20816 fail:
20817 {
20818 if (temp2)
20819 delete arg2;
20820 }
20821 return NULL;
20822 }
20823
20824
20825 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20826 PyObject *resultobj = 0;
20827 wxDC *arg1 = (wxDC *) 0 ;
20828 wxString *arg2 = 0 ;
20829 wxArrayInt result;
20830 void *argp1 = 0 ;
20831 int res1 = 0 ;
20832 bool temp2 = false ;
20833 PyObject * obj0 = 0 ;
20834 PyObject * obj1 = 0 ;
20835 char * kwnames[] = {
20836 (char *) "self",(char *) "text", NULL
20837 };
20838
20839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
20840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20841 if (!SWIG_IsOK(res1)) {
20842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
20843 }
20844 arg1 = reinterpret_cast< wxDC * >(argp1);
20845 {
20846 arg2 = wxString_in_helper(obj1);
20847 if (arg2 == NULL) SWIG_fail;
20848 temp2 = true;
20849 }
20850 {
20851 PyThreadState* __tstate = wxPyBeginAllowThreads();
20852 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
20853 wxPyEndAllowThreads(__tstate);
20854 if (PyErr_Occurred()) SWIG_fail;
20855 }
20856 {
20857 resultobj = wxArrayInt2PyList_helper(result);
20858 }
20859 {
20860 if (temp2)
20861 delete arg2;
20862 }
20863 return resultobj;
20864 fail:
20865 {
20866 if (temp2)
20867 delete arg2;
20868 }
20869 return NULL;
20870 }
20871
20872
20873 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20874 PyObject *resultobj = 0;
20875 wxDC *arg1 = (wxDC *) 0 ;
20876 wxSize result;
20877 void *argp1 = 0 ;
20878 int res1 = 0 ;
20879 PyObject *swig_obj[1] ;
20880
20881 if (!args) SWIG_fail;
20882 swig_obj[0] = args;
20883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20884 if (!SWIG_IsOK(res1)) {
20885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
20886 }
20887 arg1 = reinterpret_cast< wxDC * >(argp1);
20888 {
20889 PyThreadState* __tstate = wxPyBeginAllowThreads();
20890 result = (arg1)->GetSize();
20891 wxPyEndAllowThreads(__tstate);
20892 if (PyErr_Occurred()) SWIG_fail;
20893 }
20894 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20895 return resultobj;
20896 fail:
20897 return NULL;
20898 }
20899
20900
20901 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20902 PyObject *resultobj = 0;
20903 wxDC *arg1 = (wxDC *) 0 ;
20904 int *arg2 = (int *) 0 ;
20905 int *arg3 = (int *) 0 ;
20906 void *argp1 = 0 ;
20907 int res1 = 0 ;
20908 int temp2 ;
20909 int res2 = SWIG_TMPOBJ ;
20910 int temp3 ;
20911 int res3 = SWIG_TMPOBJ ;
20912 PyObject *swig_obj[1] ;
20913
20914 arg2 = &temp2;
20915 arg3 = &temp3;
20916 if (!args) SWIG_fail;
20917 swig_obj[0] = args;
20918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20919 if (!SWIG_IsOK(res1)) {
20920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
20921 }
20922 arg1 = reinterpret_cast< wxDC * >(argp1);
20923 {
20924 PyThreadState* __tstate = wxPyBeginAllowThreads();
20925 (arg1)->GetSize(arg2,arg3);
20926 wxPyEndAllowThreads(__tstate);
20927 if (PyErr_Occurred()) SWIG_fail;
20928 }
20929 resultobj = SWIG_Py_Void();
20930 if (SWIG_IsTmpObj(res2)) {
20931 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20932 } else {
20933 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20934 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20935 }
20936 if (SWIG_IsTmpObj(res3)) {
20937 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20938 } else {
20939 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20940 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20941 }
20942 return resultobj;
20943 fail:
20944 return NULL;
20945 }
20946
20947
20948 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20949 PyObject *resultobj = 0;
20950 wxDC *arg1 = (wxDC *) 0 ;
20951 wxSize result;
20952 void *argp1 = 0 ;
20953 int res1 = 0 ;
20954 PyObject *swig_obj[1] ;
20955
20956 if (!args) SWIG_fail;
20957 swig_obj[0] = args;
20958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20959 if (!SWIG_IsOK(res1)) {
20960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
20961 }
20962 arg1 = reinterpret_cast< wxDC * >(argp1);
20963 {
20964 PyThreadState* __tstate = wxPyBeginAllowThreads();
20965 result = ((wxDC const *)arg1)->GetSizeMM();
20966 wxPyEndAllowThreads(__tstate);
20967 if (PyErr_Occurred()) SWIG_fail;
20968 }
20969 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20970 return resultobj;
20971 fail:
20972 return NULL;
20973 }
20974
20975
20976 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20977 PyObject *resultobj = 0;
20978 wxDC *arg1 = (wxDC *) 0 ;
20979 int *arg2 = (int *) 0 ;
20980 int *arg3 = (int *) 0 ;
20981 void *argp1 = 0 ;
20982 int res1 = 0 ;
20983 int temp2 ;
20984 int res2 = SWIG_TMPOBJ ;
20985 int temp3 ;
20986 int res3 = SWIG_TMPOBJ ;
20987 PyObject *swig_obj[1] ;
20988
20989 arg2 = &temp2;
20990 arg3 = &temp3;
20991 if (!args) SWIG_fail;
20992 swig_obj[0] = args;
20993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20994 if (!SWIG_IsOK(res1)) {
20995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
20996 }
20997 arg1 = reinterpret_cast< wxDC * >(argp1);
20998 {
20999 PyThreadState* __tstate = wxPyBeginAllowThreads();
21000 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21001 wxPyEndAllowThreads(__tstate);
21002 if (PyErr_Occurred()) SWIG_fail;
21003 }
21004 resultobj = SWIG_Py_Void();
21005 if (SWIG_IsTmpObj(res2)) {
21006 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21007 } else {
21008 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21009 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21010 }
21011 if (SWIG_IsTmpObj(res3)) {
21012 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21013 } else {
21014 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21015 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21016 }
21017 return resultobj;
21018 fail:
21019 return NULL;
21020 }
21021
21022
21023 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21024 PyObject *resultobj = 0;
21025 wxDC *arg1 = (wxDC *) 0 ;
21026 int arg2 ;
21027 int result;
21028 void *argp1 = 0 ;
21029 int res1 = 0 ;
21030 int val2 ;
21031 int ecode2 = 0 ;
21032 PyObject * obj0 = 0 ;
21033 PyObject * obj1 = 0 ;
21034 char * kwnames[] = {
21035 (char *) "self",(char *) "x", NULL
21036 };
21037
21038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21040 if (!SWIG_IsOK(res1)) {
21041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21042 }
21043 arg1 = reinterpret_cast< wxDC * >(argp1);
21044 ecode2 = SWIG_AsVal_int(obj1, &val2);
21045 if (!SWIG_IsOK(ecode2)) {
21046 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21047 }
21048 arg2 = static_cast< int >(val2);
21049 {
21050 PyThreadState* __tstate = wxPyBeginAllowThreads();
21051 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21052 wxPyEndAllowThreads(__tstate);
21053 if (PyErr_Occurred()) SWIG_fail;
21054 }
21055 resultobj = SWIG_From_int(static_cast< int >(result));
21056 return resultobj;
21057 fail:
21058 return NULL;
21059 }
21060
21061
21062 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21063 PyObject *resultobj = 0;
21064 wxDC *arg1 = (wxDC *) 0 ;
21065 int arg2 ;
21066 int result;
21067 void *argp1 = 0 ;
21068 int res1 = 0 ;
21069 int val2 ;
21070 int ecode2 = 0 ;
21071 PyObject * obj0 = 0 ;
21072 PyObject * obj1 = 0 ;
21073 char * kwnames[] = {
21074 (char *) "self",(char *) "y", NULL
21075 };
21076
21077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21079 if (!SWIG_IsOK(res1)) {
21080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21081 }
21082 arg1 = reinterpret_cast< wxDC * >(argp1);
21083 ecode2 = SWIG_AsVal_int(obj1, &val2);
21084 if (!SWIG_IsOK(ecode2)) {
21085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21086 }
21087 arg2 = static_cast< int >(val2);
21088 {
21089 PyThreadState* __tstate = wxPyBeginAllowThreads();
21090 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21091 wxPyEndAllowThreads(__tstate);
21092 if (PyErr_Occurred()) SWIG_fail;
21093 }
21094 resultobj = SWIG_From_int(static_cast< int >(result));
21095 return resultobj;
21096 fail:
21097 return NULL;
21098 }
21099
21100
21101 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21102 PyObject *resultobj = 0;
21103 wxDC *arg1 = (wxDC *) 0 ;
21104 int arg2 ;
21105 int result;
21106 void *argp1 = 0 ;
21107 int res1 = 0 ;
21108 int val2 ;
21109 int ecode2 = 0 ;
21110 PyObject * obj0 = 0 ;
21111 PyObject * obj1 = 0 ;
21112 char * kwnames[] = {
21113 (char *) "self",(char *) "x", NULL
21114 };
21115
21116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21118 if (!SWIG_IsOK(res1)) {
21119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21120 }
21121 arg1 = reinterpret_cast< wxDC * >(argp1);
21122 ecode2 = SWIG_AsVal_int(obj1, &val2);
21123 if (!SWIG_IsOK(ecode2)) {
21124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21125 }
21126 arg2 = static_cast< int >(val2);
21127 {
21128 PyThreadState* __tstate = wxPyBeginAllowThreads();
21129 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21130 wxPyEndAllowThreads(__tstate);
21131 if (PyErr_Occurred()) SWIG_fail;
21132 }
21133 resultobj = SWIG_From_int(static_cast< int >(result));
21134 return resultobj;
21135 fail:
21136 return NULL;
21137 }
21138
21139
21140 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21141 PyObject *resultobj = 0;
21142 wxDC *arg1 = (wxDC *) 0 ;
21143 int arg2 ;
21144 int result;
21145 void *argp1 = 0 ;
21146 int res1 = 0 ;
21147 int val2 ;
21148 int ecode2 = 0 ;
21149 PyObject * obj0 = 0 ;
21150 PyObject * obj1 = 0 ;
21151 char * kwnames[] = {
21152 (char *) "self",(char *) "y", NULL
21153 };
21154
21155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21157 if (!SWIG_IsOK(res1)) {
21158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21159 }
21160 arg1 = reinterpret_cast< wxDC * >(argp1);
21161 ecode2 = SWIG_AsVal_int(obj1, &val2);
21162 if (!SWIG_IsOK(ecode2)) {
21163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21164 }
21165 arg2 = static_cast< int >(val2);
21166 {
21167 PyThreadState* __tstate = wxPyBeginAllowThreads();
21168 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21169 wxPyEndAllowThreads(__tstate);
21170 if (PyErr_Occurred()) SWIG_fail;
21171 }
21172 resultobj = SWIG_From_int(static_cast< int >(result));
21173 return resultobj;
21174 fail:
21175 return NULL;
21176 }
21177
21178
21179 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21180 PyObject *resultobj = 0;
21181 wxDC *arg1 = (wxDC *) 0 ;
21182 int arg2 ;
21183 int result;
21184 void *argp1 = 0 ;
21185 int res1 = 0 ;
21186 int val2 ;
21187 int ecode2 = 0 ;
21188 PyObject * obj0 = 0 ;
21189 PyObject * obj1 = 0 ;
21190 char * kwnames[] = {
21191 (char *) "self",(char *) "x", NULL
21192 };
21193
21194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21196 if (!SWIG_IsOK(res1)) {
21197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21198 }
21199 arg1 = reinterpret_cast< wxDC * >(argp1);
21200 ecode2 = SWIG_AsVal_int(obj1, &val2);
21201 if (!SWIG_IsOK(ecode2)) {
21202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21203 }
21204 arg2 = static_cast< int >(val2);
21205 {
21206 PyThreadState* __tstate = wxPyBeginAllowThreads();
21207 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21208 wxPyEndAllowThreads(__tstate);
21209 if (PyErr_Occurred()) SWIG_fail;
21210 }
21211 resultobj = SWIG_From_int(static_cast< int >(result));
21212 return resultobj;
21213 fail:
21214 return NULL;
21215 }
21216
21217
21218 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21219 PyObject *resultobj = 0;
21220 wxDC *arg1 = (wxDC *) 0 ;
21221 int arg2 ;
21222 int result;
21223 void *argp1 = 0 ;
21224 int res1 = 0 ;
21225 int val2 ;
21226 int ecode2 = 0 ;
21227 PyObject * obj0 = 0 ;
21228 PyObject * obj1 = 0 ;
21229 char * kwnames[] = {
21230 (char *) "self",(char *) "y", NULL
21231 };
21232
21233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21235 if (!SWIG_IsOK(res1)) {
21236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21237 }
21238 arg1 = reinterpret_cast< wxDC * >(argp1);
21239 ecode2 = SWIG_AsVal_int(obj1, &val2);
21240 if (!SWIG_IsOK(ecode2)) {
21241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21242 }
21243 arg2 = static_cast< int >(val2);
21244 {
21245 PyThreadState* __tstate = wxPyBeginAllowThreads();
21246 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21247 wxPyEndAllowThreads(__tstate);
21248 if (PyErr_Occurred()) SWIG_fail;
21249 }
21250 resultobj = SWIG_From_int(static_cast< int >(result));
21251 return resultobj;
21252 fail:
21253 return NULL;
21254 }
21255
21256
21257 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21258 PyObject *resultobj = 0;
21259 wxDC *arg1 = (wxDC *) 0 ;
21260 int arg2 ;
21261 int result;
21262 void *argp1 = 0 ;
21263 int res1 = 0 ;
21264 int val2 ;
21265 int ecode2 = 0 ;
21266 PyObject * obj0 = 0 ;
21267 PyObject * obj1 = 0 ;
21268 char * kwnames[] = {
21269 (char *) "self",(char *) "x", NULL
21270 };
21271
21272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21274 if (!SWIG_IsOK(res1)) {
21275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21276 }
21277 arg1 = reinterpret_cast< wxDC * >(argp1);
21278 ecode2 = SWIG_AsVal_int(obj1, &val2);
21279 if (!SWIG_IsOK(ecode2)) {
21280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21281 }
21282 arg2 = static_cast< int >(val2);
21283 {
21284 PyThreadState* __tstate = wxPyBeginAllowThreads();
21285 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21286 wxPyEndAllowThreads(__tstate);
21287 if (PyErr_Occurred()) SWIG_fail;
21288 }
21289 resultobj = SWIG_From_int(static_cast< int >(result));
21290 return resultobj;
21291 fail:
21292 return NULL;
21293 }
21294
21295
21296 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21297 PyObject *resultobj = 0;
21298 wxDC *arg1 = (wxDC *) 0 ;
21299 int arg2 ;
21300 int result;
21301 void *argp1 = 0 ;
21302 int res1 = 0 ;
21303 int val2 ;
21304 int ecode2 = 0 ;
21305 PyObject * obj0 = 0 ;
21306 PyObject * obj1 = 0 ;
21307 char * kwnames[] = {
21308 (char *) "self",(char *) "y", NULL
21309 };
21310
21311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21313 if (!SWIG_IsOK(res1)) {
21314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21315 }
21316 arg1 = reinterpret_cast< wxDC * >(argp1);
21317 ecode2 = SWIG_AsVal_int(obj1, &val2);
21318 if (!SWIG_IsOK(ecode2)) {
21319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21320 }
21321 arg2 = static_cast< int >(val2);
21322 {
21323 PyThreadState* __tstate = wxPyBeginAllowThreads();
21324 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21325 wxPyEndAllowThreads(__tstate);
21326 if (PyErr_Occurred()) SWIG_fail;
21327 }
21328 resultobj = SWIG_From_int(static_cast< int >(result));
21329 return resultobj;
21330 fail:
21331 return NULL;
21332 }
21333
21334
21335 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21336 PyObject *resultobj = 0;
21337 wxDC *arg1 = (wxDC *) 0 ;
21338 bool result;
21339 void *argp1 = 0 ;
21340 int res1 = 0 ;
21341 PyObject *swig_obj[1] ;
21342
21343 if (!args) SWIG_fail;
21344 swig_obj[0] = args;
21345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21346 if (!SWIG_IsOK(res1)) {
21347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21348 }
21349 arg1 = reinterpret_cast< wxDC * >(argp1);
21350 {
21351 PyThreadState* __tstate = wxPyBeginAllowThreads();
21352 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21353 wxPyEndAllowThreads(__tstate);
21354 if (PyErr_Occurred()) SWIG_fail;
21355 }
21356 {
21357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21358 }
21359 return resultobj;
21360 fail:
21361 return NULL;
21362 }
21363
21364
21365 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21366 PyObject *resultobj = 0;
21367 wxDC *arg1 = (wxDC *) 0 ;
21368 bool result;
21369 void *argp1 = 0 ;
21370 int res1 = 0 ;
21371 PyObject *swig_obj[1] ;
21372
21373 if (!args) SWIG_fail;
21374 swig_obj[0] = args;
21375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21376 if (!SWIG_IsOK(res1)) {
21377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21378 }
21379 arg1 = reinterpret_cast< wxDC * >(argp1);
21380 {
21381 PyThreadState* __tstate = wxPyBeginAllowThreads();
21382 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21383 wxPyEndAllowThreads(__tstate);
21384 if (PyErr_Occurred()) SWIG_fail;
21385 }
21386 {
21387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21388 }
21389 return resultobj;
21390 fail:
21391 return NULL;
21392 }
21393
21394
21395 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21396 PyObject *resultobj = 0;
21397 wxDC *arg1 = (wxDC *) 0 ;
21398 int result;
21399 void *argp1 = 0 ;
21400 int res1 = 0 ;
21401 PyObject *swig_obj[1] ;
21402
21403 if (!args) SWIG_fail;
21404 swig_obj[0] = args;
21405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21406 if (!SWIG_IsOK(res1)) {
21407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21408 }
21409 arg1 = reinterpret_cast< wxDC * >(argp1);
21410 {
21411 PyThreadState* __tstate = wxPyBeginAllowThreads();
21412 result = (int)((wxDC const *)arg1)->GetDepth();
21413 wxPyEndAllowThreads(__tstate);
21414 if (PyErr_Occurred()) SWIG_fail;
21415 }
21416 resultobj = SWIG_From_int(static_cast< int >(result));
21417 return resultobj;
21418 fail:
21419 return NULL;
21420 }
21421
21422
21423 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21424 PyObject *resultobj = 0;
21425 wxDC *arg1 = (wxDC *) 0 ;
21426 wxSize result;
21427 void *argp1 = 0 ;
21428 int res1 = 0 ;
21429 PyObject *swig_obj[1] ;
21430
21431 if (!args) SWIG_fail;
21432 swig_obj[0] = args;
21433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21434 if (!SWIG_IsOK(res1)) {
21435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21436 }
21437 arg1 = reinterpret_cast< wxDC * >(argp1);
21438 {
21439 PyThreadState* __tstate = wxPyBeginAllowThreads();
21440 result = ((wxDC const *)arg1)->GetPPI();
21441 wxPyEndAllowThreads(__tstate);
21442 if (PyErr_Occurred()) SWIG_fail;
21443 }
21444 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21445 return resultobj;
21446 fail:
21447 return NULL;
21448 }
21449
21450
21451 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21452 PyObject *resultobj = 0;
21453 wxDC *arg1 = (wxDC *) 0 ;
21454 bool result;
21455 void *argp1 = 0 ;
21456 int res1 = 0 ;
21457 PyObject *swig_obj[1] ;
21458
21459 if (!args) SWIG_fail;
21460 swig_obj[0] = args;
21461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21462 if (!SWIG_IsOK(res1)) {
21463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
21464 }
21465 arg1 = reinterpret_cast< wxDC * >(argp1);
21466 {
21467 PyThreadState* __tstate = wxPyBeginAllowThreads();
21468 result = (bool)((wxDC const *)arg1)->IsOk();
21469 wxPyEndAllowThreads(__tstate);
21470 if (PyErr_Occurred()) SWIG_fail;
21471 }
21472 {
21473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21474 }
21475 return resultobj;
21476 fail:
21477 return NULL;
21478 }
21479
21480
21481 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21482 PyObject *resultobj = 0;
21483 wxDC *arg1 = (wxDC *) 0 ;
21484 int result;
21485 void *argp1 = 0 ;
21486 int res1 = 0 ;
21487 PyObject *swig_obj[1] ;
21488
21489 if (!args) SWIG_fail;
21490 swig_obj[0] = args;
21491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21492 if (!SWIG_IsOK(res1)) {
21493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21494 }
21495 arg1 = reinterpret_cast< wxDC * >(argp1);
21496 {
21497 PyThreadState* __tstate = wxPyBeginAllowThreads();
21498 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21499 wxPyEndAllowThreads(__tstate);
21500 if (PyErr_Occurred()) SWIG_fail;
21501 }
21502 resultobj = SWIG_From_int(static_cast< int >(result));
21503 return resultobj;
21504 fail:
21505 return NULL;
21506 }
21507
21508
21509 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21510 PyObject *resultobj = 0;
21511 wxDC *arg1 = (wxDC *) 0 ;
21512 wxBrush *result = 0 ;
21513 void *argp1 = 0 ;
21514 int res1 = 0 ;
21515 PyObject *swig_obj[1] ;
21516
21517 if (!args) SWIG_fail;
21518 swig_obj[0] = args;
21519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21520 if (!SWIG_IsOK(res1)) {
21521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21522 }
21523 arg1 = reinterpret_cast< wxDC * >(argp1);
21524 {
21525 PyThreadState* __tstate = wxPyBeginAllowThreads();
21526 {
21527 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21528 result = (wxBrush *) &_result_ref;
21529 }
21530 wxPyEndAllowThreads(__tstate);
21531 if (PyErr_Occurred()) SWIG_fail;
21532 }
21533 {
21534 wxBrush* resultptr = new wxBrush(*result);
21535 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21536 }
21537 return resultobj;
21538 fail:
21539 return NULL;
21540 }
21541
21542
21543 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21544 PyObject *resultobj = 0;
21545 wxDC *arg1 = (wxDC *) 0 ;
21546 wxBrush *result = 0 ;
21547 void *argp1 = 0 ;
21548 int res1 = 0 ;
21549 PyObject *swig_obj[1] ;
21550
21551 if (!args) SWIG_fail;
21552 swig_obj[0] = args;
21553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21554 if (!SWIG_IsOK(res1)) {
21555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21556 }
21557 arg1 = reinterpret_cast< wxDC * >(argp1);
21558 {
21559 PyThreadState* __tstate = wxPyBeginAllowThreads();
21560 {
21561 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21562 result = (wxBrush *) &_result_ref;
21563 }
21564 wxPyEndAllowThreads(__tstate);
21565 if (PyErr_Occurred()) SWIG_fail;
21566 }
21567 {
21568 wxBrush* resultptr = new wxBrush(*result);
21569 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21570 }
21571 return resultobj;
21572 fail:
21573 return NULL;
21574 }
21575
21576
21577 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21578 PyObject *resultobj = 0;
21579 wxDC *arg1 = (wxDC *) 0 ;
21580 wxFont *result = 0 ;
21581 void *argp1 = 0 ;
21582 int res1 = 0 ;
21583 PyObject *swig_obj[1] ;
21584
21585 if (!args) SWIG_fail;
21586 swig_obj[0] = args;
21587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21588 if (!SWIG_IsOK(res1)) {
21589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21590 }
21591 arg1 = reinterpret_cast< wxDC * >(argp1);
21592 {
21593 PyThreadState* __tstate = wxPyBeginAllowThreads();
21594 {
21595 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21596 result = (wxFont *) &_result_ref;
21597 }
21598 wxPyEndAllowThreads(__tstate);
21599 if (PyErr_Occurred()) SWIG_fail;
21600 }
21601 {
21602 wxFont* resultptr = new wxFont(*result);
21603 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21604 }
21605 return resultobj;
21606 fail:
21607 return NULL;
21608 }
21609
21610
21611 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21612 PyObject *resultobj = 0;
21613 wxDC *arg1 = (wxDC *) 0 ;
21614 wxPen *result = 0 ;
21615 void *argp1 = 0 ;
21616 int res1 = 0 ;
21617 PyObject *swig_obj[1] ;
21618
21619 if (!args) SWIG_fail;
21620 swig_obj[0] = args;
21621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21622 if (!SWIG_IsOK(res1)) {
21623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21624 }
21625 arg1 = reinterpret_cast< wxDC * >(argp1);
21626 {
21627 PyThreadState* __tstate = wxPyBeginAllowThreads();
21628 {
21629 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21630 result = (wxPen *) &_result_ref;
21631 }
21632 wxPyEndAllowThreads(__tstate);
21633 if (PyErr_Occurred()) SWIG_fail;
21634 }
21635 {
21636 wxPen* resultptr = new wxPen(*result);
21637 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
21638 }
21639 return resultobj;
21640 fail:
21641 return NULL;
21642 }
21643
21644
21645 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21646 PyObject *resultobj = 0;
21647 wxDC *arg1 = (wxDC *) 0 ;
21648 wxColour *result = 0 ;
21649 void *argp1 = 0 ;
21650 int res1 = 0 ;
21651 PyObject *swig_obj[1] ;
21652
21653 if (!args) SWIG_fail;
21654 swig_obj[0] = args;
21655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21656 if (!SWIG_IsOK(res1)) {
21657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21658 }
21659 arg1 = reinterpret_cast< wxDC * >(argp1);
21660 {
21661 PyThreadState* __tstate = wxPyBeginAllowThreads();
21662 {
21663 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
21664 result = (wxColour *) &_result_ref;
21665 }
21666 wxPyEndAllowThreads(__tstate);
21667 if (PyErr_Occurred()) SWIG_fail;
21668 }
21669 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21670 return resultobj;
21671 fail:
21672 return NULL;
21673 }
21674
21675
21676 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21677 PyObject *resultobj = 0;
21678 wxDC *arg1 = (wxDC *) 0 ;
21679 wxColour *result = 0 ;
21680 void *argp1 = 0 ;
21681 int res1 = 0 ;
21682 PyObject *swig_obj[1] ;
21683
21684 if (!args) SWIG_fail;
21685 swig_obj[0] = args;
21686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21687 if (!SWIG_IsOK(res1)) {
21688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
21689 }
21690 arg1 = reinterpret_cast< wxDC * >(argp1);
21691 {
21692 PyThreadState* __tstate = wxPyBeginAllowThreads();
21693 {
21694 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
21695 result = (wxColour *) &_result_ref;
21696 }
21697 wxPyEndAllowThreads(__tstate);
21698 if (PyErr_Occurred()) SWIG_fail;
21699 }
21700 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21701 return resultobj;
21702 fail:
21703 return NULL;
21704 }
21705
21706
21707 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21708 PyObject *resultobj = 0;
21709 wxDC *arg1 = (wxDC *) 0 ;
21710 wxColour *arg2 = 0 ;
21711 void *argp1 = 0 ;
21712 int res1 = 0 ;
21713 wxColour temp2 ;
21714 PyObject * obj0 = 0 ;
21715 PyObject * obj1 = 0 ;
21716 char * kwnames[] = {
21717 (char *) "self",(char *) "colour", NULL
21718 };
21719
21720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
21721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21722 if (!SWIG_IsOK(res1)) {
21723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
21724 }
21725 arg1 = reinterpret_cast< wxDC * >(argp1);
21726 {
21727 arg2 = &temp2;
21728 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21729 }
21730 {
21731 PyThreadState* __tstate = wxPyBeginAllowThreads();
21732 (arg1)->SetTextForeground((wxColour const &)*arg2);
21733 wxPyEndAllowThreads(__tstate);
21734 if (PyErr_Occurred()) SWIG_fail;
21735 }
21736 resultobj = SWIG_Py_Void();
21737 return resultobj;
21738 fail:
21739 return NULL;
21740 }
21741
21742
21743 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21744 PyObject *resultobj = 0;
21745 wxDC *arg1 = (wxDC *) 0 ;
21746 wxColour *arg2 = 0 ;
21747 void *argp1 = 0 ;
21748 int res1 = 0 ;
21749 wxColour temp2 ;
21750 PyObject * obj0 = 0 ;
21751 PyObject * obj1 = 0 ;
21752 char * kwnames[] = {
21753 (char *) "self",(char *) "colour", NULL
21754 };
21755
21756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21758 if (!SWIG_IsOK(res1)) {
21759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21760 }
21761 arg1 = reinterpret_cast< wxDC * >(argp1);
21762 {
21763 arg2 = &temp2;
21764 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21765 }
21766 {
21767 PyThreadState* __tstate = wxPyBeginAllowThreads();
21768 (arg1)->SetTextBackground((wxColour const &)*arg2);
21769 wxPyEndAllowThreads(__tstate);
21770 if (PyErr_Occurred()) SWIG_fail;
21771 }
21772 resultobj = SWIG_Py_Void();
21773 return resultobj;
21774 fail:
21775 return NULL;
21776 }
21777
21778
21779 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21780 PyObject *resultobj = 0;
21781 wxDC *arg1 = (wxDC *) 0 ;
21782 int result;
21783 void *argp1 = 0 ;
21784 int res1 = 0 ;
21785 PyObject *swig_obj[1] ;
21786
21787 if (!args) SWIG_fail;
21788 swig_obj[0] = args;
21789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21790 if (!SWIG_IsOK(res1)) {
21791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21792 }
21793 arg1 = reinterpret_cast< wxDC * >(argp1);
21794 {
21795 PyThreadState* __tstate = wxPyBeginAllowThreads();
21796 result = (int)((wxDC const *)arg1)->GetMapMode();
21797 wxPyEndAllowThreads(__tstate);
21798 if (PyErr_Occurred()) SWIG_fail;
21799 }
21800 resultobj = SWIG_From_int(static_cast< int >(result));
21801 return resultobj;
21802 fail:
21803 return NULL;
21804 }
21805
21806
21807 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21808 PyObject *resultobj = 0;
21809 wxDC *arg1 = (wxDC *) 0 ;
21810 int arg2 ;
21811 void *argp1 = 0 ;
21812 int res1 = 0 ;
21813 int val2 ;
21814 int ecode2 = 0 ;
21815 PyObject * obj0 = 0 ;
21816 PyObject * obj1 = 0 ;
21817 char * kwnames[] = {
21818 (char *) "self",(char *) "mode", NULL
21819 };
21820
21821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
21822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21823 if (!SWIG_IsOK(res1)) {
21824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
21825 }
21826 arg1 = reinterpret_cast< wxDC * >(argp1);
21827 ecode2 = SWIG_AsVal_int(obj1, &val2);
21828 if (!SWIG_IsOK(ecode2)) {
21829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
21830 }
21831 arg2 = static_cast< int >(val2);
21832 {
21833 PyThreadState* __tstate = wxPyBeginAllowThreads();
21834 (arg1)->SetMapMode(arg2);
21835 wxPyEndAllowThreads(__tstate);
21836 if (PyErr_Occurred()) SWIG_fail;
21837 }
21838 resultobj = SWIG_Py_Void();
21839 return resultobj;
21840 fail:
21841 return NULL;
21842 }
21843
21844
21845 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21846 PyObject *resultobj = 0;
21847 wxDC *arg1 = (wxDC *) 0 ;
21848 double *arg2 = (double *) 0 ;
21849 double *arg3 = (double *) 0 ;
21850 void *argp1 = 0 ;
21851 int res1 = 0 ;
21852 double temp2 ;
21853 int res2 = SWIG_TMPOBJ ;
21854 double temp3 ;
21855 int res3 = SWIG_TMPOBJ ;
21856 PyObject *swig_obj[1] ;
21857
21858 arg2 = &temp2;
21859 arg3 = &temp3;
21860 if (!args) SWIG_fail;
21861 swig_obj[0] = args;
21862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21863 if (!SWIG_IsOK(res1)) {
21864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
21865 }
21866 arg1 = reinterpret_cast< wxDC * >(argp1);
21867 {
21868 PyThreadState* __tstate = wxPyBeginAllowThreads();
21869 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
21870 wxPyEndAllowThreads(__tstate);
21871 if (PyErr_Occurred()) SWIG_fail;
21872 }
21873 resultobj = SWIG_Py_Void();
21874 if (SWIG_IsTmpObj(res2)) {
21875 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21876 } else {
21877 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21878 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21879 }
21880 if (SWIG_IsTmpObj(res3)) {
21881 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21882 } else {
21883 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21884 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21885 }
21886 return resultobj;
21887 fail:
21888 return NULL;
21889 }
21890
21891
21892 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21893 PyObject *resultobj = 0;
21894 wxDC *arg1 = (wxDC *) 0 ;
21895 double arg2 ;
21896 double arg3 ;
21897 void *argp1 = 0 ;
21898 int res1 = 0 ;
21899 double val2 ;
21900 int ecode2 = 0 ;
21901 double val3 ;
21902 int ecode3 = 0 ;
21903 PyObject * obj0 = 0 ;
21904 PyObject * obj1 = 0 ;
21905 PyObject * obj2 = 0 ;
21906 char * kwnames[] = {
21907 (char *) "self",(char *) "x",(char *) "y", NULL
21908 };
21909
21910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21912 if (!SWIG_IsOK(res1)) {
21913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
21914 }
21915 arg1 = reinterpret_cast< wxDC * >(argp1);
21916 ecode2 = SWIG_AsVal_double(obj1, &val2);
21917 if (!SWIG_IsOK(ecode2)) {
21918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
21919 }
21920 arg2 = static_cast< double >(val2);
21921 ecode3 = SWIG_AsVal_double(obj2, &val3);
21922 if (!SWIG_IsOK(ecode3)) {
21923 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
21924 }
21925 arg3 = static_cast< double >(val3);
21926 {
21927 PyThreadState* __tstate = wxPyBeginAllowThreads();
21928 (arg1)->SetUserScale(arg2,arg3);
21929 wxPyEndAllowThreads(__tstate);
21930 if (PyErr_Occurred()) SWIG_fail;
21931 }
21932 resultobj = SWIG_Py_Void();
21933 return resultobj;
21934 fail:
21935 return NULL;
21936 }
21937
21938
21939 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21940 PyObject *resultobj = 0;
21941 wxDC *arg1 = (wxDC *) 0 ;
21942 double *arg2 = (double *) 0 ;
21943 double *arg3 = (double *) 0 ;
21944 void *argp1 = 0 ;
21945 int res1 = 0 ;
21946 double temp2 ;
21947 int res2 = SWIG_TMPOBJ ;
21948 double temp3 ;
21949 int res3 = SWIG_TMPOBJ ;
21950 PyObject *swig_obj[1] ;
21951
21952 arg2 = &temp2;
21953 arg3 = &temp3;
21954 if (!args) SWIG_fail;
21955 swig_obj[0] = args;
21956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21957 if (!SWIG_IsOK(res1)) {
21958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21959 }
21960 arg1 = reinterpret_cast< wxDC * >(argp1);
21961 {
21962 PyThreadState* __tstate = wxPyBeginAllowThreads();
21963 (arg1)->GetLogicalScale(arg2,arg3);
21964 wxPyEndAllowThreads(__tstate);
21965 if (PyErr_Occurred()) SWIG_fail;
21966 }
21967 resultobj = SWIG_Py_Void();
21968 if (SWIG_IsTmpObj(res2)) {
21969 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21970 } else {
21971 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21972 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21973 }
21974 if (SWIG_IsTmpObj(res3)) {
21975 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21976 } else {
21977 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21978 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21979 }
21980 return resultobj;
21981 fail:
21982 return NULL;
21983 }
21984
21985
21986 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21987 PyObject *resultobj = 0;
21988 wxDC *arg1 = (wxDC *) 0 ;
21989 double arg2 ;
21990 double arg3 ;
21991 void *argp1 = 0 ;
21992 int res1 = 0 ;
21993 double val2 ;
21994 int ecode2 = 0 ;
21995 double val3 ;
21996 int ecode3 = 0 ;
21997 PyObject * obj0 = 0 ;
21998 PyObject * obj1 = 0 ;
21999 PyObject * obj2 = 0 ;
22000 char * kwnames[] = {
22001 (char *) "self",(char *) "x",(char *) "y", NULL
22002 };
22003
22004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22006 if (!SWIG_IsOK(res1)) {
22007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22008 }
22009 arg1 = reinterpret_cast< wxDC * >(argp1);
22010 ecode2 = SWIG_AsVal_double(obj1, &val2);
22011 if (!SWIG_IsOK(ecode2)) {
22012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22013 }
22014 arg2 = static_cast< double >(val2);
22015 ecode3 = SWIG_AsVal_double(obj2, &val3);
22016 if (!SWIG_IsOK(ecode3)) {
22017 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22018 }
22019 arg3 = static_cast< double >(val3);
22020 {
22021 PyThreadState* __tstate = wxPyBeginAllowThreads();
22022 (arg1)->SetLogicalScale(arg2,arg3);
22023 wxPyEndAllowThreads(__tstate);
22024 if (PyErr_Occurred()) SWIG_fail;
22025 }
22026 resultobj = SWIG_Py_Void();
22027 return resultobj;
22028 fail:
22029 return NULL;
22030 }
22031
22032
22033 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22034 PyObject *resultobj = 0;
22035 wxDC *arg1 = (wxDC *) 0 ;
22036 wxPoint result;
22037 void *argp1 = 0 ;
22038 int res1 = 0 ;
22039 PyObject *swig_obj[1] ;
22040
22041 if (!args) SWIG_fail;
22042 swig_obj[0] = args;
22043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22044 if (!SWIG_IsOK(res1)) {
22045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22046 }
22047 arg1 = reinterpret_cast< wxDC * >(argp1);
22048 {
22049 PyThreadState* __tstate = wxPyBeginAllowThreads();
22050 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22051 wxPyEndAllowThreads(__tstate);
22052 if (PyErr_Occurred()) SWIG_fail;
22053 }
22054 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22055 return resultobj;
22056 fail:
22057 return NULL;
22058 }
22059
22060
22061 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22062 PyObject *resultobj = 0;
22063 wxDC *arg1 = (wxDC *) 0 ;
22064 int *arg2 = (int *) 0 ;
22065 int *arg3 = (int *) 0 ;
22066 void *argp1 = 0 ;
22067 int res1 = 0 ;
22068 int temp2 ;
22069 int res2 = SWIG_TMPOBJ ;
22070 int temp3 ;
22071 int res3 = SWIG_TMPOBJ ;
22072 PyObject *swig_obj[1] ;
22073
22074 arg2 = &temp2;
22075 arg3 = &temp3;
22076 if (!args) SWIG_fail;
22077 swig_obj[0] = args;
22078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22079 if (!SWIG_IsOK(res1)) {
22080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22081 }
22082 arg1 = reinterpret_cast< wxDC * >(argp1);
22083 {
22084 PyThreadState* __tstate = wxPyBeginAllowThreads();
22085 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22086 wxPyEndAllowThreads(__tstate);
22087 if (PyErr_Occurred()) SWIG_fail;
22088 }
22089 resultobj = SWIG_Py_Void();
22090 if (SWIG_IsTmpObj(res2)) {
22091 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22092 } else {
22093 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22094 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22095 }
22096 if (SWIG_IsTmpObj(res3)) {
22097 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22098 } else {
22099 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22100 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22101 }
22102 return resultobj;
22103 fail:
22104 return NULL;
22105 }
22106
22107
22108 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22109 PyObject *resultobj = 0;
22110 wxDC *arg1 = (wxDC *) 0 ;
22111 int arg2 ;
22112 int arg3 ;
22113 void *argp1 = 0 ;
22114 int res1 = 0 ;
22115 int val2 ;
22116 int ecode2 = 0 ;
22117 int val3 ;
22118 int ecode3 = 0 ;
22119 PyObject * obj0 = 0 ;
22120 PyObject * obj1 = 0 ;
22121 PyObject * obj2 = 0 ;
22122 char * kwnames[] = {
22123 (char *) "self",(char *) "x",(char *) "y", NULL
22124 };
22125
22126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22128 if (!SWIG_IsOK(res1)) {
22129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22130 }
22131 arg1 = reinterpret_cast< wxDC * >(argp1);
22132 ecode2 = SWIG_AsVal_int(obj1, &val2);
22133 if (!SWIG_IsOK(ecode2)) {
22134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22135 }
22136 arg2 = static_cast< int >(val2);
22137 ecode3 = SWIG_AsVal_int(obj2, &val3);
22138 if (!SWIG_IsOK(ecode3)) {
22139 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22140 }
22141 arg3 = static_cast< int >(val3);
22142 {
22143 PyThreadState* __tstate = wxPyBeginAllowThreads();
22144 (arg1)->SetLogicalOrigin(arg2,arg3);
22145 wxPyEndAllowThreads(__tstate);
22146 if (PyErr_Occurred()) SWIG_fail;
22147 }
22148 resultobj = SWIG_Py_Void();
22149 return resultobj;
22150 fail:
22151 return NULL;
22152 }
22153
22154
22155 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22156 PyObject *resultobj = 0;
22157 wxDC *arg1 = (wxDC *) 0 ;
22158 wxPoint *arg2 = 0 ;
22159 void *argp1 = 0 ;
22160 int res1 = 0 ;
22161 wxPoint temp2 ;
22162 PyObject * obj0 = 0 ;
22163 PyObject * obj1 = 0 ;
22164 char * kwnames[] = {
22165 (char *) "self",(char *) "point", NULL
22166 };
22167
22168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22170 if (!SWIG_IsOK(res1)) {
22171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22172 }
22173 arg1 = reinterpret_cast< wxDC * >(argp1);
22174 {
22175 arg2 = &temp2;
22176 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22177 }
22178 {
22179 PyThreadState* __tstate = wxPyBeginAllowThreads();
22180 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22181 wxPyEndAllowThreads(__tstate);
22182 if (PyErr_Occurred()) SWIG_fail;
22183 }
22184 resultobj = SWIG_Py_Void();
22185 return resultobj;
22186 fail:
22187 return NULL;
22188 }
22189
22190
22191 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22192 PyObject *resultobj = 0;
22193 wxDC *arg1 = (wxDC *) 0 ;
22194 wxPoint result;
22195 void *argp1 = 0 ;
22196 int res1 = 0 ;
22197 PyObject *swig_obj[1] ;
22198
22199 if (!args) SWIG_fail;
22200 swig_obj[0] = args;
22201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22202 if (!SWIG_IsOK(res1)) {
22203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22204 }
22205 arg1 = reinterpret_cast< wxDC * >(argp1);
22206 {
22207 PyThreadState* __tstate = wxPyBeginAllowThreads();
22208 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22209 wxPyEndAllowThreads(__tstate);
22210 if (PyErr_Occurred()) SWIG_fail;
22211 }
22212 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22213 return resultobj;
22214 fail:
22215 return NULL;
22216 }
22217
22218
22219 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22220 PyObject *resultobj = 0;
22221 wxDC *arg1 = (wxDC *) 0 ;
22222 int *arg2 = (int *) 0 ;
22223 int *arg3 = (int *) 0 ;
22224 void *argp1 = 0 ;
22225 int res1 = 0 ;
22226 int temp2 ;
22227 int res2 = SWIG_TMPOBJ ;
22228 int temp3 ;
22229 int res3 = SWIG_TMPOBJ ;
22230 PyObject *swig_obj[1] ;
22231
22232 arg2 = &temp2;
22233 arg3 = &temp3;
22234 if (!args) SWIG_fail;
22235 swig_obj[0] = args;
22236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22237 if (!SWIG_IsOK(res1)) {
22238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22239 }
22240 arg1 = reinterpret_cast< wxDC * >(argp1);
22241 {
22242 PyThreadState* __tstate = wxPyBeginAllowThreads();
22243 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22244 wxPyEndAllowThreads(__tstate);
22245 if (PyErr_Occurred()) SWIG_fail;
22246 }
22247 resultobj = SWIG_Py_Void();
22248 if (SWIG_IsTmpObj(res2)) {
22249 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22250 } else {
22251 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22252 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22253 }
22254 if (SWIG_IsTmpObj(res3)) {
22255 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22256 } else {
22257 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22258 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22259 }
22260 return resultobj;
22261 fail:
22262 return NULL;
22263 }
22264
22265
22266 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22267 PyObject *resultobj = 0;
22268 wxDC *arg1 = (wxDC *) 0 ;
22269 int arg2 ;
22270 int arg3 ;
22271 void *argp1 = 0 ;
22272 int res1 = 0 ;
22273 int val2 ;
22274 int ecode2 = 0 ;
22275 int val3 ;
22276 int ecode3 = 0 ;
22277 PyObject * obj0 = 0 ;
22278 PyObject * obj1 = 0 ;
22279 PyObject * obj2 = 0 ;
22280 char * kwnames[] = {
22281 (char *) "self",(char *) "x",(char *) "y", NULL
22282 };
22283
22284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22286 if (!SWIG_IsOK(res1)) {
22287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22288 }
22289 arg1 = reinterpret_cast< wxDC * >(argp1);
22290 ecode2 = SWIG_AsVal_int(obj1, &val2);
22291 if (!SWIG_IsOK(ecode2)) {
22292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22293 }
22294 arg2 = static_cast< int >(val2);
22295 ecode3 = SWIG_AsVal_int(obj2, &val3);
22296 if (!SWIG_IsOK(ecode3)) {
22297 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22298 }
22299 arg3 = static_cast< int >(val3);
22300 {
22301 PyThreadState* __tstate = wxPyBeginAllowThreads();
22302 (arg1)->SetDeviceOrigin(arg2,arg3);
22303 wxPyEndAllowThreads(__tstate);
22304 if (PyErr_Occurred()) SWIG_fail;
22305 }
22306 resultobj = SWIG_Py_Void();
22307 return resultobj;
22308 fail:
22309 return NULL;
22310 }
22311
22312
22313 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22314 PyObject *resultobj = 0;
22315 wxDC *arg1 = (wxDC *) 0 ;
22316 wxPoint *arg2 = 0 ;
22317 void *argp1 = 0 ;
22318 int res1 = 0 ;
22319 wxPoint temp2 ;
22320 PyObject * obj0 = 0 ;
22321 PyObject * obj1 = 0 ;
22322 char * kwnames[] = {
22323 (char *) "self",(char *) "point", NULL
22324 };
22325
22326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22328 if (!SWIG_IsOK(res1)) {
22329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22330 }
22331 arg1 = reinterpret_cast< wxDC * >(argp1);
22332 {
22333 arg2 = &temp2;
22334 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22335 }
22336 {
22337 PyThreadState* __tstate = wxPyBeginAllowThreads();
22338 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22339 wxPyEndAllowThreads(__tstate);
22340 if (PyErr_Occurred()) SWIG_fail;
22341 }
22342 resultobj = SWIG_Py_Void();
22343 return resultobj;
22344 fail:
22345 return NULL;
22346 }
22347
22348
22349 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22350 PyObject *resultobj = 0;
22351 wxDC *arg1 = (wxDC *) 0 ;
22352 bool arg2 ;
22353 bool arg3 ;
22354 void *argp1 = 0 ;
22355 int res1 = 0 ;
22356 bool val2 ;
22357 int ecode2 = 0 ;
22358 bool val3 ;
22359 int ecode3 = 0 ;
22360 PyObject * obj0 = 0 ;
22361 PyObject * obj1 = 0 ;
22362 PyObject * obj2 = 0 ;
22363 char * kwnames[] = {
22364 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22365 };
22366
22367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22369 if (!SWIG_IsOK(res1)) {
22370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22371 }
22372 arg1 = reinterpret_cast< wxDC * >(argp1);
22373 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22374 if (!SWIG_IsOK(ecode2)) {
22375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22376 }
22377 arg2 = static_cast< bool >(val2);
22378 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22379 if (!SWIG_IsOK(ecode3)) {
22380 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22381 }
22382 arg3 = static_cast< bool >(val3);
22383 {
22384 PyThreadState* __tstate = wxPyBeginAllowThreads();
22385 (arg1)->SetAxisOrientation(arg2,arg3);
22386 wxPyEndAllowThreads(__tstate);
22387 if (PyErr_Occurred()) SWIG_fail;
22388 }
22389 resultobj = SWIG_Py_Void();
22390 return resultobj;
22391 fail:
22392 return NULL;
22393 }
22394
22395
22396 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22397 PyObject *resultobj = 0;
22398 wxDC *arg1 = (wxDC *) 0 ;
22399 int result;
22400 void *argp1 = 0 ;
22401 int res1 = 0 ;
22402 PyObject *swig_obj[1] ;
22403
22404 if (!args) SWIG_fail;
22405 swig_obj[0] = args;
22406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22407 if (!SWIG_IsOK(res1)) {
22408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22409 }
22410 arg1 = reinterpret_cast< wxDC * >(argp1);
22411 {
22412 PyThreadState* __tstate = wxPyBeginAllowThreads();
22413 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22414 wxPyEndAllowThreads(__tstate);
22415 if (PyErr_Occurred()) SWIG_fail;
22416 }
22417 resultobj = SWIG_From_int(static_cast< int >(result));
22418 return resultobj;
22419 fail:
22420 return NULL;
22421 }
22422
22423
22424 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22425 PyObject *resultobj = 0;
22426 wxDC *arg1 = (wxDC *) 0 ;
22427 int arg2 ;
22428 void *argp1 = 0 ;
22429 int res1 = 0 ;
22430 int val2 ;
22431 int ecode2 = 0 ;
22432 PyObject * obj0 = 0 ;
22433 PyObject * obj1 = 0 ;
22434 char * kwnames[] = {
22435 (char *) "self",(char *) "function", NULL
22436 };
22437
22438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22440 if (!SWIG_IsOK(res1)) {
22441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22442 }
22443 arg1 = reinterpret_cast< wxDC * >(argp1);
22444 ecode2 = SWIG_AsVal_int(obj1, &val2);
22445 if (!SWIG_IsOK(ecode2)) {
22446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22447 }
22448 arg2 = static_cast< int >(val2);
22449 {
22450 PyThreadState* __tstate = wxPyBeginAllowThreads();
22451 (arg1)->SetLogicalFunction(arg2);
22452 wxPyEndAllowThreads(__tstate);
22453 if (PyErr_Occurred()) SWIG_fail;
22454 }
22455 resultobj = SWIG_Py_Void();
22456 return resultobj;
22457 fail:
22458 return NULL;
22459 }
22460
22461
22462 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22463 PyObject *resultobj = 0;
22464 wxDC *arg1 = (wxDC *) 0 ;
22465 void *argp1 = 0 ;
22466 int res1 = 0 ;
22467 PyObject *swig_obj[1] ;
22468
22469 if (!args) SWIG_fail;
22470 swig_obj[0] = args;
22471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22472 if (!SWIG_IsOK(res1)) {
22473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22474 }
22475 arg1 = reinterpret_cast< wxDC * >(argp1);
22476 {
22477 PyThreadState* __tstate = wxPyBeginAllowThreads();
22478 (arg1)->ComputeScaleAndOrigin();
22479 wxPyEndAllowThreads(__tstate);
22480 if (PyErr_Occurred()) SWIG_fail;
22481 }
22482 resultobj = SWIG_Py_Void();
22483 return resultobj;
22484 fail:
22485 return NULL;
22486 }
22487
22488
22489 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22490 PyObject *resultobj = 0;
22491 wxDC *arg1 = (wxDC *) 0 ;
22492 int arg2 ;
22493 int arg3 ;
22494 void *argp1 = 0 ;
22495 int res1 = 0 ;
22496 int val2 ;
22497 int ecode2 = 0 ;
22498 int val3 ;
22499 int ecode3 = 0 ;
22500 PyObject * obj0 = 0 ;
22501 PyObject * obj1 = 0 ;
22502 PyObject * obj2 = 0 ;
22503 char * kwnames[] = {
22504 (char *) "self",(char *) "x",(char *) "y", NULL
22505 };
22506
22507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22509 if (!SWIG_IsOK(res1)) {
22510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22511 }
22512 arg1 = reinterpret_cast< wxDC * >(argp1);
22513 ecode2 = SWIG_AsVal_int(obj1, &val2);
22514 if (!SWIG_IsOK(ecode2)) {
22515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22516 }
22517 arg2 = static_cast< int >(val2);
22518 ecode3 = SWIG_AsVal_int(obj2, &val3);
22519 if (!SWIG_IsOK(ecode3)) {
22520 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22521 }
22522 arg3 = static_cast< int >(val3);
22523 {
22524 PyThreadState* __tstate = wxPyBeginAllowThreads();
22525 (arg1)->CalcBoundingBox(arg2,arg3);
22526 wxPyEndAllowThreads(__tstate);
22527 if (PyErr_Occurred()) SWIG_fail;
22528 }
22529 resultobj = SWIG_Py_Void();
22530 return resultobj;
22531 fail:
22532 return NULL;
22533 }
22534
22535
22536 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22537 PyObject *resultobj = 0;
22538 wxDC *arg1 = (wxDC *) 0 ;
22539 wxPoint *arg2 = 0 ;
22540 void *argp1 = 0 ;
22541 int res1 = 0 ;
22542 wxPoint temp2 ;
22543 PyObject * obj0 = 0 ;
22544 PyObject * obj1 = 0 ;
22545 char * kwnames[] = {
22546 (char *) "self",(char *) "point", NULL
22547 };
22548
22549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22551 if (!SWIG_IsOK(res1)) {
22552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22553 }
22554 arg1 = reinterpret_cast< wxDC * >(argp1);
22555 {
22556 arg2 = &temp2;
22557 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22558 }
22559 {
22560 PyThreadState* __tstate = wxPyBeginAllowThreads();
22561 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22562 wxPyEndAllowThreads(__tstate);
22563 if (PyErr_Occurred()) SWIG_fail;
22564 }
22565 resultobj = SWIG_Py_Void();
22566 return resultobj;
22567 fail:
22568 return NULL;
22569 }
22570
22571
22572 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22573 PyObject *resultobj = 0;
22574 wxDC *arg1 = (wxDC *) 0 ;
22575 void *argp1 = 0 ;
22576 int res1 = 0 ;
22577 PyObject *swig_obj[1] ;
22578
22579 if (!args) SWIG_fail;
22580 swig_obj[0] = args;
22581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22582 if (!SWIG_IsOK(res1)) {
22583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22584 }
22585 arg1 = reinterpret_cast< wxDC * >(argp1);
22586 {
22587 PyThreadState* __tstate = wxPyBeginAllowThreads();
22588 (arg1)->ResetBoundingBox();
22589 wxPyEndAllowThreads(__tstate);
22590 if (PyErr_Occurred()) SWIG_fail;
22591 }
22592 resultobj = SWIG_Py_Void();
22593 return resultobj;
22594 fail:
22595 return NULL;
22596 }
22597
22598
22599 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22600 PyObject *resultobj = 0;
22601 wxDC *arg1 = (wxDC *) 0 ;
22602 int result;
22603 void *argp1 = 0 ;
22604 int res1 = 0 ;
22605 PyObject *swig_obj[1] ;
22606
22607 if (!args) SWIG_fail;
22608 swig_obj[0] = args;
22609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22610 if (!SWIG_IsOK(res1)) {
22611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22612 }
22613 arg1 = reinterpret_cast< wxDC * >(argp1);
22614 {
22615 PyThreadState* __tstate = wxPyBeginAllowThreads();
22616 result = (int)((wxDC const *)arg1)->MinX();
22617 wxPyEndAllowThreads(__tstate);
22618 if (PyErr_Occurred()) SWIG_fail;
22619 }
22620 resultobj = SWIG_From_int(static_cast< int >(result));
22621 return resultobj;
22622 fail:
22623 return NULL;
22624 }
22625
22626
22627 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22628 PyObject *resultobj = 0;
22629 wxDC *arg1 = (wxDC *) 0 ;
22630 int result;
22631 void *argp1 = 0 ;
22632 int res1 = 0 ;
22633 PyObject *swig_obj[1] ;
22634
22635 if (!args) SWIG_fail;
22636 swig_obj[0] = args;
22637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22638 if (!SWIG_IsOK(res1)) {
22639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
22640 }
22641 arg1 = reinterpret_cast< wxDC * >(argp1);
22642 {
22643 PyThreadState* __tstate = wxPyBeginAllowThreads();
22644 result = (int)((wxDC const *)arg1)->MaxX();
22645 wxPyEndAllowThreads(__tstate);
22646 if (PyErr_Occurred()) SWIG_fail;
22647 }
22648 resultobj = SWIG_From_int(static_cast< int >(result));
22649 return resultobj;
22650 fail:
22651 return NULL;
22652 }
22653
22654
22655 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22656 PyObject *resultobj = 0;
22657 wxDC *arg1 = (wxDC *) 0 ;
22658 int result;
22659 void *argp1 = 0 ;
22660 int res1 = 0 ;
22661 PyObject *swig_obj[1] ;
22662
22663 if (!args) SWIG_fail;
22664 swig_obj[0] = args;
22665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22666 if (!SWIG_IsOK(res1)) {
22667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
22668 }
22669 arg1 = reinterpret_cast< wxDC * >(argp1);
22670 {
22671 PyThreadState* __tstate = wxPyBeginAllowThreads();
22672 result = (int)((wxDC const *)arg1)->MinY();
22673 wxPyEndAllowThreads(__tstate);
22674 if (PyErr_Occurred()) SWIG_fail;
22675 }
22676 resultobj = SWIG_From_int(static_cast< int >(result));
22677 return resultobj;
22678 fail:
22679 return NULL;
22680 }
22681
22682
22683 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22684 PyObject *resultobj = 0;
22685 wxDC *arg1 = (wxDC *) 0 ;
22686 int result;
22687 void *argp1 = 0 ;
22688 int res1 = 0 ;
22689 PyObject *swig_obj[1] ;
22690
22691 if (!args) SWIG_fail;
22692 swig_obj[0] = args;
22693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22694 if (!SWIG_IsOK(res1)) {
22695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
22696 }
22697 arg1 = reinterpret_cast< wxDC * >(argp1);
22698 {
22699 PyThreadState* __tstate = wxPyBeginAllowThreads();
22700 result = (int)((wxDC const *)arg1)->MaxY();
22701 wxPyEndAllowThreads(__tstate);
22702 if (PyErr_Occurred()) SWIG_fail;
22703 }
22704 resultobj = SWIG_From_int(static_cast< int >(result));
22705 return resultobj;
22706 fail:
22707 return NULL;
22708 }
22709
22710
22711 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22712 PyObject *resultobj = 0;
22713 wxDC *arg1 = (wxDC *) 0 ;
22714 int *arg2 = (int *) 0 ;
22715 int *arg3 = (int *) 0 ;
22716 int *arg4 = (int *) 0 ;
22717 int *arg5 = (int *) 0 ;
22718 void *argp1 = 0 ;
22719 int res1 = 0 ;
22720 int temp2 ;
22721 int res2 = SWIG_TMPOBJ ;
22722 int temp3 ;
22723 int res3 = SWIG_TMPOBJ ;
22724 int temp4 ;
22725 int res4 = SWIG_TMPOBJ ;
22726 int temp5 ;
22727 int res5 = SWIG_TMPOBJ ;
22728 PyObject *swig_obj[1] ;
22729
22730 arg2 = &temp2;
22731 arg3 = &temp3;
22732 arg4 = &temp4;
22733 arg5 = &temp5;
22734 if (!args) SWIG_fail;
22735 swig_obj[0] = args;
22736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22737 if (!SWIG_IsOK(res1)) {
22738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22739 }
22740 arg1 = reinterpret_cast< wxDC * >(argp1);
22741 {
22742 PyThreadState* __tstate = wxPyBeginAllowThreads();
22743 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
22744 wxPyEndAllowThreads(__tstate);
22745 if (PyErr_Occurred()) SWIG_fail;
22746 }
22747 resultobj = SWIG_Py_Void();
22748 if (SWIG_IsTmpObj(res2)) {
22749 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22750 } else {
22751 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22752 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22753 }
22754 if (SWIG_IsTmpObj(res3)) {
22755 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22756 } else {
22757 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22758 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22759 }
22760 if (SWIG_IsTmpObj(res4)) {
22761 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22762 } else {
22763 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22764 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22765 }
22766 if (SWIG_IsTmpObj(res5)) {
22767 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22768 } else {
22769 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22770 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22771 }
22772 return resultobj;
22773 fail:
22774 return NULL;
22775 }
22776
22777
22778 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22779 PyObject *resultobj = 0;
22780 wxDC *arg1 = (wxDC *) 0 ;
22781 wxLayoutDirection result;
22782 void *argp1 = 0 ;
22783 int res1 = 0 ;
22784 PyObject *swig_obj[1] ;
22785
22786 if (!args) SWIG_fail;
22787 swig_obj[0] = args;
22788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22789 if (!SWIG_IsOK(res1)) {
22790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
22791 }
22792 arg1 = reinterpret_cast< wxDC * >(argp1);
22793 {
22794 PyThreadState* __tstate = wxPyBeginAllowThreads();
22795 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
22796 wxPyEndAllowThreads(__tstate);
22797 if (PyErr_Occurred()) SWIG_fail;
22798 }
22799 resultobj = SWIG_From_int(static_cast< int >(result));
22800 return resultobj;
22801 fail:
22802 return NULL;
22803 }
22804
22805
22806 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22807 PyObject *resultobj = 0;
22808 wxDC *arg1 = (wxDC *) 0 ;
22809 wxLayoutDirection arg2 ;
22810 void *argp1 = 0 ;
22811 int res1 = 0 ;
22812 int val2 ;
22813 int ecode2 = 0 ;
22814 PyObject * obj0 = 0 ;
22815 PyObject * obj1 = 0 ;
22816 char * kwnames[] = {
22817 (char *) "self",(char *) "dir", NULL
22818 };
22819
22820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
22821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22822 if (!SWIG_IsOK(res1)) {
22823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
22824 }
22825 arg1 = reinterpret_cast< wxDC * >(argp1);
22826 ecode2 = SWIG_AsVal_int(obj1, &val2);
22827 if (!SWIG_IsOK(ecode2)) {
22828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
22829 }
22830 arg2 = static_cast< wxLayoutDirection >(val2);
22831 {
22832 PyThreadState* __tstate = wxPyBeginAllowThreads();
22833 (arg1)->SetLayoutDirection(arg2);
22834 wxPyEndAllowThreads(__tstate);
22835 if (PyErr_Occurred()) SWIG_fail;
22836 }
22837 resultobj = SWIG_Py_Void();
22838 return resultobj;
22839 fail:
22840 return NULL;
22841 }
22842
22843
22844 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22845 PyObject *resultobj = 0;
22846 wxDC *arg1 = (wxDC *) 0 ;
22847 PyObject *arg2 = (PyObject *) 0 ;
22848 PyObject *arg3 = (PyObject *) 0 ;
22849 PyObject *arg4 = (PyObject *) 0 ;
22850 PyObject *result = 0 ;
22851 void *argp1 = 0 ;
22852 int res1 = 0 ;
22853 PyObject * obj0 = 0 ;
22854 PyObject * obj1 = 0 ;
22855 PyObject * obj2 = 0 ;
22856 PyObject * obj3 = 0 ;
22857 char * kwnames[] = {
22858 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22859 };
22860
22861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22863 if (!SWIG_IsOK(res1)) {
22864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
22865 }
22866 arg1 = reinterpret_cast< wxDC * >(argp1);
22867 arg2 = obj1;
22868 arg3 = obj2;
22869 arg4 = obj3;
22870 {
22871 PyThreadState* __tstate = wxPyBeginAllowThreads();
22872 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
22873 wxPyEndAllowThreads(__tstate);
22874 if (PyErr_Occurred()) SWIG_fail;
22875 }
22876 resultobj = result;
22877 return resultobj;
22878 fail:
22879 return NULL;
22880 }
22881
22882
22883 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22884 PyObject *resultobj = 0;
22885 wxDC *arg1 = (wxDC *) 0 ;
22886 PyObject *arg2 = (PyObject *) 0 ;
22887 PyObject *arg3 = (PyObject *) 0 ;
22888 PyObject *arg4 = (PyObject *) 0 ;
22889 PyObject *result = 0 ;
22890 void *argp1 = 0 ;
22891 int res1 = 0 ;
22892 PyObject * obj0 = 0 ;
22893 PyObject * obj1 = 0 ;
22894 PyObject * obj2 = 0 ;
22895 PyObject * obj3 = 0 ;
22896 char * kwnames[] = {
22897 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22898 };
22899
22900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22902 if (!SWIG_IsOK(res1)) {
22903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
22904 }
22905 arg1 = reinterpret_cast< wxDC * >(argp1);
22906 arg2 = obj1;
22907 arg3 = obj2;
22908 arg4 = obj3;
22909 {
22910 PyThreadState* __tstate = wxPyBeginAllowThreads();
22911 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
22912 wxPyEndAllowThreads(__tstate);
22913 if (PyErr_Occurred()) SWIG_fail;
22914 }
22915 resultobj = result;
22916 return resultobj;
22917 fail:
22918 return NULL;
22919 }
22920
22921
22922 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22923 PyObject *resultobj = 0;
22924 wxDC *arg1 = (wxDC *) 0 ;
22925 PyObject *arg2 = (PyObject *) 0 ;
22926 PyObject *arg3 = (PyObject *) 0 ;
22927 PyObject *arg4 = (PyObject *) 0 ;
22928 PyObject *result = 0 ;
22929 void *argp1 = 0 ;
22930 int res1 = 0 ;
22931 PyObject * obj0 = 0 ;
22932 PyObject * obj1 = 0 ;
22933 PyObject * obj2 = 0 ;
22934 PyObject * obj3 = 0 ;
22935 char * kwnames[] = {
22936 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22937 };
22938
22939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22941 if (!SWIG_IsOK(res1)) {
22942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
22943 }
22944 arg1 = reinterpret_cast< wxDC * >(argp1);
22945 arg2 = obj1;
22946 arg3 = obj2;
22947 arg4 = obj3;
22948 {
22949 PyThreadState* __tstate = wxPyBeginAllowThreads();
22950 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
22951 wxPyEndAllowThreads(__tstate);
22952 if (PyErr_Occurred()) SWIG_fail;
22953 }
22954 resultobj = result;
22955 return resultobj;
22956 fail:
22957 return NULL;
22958 }
22959
22960
22961 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22962 PyObject *resultobj = 0;
22963 wxDC *arg1 = (wxDC *) 0 ;
22964 PyObject *arg2 = (PyObject *) 0 ;
22965 PyObject *arg3 = (PyObject *) 0 ;
22966 PyObject *arg4 = (PyObject *) 0 ;
22967 PyObject *result = 0 ;
22968 void *argp1 = 0 ;
22969 int res1 = 0 ;
22970 PyObject * obj0 = 0 ;
22971 PyObject * obj1 = 0 ;
22972 PyObject * obj2 = 0 ;
22973 PyObject * obj3 = 0 ;
22974 char * kwnames[] = {
22975 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22976 };
22977
22978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22980 if (!SWIG_IsOK(res1)) {
22981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
22982 }
22983 arg1 = reinterpret_cast< wxDC * >(argp1);
22984 arg2 = obj1;
22985 arg3 = obj2;
22986 arg4 = obj3;
22987 {
22988 PyThreadState* __tstate = wxPyBeginAllowThreads();
22989 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
22990 wxPyEndAllowThreads(__tstate);
22991 if (PyErr_Occurred()) SWIG_fail;
22992 }
22993 resultobj = result;
22994 return resultobj;
22995 fail:
22996 return NULL;
22997 }
22998
22999
23000 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23001 PyObject *resultobj = 0;
23002 wxDC *arg1 = (wxDC *) 0 ;
23003 PyObject *arg2 = (PyObject *) 0 ;
23004 PyObject *arg3 = (PyObject *) 0 ;
23005 PyObject *arg4 = (PyObject *) 0 ;
23006 PyObject *result = 0 ;
23007 void *argp1 = 0 ;
23008 int res1 = 0 ;
23009 PyObject * obj0 = 0 ;
23010 PyObject * obj1 = 0 ;
23011 PyObject * obj2 = 0 ;
23012 PyObject * obj3 = 0 ;
23013 char * kwnames[] = {
23014 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23015 };
23016
23017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23019 if (!SWIG_IsOK(res1)) {
23020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23021 }
23022 arg1 = reinterpret_cast< wxDC * >(argp1);
23023 arg2 = obj1;
23024 arg3 = obj2;
23025 arg4 = obj3;
23026 {
23027 PyThreadState* __tstate = wxPyBeginAllowThreads();
23028 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23029 wxPyEndAllowThreads(__tstate);
23030 if (PyErr_Occurred()) SWIG_fail;
23031 }
23032 resultobj = result;
23033 return resultobj;
23034 fail:
23035 return NULL;
23036 }
23037
23038
23039 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23040 PyObject *resultobj = 0;
23041 wxDC *arg1 = (wxDC *) 0 ;
23042 PyObject *arg2 = (PyObject *) 0 ;
23043 PyObject *arg3 = (PyObject *) 0 ;
23044 PyObject *arg4 = (PyObject *) 0 ;
23045 PyObject *arg5 = (PyObject *) 0 ;
23046 PyObject *result = 0 ;
23047 void *argp1 = 0 ;
23048 int res1 = 0 ;
23049 PyObject * obj0 = 0 ;
23050 PyObject * obj1 = 0 ;
23051 PyObject * obj2 = 0 ;
23052 PyObject * obj3 = 0 ;
23053 PyObject * obj4 = 0 ;
23054 char * kwnames[] = {
23055 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23056 };
23057
23058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23060 if (!SWIG_IsOK(res1)) {
23061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23062 }
23063 arg1 = reinterpret_cast< wxDC * >(argp1);
23064 arg2 = obj1;
23065 arg3 = obj2;
23066 arg4 = obj3;
23067 arg5 = obj4;
23068 {
23069 PyThreadState* __tstate = wxPyBeginAllowThreads();
23070 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23071 wxPyEndAllowThreads(__tstate);
23072 if (PyErr_Occurred()) SWIG_fail;
23073 }
23074 resultobj = result;
23075 return resultobj;
23076 fail:
23077 return NULL;
23078 }
23079
23080
23081 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23082 PyObject *obj;
23083 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23084 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23085 return SWIG_Py_Void();
23086 }
23087
23088 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23089 PyObject *resultobj = 0;
23090 wxBitmap const &arg1_defvalue = wxNullBitmap ;
23091 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
23092 wxMemoryDC *result = 0 ;
23093 void *argp1 = 0 ;
23094 int res1 = 0 ;
23095 PyObject * obj0 = 0 ;
23096 char * kwnames[] = {
23097 (char *) "bitmap", NULL
23098 };
23099
23100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
23101 if (obj0) {
23102 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
23103 if (!SWIG_IsOK(res1)) {
23104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23105 }
23106 if (!argp1) {
23107 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23108 }
23109 arg1 = reinterpret_cast< wxBitmap * >(argp1);
23110 }
23111 {
23112 if (!wxPyCheckForApp()) SWIG_fail;
23113 PyThreadState* __tstate = wxPyBeginAllowThreads();
23114 result = (wxMemoryDC *)new wxMemoryDC((wxBitmap const &)*arg1);
23115 wxPyEndAllowThreads(__tstate);
23116 if (PyErr_Occurred()) SWIG_fail;
23117 }
23118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23119 return resultobj;
23120 fail:
23121 return NULL;
23122 }
23123
23124
23125 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23126 PyObject *resultobj = 0;
23127 wxDC *arg1 = (wxDC *) 0 ;
23128 wxMemoryDC *result = 0 ;
23129 void *argp1 = 0 ;
23130 int res1 = 0 ;
23131 PyObject * obj0 = 0 ;
23132 char * kwnames[] = {
23133 (char *) "oldDC", NULL
23134 };
23135
23136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23138 if (!SWIG_IsOK(res1)) {
23139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23140 }
23141 arg1 = reinterpret_cast< wxDC * >(argp1);
23142 {
23143 if (!wxPyCheckForApp()) SWIG_fail;
23144 PyThreadState* __tstate = wxPyBeginAllowThreads();
23145 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23146 wxPyEndAllowThreads(__tstate);
23147 if (PyErr_Occurred()) SWIG_fail;
23148 }
23149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23150 return resultobj;
23151 fail:
23152 return NULL;
23153 }
23154
23155
23156 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23157 PyObject *resultobj = 0;
23158 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23159 wxBitmap *arg2 = 0 ;
23160 void *argp1 = 0 ;
23161 int res1 = 0 ;
23162 void *argp2 = 0 ;
23163 int res2 = 0 ;
23164 PyObject * obj0 = 0 ;
23165 PyObject * obj1 = 0 ;
23166 char * kwnames[] = {
23167 (char *) "self",(char *) "bitmap", NULL
23168 };
23169
23170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23172 if (!SWIG_IsOK(res1)) {
23173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23174 }
23175 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23176 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23177 if (!SWIG_IsOK(res2)) {
23178 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23179 }
23180 if (!argp2) {
23181 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23182 }
23183 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23184 {
23185 PyThreadState* __tstate = wxPyBeginAllowThreads();
23186 (arg1)->SelectObject((wxBitmap const &)*arg2);
23187 wxPyEndAllowThreads(__tstate);
23188 if (PyErr_Occurred()) SWIG_fail;
23189 }
23190 resultobj = SWIG_Py_Void();
23191 return resultobj;
23192 fail:
23193 return NULL;
23194 }
23195
23196
23197 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23198 PyObject *obj;
23199 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23200 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23201 return SWIG_Py_Void();
23202 }
23203
23204 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23205 return SWIG_Python_InitShadowInstance(args);
23206 }
23207
23208 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23209 PyObject *resultobj = 0;
23210 wxScreenDC *result = 0 ;
23211
23212 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23213 {
23214 if (!wxPyCheckForApp()) SWIG_fail;
23215 PyThreadState* __tstate = wxPyBeginAllowThreads();
23216 result = (wxScreenDC *)new wxScreenDC();
23217 wxPyEndAllowThreads(__tstate);
23218 if (PyErr_Occurred()) SWIG_fail;
23219 }
23220 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23221 return resultobj;
23222 fail:
23223 return NULL;
23224 }
23225
23226
23227 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23228 PyObject *resultobj = 0;
23229 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23230 wxWindow *arg2 = (wxWindow *) 0 ;
23231 bool result;
23232 void *argp1 = 0 ;
23233 int res1 = 0 ;
23234 void *argp2 = 0 ;
23235 int res2 = 0 ;
23236 PyObject * obj0 = 0 ;
23237 PyObject * obj1 = 0 ;
23238 char * kwnames[] = {
23239 (char *) "self",(char *) "window", NULL
23240 };
23241
23242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23244 if (!SWIG_IsOK(res1)) {
23245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23246 }
23247 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23248 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23249 if (!SWIG_IsOK(res2)) {
23250 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23251 }
23252 arg2 = reinterpret_cast< wxWindow * >(argp2);
23253 {
23254 PyThreadState* __tstate = wxPyBeginAllowThreads();
23255 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23256 wxPyEndAllowThreads(__tstate);
23257 if (PyErr_Occurred()) SWIG_fail;
23258 }
23259 {
23260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23261 }
23262 return resultobj;
23263 fail:
23264 return NULL;
23265 }
23266
23267
23268 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23269 PyObject *resultobj = 0;
23270 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23271 wxRect *arg2 = (wxRect *) NULL ;
23272 bool result;
23273 void *argp1 = 0 ;
23274 int res1 = 0 ;
23275 void *argp2 = 0 ;
23276 int res2 = 0 ;
23277 PyObject * obj0 = 0 ;
23278 PyObject * obj1 = 0 ;
23279 char * kwnames[] = {
23280 (char *) "self",(char *) "rect", NULL
23281 };
23282
23283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23285 if (!SWIG_IsOK(res1)) {
23286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23287 }
23288 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23289 if (obj1) {
23290 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23291 if (!SWIG_IsOK(res2)) {
23292 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
23293 }
23294 arg2 = reinterpret_cast< wxRect * >(argp2);
23295 }
23296 {
23297 PyThreadState* __tstate = wxPyBeginAllowThreads();
23298 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23299 wxPyEndAllowThreads(__tstate);
23300 if (PyErr_Occurred()) SWIG_fail;
23301 }
23302 {
23303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23304 }
23305 return resultobj;
23306 fail:
23307 return NULL;
23308 }
23309
23310
23311 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23312 PyObject *resultobj = 0;
23313 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23314 bool result;
23315 void *argp1 = 0 ;
23316 int res1 = 0 ;
23317 PyObject *swig_obj[1] ;
23318
23319 if (!args) SWIG_fail;
23320 swig_obj[0] = args;
23321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23322 if (!SWIG_IsOK(res1)) {
23323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23324 }
23325 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23326 {
23327 PyThreadState* __tstate = wxPyBeginAllowThreads();
23328 result = (bool)(arg1)->EndDrawingOnTop();
23329 wxPyEndAllowThreads(__tstate);
23330 if (PyErr_Occurred()) SWIG_fail;
23331 }
23332 {
23333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23334 }
23335 return resultobj;
23336 fail:
23337 return NULL;
23338 }
23339
23340
23341 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23342 PyObject *obj;
23343 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23344 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
23345 return SWIG_Py_Void();
23346 }
23347
23348 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23349 return SWIG_Python_InitShadowInstance(args);
23350 }
23351
23352 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23353 PyObject *resultobj = 0;
23354 wxWindow *arg1 = (wxWindow *) 0 ;
23355 wxWindowDC *result = 0 ;
23356 void *argp1 = 0 ;
23357 int res1 = 0 ;
23358 PyObject * obj0 = 0 ;
23359 char * kwnames[] = {
23360 (char *) "win", NULL
23361 };
23362
23363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
23364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23365 if (!SWIG_IsOK(res1)) {
23366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23367 }
23368 arg1 = reinterpret_cast< wxWindow * >(argp1);
23369 {
23370 if (!wxPyCheckForApp()) SWIG_fail;
23371 PyThreadState* __tstate = wxPyBeginAllowThreads();
23372 result = (wxWindowDC *)new wxWindowDC(arg1);
23373 wxPyEndAllowThreads(__tstate);
23374 if (PyErr_Occurred()) SWIG_fail;
23375 }
23376 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
23377 return resultobj;
23378 fail:
23379 return NULL;
23380 }
23381
23382
23383 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23384 PyObject *obj;
23385 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23386 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
23387 return SWIG_Py_Void();
23388 }
23389
23390 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23391 return SWIG_Python_InitShadowInstance(args);
23392 }
23393
23394 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23395 PyObject *resultobj = 0;
23396 wxWindow *arg1 = (wxWindow *) 0 ;
23397 wxClientDC *result = 0 ;
23398 void *argp1 = 0 ;
23399 int res1 = 0 ;
23400 PyObject * obj0 = 0 ;
23401 char * kwnames[] = {
23402 (char *) "win", NULL
23403 };
23404
23405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
23406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23407 if (!SWIG_IsOK(res1)) {
23408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23409 }
23410 arg1 = reinterpret_cast< wxWindow * >(argp1);
23411 {
23412 if (!wxPyCheckForApp()) SWIG_fail;
23413 PyThreadState* __tstate = wxPyBeginAllowThreads();
23414 result = (wxClientDC *)new wxClientDC(arg1);
23415 wxPyEndAllowThreads(__tstate);
23416 if (PyErr_Occurred()) SWIG_fail;
23417 }
23418 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
23419 return resultobj;
23420 fail:
23421 return NULL;
23422 }
23423
23424
23425 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23426 PyObject *obj;
23427 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23428 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
23429 return SWIG_Py_Void();
23430 }
23431
23432 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23433 return SWIG_Python_InitShadowInstance(args);
23434 }
23435
23436 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23437 PyObject *resultobj = 0;
23438 wxWindow *arg1 = (wxWindow *) 0 ;
23439 wxPaintDC *result = 0 ;
23440 void *argp1 = 0 ;
23441 int res1 = 0 ;
23442 PyObject * obj0 = 0 ;
23443 char * kwnames[] = {
23444 (char *) "win", NULL
23445 };
23446
23447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
23448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23449 if (!SWIG_IsOK(res1)) {
23450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23451 }
23452 arg1 = reinterpret_cast< wxWindow * >(argp1);
23453 {
23454 if (!wxPyCheckForApp()) SWIG_fail;
23455 PyThreadState* __tstate = wxPyBeginAllowThreads();
23456 result = (wxPaintDC *)new wxPaintDC(arg1);
23457 wxPyEndAllowThreads(__tstate);
23458 if (PyErr_Occurred()) SWIG_fail;
23459 }
23460 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
23461 return resultobj;
23462 fail:
23463 return NULL;
23464 }
23465
23466
23467 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23468 PyObject *obj;
23469 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23470 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
23471 return SWIG_Py_Void();
23472 }
23473
23474 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23475 return SWIG_Python_InitShadowInstance(args);
23476 }
23477
23478 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23479 PyObject *resultobj = 0;
23480 wxDC *arg1 = (wxDC *) 0 ;
23481 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23482 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23483 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23484 wxBufferedDC *result = 0 ;
23485 void *argp1 = 0 ;
23486 int res1 = 0 ;
23487 void *argp2 = 0 ;
23488 int res2 = 0 ;
23489 int val3 ;
23490 int ecode3 = 0 ;
23491
23492 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
23493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23494 if (!SWIG_IsOK(res1)) {
23495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23496 }
23497 arg1 = reinterpret_cast< wxDC * >(argp1);
23498 if (swig_obj[1]) {
23499 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23500 if (!SWIG_IsOK(res2)) {
23501 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23502 }
23503 if (!argp2) {
23504 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23505 }
23506 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23507 }
23508 if (swig_obj[2]) {
23509 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23510 if (!SWIG_IsOK(ecode3)) {
23511 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23512 }
23513 arg3 = static_cast< int >(val3);
23514 }
23515 {
23516 if (!wxPyCheckForApp()) SWIG_fail;
23517 PyThreadState* __tstate = wxPyBeginAllowThreads();
23518 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
23519 wxPyEndAllowThreads(__tstate);
23520 if (PyErr_Occurred()) SWIG_fail;
23521 }
23522 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23523 return resultobj;
23524 fail:
23525 return NULL;
23526 }
23527
23528
23529 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23530 PyObject *resultobj = 0;
23531 wxDC *arg1 = (wxDC *) 0 ;
23532 wxSize *arg2 = 0 ;
23533 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23534 wxBufferedDC *result = 0 ;
23535 void *argp1 = 0 ;
23536 int res1 = 0 ;
23537 wxSize temp2 ;
23538 int val3 ;
23539 int ecode3 = 0 ;
23540
23541 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
23542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23543 if (!SWIG_IsOK(res1)) {
23544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23545 }
23546 arg1 = reinterpret_cast< wxDC * >(argp1);
23547 {
23548 arg2 = &temp2;
23549 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
23550 }
23551 if (swig_obj[2]) {
23552 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23553 if (!SWIG_IsOK(ecode3)) {
23554 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23555 }
23556 arg3 = static_cast< int >(val3);
23557 }
23558 {
23559 if (!wxPyCheckForApp()) SWIG_fail;
23560 PyThreadState* __tstate = wxPyBeginAllowThreads();
23561 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
23562 wxPyEndAllowThreads(__tstate);
23563 if (PyErr_Occurred()) SWIG_fail;
23564 }
23565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23566 return resultobj;
23567 fail:
23568 return NULL;
23569 }
23570
23571
23572 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
23573 int argc;
23574 PyObject *argv[4];
23575
23576 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
23577 --argc;
23578 if ((argc >= 1) && (argc <= 3)) {
23579 int _v = 0;
23580 if (argc > 1) {
23581 {
23582 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
23583 _v = SWIG_CheckState(res);
23584 }
23585 if (!_v) goto check_1;
23586 }
23587 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
23588 }
23589 check_1:
23590
23591 if ((argc >= 2) && (argc <= 3)) {
23592 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
23593 }
23594
23595 fail:
23596 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
23597 return NULL;
23598 }
23599
23600
23601 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23602 PyObject *resultobj = 0;
23603 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23604 void *argp1 = 0 ;
23605 int res1 = 0 ;
23606 PyObject *swig_obj[1] ;
23607
23608 if (!args) SWIG_fail;
23609 swig_obj[0] = args;
23610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
23611 if (!SWIG_IsOK(res1)) {
23612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23613 }
23614 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23615 {
23616 PyThreadState* __tstate = wxPyBeginAllowThreads();
23617 delete arg1;
23618
23619 wxPyEndAllowThreads(__tstate);
23620 if (PyErr_Occurred()) SWIG_fail;
23621 }
23622 resultobj = SWIG_Py_Void();
23623 return resultobj;
23624 fail:
23625 return NULL;
23626 }
23627
23628
23629 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23630 PyObject *resultobj = 0;
23631 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23632 void *argp1 = 0 ;
23633 int res1 = 0 ;
23634 PyObject *swig_obj[1] ;
23635
23636 if (!args) SWIG_fail;
23637 swig_obj[0] = args;
23638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
23639 if (!SWIG_IsOK(res1)) {
23640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23641 }
23642 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23643 {
23644 PyThreadState* __tstate = wxPyBeginAllowThreads();
23645 (arg1)->UnMask();
23646 wxPyEndAllowThreads(__tstate);
23647 if (PyErr_Occurred()) SWIG_fail;
23648 }
23649 resultobj = SWIG_Py_Void();
23650 return resultobj;
23651 fail:
23652 return NULL;
23653 }
23654
23655
23656 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23657 PyObject *obj;
23658 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23659 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
23660 return SWIG_Py_Void();
23661 }
23662
23663 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23664 return SWIG_Python_InitShadowInstance(args);
23665 }
23666
23667 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23668 PyObject *resultobj = 0;
23669 wxWindow *arg1 = (wxWindow *) 0 ;
23670 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23671 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23672 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23673 wxBufferedPaintDC *result = 0 ;
23674 void *argp1 = 0 ;
23675 int res1 = 0 ;
23676 void *argp2 = 0 ;
23677 int res2 = 0 ;
23678 int val3 ;
23679 int ecode3 = 0 ;
23680 PyObject * obj0 = 0 ;
23681 PyObject * obj1 = 0 ;
23682 PyObject * obj2 = 0 ;
23683 char * kwnames[] = {
23684 (char *) "window",(char *) "buffer",(char *) "style", NULL
23685 };
23686
23687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23689 if (!SWIG_IsOK(res1)) {
23690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23691 }
23692 arg1 = reinterpret_cast< wxWindow * >(argp1);
23693 if (obj1) {
23694 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23695 if (!SWIG_IsOK(res2)) {
23696 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23697 }
23698 if (!argp2) {
23699 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23700 }
23701 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23702 }
23703 if (obj2) {
23704 ecode3 = SWIG_AsVal_int(obj2, &val3);
23705 if (!SWIG_IsOK(ecode3)) {
23706 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
23707 }
23708 arg3 = static_cast< int >(val3);
23709 }
23710 {
23711 if (!wxPyCheckForApp()) SWIG_fail;
23712 PyThreadState* __tstate = wxPyBeginAllowThreads();
23713 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
23714 wxPyEndAllowThreads(__tstate);
23715 if (PyErr_Occurred()) SWIG_fail;
23716 }
23717 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23718 return resultobj;
23719 fail:
23720 return NULL;
23721 }
23722
23723
23724 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23725 PyObject *obj;
23726 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23727 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
23728 return SWIG_Py_Void();
23729 }
23730
23731 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23732 return SWIG_Python_InitShadowInstance(args);
23733 }
23734
23735 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23736 PyObject *resultobj = 0;
23737 wxWindow *arg1 = (wxWindow *) 0 ;
23738 wxAutoBufferedPaintDC *result = 0 ;
23739 void *argp1 = 0 ;
23740 int res1 = 0 ;
23741 PyObject * obj0 = 0 ;
23742 char * kwnames[] = {
23743 (char *) "win", NULL
23744 };
23745
23746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
23747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23748 if (!SWIG_IsOK(res1)) {
23749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23750 }
23751 arg1 = reinterpret_cast< wxWindow * >(argp1);
23752 {
23753 PyThreadState* __tstate = wxPyBeginAllowThreads();
23754 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
23755 wxPyEndAllowThreads(__tstate);
23756 if (PyErr_Occurred()) SWIG_fail;
23757 }
23758 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23759 return resultobj;
23760 fail:
23761 return NULL;
23762 }
23763
23764
23765 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23766 PyObject *obj;
23767 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23768 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
23769 return SWIG_Py_Void();
23770 }
23771
23772 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23773 return SWIG_Python_InitShadowInstance(args);
23774 }
23775
23776 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23777 PyObject *resultobj = 0;
23778 wxWindow *arg1 = (wxWindow *) 0 ;
23779 wxDC *result = 0 ;
23780 void *argp1 = 0 ;
23781 int res1 = 0 ;
23782 PyObject * obj0 = 0 ;
23783 char * kwnames[] = {
23784 (char *) "window", NULL
23785 };
23786
23787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
23788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23789 if (!SWIG_IsOK(res1)) {
23790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
23791 }
23792 arg1 = reinterpret_cast< wxWindow * >(argp1);
23793 {
23794 PyThreadState* __tstate = wxPyBeginAllowThreads();
23795 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
23796 wxPyEndAllowThreads(__tstate);
23797 if (PyErr_Occurred()) SWIG_fail;
23798 }
23799 {
23800 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
23801 }
23802 return resultobj;
23803 fail:
23804 return NULL;
23805 }
23806
23807
23808 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23809 PyObject *resultobj = 0;
23810 wxDC *arg1 = 0 ;
23811 bool arg2 ;
23812 wxMirrorDC *result = 0 ;
23813 void *argp1 = 0 ;
23814 int res1 = 0 ;
23815 bool val2 ;
23816 int ecode2 = 0 ;
23817 PyObject * obj0 = 0 ;
23818 PyObject * obj1 = 0 ;
23819 char * kwnames[] = {
23820 (char *) "dc",(char *) "mirror", NULL
23821 };
23822
23823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
23824 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23825 if (!SWIG_IsOK(res1)) {
23826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23827 }
23828 if (!argp1) {
23829 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23830 }
23831 arg1 = reinterpret_cast< wxDC * >(argp1);
23832 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23833 if (!SWIG_IsOK(ecode2)) {
23834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
23835 }
23836 arg2 = static_cast< bool >(val2);
23837 {
23838 if (!wxPyCheckForApp()) SWIG_fail;
23839 PyThreadState* __tstate = wxPyBeginAllowThreads();
23840 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
23841 wxPyEndAllowThreads(__tstate);
23842 if (PyErr_Occurred()) SWIG_fail;
23843 }
23844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
23845 return resultobj;
23846 fail:
23847 return NULL;
23848 }
23849
23850
23851 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23852 PyObject *obj;
23853 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23854 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
23855 return SWIG_Py_Void();
23856 }
23857
23858 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23859 return SWIG_Python_InitShadowInstance(args);
23860 }
23861
23862 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23863 PyObject *resultobj = 0;
23864 wxPrintData *arg1 = 0 ;
23865 wxPostScriptDC *result = 0 ;
23866 void *argp1 = 0 ;
23867 int res1 = 0 ;
23868 PyObject * obj0 = 0 ;
23869 char * kwnames[] = {
23870 (char *) "printData", NULL
23871 };
23872
23873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
23874 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
23875 if (!SWIG_IsOK(res1)) {
23876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23877 }
23878 if (!argp1) {
23879 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23880 }
23881 arg1 = reinterpret_cast< wxPrintData * >(argp1);
23882 {
23883 if (!wxPyCheckForApp()) SWIG_fail;
23884 PyThreadState* __tstate = wxPyBeginAllowThreads();
23885 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
23886 wxPyEndAllowThreads(__tstate);
23887 if (PyErr_Occurred()) SWIG_fail;
23888 }
23889 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
23890 return resultobj;
23891 fail:
23892 return NULL;
23893 }
23894
23895
23896 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23897 PyObject *resultobj = 0;
23898 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23899 wxPrintData *result = 0 ;
23900 void *argp1 = 0 ;
23901 int res1 = 0 ;
23902 PyObject *swig_obj[1] ;
23903
23904 if (!args) SWIG_fail;
23905 swig_obj[0] = args;
23906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23907 if (!SWIG_IsOK(res1)) {
23908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23909 }
23910 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23911 {
23912 PyThreadState* __tstate = wxPyBeginAllowThreads();
23913 {
23914 wxPrintData &_result_ref = (arg1)->GetPrintData();
23915 result = (wxPrintData *) &_result_ref;
23916 }
23917 wxPyEndAllowThreads(__tstate);
23918 if (PyErr_Occurred()) SWIG_fail;
23919 }
23920 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
23921 return resultobj;
23922 fail:
23923 return NULL;
23924 }
23925
23926
23927 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23928 PyObject *resultobj = 0;
23929 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23930 wxPrintData *arg2 = 0 ;
23931 void *argp1 = 0 ;
23932 int res1 = 0 ;
23933 void *argp2 = 0 ;
23934 int res2 = 0 ;
23935 PyObject * obj0 = 0 ;
23936 PyObject * obj1 = 0 ;
23937 char * kwnames[] = {
23938 (char *) "self",(char *) "data", NULL
23939 };
23940
23941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
23942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23943 if (!SWIG_IsOK(res1)) {
23944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23945 }
23946 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23947 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
23948 if (!SWIG_IsOK(res2)) {
23949 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23950 }
23951 if (!argp2) {
23952 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23953 }
23954 arg2 = reinterpret_cast< wxPrintData * >(argp2);
23955 {
23956 PyThreadState* __tstate = wxPyBeginAllowThreads();
23957 (arg1)->SetPrintData((wxPrintData const &)*arg2);
23958 wxPyEndAllowThreads(__tstate);
23959 if (PyErr_Occurred()) SWIG_fail;
23960 }
23961 resultobj = SWIG_Py_Void();
23962 return resultobj;
23963 fail:
23964 return NULL;
23965 }
23966
23967
23968 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23969 PyObject *resultobj = 0;
23970 int arg1 ;
23971 int val1 ;
23972 int ecode1 = 0 ;
23973 PyObject * obj0 = 0 ;
23974 char * kwnames[] = {
23975 (char *) "ppi", NULL
23976 };
23977
23978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
23979 ecode1 = SWIG_AsVal_int(obj0, &val1);
23980 if (!SWIG_IsOK(ecode1)) {
23981 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
23982 }
23983 arg1 = static_cast< int >(val1);
23984 {
23985 PyThreadState* __tstate = wxPyBeginAllowThreads();
23986 wxPostScriptDC::SetResolution(arg1);
23987 wxPyEndAllowThreads(__tstate);
23988 if (PyErr_Occurred()) SWIG_fail;
23989 }
23990 resultobj = SWIG_Py_Void();
23991 return resultobj;
23992 fail:
23993 return NULL;
23994 }
23995
23996
23997 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23998 PyObject *resultobj = 0;
23999 int result;
24000
24001 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24002 {
24003 PyThreadState* __tstate = wxPyBeginAllowThreads();
24004 result = (int)wxPostScriptDC::GetResolution();
24005 wxPyEndAllowThreads(__tstate);
24006 if (PyErr_Occurred()) SWIG_fail;
24007 }
24008 resultobj = SWIG_From_int(static_cast< int >(result));
24009 return resultobj;
24010 fail:
24011 return NULL;
24012 }
24013
24014
24015 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24016 PyObject *obj;
24017 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24018 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24019 return SWIG_Py_Void();
24020 }
24021
24022 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24023 return SWIG_Python_InitShadowInstance(args);
24024 }
24025
24026 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24027 PyObject *resultobj = 0;
24028 wxString const &arg1_defvalue = wxPyEmptyString ;
24029 wxString *arg1 = (wxString *) &arg1_defvalue ;
24030 wxMetaFile *result = 0 ;
24031 bool temp1 = false ;
24032 PyObject * obj0 = 0 ;
24033 char * kwnames[] = {
24034 (char *) "filename", NULL
24035 };
24036
24037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24038 if (obj0) {
24039 {
24040 arg1 = wxString_in_helper(obj0);
24041 if (arg1 == NULL) SWIG_fail;
24042 temp1 = true;
24043 }
24044 }
24045 {
24046 if (!wxPyCheckForApp()) SWIG_fail;
24047 PyThreadState* __tstate = wxPyBeginAllowThreads();
24048 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24049 wxPyEndAllowThreads(__tstate);
24050 if (PyErr_Occurred()) SWIG_fail;
24051 }
24052 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24053 {
24054 if (temp1)
24055 delete arg1;
24056 }
24057 return resultobj;
24058 fail:
24059 {
24060 if (temp1)
24061 delete arg1;
24062 }
24063 return NULL;
24064 }
24065
24066
24067 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24068 PyObject *resultobj = 0;
24069 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24070 void *argp1 = 0 ;
24071 int res1 = 0 ;
24072 PyObject *swig_obj[1] ;
24073
24074 if (!args) SWIG_fail;
24075 swig_obj[0] = args;
24076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
24077 if (!SWIG_IsOK(res1)) {
24078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24079 }
24080 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24081 {
24082 PyThreadState* __tstate = wxPyBeginAllowThreads();
24083 delete arg1;
24084
24085 wxPyEndAllowThreads(__tstate);
24086 if (PyErr_Occurred()) SWIG_fail;
24087 }
24088 resultobj = SWIG_Py_Void();
24089 return resultobj;
24090 fail:
24091 return NULL;
24092 }
24093
24094
24095 SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24096 PyObject *resultobj = 0;
24097 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24098 bool result;
24099 void *argp1 = 0 ;
24100 int res1 = 0 ;
24101 PyObject *swig_obj[1] ;
24102
24103 if (!args) SWIG_fail;
24104 swig_obj[0] = args;
24105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24106 if (!SWIG_IsOK(res1)) {
24107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24108 }
24109 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24110 {
24111 PyThreadState* __tstate = wxPyBeginAllowThreads();
24112 result = (bool)(arg1)->IsOk();
24113 wxPyEndAllowThreads(__tstate);
24114 if (PyErr_Occurred()) SWIG_fail;
24115 }
24116 {
24117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24118 }
24119 return resultobj;
24120 fail:
24121 return NULL;
24122 }
24123
24124
24125 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24126 PyObject *resultobj = 0;
24127 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24128 int arg2 = (int) 0 ;
24129 int arg3 = (int) 0 ;
24130 bool result;
24131 void *argp1 = 0 ;
24132 int res1 = 0 ;
24133 int val2 ;
24134 int ecode2 = 0 ;
24135 int val3 ;
24136 int ecode3 = 0 ;
24137 PyObject * obj0 = 0 ;
24138 PyObject * obj1 = 0 ;
24139 PyObject * obj2 = 0 ;
24140 char * kwnames[] = {
24141 (char *) "self",(char *) "width",(char *) "height", NULL
24142 };
24143
24144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24146 if (!SWIG_IsOK(res1)) {
24147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24148 }
24149 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24150 if (obj1) {
24151 ecode2 = SWIG_AsVal_int(obj1, &val2);
24152 if (!SWIG_IsOK(ecode2)) {
24153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
24154 }
24155 arg2 = static_cast< int >(val2);
24156 }
24157 if (obj2) {
24158 ecode3 = SWIG_AsVal_int(obj2, &val3);
24159 if (!SWIG_IsOK(ecode3)) {
24160 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
24161 }
24162 arg3 = static_cast< int >(val3);
24163 }
24164 {
24165 PyThreadState* __tstate = wxPyBeginAllowThreads();
24166 result = (bool)(arg1)->SetClipboard(arg2,arg3);
24167 wxPyEndAllowThreads(__tstate);
24168 if (PyErr_Occurred()) SWIG_fail;
24169 }
24170 {
24171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24172 }
24173 return resultobj;
24174 fail:
24175 return NULL;
24176 }
24177
24178
24179 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24180 PyObject *resultobj = 0;
24181 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24182 wxSize result;
24183 void *argp1 = 0 ;
24184 int res1 = 0 ;
24185 PyObject *swig_obj[1] ;
24186
24187 if (!args) SWIG_fail;
24188 swig_obj[0] = args;
24189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24190 if (!SWIG_IsOK(res1)) {
24191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24192 }
24193 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24194 {
24195 PyThreadState* __tstate = wxPyBeginAllowThreads();
24196 result = (arg1)->GetSize();
24197 wxPyEndAllowThreads(__tstate);
24198 if (PyErr_Occurred()) SWIG_fail;
24199 }
24200 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24201 return resultobj;
24202 fail:
24203 return NULL;
24204 }
24205
24206
24207 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24208 PyObject *resultobj = 0;
24209 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24210 int result;
24211 void *argp1 = 0 ;
24212 int res1 = 0 ;
24213 PyObject *swig_obj[1] ;
24214
24215 if (!args) SWIG_fail;
24216 swig_obj[0] = args;
24217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24218 if (!SWIG_IsOK(res1)) {
24219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24220 }
24221 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24222 {
24223 PyThreadState* __tstate = wxPyBeginAllowThreads();
24224 result = (int)(arg1)->GetWidth();
24225 wxPyEndAllowThreads(__tstate);
24226 if (PyErr_Occurred()) SWIG_fail;
24227 }
24228 resultobj = SWIG_From_int(static_cast< int >(result));
24229 return resultobj;
24230 fail:
24231 return NULL;
24232 }
24233
24234
24235 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24236 PyObject *resultobj = 0;
24237 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24238 int result;
24239 void *argp1 = 0 ;
24240 int res1 = 0 ;
24241 PyObject *swig_obj[1] ;
24242
24243 if (!args) SWIG_fail;
24244 swig_obj[0] = args;
24245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24246 if (!SWIG_IsOK(res1)) {
24247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24248 }
24249 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24250 {
24251 PyThreadState* __tstate = wxPyBeginAllowThreads();
24252 result = (int)(arg1)->GetHeight();
24253 wxPyEndAllowThreads(__tstate);
24254 if (PyErr_Occurred()) SWIG_fail;
24255 }
24256 resultobj = SWIG_From_int(static_cast< int >(result));
24257 return resultobj;
24258 fail:
24259 return NULL;
24260 }
24261
24262
24263 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24264 PyObject *obj;
24265 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24266 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
24267 return SWIG_Py_Void();
24268 }
24269
24270 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24271 return SWIG_Python_InitShadowInstance(args);
24272 }
24273
24274 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24275 PyObject *resultobj = 0;
24276 wxString const &arg1_defvalue = wxPyEmptyString ;
24277 wxString *arg1 = (wxString *) &arg1_defvalue ;
24278 int arg2 = (int) 0 ;
24279 int arg3 = (int) 0 ;
24280 wxString const &arg4_defvalue = wxPyEmptyString ;
24281 wxString *arg4 = (wxString *) &arg4_defvalue ;
24282 wxMetaFileDC *result = 0 ;
24283 bool temp1 = false ;
24284 int val2 ;
24285 int ecode2 = 0 ;
24286 int val3 ;
24287 int ecode3 = 0 ;
24288 bool temp4 = false ;
24289 PyObject * obj0 = 0 ;
24290 PyObject * obj1 = 0 ;
24291 PyObject * obj2 = 0 ;
24292 PyObject * obj3 = 0 ;
24293 char * kwnames[] = {
24294 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
24295 };
24296
24297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24298 if (obj0) {
24299 {
24300 arg1 = wxString_in_helper(obj0);
24301 if (arg1 == NULL) SWIG_fail;
24302 temp1 = true;
24303 }
24304 }
24305 if (obj1) {
24306 ecode2 = SWIG_AsVal_int(obj1, &val2);
24307 if (!SWIG_IsOK(ecode2)) {
24308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
24309 }
24310 arg2 = static_cast< int >(val2);
24311 }
24312 if (obj2) {
24313 ecode3 = SWIG_AsVal_int(obj2, &val3);
24314 if (!SWIG_IsOK(ecode3)) {
24315 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
24316 }
24317 arg3 = static_cast< int >(val3);
24318 }
24319 if (obj3) {
24320 {
24321 arg4 = wxString_in_helper(obj3);
24322 if (arg4 == NULL) SWIG_fail;
24323 temp4 = true;
24324 }
24325 }
24326 {
24327 if (!wxPyCheckForApp()) SWIG_fail;
24328 PyThreadState* __tstate = wxPyBeginAllowThreads();
24329 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
24330 wxPyEndAllowThreads(__tstate);
24331 if (PyErr_Occurred()) SWIG_fail;
24332 }
24333 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
24334 {
24335 if (temp1)
24336 delete arg1;
24337 }
24338 {
24339 if (temp4)
24340 delete arg4;
24341 }
24342 return resultobj;
24343 fail:
24344 {
24345 if (temp1)
24346 delete arg1;
24347 }
24348 {
24349 if (temp4)
24350 delete arg4;
24351 }
24352 return NULL;
24353 }
24354
24355
24356 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24357 PyObject *resultobj = 0;
24358 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
24359 wxMetaFile *result = 0 ;
24360 void *argp1 = 0 ;
24361 int res1 = 0 ;
24362 PyObject *swig_obj[1] ;
24363
24364 if (!args) SWIG_fail;
24365 swig_obj[0] = args;
24366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
24367 if (!SWIG_IsOK(res1)) {
24368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
24369 }
24370 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
24371 {
24372 PyThreadState* __tstate = wxPyBeginAllowThreads();
24373 result = (wxMetaFile *)(arg1)->Close();
24374 wxPyEndAllowThreads(__tstate);
24375 if (PyErr_Occurred()) SWIG_fail;
24376 }
24377 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
24378 return resultobj;
24379 fail:
24380 return NULL;
24381 }
24382
24383
24384 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24385 PyObject *obj;
24386 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24387 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
24388 return SWIG_Py_Void();
24389 }
24390
24391 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24392 return SWIG_Python_InitShadowInstance(args);
24393 }
24394
24395 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24396 PyObject *resultobj = 0;
24397 wxPrintData *arg1 = 0 ;
24398 wxPrinterDC *result = 0 ;
24399 void *argp1 = 0 ;
24400 int res1 = 0 ;
24401 PyObject * obj0 = 0 ;
24402 char * kwnames[] = {
24403 (char *) "printData", NULL
24404 };
24405
24406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
24407 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24408 if (!SWIG_IsOK(res1)) {
24409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24410 }
24411 if (!argp1) {
24412 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24413 }
24414 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24415 {
24416 if (!wxPyCheckForApp()) SWIG_fail;
24417 PyThreadState* __tstate = wxPyBeginAllowThreads();
24418 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
24419 wxPyEndAllowThreads(__tstate);
24420 if (PyErr_Occurred()) SWIG_fail;
24421 }
24422 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
24423 return resultobj;
24424 fail:
24425 return NULL;
24426 }
24427
24428
24429 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24430 PyObject *obj;
24431 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24432 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
24433 return SWIG_Py_Void();
24434 }
24435
24436 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24437 return SWIG_Python_InitShadowInstance(args);
24438 }
24439
24440 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24441 PyObject *resultobj = 0;
24442 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24443 void *argp1 = 0 ;
24444 int res1 = 0 ;
24445 PyObject *swig_obj[1] ;
24446
24447 if (!args) SWIG_fail;
24448 swig_obj[0] = args;
24449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
24450 if (!SWIG_IsOK(res1)) {
24451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24452 }
24453 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24454 {
24455 delete arg1;
24456
24457 if (PyErr_Occurred()) SWIG_fail;
24458 }
24459 resultobj = SWIG_Py_Void();
24460 return resultobj;
24461 fail:
24462 return NULL;
24463 }
24464
24465
24466 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24467 PyObject *resultobj = 0;
24468 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24469 wxDouble arg2 ;
24470 wxDouble arg3 ;
24471 void *argp1 = 0 ;
24472 int res1 = 0 ;
24473 double val2 ;
24474 int ecode2 = 0 ;
24475 double val3 ;
24476 int ecode3 = 0 ;
24477 PyObject * obj0 = 0 ;
24478 PyObject * obj1 = 0 ;
24479 PyObject * obj2 = 0 ;
24480 char * kwnames[] = {
24481 (char *) "self",(char *) "x",(char *) "y", NULL
24482 };
24483
24484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_MoveToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24486 if (!SWIG_IsOK(res1)) {
24487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24488 }
24489 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24490 ecode2 = SWIG_AsVal_double(obj1, &val2);
24491 if (!SWIG_IsOK(ecode2)) {
24492 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24493 }
24494 arg2 = static_cast< wxDouble >(val2);
24495 ecode3 = SWIG_AsVal_double(obj2, &val3);
24496 if (!SWIG_IsOK(ecode3)) {
24497 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24498 }
24499 arg3 = static_cast< wxDouble >(val3);
24500 {
24501 (arg1)->MoveToPoint(arg2,arg3);
24502 if (PyErr_Occurred()) SWIG_fail;
24503 }
24504 resultobj = SWIG_Py_Void();
24505 return resultobj;
24506 fail:
24507 return NULL;
24508 }
24509
24510
24511 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24512 PyObject *resultobj = 0;
24513 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24514 wxDouble arg2 ;
24515 wxDouble arg3 ;
24516 void *argp1 = 0 ;
24517 int res1 = 0 ;
24518 double val2 ;
24519 int ecode2 = 0 ;
24520 double val3 ;
24521 int ecode3 = 0 ;
24522 PyObject * obj0 = 0 ;
24523 PyObject * obj1 = 0 ;
24524 PyObject * obj2 = 0 ;
24525 char * kwnames[] = {
24526 (char *) "self",(char *) "x",(char *) "y", NULL
24527 };
24528
24529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_AddLineToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24531 if (!SWIG_IsOK(res1)) {
24532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24533 }
24534 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24535 ecode2 = SWIG_AsVal_double(obj1, &val2);
24536 if (!SWIG_IsOK(ecode2)) {
24537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24538 }
24539 arg2 = static_cast< wxDouble >(val2);
24540 ecode3 = SWIG_AsVal_double(obj2, &val3);
24541 if (!SWIG_IsOK(ecode3)) {
24542 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24543 }
24544 arg3 = static_cast< wxDouble >(val3);
24545 {
24546 (arg1)->AddLineToPoint(arg2,arg3);
24547 if (PyErr_Occurred()) SWIG_fail;
24548 }
24549 resultobj = SWIG_Py_Void();
24550 return resultobj;
24551 fail:
24552 return NULL;
24553 }
24554
24555
24556 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24557 PyObject *resultobj = 0;
24558 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24559 wxDouble arg2 ;
24560 wxDouble arg3 ;
24561 wxDouble arg4 ;
24562 wxDouble arg5 ;
24563 wxDouble arg6 ;
24564 wxDouble arg7 ;
24565 void *argp1 = 0 ;
24566 int res1 = 0 ;
24567 double val2 ;
24568 int ecode2 = 0 ;
24569 double val3 ;
24570 int ecode3 = 0 ;
24571 double val4 ;
24572 int ecode4 = 0 ;
24573 double val5 ;
24574 int ecode5 = 0 ;
24575 double val6 ;
24576 int ecode6 = 0 ;
24577 double val7 ;
24578 int ecode7 = 0 ;
24579 PyObject * obj0 = 0 ;
24580 PyObject * obj1 = 0 ;
24581 PyObject * obj2 = 0 ;
24582 PyObject * obj3 = 0 ;
24583 PyObject * obj4 = 0 ;
24584 PyObject * obj5 = 0 ;
24585 PyObject * obj6 = 0 ;
24586 char * kwnames[] = {
24587 (char *) "self",(char *) "cx1",(char *) "cy1",(char *) "cx2",(char *) "cy2",(char *) "x",(char *) "y", NULL
24588 };
24589
24590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24592 if (!SWIG_IsOK(res1)) {
24593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24594 }
24595 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24596 ecode2 = SWIG_AsVal_double(obj1, &val2);
24597 if (!SWIG_IsOK(ecode2)) {
24598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24599 }
24600 arg2 = static_cast< wxDouble >(val2);
24601 ecode3 = SWIG_AsVal_double(obj2, &val3);
24602 if (!SWIG_IsOK(ecode3)) {
24603 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24604 }
24605 arg3 = static_cast< wxDouble >(val3);
24606 ecode4 = SWIG_AsVal_double(obj3, &val4);
24607 if (!SWIG_IsOK(ecode4)) {
24608 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24609 }
24610 arg4 = static_cast< wxDouble >(val4);
24611 ecode5 = SWIG_AsVal_double(obj4, &val5);
24612 if (!SWIG_IsOK(ecode5)) {
24613 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24614 }
24615 arg5 = static_cast< wxDouble >(val5);
24616 ecode6 = SWIG_AsVal_double(obj5, &val6);
24617 if (!SWIG_IsOK(ecode6)) {
24618 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
24619 }
24620 arg6 = static_cast< wxDouble >(val6);
24621 ecode7 = SWIG_AsVal_double(obj6, &val7);
24622 if (!SWIG_IsOK(ecode7)) {
24623 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
24624 }
24625 arg7 = static_cast< wxDouble >(val7);
24626 {
24627 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
24628 if (PyErr_Occurred()) SWIG_fail;
24629 }
24630 resultobj = SWIG_Py_Void();
24631 return resultobj;
24632 fail:
24633 return NULL;
24634 }
24635
24636
24637 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24638 PyObject *resultobj = 0;
24639 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24640 void *argp1 = 0 ;
24641 int res1 = 0 ;
24642 PyObject *swig_obj[1] ;
24643
24644 if (!args) SWIG_fail;
24645 swig_obj[0] = args;
24646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24647 if (!SWIG_IsOK(res1)) {
24648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24649 }
24650 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24651 {
24652 (arg1)->CloseSubpath();
24653 if (PyErr_Occurred()) SWIG_fail;
24654 }
24655 resultobj = SWIG_Py_Void();
24656 return resultobj;
24657 fail:
24658 return NULL;
24659 }
24660
24661
24662 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24663 PyObject *resultobj = 0;
24664 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24665 wxPoint2D result;
24666 void *argp1 = 0 ;
24667 int res1 = 0 ;
24668 PyObject *swig_obj[1] ;
24669
24670 if (!args) SWIG_fail;
24671 swig_obj[0] = args;
24672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24673 if (!SWIG_IsOK(res1)) {
24674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24675 }
24676 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24677 {
24678 result = (arg1)->GetCurrentPoint();
24679 if (PyErr_Occurred()) SWIG_fail;
24680 }
24681 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
24682 return resultobj;
24683 fail:
24684 return NULL;
24685 }
24686
24687
24688 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24689 PyObject *resultobj = 0;
24690 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24691 wxDouble arg2 ;
24692 wxDouble arg3 ;
24693 wxDouble arg4 ;
24694 wxDouble arg5 ;
24695 wxDouble arg6 ;
24696 bool arg7 ;
24697 void *argp1 = 0 ;
24698 int res1 = 0 ;
24699 double val2 ;
24700 int ecode2 = 0 ;
24701 double val3 ;
24702 int ecode3 = 0 ;
24703 double val4 ;
24704 int ecode4 = 0 ;
24705 double val5 ;
24706 int ecode5 = 0 ;
24707 double val6 ;
24708 int ecode6 = 0 ;
24709 bool val7 ;
24710 int ecode7 = 0 ;
24711 PyObject * obj0 = 0 ;
24712 PyObject * obj1 = 0 ;
24713 PyObject * obj2 = 0 ;
24714 PyObject * obj3 = 0 ;
24715 PyObject * obj4 = 0 ;
24716 PyObject * obj5 = 0 ;
24717 PyObject * obj6 = 0 ;
24718 char * kwnames[] = {
24719 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "startAngle",(char *) "endAngle",(char *) "clockwise", NULL
24720 };
24721
24722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24724 if (!SWIG_IsOK(res1)) {
24725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24726 }
24727 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24728 ecode2 = SWIG_AsVal_double(obj1, &val2);
24729 if (!SWIG_IsOK(ecode2)) {
24730 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
24731 }
24732 arg2 = static_cast< wxDouble >(val2);
24733 ecode3 = SWIG_AsVal_double(obj2, &val3);
24734 if (!SWIG_IsOK(ecode3)) {
24735 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
24736 }
24737 arg3 = static_cast< wxDouble >(val3);
24738 ecode4 = SWIG_AsVal_double(obj3, &val4);
24739 if (!SWIG_IsOK(ecode4)) {
24740 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
24741 }
24742 arg4 = static_cast< wxDouble >(val4);
24743 ecode5 = SWIG_AsVal_double(obj4, &val5);
24744 if (!SWIG_IsOK(ecode5)) {
24745 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
24746 }
24747 arg5 = static_cast< wxDouble >(val5);
24748 ecode6 = SWIG_AsVal_double(obj5, &val6);
24749 if (!SWIG_IsOK(ecode6)) {
24750 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
24751 }
24752 arg6 = static_cast< wxDouble >(val6);
24753 ecode7 = SWIG_AsVal_bool(obj6, &val7);
24754 if (!SWIG_IsOK(ecode7)) {
24755 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
24756 }
24757 arg7 = static_cast< bool >(val7);
24758 {
24759 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
24760 if (PyErr_Occurred()) SWIG_fail;
24761 }
24762 resultobj = SWIG_Py_Void();
24763 return resultobj;
24764 fail:
24765 return NULL;
24766 }
24767
24768
24769 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24770 PyObject *resultobj = 0;
24771 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24772 wxDouble arg2 ;
24773 wxDouble arg3 ;
24774 wxDouble arg4 ;
24775 wxDouble arg5 ;
24776 void *argp1 = 0 ;
24777 int res1 = 0 ;
24778 double val2 ;
24779 int ecode2 = 0 ;
24780 double val3 ;
24781 int ecode3 = 0 ;
24782 double val4 ;
24783 int ecode4 = 0 ;
24784 double val5 ;
24785 int ecode5 = 0 ;
24786 PyObject * obj0 = 0 ;
24787 PyObject * obj1 = 0 ;
24788 PyObject * obj2 = 0 ;
24789 PyObject * obj3 = 0 ;
24790 PyObject * obj4 = 0 ;
24791 char * kwnames[] = {
24792 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
24793 };
24794
24795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24797 if (!SWIG_IsOK(res1)) {
24798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24799 }
24800 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24801 ecode2 = SWIG_AsVal_double(obj1, &val2);
24802 if (!SWIG_IsOK(ecode2)) {
24803 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24804 }
24805 arg2 = static_cast< wxDouble >(val2);
24806 ecode3 = SWIG_AsVal_double(obj2, &val3);
24807 if (!SWIG_IsOK(ecode3)) {
24808 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24809 }
24810 arg3 = static_cast< wxDouble >(val3);
24811 ecode4 = SWIG_AsVal_double(obj3, &val4);
24812 if (!SWIG_IsOK(ecode4)) {
24813 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24814 }
24815 arg4 = static_cast< wxDouble >(val4);
24816 ecode5 = SWIG_AsVal_double(obj4, &val5);
24817 if (!SWIG_IsOK(ecode5)) {
24818 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24819 }
24820 arg5 = static_cast< wxDouble >(val5);
24821 {
24822 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
24823 if (PyErr_Occurred()) SWIG_fail;
24824 }
24825 resultobj = SWIG_Py_Void();
24826 return resultobj;
24827 fail:
24828 return NULL;
24829 }
24830
24831
24832 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24833 PyObject *resultobj = 0;
24834 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24835 wxDouble arg2 ;
24836 wxDouble arg3 ;
24837 wxDouble arg4 ;
24838 wxDouble arg5 ;
24839 void *argp1 = 0 ;
24840 int res1 = 0 ;
24841 double val2 ;
24842 int ecode2 = 0 ;
24843 double val3 ;
24844 int ecode3 = 0 ;
24845 double val4 ;
24846 int ecode4 = 0 ;
24847 double val5 ;
24848 int ecode5 = 0 ;
24849 PyObject * obj0 = 0 ;
24850 PyObject * obj1 = 0 ;
24851 PyObject * obj2 = 0 ;
24852 PyObject * obj3 = 0 ;
24853 PyObject * obj4 = 0 ;
24854 char * kwnames[] = {
24855 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
24856 };
24857
24858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24860 if (!SWIG_IsOK(res1)) {
24861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24862 }
24863 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24864 ecode2 = SWIG_AsVal_double(obj1, &val2);
24865 if (!SWIG_IsOK(ecode2)) {
24866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
24867 }
24868 arg2 = static_cast< wxDouble >(val2);
24869 ecode3 = SWIG_AsVal_double(obj2, &val3);
24870 if (!SWIG_IsOK(ecode3)) {
24871 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
24872 }
24873 arg3 = static_cast< wxDouble >(val3);
24874 ecode4 = SWIG_AsVal_double(obj3, &val4);
24875 if (!SWIG_IsOK(ecode4)) {
24876 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
24877 }
24878 arg4 = static_cast< wxDouble >(val4);
24879 ecode5 = SWIG_AsVal_double(obj4, &val5);
24880 if (!SWIG_IsOK(ecode5)) {
24881 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
24882 }
24883 arg5 = static_cast< wxDouble >(val5);
24884 {
24885 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
24886 if (PyErr_Occurred()) SWIG_fail;
24887 }
24888 resultobj = SWIG_Py_Void();
24889 return resultobj;
24890 fail:
24891 return NULL;
24892 }
24893
24894
24895 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24896 PyObject *resultobj = 0;
24897 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24898 wxDouble arg2 ;
24899 wxDouble arg3 ;
24900 wxDouble arg4 ;
24901 void *argp1 = 0 ;
24902 int res1 = 0 ;
24903 double val2 ;
24904 int ecode2 = 0 ;
24905 double val3 ;
24906 int ecode3 = 0 ;
24907 double val4 ;
24908 int ecode4 = 0 ;
24909 PyObject * obj0 = 0 ;
24910 PyObject * obj1 = 0 ;
24911 PyObject * obj2 = 0 ;
24912 PyObject * obj3 = 0 ;
24913 char * kwnames[] = {
24914 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
24915 };
24916
24917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24919 if (!SWIG_IsOK(res1)) {
24920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24921 }
24922 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24923 ecode2 = SWIG_AsVal_double(obj1, &val2);
24924 if (!SWIG_IsOK(ecode2)) {
24925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
24926 }
24927 arg2 = static_cast< wxDouble >(val2);
24928 ecode3 = SWIG_AsVal_double(obj2, &val3);
24929 if (!SWIG_IsOK(ecode3)) {
24930 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
24931 }
24932 arg3 = static_cast< wxDouble >(val3);
24933 ecode4 = SWIG_AsVal_double(obj3, &val4);
24934 if (!SWIG_IsOK(ecode4)) {
24935 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
24936 }
24937 arg4 = static_cast< wxDouble >(val4);
24938 {
24939 (arg1)->AddCircle(arg2,arg3,arg4);
24940 if (PyErr_Occurred()) SWIG_fail;
24941 }
24942 resultobj = SWIG_Py_Void();
24943 return resultobj;
24944 fail:
24945 return NULL;
24946 }
24947
24948
24949 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24950 PyObject *resultobj = 0;
24951 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24952 wxDouble arg2 ;
24953 wxDouble arg3 ;
24954 wxDouble arg4 ;
24955 wxDouble arg5 ;
24956 wxDouble arg6 ;
24957 void *argp1 = 0 ;
24958 int res1 = 0 ;
24959 double val2 ;
24960 int ecode2 = 0 ;
24961 double val3 ;
24962 int ecode3 = 0 ;
24963 double val4 ;
24964 int ecode4 = 0 ;
24965 double val5 ;
24966 int ecode5 = 0 ;
24967 double val6 ;
24968 int ecode6 = 0 ;
24969 PyObject * obj0 = 0 ;
24970 PyObject * obj1 = 0 ;
24971 PyObject * obj2 = 0 ;
24972 PyObject * obj3 = 0 ;
24973 PyObject * obj4 = 0 ;
24974 PyObject * obj5 = 0 ;
24975 char * kwnames[] = {
24976 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
24977 };
24978
24979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
24980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24981 if (!SWIG_IsOK(res1)) {
24982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24983 }
24984 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24985 ecode2 = SWIG_AsVal_double(obj1, &val2);
24986 if (!SWIG_IsOK(ecode2)) {
24987 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24988 }
24989 arg2 = static_cast< wxDouble >(val2);
24990 ecode3 = SWIG_AsVal_double(obj2, &val3);
24991 if (!SWIG_IsOK(ecode3)) {
24992 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24993 }
24994 arg3 = static_cast< wxDouble >(val3);
24995 ecode4 = SWIG_AsVal_double(obj3, &val4);
24996 if (!SWIG_IsOK(ecode4)) {
24997 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24998 }
24999 arg4 = static_cast< wxDouble >(val4);
25000 ecode5 = SWIG_AsVal_double(obj4, &val5);
25001 if (!SWIG_IsOK(ecode5)) {
25002 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25003 }
25004 arg5 = static_cast< wxDouble >(val5);
25005 ecode6 = SWIG_AsVal_double(obj5, &val6);
25006 if (!SWIG_IsOK(ecode6)) {
25007 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
25008 }
25009 arg6 = static_cast< wxDouble >(val6);
25010 {
25011 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
25012 if (PyErr_Occurred()) SWIG_fail;
25013 }
25014 resultobj = SWIG_Py_Void();
25015 return resultobj;
25016 fail:
25017 return NULL;
25018 }
25019
25020
25021 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25022 PyObject *obj;
25023 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25024 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
25025 return SWIG_Py_Void();
25026 }
25027
25028 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25029 PyObject *resultobj = 0;
25030 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25031 void *argp1 = 0 ;
25032 int res1 = 0 ;
25033 PyObject *swig_obj[1] ;
25034
25035 if (!args) SWIG_fail;
25036 swig_obj[0] = args;
25037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
25038 if (!SWIG_IsOK(res1)) {
25039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25040 }
25041 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25042 {
25043 delete arg1;
25044
25045 if (PyErr_Occurred()) SWIG_fail;
25046 }
25047 resultobj = SWIG_Py_Void();
25048 return resultobj;
25049 fail:
25050 return NULL;
25051 }
25052
25053
25054 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25055 PyObject *resultobj = 0;
25056 wxWindowDC *arg1 = 0 ;
25057 wxGraphicsContext *result = 0 ;
25058 void *argp1 = 0 ;
25059 int res1 = 0 ;
25060 PyObject * obj0 = 0 ;
25061 char * kwnames[] = {
25062 (char *) "dc", NULL
25063 };
25064
25065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_Create",kwnames,&obj0)) SWIG_fail;
25066 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
25067 if (!SWIG_IsOK(res1)) {
25068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25069 }
25070 if (!argp1) {
25071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25072 }
25073 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
25074 {
25075 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
25076 if (PyErr_Occurred()) SWIG_fail;
25077 }
25078 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25079 return resultobj;
25080 fail:
25081 return NULL;
25082 }
25083
25084
25085 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25086 PyObject *resultobj = 0;
25087 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25088 wxGraphicsPath *result = 0 ;
25089 void *argp1 = 0 ;
25090 int res1 = 0 ;
25091 PyObject *swig_obj[1] ;
25092
25093 if (!args) SWIG_fail;
25094 swig_obj[0] = args;
25095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25096 if (!SWIG_IsOK(res1)) {
25097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25098 }
25099 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25100 {
25101 result = (wxGraphicsPath *)(arg1)->CreatePath();
25102 if (PyErr_Occurred()) SWIG_fail;
25103 }
25104 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25105 return resultobj;
25106 fail:
25107 return NULL;
25108 }
25109
25110
25111 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25112 PyObject *resultobj = 0;
25113 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25114 void *argp1 = 0 ;
25115 int res1 = 0 ;
25116 PyObject *swig_obj[1] ;
25117
25118 if (!args) SWIG_fail;
25119 swig_obj[0] = args;
25120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25121 if (!SWIG_IsOK(res1)) {
25122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25123 }
25124 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25125 {
25126 (arg1)->PushState();
25127 if (PyErr_Occurred()) SWIG_fail;
25128 }
25129 resultobj = SWIG_Py_Void();
25130 return resultobj;
25131 fail:
25132 return NULL;
25133 }
25134
25135
25136 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25137 PyObject *resultobj = 0;
25138 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25139 void *argp1 = 0 ;
25140 int res1 = 0 ;
25141 PyObject *swig_obj[1] ;
25142
25143 if (!args) SWIG_fail;
25144 swig_obj[0] = args;
25145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25146 if (!SWIG_IsOK(res1)) {
25147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25148 }
25149 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25150 {
25151 (arg1)->PopState();
25152 if (PyErr_Occurred()) SWIG_fail;
25153 }
25154 resultobj = SWIG_Py_Void();
25155 return resultobj;
25156 fail:
25157 return NULL;
25158 }
25159
25160
25161 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25162 PyObject *resultobj = 0;
25163 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25164 wxRegion *arg2 = 0 ;
25165 void *argp1 = 0 ;
25166 int res1 = 0 ;
25167 void *argp2 = 0 ;
25168 int res2 = 0 ;
25169 PyObject * obj0 = 0 ;
25170 PyObject * obj1 = 0 ;
25171 char * kwnames[] = {
25172 (char *) "self",(char *) "region", NULL
25173 };
25174
25175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Clip",kwnames,&obj0,&obj1)) SWIG_fail;
25176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25177 if (!SWIG_IsOK(res1)) {
25178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25179 }
25180 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25181 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
25182 if (!SWIG_IsOK(res2)) {
25183 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxRegion const &""'");
25184 }
25185 if (!argp2) {
25186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxRegion const &""'");
25187 }
25188 arg2 = reinterpret_cast< wxRegion * >(argp2);
25189 {
25190 (arg1)->Clip((wxRegion const &)*arg2);
25191 if (PyErr_Occurred()) SWIG_fail;
25192 }
25193 resultobj = SWIG_Py_Void();
25194 return resultobj;
25195 fail:
25196 return NULL;
25197 }
25198
25199
25200 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25201 PyObject *resultobj = 0;
25202 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25203 wxDouble arg2 ;
25204 wxDouble arg3 ;
25205 void *argp1 = 0 ;
25206 int res1 = 0 ;
25207 double val2 ;
25208 int ecode2 = 0 ;
25209 double val3 ;
25210 int ecode3 = 0 ;
25211 PyObject * obj0 = 0 ;
25212 PyObject * obj1 = 0 ;
25213 PyObject * obj2 = 0 ;
25214 char * kwnames[] = {
25215 (char *) "self",(char *) "dx",(char *) "dy", NULL
25216 };
25217
25218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25220 if (!SWIG_IsOK(res1)) {
25221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25222 }
25223 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25224 ecode2 = SWIG_AsVal_double(obj1, &val2);
25225 if (!SWIG_IsOK(ecode2)) {
25226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
25227 }
25228 arg2 = static_cast< wxDouble >(val2);
25229 ecode3 = SWIG_AsVal_double(obj2, &val3);
25230 if (!SWIG_IsOK(ecode3)) {
25231 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
25232 }
25233 arg3 = static_cast< wxDouble >(val3);
25234 {
25235 (arg1)->Translate(arg2,arg3);
25236 if (PyErr_Occurred()) SWIG_fail;
25237 }
25238 resultobj = SWIG_Py_Void();
25239 return resultobj;
25240 fail:
25241 return NULL;
25242 }
25243
25244
25245 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25246 PyObject *resultobj = 0;
25247 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25248 wxDouble arg2 ;
25249 wxDouble arg3 ;
25250 void *argp1 = 0 ;
25251 int res1 = 0 ;
25252 double val2 ;
25253 int ecode2 = 0 ;
25254 double val3 ;
25255 int ecode3 = 0 ;
25256 PyObject * obj0 = 0 ;
25257 PyObject * obj1 = 0 ;
25258 PyObject * obj2 = 0 ;
25259 char * kwnames[] = {
25260 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25261 };
25262
25263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25265 if (!SWIG_IsOK(res1)) {
25266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25267 }
25268 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25269 ecode2 = SWIG_AsVal_double(obj1, &val2);
25270 if (!SWIG_IsOK(ecode2)) {
25271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25272 }
25273 arg2 = static_cast< wxDouble >(val2);
25274 ecode3 = SWIG_AsVal_double(obj2, &val3);
25275 if (!SWIG_IsOK(ecode3)) {
25276 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25277 }
25278 arg3 = static_cast< wxDouble >(val3);
25279 {
25280 (arg1)->Scale(arg2,arg3);
25281 if (PyErr_Occurred()) SWIG_fail;
25282 }
25283 resultobj = SWIG_Py_Void();
25284 return resultobj;
25285 fail:
25286 return NULL;
25287 }
25288
25289
25290 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25291 PyObject *resultobj = 0;
25292 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25293 wxDouble arg2 ;
25294 void *argp1 = 0 ;
25295 int res1 = 0 ;
25296 double val2 ;
25297 int ecode2 = 0 ;
25298 PyObject * obj0 = 0 ;
25299 PyObject * obj1 = 0 ;
25300 char * kwnames[] = {
25301 (char *) "self",(char *) "angle", NULL
25302 };
25303
25304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
25305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25306 if (!SWIG_IsOK(res1)) {
25307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25308 }
25309 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25310 ecode2 = SWIG_AsVal_double(obj1, &val2);
25311 if (!SWIG_IsOK(ecode2)) {
25312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
25313 }
25314 arg2 = static_cast< wxDouble >(val2);
25315 {
25316 (arg1)->Rotate(arg2);
25317 if (PyErr_Occurred()) SWIG_fail;
25318 }
25319 resultobj = SWIG_Py_Void();
25320 return resultobj;
25321 fail:
25322 return NULL;
25323 }
25324
25325
25326 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25327 PyObject *resultobj = 0;
25328 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25329 wxPen *arg2 = 0 ;
25330 void *argp1 = 0 ;
25331 int res1 = 0 ;
25332 void *argp2 = 0 ;
25333 int res2 = 0 ;
25334 PyObject * obj0 = 0 ;
25335 PyObject * obj1 = 0 ;
25336 char * kwnames[] = {
25337 (char *) "self",(char *) "pen", NULL
25338 };
25339
25340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
25341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25342 if (!SWIG_IsOK(res1)) {
25343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25344 }
25345 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25346 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
25347 if (!SWIG_IsOK(res2)) {
25348 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25349 }
25350 if (!argp2) {
25351 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25352 }
25353 arg2 = reinterpret_cast< wxPen * >(argp2);
25354 {
25355 (arg1)->SetPen((wxPen const &)*arg2);
25356 if (PyErr_Occurred()) SWIG_fail;
25357 }
25358 resultobj = SWIG_Py_Void();
25359 return resultobj;
25360 fail:
25361 return NULL;
25362 }
25363
25364
25365 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25366 PyObject *resultobj = 0;
25367 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25368 wxBrush *arg2 = 0 ;
25369 void *argp1 = 0 ;
25370 int res1 = 0 ;
25371 void *argp2 = 0 ;
25372 int res2 = 0 ;
25373 PyObject * obj0 = 0 ;
25374 PyObject * obj1 = 0 ;
25375 char * kwnames[] = {
25376 (char *) "self",(char *) "brush", NULL
25377 };
25378
25379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25381 if (!SWIG_IsOK(res1)) {
25382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25383 }
25384 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25385 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
25386 if (!SWIG_IsOK(res2)) {
25387 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25388 }
25389 if (!argp2) {
25390 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25391 }
25392 arg2 = reinterpret_cast< wxBrush * >(argp2);
25393 {
25394 (arg1)->SetBrush((wxBrush const &)*arg2);
25395 if (PyErr_Occurred()) SWIG_fail;
25396 }
25397 resultobj = SWIG_Py_Void();
25398 return resultobj;
25399 fail:
25400 return NULL;
25401 }
25402
25403
25404 SWIGINTERN PyObject *_wrap_GraphicsContext_SetLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25405 PyObject *resultobj = 0;
25406 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25407 wxDouble arg2 ;
25408 wxDouble arg3 ;
25409 wxDouble arg4 ;
25410 wxDouble arg5 ;
25411 wxColour *arg6 = 0 ;
25412 wxColour *arg7 = 0 ;
25413 void *argp1 = 0 ;
25414 int res1 = 0 ;
25415 double val2 ;
25416 int ecode2 = 0 ;
25417 double val3 ;
25418 int ecode3 = 0 ;
25419 double val4 ;
25420 int ecode4 = 0 ;
25421 double val5 ;
25422 int ecode5 = 0 ;
25423 wxColour temp6 ;
25424 wxColour temp7 ;
25425 PyObject * obj0 = 0 ;
25426 PyObject * obj1 = 0 ;
25427 PyObject * obj2 = 0 ;
25428 PyObject * obj3 = 0 ;
25429 PyObject * obj4 = 0 ;
25430 PyObject * obj5 = 0 ;
25431 PyObject * obj6 = 0 ;
25432 char * kwnames[] = {
25433 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
25434 };
25435
25436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_SetLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25438 if (!SWIG_IsOK(res1)) {
25439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25440 }
25441 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25442 ecode2 = SWIG_AsVal_double(obj1, &val2);
25443 if (!SWIG_IsOK(ecode2)) {
25444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25445 }
25446 arg2 = static_cast< wxDouble >(val2);
25447 ecode3 = SWIG_AsVal_double(obj2, &val3);
25448 if (!SWIG_IsOK(ecode3)) {
25449 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25450 }
25451 arg3 = static_cast< wxDouble >(val3);
25452 ecode4 = SWIG_AsVal_double(obj3, &val4);
25453 if (!SWIG_IsOK(ecode4)) {
25454 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25455 }
25456 arg4 = static_cast< wxDouble >(val4);
25457 ecode5 = SWIG_AsVal_double(obj4, &val5);
25458 if (!SWIG_IsOK(ecode5)) {
25459 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25460 }
25461 arg5 = static_cast< wxDouble >(val5);
25462 {
25463 arg6 = &temp6;
25464 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
25465 }
25466 {
25467 arg7 = &temp7;
25468 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25469 }
25470 {
25471 (arg1)->SetLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
25472 if (PyErr_Occurred()) SWIG_fail;
25473 }
25474 resultobj = SWIG_Py_Void();
25475 return resultobj;
25476 fail:
25477 return NULL;
25478 }
25479
25480
25481 SWIGINTERN PyObject *_wrap_GraphicsContext_SetRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25482 PyObject *resultobj = 0;
25483 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25484 wxDouble arg2 ;
25485 wxDouble arg3 ;
25486 wxDouble arg4 ;
25487 wxDouble arg5 ;
25488 wxDouble arg6 ;
25489 wxColour *arg7 = 0 ;
25490 wxColour *arg8 = 0 ;
25491 void *argp1 = 0 ;
25492 int res1 = 0 ;
25493 double val2 ;
25494 int ecode2 = 0 ;
25495 double val3 ;
25496 int ecode3 = 0 ;
25497 double val4 ;
25498 int ecode4 = 0 ;
25499 double val5 ;
25500 int ecode5 = 0 ;
25501 double val6 ;
25502 int ecode6 = 0 ;
25503 wxColour temp7 ;
25504 wxColour temp8 ;
25505 PyObject * obj0 = 0 ;
25506 PyObject * obj1 = 0 ;
25507 PyObject * obj2 = 0 ;
25508 PyObject * obj3 = 0 ;
25509 PyObject * obj4 = 0 ;
25510 PyObject * obj5 = 0 ;
25511 PyObject * obj6 = 0 ;
25512 PyObject * obj7 = 0 ;
25513 char * kwnames[] = {
25514 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
25515 };
25516
25517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_SetRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
25518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25519 if (!SWIG_IsOK(res1)) {
25520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25521 }
25522 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25523 ecode2 = SWIG_AsVal_double(obj1, &val2);
25524 if (!SWIG_IsOK(ecode2)) {
25525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25526 }
25527 arg2 = static_cast< wxDouble >(val2);
25528 ecode3 = SWIG_AsVal_double(obj2, &val3);
25529 if (!SWIG_IsOK(ecode3)) {
25530 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25531 }
25532 arg3 = static_cast< wxDouble >(val3);
25533 ecode4 = SWIG_AsVal_double(obj3, &val4);
25534 if (!SWIG_IsOK(ecode4)) {
25535 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25536 }
25537 arg4 = static_cast< wxDouble >(val4);
25538 ecode5 = SWIG_AsVal_double(obj4, &val5);
25539 if (!SWIG_IsOK(ecode5)) {
25540 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25541 }
25542 arg5 = static_cast< wxDouble >(val5);
25543 ecode6 = SWIG_AsVal_double(obj5, &val6);
25544 if (!SWIG_IsOK(ecode6)) {
25545 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
25546 }
25547 arg6 = static_cast< wxDouble >(val6);
25548 {
25549 arg7 = &temp7;
25550 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25551 }
25552 {
25553 arg8 = &temp8;
25554 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
25555 }
25556 {
25557 (arg1)->SetRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
25558 if (PyErr_Occurred()) SWIG_fail;
25559 }
25560 resultobj = SWIG_Py_Void();
25561 return resultobj;
25562 fail:
25563 return NULL;
25564 }
25565
25566
25567 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25568 PyObject *resultobj = 0;
25569 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25570 wxFont *arg2 = 0 ;
25571 void *argp1 = 0 ;
25572 int res1 = 0 ;
25573 void *argp2 = 0 ;
25574 int res2 = 0 ;
25575 PyObject * obj0 = 0 ;
25576 PyObject * obj1 = 0 ;
25577 char * kwnames[] = {
25578 (char *) "self",(char *) "font", NULL
25579 };
25580
25581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25583 if (!SWIG_IsOK(res1)) {
25584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25585 }
25586 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25587 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25588 if (!SWIG_IsOK(res2)) {
25589 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25590 }
25591 if (!argp2) {
25592 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25593 }
25594 arg2 = reinterpret_cast< wxFont * >(argp2);
25595 {
25596 (arg1)->SetFont((wxFont const &)*arg2);
25597 if (PyErr_Occurred()) SWIG_fail;
25598 }
25599 resultobj = SWIG_Py_Void();
25600 return resultobj;
25601 fail:
25602 return NULL;
25603 }
25604
25605
25606 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTextColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25607 PyObject *resultobj = 0;
25608 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25609 wxColour *arg2 = 0 ;
25610 void *argp1 = 0 ;
25611 int res1 = 0 ;
25612 wxColour temp2 ;
25613 PyObject * obj0 = 0 ;
25614 PyObject * obj1 = 0 ;
25615 char * kwnames[] = {
25616 (char *) "self",(char *) "col", NULL
25617 };
25618
25619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTextColor",kwnames,&obj0,&obj1)) SWIG_fail;
25620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25621 if (!SWIG_IsOK(res1)) {
25622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTextColor" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25623 }
25624 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25625 {
25626 arg2 = &temp2;
25627 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25628 }
25629 {
25630 (arg1)->SetTextColor((wxColour const &)*arg2);
25631 if (PyErr_Occurred()) SWIG_fail;
25632 }
25633 resultobj = SWIG_Py_Void();
25634 return resultobj;
25635 fail:
25636 return NULL;
25637 }
25638
25639
25640 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25641 PyObject *resultobj = 0;
25642 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25643 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25644 void *argp1 = 0 ;
25645 int res1 = 0 ;
25646 void *argp2 = 0 ;
25647 int res2 = 0 ;
25648 PyObject * obj0 = 0 ;
25649 PyObject * obj1 = 0 ;
25650 char * kwnames[] = {
25651 (char *) "self",(char *) "path", NULL
25652 };
25653
25654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
25655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25656 if (!SWIG_IsOK(res1)) {
25657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25658 }
25659 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25660 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25661 if (!SWIG_IsOK(res2)) {
25662 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25663 }
25664 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25665 {
25666 (arg1)->StrokePath((wxGraphicsPath const *)arg2);
25667 if (PyErr_Occurred()) SWIG_fail;
25668 }
25669 resultobj = SWIG_Py_Void();
25670 return resultobj;
25671 fail:
25672 return NULL;
25673 }
25674
25675
25676 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25677 PyObject *resultobj = 0;
25678 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25679 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25680 int arg3 = (int) wxWINDING_RULE ;
25681 void *argp1 = 0 ;
25682 int res1 = 0 ;
25683 void *argp2 = 0 ;
25684 int res2 = 0 ;
25685 int val3 ;
25686 int ecode3 = 0 ;
25687 PyObject * obj0 = 0 ;
25688 PyObject * obj1 = 0 ;
25689 PyObject * obj2 = 0 ;
25690 char * kwnames[] = {
25691 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25692 };
25693
25694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25696 if (!SWIG_IsOK(res1)) {
25697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25698 }
25699 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25700 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25701 if (!SWIG_IsOK(res2)) {
25702 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25703 }
25704 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25705 if (obj2) {
25706 ecode3 = SWIG_AsVal_int(obj2, &val3);
25707 if (!SWIG_IsOK(ecode3)) {
25708 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
25709 }
25710 arg3 = static_cast< int >(val3);
25711 }
25712 {
25713 (arg1)->FillPath((wxGraphicsPath const *)arg2,arg3);
25714 if (PyErr_Occurred()) SWIG_fail;
25715 }
25716 resultobj = SWIG_Py_Void();
25717 return resultobj;
25718 fail:
25719 return NULL;
25720 }
25721
25722
25723 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25724 PyObject *resultobj = 0;
25725 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25726 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25727 int arg3 = (int) wxWINDING_RULE ;
25728 void *argp1 = 0 ;
25729 int res1 = 0 ;
25730 void *argp2 = 0 ;
25731 int res2 = 0 ;
25732 int val3 ;
25733 int ecode3 = 0 ;
25734 PyObject * obj0 = 0 ;
25735 PyObject * obj1 = 0 ;
25736 PyObject * obj2 = 0 ;
25737 char * kwnames[] = {
25738 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25739 };
25740
25741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25743 if (!SWIG_IsOK(res1)) {
25744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25745 }
25746 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25747 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25748 if (!SWIG_IsOK(res2)) {
25749 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25750 }
25751 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25752 if (obj2) {
25753 ecode3 = SWIG_AsVal_int(obj2, &val3);
25754 if (!SWIG_IsOK(ecode3)) {
25755 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
25756 }
25757 arg3 = static_cast< int >(val3);
25758 }
25759 {
25760 (arg1)->DrawPath((wxGraphicsPath const *)arg2,arg3);
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_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25771 PyObject *resultobj = 0;
25772 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25773 wxString *arg2 = 0 ;
25774 wxDouble arg3 ;
25775 wxDouble arg4 ;
25776 void *argp1 = 0 ;
25777 int res1 = 0 ;
25778 bool temp2 = false ;
25779 double val3 ;
25780 int ecode3 = 0 ;
25781 double val4 ;
25782 int ecode4 = 0 ;
25783 PyObject * obj0 = 0 ;
25784 PyObject * obj1 = 0 ;
25785 PyObject * obj2 = 0 ;
25786 PyObject * obj3 = 0 ;
25787 char * kwnames[] = {
25788 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
25789 };
25790
25791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25793 if (!SWIG_IsOK(res1)) {
25794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25795 }
25796 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25797 {
25798 arg2 = wxString_in_helper(obj1);
25799 if (arg2 == NULL) SWIG_fail;
25800 temp2 = true;
25801 }
25802 ecode3 = SWIG_AsVal_double(obj2, &val3);
25803 if (!SWIG_IsOK(ecode3)) {
25804 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
25805 }
25806 arg3 = static_cast< wxDouble >(val3);
25807 ecode4 = SWIG_AsVal_double(obj3, &val4);
25808 if (!SWIG_IsOK(ecode4)) {
25809 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
25810 }
25811 arg4 = static_cast< wxDouble >(val4);
25812 {
25813 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
25814 if (PyErr_Occurred()) SWIG_fail;
25815 }
25816 resultobj = SWIG_Py_Void();
25817 {
25818 if (temp2)
25819 delete arg2;
25820 }
25821 return resultobj;
25822 fail:
25823 {
25824 if (temp2)
25825 delete arg2;
25826 }
25827 return NULL;
25828 }
25829
25830
25831 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25832 PyObject *resultobj = 0;
25833 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25834 wxString *arg2 = 0 ;
25835 wxDouble arg3 ;
25836 wxDouble arg4 ;
25837 wxDouble arg5 ;
25838 void *argp1 = 0 ;
25839 int res1 = 0 ;
25840 bool temp2 = false ;
25841 double val3 ;
25842 int ecode3 = 0 ;
25843 double val4 ;
25844 int ecode4 = 0 ;
25845 double val5 ;
25846 int ecode5 = 0 ;
25847 PyObject * obj0 = 0 ;
25848 PyObject * obj1 = 0 ;
25849 PyObject * obj2 = 0 ;
25850 PyObject * obj3 = 0 ;
25851 PyObject * obj4 = 0 ;
25852 char * kwnames[] = {
25853 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
25854 };
25855
25856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25858 if (!SWIG_IsOK(res1)) {
25859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25860 }
25861 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25862 {
25863 arg2 = wxString_in_helper(obj1);
25864 if (arg2 == NULL) SWIG_fail;
25865 temp2 = true;
25866 }
25867 ecode3 = SWIG_AsVal_double(obj2, &val3);
25868 if (!SWIG_IsOK(ecode3)) {
25869 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
25870 }
25871 arg3 = static_cast< wxDouble >(val3);
25872 ecode4 = SWIG_AsVal_double(obj3, &val4);
25873 if (!SWIG_IsOK(ecode4)) {
25874 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
25875 }
25876 arg4 = static_cast< wxDouble >(val4);
25877 ecode5 = SWIG_AsVal_double(obj4, &val5);
25878 if (!SWIG_IsOK(ecode5)) {
25879 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
25880 }
25881 arg5 = static_cast< wxDouble >(val5);
25882 {
25883 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
25884 if (PyErr_Occurred()) SWIG_fail;
25885 }
25886 resultobj = SWIG_Py_Void();
25887 {
25888 if (temp2)
25889 delete arg2;
25890 }
25891 return resultobj;
25892 fail:
25893 {
25894 if (temp2)
25895 delete arg2;
25896 }
25897 return NULL;
25898 }
25899
25900
25901 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25902 PyObject *resultobj = 0;
25903 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25904 wxString *arg2 = 0 ;
25905 wxDouble *arg3 = (wxDouble *) 0 ;
25906 wxDouble *arg4 = (wxDouble *) 0 ;
25907 wxDouble *arg5 = (wxDouble *) 0 ;
25908 wxDouble *arg6 = (wxDouble *) 0 ;
25909 void *argp1 = 0 ;
25910 int res1 = 0 ;
25911 bool temp2 = false ;
25912 wxDouble temp3 ;
25913 int res3 = SWIG_TMPOBJ ;
25914 wxDouble temp4 ;
25915 int res4 = SWIG_TMPOBJ ;
25916 wxDouble temp5 ;
25917 int res5 = SWIG_TMPOBJ ;
25918 wxDouble temp6 ;
25919 int res6 = SWIG_TMPOBJ ;
25920 PyObject * obj0 = 0 ;
25921 PyObject * obj1 = 0 ;
25922 char * kwnames[] = {
25923 (char *) "self",(char *) "text", NULL
25924 };
25925
25926 arg3 = &temp3;
25927 arg4 = &temp4;
25928 arg5 = &temp5;
25929 arg6 = &temp6;
25930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
25931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25932 if (!SWIG_IsOK(res1)) {
25933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
25934 }
25935 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25936 {
25937 arg2 = wxString_in_helper(obj1);
25938 if (arg2 == NULL) SWIG_fail;
25939 temp2 = true;
25940 }
25941 {
25942 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
25943 if (PyErr_Occurred()) SWIG_fail;
25944 }
25945 resultobj = SWIG_Py_Void();
25946 if (SWIG_IsTmpObj(res3)) {
25947 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25948 } else {
25949 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25950 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25951 }
25952 if (SWIG_IsTmpObj(res4)) {
25953 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
25954 } else {
25955 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25956 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
25957 }
25958 if (SWIG_IsTmpObj(res5)) {
25959 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
25960 } else {
25961 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25962 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
25963 }
25964 if (SWIG_IsTmpObj(res6)) {
25965 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
25966 } else {
25967 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25968 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
25969 }
25970 {
25971 if (temp2)
25972 delete arg2;
25973 }
25974 return resultobj;
25975 fail:
25976 {
25977 if (temp2)
25978 delete arg2;
25979 }
25980 return NULL;
25981 }
25982
25983
25984 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25985 PyObject *resultobj = 0;
25986 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25987 wxString *arg2 = 0 ;
25988 wxArrayDouble result;
25989 void *argp1 = 0 ;
25990 int res1 = 0 ;
25991 bool temp2 = false ;
25992 PyObject * obj0 = 0 ;
25993 PyObject * obj1 = 0 ;
25994 char * kwnames[] = {
25995 (char *) "self",(char *) "text", NULL
25996 };
25997
25998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
25999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26000 if (!SWIG_IsOK(res1)) {
26001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26002 }
26003 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26004 {
26005 arg2 = wxString_in_helper(obj1);
26006 if (arg2 == NULL) SWIG_fail;
26007 temp2 = true;
26008 }
26009 {
26010 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
26011 if (PyErr_Occurred()) SWIG_fail;
26012 }
26013 {
26014 resultobj = wxArrayDouble2PyList_helper(result);
26015 }
26016 {
26017 if (temp2)
26018 delete arg2;
26019 }
26020 return resultobj;
26021 fail:
26022 {
26023 if (temp2)
26024 delete arg2;
26025 }
26026 return NULL;
26027 }
26028
26029
26030 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26031 PyObject *resultobj = 0;
26032 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26033 wxBitmap *arg2 = 0 ;
26034 wxDouble arg3 ;
26035 wxDouble arg4 ;
26036 wxDouble arg5 ;
26037 wxDouble arg6 ;
26038 void *argp1 = 0 ;
26039 int res1 = 0 ;
26040 void *argp2 = 0 ;
26041 int res2 = 0 ;
26042 double val3 ;
26043 int ecode3 = 0 ;
26044 double val4 ;
26045 int ecode4 = 0 ;
26046 double val5 ;
26047 int ecode5 = 0 ;
26048 double val6 ;
26049 int ecode6 = 0 ;
26050 PyObject * obj0 = 0 ;
26051 PyObject * obj1 = 0 ;
26052 PyObject * obj2 = 0 ;
26053 PyObject * obj3 = 0 ;
26054 PyObject * obj4 = 0 ;
26055 PyObject * obj5 = 0 ;
26056 char * kwnames[] = {
26057 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26058 };
26059
26060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26062 if (!SWIG_IsOK(res1)) {
26063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26064 }
26065 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26066 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
26067 if (!SWIG_IsOK(res2)) {
26068 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26069 }
26070 if (!argp2) {
26071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26072 }
26073 arg2 = reinterpret_cast< wxBitmap * >(argp2);
26074 ecode3 = SWIG_AsVal_double(obj2, &val3);
26075 if (!SWIG_IsOK(ecode3)) {
26076 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
26077 }
26078 arg3 = static_cast< wxDouble >(val3);
26079 ecode4 = SWIG_AsVal_double(obj3, &val4);
26080 if (!SWIG_IsOK(ecode4)) {
26081 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
26082 }
26083 arg4 = static_cast< wxDouble >(val4);
26084 ecode5 = SWIG_AsVal_double(obj4, &val5);
26085 if (!SWIG_IsOK(ecode5)) {
26086 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
26087 }
26088 arg5 = static_cast< wxDouble >(val5);
26089 ecode6 = SWIG_AsVal_double(obj5, &val6);
26090 if (!SWIG_IsOK(ecode6)) {
26091 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
26092 }
26093 arg6 = static_cast< wxDouble >(val6);
26094 {
26095 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
26096 if (PyErr_Occurred()) SWIG_fail;
26097 }
26098 resultobj = SWIG_Py_Void();
26099 return resultobj;
26100 fail:
26101 return NULL;
26102 }
26103
26104
26105 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26106 PyObject *resultobj = 0;
26107 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26108 wxIcon *arg2 = 0 ;
26109 wxDouble arg3 ;
26110 wxDouble arg4 ;
26111 wxDouble arg5 ;
26112 wxDouble arg6 ;
26113 void *argp1 = 0 ;
26114 int res1 = 0 ;
26115 void *argp2 = 0 ;
26116 int res2 = 0 ;
26117 double val3 ;
26118 int ecode3 = 0 ;
26119 double val4 ;
26120 int ecode4 = 0 ;
26121 double val5 ;
26122 int ecode5 = 0 ;
26123 double val6 ;
26124 int ecode6 = 0 ;
26125 PyObject * obj0 = 0 ;
26126 PyObject * obj1 = 0 ;
26127 PyObject * obj2 = 0 ;
26128 PyObject * obj3 = 0 ;
26129 PyObject * obj4 = 0 ;
26130 PyObject * obj5 = 0 ;
26131 char * kwnames[] = {
26132 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26133 };
26134
26135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26137 if (!SWIG_IsOK(res1)) {
26138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26139 }
26140 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26141 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
26142 if (!SWIG_IsOK(res2)) {
26143 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26144 }
26145 if (!argp2) {
26146 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26147 }
26148 arg2 = reinterpret_cast< wxIcon * >(argp2);
26149 ecode3 = SWIG_AsVal_double(obj2, &val3);
26150 if (!SWIG_IsOK(ecode3)) {
26151 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
26152 }
26153 arg3 = static_cast< wxDouble >(val3);
26154 ecode4 = SWIG_AsVal_double(obj3, &val4);
26155 if (!SWIG_IsOK(ecode4)) {
26156 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
26157 }
26158 arg4 = static_cast< wxDouble >(val4);
26159 ecode5 = SWIG_AsVal_double(obj4, &val5);
26160 if (!SWIG_IsOK(ecode5)) {
26161 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
26162 }
26163 arg5 = static_cast< wxDouble >(val5);
26164 ecode6 = SWIG_AsVal_double(obj5, &val6);
26165 if (!SWIG_IsOK(ecode6)) {
26166 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
26167 }
26168 arg6 = static_cast< wxDouble >(val6);
26169 {
26170 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
26171 if (PyErr_Occurred()) SWIG_fail;
26172 }
26173 resultobj = SWIG_Py_Void();
26174 return resultobj;
26175 fail:
26176 return NULL;
26177 }
26178
26179
26180 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26181 PyObject *resultobj = 0;
26182 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26183 wxDouble arg2 ;
26184 wxDouble arg3 ;
26185 wxDouble arg4 ;
26186 wxDouble arg5 ;
26187 void *argp1 = 0 ;
26188 int res1 = 0 ;
26189 double val2 ;
26190 int ecode2 = 0 ;
26191 double val3 ;
26192 int ecode3 = 0 ;
26193 double val4 ;
26194 int ecode4 = 0 ;
26195 double val5 ;
26196 int ecode5 = 0 ;
26197 PyObject * obj0 = 0 ;
26198 PyObject * obj1 = 0 ;
26199 PyObject * obj2 = 0 ;
26200 PyObject * obj3 = 0 ;
26201 PyObject * obj4 = 0 ;
26202 char * kwnames[] = {
26203 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
26204 };
26205
26206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26208 if (!SWIG_IsOK(res1)) {
26209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26210 }
26211 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26212 ecode2 = SWIG_AsVal_double(obj1, &val2);
26213 if (!SWIG_IsOK(ecode2)) {
26214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
26215 }
26216 arg2 = static_cast< wxDouble >(val2);
26217 ecode3 = SWIG_AsVal_double(obj2, &val3);
26218 if (!SWIG_IsOK(ecode3)) {
26219 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
26220 }
26221 arg3 = static_cast< wxDouble >(val3);
26222 ecode4 = SWIG_AsVal_double(obj3, &val4);
26223 if (!SWIG_IsOK(ecode4)) {
26224 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
26225 }
26226 arg4 = static_cast< wxDouble >(val4);
26227 ecode5 = SWIG_AsVal_double(obj4, &val5);
26228 if (!SWIG_IsOK(ecode5)) {
26229 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
26230 }
26231 arg5 = static_cast< wxDouble >(val5);
26232 {
26233 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
26234 if (PyErr_Occurred()) SWIG_fail;
26235 }
26236 resultobj = SWIG_Py_Void();
26237 return resultobj;
26238 fail:
26239 return NULL;
26240 }
26241
26242
26243 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26244 PyObject *resultobj = 0;
26245 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26246 size_t arg2 ;
26247 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26248 void *argp1 = 0 ;
26249 int res1 = 0 ;
26250 PyObject * obj0 = 0 ;
26251 PyObject * obj1 = 0 ;
26252 char * kwnames[] = {
26253 (char *) "self",(char *) "points", NULL
26254 };
26255
26256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
26257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26258 if (!SWIG_IsOK(res1)) {
26259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26260 }
26261 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26262 {
26263 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
26264 if (arg3 == NULL) SWIG_fail;
26265 }
26266 {
26267 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
26268 if (PyErr_Occurred()) SWIG_fail;
26269 }
26270 resultobj = SWIG_Py_Void();
26271 {
26272 if (arg3) delete [] arg3;
26273 }
26274 return resultobj;
26275 fail:
26276 {
26277 if (arg3) delete [] arg3;
26278 }
26279 return NULL;
26280 }
26281
26282
26283 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26284 PyObject *resultobj = 0;
26285 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26286 PyObject *arg2 = (PyObject *) 0 ;
26287 PyObject *arg3 = (PyObject *) 0 ;
26288 void *argp1 = 0 ;
26289 int res1 = 0 ;
26290 PyObject * obj0 = 0 ;
26291 PyObject * obj1 = 0 ;
26292 PyObject * obj2 = 0 ;
26293 char * kwnames[] = {
26294 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
26295 };
26296
26297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26299 if (!SWIG_IsOK(res1)) {
26300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26301 }
26302 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26303 arg2 = obj1;
26304 arg3 = obj2;
26305 {
26306 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
26307 if (PyErr_Occurred()) SWIG_fail;
26308 }
26309 resultobj = SWIG_Py_Void();
26310 return resultobj;
26311 fail:
26312 return NULL;
26313 }
26314
26315
26316 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26317 PyObject *resultobj = 0;
26318 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26319 size_t arg2 ;
26320 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26321 int arg4 = (int) wxWINDING_RULE ;
26322 void *argp1 = 0 ;
26323 int res1 = 0 ;
26324 int val4 ;
26325 int ecode4 = 0 ;
26326 PyObject * obj0 = 0 ;
26327 PyObject * obj1 = 0 ;
26328 PyObject * obj2 = 0 ;
26329 char * kwnames[] = {
26330 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
26331 };
26332
26333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26335 if (!SWIG_IsOK(res1)) {
26336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26337 }
26338 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26339 {
26340 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
26341 if (arg3 == NULL) SWIG_fail;
26342 }
26343 if (obj2) {
26344 ecode4 = SWIG_AsVal_int(obj2, &val4);
26345 if (!SWIG_IsOK(ecode4)) {
26346 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
26347 }
26348 arg4 = static_cast< int >(val4);
26349 }
26350 {
26351 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
26352 if (PyErr_Occurred()) SWIG_fail;
26353 }
26354 resultobj = SWIG_Py_Void();
26355 {
26356 if (arg3) delete [] arg3;
26357 }
26358 return resultobj;
26359 fail:
26360 {
26361 if (arg3) delete [] arg3;
26362 }
26363 return NULL;
26364 }
26365
26366
26367 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26368 PyObject *resultobj = 0;
26369 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26370 wxDouble arg2 ;
26371 wxDouble arg3 ;
26372 wxDouble arg4 ;
26373 wxDouble arg5 ;
26374 void *argp1 = 0 ;
26375 int res1 = 0 ;
26376 double val2 ;
26377 int ecode2 = 0 ;
26378 double val3 ;
26379 int ecode3 = 0 ;
26380 double val4 ;
26381 int ecode4 = 0 ;
26382 double val5 ;
26383 int ecode5 = 0 ;
26384 PyObject * obj0 = 0 ;
26385 PyObject * obj1 = 0 ;
26386 PyObject * obj2 = 0 ;
26387 PyObject * obj3 = 0 ;
26388 PyObject * obj4 = 0 ;
26389 char * kwnames[] = {
26390 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26391 };
26392
26393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26395 if (!SWIG_IsOK(res1)) {
26396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26397 }
26398 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26399 ecode2 = SWIG_AsVal_double(obj1, &val2);
26400 if (!SWIG_IsOK(ecode2)) {
26401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26402 }
26403 arg2 = static_cast< wxDouble >(val2);
26404 ecode3 = SWIG_AsVal_double(obj2, &val3);
26405 if (!SWIG_IsOK(ecode3)) {
26406 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26407 }
26408 arg3 = static_cast< wxDouble >(val3);
26409 ecode4 = SWIG_AsVal_double(obj3, &val4);
26410 if (!SWIG_IsOK(ecode4)) {
26411 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26412 }
26413 arg4 = static_cast< wxDouble >(val4);
26414 ecode5 = SWIG_AsVal_double(obj4, &val5);
26415 if (!SWIG_IsOK(ecode5)) {
26416 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26417 }
26418 arg5 = static_cast< wxDouble >(val5);
26419 {
26420 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
26421 if (PyErr_Occurred()) SWIG_fail;
26422 }
26423 resultobj = SWIG_Py_Void();
26424 return resultobj;
26425 fail:
26426 return NULL;
26427 }
26428
26429
26430 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26431 PyObject *resultobj = 0;
26432 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26433 wxDouble arg2 ;
26434 wxDouble arg3 ;
26435 wxDouble arg4 ;
26436 wxDouble arg5 ;
26437 void *argp1 = 0 ;
26438 int res1 = 0 ;
26439 double val2 ;
26440 int ecode2 = 0 ;
26441 double val3 ;
26442 int ecode3 = 0 ;
26443 double val4 ;
26444 int ecode4 = 0 ;
26445 double val5 ;
26446 int ecode5 = 0 ;
26447 PyObject * obj0 = 0 ;
26448 PyObject * obj1 = 0 ;
26449 PyObject * obj2 = 0 ;
26450 PyObject * obj3 = 0 ;
26451 PyObject * obj4 = 0 ;
26452 char * kwnames[] = {
26453 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26454 };
26455
26456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26458 if (!SWIG_IsOK(res1)) {
26459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26460 }
26461 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26462 ecode2 = SWIG_AsVal_double(obj1, &val2);
26463 if (!SWIG_IsOK(ecode2)) {
26464 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
26465 }
26466 arg2 = static_cast< wxDouble >(val2);
26467 ecode3 = SWIG_AsVal_double(obj2, &val3);
26468 if (!SWIG_IsOK(ecode3)) {
26469 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
26470 }
26471 arg3 = static_cast< wxDouble >(val3);
26472 ecode4 = SWIG_AsVal_double(obj3, &val4);
26473 if (!SWIG_IsOK(ecode4)) {
26474 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
26475 }
26476 arg4 = static_cast< wxDouble >(val4);
26477 ecode5 = SWIG_AsVal_double(obj4, &val5);
26478 if (!SWIG_IsOK(ecode5)) {
26479 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
26480 }
26481 arg5 = static_cast< wxDouble >(val5);
26482 {
26483 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
26484 if (PyErr_Occurred()) SWIG_fail;
26485 }
26486 resultobj = SWIG_Py_Void();
26487 return resultobj;
26488 fail:
26489 return NULL;
26490 }
26491
26492
26493 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26494 PyObject *resultobj = 0;
26495 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26496 wxDouble arg2 ;
26497 wxDouble arg3 ;
26498 wxDouble arg4 ;
26499 wxDouble arg5 ;
26500 wxDouble arg6 ;
26501 void *argp1 = 0 ;
26502 int res1 = 0 ;
26503 double val2 ;
26504 int ecode2 = 0 ;
26505 double val3 ;
26506 int ecode3 = 0 ;
26507 double val4 ;
26508 int ecode4 = 0 ;
26509 double val5 ;
26510 int ecode5 = 0 ;
26511 double val6 ;
26512 int ecode6 = 0 ;
26513 PyObject * obj0 = 0 ;
26514 PyObject * obj1 = 0 ;
26515 PyObject * obj2 = 0 ;
26516 PyObject * obj3 = 0 ;
26517 PyObject * obj4 = 0 ;
26518 PyObject * obj5 = 0 ;
26519 char * kwnames[] = {
26520 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
26521 };
26522
26523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26525 if (!SWIG_IsOK(res1)) {
26526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26527 }
26528 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26529 ecode2 = SWIG_AsVal_double(obj1, &val2);
26530 if (!SWIG_IsOK(ecode2)) {
26531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26532 }
26533 arg2 = static_cast< wxDouble >(val2);
26534 ecode3 = SWIG_AsVal_double(obj2, &val3);
26535 if (!SWIG_IsOK(ecode3)) {
26536 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26537 }
26538 arg3 = static_cast< wxDouble >(val3);
26539 ecode4 = SWIG_AsVal_double(obj3, &val4);
26540 if (!SWIG_IsOK(ecode4)) {
26541 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26542 }
26543 arg4 = static_cast< wxDouble >(val4);
26544 ecode5 = SWIG_AsVal_double(obj4, &val5);
26545 if (!SWIG_IsOK(ecode5)) {
26546 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26547 }
26548 arg5 = static_cast< wxDouble >(val5);
26549 ecode6 = SWIG_AsVal_double(obj5, &val6);
26550 if (!SWIG_IsOK(ecode6)) {
26551 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
26552 }
26553 arg6 = static_cast< wxDouble >(val6);
26554 {
26555 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
26556 if (PyErr_Occurred()) SWIG_fail;
26557 }
26558 resultobj = SWIG_Py_Void();
26559 return resultobj;
26560 fail:
26561 return NULL;
26562 }
26563
26564
26565 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26566 PyObject *obj;
26567 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26568 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
26569 return SWIG_Py_Void();
26570 }
26571
26572 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26573 PyObject *resultobj = 0;
26574 wxWindowDC *arg1 = 0 ;
26575 wxGCDC *result = 0 ;
26576 void *argp1 = 0 ;
26577 int res1 = 0 ;
26578 PyObject * obj0 = 0 ;
26579 char * kwnames[] = {
26580 (char *) "dc", NULL
26581 };
26582
26583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
26584 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
26585 if (!SWIG_IsOK(res1)) {
26586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26587 }
26588 if (!argp1) {
26589 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26590 }
26591 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
26592 {
26593 if (!wxPyCheckForApp()) SWIG_fail;
26594 PyThreadState* __tstate = wxPyBeginAllowThreads();
26595 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
26596 wxPyEndAllowThreads(__tstate);
26597 if (PyErr_Occurred()) SWIG_fail;
26598 }
26599 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
26600 return resultobj;
26601 fail:
26602 return NULL;
26603 }
26604
26605
26606 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26607 PyObject *resultobj = 0;
26608 wxGCDC *arg1 = (wxGCDC *) 0 ;
26609 void *argp1 = 0 ;
26610 int res1 = 0 ;
26611 PyObject *swig_obj[1] ;
26612
26613 if (!args) SWIG_fail;
26614 swig_obj[0] = args;
26615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
26616 if (!SWIG_IsOK(res1)) {
26617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
26618 }
26619 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26620 {
26621 delete arg1;
26622
26623 if (PyErr_Occurred()) SWIG_fail;
26624 }
26625 resultobj = SWIG_Py_Void();
26626 return resultobj;
26627 fail:
26628 return NULL;
26629 }
26630
26631
26632 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26633 PyObject *resultobj = 0;
26634 wxGCDC *arg1 = (wxGCDC *) 0 ;
26635 wxGraphicsContext *result = 0 ;
26636 void *argp1 = 0 ;
26637 int res1 = 0 ;
26638 PyObject *swig_obj[1] ;
26639
26640 if (!args) SWIG_fail;
26641 swig_obj[0] = args;
26642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
26643 if (!SWIG_IsOK(res1)) {
26644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
26645 }
26646 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26647 {
26648 result = (wxGraphicsContext *)(arg1)->GetGraphicContext();
26649 if (PyErr_Occurred()) SWIG_fail;
26650 }
26651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26652 return resultobj;
26653 fail:
26654 return NULL;
26655 }
26656
26657
26658 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26659 PyObject *obj;
26660 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26661 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
26662 return SWIG_Py_Void();
26663 }
26664
26665 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26666 return SWIG_Python_InitShadowInstance(args);
26667 }
26668
26669 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26670 PyObject *resultobj = 0;
26671 wxOverlay *result = 0 ;
26672
26673 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
26674 {
26675 PyThreadState* __tstate = wxPyBeginAllowThreads();
26676 result = (wxOverlay *)new wxOverlay();
26677 wxPyEndAllowThreads(__tstate);
26678 if (PyErr_Occurred()) SWIG_fail;
26679 }
26680 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
26681 return resultobj;
26682 fail:
26683 return NULL;
26684 }
26685
26686
26687 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26688 PyObject *resultobj = 0;
26689 wxOverlay *arg1 = (wxOverlay *) 0 ;
26690 void *argp1 = 0 ;
26691 int res1 = 0 ;
26692 PyObject *swig_obj[1] ;
26693
26694 if (!args) SWIG_fail;
26695 swig_obj[0] = args;
26696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
26697 if (!SWIG_IsOK(res1)) {
26698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
26699 }
26700 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26701 {
26702 PyThreadState* __tstate = wxPyBeginAllowThreads();
26703 delete arg1;
26704
26705 wxPyEndAllowThreads(__tstate);
26706 if (PyErr_Occurred()) SWIG_fail;
26707 }
26708 resultobj = SWIG_Py_Void();
26709 return resultobj;
26710 fail:
26711 return NULL;
26712 }
26713
26714
26715 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26716 PyObject *resultobj = 0;
26717 wxOverlay *arg1 = (wxOverlay *) 0 ;
26718 void *argp1 = 0 ;
26719 int res1 = 0 ;
26720 PyObject *swig_obj[1] ;
26721
26722 if (!args) SWIG_fail;
26723 swig_obj[0] = args;
26724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
26725 if (!SWIG_IsOK(res1)) {
26726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
26727 }
26728 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26729 {
26730 PyThreadState* __tstate = wxPyBeginAllowThreads();
26731 (arg1)->Reset();
26732 wxPyEndAllowThreads(__tstate);
26733 if (PyErr_Occurred()) SWIG_fail;
26734 }
26735 resultobj = SWIG_Py_Void();
26736 return resultobj;
26737 fail:
26738 return NULL;
26739 }
26740
26741
26742 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26743 PyObject *obj;
26744 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26745 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
26746 return SWIG_Py_Void();
26747 }
26748
26749 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26750 return SWIG_Python_InitShadowInstance(args);
26751 }
26752
26753 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26754 PyObject *resultobj = 0;
26755 wxOverlay *arg1 = 0 ;
26756 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
26757 int arg3 ;
26758 int arg4 ;
26759 int arg5 ;
26760 int arg6 ;
26761 wxDCOverlay *result = 0 ;
26762 void *argp1 = 0 ;
26763 int res1 = 0 ;
26764 void *argp2 = 0 ;
26765 int res2 = 0 ;
26766 int val3 ;
26767 int ecode3 = 0 ;
26768 int val4 ;
26769 int ecode4 = 0 ;
26770 int val5 ;
26771 int ecode5 = 0 ;
26772 int val6 ;
26773 int ecode6 = 0 ;
26774
26775 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
26776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
26777 if (!SWIG_IsOK(res1)) {
26778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26779 }
26780 if (!argp1) {
26781 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26782 }
26783 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26784 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
26785 if (!SWIG_IsOK(res2)) {
26786 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
26787 }
26788 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
26789 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
26790 if (!SWIG_IsOK(ecode3)) {
26791 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
26792 }
26793 arg3 = static_cast< int >(val3);
26794 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
26795 if (!SWIG_IsOK(ecode4)) {
26796 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
26797 }
26798 arg4 = static_cast< int >(val4);
26799 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
26800 if (!SWIG_IsOK(ecode5)) {
26801 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
26802 }
26803 arg5 = static_cast< int >(val5);
26804 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
26805 if (!SWIG_IsOK(ecode6)) {
26806 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
26807 }
26808 arg6 = static_cast< int >(val6);
26809 {
26810 PyThreadState* __tstate = wxPyBeginAllowThreads();
26811 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
26812 wxPyEndAllowThreads(__tstate);
26813 if (PyErr_Occurred()) SWIG_fail;
26814 }
26815 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
26816 return resultobj;
26817 fail:
26818 return NULL;
26819 }
26820
26821
26822 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26823 PyObject *resultobj = 0;
26824 wxOverlay *arg1 = 0 ;
26825 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
26826 wxDCOverlay *result = 0 ;
26827 void *argp1 = 0 ;
26828 int res1 = 0 ;
26829 void *argp2 = 0 ;
26830 int res2 = 0 ;
26831
26832 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
26834 if (!SWIG_IsOK(res1)) {
26835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26836 }
26837 if (!argp1) {
26838 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26839 }
26840 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26841 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
26842 if (!SWIG_IsOK(res2)) {
26843 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
26844 }
26845 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
26846 {
26847 PyThreadState* __tstate = wxPyBeginAllowThreads();
26848 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
26849 wxPyEndAllowThreads(__tstate);
26850 if (PyErr_Occurred()) SWIG_fail;
26851 }
26852 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
26853 return resultobj;
26854 fail:
26855 return NULL;
26856 }
26857
26858
26859 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
26860 int argc;
26861 PyObject *argv[7];
26862
26863 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
26864 --argc;
26865 if (argc == 2) {
26866 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
26867 }
26868 if (argc == 6) {
26869 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
26870 }
26871
26872 fail:
26873 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
26874 return NULL;
26875 }
26876
26877
26878 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26879 PyObject *resultobj = 0;
26880 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
26881 void *argp1 = 0 ;
26882 int res1 = 0 ;
26883 PyObject *swig_obj[1] ;
26884
26885 if (!args) SWIG_fail;
26886 swig_obj[0] = args;
26887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
26888 if (!SWIG_IsOK(res1)) {
26889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
26890 }
26891 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
26892 {
26893 PyThreadState* __tstate = wxPyBeginAllowThreads();
26894 delete arg1;
26895
26896 wxPyEndAllowThreads(__tstate);
26897 if (PyErr_Occurred()) SWIG_fail;
26898 }
26899 resultobj = SWIG_Py_Void();
26900 return resultobj;
26901 fail:
26902 return NULL;
26903 }
26904
26905
26906 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26907 PyObject *resultobj = 0;
26908 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
26909 void *argp1 = 0 ;
26910 int res1 = 0 ;
26911 PyObject *swig_obj[1] ;
26912
26913 if (!args) SWIG_fail;
26914 swig_obj[0] = args;
26915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
26916 if (!SWIG_IsOK(res1)) {
26917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
26918 }
26919 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
26920 {
26921 PyThreadState* __tstate = wxPyBeginAllowThreads();
26922 (arg1)->Clear();
26923 wxPyEndAllowThreads(__tstate);
26924 if (PyErr_Occurred()) SWIG_fail;
26925 }
26926 resultobj = SWIG_Py_Void();
26927 return resultobj;
26928 fail:
26929 return NULL;
26930 }
26931
26932
26933 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26934 PyObject *obj;
26935 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26936 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
26937 return SWIG_Py_Void();
26938 }
26939
26940 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26941 return SWIG_Python_InitShadowInstance(args);
26942 }
26943
26944 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26945 PyObject *resultobj = 0;
26946 int arg1 ;
26947 int arg2 ;
26948 int arg3 = (int) true ;
26949 int arg4 = (int) 1 ;
26950 wxImageList *result = 0 ;
26951 int val1 ;
26952 int ecode1 = 0 ;
26953 int val2 ;
26954 int ecode2 = 0 ;
26955 int val3 ;
26956 int ecode3 = 0 ;
26957 int val4 ;
26958 int ecode4 = 0 ;
26959 PyObject * obj0 = 0 ;
26960 PyObject * obj1 = 0 ;
26961 PyObject * obj2 = 0 ;
26962 PyObject * obj3 = 0 ;
26963 char * kwnames[] = {
26964 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
26965 };
26966
26967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26968 ecode1 = SWIG_AsVal_int(obj0, &val1);
26969 if (!SWIG_IsOK(ecode1)) {
26970 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
26971 }
26972 arg1 = static_cast< int >(val1);
26973 ecode2 = SWIG_AsVal_int(obj1, &val2);
26974 if (!SWIG_IsOK(ecode2)) {
26975 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
26976 }
26977 arg2 = static_cast< int >(val2);
26978 if (obj2) {
26979 ecode3 = SWIG_AsVal_int(obj2, &val3);
26980 if (!SWIG_IsOK(ecode3)) {
26981 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
26982 }
26983 arg3 = static_cast< int >(val3);
26984 }
26985 if (obj3) {
26986 ecode4 = SWIG_AsVal_int(obj3, &val4);
26987 if (!SWIG_IsOK(ecode4)) {
26988 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
26989 }
26990 arg4 = static_cast< int >(val4);
26991 }
26992 {
26993 if (!wxPyCheckForApp()) SWIG_fail;
26994 PyThreadState* __tstate = wxPyBeginAllowThreads();
26995 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
26996 wxPyEndAllowThreads(__tstate);
26997 if (PyErr_Occurred()) SWIG_fail;
26998 }
26999 {
27000 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
27001 }
27002 return resultobj;
27003 fail:
27004 return NULL;
27005 }
27006
27007
27008 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27009 PyObject *resultobj = 0;
27010 wxImageList *arg1 = (wxImageList *) 0 ;
27011 void *argp1 = 0 ;
27012 int res1 = 0 ;
27013 PyObject *swig_obj[1] ;
27014
27015 if (!args) SWIG_fail;
27016 swig_obj[0] = args;
27017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
27018 if (!SWIG_IsOK(res1)) {
27019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
27020 }
27021 arg1 = reinterpret_cast< wxImageList * >(argp1);
27022 {
27023 PyThreadState* __tstate = wxPyBeginAllowThreads();
27024 delete arg1;
27025
27026 wxPyEndAllowThreads(__tstate);
27027 if (PyErr_Occurred()) SWIG_fail;
27028 }
27029 resultobj = SWIG_Py_Void();
27030 return resultobj;
27031 fail:
27032 return NULL;
27033 }
27034
27035
27036 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27037 PyObject *resultobj = 0;
27038 wxImageList *arg1 = (wxImageList *) 0 ;
27039 wxBitmap *arg2 = 0 ;
27040 wxBitmap const &arg3_defvalue = wxNullBitmap ;
27041 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
27042 int result;
27043 void *argp1 = 0 ;
27044 int res1 = 0 ;
27045 void *argp2 = 0 ;
27046 int res2 = 0 ;
27047 void *argp3 = 0 ;
27048 int res3 = 0 ;
27049 PyObject * obj0 = 0 ;
27050 PyObject * obj1 = 0 ;
27051 PyObject * obj2 = 0 ;
27052 char * kwnames[] = {
27053 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
27054 };
27055
27056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27058 if (!SWIG_IsOK(res1)) {
27059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
27060 }
27061 arg1 = reinterpret_cast< wxImageList * >(argp1);
27062 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27063 if (!SWIG_IsOK(res2)) {
27064 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27065 }
27066 if (!argp2) {
27067 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27068 }
27069 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27070 if (obj2) {
27071 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27072 if (!SWIG_IsOK(res3)) {
27073 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27074 }
27075 if (!argp3) {
27076 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27077 }
27078 arg3 = reinterpret_cast< wxBitmap * >(argp3);
27079 }
27080 {
27081 PyThreadState* __tstate = wxPyBeginAllowThreads();
27082 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
27083 wxPyEndAllowThreads(__tstate);
27084 if (PyErr_Occurred()) SWIG_fail;
27085 }
27086 resultobj = SWIG_From_int(static_cast< int >(result));
27087 return resultobj;
27088 fail:
27089 return NULL;
27090 }
27091
27092
27093 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27094 PyObject *resultobj = 0;
27095 wxImageList *arg1 = (wxImageList *) 0 ;
27096 wxBitmap *arg2 = 0 ;
27097 wxColour *arg3 = 0 ;
27098 int result;
27099 void *argp1 = 0 ;
27100 int res1 = 0 ;
27101 void *argp2 = 0 ;
27102 int res2 = 0 ;
27103 wxColour temp3 ;
27104 PyObject * obj0 = 0 ;
27105 PyObject * obj1 = 0 ;
27106 PyObject * obj2 = 0 ;
27107 char * kwnames[] = {
27108 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
27109 };
27110
27111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27113 if (!SWIG_IsOK(res1)) {
27114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
27115 }
27116 arg1 = reinterpret_cast< wxImageList * >(argp1);
27117 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27118 if (!SWIG_IsOK(res2)) {
27119 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27120 }
27121 if (!argp2) {
27122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27123 }
27124 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27125 {
27126 arg3 = &temp3;
27127 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27128 }
27129 {
27130 PyThreadState* __tstate = wxPyBeginAllowThreads();
27131 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
27132 wxPyEndAllowThreads(__tstate);
27133 if (PyErr_Occurred()) SWIG_fail;
27134 }
27135 resultobj = SWIG_From_int(static_cast< int >(result));
27136 return resultobj;
27137 fail:
27138 return NULL;
27139 }
27140
27141
27142 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27143 PyObject *resultobj = 0;
27144 wxImageList *arg1 = (wxImageList *) 0 ;
27145 wxIcon *arg2 = 0 ;
27146 int result;
27147 void *argp1 = 0 ;
27148 int res1 = 0 ;
27149 void *argp2 = 0 ;
27150 int res2 = 0 ;
27151 PyObject * obj0 = 0 ;
27152 PyObject * obj1 = 0 ;
27153 char * kwnames[] = {
27154 (char *) "self",(char *) "icon", NULL
27155 };
27156
27157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27159 if (!SWIG_IsOK(res1)) {
27160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
27161 }
27162 arg1 = reinterpret_cast< wxImageList * >(argp1);
27163 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
27164 if (!SWIG_IsOK(res2)) {
27165 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27166 }
27167 if (!argp2) {
27168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27169 }
27170 arg2 = reinterpret_cast< wxIcon * >(argp2);
27171 {
27172 PyThreadState* __tstate = wxPyBeginAllowThreads();
27173 result = (int)(arg1)->Add((wxIcon const &)*arg2);
27174 wxPyEndAllowThreads(__tstate);
27175 if (PyErr_Occurred()) SWIG_fail;
27176 }
27177 resultobj = SWIG_From_int(static_cast< int >(result));
27178 return resultobj;
27179 fail:
27180 return NULL;
27181 }
27182
27183
27184 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27185 PyObject *resultobj = 0;
27186 wxImageList *arg1 = (wxImageList *) 0 ;
27187 int arg2 ;
27188 SwigValueWrapper<wxBitmap > result;
27189 void *argp1 = 0 ;
27190 int res1 = 0 ;
27191 int val2 ;
27192 int ecode2 = 0 ;
27193 PyObject * obj0 = 0 ;
27194 PyObject * obj1 = 0 ;
27195 char * kwnames[] = {
27196 (char *) "self",(char *) "index", NULL
27197 };
27198
27199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
27200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27201 if (!SWIG_IsOK(res1)) {
27202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
27203 }
27204 arg1 = reinterpret_cast< wxImageList * >(argp1);
27205 ecode2 = SWIG_AsVal_int(obj1, &val2);
27206 if (!SWIG_IsOK(ecode2)) {
27207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
27208 }
27209 arg2 = static_cast< int >(val2);
27210 {
27211 PyThreadState* __tstate = wxPyBeginAllowThreads();
27212 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
27213 wxPyEndAllowThreads(__tstate);
27214 if (PyErr_Occurred()) SWIG_fail;
27215 }
27216 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
27217 return resultobj;
27218 fail:
27219 return NULL;
27220 }
27221
27222
27223 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27224 PyObject *resultobj = 0;
27225 wxImageList *arg1 = (wxImageList *) 0 ;
27226 int arg2 ;
27227 wxIcon result;
27228 void *argp1 = 0 ;
27229 int res1 = 0 ;
27230 int val2 ;
27231 int ecode2 = 0 ;
27232 PyObject * obj0 = 0 ;
27233 PyObject * obj1 = 0 ;
27234 char * kwnames[] = {
27235 (char *) "self",(char *) "index", NULL
27236 };
27237
27238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27240 if (!SWIG_IsOK(res1)) {
27241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
27242 }
27243 arg1 = reinterpret_cast< wxImageList * >(argp1);
27244 ecode2 = SWIG_AsVal_int(obj1, &val2);
27245 if (!SWIG_IsOK(ecode2)) {
27246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
27247 }
27248 arg2 = static_cast< int >(val2);
27249 {
27250 PyThreadState* __tstate = wxPyBeginAllowThreads();
27251 result = ((wxImageList const *)arg1)->GetIcon(arg2);
27252 wxPyEndAllowThreads(__tstate);
27253 if (PyErr_Occurred()) SWIG_fail;
27254 }
27255 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
27256 return resultobj;
27257 fail:
27258 return NULL;
27259 }
27260
27261
27262 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27263 PyObject *resultobj = 0;
27264 wxImageList *arg1 = (wxImageList *) 0 ;
27265 int arg2 ;
27266 wxBitmap *arg3 = 0 ;
27267 wxBitmap const &arg4_defvalue = wxNullBitmap ;
27268 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
27269 bool result;
27270 void *argp1 = 0 ;
27271 int res1 = 0 ;
27272 int val2 ;
27273 int ecode2 = 0 ;
27274 void *argp3 = 0 ;
27275 int res3 = 0 ;
27276 void *argp4 = 0 ;
27277 int res4 = 0 ;
27278 PyObject * obj0 = 0 ;
27279 PyObject * obj1 = 0 ;
27280 PyObject * obj2 = 0 ;
27281 PyObject * obj3 = 0 ;
27282 char * kwnames[] = {
27283 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
27284 };
27285
27286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27288 if (!SWIG_IsOK(res1)) {
27289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
27290 }
27291 arg1 = reinterpret_cast< wxImageList * >(argp1);
27292 ecode2 = SWIG_AsVal_int(obj1, &val2);
27293 if (!SWIG_IsOK(ecode2)) {
27294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
27295 }
27296 arg2 = static_cast< int >(val2);
27297 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27298 if (!SWIG_IsOK(res3)) {
27299 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27300 }
27301 if (!argp3) {
27302 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27303 }
27304 arg3 = reinterpret_cast< wxBitmap * >(argp3);
27305 if (obj3) {
27306 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
27307 if (!SWIG_IsOK(res4)) {
27308 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27309 }
27310 if (!argp4) {
27311 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27312 }
27313 arg4 = reinterpret_cast< wxBitmap * >(argp4);
27314 }
27315 {
27316 PyThreadState* __tstate = wxPyBeginAllowThreads();
27317 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
27318 wxPyEndAllowThreads(__tstate);
27319 if (PyErr_Occurred()) SWIG_fail;
27320 }
27321 {
27322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27323 }
27324 return resultobj;
27325 fail:
27326 return NULL;
27327 }
27328
27329
27330 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27331 PyObject *resultobj = 0;
27332 wxImageList *arg1 = (wxImageList *) 0 ;
27333 int arg2 ;
27334 wxDC *arg3 = 0 ;
27335 int arg4 ;
27336 int arg5 ;
27337 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
27338 bool arg7 = (bool) (bool)false ;
27339 bool result;
27340 void *argp1 = 0 ;
27341 int res1 = 0 ;
27342 int val2 ;
27343 int ecode2 = 0 ;
27344 void *argp3 = 0 ;
27345 int res3 = 0 ;
27346 int val4 ;
27347 int ecode4 = 0 ;
27348 int val5 ;
27349 int ecode5 = 0 ;
27350 int val6 ;
27351 int ecode6 = 0 ;
27352 bool val7 ;
27353 int ecode7 = 0 ;
27354 PyObject * obj0 = 0 ;
27355 PyObject * obj1 = 0 ;
27356 PyObject * obj2 = 0 ;
27357 PyObject * obj3 = 0 ;
27358 PyObject * obj4 = 0 ;
27359 PyObject * obj5 = 0 ;
27360 PyObject * obj6 = 0 ;
27361 char * kwnames[] = {
27362 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
27363 };
27364
27365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27367 if (!SWIG_IsOK(res1)) {
27368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
27369 }
27370 arg1 = reinterpret_cast< wxImageList * >(argp1);
27371 ecode2 = SWIG_AsVal_int(obj1, &val2);
27372 if (!SWIG_IsOK(ecode2)) {
27373 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
27374 }
27375 arg2 = static_cast< int >(val2);
27376 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27377 if (!SWIG_IsOK(res3)) {
27378 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27379 }
27380 if (!argp3) {
27381 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27382 }
27383 arg3 = reinterpret_cast< wxDC * >(argp3);
27384 ecode4 = SWIG_AsVal_int(obj3, &val4);
27385 if (!SWIG_IsOK(ecode4)) {
27386 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
27387 }
27388 arg4 = static_cast< int >(val4);
27389 ecode5 = SWIG_AsVal_int(obj4, &val5);
27390 if (!SWIG_IsOK(ecode5)) {
27391 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
27392 }
27393 arg5 = static_cast< int >(val5);
27394 if (obj5) {
27395 ecode6 = SWIG_AsVal_int(obj5, &val6);
27396 if (!SWIG_IsOK(ecode6)) {
27397 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
27398 }
27399 arg6 = static_cast< int >(val6);
27400 }
27401 if (obj6) {
27402 ecode7 = SWIG_AsVal_bool(obj6, &val7);
27403 if (!SWIG_IsOK(ecode7)) {
27404 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
27405 }
27406 arg7 = static_cast< bool >(val7);
27407 }
27408 {
27409 PyThreadState* __tstate = wxPyBeginAllowThreads();
27410 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
27411 wxPyEndAllowThreads(__tstate);
27412 if (PyErr_Occurred()) SWIG_fail;
27413 }
27414 {
27415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27416 }
27417 return resultobj;
27418 fail:
27419 return NULL;
27420 }
27421
27422
27423 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27424 PyObject *resultobj = 0;
27425 wxImageList *arg1 = (wxImageList *) 0 ;
27426 int result;
27427 void *argp1 = 0 ;
27428 int res1 = 0 ;
27429 PyObject *swig_obj[1] ;
27430
27431 if (!args) SWIG_fail;
27432 swig_obj[0] = args;
27433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27434 if (!SWIG_IsOK(res1)) {
27435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
27436 }
27437 arg1 = reinterpret_cast< wxImageList * >(argp1);
27438 {
27439 PyThreadState* __tstate = wxPyBeginAllowThreads();
27440 result = (int)(arg1)->GetImageCount();
27441 wxPyEndAllowThreads(__tstate);
27442 if (PyErr_Occurred()) SWIG_fail;
27443 }
27444 resultobj = SWIG_From_int(static_cast< int >(result));
27445 return resultobj;
27446 fail:
27447 return NULL;
27448 }
27449
27450
27451 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27452 PyObject *resultobj = 0;
27453 wxImageList *arg1 = (wxImageList *) 0 ;
27454 int arg2 ;
27455 bool result;
27456 void *argp1 = 0 ;
27457 int res1 = 0 ;
27458 int val2 ;
27459 int ecode2 = 0 ;
27460 PyObject * obj0 = 0 ;
27461 PyObject * obj1 = 0 ;
27462 char * kwnames[] = {
27463 (char *) "self",(char *) "index", NULL
27464 };
27465
27466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
27467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27468 if (!SWIG_IsOK(res1)) {
27469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
27470 }
27471 arg1 = reinterpret_cast< wxImageList * >(argp1);
27472 ecode2 = SWIG_AsVal_int(obj1, &val2);
27473 if (!SWIG_IsOK(ecode2)) {
27474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
27475 }
27476 arg2 = static_cast< int >(val2);
27477 {
27478 PyThreadState* __tstate = wxPyBeginAllowThreads();
27479 result = (bool)(arg1)->Remove(arg2);
27480 wxPyEndAllowThreads(__tstate);
27481 if (PyErr_Occurred()) SWIG_fail;
27482 }
27483 {
27484 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27485 }
27486 return resultobj;
27487 fail:
27488 return NULL;
27489 }
27490
27491
27492 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27493 PyObject *resultobj = 0;
27494 wxImageList *arg1 = (wxImageList *) 0 ;
27495 bool result;
27496 void *argp1 = 0 ;
27497 int res1 = 0 ;
27498 PyObject *swig_obj[1] ;
27499
27500 if (!args) SWIG_fail;
27501 swig_obj[0] = args;
27502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27503 if (!SWIG_IsOK(res1)) {
27504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
27505 }
27506 arg1 = reinterpret_cast< wxImageList * >(argp1);
27507 {
27508 PyThreadState* __tstate = wxPyBeginAllowThreads();
27509 result = (bool)(arg1)->RemoveAll();
27510 wxPyEndAllowThreads(__tstate);
27511 if (PyErr_Occurred()) SWIG_fail;
27512 }
27513 {
27514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27515 }
27516 return resultobj;
27517 fail:
27518 return NULL;
27519 }
27520
27521
27522 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27523 PyObject *resultobj = 0;
27524 wxImageList *arg1 = (wxImageList *) 0 ;
27525 int arg2 ;
27526 int *arg3 = 0 ;
27527 int *arg4 = 0 ;
27528 void *argp1 = 0 ;
27529 int res1 = 0 ;
27530 int val2 ;
27531 int ecode2 = 0 ;
27532 int temp3 ;
27533 int res3 = SWIG_TMPOBJ ;
27534 int temp4 ;
27535 int res4 = SWIG_TMPOBJ ;
27536 PyObject * obj0 = 0 ;
27537 PyObject * obj1 = 0 ;
27538 char * kwnames[] = {
27539 (char *) "self",(char *) "index", NULL
27540 };
27541
27542 arg3 = &temp3;
27543 arg4 = &temp4;
27544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
27545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27546 if (!SWIG_IsOK(res1)) {
27547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
27548 }
27549 arg1 = reinterpret_cast< wxImageList * >(argp1);
27550 ecode2 = SWIG_AsVal_int(obj1, &val2);
27551 if (!SWIG_IsOK(ecode2)) {
27552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
27553 }
27554 arg2 = static_cast< int >(val2);
27555 {
27556 PyThreadState* __tstate = wxPyBeginAllowThreads();
27557 (arg1)->GetSize(arg2,*arg3,*arg4);
27558 wxPyEndAllowThreads(__tstate);
27559 if (PyErr_Occurred()) SWIG_fail;
27560 }
27561 resultobj = SWIG_Py_Void();
27562 if (SWIG_IsTmpObj(res3)) {
27563 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
27564 } else {
27565 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27566 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
27567 }
27568 if (SWIG_IsTmpObj(res4)) {
27569 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
27570 } else {
27571 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27572 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
27573 }
27574 return resultobj;
27575 fail:
27576 return NULL;
27577 }
27578
27579
27580 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27581 PyObject *obj;
27582 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27583 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
27584 return SWIG_Py_Void();
27585 }
27586
27587 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27588 return SWIG_Python_InitShadowInstance(args);
27589 }
27590
27591 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27592 PyObject *resultobj = 0;
27593 wxStockGDI *result = 0 ;
27594
27595 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
27596 {
27597 PyThreadState* __tstate = wxPyBeginAllowThreads();
27598 result = (wxStockGDI *)new wxStockGDI();
27599 wxPyEndAllowThreads(__tstate);
27600 if (PyErr_Occurred()) SWIG_fail;
27601 }
27602 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
27603 return resultobj;
27604 fail:
27605 return NULL;
27606 }
27607
27608
27609 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27610 PyObject *resultobj = 0;
27611 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
27612 void *argp1 = 0 ;
27613 int res1 = 0 ;
27614 PyObject *swig_obj[1] ;
27615
27616 if (!args) SWIG_fail;
27617 swig_obj[0] = args;
27618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
27619 if (!SWIG_IsOK(res1)) {
27620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
27621 }
27622 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
27623 {
27624 PyThreadState* __tstate = wxPyBeginAllowThreads();
27625 delete arg1;
27626
27627 wxPyEndAllowThreads(__tstate);
27628 if (PyErr_Occurred()) SWIG_fail;
27629 }
27630 resultobj = SWIG_Py_Void();
27631 return resultobj;
27632 fail:
27633 return NULL;
27634 }
27635
27636
27637 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27638 PyObject *resultobj = 0;
27639
27640 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
27641 {
27642 PyThreadState* __tstate = wxPyBeginAllowThreads();
27643 wxStockGDI::DeleteAll();
27644 wxPyEndAllowThreads(__tstate);
27645 if (PyErr_Occurred()) SWIG_fail;
27646 }
27647 resultobj = SWIG_Py_Void();
27648 return resultobj;
27649 fail:
27650 return NULL;
27651 }
27652
27653
27654 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27655 PyObject *resultobj = 0;
27656 wxStockGDI *result = 0 ;
27657
27658 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
27659 {
27660 PyThreadState* __tstate = wxPyBeginAllowThreads();
27661 {
27662 wxStockGDI &_result_ref = wxStockGDI::instance();
27663 result = (wxStockGDI *) &_result_ref;
27664 }
27665 wxPyEndAllowThreads(__tstate);
27666 if (PyErr_Occurred()) SWIG_fail;
27667 }
27668 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
27669 return resultobj;
27670 fail:
27671 return NULL;
27672 }
27673
27674
27675 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27676 PyObject *resultobj = 0;
27677 wxStockGDI::Item arg1 ;
27678 wxBrush *result = 0 ;
27679 int val1 ;
27680 int ecode1 = 0 ;
27681 PyObject * obj0 = 0 ;
27682 char * kwnames[] = {
27683 (char *) "item", NULL
27684 };
27685
27686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
27687 ecode1 = SWIG_AsVal_int(obj0, &val1);
27688 if (!SWIG_IsOK(ecode1)) {
27689 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27690 }
27691 arg1 = static_cast< wxStockGDI::Item >(val1);
27692 {
27693 PyThreadState* __tstate = wxPyBeginAllowThreads();
27694 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
27695 wxPyEndAllowThreads(__tstate);
27696 if (PyErr_Occurred()) SWIG_fail;
27697 }
27698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
27699 return resultobj;
27700 fail:
27701 return NULL;
27702 }
27703
27704
27705 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27706 PyObject *resultobj = 0;
27707 wxStockGDI::Item arg1 ;
27708 wxColour *result = 0 ;
27709 int val1 ;
27710 int ecode1 = 0 ;
27711 PyObject * obj0 = 0 ;
27712 char * kwnames[] = {
27713 (char *) "item", NULL
27714 };
27715
27716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
27717 ecode1 = SWIG_AsVal_int(obj0, &val1);
27718 if (!SWIG_IsOK(ecode1)) {
27719 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27720 }
27721 arg1 = static_cast< wxStockGDI::Item >(val1);
27722 {
27723 PyThreadState* __tstate = wxPyBeginAllowThreads();
27724 result = (wxColour *)wxStockGDI::GetColour(arg1);
27725 wxPyEndAllowThreads(__tstate);
27726 if (PyErr_Occurred()) SWIG_fail;
27727 }
27728 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
27729 return resultobj;
27730 fail:
27731 return NULL;
27732 }
27733
27734
27735 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27736 PyObject *resultobj = 0;
27737 wxStockGDI::Item arg1 ;
27738 wxCursor *result = 0 ;
27739 int val1 ;
27740 int ecode1 = 0 ;
27741 PyObject * obj0 = 0 ;
27742 char * kwnames[] = {
27743 (char *) "item", NULL
27744 };
27745
27746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
27747 ecode1 = SWIG_AsVal_int(obj0, &val1);
27748 if (!SWIG_IsOK(ecode1)) {
27749 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27750 }
27751 arg1 = static_cast< wxStockGDI::Item >(val1);
27752 {
27753 PyThreadState* __tstate = wxPyBeginAllowThreads();
27754 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
27755 wxPyEndAllowThreads(__tstate);
27756 if (PyErr_Occurred()) SWIG_fail;
27757 }
27758 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
27759 return resultobj;
27760 fail:
27761 return NULL;
27762 }
27763
27764
27765 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27766 PyObject *resultobj = 0;
27767 wxStockGDI::Item arg1 ;
27768 wxPen *result = 0 ;
27769 int val1 ;
27770 int ecode1 = 0 ;
27771 PyObject * obj0 = 0 ;
27772 char * kwnames[] = {
27773 (char *) "item", NULL
27774 };
27775
27776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
27777 ecode1 = SWIG_AsVal_int(obj0, &val1);
27778 if (!SWIG_IsOK(ecode1)) {
27779 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27780 }
27781 arg1 = static_cast< wxStockGDI::Item >(val1);
27782 {
27783 PyThreadState* __tstate = wxPyBeginAllowThreads();
27784 result = (wxPen *)wxStockGDI::GetPen(arg1);
27785 wxPyEndAllowThreads(__tstate);
27786 if (PyErr_Occurred()) SWIG_fail;
27787 }
27788 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
27789 return resultobj;
27790 fail:
27791 return NULL;
27792 }
27793
27794
27795 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27796 PyObject *resultobj = 0;
27797 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
27798 wxStockGDI::Item arg2 ;
27799 wxFont *result = 0 ;
27800 void *argp1 = 0 ;
27801 int res1 = 0 ;
27802 int val2 ;
27803 int ecode2 = 0 ;
27804 PyObject * obj0 = 0 ;
27805 PyObject * obj1 = 0 ;
27806 char * kwnames[] = {
27807 (char *) "self",(char *) "item", NULL
27808 };
27809
27810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
27812 if (!SWIG_IsOK(res1)) {
27813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
27814 }
27815 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
27816 ecode2 = SWIG_AsVal_int(obj1, &val2);
27817 if (!SWIG_IsOK(ecode2)) {
27818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
27819 }
27820 arg2 = static_cast< wxStockGDI::Item >(val2);
27821 {
27822 PyThreadState* __tstate = wxPyBeginAllowThreads();
27823 result = (wxFont *)(arg1)->GetFont(arg2);
27824 wxPyEndAllowThreads(__tstate);
27825 if (PyErr_Occurred()) SWIG_fail;
27826 }
27827 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
27828 return resultobj;
27829 fail:
27830 return NULL;
27831 }
27832
27833
27834 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27835 PyObject *obj;
27836 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27837 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
27838 return SWIG_Py_Void();
27839 }
27840
27841 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27842 return SWIG_Python_InitShadowInstance(args);
27843 }
27844
27845 SWIGINTERN int NullBitmap_set(PyObject *) {
27846 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
27847 return 1;
27848 }
27849
27850
27851 SWIGINTERN PyObject *NullBitmap_get(void) {
27852 PyObject *pyobj = 0;
27853
27854 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
27855 return pyobj;
27856 }
27857
27858
27859 SWIGINTERN int NullIcon_set(PyObject *) {
27860 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
27861 return 1;
27862 }
27863
27864
27865 SWIGINTERN PyObject *NullIcon_get(void) {
27866 PyObject *pyobj = 0;
27867
27868 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
27869 return pyobj;
27870 }
27871
27872
27873 SWIGINTERN int NullCursor_set(PyObject *) {
27874 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
27875 return 1;
27876 }
27877
27878
27879 SWIGINTERN PyObject *NullCursor_get(void) {
27880 PyObject *pyobj = 0;
27881
27882 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
27883 return pyobj;
27884 }
27885
27886
27887 SWIGINTERN int NullPen_set(PyObject *) {
27888 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
27889 return 1;
27890 }
27891
27892
27893 SWIGINTERN PyObject *NullPen_get(void) {
27894 PyObject *pyobj = 0;
27895
27896 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
27897 return pyobj;
27898 }
27899
27900
27901 SWIGINTERN int NullBrush_set(PyObject *) {
27902 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
27903 return 1;
27904 }
27905
27906
27907 SWIGINTERN PyObject *NullBrush_get(void) {
27908 PyObject *pyobj = 0;
27909
27910 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
27911 return pyobj;
27912 }
27913
27914
27915 SWIGINTERN int NullPalette_set(PyObject *) {
27916 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
27917 return 1;
27918 }
27919
27920
27921 SWIGINTERN PyObject *NullPalette_get(void) {
27922 PyObject *pyobj = 0;
27923
27924 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
27925 return pyobj;
27926 }
27927
27928
27929 SWIGINTERN int NullFont_set(PyObject *) {
27930 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
27931 return 1;
27932 }
27933
27934
27935 SWIGINTERN PyObject *NullFont_get(void) {
27936 PyObject *pyobj = 0;
27937
27938 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
27939 return pyobj;
27940 }
27941
27942
27943 SWIGINTERN int NullColour_set(PyObject *) {
27944 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
27945 return 1;
27946 }
27947
27948
27949 SWIGINTERN PyObject *NullColour_get(void) {
27950 PyObject *pyobj = 0;
27951
27952 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
27953 return pyobj;
27954 }
27955
27956
27957 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27958 PyObject *resultobj = 0;
27959 wxGDIObjListBase *result = 0 ;
27960
27961 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
27962 {
27963 PyThreadState* __tstate = wxPyBeginAllowThreads();
27964 result = (wxGDIObjListBase *)new wxGDIObjListBase();
27965 wxPyEndAllowThreads(__tstate);
27966 if (PyErr_Occurred()) SWIG_fail;
27967 }
27968 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
27969 return resultobj;
27970 fail:
27971 return NULL;
27972 }
27973
27974
27975 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27976 PyObject *resultobj = 0;
27977 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
27978 void *argp1 = 0 ;
27979 int res1 = 0 ;
27980 PyObject *swig_obj[1] ;
27981
27982 if (!args) SWIG_fail;
27983 swig_obj[0] = args;
27984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
27985 if (!SWIG_IsOK(res1)) {
27986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
27987 }
27988 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
27989 {
27990 PyThreadState* __tstate = wxPyBeginAllowThreads();
27991 delete arg1;
27992
27993 wxPyEndAllowThreads(__tstate);
27994 if (PyErr_Occurred()) SWIG_fail;
27995 }
27996 resultobj = SWIG_Py_Void();
27997 return resultobj;
27998 fail:
27999 return NULL;
28000 }
28001
28002
28003 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28004 PyObject *obj;
28005 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28006 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
28007 return SWIG_Py_Void();
28008 }
28009
28010 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28011 return SWIG_Python_InitShadowInstance(args);
28012 }
28013
28014 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28015 PyObject *resultobj = 0;
28016 wxPenList *arg1 = (wxPenList *) 0 ;
28017 wxColour *arg2 = 0 ;
28018 int arg3 ;
28019 int arg4 ;
28020 wxPen *result = 0 ;
28021 void *argp1 = 0 ;
28022 int res1 = 0 ;
28023 wxColour temp2 ;
28024 int val3 ;
28025 int ecode3 = 0 ;
28026 int val4 ;
28027 int ecode4 = 0 ;
28028 PyObject * obj0 = 0 ;
28029 PyObject * obj1 = 0 ;
28030 PyObject * obj2 = 0 ;
28031 PyObject * obj3 = 0 ;
28032 char * kwnames[] = {
28033 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
28034 };
28035
28036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28038 if (!SWIG_IsOK(res1)) {
28039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
28040 }
28041 arg1 = reinterpret_cast< wxPenList * >(argp1);
28042 {
28043 arg2 = &temp2;
28044 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28045 }
28046 ecode3 = SWIG_AsVal_int(obj2, &val3);
28047 if (!SWIG_IsOK(ecode3)) {
28048 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
28049 }
28050 arg3 = static_cast< int >(val3);
28051 ecode4 = SWIG_AsVal_int(obj3, &val4);
28052 if (!SWIG_IsOK(ecode4)) {
28053 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
28054 }
28055 arg4 = static_cast< int >(val4);
28056 {
28057 PyThreadState* __tstate = wxPyBeginAllowThreads();
28058 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
28059 wxPyEndAllowThreads(__tstate);
28060 if (PyErr_Occurred()) SWIG_fail;
28061 }
28062 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
28063 return resultobj;
28064 fail:
28065 return NULL;
28066 }
28067
28068
28069 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28070 PyObject *resultobj = 0;
28071 wxPenList *arg1 = (wxPenList *) 0 ;
28072 wxPen *arg2 = (wxPen *) 0 ;
28073 void *argp1 = 0 ;
28074 int res1 = 0 ;
28075 void *argp2 = 0 ;
28076 int res2 = 0 ;
28077 PyObject * obj0 = 0 ;
28078 PyObject * obj1 = 0 ;
28079 char * kwnames[] = {
28080 (char *) "self",(char *) "pen", NULL
28081 };
28082
28083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
28084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28085 if (!SWIG_IsOK(res1)) {
28086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
28087 }
28088 arg1 = reinterpret_cast< wxPenList * >(argp1);
28089 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
28090 if (!SWIG_IsOK(res2)) {
28091 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
28092 }
28093 arg2 = reinterpret_cast< wxPen * >(argp2);
28094 {
28095 PyThreadState* __tstate = wxPyBeginAllowThreads();
28096 (arg1)->AddPen(arg2);
28097 wxPyEndAllowThreads(__tstate);
28098 if (PyErr_Occurred()) SWIG_fail;
28099 }
28100 resultobj = SWIG_Py_Void();
28101 return resultobj;
28102 fail:
28103 return NULL;
28104 }
28105
28106
28107 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28108 PyObject *resultobj = 0;
28109 wxPenList *arg1 = (wxPenList *) 0 ;
28110 wxPen *arg2 = (wxPen *) 0 ;
28111 void *argp1 = 0 ;
28112 int res1 = 0 ;
28113 void *argp2 = 0 ;
28114 int res2 = 0 ;
28115 PyObject * obj0 = 0 ;
28116 PyObject * obj1 = 0 ;
28117 char * kwnames[] = {
28118 (char *) "self",(char *) "pen", NULL
28119 };
28120
28121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
28122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28123 if (!SWIG_IsOK(res1)) {
28124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
28125 }
28126 arg1 = reinterpret_cast< wxPenList * >(argp1);
28127 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
28128 if (!SWIG_IsOK(res2)) {
28129 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
28130 }
28131 arg2 = reinterpret_cast< wxPen * >(argp2);
28132 {
28133 PyThreadState* __tstate = wxPyBeginAllowThreads();
28134 (arg1)->RemovePen(arg2);
28135 wxPyEndAllowThreads(__tstate);
28136 if (PyErr_Occurred()) SWIG_fail;
28137 }
28138 resultobj = SWIG_Py_Void();
28139 return resultobj;
28140 fail:
28141 return NULL;
28142 }
28143
28144
28145 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28146 PyObject *obj;
28147 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28148 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
28149 return SWIG_Py_Void();
28150 }
28151
28152 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28153 PyObject *resultobj = 0;
28154 wxBrushList *arg1 = (wxBrushList *) 0 ;
28155 wxColour *arg2 = 0 ;
28156 int arg3 = (int) wxSOLID ;
28157 wxBrush *result = 0 ;
28158 void *argp1 = 0 ;
28159 int res1 = 0 ;
28160 wxColour temp2 ;
28161 int val3 ;
28162 int ecode3 = 0 ;
28163 PyObject * obj0 = 0 ;
28164 PyObject * obj1 = 0 ;
28165 PyObject * obj2 = 0 ;
28166 char * kwnames[] = {
28167 (char *) "self",(char *) "colour",(char *) "style", NULL
28168 };
28169
28170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28172 if (!SWIG_IsOK(res1)) {
28173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28174 }
28175 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28176 {
28177 arg2 = &temp2;
28178 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28179 }
28180 if (obj2) {
28181 ecode3 = SWIG_AsVal_int(obj2, &val3);
28182 if (!SWIG_IsOK(ecode3)) {
28183 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
28184 }
28185 arg3 = static_cast< int >(val3);
28186 }
28187 {
28188 PyThreadState* __tstate = wxPyBeginAllowThreads();
28189 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
28190 wxPyEndAllowThreads(__tstate);
28191 if (PyErr_Occurred()) SWIG_fail;
28192 }
28193 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
28194 return resultobj;
28195 fail:
28196 return NULL;
28197 }
28198
28199
28200 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28201 PyObject *resultobj = 0;
28202 wxBrushList *arg1 = (wxBrushList *) 0 ;
28203 wxBrush *arg2 = (wxBrush *) 0 ;
28204 void *argp1 = 0 ;
28205 int res1 = 0 ;
28206 void *argp2 = 0 ;
28207 int res2 = 0 ;
28208 PyObject * obj0 = 0 ;
28209 PyObject * obj1 = 0 ;
28210 char * kwnames[] = {
28211 (char *) "self",(char *) "brush", NULL
28212 };
28213
28214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28216 if (!SWIG_IsOK(res1)) {
28217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28218 }
28219 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28220 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28221 if (!SWIG_IsOK(res2)) {
28222 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28223 }
28224 arg2 = reinterpret_cast< wxBrush * >(argp2);
28225 {
28226 PyThreadState* __tstate = wxPyBeginAllowThreads();
28227 (arg1)->AddBrush(arg2);
28228 wxPyEndAllowThreads(__tstate);
28229 if (PyErr_Occurred()) SWIG_fail;
28230 }
28231 resultobj = SWIG_Py_Void();
28232 return resultobj;
28233 fail:
28234 return NULL;
28235 }
28236
28237
28238 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28239 PyObject *resultobj = 0;
28240 wxBrushList *arg1 = (wxBrushList *) 0 ;
28241 wxBrush *arg2 = (wxBrush *) 0 ;
28242 void *argp1 = 0 ;
28243 int res1 = 0 ;
28244 void *argp2 = 0 ;
28245 int res2 = 0 ;
28246 PyObject * obj0 = 0 ;
28247 PyObject * obj1 = 0 ;
28248 char * kwnames[] = {
28249 (char *) "self",(char *) "brush", NULL
28250 };
28251
28252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28254 if (!SWIG_IsOK(res1)) {
28255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28256 }
28257 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28258 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28259 if (!SWIG_IsOK(res2)) {
28260 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28261 }
28262 arg2 = reinterpret_cast< wxBrush * >(argp2);
28263 {
28264 PyThreadState* __tstate = wxPyBeginAllowThreads();
28265 (arg1)->RemoveBrush(arg2);
28266 wxPyEndAllowThreads(__tstate);
28267 if (PyErr_Occurred()) SWIG_fail;
28268 }
28269 resultobj = SWIG_Py_Void();
28270 return resultobj;
28271 fail:
28272 return NULL;
28273 }
28274
28275
28276 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28277 PyObject *obj;
28278 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28279 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
28280 return SWIG_Py_Void();
28281 }
28282
28283 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28284 PyObject *resultobj = 0;
28285 wxFontList *arg1 = (wxFontList *) 0 ;
28286 int arg2 ;
28287 int arg3 ;
28288 int arg4 ;
28289 int arg5 ;
28290 bool arg6 = (bool) false ;
28291 wxString const &arg7_defvalue = wxPyEmptyString ;
28292 wxString *arg7 = (wxString *) &arg7_defvalue ;
28293 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
28294 wxFont *result = 0 ;
28295 void *argp1 = 0 ;
28296 int res1 = 0 ;
28297 int val2 ;
28298 int ecode2 = 0 ;
28299 int val3 ;
28300 int ecode3 = 0 ;
28301 int val4 ;
28302 int ecode4 = 0 ;
28303 int val5 ;
28304 int ecode5 = 0 ;
28305 bool val6 ;
28306 int ecode6 = 0 ;
28307 bool temp7 = false ;
28308 int val8 ;
28309 int ecode8 = 0 ;
28310 PyObject * obj0 = 0 ;
28311 PyObject * obj1 = 0 ;
28312 PyObject * obj2 = 0 ;
28313 PyObject * obj3 = 0 ;
28314 PyObject * obj4 = 0 ;
28315 PyObject * obj5 = 0 ;
28316 PyObject * obj6 = 0 ;
28317 PyObject * obj7 = 0 ;
28318 char * kwnames[] = {
28319 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
28320 };
28321
28322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
28324 if (!SWIG_IsOK(res1)) {
28325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
28326 }
28327 arg1 = reinterpret_cast< wxFontList * >(argp1);
28328 ecode2 = SWIG_AsVal_int(obj1, &val2);
28329 if (!SWIG_IsOK(ecode2)) {
28330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
28331 }
28332 arg2 = static_cast< int >(val2);
28333 ecode3 = SWIG_AsVal_int(obj2, &val3);
28334 if (!SWIG_IsOK(ecode3)) {
28335 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
28336 }
28337 arg3 = static_cast< int >(val3);
28338 ecode4 = SWIG_AsVal_int(obj3, &val4);
28339 if (!SWIG_IsOK(ecode4)) {
28340 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
28341 }
28342 arg4 = static_cast< int >(val4);
28343 ecode5 = SWIG_AsVal_int(obj4, &val5);
28344 if (!SWIG_IsOK(ecode5)) {
28345 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
28346 }
28347 arg5 = static_cast< int >(val5);
28348 if (obj5) {
28349 ecode6 = SWIG_AsVal_bool(obj5, &val6);
28350 if (!SWIG_IsOK(ecode6)) {
28351 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
28352 }
28353 arg6 = static_cast< bool >(val6);
28354 }
28355 if (obj6) {
28356 {
28357 arg7 = wxString_in_helper(obj6);
28358 if (arg7 == NULL) SWIG_fail;
28359 temp7 = true;
28360 }
28361 }
28362 if (obj7) {
28363 ecode8 = SWIG_AsVal_int(obj7, &val8);
28364 if (!SWIG_IsOK(ecode8)) {
28365 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
28366 }
28367 arg8 = static_cast< wxFontEncoding >(val8);
28368 }
28369 {
28370 PyThreadState* __tstate = wxPyBeginAllowThreads();
28371 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
28372 wxPyEndAllowThreads(__tstate);
28373 if (PyErr_Occurred()) SWIG_fail;
28374 }
28375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
28376 {
28377 if (temp7)
28378 delete arg7;
28379 }
28380 return resultobj;
28381 fail:
28382 {
28383 if (temp7)
28384 delete arg7;
28385 }
28386 return NULL;
28387 }
28388
28389
28390 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28391 PyObject *resultobj = 0;
28392 wxFontList *arg1 = (wxFontList *) 0 ;
28393 wxFont *arg2 = (wxFont *) 0 ;
28394 void *argp1 = 0 ;
28395 int res1 = 0 ;
28396 void *argp2 = 0 ;
28397 int res2 = 0 ;
28398 PyObject * obj0 = 0 ;
28399 PyObject * obj1 = 0 ;
28400 char * kwnames[] = {
28401 (char *) "self",(char *) "font", NULL
28402 };
28403
28404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
28405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
28406 if (!SWIG_IsOK(res1)) {
28407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
28408 }
28409 arg1 = reinterpret_cast< wxFontList * >(argp1);
28410 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
28411 if (!SWIG_IsOK(res2)) {
28412 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
28413 }
28414 arg2 = reinterpret_cast< wxFont * >(argp2);
28415 {
28416 PyThreadState* __tstate = wxPyBeginAllowThreads();
28417 (arg1)->AddFont(arg2);
28418 wxPyEndAllowThreads(__tstate);
28419 if (PyErr_Occurred()) SWIG_fail;
28420 }
28421 resultobj = SWIG_Py_Void();
28422 return resultobj;
28423 fail:
28424 return NULL;
28425 }
28426
28427
28428 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28429 PyObject *resultobj = 0;
28430 wxFontList *arg1 = (wxFontList *) 0 ;
28431 wxFont *arg2 = (wxFont *) 0 ;
28432 void *argp1 = 0 ;
28433 int res1 = 0 ;
28434 void *argp2 = 0 ;
28435 int res2 = 0 ;
28436 PyObject * obj0 = 0 ;
28437 PyObject * obj1 = 0 ;
28438 char * kwnames[] = {
28439 (char *) "self",(char *) "font", NULL
28440 };
28441
28442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
28443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
28444 if (!SWIG_IsOK(res1)) {
28445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
28446 }
28447 arg1 = reinterpret_cast< wxFontList * >(argp1);
28448 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
28449 if (!SWIG_IsOK(res2)) {
28450 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
28451 }
28452 arg2 = reinterpret_cast< wxFont * >(argp2);
28453 {
28454 PyThreadState* __tstate = wxPyBeginAllowThreads();
28455 (arg1)->RemoveFont(arg2);
28456 wxPyEndAllowThreads(__tstate);
28457 if (PyErr_Occurred()) SWIG_fail;
28458 }
28459 resultobj = SWIG_Py_Void();
28460 return resultobj;
28461 fail:
28462 return NULL;
28463 }
28464
28465
28466 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28467 PyObject *obj;
28468 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28469 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
28470 return SWIG_Py_Void();
28471 }
28472
28473 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28474 PyObject *resultobj = 0;
28475 wxColourDatabase *result = 0 ;
28476
28477 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
28478 {
28479 if (!wxPyCheckForApp()) SWIG_fail;
28480 PyThreadState* __tstate = wxPyBeginAllowThreads();
28481 result = (wxColourDatabase *)new wxColourDatabase();
28482 wxPyEndAllowThreads(__tstate);
28483 if (PyErr_Occurred()) SWIG_fail;
28484 }
28485 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
28486 return resultobj;
28487 fail:
28488 return NULL;
28489 }
28490
28491
28492 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28493 PyObject *resultobj = 0;
28494 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28495 void *argp1 = 0 ;
28496 int res1 = 0 ;
28497 PyObject *swig_obj[1] ;
28498
28499 if (!args) SWIG_fail;
28500 swig_obj[0] = args;
28501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
28502 if (!SWIG_IsOK(res1)) {
28503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28504 }
28505 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28506 {
28507 PyThreadState* __tstate = wxPyBeginAllowThreads();
28508 delete arg1;
28509
28510 wxPyEndAllowThreads(__tstate);
28511 if (PyErr_Occurred()) SWIG_fail;
28512 }
28513 resultobj = SWIG_Py_Void();
28514 return resultobj;
28515 fail:
28516 return NULL;
28517 }
28518
28519
28520 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28521 PyObject *resultobj = 0;
28522 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28523 wxString *arg2 = 0 ;
28524 wxColour result;
28525 void *argp1 = 0 ;
28526 int res1 = 0 ;
28527 bool temp2 = false ;
28528 PyObject * obj0 = 0 ;
28529 PyObject * obj1 = 0 ;
28530 char * kwnames[] = {
28531 (char *) "self",(char *) "name", NULL
28532 };
28533
28534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
28535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28536 if (!SWIG_IsOK(res1)) {
28537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28538 }
28539 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28540 {
28541 arg2 = wxString_in_helper(obj1);
28542 if (arg2 == NULL) SWIG_fail;
28543 temp2 = true;
28544 }
28545 {
28546 PyThreadState* __tstate = wxPyBeginAllowThreads();
28547 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
28548 wxPyEndAllowThreads(__tstate);
28549 if (PyErr_Occurred()) SWIG_fail;
28550 }
28551 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28552 {
28553 if (temp2)
28554 delete arg2;
28555 }
28556 return resultobj;
28557 fail:
28558 {
28559 if (temp2)
28560 delete arg2;
28561 }
28562 return NULL;
28563 }
28564
28565
28566 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28567 PyObject *resultobj = 0;
28568 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28569 wxColour *arg2 = 0 ;
28570 wxString result;
28571 void *argp1 = 0 ;
28572 int res1 = 0 ;
28573 wxColour temp2 ;
28574 PyObject * obj0 = 0 ;
28575 PyObject * obj1 = 0 ;
28576 char * kwnames[] = {
28577 (char *) "self",(char *) "colour", NULL
28578 };
28579
28580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
28581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28582 if (!SWIG_IsOK(res1)) {
28583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28584 }
28585 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28586 {
28587 arg2 = &temp2;
28588 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28589 }
28590 {
28591 PyThreadState* __tstate = wxPyBeginAllowThreads();
28592 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
28593 wxPyEndAllowThreads(__tstate);
28594 if (PyErr_Occurred()) SWIG_fail;
28595 }
28596 {
28597 #if wxUSE_UNICODE
28598 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28599 #else
28600 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28601 #endif
28602 }
28603 return resultobj;
28604 fail:
28605 return NULL;
28606 }
28607
28608
28609 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28610 PyObject *resultobj = 0;
28611 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28612 wxString *arg2 = 0 ;
28613 wxColour *arg3 = 0 ;
28614 void *argp1 = 0 ;
28615 int res1 = 0 ;
28616 bool temp2 = false ;
28617 wxColour temp3 ;
28618 PyObject * obj0 = 0 ;
28619 PyObject * obj1 = 0 ;
28620 PyObject * obj2 = 0 ;
28621 char * kwnames[] = {
28622 (char *) "self",(char *) "name",(char *) "colour", NULL
28623 };
28624
28625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28627 if (!SWIG_IsOK(res1)) {
28628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28629 }
28630 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28631 {
28632 arg2 = wxString_in_helper(obj1);
28633 if (arg2 == NULL) SWIG_fail;
28634 temp2 = true;
28635 }
28636 {
28637 arg3 = &temp3;
28638 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28639 }
28640 {
28641 PyThreadState* __tstate = wxPyBeginAllowThreads();
28642 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
28643 wxPyEndAllowThreads(__tstate);
28644 if (PyErr_Occurred()) SWIG_fail;
28645 }
28646 resultobj = SWIG_Py_Void();
28647 {
28648 if (temp2)
28649 delete arg2;
28650 }
28651 return resultobj;
28652 fail:
28653 {
28654 if (temp2)
28655 delete arg2;
28656 }
28657 return NULL;
28658 }
28659
28660
28661 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28662 PyObject *resultobj = 0;
28663 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28664 wxString *arg2 = 0 ;
28665 int arg3 ;
28666 int arg4 ;
28667 int arg5 ;
28668 void *argp1 = 0 ;
28669 int res1 = 0 ;
28670 bool temp2 = false ;
28671 int val3 ;
28672 int ecode3 = 0 ;
28673 int val4 ;
28674 int ecode4 = 0 ;
28675 int val5 ;
28676 int ecode5 = 0 ;
28677 PyObject * obj0 = 0 ;
28678 PyObject * obj1 = 0 ;
28679 PyObject * obj2 = 0 ;
28680 PyObject * obj3 = 0 ;
28681 PyObject * obj4 = 0 ;
28682 char * kwnames[] = {
28683 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
28684 };
28685
28686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28688 if (!SWIG_IsOK(res1)) {
28689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28690 }
28691 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28692 {
28693 arg2 = wxString_in_helper(obj1);
28694 if (arg2 == NULL) SWIG_fail;
28695 temp2 = true;
28696 }
28697 ecode3 = SWIG_AsVal_int(obj2, &val3);
28698 if (!SWIG_IsOK(ecode3)) {
28699 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
28700 }
28701 arg3 = static_cast< int >(val3);
28702 ecode4 = SWIG_AsVal_int(obj3, &val4);
28703 if (!SWIG_IsOK(ecode4)) {
28704 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
28705 }
28706 arg4 = static_cast< int >(val4);
28707 ecode5 = SWIG_AsVal_int(obj4, &val5);
28708 if (!SWIG_IsOK(ecode5)) {
28709 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
28710 }
28711 arg5 = static_cast< int >(val5);
28712 {
28713 PyThreadState* __tstate = wxPyBeginAllowThreads();
28714 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
28715 wxPyEndAllowThreads(__tstate);
28716 if (PyErr_Occurred()) SWIG_fail;
28717 }
28718 resultobj = SWIG_Py_Void();
28719 {
28720 if (temp2)
28721 delete arg2;
28722 }
28723 return resultobj;
28724 fail:
28725 {
28726 if (temp2)
28727 delete arg2;
28728 }
28729 return NULL;
28730 }
28731
28732
28733 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28734 PyObject *obj;
28735 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28736 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
28737 return SWIG_Py_Void();
28738 }
28739
28740 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28741 return SWIG_Python_InitShadowInstance(args);
28742 }
28743
28744 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28745 PyObject *resultobj = 0;
28746 wxFontList *result = 0 ;
28747
28748 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
28749 {
28750 PyThreadState* __tstate = wxPyBeginAllowThreads();
28751 result = (wxFontList *)_wxPyInitTheFontList();
28752 wxPyEndAllowThreads(__tstate);
28753 if (PyErr_Occurred()) SWIG_fail;
28754 }
28755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
28756 return resultobj;
28757 fail:
28758 return NULL;
28759 }
28760
28761
28762 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28763 PyObject *resultobj = 0;
28764 wxPenList *result = 0 ;
28765
28766 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
28767 {
28768 PyThreadState* __tstate = wxPyBeginAllowThreads();
28769 result = (wxPenList *)_wxPyInitThePenList();
28770 wxPyEndAllowThreads(__tstate);
28771 if (PyErr_Occurred()) SWIG_fail;
28772 }
28773 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
28774 return resultobj;
28775 fail:
28776 return NULL;
28777 }
28778
28779
28780 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28781 PyObject *resultobj = 0;
28782 wxBrushList *result = 0 ;
28783
28784 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
28785 {
28786 PyThreadState* __tstate = wxPyBeginAllowThreads();
28787 result = (wxBrushList *)_wxPyInitTheBrushList();
28788 wxPyEndAllowThreads(__tstate);
28789 if (PyErr_Occurred()) SWIG_fail;
28790 }
28791 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
28792 return resultobj;
28793 fail:
28794 return NULL;
28795 }
28796
28797
28798 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28799 PyObject *resultobj = 0;
28800 wxColourDatabase *result = 0 ;
28801
28802 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
28803 {
28804 PyThreadState* __tstate = wxPyBeginAllowThreads();
28805 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
28806 wxPyEndAllowThreads(__tstate);
28807 if (PyErr_Occurred()) SWIG_fail;
28808 }
28809 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28810 return resultobj;
28811 fail:
28812 return NULL;
28813 }
28814
28815
28816 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28817 PyObject *resultobj = 0;
28818 wxEffects *result = 0 ;
28819
28820 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
28821 {
28822 PyThreadState* __tstate = wxPyBeginAllowThreads();
28823 result = (wxEffects *)new wxEffects();
28824 wxPyEndAllowThreads(__tstate);
28825 if (PyErr_Occurred()) SWIG_fail;
28826 }
28827 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
28828 return resultobj;
28829 fail:
28830 return NULL;
28831 }
28832
28833
28834 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28835 PyObject *resultobj = 0;
28836 wxEffects *arg1 = (wxEffects *) 0 ;
28837 wxColour result;
28838 void *argp1 = 0 ;
28839 int res1 = 0 ;
28840 PyObject *swig_obj[1] ;
28841
28842 if (!args) SWIG_fail;
28843 swig_obj[0] = args;
28844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28845 if (!SWIG_IsOK(res1)) {
28846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
28847 }
28848 arg1 = reinterpret_cast< wxEffects * >(argp1);
28849 {
28850 PyThreadState* __tstate = wxPyBeginAllowThreads();
28851 result = ((wxEffects const *)arg1)->GetHighlightColour();
28852 wxPyEndAllowThreads(__tstate);
28853 if (PyErr_Occurred()) SWIG_fail;
28854 }
28855 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28856 return resultobj;
28857 fail:
28858 return NULL;
28859 }
28860
28861
28862 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28863 PyObject *resultobj = 0;
28864 wxEffects *arg1 = (wxEffects *) 0 ;
28865 wxColour result;
28866 void *argp1 = 0 ;
28867 int res1 = 0 ;
28868 PyObject *swig_obj[1] ;
28869
28870 if (!args) SWIG_fail;
28871 swig_obj[0] = args;
28872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28873 if (!SWIG_IsOK(res1)) {
28874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28875 }
28876 arg1 = reinterpret_cast< wxEffects * >(argp1);
28877 {
28878 PyThreadState* __tstate = wxPyBeginAllowThreads();
28879 result = ((wxEffects const *)arg1)->GetLightShadow();
28880 wxPyEndAllowThreads(__tstate);
28881 if (PyErr_Occurred()) SWIG_fail;
28882 }
28883 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28884 return resultobj;
28885 fail:
28886 return NULL;
28887 }
28888
28889
28890 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28891 PyObject *resultobj = 0;
28892 wxEffects *arg1 = (wxEffects *) 0 ;
28893 wxColour result;
28894 void *argp1 = 0 ;
28895 int res1 = 0 ;
28896 PyObject *swig_obj[1] ;
28897
28898 if (!args) SWIG_fail;
28899 swig_obj[0] = args;
28900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28901 if (!SWIG_IsOK(res1)) {
28902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
28903 }
28904 arg1 = reinterpret_cast< wxEffects * >(argp1);
28905 {
28906 PyThreadState* __tstate = wxPyBeginAllowThreads();
28907 result = ((wxEffects const *)arg1)->GetFaceColour();
28908 wxPyEndAllowThreads(__tstate);
28909 if (PyErr_Occurred()) SWIG_fail;
28910 }
28911 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28912 return resultobj;
28913 fail:
28914 return NULL;
28915 }
28916
28917
28918 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28919 PyObject *resultobj = 0;
28920 wxEffects *arg1 = (wxEffects *) 0 ;
28921 wxColour result;
28922 void *argp1 = 0 ;
28923 int res1 = 0 ;
28924 PyObject *swig_obj[1] ;
28925
28926 if (!args) SWIG_fail;
28927 swig_obj[0] = args;
28928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28929 if (!SWIG_IsOK(res1)) {
28930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28931 }
28932 arg1 = reinterpret_cast< wxEffects * >(argp1);
28933 {
28934 PyThreadState* __tstate = wxPyBeginAllowThreads();
28935 result = ((wxEffects const *)arg1)->GetMediumShadow();
28936 wxPyEndAllowThreads(__tstate);
28937 if (PyErr_Occurred()) SWIG_fail;
28938 }
28939 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28940 return resultobj;
28941 fail:
28942 return NULL;
28943 }
28944
28945
28946 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28947 PyObject *resultobj = 0;
28948 wxEffects *arg1 = (wxEffects *) 0 ;
28949 wxColour result;
28950 void *argp1 = 0 ;
28951 int res1 = 0 ;
28952 PyObject *swig_obj[1] ;
28953
28954 if (!args) SWIG_fail;
28955 swig_obj[0] = args;
28956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28957 if (!SWIG_IsOK(res1)) {
28958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28959 }
28960 arg1 = reinterpret_cast< wxEffects * >(argp1);
28961 {
28962 PyThreadState* __tstate = wxPyBeginAllowThreads();
28963 result = ((wxEffects const *)arg1)->GetDarkShadow();
28964 wxPyEndAllowThreads(__tstate);
28965 if (PyErr_Occurred()) SWIG_fail;
28966 }
28967 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28968 return resultobj;
28969 fail:
28970 return NULL;
28971 }
28972
28973
28974 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28975 PyObject *resultobj = 0;
28976 wxEffects *arg1 = (wxEffects *) 0 ;
28977 wxColour *arg2 = 0 ;
28978 void *argp1 = 0 ;
28979 int res1 = 0 ;
28980 wxColour temp2 ;
28981 PyObject * obj0 = 0 ;
28982 PyObject * obj1 = 0 ;
28983 char * kwnames[] = {
28984 (char *) "self",(char *) "c", NULL
28985 };
28986
28987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
28988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28989 if (!SWIG_IsOK(res1)) {
28990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
28991 }
28992 arg1 = reinterpret_cast< wxEffects * >(argp1);
28993 {
28994 arg2 = &temp2;
28995 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28996 }
28997 {
28998 PyThreadState* __tstate = wxPyBeginAllowThreads();
28999 (arg1)->SetHighlightColour((wxColour const &)*arg2);
29000 wxPyEndAllowThreads(__tstate);
29001 if (PyErr_Occurred()) SWIG_fail;
29002 }
29003 resultobj = SWIG_Py_Void();
29004 return resultobj;
29005 fail:
29006 return NULL;
29007 }
29008
29009
29010 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29011 PyObject *resultobj = 0;
29012 wxEffects *arg1 = (wxEffects *) 0 ;
29013 wxColour *arg2 = 0 ;
29014 void *argp1 = 0 ;
29015 int res1 = 0 ;
29016 wxColour temp2 ;
29017 PyObject * obj0 = 0 ;
29018 PyObject * obj1 = 0 ;
29019 char * kwnames[] = {
29020 (char *) "self",(char *) "c", NULL
29021 };
29022
29023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29025 if (!SWIG_IsOK(res1)) {
29026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29027 }
29028 arg1 = reinterpret_cast< wxEffects * >(argp1);
29029 {
29030 arg2 = &temp2;
29031 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29032 }
29033 {
29034 PyThreadState* __tstate = wxPyBeginAllowThreads();
29035 (arg1)->SetLightShadow((wxColour const &)*arg2);
29036 wxPyEndAllowThreads(__tstate);
29037 if (PyErr_Occurred()) SWIG_fail;
29038 }
29039 resultobj = SWIG_Py_Void();
29040 return resultobj;
29041 fail:
29042 return NULL;
29043 }
29044
29045
29046 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29047 PyObject *resultobj = 0;
29048 wxEffects *arg1 = (wxEffects *) 0 ;
29049 wxColour *arg2 = 0 ;
29050 void *argp1 = 0 ;
29051 int res1 = 0 ;
29052 wxColour temp2 ;
29053 PyObject * obj0 = 0 ;
29054 PyObject * obj1 = 0 ;
29055 char * kwnames[] = {
29056 (char *) "self",(char *) "c", NULL
29057 };
29058
29059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
29060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29061 if (!SWIG_IsOK(res1)) {
29062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
29063 }
29064 arg1 = reinterpret_cast< wxEffects * >(argp1);
29065 {
29066 arg2 = &temp2;
29067 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29068 }
29069 {
29070 PyThreadState* __tstate = wxPyBeginAllowThreads();
29071 (arg1)->SetFaceColour((wxColour const &)*arg2);
29072 wxPyEndAllowThreads(__tstate);
29073 if (PyErr_Occurred()) SWIG_fail;
29074 }
29075 resultobj = SWIG_Py_Void();
29076 return resultobj;
29077 fail:
29078 return NULL;
29079 }
29080
29081
29082 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29083 PyObject *resultobj = 0;
29084 wxEffects *arg1 = (wxEffects *) 0 ;
29085 wxColour *arg2 = 0 ;
29086 void *argp1 = 0 ;
29087 int res1 = 0 ;
29088 wxColour temp2 ;
29089 PyObject * obj0 = 0 ;
29090 PyObject * obj1 = 0 ;
29091 char * kwnames[] = {
29092 (char *) "self",(char *) "c", NULL
29093 };
29094
29095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29097 if (!SWIG_IsOK(res1)) {
29098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29099 }
29100 arg1 = reinterpret_cast< wxEffects * >(argp1);
29101 {
29102 arg2 = &temp2;
29103 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29104 }
29105 {
29106 PyThreadState* __tstate = wxPyBeginAllowThreads();
29107 (arg1)->SetMediumShadow((wxColour const &)*arg2);
29108 wxPyEndAllowThreads(__tstate);
29109 if (PyErr_Occurred()) SWIG_fail;
29110 }
29111 resultobj = SWIG_Py_Void();
29112 return resultobj;
29113 fail:
29114 return NULL;
29115 }
29116
29117
29118 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29119 PyObject *resultobj = 0;
29120 wxEffects *arg1 = (wxEffects *) 0 ;
29121 wxColour *arg2 = 0 ;
29122 void *argp1 = 0 ;
29123 int res1 = 0 ;
29124 wxColour temp2 ;
29125 PyObject * obj0 = 0 ;
29126 PyObject * obj1 = 0 ;
29127 char * kwnames[] = {
29128 (char *) "self",(char *) "c", NULL
29129 };
29130
29131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29133 if (!SWIG_IsOK(res1)) {
29134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29135 }
29136 arg1 = reinterpret_cast< wxEffects * >(argp1);
29137 {
29138 arg2 = &temp2;
29139 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29140 }
29141 {
29142 PyThreadState* __tstate = wxPyBeginAllowThreads();
29143 (arg1)->SetDarkShadow((wxColour const &)*arg2);
29144 wxPyEndAllowThreads(__tstate);
29145 if (PyErr_Occurred()) SWIG_fail;
29146 }
29147 resultobj = SWIG_Py_Void();
29148 return resultobj;
29149 fail:
29150 return NULL;
29151 }
29152
29153
29154 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29155 PyObject *resultobj = 0;
29156 wxEffects *arg1 = (wxEffects *) 0 ;
29157 wxColour *arg2 = 0 ;
29158 wxColour *arg3 = 0 ;
29159 wxColour *arg4 = 0 ;
29160 wxColour *arg5 = 0 ;
29161 wxColour *arg6 = 0 ;
29162 void *argp1 = 0 ;
29163 int res1 = 0 ;
29164 wxColour temp2 ;
29165 wxColour temp3 ;
29166 wxColour temp4 ;
29167 wxColour temp5 ;
29168 wxColour temp6 ;
29169 PyObject * obj0 = 0 ;
29170 PyObject * obj1 = 0 ;
29171 PyObject * obj2 = 0 ;
29172 PyObject * obj3 = 0 ;
29173 PyObject * obj4 = 0 ;
29174 PyObject * obj5 = 0 ;
29175 char * kwnames[] = {
29176 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
29177 };
29178
29179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29181 if (!SWIG_IsOK(res1)) {
29182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
29183 }
29184 arg1 = reinterpret_cast< wxEffects * >(argp1);
29185 {
29186 arg2 = &temp2;
29187 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29188 }
29189 {
29190 arg3 = &temp3;
29191 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29192 }
29193 {
29194 arg4 = &temp4;
29195 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
29196 }
29197 {
29198 arg5 = &temp5;
29199 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
29200 }
29201 {
29202 arg6 = &temp6;
29203 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
29204 }
29205 {
29206 PyThreadState* __tstate = wxPyBeginAllowThreads();
29207 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
29208 wxPyEndAllowThreads(__tstate);
29209 if (PyErr_Occurred()) SWIG_fail;
29210 }
29211 resultobj = SWIG_Py_Void();
29212 return resultobj;
29213 fail:
29214 return NULL;
29215 }
29216
29217
29218 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29219 PyObject *resultobj = 0;
29220 wxEffects *arg1 = (wxEffects *) 0 ;
29221 wxDC *arg2 = 0 ;
29222 wxRect *arg3 = 0 ;
29223 int arg4 = (int) 1 ;
29224 void *argp1 = 0 ;
29225 int res1 = 0 ;
29226 void *argp2 = 0 ;
29227 int res2 = 0 ;
29228 wxRect temp3 ;
29229 int val4 ;
29230 int ecode4 = 0 ;
29231 PyObject * obj0 = 0 ;
29232 PyObject * obj1 = 0 ;
29233 PyObject * obj2 = 0 ;
29234 PyObject * obj3 = 0 ;
29235 char * kwnames[] = {
29236 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
29237 };
29238
29239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29241 if (!SWIG_IsOK(res1)) {
29242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
29243 }
29244 arg1 = reinterpret_cast< wxEffects * >(argp1);
29245 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
29246 if (!SWIG_IsOK(res2)) {
29247 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29248 }
29249 if (!argp2) {
29250 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29251 }
29252 arg2 = reinterpret_cast< wxDC * >(argp2);
29253 {
29254 arg3 = &temp3;
29255 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
29256 }
29257 if (obj3) {
29258 ecode4 = SWIG_AsVal_int(obj3, &val4);
29259 if (!SWIG_IsOK(ecode4)) {
29260 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
29261 }
29262 arg4 = static_cast< int >(val4);
29263 }
29264 {
29265 PyThreadState* __tstate = wxPyBeginAllowThreads();
29266 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
29267 wxPyEndAllowThreads(__tstate);
29268 if (PyErr_Occurred()) SWIG_fail;
29269 }
29270 resultobj = SWIG_Py_Void();
29271 return resultobj;
29272 fail:
29273 return NULL;
29274 }
29275
29276
29277 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29278 PyObject *resultobj = 0;
29279 wxEffects *arg1 = (wxEffects *) 0 ;
29280 wxRect *arg2 = 0 ;
29281 wxDC *arg3 = 0 ;
29282 wxBitmap *arg4 = 0 ;
29283 bool result;
29284 void *argp1 = 0 ;
29285 int res1 = 0 ;
29286 wxRect temp2 ;
29287 void *argp3 = 0 ;
29288 int res3 = 0 ;
29289 void *argp4 = 0 ;
29290 int res4 = 0 ;
29291 PyObject * obj0 = 0 ;
29292 PyObject * obj1 = 0 ;
29293 PyObject * obj2 = 0 ;
29294 PyObject * obj3 = 0 ;
29295 char * kwnames[] = {
29296 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
29297 };
29298
29299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29301 if (!SWIG_IsOK(res1)) {
29302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
29303 }
29304 arg1 = reinterpret_cast< wxEffects * >(argp1);
29305 {
29306 arg2 = &temp2;
29307 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29308 }
29309 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
29310 if (!SWIG_IsOK(res3)) {
29311 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29312 }
29313 if (!argp3) {
29314 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29315 }
29316 arg3 = reinterpret_cast< wxDC * >(argp3);
29317 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
29318 if (!SWIG_IsOK(res4)) {
29319 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29320 }
29321 if (!argp4) {
29322 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29323 }
29324 arg4 = reinterpret_cast< wxBitmap * >(argp4);
29325 {
29326 PyThreadState* __tstate = wxPyBeginAllowThreads();
29327 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
29328 wxPyEndAllowThreads(__tstate);
29329 if (PyErr_Occurred()) SWIG_fail;
29330 }
29331 {
29332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29333 }
29334 return resultobj;
29335 fail:
29336 return NULL;
29337 }
29338
29339
29340 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29341 PyObject *obj;
29342 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29343 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
29344 return SWIG_Py_Void();
29345 }
29346
29347 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29348 return SWIG_Python_InitShadowInstance(args);
29349 }
29350
29351 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29352 PyObject *resultobj = 0;
29353 int arg1 ;
29354 int arg2 ;
29355 bool arg3 ;
29356 wxSplitterRenderParams *result = 0 ;
29357 int val1 ;
29358 int ecode1 = 0 ;
29359 int val2 ;
29360 int ecode2 = 0 ;
29361 bool val3 ;
29362 int ecode3 = 0 ;
29363 PyObject * obj0 = 0 ;
29364 PyObject * obj1 = 0 ;
29365 PyObject * obj2 = 0 ;
29366 char * kwnames[] = {
29367 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
29368 };
29369
29370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29371 ecode1 = SWIG_AsVal_int(obj0, &val1);
29372 if (!SWIG_IsOK(ecode1)) {
29373 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
29374 }
29375 arg1 = static_cast< int >(val1);
29376 ecode2 = SWIG_AsVal_int(obj1, &val2);
29377 if (!SWIG_IsOK(ecode2)) {
29378 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
29379 }
29380 arg2 = static_cast< int >(val2);
29381 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29382 if (!SWIG_IsOK(ecode3)) {
29383 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
29384 }
29385 arg3 = static_cast< bool >(val3);
29386 {
29387 PyThreadState* __tstate = wxPyBeginAllowThreads();
29388 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
29389 wxPyEndAllowThreads(__tstate);
29390 if (PyErr_Occurred()) SWIG_fail;
29391 }
29392 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
29393 return resultobj;
29394 fail:
29395 return NULL;
29396 }
29397
29398
29399 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29400 PyObject *resultobj = 0;
29401 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29402 void *argp1 = 0 ;
29403 int res1 = 0 ;
29404 PyObject *swig_obj[1] ;
29405
29406 if (!args) SWIG_fail;
29407 swig_obj[0] = args;
29408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
29409 if (!SWIG_IsOK(res1)) {
29410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29411 }
29412 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29413 {
29414 PyThreadState* __tstate = wxPyBeginAllowThreads();
29415 delete arg1;
29416
29417 wxPyEndAllowThreads(__tstate);
29418 if (PyErr_Occurred()) SWIG_fail;
29419 }
29420 resultobj = SWIG_Py_Void();
29421 return resultobj;
29422 fail:
29423 return NULL;
29424 }
29425
29426
29427 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29428 PyObject *resultobj = 0;
29429 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29430 int result;
29431 void *argp1 = 0 ;
29432 int res1 = 0 ;
29433 PyObject *swig_obj[1] ;
29434
29435 if (!args) SWIG_fail;
29436 swig_obj[0] = args;
29437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29438 if (!SWIG_IsOK(res1)) {
29439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29440 }
29441 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29442 result = (int)(int) ((arg1)->widthSash);
29443 resultobj = SWIG_From_int(static_cast< int >(result));
29444 return resultobj;
29445 fail:
29446 return NULL;
29447 }
29448
29449
29450 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29451 PyObject *resultobj = 0;
29452 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29453 int result;
29454 void *argp1 = 0 ;
29455 int res1 = 0 ;
29456 PyObject *swig_obj[1] ;
29457
29458 if (!args) SWIG_fail;
29459 swig_obj[0] = args;
29460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29461 if (!SWIG_IsOK(res1)) {
29462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29463 }
29464 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29465 result = (int)(int) ((arg1)->border);
29466 resultobj = SWIG_From_int(static_cast< int >(result));
29467 return resultobj;
29468 fail:
29469 return NULL;
29470 }
29471
29472
29473 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29474 PyObject *resultobj = 0;
29475 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29476 bool result;
29477 void *argp1 = 0 ;
29478 int res1 = 0 ;
29479 PyObject *swig_obj[1] ;
29480
29481 if (!args) SWIG_fail;
29482 swig_obj[0] = args;
29483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29484 if (!SWIG_IsOK(res1)) {
29485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29486 }
29487 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29488 result = (bool)(bool) ((arg1)->isHotSensitive);
29489 resultobj = SWIG_From_bool(static_cast< bool >(result));
29490 return resultobj;
29491 fail:
29492 return NULL;
29493 }
29494
29495
29496 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29497 PyObject *obj;
29498 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29499 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
29500 return SWIG_Py_Void();
29501 }
29502
29503 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29504 return SWIG_Python_InitShadowInstance(args);
29505 }
29506
29507 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29508 PyObject *resultobj = 0;
29509 wxHeaderButtonParams *result = 0 ;
29510
29511 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
29512 {
29513 PyThreadState* __tstate = wxPyBeginAllowThreads();
29514 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
29515 wxPyEndAllowThreads(__tstate);
29516 if (PyErr_Occurred()) SWIG_fail;
29517 }
29518 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
29519 return resultobj;
29520 fail:
29521 return NULL;
29522 }
29523
29524
29525 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29526 PyObject *resultobj = 0;
29527 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29528 void *argp1 = 0 ;
29529 int res1 = 0 ;
29530 PyObject *swig_obj[1] ;
29531
29532 if (!args) SWIG_fail;
29533 swig_obj[0] = args;
29534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
29535 if (!SWIG_IsOK(res1)) {
29536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29537 }
29538 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29539 {
29540 PyThreadState* __tstate = wxPyBeginAllowThreads();
29541 delete arg1;
29542
29543 wxPyEndAllowThreads(__tstate);
29544 if (PyErr_Occurred()) SWIG_fail;
29545 }
29546 resultobj = SWIG_Py_Void();
29547 return resultobj;
29548 fail:
29549 return NULL;
29550 }
29551
29552
29553 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29554 PyObject *resultobj = 0;
29555 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29556 wxColour *arg2 = (wxColour *) 0 ;
29557 void *argp1 = 0 ;
29558 int res1 = 0 ;
29559 wxColour temp2 ;
29560 PyObject *swig_obj[2] ;
29561
29562 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
29563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29564 if (!SWIG_IsOK(res1)) {
29565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29566 }
29567 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29568 {
29569 arg2 = &temp2;
29570 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29571 }
29572 if (arg1) (arg1)->m_arrowColour = *arg2;
29573
29574 resultobj = SWIG_Py_Void();
29575 return resultobj;
29576 fail:
29577 return NULL;
29578 }
29579
29580
29581 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29582 PyObject *resultobj = 0;
29583 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29584 wxColour *result = 0 ;
29585 void *argp1 = 0 ;
29586 int res1 = 0 ;
29587 PyObject *swig_obj[1] ;
29588
29589 if (!args) SWIG_fail;
29590 swig_obj[0] = args;
29591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29592 if (!SWIG_IsOK(res1)) {
29593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29594 }
29595 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29596 result = (wxColour *)& ((arg1)->m_arrowColour);
29597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29598 return resultobj;
29599 fail:
29600 return NULL;
29601 }
29602
29603
29604 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29605 PyObject *resultobj = 0;
29606 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29607 wxColour *arg2 = (wxColour *) 0 ;
29608 void *argp1 = 0 ;
29609 int res1 = 0 ;
29610 wxColour temp2 ;
29611 PyObject *swig_obj[2] ;
29612
29613 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
29614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29615 if (!SWIG_IsOK(res1)) {
29616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29617 }
29618 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29619 {
29620 arg2 = &temp2;
29621 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29622 }
29623 if (arg1) (arg1)->m_selectionColour = *arg2;
29624
29625 resultobj = SWIG_Py_Void();
29626 return resultobj;
29627 fail:
29628 return NULL;
29629 }
29630
29631
29632 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29633 PyObject *resultobj = 0;
29634 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29635 wxColour *result = 0 ;
29636 void *argp1 = 0 ;
29637 int res1 = 0 ;
29638 PyObject *swig_obj[1] ;
29639
29640 if (!args) SWIG_fail;
29641 swig_obj[0] = args;
29642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29643 if (!SWIG_IsOK(res1)) {
29644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29645 }
29646 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29647 result = (wxColour *)& ((arg1)->m_selectionColour);
29648 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29649 return resultobj;
29650 fail:
29651 return NULL;
29652 }
29653
29654
29655 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29656 PyObject *resultobj = 0;
29657 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29658 wxString *arg2 = (wxString *) 0 ;
29659 void *argp1 = 0 ;
29660 int res1 = 0 ;
29661 bool temp2 = false ;
29662 PyObject *swig_obj[2] ;
29663
29664 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
29665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29666 if (!SWIG_IsOK(res1)) {
29667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29668 }
29669 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29670 {
29671 arg2 = wxString_in_helper(swig_obj[1]);
29672 if (arg2 == NULL) SWIG_fail;
29673 temp2 = true;
29674 }
29675 if (arg1) (arg1)->m_labelText = *arg2;
29676
29677 resultobj = SWIG_Py_Void();
29678 {
29679 if (temp2)
29680 delete arg2;
29681 }
29682 return resultobj;
29683 fail:
29684 {
29685 if (temp2)
29686 delete arg2;
29687 }
29688 return NULL;
29689 }
29690
29691
29692 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29693 PyObject *resultobj = 0;
29694 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29695 wxString *result = 0 ;
29696 void *argp1 = 0 ;
29697 int res1 = 0 ;
29698 PyObject *swig_obj[1] ;
29699
29700 if (!args) SWIG_fail;
29701 swig_obj[0] = args;
29702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29703 if (!SWIG_IsOK(res1)) {
29704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29705 }
29706 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29707 result = (wxString *)& ((arg1)->m_labelText);
29708 {
29709 #if wxUSE_UNICODE
29710 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29711 #else
29712 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29713 #endif
29714 }
29715 return resultobj;
29716 fail:
29717 return NULL;
29718 }
29719
29720
29721 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29722 PyObject *resultobj = 0;
29723 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29724 wxFont *arg2 = (wxFont *) 0 ;
29725 void *argp1 = 0 ;
29726 int res1 = 0 ;
29727 void *argp2 = 0 ;
29728 int res2 = 0 ;
29729 PyObject *swig_obj[2] ;
29730
29731 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
29732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29733 if (!SWIG_IsOK(res1)) {
29734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29735 }
29736 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29737 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
29738 if (!SWIG_IsOK(res2)) {
29739 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
29740 }
29741 arg2 = reinterpret_cast< wxFont * >(argp2);
29742 if (arg1) (arg1)->m_labelFont = *arg2;
29743
29744 resultobj = SWIG_Py_Void();
29745 return resultobj;
29746 fail:
29747 return NULL;
29748 }
29749
29750
29751 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29752 PyObject *resultobj = 0;
29753 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29754 wxFont *result = 0 ;
29755 void *argp1 = 0 ;
29756 int res1 = 0 ;
29757 PyObject *swig_obj[1] ;
29758
29759 if (!args) SWIG_fail;
29760 swig_obj[0] = args;
29761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29762 if (!SWIG_IsOK(res1)) {
29763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29764 }
29765 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29766 result = (wxFont *)& ((arg1)->m_labelFont);
29767 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
29768 return resultobj;
29769 fail:
29770 return NULL;
29771 }
29772
29773
29774 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29775 PyObject *resultobj = 0;
29776 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29777 wxColour *arg2 = (wxColour *) 0 ;
29778 void *argp1 = 0 ;
29779 int res1 = 0 ;
29780 wxColour temp2 ;
29781 PyObject *swig_obj[2] ;
29782
29783 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
29784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29785 if (!SWIG_IsOK(res1)) {
29786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29787 }
29788 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29789 {
29790 arg2 = &temp2;
29791 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29792 }
29793 if (arg1) (arg1)->m_labelColour = *arg2;
29794
29795 resultobj = SWIG_Py_Void();
29796 return resultobj;
29797 fail:
29798 return NULL;
29799 }
29800
29801
29802 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29803 PyObject *resultobj = 0;
29804 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29805 wxColour *result = 0 ;
29806 void *argp1 = 0 ;
29807 int res1 = 0 ;
29808 PyObject *swig_obj[1] ;
29809
29810 if (!args) SWIG_fail;
29811 swig_obj[0] = args;
29812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29813 if (!SWIG_IsOK(res1)) {
29814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29815 }
29816 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29817 result = (wxColour *)& ((arg1)->m_labelColour);
29818 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29819 return resultobj;
29820 fail:
29821 return NULL;
29822 }
29823
29824
29825 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29826 PyObject *resultobj = 0;
29827 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29828 wxBitmap *arg2 = (wxBitmap *) 0 ;
29829 void *argp1 = 0 ;
29830 int res1 = 0 ;
29831 void *argp2 = 0 ;
29832 int res2 = 0 ;
29833 PyObject *swig_obj[2] ;
29834
29835 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
29836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29837 if (!SWIG_IsOK(res1)) {
29838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29839 }
29840 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29841 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
29842 if (!SWIG_IsOK(res2)) {
29843 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
29844 }
29845 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29846 if (arg1) (arg1)->m_labelBitmap = *arg2;
29847
29848 resultobj = SWIG_Py_Void();
29849 return resultobj;
29850 fail:
29851 return NULL;
29852 }
29853
29854
29855 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29856 PyObject *resultobj = 0;
29857 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29858 wxBitmap *result = 0 ;
29859 void *argp1 = 0 ;
29860 int res1 = 0 ;
29861 PyObject *swig_obj[1] ;
29862
29863 if (!args) SWIG_fail;
29864 swig_obj[0] = args;
29865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29866 if (!SWIG_IsOK(res1)) {
29867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29868 }
29869 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29870 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
29871 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
29872 return resultobj;
29873 fail:
29874 return NULL;
29875 }
29876
29877
29878 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29879 PyObject *resultobj = 0;
29880 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29881 int arg2 ;
29882 void *argp1 = 0 ;
29883 int res1 = 0 ;
29884 int val2 ;
29885 int ecode2 = 0 ;
29886 PyObject *swig_obj[2] ;
29887
29888 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
29889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29890 if (!SWIG_IsOK(res1)) {
29891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29892 }
29893 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29894 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
29895 if (!SWIG_IsOK(ecode2)) {
29896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
29897 }
29898 arg2 = static_cast< int >(val2);
29899 if (arg1) (arg1)->m_labelAlignment = arg2;
29900
29901 resultobj = SWIG_Py_Void();
29902 return resultobj;
29903 fail:
29904 return NULL;
29905 }
29906
29907
29908 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29909 PyObject *resultobj = 0;
29910 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29911 int result;
29912 void *argp1 = 0 ;
29913 int res1 = 0 ;
29914 PyObject *swig_obj[1] ;
29915
29916 if (!args) SWIG_fail;
29917 swig_obj[0] = args;
29918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29919 if (!SWIG_IsOK(res1)) {
29920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29921 }
29922 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29923 result = (int) ((arg1)->m_labelAlignment);
29924 resultobj = SWIG_From_int(static_cast< int >(result));
29925 return resultobj;
29926 fail:
29927 return NULL;
29928 }
29929
29930
29931 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29932 PyObject *obj;
29933 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29934 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
29935 return SWIG_Py_Void();
29936 }
29937
29938 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29939 return SWIG_Python_InitShadowInstance(args);
29940 }
29941
29942 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29943 PyObject *resultobj = 0;
29944 int arg1 ;
29945 int arg2 ;
29946 wxRendererVersion *result = 0 ;
29947 int val1 ;
29948 int ecode1 = 0 ;
29949 int val2 ;
29950 int ecode2 = 0 ;
29951 PyObject * obj0 = 0 ;
29952 PyObject * obj1 = 0 ;
29953 char * kwnames[] = {
29954 (char *) "version_",(char *) "age_", NULL
29955 };
29956
29957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
29958 ecode1 = SWIG_AsVal_int(obj0, &val1);
29959 if (!SWIG_IsOK(ecode1)) {
29960 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
29961 }
29962 arg1 = static_cast< int >(val1);
29963 ecode2 = SWIG_AsVal_int(obj1, &val2);
29964 if (!SWIG_IsOK(ecode2)) {
29965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
29966 }
29967 arg2 = static_cast< int >(val2);
29968 {
29969 PyThreadState* __tstate = wxPyBeginAllowThreads();
29970 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
29971 wxPyEndAllowThreads(__tstate);
29972 if (PyErr_Occurred()) SWIG_fail;
29973 }
29974 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
29975 return resultobj;
29976 fail:
29977 return NULL;
29978 }
29979
29980
29981 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29982 PyObject *resultobj = 0;
29983 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
29984 void *argp1 = 0 ;
29985 int res1 = 0 ;
29986 PyObject *swig_obj[1] ;
29987
29988 if (!args) SWIG_fail;
29989 swig_obj[0] = args;
29990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
29991 if (!SWIG_IsOK(res1)) {
29992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
29993 }
29994 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
29995 {
29996 PyThreadState* __tstate = wxPyBeginAllowThreads();
29997 delete arg1;
29998
29999 wxPyEndAllowThreads(__tstate);
30000 if (PyErr_Occurred()) SWIG_fail;
30001 }
30002 resultobj = SWIG_Py_Void();
30003 return resultobj;
30004 fail:
30005 return NULL;
30006 }
30007
30008
30009 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30010 PyObject *resultobj = 0;
30011 wxRendererVersion *arg1 = 0 ;
30012 bool result;
30013 void *argp1 = 0 ;
30014 int res1 = 0 ;
30015 PyObject * obj0 = 0 ;
30016 char * kwnames[] = {
30017 (char *) "ver", NULL
30018 };
30019
30020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
30021 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
30022 if (!SWIG_IsOK(res1)) {
30023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30024 }
30025 if (!argp1) {
30026 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30027 }
30028 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30029 {
30030 PyThreadState* __tstate = wxPyBeginAllowThreads();
30031 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
30032 wxPyEndAllowThreads(__tstate);
30033 if (PyErr_Occurred()) SWIG_fail;
30034 }
30035 {
30036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30037 }
30038 return resultobj;
30039 fail:
30040 return NULL;
30041 }
30042
30043
30044 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30045 PyObject *resultobj = 0;
30046 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30047 int result;
30048 void *argp1 = 0 ;
30049 int res1 = 0 ;
30050 PyObject *swig_obj[1] ;
30051
30052 if (!args) SWIG_fail;
30053 swig_obj[0] = args;
30054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
30055 if (!SWIG_IsOK(res1)) {
30056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30057 }
30058 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30059 result = (int)(int) ((arg1)->version);
30060 resultobj = SWIG_From_int(static_cast< int >(result));
30061 return resultobj;
30062 fail:
30063 return NULL;
30064 }
30065
30066
30067 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30068 PyObject *resultobj = 0;
30069 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30070 int result;
30071 void *argp1 = 0 ;
30072 int res1 = 0 ;
30073 PyObject *swig_obj[1] ;
30074
30075 if (!args) SWIG_fail;
30076 swig_obj[0] = args;
30077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
30078 if (!SWIG_IsOK(res1)) {
30079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30080 }
30081 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30082 result = (int)(int) ((arg1)->age);
30083 resultobj = SWIG_From_int(static_cast< int >(result));
30084 return resultobj;
30085 fail:
30086 return NULL;
30087 }
30088
30089
30090 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30091 PyObject *obj;
30092 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30093 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
30094 return SWIG_Py_Void();
30095 }
30096
30097 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30098 return SWIG_Python_InitShadowInstance(args);
30099 }
30100
30101 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30102 PyObject *resultobj = 0;
30103 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30104 wxWindow *arg2 = (wxWindow *) 0 ;
30105 wxDC *arg3 = 0 ;
30106 wxRect *arg4 = 0 ;
30107 int arg5 = (int) 0 ;
30108 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
30109 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
30110 void *argp1 = 0 ;
30111 int res1 = 0 ;
30112 void *argp2 = 0 ;
30113 int res2 = 0 ;
30114 void *argp3 = 0 ;
30115 int res3 = 0 ;
30116 wxRect temp4 ;
30117 int val5 ;
30118 int ecode5 = 0 ;
30119 int val6 ;
30120 int ecode6 = 0 ;
30121 void *argp7 = 0 ;
30122 int res7 = 0 ;
30123 PyObject * obj0 = 0 ;
30124 PyObject * obj1 = 0 ;
30125 PyObject * obj2 = 0 ;
30126 PyObject * obj3 = 0 ;
30127 PyObject * obj4 = 0 ;
30128 PyObject * obj5 = 0 ;
30129 PyObject * obj6 = 0 ;
30130 char * kwnames[] = {
30131 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
30132 };
30133
30134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30136 if (!SWIG_IsOK(res1)) {
30137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30138 }
30139 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30140 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30141 if (!SWIG_IsOK(res2)) {
30142 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30143 }
30144 arg2 = reinterpret_cast< wxWindow * >(argp2);
30145 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30146 if (!SWIG_IsOK(res3)) {
30147 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
30148 }
30149 if (!argp3) {
30150 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
30151 }
30152 arg3 = reinterpret_cast< wxDC * >(argp3);
30153 {
30154 arg4 = &temp4;
30155 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30156 }
30157 if (obj4) {
30158 ecode5 = SWIG_AsVal_int(obj4, &val5);
30159 if (!SWIG_IsOK(ecode5)) {
30160 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
30161 }
30162 arg5 = static_cast< int >(val5);
30163 }
30164 if (obj5) {
30165 ecode6 = SWIG_AsVal_int(obj5, &val6);
30166 if (!SWIG_IsOK(ecode6)) {
30167 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30168 }
30169 arg6 = static_cast< wxHeaderSortIconType >(val6);
30170 }
30171 if (obj6) {
30172 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30173 if (!SWIG_IsOK(res7)) {
30174 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
30175 }
30176 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
30177 }
30178 {
30179 PyThreadState* __tstate = wxPyBeginAllowThreads();
30180 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
30181 wxPyEndAllowThreads(__tstate);
30182 if (PyErr_Occurred()) SWIG_fail;
30183 }
30184 resultobj = SWIG_Py_Void();
30185 return resultobj;
30186 fail:
30187 return NULL;
30188 }
30189
30190
30191 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30192 PyObject *resultobj = 0;
30193 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30194 wxWindow *arg2 = (wxWindow *) 0 ;
30195 wxDC *arg3 = 0 ;
30196 wxRect *arg4 = 0 ;
30197 int arg5 = (int) 0 ;
30198 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
30199 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
30200 void *argp1 = 0 ;
30201 int res1 = 0 ;
30202 void *argp2 = 0 ;
30203 int res2 = 0 ;
30204 void *argp3 = 0 ;
30205 int res3 = 0 ;
30206 wxRect temp4 ;
30207 int val5 ;
30208 int ecode5 = 0 ;
30209 int val6 ;
30210 int ecode6 = 0 ;
30211 void *argp7 = 0 ;
30212 int res7 = 0 ;
30213 PyObject * obj0 = 0 ;
30214 PyObject * obj1 = 0 ;
30215 PyObject * obj2 = 0 ;
30216 PyObject * obj3 = 0 ;
30217 PyObject * obj4 = 0 ;
30218 PyObject * obj5 = 0 ;
30219 PyObject * obj6 = 0 ;
30220 char * kwnames[] = {
30221 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
30222 };
30223
30224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30226 if (!SWIG_IsOK(res1)) {
30227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30228 }
30229 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30230 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30231 if (!SWIG_IsOK(res2)) {
30232 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
30233 }
30234 arg2 = reinterpret_cast< wxWindow * >(argp2);
30235 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30236 if (!SWIG_IsOK(res3)) {
30237 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30238 }
30239 if (!argp3) {
30240 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30241 }
30242 arg3 = reinterpret_cast< wxDC * >(argp3);
30243 {
30244 arg4 = &temp4;
30245 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30246 }
30247 if (obj4) {
30248 ecode5 = SWIG_AsVal_int(obj4, &val5);
30249 if (!SWIG_IsOK(ecode5)) {
30250 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
30251 }
30252 arg5 = static_cast< int >(val5);
30253 }
30254 if (obj5) {
30255 ecode6 = SWIG_AsVal_int(obj5, &val6);
30256 if (!SWIG_IsOK(ecode6)) {
30257 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30258 }
30259 arg6 = static_cast< wxHeaderSortIconType >(val6);
30260 }
30261 if (obj6) {
30262 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30263 if (!SWIG_IsOK(res7)) {
30264 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
30265 }
30266 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
30267 }
30268 {
30269 PyThreadState* __tstate = wxPyBeginAllowThreads();
30270 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
30271 wxPyEndAllowThreads(__tstate);
30272 if (PyErr_Occurred()) SWIG_fail;
30273 }
30274 resultobj = SWIG_Py_Void();
30275 return resultobj;
30276 fail:
30277 return NULL;
30278 }
30279
30280
30281 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30282 PyObject *resultobj = 0;
30283 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30284 wxWindow *arg2 = (wxWindow *) 0 ;
30285 int result;
30286 void *argp1 = 0 ;
30287 int res1 = 0 ;
30288 void *argp2 = 0 ;
30289 int res2 = 0 ;
30290 PyObject * obj0 = 0 ;
30291 PyObject * obj1 = 0 ;
30292 char * kwnames[] = {
30293 (char *) "self",(char *) "win", NULL
30294 };
30295
30296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
30297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30298 if (!SWIG_IsOK(res1)) {
30299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30300 }
30301 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30302 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30303 if (!SWIG_IsOK(res2)) {
30304 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
30305 }
30306 arg2 = reinterpret_cast< wxWindow * >(argp2);
30307 {
30308 PyThreadState* __tstate = wxPyBeginAllowThreads();
30309 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
30310 wxPyEndAllowThreads(__tstate);
30311 if (PyErr_Occurred()) SWIG_fail;
30312 }
30313 resultobj = SWIG_From_int(static_cast< int >(result));
30314 return resultobj;
30315 fail:
30316 return NULL;
30317 }
30318
30319
30320 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30321 PyObject *resultobj = 0;
30322 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30323 wxWindow *arg2 = (wxWindow *) 0 ;
30324 wxDC *arg3 = 0 ;
30325 wxRect *arg4 = 0 ;
30326 int arg5 = (int) 0 ;
30327 void *argp1 = 0 ;
30328 int res1 = 0 ;
30329 void *argp2 = 0 ;
30330 int res2 = 0 ;
30331 void *argp3 = 0 ;
30332 int res3 = 0 ;
30333 wxRect temp4 ;
30334 int val5 ;
30335 int ecode5 = 0 ;
30336 PyObject * obj0 = 0 ;
30337 PyObject * obj1 = 0 ;
30338 PyObject * obj2 = 0 ;
30339 PyObject * obj3 = 0 ;
30340 PyObject * obj4 = 0 ;
30341 char * kwnames[] = {
30342 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30343 };
30344
30345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30347 if (!SWIG_IsOK(res1)) {
30348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30349 }
30350 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30351 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30352 if (!SWIG_IsOK(res2)) {
30353 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30354 }
30355 arg2 = reinterpret_cast< wxWindow * >(argp2);
30356 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30357 if (!SWIG_IsOK(res3)) {
30358 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30359 }
30360 if (!argp3) {
30361 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30362 }
30363 arg3 = reinterpret_cast< wxDC * >(argp3);
30364 {
30365 arg4 = &temp4;
30366 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30367 }
30368 if (obj4) {
30369 ecode5 = SWIG_AsVal_int(obj4, &val5);
30370 if (!SWIG_IsOK(ecode5)) {
30371 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
30372 }
30373 arg5 = static_cast< int >(val5);
30374 }
30375 {
30376 PyThreadState* __tstate = wxPyBeginAllowThreads();
30377 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30378 wxPyEndAllowThreads(__tstate);
30379 if (PyErr_Occurred()) SWIG_fail;
30380 }
30381 resultobj = SWIG_Py_Void();
30382 return resultobj;
30383 fail:
30384 return NULL;
30385 }
30386
30387
30388 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30389 PyObject *resultobj = 0;
30390 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30391 wxWindow *arg2 = (wxWindow *) 0 ;
30392 wxDC *arg3 = 0 ;
30393 wxRect *arg4 = 0 ;
30394 int arg5 = (int) 0 ;
30395 void *argp1 = 0 ;
30396 int res1 = 0 ;
30397 void *argp2 = 0 ;
30398 int res2 = 0 ;
30399 void *argp3 = 0 ;
30400 int res3 = 0 ;
30401 wxRect temp4 ;
30402 int val5 ;
30403 int ecode5 = 0 ;
30404 PyObject * obj0 = 0 ;
30405 PyObject * obj1 = 0 ;
30406 PyObject * obj2 = 0 ;
30407 PyObject * obj3 = 0 ;
30408 PyObject * obj4 = 0 ;
30409 char * kwnames[] = {
30410 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30411 };
30412
30413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30415 if (!SWIG_IsOK(res1)) {
30416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30417 }
30418 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30419 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30420 if (!SWIG_IsOK(res2)) {
30421 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
30422 }
30423 arg2 = reinterpret_cast< wxWindow * >(argp2);
30424 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30425 if (!SWIG_IsOK(res3)) {
30426 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30427 }
30428 if (!argp3) {
30429 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30430 }
30431 arg3 = reinterpret_cast< wxDC * >(argp3);
30432 {
30433 arg4 = &temp4;
30434 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30435 }
30436 if (obj4) {
30437 ecode5 = SWIG_AsVal_int(obj4, &val5);
30438 if (!SWIG_IsOK(ecode5)) {
30439 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
30440 }
30441 arg5 = static_cast< int >(val5);
30442 }
30443 {
30444 PyThreadState* __tstate = wxPyBeginAllowThreads();
30445 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
30446 wxPyEndAllowThreads(__tstate);
30447 if (PyErr_Occurred()) SWIG_fail;
30448 }
30449 resultobj = SWIG_Py_Void();
30450 return resultobj;
30451 fail:
30452 return NULL;
30453 }
30454
30455
30456 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30457 PyObject *resultobj = 0;
30458 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30459 wxWindow *arg2 = (wxWindow *) 0 ;
30460 wxDC *arg3 = 0 ;
30461 wxSize *arg4 = 0 ;
30462 int arg5 ;
30463 wxOrientation arg6 ;
30464 int arg7 = (int) 0 ;
30465 void *argp1 = 0 ;
30466 int res1 = 0 ;
30467 void *argp2 = 0 ;
30468 int res2 = 0 ;
30469 void *argp3 = 0 ;
30470 int res3 = 0 ;
30471 wxSize temp4 ;
30472 int val5 ;
30473 int ecode5 = 0 ;
30474 int val6 ;
30475 int ecode6 = 0 ;
30476 int val7 ;
30477 int ecode7 = 0 ;
30478 PyObject * obj0 = 0 ;
30479 PyObject * obj1 = 0 ;
30480 PyObject * obj2 = 0 ;
30481 PyObject * obj3 = 0 ;
30482 PyObject * obj4 = 0 ;
30483 PyObject * obj5 = 0 ;
30484 PyObject * obj6 = 0 ;
30485 char * kwnames[] = {
30486 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
30487 };
30488
30489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30491 if (!SWIG_IsOK(res1)) {
30492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30493 }
30494 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30495 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30496 if (!SWIG_IsOK(res2)) {
30497 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
30498 }
30499 arg2 = reinterpret_cast< wxWindow * >(argp2);
30500 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30501 if (!SWIG_IsOK(res3)) {
30502 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30503 }
30504 if (!argp3) {
30505 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30506 }
30507 arg3 = reinterpret_cast< wxDC * >(argp3);
30508 {
30509 arg4 = &temp4;
30510 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30511 }
30512 ecode5 = SWIG_AsVal_int(obj4, &val5);
30513 if (!SWIG_IsOK(ecode5)) {
30514 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
30515 }
30516 arg5 = static_cast< int >(val5);
30517 ecode6 = SWIG_AsVal_int(obj5, &val6);
30518 if (!SWIG_IsOK(ecode6)) {
30519 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
30520 }
30521 arg6 = static_cast< wxOrientation >(val6);
30522 if (obj6) {
30523 ecode7 = SWIG_AsVal_int(obj6, &val7);
30524 if (!SWIG_IsOK(ecode7)) {
30525 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
30526 }
30527 arg7 = static_cast< int >(val7);
30528 }
30529 {
30530 PyThreadState* __tstate = wxPyBeginAllowThreads();
30531 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
30532 wxPyEndAllowThreads(__tstate);
30533 if (PyErr_Occurred()) SWIG_fail;
30534 }
30535 resultobj = SWIG_Py_Void();
30536 return resultobj;
30537 fail:
30538 return NULL;
30539 }
30540
30541
30542 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30543 PyObject *resultobj = 0;
30544 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30545 wxWindow *arg2 = (wxWindow *) 0 ;
30546 wxDC *arg3 = 0 ;
30547 wxRect *arg4 = 0 ;
30548 int arg5 = (int) 0 ;
30549 void *argp1 = 0 ;
30550 int res1 = 0 ;
30551 void *argp2 = 0 ;
30552 int res2 = 0 ;
30553 void *argp3 = 0 ;
30554 int res3 = 0 ;
30555 wxRect temp4 ;
30556 int val5 ;
30557 int ecode5 = 0 ;
30558 PyObject * obj0 = 0 ;
30559 PyObject * obj1 = 0 ;
30560 PyObject * obj2 = 0 ;
30561 PyObject * obj3 = 0 ;
30562 PyObject * obj4 = 0 ;
30563 char * kwnames[] = {
30564 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30565 };
30566
30567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30569 if (!SWIG_IsOK(res1)) {
30570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30571 }
30572 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30573 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30574 if (!SWIG_IsOK(res2)) {
30575 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30576 }
30577 arg2 = reinterpret_cast< wxWindow * >(argp2);
30578 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30579 if (!SWIG_IsOK(res3)) {
30580 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30581 }
30582 if (!argp3) {
30583 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30584 }
30585 arg3 = reinterpret_cast< wxDC * >(argp3);
30586 {
30587 arg4 = &temp4;
30588 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30589 }
30590 if (obj4) {
30591 ecode5 = SWIG_AsVal_int(obj4, &val5);
30592 if (!SWIG_IsOK(ecode5)) {
30593 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
30594 }
30595 arg5 = static_cast< int >(val5);
30596 }
30597 {
30598 PyThreadState* __tstate = wxPyBeginAllowThreads();
30599 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30600 wxPyEndAllowThreads(__tstate);
30601 if (PyErr_Occurred()) SWIG_fail;
30602 }
30603 resultobj = SWIG_Py_Void();
30604 return resultobj;
30605 fail:
30606 return NULL;
30607 }
30608
30609
30610 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30611 PyObject *resultobj = 0;
30612 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30613 wxWindow *arg2 = (wxWindow *) 0 ;
30614 wxDC *arg3 = 0 ;
30615 wxRect *arg4 = 0 ;
30616 int arg5 = (int) 0 ;
30617 void *argp1 = 0 ;
30618 int res1 = 0 ;
30619 void *argp2 = 0 ;
30620 int res2 = 0 ;
30621 void *argp3 = 0 ;
30622 int res3 = 0 ;
30623 wxRect temp4 ;
30624 int val5 ;
30625 int ecode5 = 0 ;
30626 PyObject * obj0 = 0 ;
30627 PyObject * obj1 = 0 ;
30628 PyObject * obj2 = 0 ;
30629 PyObject * obj3 = 0 ;
30630 PyObject * obj4 = 0 ;
30631 char * kwnames[] = {
30632 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30633 };
30634
30635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30637 if (!SWIG_IsOK(res1)) {
30638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30639 }
30640 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30641 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30642 if (!SWIG_IsOK(res2)) {
30643 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
30644 }
30645 arg2 = reinterpret_cast< wxWindow * >(argp2);
30646 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30647 if (!SWIG_IsOK(res3)) {
30648 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30649 }
30650 if (!argp3) {
30651 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30652 }
30653 arg3 = reinterpret_cast< wxDC * >(argp3);
30654 {
30655 arg4 = &temp4;
30656 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30657 }
30658 if (obj4) {
30659 ecode5 = SWIG_AsVal_int(obj4, &val5);
30660 if (!SWIG_IsOK(ecode5)) {
30661 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
30662 }
30663 arg5 = static_cast< int >(val5);
30664 }
30665 {
30666 PyThreadState* __tstate = wxPyBeginAllowThreads();
30667 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
30668 wxPyEndAllowThreads(__tstate);
30669 if (PyErr_Occurred()) SWIG_fail;
30670 }
30671 resultobj = SWIG_Py_Void();
30672 return resultobj;
30673 fail:
30674 return NULL;
30675 }
30676
30677
30678 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30679 PyObject *resultobj = 0;
30680 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30681 wxWindow *arg2 = (wxWindow *) 0 ;
30682 wxDC *arg3 = 0 ;
30683 wxRect *arg4 = 0 ;
30684 int arg5 = (int) 0 ;
30685 void *argp1 = 0 ;
30686 int res1 = 0 ;
30687 void *argp2 = 0 ;
30688 int res2 = 0 ;
30689 void *argp3 = 0 ;
30690 int res3 = 0 ;
30691 wxRect temp4 ;
30692 int val5 ;
30693 int ecode5 = 0 ;
30694 PyObject * obj0 = 0 ;
30695 PyObject * obj1 = 0 ;
30696 PyObject * obj2 = 0 ;
30697 PyObject * obj3 = 0 ;
30698 PyObject * obj4 = 0 ;
30699 char * kwnames[] = {
30700 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30701 };
30702
30703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30705 if (!SWIG_IsOK(res1)) {
30706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30707 }
30708 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30709 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30710 if (!SWIG_IsOK(res2)) {
30711 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
30712 }
30713 arg2 = reinterpret_cast< wxWindow * >(argp2);
30714 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30715 if (!SWIG_IsOK(res3)) {
30716 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
30717 }
30718 if (!argp3) {
30719 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
30720 }
30721 arg3 = reinterpret_cast< wxDC * >(argp3);
30722 {
30723 arg4 = &temp4;
30724 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30725 }
30726 if (obj4) {
30727 ecode5 = SWIG_AsVal_int(obj4, &val5);
30728 if (!SWIG_IsOK(ecode5)) {
30729 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
30730 }
30731 arg5 = static_cast< int >(val5);
30732 }
30733 {
30734 PyThreadState* __tstate = wxPyBeginAllowThreads();
30735 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
30736 wxPyEndAllowThreads(__tstate);
30737 if (PyErr_Occurred()) SWIG_fail;
30738 }
30739 resultobj = SWIG_Py_Void();
30740 return resultobj;
30741 fail:
30742 return NULL;
30743 }
30744
30745
30746 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30747 PyObject *resultobj = 0;
30748 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30749 wxWindow *arg2 = (wxWindow *) 0 ;
30750 wxDC *arg3 = 0 ;
30751 wxRect *arg4 = 0 ;
30752 int arg5 = (int) 0 ;
30753 void *argp1 = 0 ;
30754 int res1 = 0 ;
30755 void *argp2 = 0 ;
30756 int res2 = 0 ;
30757 void *argp3 = 0 ;
30758 int res3 = 0 ;
30759 wxRect temp4 ;
30760 int val5 ;
30761 int ecode5 = 0 ;
30762 PyObject * obj0 = 0 ;
30763 PyObject * obj1 = 0 ;
30764 PyObject * obj2 = 0 ;
30765 PyObject * obj3 = 0 ;
30766 PyObject * obj4 = 0 ;
30767 char * kwnames[] = {
30768 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30769 };
30770
30771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30773 if (!SWIG_IsOK(res1)) {
30774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30775 }
30776 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30777 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30778 if (!SWIG_IsOK(res2)) {
30779 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30780 }
30781 arg2 = reinterpret_cast< wxWindow * >(argp2);
30782 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30783 if (!SWIG_IsOK(res3)) {
30784 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
30785 }
30786 if (!argp3) {
30787 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
30788 }
30789 arg3 = reinterpret_cast< wxDC * >(argp3);
30790 {
30791 arg4 = &temp4;
30792 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30793 }
30794 if (obj4) {
30795 ecode5 = SWIG_AsVal_int(obj4, &val5);
30796 if (!SWIG_IsOK(ecode5)) {
30797 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
30798 }
30799 arg5 = static_cast< int >(val5);
30800 }
30801 {
30802 PyThreadState* __tstate = wxPyBeginAllowThreads();
30803 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30804 wxPyEndAllowThreads(__tstate);
30805 if (PyErr_Occurred()) SWIG_fail;
30806 }
30807 resultobj = SWIG_Py_Void();
30808 return resultobj;
30809 fail:
30810 return NULL;
30811 }
30812
30813
30814 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30815 PyObject *resultobj = 0;
30816 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30817 wxWindow *arg2 = (wxWindow *) 0 ;
30818 wxDC *arg3 = 0 ;
30819 wxRect *arg4 = 0 ;
30820 int arg5 = (int) 0 ;
30821 void *argp1 = 0 ;
30822 int res1 = 0 ;
30823 void *argp2 = 0 ;
30824 int res2 = 0 ;
30825 void *argp3 = 0 ;
30826 int res3 = 0 ;
30827 wxRect temp4 ;
30828 int val5 ;
30829 int ecode5 = 0 ;
30830 PyObject * obj0 = 0 ;
30831 PyObject * obj1 = 0 ;
30832 PyObject * obj2 = 0 ;
30833 PyObject * obj3 = 0 ;
30834 PyObject * obj4 = 0 ;
30835 char * kwnames[] = {
30836 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30837 };
30838
30839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30841 if (!SWIG_IsOK(res1)) {
30842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30843 }
30844 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30845 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30846 if (!SWIG_IsOK(res2)) {
30847 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
30848 }
30849 arg2 = reinterpret_cast< wxWindow * >(argp2);
30850 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30851 if (!SWIG_IsOK(res3)) {
30852 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
30853 }
30854 if (!argp3) {
30855 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
30856 }
30857 arg3 = reinterpret_cast< wxDC * >(argp3);
30858 {
30859 arg4 = &temp4;
30860 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30861 }
30862 if (obj4) {
30863 ecode5 = SWIG_AsVal_int(obj4, &val5);
30864 if (!SWIG_IsOK(ecode5)) {
30865 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
30866 }
30867 arg5 = static_cast< int >(val5);
30868 }
30869 {
30870 PyThreadState* __tstate = wxPyBeginAllowThreads();
30871 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
30872 wxPyEndAllowThreads(__tstate);
30873 if (PyErr_Occurred()) SWIG_fail;
30874 }
30875 resultobj = SWIG_Py_Void();
30876 return resultobj;
30877 fail:
30878 return NULL;
30879 }
30880
30881
30882 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30883 PyObject *resultobj = 0;
30884 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30885 wxWindow *arg2 = (wxWindow *) 0 ;
30886 SwigValueWrapper<wxSplitterRenderParams > result;
30887 void *argp1 = 0 ;
30888 int res1 = 0 ;
30889 void *argp2 = 0 ;
30890 int res2 = 0 ;
30891 PyObject * obj0 = 0 ;
30892 PyObject * obj1 = 0 ;
30893 char * kwnames[] = {
30894 (char *) "self",(char *) "win", NULL
30895 };
30896
30897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
30898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30899 if (!SWIG_IsOK(res1)) {
30900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30901 }
30902 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30903 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30904 if (!SWIG_IsOK(res2)) {
30905 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
30906 }
30907 arg2 = reinterpret_cast< wxWindow * >(argp2);
30908 {
30909 PyThreadState* __tstate = wxPyBeginAllowThreads();
30910 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
30911 wxPyEndAllowThreads(__tstate);
30912 if (PyErr_Occurred()) SWIG_fail;
30913 }
30914 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
30915 return resultobj;
30916 fail:
30917 return NULL;
30918 }
30919
30920
30921 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30922 PyObject *resultobj = 0;
30923 wxRendererNative *result = 0 ;
30924
30925 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
30926 {
30927 if (!wxPyCheckForApp()) SWIG_fail;
30928 PyThreadState* __tstate = wxPyBeginAllowThreads();
30929 {
30930 wxRendererNative &_result_ref = wxRendererNative::Get();
30931 result = (wxRendererNative *) &_result_ref;
30932 }
30933 wxPyEndAllowThreads(__tstate);
30934 if (PyErr_Occurred()) SWIG_fail;
30935 }
30936 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30937 return resultobj;
30938 fail:
30939 return NULL;
30940 }
30941
30942
30943 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30944 PyObject *resultobj = 0;
30945 wxRendererNative *result = 0 ;
30946
30947 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
30948 {
30949 if (!wxPyCheckForApp()) SWIG_fail;
30950 PyThreadState* __tstate = wxPyBeginAllowThreads();
30951 {
30952 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
30953 result = (wxRendererNative *) &_result_ref;
30954 }
30955 wxPyEndAllowThreads(__tstate);
30956 if (PyErr_Occurred()) SWIG_fail;
30957 }
30958 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30959 return resultobj;
30960 fail:
30961 return NULL;
30962 }
30963
30964
30965 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30966 PyObject *resultobj = 0;
30967 wxRendererNative *result = 0 ;
30968
30969 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
30970 {
30971 if (!wxPyCheckForApp()) SWIG_fail;
30972 PyThreadState* __tstate = wxPyBeginAllowThreads();
30973 {
30974 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
30975 result = (wxRendererNative *) &_result_ref;
30976 }
30977 wxPyEndAllowThreads(__tstate);
30978 if (PyErr_Occurred()) SWIG_fail;
30979 }
30980 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30981 return resultobj;
30982 fail:
30983 return NULL;
30984 }
30985
30986
30987 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30988 PyObject *resultobj = 0;
30989 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30990 wxRendererNative *result = 0 ;
30991 void *argp1 = 0 ;
30992 int res1 = 0 ;
30993 PyObject * obj0 = 0 ;
30994 char * kwnames[] = {
30995 (char *) "renderer", NULL
30996 };
30997
30998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
30999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31000 if (!SWIG_IsOK(res1)) {
31001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31002 }
31003 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31004 {
31005 if (!wxPyCheckForApp()) SWIG_fail;
31006 PyThreadState* __tstate = wxPyBeginAllowThreads();
31007 result = (wxRendererNative *)wxRendererNative::Set(arg1);
31008 wxPyEndAllowThreads(__tstate);
31009 if (PyErr_Occurred()) SWIG_fail;
31010 }
31011 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31012 return resultobj;
31013 fail:
31014 return NULL;
31015 }
31016
31017
31018 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31019 PyObject *resultobj = 0;
31020 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31021 SwigValueWrapper<wxRendererVersion > result;
31022 void *argp1 = 0 ;
31023 int res1 = 0 ;
31024 PyObject *swig_obj[1] ;
31025
31026 if (!args) SWIG_fail;
31027 swig_obj[0] = args;
31028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31029 if (!SWIG_IsOK(res1)) {
31030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
31031 }
31032 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31033 {
31034 PyThreadState* __tstate = wxPyBeginAllowThreads();
31035 result = ((wxRendererNative const *)arg1)->GetVersion();
31036 wxPyEndAllowThreads(__tstate);
31037 if (PyErr_Occurred()) SWIG_fail;
31038 }
31039 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
31040 return resultobj;
31041 fail:
31042 return NULL;
31043 }
31044
31045
31046 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31047 PyObject *obj;
31048 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31049 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
31050 return SWIG_Py_Void();
31051 }
31052
31053 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31054 PyObject *resultobj = 0;
31055 wxPseudoDC *result = 0 ;
31056
31057 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
31058 {
31059 PyThreadState* __tstate = wxPyBeginAllowThreads();
31060 result = (wxPseudoDC *)new wxPseudoDC();
31061 wxPyEndAllowThreads(__tstate);
31062 if (PyErr_Occurred()) SWIG_fail;
31063 }
31064 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
31065 return resultobj;
31066 fail:
31067 return NULL;
31068 }
31069
31070
31071 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31072 PyObject *resultobj = 0;
31073 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31074 void *argp1 = 0 ;
31075 int res1 = 0 ;
31076 PyObject *swig_obj[1] ;
31077
31078 if (!args) SWIG_fail;
31079 swig_obj[0] = args;
31080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31081 if (!SWIG_IsOK(res1)) {
31082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31083 }
31084 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31085 {
31086 PyThreadState* __tstate = wxPyBeginAllowThreads();
31087 (arg1)->BeginDrawing();
31088 wxPyEndAllowThreads(__tstate);
31089 if (PyErr_Occurred()) SWIG_fail;
31090 }
31091 resultobj = SWIG_Py_Void();
31092 return resultobj;
31093 fail:
31094 return NULL;
31095 }
31096
31097
31098 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31099 PyObject *resultobj = 0;
31100 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31101 void *argp1 = 0 ;
31102 int res1 = 0 ;
31103 PyObject *swig_obj[1] ;
31104
31105 if (!args) SWIG_fail;
31106 swig_obj[0] = args;
31107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31108 if (!SWIG_IsOK(res1)) {
31109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31110 }
31111 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31112 {
31113 PyThreadState* __tstate = wxPyBeginAllowThreads();
31114 (arg1)->EndDrawing();
31115 wxPyEndAllowThreads(__tstate);
31116 if (PyErr_Occurred()) SWIG_fail;
31117 }
31118 resultobj = SWIG_Py_Void();
31119 return resultobj;
31120 fail:
31121 return NULL;
31122 }
31123
31124
31125 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31126 PyObject *resultobj = 0;
31127 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31128 void *argp1 = 0 ;
31129 int res1 = 0 ;
31130 PyObject *swig_obj[1] ;
31131
31132 if (!args) SWIG_fail;
31133 swig_obj[0] = args;
31134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
31135 if (!SWIG_IsOK(res1)) {
31136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31137 }
31138 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31139 {
31140 PyThreadState* __tstate = wxPyBeginAllowThreads();
31141 delete arg1;
31142
31143 wxPyEndAllowThreads(__tstate);
31144 if (PyErr_Occurred()) SWIG_fail;
31145 }
31146 resultobj = SWIG_Py_Void();
31147 return resultobj;
31148 fail:
31149 return NULL;
31150 }
31151
31152
31153 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31154 PyObject *resultobj = 0;
31155 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31156 void *argp1 = 0 ;
31157 int res1 = 0 ;
31158 PyObject *swig_obj[1] ;
31159
31160 if (!args) SWIG_fail;
31161 swig_obj[0] = args;
31162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31163 if (!SWIG_IsOK(res1)) {
31164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31165 }
31166 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31167 {
31168 PyThreadState* __tstate = wxPyBeginAllowThreads();
31169 (arg1)->RemoveAll();
31170 wxPyEndAllowThreads(__tstate);
31171 if (PyErr_Occurred()) SWIG_fail;
31172 }
31173 resultobj = SWIG_Py_Void();
31174 return resultobj;
31175 fail:
31176 return NULL;
31177 }
31178
31179
31180 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31181 PyObject *resultobj = 0;
31182 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31183 int result;
31184 void *argp1 = 0 ;
31185 int res1 = 0 ;
31186 PyObject *swig_obj[1] ;
31187
31188 if (!args) SWIG_fail;
31189 swig_obj[0] = args;
31190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31191 if (!SWIG_IsOK(res1)) {
31192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31193 }
31194 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31195 {
31196 PyThreadState* __tstate = wxPyBeginAllowThreads();
31197 result = (int)(arg1)->GetLen();
31198 wxPyEndAllowThreads(__tstate);
31199 if (PyErr_Occurred()) SWIG_fail;
31200 }
31201 resultobj = SWIG_From_int(static_cast< int >(result));
31202 return resultobj;
31203 fail:
31204 return NULL;
31205 }
31206
31207
31208 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31209 PyObject *resultobj = 0;
31210 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31211 int arg2 ;
31212 void *argp1 = 0 ;
31213 int res1 = 0 ;
31214 int val2 ;
31215 int ecode2 = 0 ;
31216 PyObject * obj0 = 0 ;
31217 PyObject * obj1 = 0 ;
31218 char * kwnames[] = {
31219 (char *) "self",(char *) "id", NULL
31220 };
31221
31222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
31223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31224 if (!SWIG_IsOK(res1)) {
31225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31226 }
31227 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31228 ecode2 = SWIG_AsVal_int(obj1, &val2);
31229 if (!SWIG_IsOK(ecode2)) {
31230 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
31231 }
31232 arg2 = static_cast< int >(val2);
31233 {
31234 PyThreadState* __tstate = wxPyBeginAllowThreads();
31235 (arg1)->SetId(arg2);
31236 wxPyEndAllowThreads(__tstate);
31237 if (PyErr_Occurred()) SWIG_fail;
31238 }
31239 resultobj = SWIG_Py_Void();
31240 return resultobj;
31241 fail:
31242 return NULL;
31243 }
31244
31245
31246 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31247 PyObject *resultobj = 0;
31248 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31249 int arg2 ;
31250 void *argp1 = 0 ;
31251 int res1 = 0 ;
31252 int val2 ;
31253 int ecode2 = 0 ;
31254 PyObject * obj0 = 0 ;
31255 PyObject * obj1 = 0 ;
31256 char * kwnames[] = {
31257 (char *) "self",(char *) "id", NULL
31258 };
31259
31260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
31261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31262 if (!SWIG_IsOK(res1)) {
31263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31264 }
31265 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31266 ecode2 = SWIG_AsVal_int(obj1, &val2);
31267 if (!SWIG_IsOK(ecode2)) {
31268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
31269 }
31270 arg2 = static_cast< int >(val2);
31271 {
31272 PyThreadState* __tstate = wxPyBeginAllowThreads();
31273 (arg1)->ClearId(arg2);
31274 wxPyEndAllowThreads(__tstate);
31275 if (PyErr_Occurred()) SWIG_fail;
31276 }
31277 resultobj = SWIG_Py_Void();
31278 return resultobj;
31279 fail:
31280 return NULL;
31281 }
31282
31283
31284 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31285 PyObject *resultobj = 0;
31286 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31287 int arg2 ;
31288 void *argp1 = 0 ;
31289 int res1 = 0 ;
31290 int val2 ;
31291 int ecode2 = 0 ;
31292 PyObject * obj0 = 0 ;
31293 PyObject * obj1 = 0 ;
31294 char * kwnames[] = {
31295 (char *) "self",(char *) "id", NULL
31296 };
31297
31298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
31299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31300 if (!SWIG_IsOK(res1)) {
31301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31302 }
31303 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31304 ecode2 = SWIG_AsVal_int(obj1, &val2);
31305 if (!SWIG_IsOK(ecode2)) {
31306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
31307 }
31308 arg2 = static_cast< int >(val2);
31309 {
31310 PyThreadState* __tstate = wxPyBeginAllowThreads();
31311 (arg1)->RemoveId(arg2);
31312 wxPyEndAllowThreads(__tstate);
31313 if (PyErr_Occurred()) SWIG_fail;
31314 }
31315 resultobj = SWIG_Py_Void();
31316 return resultobj;
31317 fail:
31318 return NULL;
31319 }
31320
31321
31322 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31323 PyObject *resultobj = 0;
31324 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31325 int arg2 ;
31326 int arg3 ;
31327 int arg4 ;
31328 void *argp1 = 0 ;
31329 int res1 = 0 ;
31330 int val2 ;
31331 int ecode2 = 0 ;
31332 int val3 ;
31333 int ecode3 = 0 ;
31334 int val4 ;
31335 int ecode4 = 0 ;
31336 PyObject * obj0 = 0 ;
31337 PyObject * obj1 = 0 ;
31338 PyObject * obj2 = 0 ;
31339 PyObject * obj3 = 0 ;
31340 char * kwnames[] = {
31341 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
31342 };
31343
31344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31346 if (!SWIG_IsOK(res1)) {
31347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31348 }
31349 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31350 ecode2 = SWIG_AsVal_int(obj1, &val2);
31351 if (!SWIG_IsOK(ecode2)) {
31352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
31353 }
31354 arg2 = static_cast< int >(val2);
31355 ecode3 = SWIG_AsVal_int(obj2, &val3);
31356 if (!SWIG_IsOK(ecode3)) {
31357 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
31358 }
31359 arg3 = static_cast< int >(val3);
31360 ecode4 = SWIG_AsVal_int(obj3, &val4);
31361 if (!SWIG_IsOK(ecode4)) {
31362 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
31363 }
31364 arg4 = static_cast< int >(val4);
31365 {
31366 PyThreadState* __tstate = wxPyBeginAllowThreads();
31367 (arg1)->TranslateId(arg2,arg3,arg4);
31368 wxPyEndAllowThreads(__tstate);
31369 if (PyErr_Occurred()) SWIG_fail;
31370 }
31371 resultobj = SWIG_Py_Void();
31372 return resultobj;
31373 fail:
31374 return NULL;
31375 }
31376
31377
31378 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31379 PyObject *resultobj = 0;
31380 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31381 int arg2 ;
31382 bool arg3 = (bool) true ;
31383 void *argp1 = 0 ;
31384 int res1 = 0 ;
31385 int val2 ;
31386 int ecode2 = 0 ;
31387 bool val3 ;
31388 int ecode3 = 0 ;
31389 PyObject * obj0 = 0 ;
31390 PyObject * obj1 = 0 ;
31391 PyObject * obj2 = 0 ;
31392 char * kwnames[] = {
31393 (char *) "self",(char *) "id",(char *) "greyout", NULL
31394 };
31395
31396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31398 if (!SWIG_IsOK(res1)) {
31399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31400 }
31401 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31402 ecode2 = SWIG_AsVal_int(obj1, &val2);
31403 if (!SWIG_IsOK(ecode2)) {
31404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31405 }
31406 arg2 = static_cast< int >(val2);
31407 if (obj2) {
31408 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31409 if (!SWIG_IsOK(ecode3)) {
31410 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
31411 }
31412 arg3 = static_cast< bool >(val3);
31413 }
31414 {
31415 PyThreadState* __tstate = wxPyBeginAllowThreads();
31416 (arg1)->SetIdGreyedOut(arg2,arg3);
31417 wxPyEndAllowThreads(__tstate);
31418 if (PyErr_Occurred()) SWIG_fail;
31419 }
31420 resultobj = SWIG_Py_Void();
31421 return resultobj;
31422 fail:
31423 return NULL;
31424 }
31425
31426
31427 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31428 PyObject *resultobj = 0;
31429 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31430 int arg2 ;
31431 bool result;
31432 void *argp1 = 0 ;
31433 int res1 = 0 ;
31434 int val2 ;
31435 int ecode2 = 0 ;
31436 PyObject * obj0 = 0 ;
31437 PyObject * obj1 = 0 ;
31438 char * kwnames[] = {
31439 (char *) "self",(char *) "id", NULL
31440 };
31441
31442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
31443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31444 if (!SWIG_IsOK(res1)) {
31445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31446 }
31447 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31448 ecode2 = SWIG_AsVal_int(obj1, &val2);
31449 if (!SWIG_IsOK(ecode2)) {
31450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31451 }
31452 arg2 = static_cast< int >(val2);
31453 {
31454 PyThreadState* __tstate = wxPyBeginAllowThreads();
31455 result = (bool)(arg1)->GetIdGreyedOut(arg2);
31456 wxPyEndAllowThreads(__tstate);
31457 if (PyErr_Occurred()) SWIG_fail;
31458 }
31459 {
31460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31461 }
31462 return resultobj;
31463 fail:
31464 return NULL;
31465 }
31466
31467
31468 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31469 PyObject *resultobj = 0;
31470 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31471 int arg2 ;
31472 int arg3 ;
31473 int arg4 = (int) 1 ;
31474 wxColor const &arg5_defvalue = *wxWHITE ;
31475 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
31476 PyObject *result = 0 ;
31477 void *argp1 = 0 ;
31478 int res1 = 0 ;
31479 int val2 ;
31480 int ecode2 = 0 ;
31481 int val3 ;
31482 int ecode3 = 0 ;
31483 int val4 ;
31484 int ecode4 = 0 ;
31485 void *argp5 = 0 ;
31486 int res5 = 0 ;
31487 PyObject * obj0 = 0 ;
31488 PyObject * obj1 = 0 ;
31489 PyObject * obj2 = 0 ;
31490 PyObject * obj3 = 0 ;
31491 PyObject * obj4 = 0 ;
31492 char * kwnames[] = {
31493 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
31494 };
31495
31496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31498 if (!SWIG_IsOK(res1)) {
31499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31500 }
31501 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31502 ecode2 = SWIG_AsVal_int(obj1, &val2);
31503 if (!SWIG_IsOK(ecode2)) {
31504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
31505 }
31506 arg2 = static_cast< int >(val2);
31507 ecode3 = SWIG_AsVal_int(obj2, &val3);
31508 if (!SWIG_IsOK(ecode3)) {
31509 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
31510 }
31511 arg3 = static_cast< int >(val3);
31512 if (obj3) {
31513 ecode4 = SWIG_AsVal_int(obj3, &val4);
31514 if (!SWIG_IsOK(ecode4)) {
31515 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
31516 }
31517 arg4 = static_cast< int >(val4);
31518 }
31519 if (obj4) {
31520 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
31521 if (!SWIG_IsOK(res5)) {
31522 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31523 }
31524 if (!argp5) {
31525 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31526 }
31527 arg5 = reinterpret_cast< wxColor * >(argp5);
31528 }
31529 {
31530 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
31531 if (PyErr_Occurred()) SWIG_fail;
31532 }
31533 resultobj = result;
31534 return resultobj;
31535 fail:
31536 return NULL;
31537 }
31538
31539
31540 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31541 PyObject *resultobj = 0;
31542 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31543 int arg2 ;
31544 int arg3 ;
31545 PyObject *result = 0 ;
31546 void *argp1 = 0 ;
31547 int res1 = 0 ;
31548 int val2 ;
31549 int ecode2 = 0 ;
31550 int val3 ;
31551 int ecode3 = 0 ;
31552 PyObject * obj0 = 0 ;
31553 PyObject * obj1 = 0 ;
31554 PyObject * obj2 = 0 ;
31555 char * kwnames[] = {
31556 (char *) "self",(char *) "x",(char *) "y", NULL
31557 };
31558
31559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31561 if (!SWIG_IsOK(res1)) {
31562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31563 }
31564 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31565 ecode2 = SWIG_AsVal_int(obj1, &val2);
31566 if (!SWIG_IsOK(ecode2)) {
31567 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
31568 }
31569 arg2 = static_cast< int >(val2);
31570 ecode3 = SWIG_AsVal_int(obj2, &val3);
31571 if (!SWIG_IsOK(ecode3)) {
31572 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
31573 }
31574 arg3 = static_cast< int >(val3);
31575 {
31576 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
31577 if (PyErr_Occurred()) SWIG_fail;
31578 }
31579 resultobj = result;
31580 return resultobj;
31581 fail:
31582 return NULL;
31583 }
31584
31585
31586 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31587 PyObject *resultobj = 0;
31588 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31589 int arg2 ;
31590 wxDC *arg3 = (wxDC *) 0 ;
31591 void *argp1 = 0 ;
31592 int res1 = 0 ;
31593 int val2 ;
31594 int ecode2 = 0 ;
31595 void *argp3 = 0 ;
31596 int res3 = 0 ;
31597 PyObject * obj0 = 0 ;
31598 PyObject * obj1 = 0 ;
31599 PyObject * obj2 = 0 ;
31600 char * kwnames[] = {
31601 (char *) "self",(char *) "id",(char *) "dc", NULL
31602 };
31603
31604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31606 if (!SWIG_IsOK(res1)) {
31607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31608 }
31609 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31610 ecode2 = SWIG_AsVal_int(obj1, &val2);
31611 if (!SWIG_IsOK(ecode2)) {
31612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
31613 }
31614 arg2 = static_cast< int >(val2);
31615 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
31616 if (!SWIG_IsOK(res3)) {
31617 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
31618 }
31619 arg3 = reinterpret_cast< wxDC * >(argp3);
31620 {
31621 PyThreadState* __tstate = wxPyBeginAllowThreads();
31622 (arg1)->DrawIdToDC(arg2,arg3);
31623 wxPyEndAllowThreads(__tstate);
31624 if (PyErr_Occurred()) SWIG_fail;
31625 }
31626 resultobj = SWIG_Py_Void();
31627 return resultobj;
31628 fail:
31629 return NULL;
31630 }
31631
31632
31633 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31634 PyObject *resultobj = 0;
31635 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31636 int arg2 ;
31637 wxRect *arg3 = 0 ;
31638 void *argp1 = 0 ;
31639 int res1 = 0 ;
31640 int val2 ;
31641 int ecode2 = 0 ;
31642 wxRect temp3 ;
31643 PyObject * obj0 = 0 ;
31644 PyObject * obj1 = 0 ;
31645 PyObject * obj2 = 0 ;
31646 char * kwnames[] = {
31647 (char *) "self",(char *) "id",(char *) "rect", NULL
31648 };
31649
31650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31652 if (!SWIG_IsOK(res1)) {
31653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31654 }
31655 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31656 ecode2 = SWIG_AsVal_int(obj1, &val2);
31657 if (!SWIG_IsOK(ecode2)) {
31658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
31659 }
31660 arg2 = static_cast< int >(val2);
31661 {
31662 arg3 = &temp3;
31663 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31664 }
31665 {
31666 PyThreadState* __tstate = wxPyBeginAllowThreads();
31667 (arg1)->SetIdBounds(arg2,*arg3);
31668 wxPyEndAllowThreads(__tstate);
31669 if (PyErr_Occurred()) SWIG_fail;
31670 }
31671 resultobj = SWIG_Py_Void();
31672 return resultobj;
31673 fail:
31674 return NULL;
31675 }
31676
31677
31678 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31679 PyObject *resultobj = 0;
31680 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31681 int arg2 ;
31682 wxRect result;
31683 void *argp1 = 0 ;
31684 int res1 = 0 ;
31685 int val2 ;
31686 int ecode2 = 0 ;
31687 PyObject * obj0 = 0 ;
31688 PyObject * obj1 = 0 ;
31689 char * kwnames[] = {
31690 (char *) "self",(char *) "id", NULL
31691 };
31692
31693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
31694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31695 if (!SWIG_IsOK(res1)) {
31696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31697 }
31698 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31699 ecode2 = SWIG_AsVal_int(obj1, &val2);
31700 if (!SWIG_IsOK(ecode2)) {
31701 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
31702 }
31703 arg2 = static_cast< int >(val2);
31704 {
31705 PyThreadState* __tstate = wxPyBeginAllowThreads();
31706 result = wxPseudoDC_GetIdBounds(arg1,arg2);
31707 wxPyEndAllowThreads(__tstate);
31708 if (PyErr_Occurred()) SWIG_fail;
31709 }
31710 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
31711 return resultobj;
31712 fail:
31713 return NULL;
31714 }
31715
31716
31717 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31718 PyObject *resultobj = 0;
31719 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31720 wxDC *arg2 = (wxDC *) 0 ;
31721 wxRect *arg3 = 0 ;
31722 void *argp1 = 0 ;
31723 int res1 = 0 ;
31724 void *argp2 = 0 ;
31725 int res2 = 0 ;
31726 wxRect temp3 ;
31727 PyObject * obj0 = 0 ;
31728 PyObject * obj1 = 0 ;
31729 PyObject * obj2 = 0 ;
31730 char * kwnames[] = {
31731 (char *) "self",(char *) "dc",(char *) "rect", NULL
31732 };
31733
31734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31736 if (!SWIG_IsOK(res1)) {
31737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31738 }
31739 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31740 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31741 if (!SWIG_IsOK(res2)) {
31742 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
31743 }
31744 arg2 = reinterpret_cast< wxDC * >(argp2);
31745 {
31746 arg3 = &temp3;
31747 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31748 }
31749 {
31750 PyThreadState* __tstate = wxPyBeginAllowThreads();
31751 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
31752 wxPyEndAllowThreads(__tstate);
31753 if (PyErr_Occurred()) SWIG_fail;
31754 }
31755 resultobj = SWIG_Py_Void();
31756 return resultobj;
31757 fail:
31758 return NULL;
31759 }
31760
31761
31762 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31763 PyObject *resultobj = 0;
31764 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31765 wxDC *arg2 = (wxDC *) 0 ;
31766 wxRegion *arg3 = 0 ;
31767 void *argp1 = 0 ;
31768 int res1 = 0 ;
31769 void *argp2 = 0 ;
31770 int res2 = 0 ;
31771 void *argp3 = 0 ;
31772 int res3 = 0 ;
31773 PyObject * obj0 = 0 ;
31774 PyObject * obj1 = 0 ;
31775 PyObject * obj2 = 0 ;
31776 char * kwnames[] = {
31777 (char *) "self",(char *) "dc",(char *) "region", NULL
31778 };
31779
31780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31782 if (!SWIG_IsOK(res1)) {
31783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31784 }
31785 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31786 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31787 if (!SWIG_IsOK(res2)) {
31788 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
31789 }
31790 arg2 = reinterpret_cast< wxDC * >(argp2);
31791 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
31792 if (!SWIG_IsOK(res3)) {
31793 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
31794 }
31795 if (!argp3) {
31796 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
31797 }
31798 arg3 = reinterpret_cast< wxRegion * >(argp3);
31799 {
31800 PyThreadState* __tstate = wxPyBeginAllowThreads();
31801 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
31802 wxPyEndAllowThreads(__tstate);
31803 if (PyErr_Occurred()) SWIG_fail;
31804 }
31805 resultobj = SWIG_Py_Void();
31806 return resultobj;
31807 fail:
31808 return NULL;
31809 }
31810
31811
31812 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31813 PyObject *resultobj = 0;
31814 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31815 wxDC *arg2 = (wxDC *) 0 ;
31816 void *argp1 = 0 ;
31817 int res1 = 0 ;
31818 void *argp2 = 0 ;
31819 int res2 = 0 ;
31820 PyObject * obj0 = 0 ;
31821 PyObject * obj1 = 0 ;
31822 char * kwnames[] = {
31823 (char *) "self",(char *) "dc", NULL
31824 };
31825
31826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
31827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31828 if (!SWIG_IsOK(res1)) {
31829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31830 }
31831 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31832 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31833 if (!SWIG_IsOK(res2)) {
31834 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
31835 }
31836 arg2 = reinterpret_cast< wxDC * >(argp2);
31837 {
31838 PyThreadState* __tstate = wxPyBeginAllowThreads();
31839 (arg1)->DrawToDC(arg2);
31840 wxPyEndAllowThreads(__tstate);
31841 if (PyErr_Occurred()) SWIG_fail;
31842 }
31843 resultobj = SWIG_Py_Void();
31844 return resultobj;
31845 fail:
31846 return NULL;
31847 }
31848
31849
31850 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31851 PyObject *resultobj = 0;
31852 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31853 int arg2 ;
31854 int arg3 ;
31855 wxColour *arg4 = 0 ;
31856 int arg5 = (int) wxFLOOD_SURFACE ;
31857 void *argp1 = 0 ;
31858 int res1 = 0 ;
31859 int val2 ;
31860 int ecode2 = 0 ;
31861 int val3 ;
31862 int ecode3 = 0 ;
31863 wxColour temp4 ;
31864 int val5 ;
31865 int ecode5 = 0 ;
31866 PyObject * obj0 = 0 ;
31867 PyObject * obj1 = 0 ;
31868 PyObject * obj2 = 0 ;
31869 PyObject * obj3 = 0 ;
31870 PyObject * obj4 = 0 ;
31871 char * kwnames[] = {
31872 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
31873 };
31874
31875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31877 if (!SWIG_IsOK(res1)) {
31878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31879 }
31880 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31881 ecode2 = SWIG_AsVal_int(obj1, &val2);
31882 if (!SWIG_IsOK(ecode2)) {
31883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
31884 }
31885 arg2 = static_cast< int >(val2);
31886 ecode3 = SWIG_AsVal_int(obj2, &val3);
31887 if (!SWIG_IsOK(ecode3)) {
31888 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
31889 }
31890 arg3 = static_cast< int >(val3);
31891 {
31892 arg4 = &temp4;
31893 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
31894 }
31895 if (obj4) {
31896 ecode5 = SWIG_AsVal_int(obj4, &val5);
31897 if (!SWIG_IsOK(ecode5)) {
31898 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
31899 }
31900 arg5 = static_cast< int >(val5);
31901 }
31902 {
31903 PyThreadState* __tstate = wxPyBeginAllowThreads();
31904 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
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_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31916 PyObject *resultobj = 0;
31917 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31918 wxPoint *arg2 = 0 ;
31919 wxColour *arg3 = 0 ;
31920 int arg4 = (int) wxFLOOD_SURFACE ;
31921 void *argp1 = 0 ;
31922 int res1 = 0 ;
31923 wxPoint temp2 ;
31924 wxColour temp3 ;
31925 int val4 ;
31926 int ecode4 = 0 ;
31927 PyObject * obj0 = 0 ;
31928 PyObject * obj1 = 0 ;
31929 PyObject * obj2 = 0 ;
31930 PyObject * obj3 = 0 ;
31931 char * kwnames[] = {
31932 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
31933 };
31934
31935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31937 if (!SWIG_IsOK(res1)) {
31938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31939 }
31940 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31941 {
31942 arg2 = &temp2;
31943 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31944 }
31945 {
31946 arg3 = &temp3;
31947 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31948 }
31949 if (obj3) {
31950 ecode4 = SWIG_AsVal_int(obj3, &val4);
31951 if (!SWIG_IsOK(ecode4)) {
31952 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
31953 }
31954 arg4 = static_cast< int >(val4);
31955 }
31956 {
31957 PyThreadState* __tstate = wxPyBeginAllowThreads();
31958 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
31959 wxPyEndAllowThreads(__tstate);
31960 if (PyErr_Occurred()) SWIG_fail;
31961 }
31962 resultobj = SWIG_Py_Void();
31963 return resultobj;
31964 fail:
31965 return NULL;
31966 }
31967
31968
31969 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31970 PyObject *resultobj = 0;
31971 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31972 int arg2 ;
31973 int arg3 ;
31974 int arg4 ;
31975 int arg5 ;
31976 void *argp1 = 0 ;
31977 int res1 = 0 ;
31978 int val2 ;
31979 int ecode2 = 0 ;
31980 int val3 ;
31981 int ecode3 = 0 ;
31982 int val4 ;
31983 int ecode4 = 0 ;
31984 int val5 ;
31985 int ecode5 = 0 ;
31986 PyObject * obj0 = 0 ;
31987 PyObject * obj1 = 0 ;
31988 PyObject * obj2 = 0 ;
31989 PyObject * obj3 = 0 ;
31990 PyObject * obj4 = 0 ;
31991 char * kwnames[] = {
31992 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
31993 };
31994
31995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31997 if (!SWIG_IsOK(res1)) {
31998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31999 }
32000 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32001 ecode2 = SWIG_AsVal_int(obj1, &val2);
32002 if (!SWIG_IsOK(ecode2)) {
32003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
32004 }
32005 arg2 = static_cast< int >(val2);
32006 ecode3 = SWIG_AsVal_int(obj2, &val3);
32007 if (!SWIG_IsOK(ecode3)) {
32008 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
32009 }
32010 arg3 = static_cast< int >(val3);
32011 ecode4 = SWIG_AsVal_int(obj3, &val4);
32012 if (!SWIG_IsOK(ecode4)) {
32013 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
32014 }
32015 arg4 = static_cast< int >(val4);
32016 ecode5 = SWIG_AsVal_int(obj4, &val5);
32017 if (!SWIG_IsOK(ecode5)) {
32018 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
32019 }
32020 arg5 = static_cast< int >(val5);
32021 {
32022 PyThreadState* __tstate = wxPyBeginAllowThreads();
32023 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
32024 wxPyEndAllowThreads(__tstate);
32025 if (PyErr_Occurred()) SWIG_fail;
32026 }
32027 resultobj = SWIG_Py_Void();
32028 return resultobj;
32029 fail:
32030 return NULL;
32031 }
32032
32033
32034 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32035 PyObject *resultobj = 0;
32036 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32037 wxPoint *arg2 = 0 ;
32038 wxPoint *arg3 = 0 ;
32039 void *argp1 = 0 ;
32040 int res1 = 0 ;
32041 wxPoint temp2 ;
32042 wxPoint temp3 ;
32043 PyObject * obj0 = 0 ;
32044 PyObject * obj1 = 0 ;
32045 PyObject * obj2 = 0 ;
32046 char * kwnames[] = {
32047 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
32048 };
32049
32050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32052 if (!SWIG_IsOK(res1)) {
32053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32054 }
32055 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32056 {
32057 arg2 = &temp2;
32058 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32059 }
32060 {
32061 arg3 = &temp3;
32062 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32063 }
32064 {
32065 PyThreadState* __tstate = wxPyBeginAllowThreads();
32066 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
32067 wxPyEndAllowThreads(__tstate);
32068 if (PyErr_Occurred()) SWIG_fail;
32069 }
32070 resultobj = SWIG_Py_Void();
32071 return resultobj;
32072 fail:
32073 return NULL;
32074 }
32075
32076
32077 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32078 PyObject *resultobj = 0;
32079 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32080 int arg2 ;
32081 int arg3 ;
32082 void *argp1 = 0 ;
32083 int res1 = 0 ;
32084 int val2 ;
32085 int ecode2 = 0 ;
32086 int val3 ;
32087 int ecode3 = 0 ;
32088 PyObject * obj0 = 0 ;
32089 PyObject * obj1 = 0 ;
32090 PyObject * obj2 = 0 ;
32091 char * kwnames[] = {
32092 (char *) "self",(char *) "x",(char *) "y", NULL
32093 };
32094
32095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32097 if (!SWIG_IsOK(res1)) {
32098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32099 }
32100 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32101 ecode2 = SWIG_AsVal_int(obj1, &val2);
32102 if (!SWIG_IsOK(ecode2)) {
32103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
32104 }
32105 arg2 = static_cast< int >(val2);
32106 ecode3 = SWIG_AsVal_int(obj2, &val3);
32107 if (!SWIG_IsOK(ecode3)) {
32108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
32109 }
32110 arg3 = static_cast< int >(val3);
32111 {
32112 PyThreadState* __tstate = wxPyBeginAllowThreads();
32113 (arg1)->CrossHair(arg2,arg3);
32114 wxPyEndAllowThreads(__tstate);
32115 if (PyErr_Occurred()) SWIG_fail;
32116 }
32117 resultobj = SWIG_Py_Void();
32118 return resultobj;
32119 fail:
32120 return NULL;
32121 }
32122
32123
32124 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32125 PyObject *resultobj = 0;
32126 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32127 wxPoint *arg2 = 0 ;
32128 void *argp1 = 0 ;
32129 int res1 = 0 ;
32130 wxPoint temp2 ;
32131 PyObject * obj0 = 0 ;
32132 PyObject * obj1 = 0 ;
32133 char * kwnames[] = {
32134 (char *) "self",(char *) "pt", NULL
32135 };
32136
32137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32139 if (!SWIG_IsOK(res1)) {
32140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32141 }
32142 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32143 {
32144 arg2 = &temp2;
32145 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32146 }
32147 {
32148 PyThreadState* __tstate = wxPyBeginAllowThreads();
32149 (arg1)->CrossHair((wxPoint const &)*arg2);
32150 wxPyEndAllowThreads(__tstate);
32151 if (PyErr_Occurred()) SWIG_fail;
32152 }
32153 resultobj = SWIG_Py_Void();
32154 return resultobj;
32155 fail:
32156 return NULL;
32157 }
32158
32159
32160 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32161 PyObject *resultobj = 0;
32162 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32163 int arg2 ;
32164 int arg3 ;
32165 int arg4 ;
32166 int arg5 ;
32167 int arg6 ;
32168 int arg7 ;
32169 void *argp1 = 0 ;
32170 int res1 = 0 ;
32171 int val2 ;
32172 int ecode2 = 0 ;
32173 int val3 ;
32174 int ecode3 = 0 ;
32175 int val4 ;
32176 int ecode4 = 0 ;
32177 int val5 ;
32178 int ecode5 = 0 ;
32179 int val6 ;
32180 int ecode6 = 0 ;
32181 int val7 ;
32182 int ecode7 = 0 ;
32183 PyObject * obj0 = 0 ;
32184 PyObject * obj1 = 0 ;
32185 PyObject * obj2 = 0 ;
32186 PyObject * obj3 = 0 ;
32187 PyObject * obj4 = 0 ;
32188 PyObject * obj5 = 0 ;
32189 PyObject * obj6 = 0 ;
32190 char * kwnames[] = {
32191 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
32192 };
32193
32194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32196 if (!SWIG_IsOK(res1)) {
32197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32198 }
32199 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32200 ecode2 = SWIG_AsVal_int(obj1, &val2);
32201 if (!SWIG_IsOK(ecode2)) {
32202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
32203 }
32204 arg2 = static_cast< int >(val2);
32205 ecode3 = SWIG_AsVal_int(obj2, &val3);
32206 if (!SWIG_IsOK(ecode3)) {
32207 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
32208 }
32209 arg3 = static_cast< int >(val3);
32210 ecode4 = SWIG_AsVal_int(obj3, &val4);
32211 if (!SWIG_IsOK(ecode4)) {
32212 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
32213 }
32214 arg4 = static_cast< int >(val4);
32215 ecode5 = SWIG_AsVal_int(obj4, &val5);
32216 if (!SWIG_IsOK(ecode5)) {
32217 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
32218 }
32219 arg5 = static_cast< int >(val5);
32220 ecode6 = SWIG_AsVal_int(obj5, &val6);
32221 if (!SWIG_IsOK(ecode6)) {
32222 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
32223 }
32224 arg6 = static_cast< int >(val6);
32225 ecode7 = SWIG_AsVal_int(obj6, &val7);
32226 if (!SWIG_IsOK(ecode7)) {
32227 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
32228 }
32229 arg7 = static_cast< int >(val7);
32230 {
32231 PyThreadState* __tstate = wxPyBeginAllowThreads();
32232 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
32233 wxPyEndAllowThreads(__tstate);
32234 if (PyErr_Occurred()) SWIG_fail;
32235 }
32236 resultobj = SWIG_Py_Void();
32237 return resultobj;
32238 fail:
32239 return NULL;
32240 }
32241
32242
32243 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32244 PyObject *resultobj = 0;
32245 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32246 wxPoint *arg2 = 0 ;
32247 wxPoint *arg3 = 0 ;
32248 wxPoint *arg4 = 0 ;
32249 void *argp1 = 0 ;
32250 int res1 = 0 ;
32251 wxPoint temp2 ;
32252 wxPoint temp3 ;
32253 wxPoint temp4 ;
32254 PyObject * obj0 = 0 ;
32255 PyObject * obj1 = 0 ;
32256 PyObject * obj2 = 0 ;
32257 PyObject * obj3 = 0 ;
32258 char * kwnames[] = {
32259 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
32260 };
32261
32262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32264 if (!SWIG_IsOK(res1)) {
32265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32266 }
32267 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32268 {
32269 arg2 = &temp2;
32270 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32271 }
32272 {
32273 arg3 = &temp3;
32274 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32275 }
32276 {
32277 arg4 = &temp4;
32278 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32279 }
32280 {
32281 PyThreadState* __tstate = wxPyBeginAllowThreads();
32282 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
32283 wxPyEndAllowThreads(__tstate);
32284 if (PyErr_Occurred()) SWIG_fail;
32285 }
32286 resultobj = SWIG_Py_Void();
32287 return resultobj;
32288 fail:
32289 return NULL;
32290 }
32291
32292
32293 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32294 PyObject *resultobj = 0;
32295 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32296 int arg2 ;
32297 int arg3 ;
32298 int arg4 ;
32299 int arg5 ;
32300 void *argp1 = 0 ;
32301 int res1 = 0 ;
32302 int val2 ;
32303 int ecode2 = 0 ;
32304 int val3 ;
32305 int ecode3 = 0 ;
32306 int val4 ;
32307 int ecode4 = 0 ;
32308 int val5 ;
32309 int ecode5 = 0 ;
32310 PyObject * obj0 = 0 ;
32311 PyObject * obj1 = 0 ;
32312 PyObject * obj2 = 0 ;
32313 PyObject * obj3 = 0 ;
32314 PyObject * obj4 = 0 ;
32315 char * kwnames[] = {
32316 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32317 };
32318
32319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32321 if (!SWIG_IsOK(res1)) {
32322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32323 }
32324 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32325 ecode2 = SWIG_AsVal_int(obj1, &val2);
32326 if (!SWIG_IsOK(ecode2)) {
32327 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
32328 }
32329 arg2 = static_cast< int >(val2);
32330 ecode3 = SWIG_AsVal_int(obj2, &val3);
32331 if (!SWIG_IsOK(ecode3)) {
32332 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
32333 }
32334 arg3 = static_cast< int >(val3);
32335 ecode4 = SWIG_AsVal_int(obj3, &val4);
32336 if (!SWIG_IsOK(ecode4)) {
32337 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
32338 }
32339 arg4 = static_cast< int >(val4);
32340 ecode5 = SWIG_AsVal_int(obj4, &val5);
32341 if (!SWIG_IsOK(ecode5)) {
32342 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
32343 }
32344 arg5 = static_cast< int >(val5);
32345 {
32346 PyThreadState* __tstate = wxPyBeginAllowThreads();
32347 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
32348 wxPyEndAllowThreads(__tstate);
32349 if (PyErr_Occurred()) SWIG_fail;
32350 }
32351 resultobj = SWIG_Py_Void();
32352 return resultobj;
32353 fail:
32354 return NULL;
32355 }
32356
32357
32358 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32359 PyObject *resultobj = 0;
32360 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32361 wxRect *arg2 = 0 ;
32362 void *argp1 = 0 ;
32363 int res1 = 0 ;
32364 wxRect temp2 ;
32365 PyObject * obj0 = 0 ;
32366 PyObject * obj1 = 0 ;
32367 char * kwnames[] = {
32368 (char *) "self",(char *) "rect", NULL
32369 };
32370
32371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
32372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32373 if (!SWIG_IsOK(res1)) {
32374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32375 }
32376 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32377 {
32378 arg2 = &temp2;
32379 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32380 }
32381 {
32382 PyThreadState* __tstate = wxPyBeginAllowThreads();
32383 (arg1)->DrawCheckMark((wxRect const &)*arg2);
32384 wxPyEndAllowThreads(__tstate);
32385 if (PyErr_Occurred()) SWIG_fail;
32386 }
32387 resultobj = SWIG_Py_Void();
32388 return resultobj;
32389 fail:
32390 return NULL;
32391 }
32392
32393
32394 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32395 PyObject *resultobj = 0;
32396 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32397 int arg2 ;
32398 int arg3 ;
32399 int arg4 ;
32400 int arg5 ;
32401 double arg6 ;
32402 double arg7 ;
32403 void *argp1 = 0 ;
32404 int res1 = 0 ;
32405 int val2 ;
32406 int ecode2 = 0 ;
32407 int val3 ;
32408 int ecode3 = 0 ;
32409 int val4 ;
32410 int ecode4 = 0 ;
32411 int val5 ;
32412 int ecode5 = 0 ;
32413 double val6 ;
32414 int ecode6 = 0 ;
32415 double val7 ;
32416 int ecode7 = 0 ;
32417 PyObject * obj0 = 0 ;
32418 PyObject * obj1 = 0 ;
32419 PyObject * obj2 = 0 ;
32420 PyObject * obj3 = 0 ;
32421 PyObject * obj4 = 0 ;
32422 PyObject * obj5 = 0 ;
32423 PyObject * obj6 = 0 ;
32424 char * kwnames[] = {
32425 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
32426 };
32427
32428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32430 if (!SWIG_IsOK(res1)) {
32431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32432 }
32433 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32434 ecode2 = SWIG_AsVal_int(obj1, &val2);
32435 if (!SWIG_IsOK(ecode2)) {
32436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
32437 }
32438 arg2 = static_cast< int >(val2);
32439 ecode3 = SWIG_AsVal_int(obj2, &val3);
32440 if (!SWIG_IsOK(ecode3)) {
32441 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
32442 }
32443 arg3 = static_cast< int >(val3);
32444 ecode4 = SWIG_AsVal_int(obj3, &val4);
32445 if (!SWIG_IsOK(ecode4)) {
32446 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
32447 }
32448 arg4 = static_cast< int >(val4);
32449 ecode5 = SWIG_AsVal_int(obj4, &val5);
32450 if (!SWIG_IsOK(ecode5)) {
32451 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
32452 }
32453 arg5 = static_cast< int >(val5);
32454 ecode6 = SWIG_AsVal_double(obj5, &val6);
32455 if (!SWIG_IsOK(ecode6)) {
32456 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
32457 }
32458 arg6 = static_cast< double >(val6);
32459 ecode7 = SWIG_AsVal_double(obj6, &val7);
32460 if (!SWIG_IsOK(ecode7)) {
32461 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
32462 }
32463 arg7 = static_cast< double >(val7);
32464 {
32465 PyThreadState* __tstate = wxPyBeginAllowThreads();
32466 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
32467 wxPyEndAllowThreads(__tstate);
32468 if (PyErr_Occurred()) SWIG_fail;
32469 }
32470 resultobj = SWIG_Py_Void();
32471 return resultobj;
32472 fail:
32473 return NULL;
32474 }
32475
32476
32477 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32478 PyObject *resultobj = 0;
32479 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32480 wxPoint *arg2 = 0 ;
32481 wxSize *arg3 = 0 ;
32482 double arg4 ;
32483 double arg5 ;
32484 void *argp1 = 0 ;
32485 int res1 = 0 ;
32486 wxPoint temp2 ;
32487 wxSize temp3 ;
32488 double val4 ;
32489 int ecode4 = 0 ;
32490 double val5 ;
32491 int ecode5 = 0 ;
32492 PyObject * obj0 = 0 ;
32493 PyObject * obj1 = 0 ;
32494 PyObject * obj2 = 0 ;
32495 PyObject * obj3 = 0 ;
32496 PyObject * obj4 = 0 ;
32497 char * kwnames[] = {
32498 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
32499 };
32500
32501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32503 if (!SWIG_IsOK(res1)) {
32504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32505 }
32506 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32507 {
32508 arg2 = &temp2;
32509 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32510 }
32511 {
32512 arg3 = &temp3;
32513 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32514 }
32515 ecode4 = SWIG_AsVal_double(obj3, &val4);
32516 if (!SWIG_IsOK(ecode4)) {
32517 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
32518 }
32519 arg4 = static_cast< double >(val4);
32520 ecode5 = SWIG_AsVal_double(obj4, &val5);
32521 if (!SWIG_IsOK(ecode5)) {
32522 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
32523 }
32524 arg5 = static_cast< double >(val5);
32525 {
32526 PyThreadState* __tstate = wxPyBeginAllowThreads();
32527 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
32528 wxPyEndAllowThreads(__tstate);
32529 if (PyErr_Occurred()) SWIG_fail;
32530 }
32531 resultobj = SWIG_Py_Void();
32532 return resultobj;
32533 fail:
32534 return NULL;
32535 }
32536
32537
32538 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32539 PyObject *resultobj = 0;
32540 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32541 int arg2 ;
32542 int arg3 ;
32543 void *argp1 = 0 ;
32544 int res1 = 0 ;
32545 int val2 ;
32546 int ecode2 = 0 ;
32547 int val3 ;
32548 int ecode3 = 0 ;
32549 PyObject * obj0 = 0 ;
32550 PyObject * obj1 = 0 ;
32551 PyObject * obj2 = 0 ;
32552 char * kwnames[] = {
32553 (char *) "self",(char *) "x",(char *) "y", NULL
32554 };
32555
32556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) 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_DrawPoint" "', 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_DrawPoint" "', 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_DrawPoint" "', expected argument " "3"" of type '" "int""'");
32570 }
32571 arg3 = static_cast< int >(val3);
32572 {
32573 PyThreadState* __tstate = wxPyBeginAllowThreads();
32574 (arg1)->DrawPoint(arg2,arg3);
32575 wxPyEndAllowThreads(__tstate);
32576 if (PyErr_Occurred()) SWIG_fail;
32577 }
32578 resultobj = SWIG_Py_Void();
32579 return resultobj;
32580 fail:
32581 return NULL;
32582 }
32583
32584
32585 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32586 PyObject *resultobj = 0;
32587 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32588 wxPoint *arg2 = 0 ;
32589 void *argp1 = 0 ;
32590 int res1 = 0 ;
32591 wxPoint temp2 ;
32592 PyObject * obj0 = 0 ;
32593 PyObject * obj1 = 0 ;
32594 char * kwnames[] = {
32595 (char *) "self",(char *) "pt", NULL
32596 };
32597
32598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32600 if (!SWIG_IsOK(res1)) {
32601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32602 }
32603 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32604 {
32605 arg2 = &temp2;
32606 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32607 }
32608 {
32609 PyThreadState* __tstate = wxPyBeginAllowThreads();
32610 (arg1)->DrawPoint((wxPoint const &)*arg2);
32611 wxPyEndAllowThreads(__tstate);
32612 if (PyErr_Occurred()) SWIG_fail;
32613 }
32614 resultobj = SWIG_Py_Void();
32615 return resultobj;
32616 fail:
32617 return NULL;
32618 }
32619
32620
32621 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32622 PyObject *resultobj = 0;
32623 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32624 int arg2 ;
32625 int arg3 ;
32626 int arg4 ;
32627 int arg5 ;
32628 void *argp1 = 0 ;
32629 int res1 = 0 ;
32630 int val2 ;
32631 int ecode2 = 0 ;
32632 int val3 ;
32633 int ecode3 = 0 ;
32634 int val4 ;
32635 int ecode4 = 0 ;
32636 int val5 ;
32637 int ecode5 = 0 ;
32638 PyObject * obj0 = 0 ;
32639 PyObject * obj1 = 0 ;
32640 PyObject * obj2 = 0 ;
32641 PyObject * obj3 = 0 ;
32642 PyObject * obj4 = 0 ;
32643 char * kwnames[] = {
32644 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32645 };
32646
32647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32649 if (!SWIG_IsOK(res1)) {
32650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32651 }
32652 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32653 ecode2 = SWIG_AsVal_int(obj1, &val2);
32654 if (!SWIG_IsOK(ecode2)) {
32655 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
32656 }
32657 arg2 = static_cast< int >(val2);
32658 ecode3 = SWIG_AsVal_int(obj2, &val3);
32659 if (!SWIG_IsOK(ecode3)) {
32660 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
32661 }
32662 arg3 = static_cast< int >(val3);
32663 ecode4 = SWIG_AsVal_int(obj3, &val4);
32664 if (!SWIG_IsOK(ecode4)) {
32665 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
32666 }
32667 arg4 = static_cast< int >(val4);
32668 ecode5 = SWIG_AsVal_int(obj4, &val5);
32669 if (!SWIG_IsOK(ecode5)) {
32670 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
32671 }
32672 arg5 = static_cast< int >(val5);
32673 {
32674 PyThreadState* __tstate = wxPyBeginAllowThreads();
32675 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
32676 wxPyEndAllowThreads(__tstate);
32677 if (PyErr_Occurred()) SWIG_fail;
32678 }
32679 resultobj = SWIG_Py_Void();
32680 return resultobj;
32681 fail:
32682 return NULL;
32683 }
32684
32685
32686 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32687 PyObject *resultobj = 0;
32688 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32689 wxRect *arg2 = 0 ;
32690 void *argp1 = 0 ;
32691 int res1 = 0 ;
32692 wxRect temp2 ;
32693 PyObject * obj0 = 0 ;
32694 PyObject * obj1 = 0 ;
32695 char * kwnames[] = {
32696 (char *) "self",(char *) "rect", NULL
32697 };
32698
32699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
32700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32701 if (!SWIG_IsOK(res1)) {
32702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32703 }
32704 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32705 {
32706 arg2 = &temp2;
32707 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32708 }
32709 {
32710 PyThreadState* __tstate = wxPyBeginAllowThreads();
32711 (arg1)->DrawRectangle((wxRect const &)*arg2);
32712 wxPyEndAllowThreads(__tstate);
32713 if (PyErr_Occurred()) SWIG_fail;
32714 }
32715 resultobj = SWIG_Py_Void();
32716 return resultobj;
32717 fail:
32718 return NULL;
32719 }
32720
32721
32722 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32723 PyObject *resultobj = 0;
32724 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32725 wxPoint *arg2 = 0 ;
32726 wxSize *arg3 = 0 ;
32727 void *argp1 = 0 ;
32728 int res1 = 0 ;
32729 wxPoint temp2 ;
32730 wxSize temp3 ;
32731 PyObject * obj0 = 0 ;
32732 PyObject * obj1 = 0 ;
32733 PyObject * obj2 = 0 ;
32734 char * kwnames[] = {
32735 (char *) "self",(char *) "pt",(char *) "sz", NULL
32736 };
32737
32738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) 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_DrawRectanglePointSize" "', 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 {
32753 PyThreadState* __tstate = wxPyBeginAllowThreads();
32754 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
32755 wxPyEndAllowThreads(__tstate);
32756 if (PyErr_Occurred()) SWIG_fail;
32757 }
32758 resultobj = SWIG_Py_Void();
32759 return resultobj;
32760 fail:
32761 return NULL;
32762 }
32763
32764
32765 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32766 PyObject *resultobj = 0;
32767 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32768 int arg2 ;
32769 int arg3 ;
32770 int arg4 ;
32771 int arg5 ;
32772 double arg6 ;
32773 void *argp1 = 0 ;
32774 int res1 = 0 ;
32775 int val2 ;
32776 int ecode2 = 0 ;
32777 int val3 ;
32778 int ecode3 = 0 ;
32779 int val4 ;
32780 int ecode4 = 0 ;
32781 int val5 ;
32782 int ecode5 = 0 ;
32783 double val6 ;
32784 int ecode6 = 0 ;
32785 PyObject * obj0 = 0 ;
32786 PyObject * obj1 = 0 ;
32787 PyObject * obj2 = 0 ;
32788 PyObject * obj3 = 0 ;
32789 PyObject * obj4 = 0 ;
32790 PyObject * obj5 = 0 ;
32791 char * kwnames[] = {
32792 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
32793 };
32794
32795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
32796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32797 if (!SWIG_IsOK(res1)) {
32798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32799 }
32800 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32801 ecode2 = SWIG_AsVal_int(obj1, &val2);
32802 if (!SWIG_IsOK(ecode2)) {
32803 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
32804 }
32805 arg2 = static_cast< int >(val2);
32806 ecode3 = SWIG_AsVal_int(obj2, &val3);
32807 if (!SWIG_IsOK(ecode3)) {
32808 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
32809 }
32810 arg3 = static_cast< int >(val3);
32811 ecode4 = SWIG_AsVal_int(obj3, &val4);
32812 if (!SWIG_IsOK(ecode4)) {
32813 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
32814 }
32815 arg4 = static_cast< int >(val4);
32816 ecode5 = SWIG_AsVal_int(obj4, &val5);
32817 if (!SWIG_IsOK(ecode5)) {
32818 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
32819 }
32820 arg5 = static_cast< int >(val5);
32821 ecode6 = SWIG_AsVal_double(obj5, &val6);
32822 if (!SWIG_IsOK(ecode6)) {
32823 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
32824 }
32825 arg6 = static_cast< double >(val6);
32826 {
32827 PyThreadState* __tstate = wxPyBeginAllowThreads();
32828 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
32829 wxPyEndAllowThreads(__tstate);
32830 if (PyErr_Occurred()) SWIG_fail;
32831 }
32832 resultobj = SWIG_Py_Void();
32833 return resultobj;
32834 fail:
32835 return NULL;
32836 }
32837
32838
32839 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32840 PyObject *resultobj = 0;
32841 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32842 wxRect *arg2 = 0 ;
32843 double arg3 ;
32844 void *argp1 = 0 ;
32845 int res1 = 0 ;
32846 wxRect temp2 ;
32847 double val3 ;
32848 int ecode3 = 0 ;
32849 PyObject * obj0 = 0 ;
32850 PyObject * obj1 = 0 ;
32851 PyObject * obj2 = 0 ;
32852 char * kwnames[] = {
32853 (char *) "self",(char *) "r",(char *) "radius", NULL
32854 };
32855
32856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32858 if (!SWIG_IsOK(res1)) {
32859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32860 }
32861 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32862 {
32863 arg2 = &temp2;
32864 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32865 }
32866 ecode3 = SWIG_AsVal_double(obj2, &val3);
32867 if (!SWIG_IsOK(ecode3)) {
32868 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
32869 }
32870 arg3 = static_cast< double >(val3);
32871 {
32872 PyThreadState* __tstate = wxPyBeginAllowThreads();
32873 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
32874 wxPyEndAllowThreads(__tstate);
32875 if (PyErr_Occurred()) SWIG_fail;
32876 }
32877 resultobj = SWIG_Py_Void();
32878 return resultobj;
32879 fail:
32880 return NULL;
32881 }
32882
32883
32884 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32885 PyObject *resultobj = 0;
32886 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32887 wxPoint *arg2 = 0 ;
32888 wxSize *arg3 = 0 ;
32889 double arg4 ;
32890 void *argp1 = 0 ;
32891 int res1 = 0 ;
32892 wxPoint temp2 ;
32893 wxSize temp3 ;
32894 double val4 ;
32895 int ecode4 = 0 ;
32896 PyObject * obj0 = 0 ;
32897 PyObject * obj1 = 0 ;
32898 PyObject * obj2 = 0 ;
32899 PyObject * obj3 = 0 ;
32900 char * kwnames[] = {
32901 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
32902 };
32903
32904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32906 if (!SWIG_IsOK(res1)) {
32907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32908 }
32909 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32910 {
32911 arg2 = &temp2;
32912 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32913 }
32914 {
32915 arg3 = &temp3;
32916 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32917 }
32918 ecode4 = SWIG_AsVal_double(obj3, &val4);
32919 if (!SWIG_IsOK(ecode4)) {
32920 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
32921 }
32922 arg4 = static_cast< double >(val4);
32923 {
32924 PyThreadState* __tstate = wxPyBeginAllowThreads();
32925 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
32926 wxPyEndAllowThreads(__tstate);
32927 if (PyErr_Occurred()) SWIG_fail;
32928 }
32929 resultobj = SWIG_Py_Void();
32930 return resultobj;
32931 fail:
32932 return NULL;
32933 }
32934
32935
32936 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32937 PyObject *resultobj = 0;
32938 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32939 int arg2 ;
32940 int arg3 ;
32941 int arg4 ;
32942 void *argp1 = 0 ;
32943 int res1 = 0 ;
32944 int val2 ;
32945 int ecode2 = 0 ;
32946 int val3 ;
32947 int ecode3 = 0 ;
32948 int val4 ;
32949 int ecode4 = 0 ;
32950 PyObject * obj0 = 0 ;
32951 PyObject * obj1 = 0 ;
32952 PyObject * obj2 = 0 ;
32953 PyObject * obj3 = 0 ;
32954 char * kwnames[] = {
32955 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
32956 };
32957
32958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32960 if (!SWIG_IsOK(res1)) {
32961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32962 }
32963 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32964 ecode2 = SWIG_AsVal_int(obj1, &val2);
32965 if (!SWIG_IsOK(ecode2)) {
32966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
32967 }
32968 arg2 = static_cast< int >(val2);
32969 ecode3 = SWIG_AsVal_int(obj2, &val3);
32970 if (!SWIG_IsOK(ecode3)) {
32971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
32972 }
32973 arg3 = static_cast< int >(val3);
32974 ecode4 = SWIG_AsVal_int(obj3, &val4);
32975 if (!SWIG_IsOK(ecode4)) {
32976 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
32977 }
32978 arg4 = static_cast< int >(val4);
32979 {
32980 PyThreadState* __tstate = wxPyBeginAllowThreads();
32981 (arg1)->DrawCircle(arg2,arg3,arg4);
32982 wxPyEndAllowThreads(__tstate);
32983 if (PyErr_Occurred()) SWIG_fail;
32984 }
32985 resultobj = SWIG_Py_Void();
32986 return resultobj;
32987 fail:
32988 return NULL;
32989 }
32990
32991
32992 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32993 PyObject *resultobj = 0;
32994 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32995 wxPoint *arg2 = 0 ;
32996 int arg3 ;
32997 void *argp1 = 0 ;
32998 int res1 = 0 ;
32999 wxPoint temp2 ;
33000 int val3 ;
33001 int ecode3 = 0 ;
33002 PyObject * obj0 = 0 ;
33003 PyObject * obj1 = 0 ;
33004 PyObject * obj2 = 0 ;
33005 char * kwnames[] = {
33006 (char *) "self",(char *) "pt",(char *) "radius", NULL
33007 };
33008
33009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33011 if (!SWIG_IsOK(res1)) {
33012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33013 }
33014 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33015 {
33016 arg2 = &temp2;
33017 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33018 }
33019 ecode3 = SWIG_AsVal_int(obj2, &val3);
33020 if (!SWIG_IsOK(ecode3)) {
33021 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
33022 }
33023 arg3 = static_cast< int >(val3);
33024 {
33025 PyThreadState* __tstate = wxPyBeginAllowThreads();
33026 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
33027 wxPyEndAllowThreads(__tstate);
33028 if (PyErr_Occurred()) SWIG_fail;
33029 }
33030 resultobj = SWIG_Py_Void();
33031 return resultobj;
33032 fail:
33033 return NULL;
33034 }
33035
33036
33037 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33038 PyObject *resultobj = 0;
33039 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33040 int arg2 ;
33041 int arg3 ;
33042 int arg4 ;
33043 int arg5 ;
33044 void *argp1 = 0 ;
33045 int res1 = 0 ;
33046 int val2 ;
33047 int ecode2 = 0 ;
33048 int val3 ;
33049 int ecode3 = 0 ;
33050 int val4 ;
33051 int ecode4 = 0 ;
33052 int val5 ;
33053 int ecode5 = 0 ;
33054 PyObject * obj0 = 0 ;
33055 PyObject * obj1 = 0 ;
33056 PyObject * obj2 = 0 ;
33057 PyObject * obj3 = 0 ;
33058 PyObject * obj4 = 0 ;
33059 char * kwnames[] = {
33060 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33061 };
33062
33063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33065 if (!SWIG_IsOK(res1)) {
33066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33067 }
33068 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33069 ecode2 = SWIG_AsVal_int(obj1, &val2);
33070 if (!SWIG_IsOK(ecode2)) {
33071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
33072 }
33073 arg2 = static_cast< int >(val2);
33074 ecode3 = SWIG_AsVal_int(obj2, &val3);
33075 if (!SWIG_IsOK(ecode3)) {
33076 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
33077 }
33078 arg3 = static_cast< int >(val3);
33079 ecode4 = SWIG_AsVal_int(obj3, &val4);
33080 if (!SWIG_IsOK(ecode4)) {
33081 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
33082 }
33083 arg4 = static_cast< int >(val4);
33084 ecode5 = SWIG_AsVal_int(obj4, &val5);
33085 if (!SWIG_IsOK(ecode5)) {
33086 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
33087 }
33088 arg5 = static_cast< int >(val5);
33089 {
33090 PyThreadState* __tstate = wxPyBeginAllowThreads();
33091 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
33092 wxPyEndAllowThreads(__tstate);
33093 if (PyErr_Occurred()) SWIG_fail;
33094 }
33095 resultobj = SWIG_Py_Void();
33096 return resultobj;
33097 fail:
33098 return NULL;
33099 }
33100
33101
33102 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33103 PyObject *resultobj = 0;
33104 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33105 wxRect *arg2 = 0 ;
33106 void *argp1 = 0 ;
33107 int res1 = 0 ;
33108 wxRect temp2 ;
33109 PyObject * obj0 = 0 ;
33110 PyObject * obj1 = 0 ;
33111 char * kwnames[] = {
33112 (char *) "self",(char *) "rect", NULL
33113 };
33114
33115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
33116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33117 if (!SWIG_IsOK(res1)) {
33118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33119 }
33120 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33121 {
33122 arg2 = &temp2;
33123 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33124 }
33125 {
33126 PyThreadState* __tstate = wxPyBeginAllowThreads();
33127 (arg1)->DrawEllipse((wxRect const &)*arg2);
33128 wxPyEndAllowThreads(__tstate);
33129 if (PyErr_Occurred()) SWIG_fail;
33130 }
33131 resultobj = SWIG_Py_Void();
33132 return resultobj;
33133 fail:
33134 return NULL;
33135 }
33136
33137
33138 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33139 PyObject *resultobj = 0;
33140 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33141 wxPoint *arg2 = 0 ;
33142 wxSize *arg3 = 0 ;
33143 void *argp1 = 0 ;
33144 int res1 = 0 ;
33145 wxPoint temp2 ;
33146 wxSize temp3 ;
33147 PyObject * obj0 = 0 ;
33148 PyObject * obj1 = 0 ;
33149 PyObject * obj2 = 0 ;
33150 char * kwnames[] = {
33151 (char *) "self",(char *) "pt",(char *) "sz", NULL
33152 };
33153
33154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33156 if (!SWIG_IsOK(res1)) {
33157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33158 }
33159 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33160 {
33161 arg2 = &temp2;
33162 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33163 }
33164 {
33165 arg3 = &temp3;
33166 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33167 }
33168 {
33169 PyThreadState* __tstate = wxPyBeginAllowThreads();
33170 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
33171 wxPyEndAllowThreads(__tstate);
33172 if (PyErr_Occurred()) SWIG_fail;
33173 }
33174 resultobj = SWIG_Py_Void();
33175 return resultobj;
33176 fail:
33177 return NULL;
33178 }
33179
33180
33181 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33182 PyObject *resultobj = 0;
33183 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33184 wxIcon *arg2 = 0 ;
33185 int arg3 ;
33186 int arg4 ;
33187 void *argp1 = 0 ;
33188 int res1 = 0 ;
33189 void *argp2 = 0 ;
33190 int res2 = 0 ;
33191 int val3 ;
33192 int ecode3 = 0 ;
33193 int val4 ;
33194 int ecode4 = 0 ;
33195 PyObject * obj0 = 0 ;
33196 PyObject * obj1 = 0 ;
33197 PyObject * obj2 = 0 ;
33198 PyObject * obj3 = 0 ;
33199 char * kwnames[] = {
33200 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
33201 };
33202
33203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33205 if (!SWIG_IsOK(res1)) {
33206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33207 }
33208 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33209 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33210 if (!SWIG_IsOK(res2)) {
33211 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33212 }
33213 if (!argp2) {
33214 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33215 }
33216 arg2 = reinterpret_cast< wxIcon * >(argp2);
33217 ecode3 = SWIG_AsVal_int(obj2, &val3);
33218 if (!SWIG_IsOK(ecode3)) {
33219 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
33220 }
33221 arg3 = static_cast< int >(val3);
33222 ecode4 = SWIG_AsVal_int(obj3, &val4);
33223 if (!SWIG_IsOK(ecode4)) {
33224 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
33225 }
33226 arg4 = static_cast< int >(val4);
33227 {
33228 PyThreadState* __tstate = wxPyBeginAllowThreads();
33229 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
33230 wxPyEndAllowThreads(__tstate);
33231 if (PyErr_Occurred()) SWIG_fail;
33232 }
33233 resultobj = SWIG_Py_Void();
33234 return resultobj;
33235 fail:
33236 return NULL;
33237 }
33238
33239
33240 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33241 PyObject *resultobj = 0;
33242 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33243 wxIcon *arg2 = 0 ;
33244 wxPoint *arg3 = 0 ;
33245 void *argp1 = 0 ;
33246 int res1 = 0 ;
33247 void *argp2 = 0 ;
33248 int res2 = 0 ;
33249 wxPoint temp3 ;
33250 PyObject * obj0 = 0 ;
33251 PyObject * obj1 = 0 ;
33252 PyObject * obj2 = 0 ;
33253 char * kwnames[] = {
33254 (char *) "self",(char *) "icon",(char *) "pt", NULL
33255 };
33256
33257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33259 if (!SWIG_IsOK(res1)) {
33260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33261 }
33262 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33263 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33264 if (!SWIG_IsOK(res2)) {
33265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33266 }
33267 if (!argp2) {
33268 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33269 }
33270 arg2 = reinterpret_cast< wxIcon * >(argp2);
33271 {
33272 arg3 = &temp3;
33273 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33274 }
33275 {
33276 PyThreadState* __tstate = wxPyBeginAllowThreads();
33277 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
33278 wxPyEndAllowThreads(__tstate);
33279 if (PyErr_Occurred()) SWIG_fail;
33280 }
33281 resultobj = SWIG_Py_Void();
33282 return resultobj;
33283 fail:
33284 return NULL;
33285 }
33286
33287
33288 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33289 PyObject *resultobj = 0;
33290 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33291 wxBitmap *arg2 = 0 ;
33292 int arg3 ;
33293 int arg4 ;
33294 bool arg5 = (bool) false ;
33295 void *argp1 = 0 ;
33296 int res1 = 0 ;
33297 void *argp2 = 0 ;
33298 int res2 = 0 ;
33299 int val3 ;
33300 int ecode3 = 0 ;
33301 int val4 ;
33302 int ecode4 = 0 ;
33303 bool val5 ;
33304 int ecode5 = 0 ;
33305 PyObject * obj0 = 0 ;
33306 PyObject * obj1 = 0 ;
33307 PyObject * obj2 = 0 ;
33308 PyObject * obj3 = 0 ;
33309 PyObject * obj4 = 0 ;
33310 char * kwnames[] = {
33311 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
33312 };
33313
33314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33316 if (!SWIG_IsOK(res1)) {
33317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33318 }
33319 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33320 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33321 if (!SWIG_IsOK(res2)) {
33322 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33323 }
33324 if (!argp2) {
33325 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33326 }
33327 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33328 ecode3 = SWIG_AsVal_int(obj2, &val3);
33329 if (!SWIG_IsOK(ecode3)) {
33330 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
33331 }
33332 arg3 = static_cast< int >(val3);
33333 ecode4 = SWIG_AsVal_int(obj3, &val4);
33334 if (!SWIG_IsOK(ecode4)) {
33335 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
33336 }
33337 arg4 = static_cast< int >(val4);
33338 if (obj4) {
33339 ecode5 = SWIG_AsVal_bool(obj4, &val5);
33340 if (!SWIG_IsOK(ecode5)) {
33341 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
33342 }
33343 arg5 = static_cast< bool >(val5);
33344 }
33345 {
33346 PyThreadState* __tstate = wxPyBeginAllowThreads();
33347 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
33348 wxPyEndAllowThreads(__tstate);
33349 if (PyErr_Occurred()) SWIG_fail;
33350 }
33351 resultobj = SWIG_Py_Void();
33352 return resultobj;
33353 fail:
33354 return NULL;
33355 }
33356
33357
33358 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33359 PyObject *resultobj = 0;
33360 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33361 wxBitmap *arg2 = 0 ;
33362 wxPoint *arg3 = 0 ;
33363 bool arg4 = (bool) false ;
33364 void *argp1 = 0 ;
33365 int res1 = 0 ;
33366 void *argp2 = 0 ;
33367 int res2 = 0 ;
33368 wxPoint temp3 ;
33369 bool val4 ;
33370 int ecode4 = 0 ;
33371 PyObject * obj0 = 0 ;
33372 PyObject * obj1 = 0 ;
33373 PyObject * obj2 = 0 ;
33374 PyObject * obj3 = 0 ;
33375 char * kwnames[] = {
33376 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
33377 };
33378
33379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33381 if (!SWIG_IsOK(res1)) {
33382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33383 }
33384 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33385 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33386 if (!SWIG_IsOK(res2)) {
33387 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33388 }
33389 if (!argp2) {
33390 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33391 }
33392 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33393 {
33394 arg3 = &temp3;
33395 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33396 }
33397 if (obj3) {
33398 ecode4 = SWIG_AsVal_bool(obj3, &val4);
33399 if (!SWIG_IsOK(ecode4)) {
33400 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
33401 }
33402 arg4 = static_cast< bool >(val4);
33403 }
33404 {
33405 PyThreadState* __tstate = wxPyBeginAllowThreads();
33406 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
33407 wxPyEndAllowThreads(__tstate);
33408 if (PyErr_Occurred()) SWIG_fail;
33409 }
33410 resultobj = SWIG_Py_Void();
33411 return resultobj;
33412 fail:
33413 return NULL;
33414 }
33415
33416
33417 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33418 PyObject *resultobj = 0;
33419 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33420 wxString *arg2 = 0 ;
33421 int arg3 ;
33422 int arg4 ;
33423 void *argp1 = 0 ;
33424 int res1 = 0 ;
33425 bool temp2 = false ;
33426 int val3 ;
33427 int ecode3 = 0 ;
33428 int val4 ;
33429 int ecode4 = 0 ;
33430 PyObject * obj0 = 0 ;
33431 PyObject * obj1 = 0 ;
33432 PyObject * obj2 = 0 ;
33433 PyObject * obj3 = 0 ;
33434 char * kwnames[] = {
33435 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
33436 };
33437
33438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33440 if (!SWIG_IsOK(res1)) {
33441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33442 }
33443 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33444 {
33445 arg2 = wxString_in_helper(obj1);
33446 if (arg2 == NULL) SWIG_fail;
33447 temp2 = true;
33448 }
33449 ecode3 = SWIG_AsVal_int(obj2, &val3);
33450 if (!SWIG_IsOK(ecode3)) {
33451 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
33452 }
33453 arg3 = static_cast< int >(val3);
33454 ecode4 = SWIG_AsVal_int(obj3, &val4);
33455 if (!SWIG_IsOK(ecode4)) {
33456 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
33457 }
33458 arg4 = static_cast< int >(val4);
33459 {
33460 PyThreadState* __tstate = wxPyBeginAllowThreads();
33461 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
33462 wxPyEndAllowThreads(__tstate);
33463 if (PyErr_Occurred()) SWIG_fail;
33464 }
33465 resultobj = SWIG_Py_Void();
33466 {
33467 if (temp2)
33468 delete arg2;
33469 }
33470 return resultobj;
33471 fail:
33472 {
33473 if (temp2)
33474 delete arg2;
33475 }
33476 return NULL;
33477 }
33478
33479
33480 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33481 PyObject *resultobj = 0;
33482 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33483 wxString *arg2 = 0 ;
33484 wxPoint *arg3 = 0 ;
33485 void *argp1 = 0 ;
33486 int res1 = 0 ;
33487 bool temp2 = false ;
33488 wxPoint temp3 ;
33489 PyObject * obj0 = 0 ;
33490 PyObject * obj1 = 0 ;
33491 PyObject * obj2 = 0 ;
33492 char * kwnames[] = {
33493 (char *) "self",(char *) "text",(char *) "pt", NULL
33494 };
33495
33496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33498 if (!SWIG_IsOK(res1)) {
33499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33500 }
33501 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33502 {
33503 arg2 = wxString_in_helper(obj1);
33504 if (arg2 == NULL) SWIG_fail;
33505 temp2 = true;
33506 }
33507 {
33508 arg3 = &temp3;
33509 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33510 }
33511 {
33512 PyThreadState* __tstate = wxPyBeginAllowThreads();
33513 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
33514 wxPyEndAllowThreads(__tstate);
33515 if (PyErr_Occurred()) SWIG_fail;
33516 }
33517 resultobj = SWIG_Py_Void();
33518 {
33519 if (temp2)
33520 delete arg2;
33521 }
33522 return resultobj;
33523 fail:
33524 {
33525 if (temp2)
33526 delete arg2;
33527 }
33528 return NULL;
33529 }
33530
33531
33532 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33533 PyObject *resultobj = 0;
33534 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33535 wxString *arg2 = 0 ;
33536 int arg3 ;
33537 int arg4 ;
33538 double arg5 ;
33539 void *argp1 = 0 ;
33540 int res1 = 0 ;
33541 bool temp2 = false ;
33542 int val3 ;
33543 int ecode3 = 0 ;
33544 int val4 ;
33545 int ecode4 = 0 ;
33546 double val5 ;
33547 int ecode5 = 0 ;
33548 PyObject * obj0 = 0 ;
33549 PyObject * obj1 = 0 ;
33550 PyObject * obj2 = 0 ;
33551 PyObject * obj3 = 0 ;
33552 PyObject * obj4 = 0 ;
33553 char * kwnames[] = {
33554 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
33555 };
33556
33557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33559 if (!SWIG_IsOK(res1)) {
33560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33561 }
33562 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33563 {
33564 arg2 = wxString_in_helper(obj1);
33565 if (arg2 == NULL) SWIG_fail;
33566 temp2 = true;
33567 }
33568 ecode3 = SWIG_AsVal_int(obj2, &val3);
33569 if (!SWIG_IsOK(ecode3)) {
33570 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
33571 }
33572 arg3 = static_cast< int >(val3);
33573 ecode4 = SWIG_AsVal_int(obj3, &val4);
33574 if (!SWIG_IsOK(ecode4)) {
33575 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
33576 }
33577 arg4 = static_cast< int >(val4);
33578 ecode5 = SWIG_AsVal_double(obj4, &val5);
33579 if (!SWIG_IsOK(ecode5)) {
33580 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
33581 }
33582 arg5 = static_cast< double >(val5);
33583 {
33584 PyThreadState* __tstate = wxPyBeginAllowThreads();
33585 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
33586 wxPyEndAllowThreads(__tstate);
33587 if (PyErr_Occurred()) SWIG_fail;
33588 }
33589 resultobj = SWIG_Py_Void();
33590 {
33591 if (temp2)
33592 delete arg2;
33593 }
33594 return resultobj;
33595 fail:
33596 {
33597 if (temp2)
33598 delete arg2;
33599 }
33600 return NULL;
33601 }
33602
33603
33604 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33605 PyObject *resultobj = 0;
33606 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33607 wxString *arg2 = 0 ;
33608 wxPoint *arg3 = 0 ;
33609 double arg4 ;
33610 void *argp1 = 0 ;
33611 int res1 = 0 ;
33612 bool temp2 = false ;
33613 wxPoint temp3 ;
33614 double val4 ;
33615 int ecode4 = 0 ;
33616 PyObject * obj0 = 0 ;
33617 PyObject * obj1 = 0 ;
33618 PyObject * obj2 = 0 ;
33619 PyObject * obj3 = 0 ;
33620 char * kwnames[] = {
33621 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
33622 };
33623
33624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33626 if (!SWIG_IsOK(res1)) {
33627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33628 }
33629 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33630 {
33631 arg2 = wxString_in_helper(obj1);
33632 if (arg2 == NULL) SWIG_fail;
33633 temp2 = true;
33634 }
33635 {
33636 arg3 = &temp3;
33637 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33638 }
33639 ecode4 = SWIG_AsVal_double(obj3, &val4);
33640 if (!SWIG_IsOK(ecode4)) {
33641 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
33642 }
33643 arg4 = static_cast< double >(val4);
33644 {
33645 PyThreadState* __tstate = wxPyBeginAllowThreads();
33646 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
33647 wxPyEndAllowThreads(__tstate);
33648 if (PyErr_Occurred()) SWIG_fail;
33649 }
33650 resultobj = SWIG_Py_Void();
33651 {
33652 if (temp2)
33653 delete arg2;
33654 }
33655 return resultobj;
33656 fail:
33657 {
33658 if (temp2)
33659 delete arg2;
33660 }
33661 return NULL;
33662 }
33663
33664
33665 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33666 PyObject *resultobj = 0;
33667 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33668 int arg2 ;
33669 wxPoint *arg3 = (wxPoint *) 0 ;
33670 int arg4 = (int) 0 ;
33671 int arg5 = (int) 0 ;
33672 void *argp1 = 0 ;
33673 int res1 = 0 ;
33674 int val4 ;
33675 int ecode4 = 0 ;
33676 int val5 ;
33677 int ecode5 = 0 ;
33678 PyObject * obj0 = 0 ;
33679 PyObject * obj1 = 0 ;
33680 PyObject * obj2 = 0 ;
33681 PyObject * obj3 = 0 ;
33682 char * kwnames[] = {
33683 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
33684 };
33685
33686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33688 if (!SWIG_IsOK(res1)) {
33689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33690 }
33691 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33692 {
33693 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33694 if (arg3 == NULL) SWIG_fail;
33695 }
33696 if (obj2) {
33697 ecode4 = SWIG_AsVal_int(obj2, &val4);
33698 if (!SWIG_IsOK(ecode4)) {
33699 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
33700 }
33701 arg4 = static_cast< int >(val4);
33702 }
33703 if (obj3) {
33704 ecode5 = SWIG_AsVal_int(obj3, &val5);
33705 if (!SWIG_IsOK(ecode5)) {
33706 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
33707 }
33708 arg5 = static_cast< int >(val5);
33709 }
33710 {
33711 PyThreadState* __tstate = wxPyBeginAllowThreads();
33712 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
33713 wxPyEndAllowThreads(__tstate);
33714 if (PyErr_Occurred()) SWIG_fail;
33715 }
33716 resultobj = SWIG_Py_Void();
33717 {
33718 if (arg3) delete [] arg3;
33719 }
33720 return resultobj;
33721 fail:
33722 {
33723 if (arg3) delete [] arg3;
33724 }
33725 return NULL;
33726 }
33727
33728
33729 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33730 PyObject *resultobj = 0;
33731 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33732 int arg2 ;
33733 wxPoint *arg3 = (wxPoint *) 0 ;
33734 int arg4 = (int) 0 ;
33735 int arg5 = (int) 0 ;
33736 int arg6 = (int) wxODDEVEN_RULE ;
33737 void *argp1 = 0 ;
33738 int res1 = 0 ;
33739 int val4 ;
33740 int ecode4 = 0 ;
33741 int val5 ;
33742 int ecode5 = 0 ;
33743 int val6 ;
33744 int ecode6 = 0 ;
33745 PyObject * obj0 = 0 ;
33746 PyObject * obj1 = 0 ;
33747 PyObject * obj2 = 0 ;
33748 PyObject * obj3 = 0 ;
33749 PyObject * obj4 = 0 ;
33750 char * kwnames[] = {
33751 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
33752 };
33753
33754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33756 if (!SWIG_IsOK(res1)) {
33757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33758 }
33759 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33760 {
33761 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33762 if (arg3 == NULL) SWIG_fail;
33763 }
33764 if (obj2) {
33765 ecode4 = SWIG_AsVal_int(obj2, &val4);
33766 if (!SWIG_IsOK(ecode4)) {
33767 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
33768 }
33769 arg4 = static_cast< int >(val4);
33770 }
33771 if (obj3) {
33772 ecode5 = SWIG_AsVal_int(obj3, &val5);
33773 if (!SWIG_IsOK(ecode5)) {
33774 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
33775 }
33776 arg5 = static_cast< int >(val5);
33777 }
33778 if (obj4) {
33779 ecode6 = SWIG_AsVal_int(obj4, &val6);
33780 if (!SWIG_IsOK(ecode6)) {
33781 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
33782 }
33783 arg6 = static_cast< int >(val6);
33784 }
33785 {
33786 PyThreadState* __tstate = wxPyBeginAllowThreads();
33787 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
33788 wxPyEndAllowThreads(__tstate);
33789 if (PyErr_Occurred()) SWIG_fail;
33790 }
33791 resultobj = SWIG_Py_Void();
33792 {
33793 if (arg3) delete [] arg3;
33794 }
33795 return resultobj;
33796 fail:
33797 {
33798 if (arg3) delete [] arg3;
33799 }
33800 return NULL;
33801 }
33802
33803
33804 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33805 PyObject *resultobj = 0;
33806 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33807 wxString *arg2 = 0 ;
33808 wxRect *arg3 = 0 ;
33809 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
33810 int arg5 = (int) -1 ;
33811 void *argp1 = 0 ;
33812 int res1 = 0 ;
33813 bool temp2 = false ;
33814 wxRect temp3 ;
33815 int val4 ;
33816 int ecode4 = 0 ;
33817 int val5 ;
33818 int ecode5 = 0 ;
33819 PyObject * obj0 = 0 ;
33820 PyObject * obj1 = 0 ;
33821 PyObject * obj2 = 0 ;
33822 PyObject * obj3 = 0 ;
33823 PyObject * obj4 = 0 ;
33824 char * kwnames[] = {
33825 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
33826 };
33827
33828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33830 if (!SWIG_IsOK(res1)) {
33831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33832 }
33833 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33834 {
33835 arg2 = wxString_in_helper(obj1);
33836 if (arg2 == NULL) SWIG_fail;
33837 temp2 = true;
33838 }
33839 {
33840 arg3 = &temp3;
33841 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33842 }
33843 if (obj3) {
33844 ecode4 = SWIG_AsVal_int(obj3, &val4);
33845 if (!SWIG_IsOK(ecode4)) {
33846 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
33847 }
33848 arg4 = static_cast< int >(val4);
33849 }
33850 if (obj4) {
33851 ecode5 = SWIG_AsVal_int(obj4, &val5);
33852 if (!SWIG_IsOK(ecode5)) {
33853 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
33854 }
33855 arg5 = static_cast< int >(val5);
33856 }
33857 {
33858 PyThreadState* __tstate = wxPyBeginAllowThreads();
33859 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
33860 wxPyEndAllowThreads(__tstate);
33861 if (PyErr_Occurred()) SWIG_fail;
33862 }
33863 resultobj = SWIG_Py_Void();
33864 {
33865 if (temp2)
33866 delete arg2;
33867 }
33868 return resultobj;
33869 fail:
33870 {
33871 if (temp2)
33872 delete arg2;
33873 }
33874 return NULL;
33875 }
33876
33877
33878 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33879 PyObject *resultobj = 0;
33880 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33881 wxString *arg2 = 0 ;
33882 wxBitmap *arg3 = 0 ;
33883 wxRect *arg4 = 0 ;
33884 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
33885 int arg6 = (int) -1 ;
33886 void *argp1 = 0 ;
33887 int res1 = 0 ;
33888 bool temp2 = false ;
33889 void *argp3 = 0 ;
33890 int res3 = 0 ;
33891 wxRect temp4 ;
33892 int val5 ;
33893 int ecode5 = 0 ;
33894 int val6 ;
33895 int ecode6 = 0 ;
33896 PyObject * obj0 = 0 ;
33897 PyObject * obj1 = 0 ;
33898 PyObject * obj2 = 0 ;
33899 PyObject * obj3 = 0 ;
33900 PyObject * obj4 = 0 ;
33901 PyObject * obj5 = 0 ;
33902 char * kwnames[] = {
33903 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
33904 };
33905
33906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33908 if (!SWIG_IsOK(res1)) {
33909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33910 }
33911 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33912 {
33913 arg2 = wxString_in_helper(obj1);
33914 if (arg2 == NULL) SWIG_fail;
33915 temp2 = true;
33916 }
33917 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
33918 if (!SWIG_IsOK(res3)) {
33919 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
33920 }
33921 if (!argp3) {
33922 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
33923 }
33924 arg3 = reinterpret_cast< wxBitmap * >(argp3);
33925 {
33926 arg4 = &temp4;
33927 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33928 }
33929 if (obj4) {
33930 ecode5 = SWIG_AsVal_int(obj4, &val5);
33931 if (!SWIG_IsOK(ecode5)) {
33932 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
33933 }
33934 arg5 = static_cast< int >(val5);
33935 }
33936 if (obj5) {
33937 ecode6 = SWIG_AsVal_int(obj5, &val6);
33938 if (!SWIG_IsOK(ecode6)) {
33939 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
33940 }
33941 arg6 = static_cast< int >(val6);
33942 }
33943 {
33944 PyThreadState* __tstate = wxPyBeginAllowThreads();
33945 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
33946 wxPyEndAllowThreads(__tstate);
33947 if (PyErr_Occurred()) SWIG_fail;
33948 }
33949 resultobj = SWIG_Py_Void();
33950 {
33951 if (temp2)
33952 delete arg2;
33953 }
33954 return resultobj;
33955 fail:
33956 {
33957 if (temp2)
33958 delete arg2;
33959 }
33960 return NULL;
33961 }
33962
33963
33964 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33965 PyObject *resultobj = 0;
33966 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33967 int arg2 ;
33968 wxPoint *arg3 = (wxPoint *) 0 ;
33969 void *argp1 = 0 ;
33970 int res1 = 0 ;
33971 PyObject * obj0 = 0 ;
33972 PyObject * obj1 = 0 ;
33973 char * kwnames[] = {
33974 (char *) "self",(char *) "points", NULL
33975 };
33976
33977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
33978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33979 if (!SWIG_IsOK(res1)) {
33980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33981 }
33982 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33983 {
33984 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33985 if (arg3 == NULL) SWIG_fail;
33986 }
33987 {
33988 PyThreadState* __tstate = wxPyBeginAllowThreads();
33989 (arg1)->DrawSpline(arg2,arg3);
33990 wxPyEndAllowThreads(__tstate);
33991 if (PyErr_Occurred()) SWIG_fail;
33992 }
33993 resultobj = SWIG_Py_Void();
33994 {
33995 if (arg3) delete [] arg3;
33996 }
33997 return resultobj;
33998 fail:
33999 {
34000 if (arg3) delete [] arg3;
34001 }
34002 return NULL;
34003 }
34004
34005
34006 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34007 PyObject *resultobj = 0;
34008 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34009 void *argp1 = 0 ;
34010 int res1 = 0 ;
34011 PyObject *swig_obj[1] ;
34012
34013 if (!args) SWIG_fail;
34014 swig_obj[0] = args;
34015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34016 if (!SWIG_IsOK(res1)) {
34017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34018 }
34019 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34020 {
34021 PyThreadState* __tstate = wxPyBeginAllowThreads();
34022 (arg1)->Clear();
34023 wxPyEndAllowThreads(__tstate);
34024 if (PyErr_Occurred()) SWIG_fail;
34025 }
34026 resultobj = SWIG_Py_Void();
34027 return resultobj;
34028 fail:
34029 return NULL;
34030 }
34031
34032
34033 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34034 PyObject *resultobj = 0;
34035 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34036 wxFont *arg2 = 0 ;
34037 void *argp1 = 0 ;
34038 int res1 = 0 ;
34039 void *argp2 = 0 ;
34040 int res2 = 0 ;
34041 PyObject * obj0 = 0 ;
34042 PyObject * obj1 = 0 ;
34043 char * kwnames[] = {
34044 (char *) "self",(char *) "font", NULL
34045 };
34046
34047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
34048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34049 if (!SWIG_IsOK(res1)) {
34050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34051 }
34052 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34053 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
34054 if (!SWIG_IsOK(res2)) {
34055 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
34056 }
34057 if (!argp2) {
34058 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
34059 }
34060 arg2 = reinterpret_cast< wxFont * >(argp2);
34061 {
34062 PyThreadState* __tstate = wxPyBeginAllowThreads();
34063 (arg1)->SetFont((wxFont const &)*arg2);
34064 wxPyEndAllowThreads(__tstate);
34065 if (PyErr_Occurred()) SWIG_fail;
34066 }
34067 resultobj = SWIG_Py_Void();
34068 return resultobj;
34069 fail:
34070 return NULL;
34071 }
34072
34073
34074 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34075 PyObject *resultobj = 0;
34076 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34077 wxPen *arg2 = 0 ;
34078 void *argp1 = 0 ;
34079 int res1 = 0 ;
34080 void *argp2 = 0 ;
34081 int res2 = 0 ;
34082 PyObject * obj0 = 0 ;
34083 PyObject * obj1 = 0 ;
34084 char * kwnames[] = {
34085 (char *) "self",(char *) "pen", NULL
34086 };
34087
34088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
34089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34090 if (!SWIG_IsOK(res1)) {
34091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34092 }
34093 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34094 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
34095 if (!SWIG_IsOK(res2)) {
34096 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
34097 }
34098 if (!argp2) {
34099 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
34100 }
34101 arg2 = reinterpret_cast< wxPen * >(argp2);
34102 {
34103 PyThreadState* __tstate = wxPyBeginAllowThreads();
34104 (arg1)->SetPen((wxPen const &)*arg2);
34105 wxPyEndAllowThreads(__tstate);
34106 if (PyErr_Occurred()) SWIG_fail;
34107 }
34108 resultobj = SWIG_Py_Void();
34109 return resultobj;
34110 fail:
34111 return NULL;
34112 }
34113
34114
34115 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34116 PyObject *resultobj = 0;
34117 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34118 wxBrush *arg2 = 0 ;
34119 void *argp1 = 0 ;
34120 int res1 = 0 ;
34121 void *argp2 = 0 ;
34122 int res2 = 0 ;
34123 PyObject * obj0 = 0 ;
34124 PyObject * obj1 = 0 ;
34125 char * kwnames[] = {
34126 (char *) "self",(char *) "brush", NULL
34127 };
34128
34129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
34130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34131 if (!SWIG_IsOK(res1)) {
34132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34133 }
34134 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34135 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
34136 if (!SWIG_IsOK(res2)) {
34137 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
34138 }
34139 if (!argp2) {
34140 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
34141 }
34142 arg2 = reinterpret_cast< wxBrush * >(argp2);
34143 {
34144 PyThreadState* __tstate = wxPyBeginAllowThreads();
34145 (arg1)->SetBrush((wxBrush const &)*arg2);
34146 wxPyEndAllowThreads(__tstate);
34147 if (PyErr_Occurred()) SWIG_fail;
34148 }
34149 resultobj = SWIG_Py_Void();
34150 return resultobj;
34151 fail:
34152 return NULL;
34153 }
34154
34155
34156 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34157 PyObject *resultobj = 0;
34158 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34159 wxBrush *arg2 = 0 ;
34160 void *argp1 = 0 ;
34161 int res1 = 0 ;
34162 void *argp2 = 0 ;
34163 int res2 = 0 ;
34164 PyObject * obj0 = 0 ;
34165 PyObject * obj1 = 0 ;
34166 char * kwnames[] = {
34167 (char *) "self",(char *) "brush", NULL
34168 };
34169
34170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
34171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34172 if (!SWIG_IsOK(res1)) {
34173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34174 }
34175 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34176 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
34177 if (!SWIG_IsOK(res2)) {
34178 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
34179 }
34180 if (!argp2) {
34181 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
34182 }
34183 arg2 = reinterpret_cast< wxBrush * >(argp2);
34184 {
34185 PyThreadState* __tstate = wxPyBeginAllowThreads();
34186 (arg1)->SetBackground((wxBrush const &)*arg2);
34187 wxPyEndAllowThreads(__tstate);
34188 if (PyErr_Occurred()) SWIG_fail;
34189 }
34190 resultobj = SWIG_Py_Void();
34191 return resultobj;
34192 fail:
34193 return NULL;
34194 }
34195
34196
34197 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34198 PyObject *resultobj = 0;
34199 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34200 int arg2 ;
34201 void *argp1 = 0 ;
34202 int res1 = 0 ;
34203 int val2 ;
34204 int ecode2 = 0 ;
34205 PyObject * obj0 = 0 ;
34206 PyObject * obj1 = 0 ;
34207 char * kwnames[] = {
34208 (char *) "self",(char *) "mode", NULL
34209 };
34210
34211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
34212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34213 if (!SWIG_IsOK(res1)) {
34214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34215 }
34216 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34217 ecode2 = SWIG_AsVal_int(obj1, &val2);
34218 if (!SWIG_IsOK(ecode2)) {
34219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
34220 }
34221 arg2 = static_cast< int >(val2);
34222 {
34223 PyThreadState* __tstate = wxPyBeginAllowThreads();
34224 (arg1)->SetBackgroundMode(arg2);
34225 wxPyEndAllowThreads(__tstate);
34226 if (PyErr_Occurred()) SWIG_fail;
34227 }
34228 resultobj = SWIG_Py_Void();
34229 return resultobj;
34230 fail:
34231 return NULL;
34232 }
34233
34234
34235 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34236 PyObject *resultobj = 0;
34237 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34238 wxPalette *arg2 = 0 ;
34239 void *argp1 = 0 ;
34240 int res1 = 0 ;
34241 void *argp2 = 0 ;
34242 int res2 = 0 ;
34243 PyObject * obj0 = 0 ;
34244 PyObject * obj1 = 0 ;
34245 char * kwnames[] = {
34246 (char *) "self",(char *) "palette", NULL
34247 };
34248
34249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
34250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34251 if (!SWIG_IsOK(res1)) {
34252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34253 }
34254 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34255 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
34256 if (!SWIG_IsOK(res2)) {
34257 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34258 }
34259 if (!argp2) {
34260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34261 }
34262 arg2 = reinterpret_cast< wxPalette * >(argp2);
34263 {
34264 PyThreadState* __tstate = wxPyBeginAllowThreads();
34265 (arg1)->SetPalette((wxPalette const &)*arg2);
34266 wxPyEndAllowThreads(__tstate);
34267 if (PyErr_Occurred()) SWIG_fail;
34268 }
34269 resultobj = SWIG_Py_Void();
34270 return resultobj;
34271 fail:
34272 return NULL;
34273 }
34274
34275
34276 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34277 PyObject *resultobj = 0;
34278 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34279 wxColour *arg2 = 0 ;
34280 void *argp1 = 0 ;
34281 int res1 = 0 ;
34282 wxColour temp2 ;
34283 PyObject * obj0 = 0 ;
34284 PyObject * obj1 = 0 ;
34285 char * kwnames[] = {
34286 (char *) "self",(char *) "colour", NULL
34287 };
34288
34289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
34290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34291 if (!SWIG_IsOK(res1)) {
34292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34293 }
34294 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34295 {
34296 arg2 = &temp2;
34297 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34298 }
34299 {
34300 PyThreadState* __tstate = wxPyBeginAllowThreads();
34301 (arg1)->SetTextForeground((wxColour const &)*arg2);
34302 wxPyEndAllowThreads(__tstate);
34303 if (PyErr_Occurred()) SWIG_fail;
34304 }
34305 resultobj = SWIG_Py_Void();
34306 return resultobj;
34307 fail:
34308 return NULL;
34309 }
34310
34311
34312 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34313 PyObject *resultobj = 0;
34314 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34315 wxColour *arg2 = 0 ;
34316 void *argp1 = 0 ;
34317 int res1 = 0 ;
34318 wxColour temp2 ;
34319 PyObject * obj0 = 0 ;
34320 PyObject * obj1 = 0 ;
34321 char * kwnames[] = {
34322 (char *) "self",(char *) "colour", NULL
34323 };
34324
34325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",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_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34329 }
34330 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34331 {
34332 arg2 = &temp2;
34333 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34334 }
34335 {
34336 PyThreadState* __tstate = wxPyBeginAllowThreads();
34337 (arg1)->SetTextBackground((wxColour const &)*arg2);
34338 wxPyEndAllowThreads(__tstate);
34339 if (PyErr_Occurred()) SWIG_fail;
34340 }
34341 resultobj = SWIG_Py_Void();
34342 return resultobj;
34343 fail:
34344 return NULL;
34345 }
34346
34347
34348 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34349 PyObject *resultobj = 0;
34350 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34351 int arg2 ;
34352 void *argp1 = 0 ;
34353 int res1 = 0 ;
34354 int val2 ;
34355 int ecode2 = 0 ;
34356 PyObject * obj0 = 0 ;
34357 PyObject * obj1 = 0 ;
34358 char * kwnames[] = {
34359 (char *) "self",(char *) "function", NULL
34360 };
34361
34362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
34363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34364 if (!SWIG_IsOK(res1)) {
34365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34366 }
34367 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34368 ecode2 = SWIG_AsVal_int(obj1, &val2);
34369 if (!SWIG_IsOK(ecode2)) {
34370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
34371 }
34372 arg2 = static_cast< int >(val2);
34373 {
34374 PyThreadState* __tstate = wxPyBeginAllowThreads();
34375 (arg1)->SetLogicalFunction(arg2);
34376 wxPyEndAllowThreads(__tstate);
34377 if (PyErr_Occurred()) SWIG_fail;
34378 }
34379 resultobj = SWIG_Py_Void();
34380 return resultobj;
34381 fail:
34382 return NULL;
34383 }
34384
34385
34386 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34387 PyObject *obj;
34388 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34389 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
34390 return SWIG_Py_Void();
34391 }
34392
34393 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34394 return SWIG_Python_InitShadowInstance(args);
34395 }
34396
34397 static PyMethodDef SwigMethods[] = {
34398 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
34399 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
34400 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
34401 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
34402 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
34403 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
34404 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
34405 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34406 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
34407 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
34408 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
34409 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
34410 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
34411 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
34412 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34413 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34414 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34415 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
34416 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
34417 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34418 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34419 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
34420 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
34421 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
34422 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
34423 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
34424 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
34425 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
34426 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34427 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
34428 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
34429 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
34430 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
34431 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
34432 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
34433 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
34434 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
34435 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
34436 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
34437 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
34438 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
34439 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
34440 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34441 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
34442 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34443 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34444 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34445 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
34446 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34447 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34448 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34449 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
34450 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
34451 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
34452 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34453 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
34454 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34455 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34456 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
34457 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
34458 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
34459 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
34460 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
34461 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
34462 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
34463 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
34464 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
34465 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
34466 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34467 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
34468 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34469 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34470 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
34471 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
34472 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
34473 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
34474 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
34475 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
34476 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
34477 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
34478 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
34479 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
34480 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
34481 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
34482 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34483 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
34484 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
34485 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
34486 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34487 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34488 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34489 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34490 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
34491 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34492 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34493 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
34494 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
34495 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
34496 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
34497 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
34498 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
34499 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
34500 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
34501 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
34502 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
34503 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
34504 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
34505 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
34506 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
34507 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
34508 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
34509 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
34510 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
34511 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
34512 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
34513 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34514 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
34515 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
34516 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34517 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34518 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34519 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34520 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34521 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
34522 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
34523 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
34524 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
34525 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
34526 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
34527 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
34528 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
34529 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
34530 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
34531 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
34532 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
34533 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34534 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
34535 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
34536 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34537 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34538 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34539 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34540 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34541 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
34542 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
34543 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
34544 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
34545 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
34546 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
34547 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
34548 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
34549 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
34550 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
34551 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34552 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34553 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
34554 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
34555 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
34556 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
34557 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
34558 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34559 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34560 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34561 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34562 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
34563 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
34564 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34565 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
34566 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
34567 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
34568 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
34569 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
34570 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
34571 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
34572 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
34573 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
34574 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34575 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34576 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
34577 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34578 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34579 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34580 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
34581 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
34582 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
34583 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
34584 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
34585 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
34586 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
34587 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
34588 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
34589 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
34590 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34591 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34592 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
34593 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
34594 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
34595 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34596 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
34597 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34598 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
34599 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
34600 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
34601 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
34602 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
34603 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34604 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
34605 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
34606 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
34607 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
34608 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34609 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
34610 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
34611 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34612 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
34613 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
34614 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34615 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
34616 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34617 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34618 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
34619 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
34620 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
34621 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
34622 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
34623 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
34624 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
34625 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
34626 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
34627 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
34628 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
34629 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
34630 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
34631 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
34632 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
34633 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
34634 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
34635 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
34636 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
34637 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
34638 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
34639 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
34640 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
34641 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
34642 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
34643 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
34644 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
34645 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
34646 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34647 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34648 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
34649 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
34650 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
34651 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
34652 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34653 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34654 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
34655 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
34656 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
34657 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
34658 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
34659 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
34660 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
34661 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
34662 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
34663 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
34664 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
34665 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
34666 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34667 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
34668 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
34669 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
34670 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34671 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34672 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
34673 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
34674 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
34675 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34676 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34677 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
34678 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34679 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
34680 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
34681 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34682 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
34683 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
34684 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34685 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
34686 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
34687 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
34688 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
34689 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
34690 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
34691 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
34692 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34693 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
34694 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
34695 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34696 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34697 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
34698 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34699 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34700 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
34701 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
34702 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
34703 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
34704 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
34705 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
34706 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
34707 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
34708 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
34709 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
34710 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
34711 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
34712 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
34713 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34714 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34715 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
34716 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34717 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
34718 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
34719 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
34720 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34721 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34722 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
34723 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
34724 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
34725 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
34726 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
34727 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
34728 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
34729 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
34730 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34731 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
34732 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
34733 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
34734 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
34735 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34736 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
34737 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
34738 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
34739 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
34740 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
34741 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
34742 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
34743 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
34744 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
34745 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
34746 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
34747 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
34748 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
34749 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
34750 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
34751 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
34752 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
34753 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
34754 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
34755 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
34756 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
34757 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
34758 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
34759 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
34760 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
34761 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
34762 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
34763 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
34764 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
34765 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
34766 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34767 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
34768 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34769 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
34770 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
34771 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
34772 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
34773 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
34774 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
34775 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
34776 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34777 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
34778 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
34779 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
34780 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
34781 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
34782 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
34783 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
34784 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
34785 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
34786 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
34787 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
34788 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
34789 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
34790 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
34791 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
34792 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
34793 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
34794 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34795 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
34796 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
34797 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
34798 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34799 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
34800 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34801 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
34802 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34803 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
34804 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34805 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
34806 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
34807 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
34808 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34809 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34810 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34811 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34812 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34813 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34814 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34815 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34816 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34817 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
34818 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34819 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
34820 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
34821 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34822 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34823 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34824 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34825 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34826 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
34827 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34828 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
34829 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34830 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
34831 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34832 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34833 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34834 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34835 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
34836 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
34837 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
34838 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34839 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34840 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
34841 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
34842 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
34843 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
34844 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
34845 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
34846 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
34847 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
34848 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34849 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34850 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
34851 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
34852 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
34853 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
34854 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
34855 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
34856 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
34857 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34858 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34859 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34860 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
34861 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
34862 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
34863 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
34864 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
34865 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
34866 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
34867 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
34868 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
34869 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
34870 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
34871 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
34872 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
34873 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
34874 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
34875 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
34876 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
34877 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
34878 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
34879 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
34880 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
34881 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
34882 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
34883 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
34884 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
34885 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
34886 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34887 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
34888 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
34889 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
34890 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
34891 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
34892 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
34893 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
34894 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
34895 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
34896 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34897 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
34898 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
34899 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
34900 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34901 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
34902 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
34903 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
34904 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
34905 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
34906 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34907 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
34908 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
34909 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
34910 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
34911 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
34912 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
34913 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
34914 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
34915 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
34916 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
34917 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
34918 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
34919 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
34920 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
34921 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
34922 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
34923 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
34924 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
34925 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
34926 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
34927 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
34928 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
34929 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
34930 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
34931 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
34932 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
34933 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
34934 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
34935 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
34936 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
34937 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
34938 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
34939 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
34940 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
34941 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
34942 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
34943 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
34944 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
34945 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
34946 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
34947 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
34948 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
34949 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
34950 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
34951 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
34952 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
34953 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
34954 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
34955 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
34956 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
34957 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
34958 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
34959 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
34960 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
34961 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
34962 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
34963 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
34964 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
34965 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
34966 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
34967 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
34968 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
34969 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
34970 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
34971 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
34972 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
34973 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
34974 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
34975 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
34976 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
34977 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
34978 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
34979 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
34980 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
34981 { (char *)"GraphicsPath_MoveToPoint", (PyCFunction) _wrap_GraphicsPath_MoveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34982 { (char *)"GraphicsPath_AddLineToPoint", (PyCFunction) _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34983 { (char *)"GraphicsPath_AddCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34984 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
34985 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
34986 { (char *)"GraphicsPath_AddArc", (PyCFunction) _wrap_GraphicsPath_AddArc, METH_VARARGS | METH_KEYWORDS, NULL},
34987 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34988 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34989 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
34990 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34991 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
34992 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
34993 { (char *)"GraphicsContext_Create", (PyCFunction) _wrap_GraphicsContext_Create, METH_VARARGS | METH_KEYWORDS, NULL},
34994 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
34995 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
34996 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
34997 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
34998 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
34999 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
35000 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
35001 { (char *)"GraphicsContext_SetPen", (PyCFunction) _wrap_GraphicsContext_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35002 { (char *)"GraphicsContext_SetBrush", (PyCFunction) _wrap_GraphicsContext_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35003 { (char *)"GraphicsContext_SetLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35004 { (char *)"GraphicsContext_SetRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35005 { (char *)"GraphicsContext_SetFont", (PyCFunction) _wrap_GraphicsContext_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35006 { (char *)"GraphicsContext_SetTextColor", (PyCFunction) _wrap_GraphicsContext_SetTextColor, METH_VARARGS | METH_KEYWORDS, NULL},
35007 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
35008 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
35009 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
35010 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35011 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35012 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35013 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
35014 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35015 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35016 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
35017 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
35018 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
35019 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35020 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35021 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35022 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35023 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
35024 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
35025 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
35026 { (char *)"GCDC_GetGraphicContext", (PyCFunction)_wrap_GCDC_GetGraphicContext, METH_O, NULL},
35027 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
35028 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
35029 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
35030 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
35031 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
35032 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
35033 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
35034 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
35035 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
35036 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
35037 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
35038 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
35039 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
35040 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
35041 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
35042 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
35043 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35044 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35045 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35046 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
35047 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
35048 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
35049 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
35050 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
35051 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35052 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
35053 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
35054 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
35055 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
35056 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
35057 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
35058 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35059 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
35060 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35061 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35062 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35063 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
35064 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
35065 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
35066 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
35067 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
35068 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
35069 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
35070 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
35071 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
35072 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
35073 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35074 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35075 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35076 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
35077 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
35078 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
35079 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
35080 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
35081 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
35082 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
35083 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
35084 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
35085 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
35086 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
35087 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
35088 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
35089 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
35090 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
35091 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
35092 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
35093 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
35094 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
35095 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
35096 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
35097 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
35098 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
35099 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
35100 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35101 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
35102 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35103 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35104 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35105 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
35106 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35107 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
35108 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
35109 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
35110 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
35111 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
35112 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
35113 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
35114 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
35115 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
35116 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
35117 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
35118 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
35119 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
35120 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
35121 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
35122 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
35123 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
35124 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
35125 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
35126 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
35127 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
35128 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
35129 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
35130 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
35131 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
35132 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
35133 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
35134 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
35135 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
35136 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
35137 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
35138 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
35139 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
35140 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
35141 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
35142 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
35143 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35144 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
35145 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
35146 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
35147 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
35148 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
35149 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
35150 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
35151 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
35152 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
35153 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
35154 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
35155 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
35156 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35157 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
35158 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
35159 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
35160 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
35161 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
35162 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
35163 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
35164 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
35165 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
35166 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
35167 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
35168 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
35169 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
35170 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
35171 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
35172 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
35173 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
35174 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
35175 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
35176 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
35177 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
35178 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
35179 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
35180 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35181 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
35182 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35183 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
35184 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35185 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
35186 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35187 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
35188 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
35189 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
35190 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35191 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35192 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35193 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35194 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35195 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35196 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35197 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35198 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35199 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35200 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35201 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35202 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
35203 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35204 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35205 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35206 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35207 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35208 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35209 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35210 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35211 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35212 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35213 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
35214 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35215 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35216 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
35217 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
35218 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35219 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35220 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35221 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35222 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
35223 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35224 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
35225 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35226 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
35227 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
35228 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
35229 { NULL, NULL, 0, NULL }
35230 };
35231
35232
35233 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
35234
35235 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
35236 return (void *)((wxClientDC *) ((wxPaintDC *) x));
35237 }
35238 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
35239 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
35240 }
35241 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
35242 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
35243 }
35244 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
35245 return (void *)((wxWindowDC *) ((wxClientDC *) x));
35246 }
35247 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
35248 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
35249 }
35250 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
35251 return (void *)((wxLocale *) ((wxPyLocale *) x));
35252 }
35253 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
35254 return (void *)((wxGDIObject *) ((wxIcon *) x));
35255 }
35256 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
35257 return (void *)((wxGDIObject *) ((wxPalette *) x));
35258 }
35259 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
35260 return (void *)((wxGDIObject *) ((wxPen *) x));
35261 }
35262 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
35263 return (void *)((wxGDIObject *) ((wxFont *) x));
35264 }
35265 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
35266 return (void *)((wxGDIObject *) ((wxCursor *) x));
35267 }
35268 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
35269 return (void *)((wxGDIObject *) ((wxBitmap *) x));
35270 }
35271 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
35272 return (void *)((wxGDIObject *) ((wxRegion *) x));
35273 }
35274 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
35275 return (void *)((wxGDIObject *) ((wxBrush *) x));
35276 }
35277 static void *_p_wxGCDCTo_p_wxDC(void *x) {
35278 return (void *)((wxDC *) ((wxGCDC *) x));
35279 }
35280 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
35281 return (void *)((wxDC *) ((wxScreenDC *) x));
35282 }
35283 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
35284 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
35285 }
35286 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
35287 return (void *)((wxDC *) ((wxMirrorDC *) x));
35288 }
35289 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
35290 return (void *)((wxDC *) ((wxMemoryDC *) x));
35291 }
35292 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
35293 return (void *)((wxDC *) ((wxWindowDC *) x));
35294 }
35295 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
35296 return (void *)((wxDC *) ((wxMetaFileDC *) x));
35297 }
35298 static void *_p_wxClientDCTo_p_wxDC(void *x) {
35299 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
35300 }
35301 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
35302 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
35303 }
35304 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
35305 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
35306 }
35307 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
35308 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
35309 }
35310 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
35311 return (void *)((wxDC *) ((wxPostScriptDC *) x));
35312 }
35313 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
35314 return (void *)((wxDC *) ((wxPrinterDC *) x));
35315 }
35316 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
35317 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
35318 }
35319 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
35320 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
35321 }
35322 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
35323 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
35324 }
35325 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
35326 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
35327 }
35328 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
35329 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
35330 }
35331 static void *_p_wxPenTo_p_wxObject(void *x) {
35332 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
35333 }
35334 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
35335 return (void *)((wxObject *) ((wxRegionIterator *) x));
35336 }
35337 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
35338 return (void *)((wxObject *) ((wxSizerItem *) x));
35339 }
35340 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
35341 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
35342 }
35343 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
35344 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
35345 }
35346 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
35347 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
35348 }
35349 static void *_p_wxIconTo_p_wxObject(void *x) {
35350 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
35351 }
35352 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
35353 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
35354 }
35355 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
35356 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
35357 }
35358 static void *_p_wxSizerTo_p_wxObject(void *x) {
35359 return (void *)((wxObject *) ((wxSizer *) x));
35360 }
35361 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
35362 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
35363 }
35364 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
35365 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
35366 }
35367 static void *_p_wxEventTo_p_wxObject(void *x) {
35368 return (void *)((wxObject *) ((wxEvent *) x));
35369 }
35370 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
35371 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
35372 }
35373 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
35374 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
35375 }
35376 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
35377 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
35378 }
35379 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
35380 return (void *)((wxObject *) ((wxPseudoDC *) x));
35381 }
35382 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
35383 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
35384 }
35385 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
35386 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
35387 }
35388 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
35389 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
35390 }
35391 static void *_p_wxDCTo_p_wxObject(void *x) {
35392 return (void *)((wxObject *) ((wxDC *) x));
35393 }
35394 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
35395 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
35396 }
35397 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
35398 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
35399 }
35400 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
35401 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
35402 }
35403 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
35404 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
35405 }
35406 static void *_p_wxControlTo_p_wxObject(void *x) {
35407 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
35408 }
35409 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
35410 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
35411 }
35412 static void *_p_wxClientDCTo_p_wxObject(void *x) {
35413 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
35414 }
35415 static void *_p_wxFSFileTo_p_wxObject(void *x) {
35416 return (void *)((wxObject *) ((wxFSFile *) x));
35417 }
35418 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
35419 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
35420 }
35421 static void *_p_wxRegionTo_p_wxObject(void *x) {
35422 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
35423 }
35424 static void *_p_wxPySizerTo_p_wxObject(void *x) {
35425 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
35426 }
35427 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
35428 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
35429 }
35430 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
35431 return (void *)((wxObject *) ((wxGDIObject *) x));
35432 }
35433 static void *_p_wxEffectsTo_p_wxObject(void *x) {
35434 return (void *)((wxObject *) ((wxEffects *) x));
35435 }
35436 static void *_p_wxPyEventTo_p_wxObject(void *x) {
35437 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
35438 }
35439 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
35440 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
35441 }
35442 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
35443 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
35444 }
35445 static void *_p_wxShowEventTo_p_wxObject(void *x) {
35446 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
35447 }
35448 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
35449 return (void *)((wxObject *) ((wxMenuItem *) x));
35450 }
35451 static void *_p_wxDateEventTo_p_wxObject(void *x) {
35452 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
35453 }
35454 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
35455 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
35456 }
35457 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
35458 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
35459 }
35460 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
35461 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
35462 }
35463 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
35464 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
35465 }
35466 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
35467 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
35468 }
35469 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
35470 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
35471 }
35472 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
35473 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
35474 }
35475 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
35476 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
35477 }
35478 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
35479 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
35480 }
35481 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
35482 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
35483 }
35484 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
35485 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
35486 }
35487 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
35488 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
35489 }
35490 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
35491 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
35492 }
35493 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
35494 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
35495 }
35496 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
35497 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
35498 }
35499 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
35500 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
35501 }
35502 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
35503 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
35504 }
35505 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
35506 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
35507 }
35508 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
35509 return (void *)((wxObject *) ((wxImageHandler *) x));
35510 }
35511 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
35512 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
35513 }
35514 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
35515 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
35516 }
35517 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
35518 return (void *)((wxObject *) ((wxEvtHandler *) x));
35519 }
35520 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
35521 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
35522 }
35523 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
35524 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
35525 }
35526 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
35527 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
35528 }
35529 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
35530 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
35531 }
35532 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
35533 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
35534 }
35535 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
35536 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
35537 }
35538 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
35539 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
35540 }
35541 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
35542 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
35543 }
35544 static void *_p_wxImageTo_p_wxObject(void *x) {
35545 return (void *)((wxObject *) ((wxImage *) x));
35546 }
35547 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
35548 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
35549 }
35550 static void *_p_wxPaletteTo_p_wxObject(void *x) {
35551 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
35552 }
35553 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
35554 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
35555 }
35556 static void *_p_wxImageListTo_p_wxObject(void *x) {
35557 return (void *)((wxObject *) ((wxImageList *) x));
35558 }
35559 static void *_p_wxGCDCTo_p_wxObject(void *x) {
35560 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
35561 }
35562 static void *_p_wxCursorTo_p_wxObject(void *x) {
35563 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
35564 }
35565 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
35566 return (void *)((wxObject *) ((wxEncodingConverter *) x));
35567 }
35568 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
35569 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
35570 }
35571 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
35572 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
35573 }
35574 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
35575 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
35576 }
35577 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
35578 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
35579 }
35580 static void *_p_wxWindowTo_p_wxObject(void *x) {
35581 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
35582 }
35583 static void *_p_wxMenuTo_p_wxObject(void *x) {
35584 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
35585 }
35586 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
35587 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
35588 }
35589 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
35590 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
35591 }
35592 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
35593 return (void *)((wxObject *) ((wxFileSystem *) x));
35594 }
35595 static void *_p_wxBitmapTo_p_wxObject(void *x) {
35596 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
35597 }
35598 static void *_p_wxMaskTo_p_wxObject(void *x) {
35599 return (void *)((wxObject *) ((wxMask *) x));
35600 }
35601 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
35602 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
35603 }
35604 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
35605 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
35606 }
35607 static void *_p_wxPyAppTo_p_wxObject(void *x) {
35608 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
35609 }
35610 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
35611 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
35612 }
35613 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
35614 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
35615 }
35616 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
35617 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
35618 }
35619 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
35620 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
35621 }
35622 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
35623 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
35624 }
35625 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
35626 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
35627 }
35628 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
35629 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
35630 }
35631 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
35632 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
35633 }
35634 static void *_p_wxFontTo_p_wxObject(void *x) {
35635 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
35636 }
35637 static void *_p_wxBrushTo_p_wxObject(void *x) {
35638 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
35639 }
35640 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
35641 return (void *)((wxObject *) ((wxMetaFile *) x));
35642 }
35643 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
35644 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
35645 }
35646 static void *_p_wxColourTo_p_wxObject(void *x) {
35647 return (void *)((wxObject *) ((wxColour *) x));
35648 }
35649 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
35650 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
35651 }
35652 static void *_p_wxValidatorTo_p_wxObject(void *x) {
35653 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
35654 }
35655 static void *_p_wxControlTo_p_wxWindow(void *x) {
35656 return (void *)((wxWindow *) ((wxControl *) x));
35657 }
35658 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
35659 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
35660 }
35661 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
35662 return (void *)((wxWindow *) ((wxMenuBar *) x));
35663 }
35664 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
35665 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
35666 }
35667 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
35668 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
35669 }
35670 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
35671 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
35672 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
35673 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};
35674 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
35675 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
35676 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
35677 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
35678 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
35679 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
35680 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
35681 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
35682 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
35683 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
35684 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
35685 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
35686 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
35687 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
35688 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
35689 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
35690 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
35691 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
35692 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
35693 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
35694 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
35695 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
35696 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
35697 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
35698 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
35699 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
35700 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
35701 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
35702 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
35703 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
35704 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
35705 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
35706 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
35707 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
35708 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
35709 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
35710 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
35711 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
35712 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
35713 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
35714 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
35715 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
35716 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
35717 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
35718 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
35719 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
35720 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
35721 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
35722 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
35723 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
35724 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
35725 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
35726 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
35727 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
35728 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
35729 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
35730 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
35731 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
35732 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
35733 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
35734 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
35735 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
35736 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
35737 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
35738 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
35739 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
35740 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
35741 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
35742 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
35743 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
35744 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
35745 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
35746 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
35747 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
35748 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
35749 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
35750 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
35751 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
35752 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
35753 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
35754 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
35755 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
35756 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
35757 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
35758 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
35759 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
35760 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
35761 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
35762 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
35763 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
35764 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
35765 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
35766 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
35767 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
35768 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
35769 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
35770 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
35771 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
35772 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
35773 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
35774 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
35775 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
35776 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
35777 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
35778 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
35779 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
35780 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
35781 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
35782 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
35783 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
35784 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
35785 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
35786 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
35787 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
35788 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
35789 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
35790 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
35791 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
35792 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
35793 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
35794 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
35795 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
35796 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
35797 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
35798 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
35799 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
35800 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
35801 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
35802 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
35803 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
35804 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
35805 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
35806 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
35807 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
35808 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
35809 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
35810 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
35811 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
35812 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
35813 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
35814 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
35815 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
35816 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
35817 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
35818 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
35819 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
35820 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
35821 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
35822 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
35823 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
35824 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
35825 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
35826 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
35827
35828 static swig_type_info *swig_type_initial[] = {
35829 &_swigt__p_buffer,
35830 &_swigt__p_char,
35831 &_swigt__p_double,
35832 &_swigt__p_form_ops_t,
35833 &_swigt__p_int,
35834 &_swigt__p_unsigned_char,
35835 &_swigt__p_unsigned_int,
35836 &_swigt__p_unsigned_long,
35837 &_swigt__p_wxANIHandler,
35838 &_swigt__p_wxAcceleratorTable,
35839 &_swigt__p_wxActivateEvent,
35840 &_swigt__p_wxAlphaPixelData,
35841 &_swigt__p_wxAlphaPixelData_Accessor,
35842 &_swigt__p_wxAutoBufferedPaintDC,
35843 &_swigt__p_wxBMPHandler,
35844 &_swigt__p_wxBitmap,
35845 &_swigt__p_wxBoxSizer,
35846 &_swigt__p_wxBrush,
35847 &_swigt__p_wxBrushList,
35848 &_swigt__p_wxBufferedDC,
35849 &_swigt__p_wxBufferedPaintDC,
35850 &_swigt__p_wxCURHandler,
35851 &_swigt__p_wxChar,
35852 &_swigt__p_wxChildFocusEvent,
35853 &_swigt__p_wxClientDC,
35854 &_swigt__p_wxClipboardTextEvent,
35855 &_swigt__p_wxCloseEvent,
35856 &_swigt__p_wxColor,
35857 &_swigt__p_wxColour,
35858 &_swigt__p_wxColourDatabase,
35859 &_swigt__p_wxCommandEvent,
35860 &_swigt__p_wxContextMenuEvent,
35861 &_swigt__p_wxControl,
35862 &_swigt__p_wxControlWithItems,
35863 &_swigt__p_wxCursor,
35864 &_swigt__p_wxDC,
35865 &_swigt__p_wxDCOverlay,
35866 &_swigt__p_wxDash,
35867 &_swigt__p_wxDateEvent,
35868 &_swigt__p_wxDisplayChangedEvent,
35869 &_swigt__p_wxDropFilesEvent,
35870 &_swigt__p_wxDuplexMode,
35871 &_swigt__p_wxEffects,
35872 &_swigt__p_wxEncodingConverter,
35873 &_swigt__p_wxEraseEvent,
35874 &_swigt__p_wxEvent,
35875 &_swigt__p_wxEvtHandler,
35876 &_swigt__p_wxFSFile,
35877 &_swigt__p_wxFileSystem,
35878 &_swigt__p_wxFlexGridSizer,
35879 &_swigt__p_wxFocusEvent,
35880 &_swigt__p_wxFont,
35881 &_swigt__p_wxFontList,
35882 &_swigt__p_wxFontMapper,
35883 &_swigt__p_wxGBSizerItem,
35884 &_swigt__p_wxGCDC,
35885 &_swigt__p_wxGDIObjListBase,
35886 &_swigt__p_wxGDIObject,
35887 &_swigt__p_wxGIFHandler,
35888 &_swigt__p_wxGraphicsContext,
35889 &_swigt__p_wxGraphicsPath,
35890 &_swigt__p_wxGridBagSizer,
35891 &_swigt__p_wxGridSizer,
35892 &_swigt__p_wxHeaderButtonParams,
35893 &_swigt__p_wxICOHandler,
35894 &_swigt__p_wxIcon,
35895 &_swigt__p_wxIconBundle,
35896 &_swigt__p_wxIconLocation,
35897 &_swigt__p_wxIconizeEvent,
35898 &_swigt__p_wxIdleEvent,
35899 &_swigt__p_wxImage,
35900 &_swigt__p_wxImageHandler,
35901 &_swigt__p_wxImageList,
35902 &_swigt__p_wxIndividualLayoutConstraint,
35903 &_swigt__p_wxInitDialogEvent,
35904 &_swigt__p_wxJPEGHandler,
35905 &_swigt__p_wxKeyEvent,
35906 &_swigt__p_wxLanguageInfo,
35907 &_swigt__p_wxLayoutConstraints,
35908 &_swigt__p_wxLocale,
35909 &_swigt__p_wxMask,
35910 &_swigt__p_wxMaximizeEvent,
35911 &_swigt__p_wxMemoryDC,
35912 &_swigt__p_wxMenu,
35913 &_swigt__p_wxMenuBar,
35914 &_swigt__p_wxMenuEvent,
35915 &_swigt__p_wxMenuItem,
35916 &_swigt__p_wxMetaFile,
35917 &_swigt__p_wxMetaFileDC,
35918 &_swigt__p_wxMirrorDC,
35919 &_swigt__p_wxMouseCaptureChangedEvent,
35920 &_swigt__p_wxMouseCaptureLostEvent,
35921 &_swigt__p_wxMouseEvent,
35922 &_swigt__p_wxMoveEvent,
35923 &_swigt__p_wxNativeEncodingInfo,
35924 &_swigt__p_wxNativeFontInfo,
35925 &_swigt__p_wxNativePixelData,
35926 &_swigt__p_wxNativePixelData_Accessor,
35927 &_swigt__p_wxNavigationKeyEvent,
35928 &_swigt__p_wxNcPaintEvent,
35929 &_swigt__p_wxNotifyEvent,
35930 &_swigt__p_wxObject,
35931 &_swigt__p_wxOverlay,
35932 &_swigt__p_wxPCXHandler,
35933 &_swigt__p_wxPNGHandler,
35934 &_swigt__p_wxPNMHandler,
35935 &_swigt__p_wxPaintDC,
35936 &_swigt__p_wxPaintEvent,
35937 &_swigt__p_wxPalette,
35938 &_swigt__p_wxPaletteChangedEvent,
35939 &_swigt__p_wxPaperSize,
35940 &_swigt__p_wxPen,
35941 &_swigt__p_wxPenList,
35942 &_swigt__p_wxPixelDataBase,
35943 &_swigt__p_wxPoint,
35944 &_swigt__p_wxPoint2D,
35945 &_swigt__p_wxPostScriptDC,
35946 &_swigt__p_wxPrintData,
35947 &_swigt__p_wxPrinterDC,
35948 &_swigt__p_wxPseudoDC,
35949 &_swigt__p_wxPyApp,
35950 &_swigt__p_wxPyCommandEvent,
35951 &_swigt__p_wxPyEvent,
35952 &_swigt__p_wxPyFontEnumerator,
35953 &_swigt__p_wxPyImageHandler,
35954 &_swigt__p_wxPyLocale,
35955 &_swigt__p_wxPySizer,
35956 &_swigt__p_wxPyValidator,
35957 &_swigt__p_wxQueryNewPaletteEvent,
35958 &_swigt__p_wxRect,
35959 &_swigt__p_wxRegion,
35960 &_swigt__p_wxRegionIterator,
35961 &_swigt__p_wxRendererNative,
35962 &_swigt__p_wxRendererVersion,
35963 &_swigt__p_wxScreenDC,
35964 &_swigt__p_wxScrollEvent,
35965 &_swigt__p_wxScrollWinEvent,
35966 &_swigt__p_wxSetCursorEvent,
35967 &_swigt__p_wxShowEvent,
35968 &_swigt__p_wxSize,
35969 &_swigt__p_wxSizeEvent,
35970 &_swigt__p_wxSizer,
35971 &_swigt__p_wxSizerItem,
35972 &_swigt__p_wxSplitterRenderParams,
35973 &_swigt__p_wxStaticBoxSizer,
35974 &_swigt__p_wxStdDialogButtonSizer,
35975 &_swigt__p_wxStockGDI,
35976 &_swigt__p_wxString,
35977 &_swigt__p_wxSysColourChangedEvent,
35978 &_swigt__p_wxTIFFHandler,
35979 &_swigt__p_wxUpdateUIEvent,
35980 &_swigt__p_wxValidator,
35981 &_swigt__p_wxWindow,
35982 &_swigt__p_wxWindowCreateEvent,
35983 &_swigt__p_wxWindowDC,
35984 &_swigt__p_wxWindowDestroyEvent,
35985 &_swigt__p_wxXPMHandler,
35986 };
35987
35988 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
35989 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
35990 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
35991 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
35992 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
35993 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
35994 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
35995 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
35996 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
35997 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
35998 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
35999 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
36000 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
36001 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
36002 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}};
36003 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36004 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
36005 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}};
36006 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
36007 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
36008 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
36009 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
36010 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}};
36011 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
36012 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
36013 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
36014 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
36015 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
36016 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
36017 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
36018 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
36019 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
36020 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}};
36021 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}};
36022 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
36023 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
36024 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
36025 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
36026 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
36027 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
36028 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
36029 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
36030 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
36031 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}};
36032 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
36033 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}};
36034 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
36035 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
36036 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
36037 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
36038 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
36039 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
36040 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
36041 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
36042 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
36043 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
36044 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
36045 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
36046 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
36047 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
36048 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
36049 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
36050 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
36051 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
36052 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
36053 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
36054 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
36055 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
36056 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
36057 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
36058 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
36059 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36060 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36061 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36062 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36063 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
36064 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
36065 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
36066 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
36067 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
36068 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
36069 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
36070 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
36071 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
36072 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
36073 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
36074 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
36075 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36076 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36077 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36078 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
36079 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
36080 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
36081 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
36082 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
36083 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
36084 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
36085 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
36086 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
36087 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
36088 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
36089 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
36090 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
36091 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
36092 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
36093 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
36094 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
36095 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
36096 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
36097 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
36098 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
36099 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
36100 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
36101 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
36102 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
36103 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
36104 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
36105 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
36106 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
36107 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
36108 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
36109 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
36110 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
36111 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
36112 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
36113 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
36114 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
36115 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
36116 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
36117 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}};
36118 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
36119 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36120 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
36121 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
36122 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
36123 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
36124 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}};
36125 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
36126 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
36127 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
36128 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
36129 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
36130 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
36131 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
36132 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
36133 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
36134 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
36135 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
36136 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
36137 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
36138 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
36139 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
36140 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
36141 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
36142 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
36143 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}};
36144 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}};
36145
36146 static swig_cast_info *swig_cast_initial[] = {
36147 _swigc__p_buffer,
36148 _swigc__p_char,
36149 _swigc__p_double,
36150 _swigc__p_form_ops_t,
36151 _swigc__p_int,
36152 _swigc__p_unsigned_char,
36153 _swigc__p_unsigned_int,
36154 _swigc__p_unsigned_long,
36155 _swigc__p_wxANIHandler,
36156 _swigc__p_wxAcceleratorTable,
36157 _swigc__p_wxActivateEvent,
36158 _swigc__p_wxAlphaPixelData,
36159 _swigc__p_wxAlphaPixelData_Accessor,
36160 _swigc__p_wxAutoBufferedPaintDC,
36161 _swigc__p_wxBMPHandler,
36162 _swigc__p_wxBitmap,
36163 _swigc__p_wxBoxSizer,
36164 _swigc__p_wxBrush,
36165 _swigc__p_wxBrushList,
36166 _swigc__p_wxBufferedDC,
36167 _swigc__p_wxBufferedPaintDC,
36168 _swigc__p_wxCURHandler,
36169 _swigc__p_wxChar,
36170 _swigc__p_wxChildFocusEvent,
36171 _swigc__p_wxClientDC,
36172 _swigc__p_wxClipboardTextEvent,
36173 _swigc__p_wxCloseEvent,
36174 _swigc__p_wxColor,
36175 _swigc__p_wxColour,
36176 _swigc__p_wxColourDatabase,
36177 _swigc__p_wxCommandEvent,
36178 _swigc__p_wxContextMenuEvent,
36179 _swigc__p_wxControl,
36180 _swigc__p_wxControlWithItems,
36181 _swigc__p_wxCursor,
36182 _swigc__p_wxDC,
36183 _swigc__p_wxDCOverlay,
36184 _swigc__p_wxDash,
36185 _swigc__p_wxDateEvent,
36186 _swigc__p_wxDisplayChangedEvent,
36187 _swigc__p_wxDropFilesEvent,
36188 _swigc__p_wxDuplexMode,
36189 _swigc__p_wxEffects,
36190 _swigc__p_wxEncodingConverter,
36191 _swigc__p_wxEraseEvent,
36192 _swigc__p_wxEvent,
36193 _swigc__p_wxEvtHandler,
36194 _swigc__p_wxFSFile,
36195 _swigc__p_wxFileSystem,
36196 _swigc__p_wxFlexGridSizer,
36197 _swigc__p_wxFocusEvent,
36198 _swigc__p_wxFont,
36199 _swigc__p_wxFontList,
36200 _swigc__p_wxFontMapper,
36201 _swigc__p_wxGBSizerItem,
36202 _swigc__p_wxGCDC,
36203 _swigc__p_wxGDIObjListBase,
36204 _swigc__p_wxGDIObject,
36205 _swigc__p_wxGIFHandler,
36206 _swigc__p_wxGraphicsContext,
36207 _swigc__p_wxGraphicsPath,
36208 _swigc__p_wxGridBagSizer,
36209 _swigc__p_wxGridSizer,
36210 _swigc__p_wxHeaderButtonParams,
36211 _swigc__p_wxICOHandler,
36212 _swigc__p_wxIcon,
36213 _swigc__p_wxIconBundle,
36214 _swigc__p_wxIconLocation,
36215 _swigc__p_wxIconizeEvent,
36216 _swigc__p_wxIdleEvent,
36217 _swigc__p_wxImage,
36218 _swigc__p_wxImageHandler,
36219 _swigc__p_wxImageList,
36220 _swigc__p_wxIndividualLayoutConstraint,
36221 _swigc__p_wxInitDialogEvent,
36222 _swigc__p_wxJPEGHandler,
36223 _swigc__p_wxKeyEvent,
36224 _swigc__p_wxLanguageInfo,
36225 _swigc__p_wxLayoutConstraints,
36226 _swigc__p_wxLocale,
36227 _swigc__p_wxMask,
36228 _swigc__p_wxMaximizeEvent,
36229 _swigc__p_wxMemoryDC,
36230 _swigc__p_wxMenu,
36231 _swigc__p_wxMenuBar,
36232 _swigc__p_wxMenuEvent,
36233 _swigc__p_wxMenuItem,
36234 _swigc__p_wxMetaFile,
36235 _swigc__p_wxMetaFileDC,
36236 _swigc__p_wxMirrorDC,
36237 _swigc__p_wxMouseCaptureChangedEvent,
36238 _swigc__p_wxMouseCaptureLostEvent,
36239 _swigc__p_wxMouseEvent,
36240 _swigc__p_wxMoveEvent,
36241 _swigc__p_wxNativeEncodingInfo,
36242 _swigc__p_wxNativeFontInfo,
36243 _swigc__p_wxNativePixelData,
36244 _swigc__p_wxNativePixelData_Accessor,
36245 _swigc__p_wxNavigationKeyEvent,
36246 _swigc__p_wxNcPaintEvent,
36247 _swigc__p_wxNotifyEvent,
36248 _swigc__p_wxObject,
36249 _swigc__p_wxOverlay,
36250 _swigc__p_wxPCXHandler,
36251 _swigc__p_wxPNGHandler,
36252 _swigc__p_wxPNMHandler,
36253 _swigc__p_wxPaintDC,
36254 _swigc__p_wxPaintEvent,
36255 _swigc__p_wxPalette,
36256 _swigc__p_wxPaletteChangedEvent,
36257 _swigc__p_wxPaperSize,
36258 _swigc__p_wxPen,
36259 _swigc__p_wxPenList,
36260 _swigc__p_wxPixelDataBase,
36261 _swigc__p_wxPoint,
36262 _swigc__p_wxPoint2D,
36263 _swigc__p_wxPostScriptDC,
36264 _swigc__p_wxPrintData,
36265 _swigc__p_wxPrinterDC,
36266 _swigc__p_wxPseudoDC,
36267 _swigc__p_wxPyApp,
36268 _swigc__p_wxPyCommandEvent,
36269 _swigc__p_wxPyEvent,
36270 _swigc__p_wxPyFontEnumerator,
36271 _swigc__p_wxPyImageHandler,
36272 _swigc__p_wxPyLocale,
36273 _swigc__p_wxPySizer,
36274 _swigc__p_wxPyValidator,
36275 _swigc__p_wxQueryNewPaletteEvent,
36276 _swigc__p_wxRect,
36277 _swigc__p_wxRegion,
36278 _swigc__p_wxRegionIterator,
36279 _swigc__p_wxRendererNative,
36280 _swigc__p_wxRendererVersion,
36281 _swigc__p_wxScreenDC,
36282 _swigc__p_wxScrollEvent,
36283 _swigc__p_wxScrollWinEvent,
36284 _swigc__p_wxSetCursorEvent,
36285 _swigc__p_wxShowEvent,
36286 _swigc__p_wxSize,
36287 _swigc__p_wxSizeEvent,
36288 _swigc__p_wxSizer,
36289 _swigc__p_wxSizerItem,
36290 _swigc__p_wxSplitterRenderParams,
36291 _swigc__p_wxStaticBoxSizer,
36292 _swigc__p_wxStdDialogButtonSizer,
36293 _swigc__p_wxStockGDI,
36294 _swigc__p_wxString,
36295 _swigc__p_wxSysColourChangedEvent,
36296 _swigc__p_wxTIFFHandler,
36297 _swigc__p_wxUpdateUIEvent,
36298 _swigc__p_wxValidator,
36299 _swigc__p_wxWindow,
36300 _swigc__p_wxWindowCreateEvent,
36301 _swigc__p_wxWindowDC,
36302 _swigc__p_wxWindowDestroyEvent,
36303 _swigc__p_wxXPMHandler,
36304 };
36305
36306
36307 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
36308
36309 static swig_const_info swig_const_table[] = {
36310 {0, 0, 0, 0.0, 0, 0}};
36311
36312 #ifdef __cplusplus
36313 }
36314 #endif
36315 /* -----------------------------------------------------------------------------
36316 * Type initialization:
36317 * This problem is tough by the requirement that no dynamic
36318 * memory is used. Also, since swig_type_info structures store pointers to
36319 * swig_cast_info structures and swig_cast_info structures store pointers back
36320 * to swig_type_info structures, we need some lookup code at initialization.
36321 * The idea is that swig generates all the structures that are needed.
36322 * The runtime then collects these partially filled structures.
36323 * The SWIG_InitializeModule function takes these initial arrays out of
36324 * swig_module, and does all the lookup, filling in the swig_module.types
36325 * array with the correct data and linking the correct swig_cast_info
36326 * structures together.
36327 *
36328 * The generated swig_type_info structures are assigned staticly to an initial
36329 * array. We just loop though that array, and handle each type individually.
36330 * First we lookup if this type has been already loaded, and if so, use the
36331 * loaded structure instead of the generated one. Then we have to fill in the
36332 * cast linked list. The cast data is initially stored in something like a
36333 * two-dimensional array. Each row corresponds to a type (there are the same
36334 * number of rows as there are in the swig_type_initial array). Each entry in
36335 * a column is one of the swig_cast_info structures for that type.
36336 * The cast_initial array is actually an array of arrays, because each row has
36337 * a variable number of columns. So to actually build the cast linked list,
36338 * we find the array of casts associated with the type, and loop through it
36339 * adding the casts to the list. The one last trick we need to do is making
36340 * sure the type pointer in the swig_cast_info struct is correct.
36341 *
36342 * First off, we lookup the cast->type name to see if it is already loaded.
36343 * There are three cases to handle:
36344 * 1) If the cast->type has already been loaded AND the type we are adding
36345 * casting info to has not been loaded (it is in this module), THEN we
36346 * replace the cast->type pointer with the type pointer that has already
36347 * been loaded.
36348 * 2) If BOTH types (the one we are adding casting info to, and the
36349 * cast->type) are loaded, THEN the cast info has already been loaded by
36350 * the previous module so we just ignore it.
36351 * 3) Finally, if cast->type has not already been loaded, then we add that
36352 * swig_cast_info to the linked list (because the cast->type) pointer will
36353 * be correct.
36354 * ----------------------------------------------------------------------------- */
36355
36356 #ifdef __cplusplus
36357 extern "C" {
36358 #if 0
36359 } /* c-mode */
36360 #endif
36361 #endif
36362
36363 #if 0
36364 #define SWIGRUNTIME_DEBUG
36365 #endif
36366
36367 SWIGRUNTIME void
36368 SWIG_InitializeModule(void *clientdata) {
36369 size_t i;
36370 swig_module_info *module_head;
36371 static int init_run = 0;
36372
36373 clientdata = clientdata;
36374
36375 if (init_run) return;
36376 init_run = 1;
36377
36378 /* Initialize the swig_module */
36379 swig_module.type_initial = swig_type_initial;
36380 swig_module.cast_initial = swig_cast_initial;
36381
36382 /* Try and load any already created modules */
36383 module_head = SWIG_GetModule(clientdata);
36384 if (module_head) {
36385 swig_module.next = module_head->next;
36386 module_head->next = &swig_module;
36387 } else {
36388 /* This is the first module loaded */
36389 swig_module.next = &swig_module;
36390 SWIG_SetModule(clientdata, &swig_module);
36391 }
36392
36393 /* Now work on filling in swig_module.types */
36394 #ifdef SWIGRUNTIME_DEBUG
36395 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
36396 #endif
36397 for (i = 0; i < swig_module.size; ++i) {
36398 swig_type_info *type = 0;
36399 swig_type_info *ret;
36400 swig_cast_info *cast;
36401
36402 #ifdef SWIGRUNTIME_DEBUG
36403 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36404 #endif
36405
36406 /* if there is another module already loaded */
36407 if (swig_module.next != &swig_module) {
36408 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
36409 }
36410 if (type) {
36411 /* Overwrite clientdata field */
36412 #ifdef SWIGRUNTIME_DEBUG
36413 printf("SWIG_InitializeModule: found type %s\n", type->name);
36414 #endif
36415 if (swig_module.type_initial[i]->clientdata) {
36416 type->clientdata = swig_module.type_initial[i]->clientdata;
36417 #ifdef SWIGRUNTIME_DEBUG
36418 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
36419 #endif
36420 }
36421 } else {
36422 type = swig_module.type_initial[i];
36423 }
36424
36425 /* Insert casting types */
36426 cast = swig_module.cast_initial[i];
36427 while (cast->type) {
36428 /* Don't need to add information already in the list */
36429 ret = 0;
36430 #ifdef SWIGRUNTIME_DEBUG
36431 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
36432 #endif
36433 if (swig_module.next != &swig_module) {
36434 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
36435 #ifdef SWIGRUNTIME_DEBUG
36436 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
36437 #endif
36438 }
36439 if (ret) {
36440 if (type == swig_module.type_initial[i]) {
36441 #ifdef SWIGRUNTIME_DEBUG
36442 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
36443 #endif
36444 cast->type = ret;
36445 ret = 0;
36446 } else {
36447 /* Check for casting already in the list */
36448 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
36449 #ifdef SWIGRUNTIME_DEBUG
36450 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
36451 #endif
36452 if (!ocast) ret = 0;
36453 }
36454 }
36455
36456 if (!ret) {
36457 #ifdef SWIGRUNTIME_DEBUG
36458 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
36459 #endif
36460 if (type->cast) {
36461 type->cast->prev = cast;
36462 cast->next = type->cast;
36463 }
36464 type->cast = cast;
36465 }
36466 cast++;
36467 }
36468 /* Set entry in modules->types array equal to the type */
36469 swig_module.types[i] = type;
36470 }
36471 swig_module.types[i] = 0;
36472
36473 #ifdef SWIGRUNTIME_DEBUG
36474 printf("**** SWIG_InitializeModule: Cast List ******\n");
36475 for (i = 0; i < swig_module.size; ++i) {
36476 int j = 0;
36477 swig_cast_info *cast = swig_module.cast_initial[i];
36478 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36479 while (cast->type) {
36480 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
36481 cast++;
36482 ++j;
36483 }
36484 printf("---- Total casts: %d\n",j);
36485 }
36486 printf("**** SWIG_InitializeModule: Cast List ******\n");
36487 #endif
36488 }
36489
36490 /* This function will propagate the clientdata field of type to
36491 * any new swig_type_info structures that have been added into the list
36492 * of equivalent types. It is like calling
36493 * SWIG_TypeClientData(type, clientdata) a second time.
36494 */
36495 SWIGRUNTIME void
36496 SWIG_PropagateClientData(void) {
36497 size_t i;
36498 swig_cast_info *equiv;
36499 static int init_run = 0;
36500
36501 if (init_run) return;
36502 init_run = 1;
36503
36504 for (i = 0; i < swig_module.size; i++) {
36505 if (swig_module.types[i]->clientdata) {
36506 equiv = swig_module.types[i]->cast;
36507 while (equiv) {
36508 if (!equiv->converter) {
36509 if (equiv->type && !equiv->type->clientdata)
36510 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
36511 }
36512 equiv = equiv->next;
36513 }
36514 }
36515 }
36516 }
36517
36518 #ifdef __cplusplus
36519 #if 0
36520 {
36521 /* c-mode */
36522 #endif
36523 }
36524 #endif
36525
36526
36527
36528 #ifdef __cplusplus
36529 extern "C" {
36530 #endif
36531
36532 /* Python-specific SWIG API */
36533 #define SWIG_newvarlink() SWIG_Python_newvarlink()
36534 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
36535 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
36536
36537 /* -----------------------------------------------------------------------------
36538 * global variable support code.
36539 * ----------------------------------------------------------------------------- */
36540
36541 typedef struct swig_globalvar {
36542 char *name; /* Name of global variable */
36543 PyObject *(*get_attr)(void); /* Return the current value */
36544 int (*set_attr)(PyObject *); /* Set the value */
36545 struct swig_globalvar *next;
36546 } swig_globalvar;
36547
36548 typedef struct swig_varlinkobject {
36549 PyObject_HEAD
36550 swig_globalvar *vars;
36551 } swig_varlinkobject;
36552
36553 SWIGINTERN PyObject *
36554 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
36555 return PyString_FromString("<Swig global variables>");
36556 }
36557
36558 SWIGINTERN PyObject *
36559 swig_varlink_str(swig_varlinkobject *v) {
36560 PyObject *str = PyString_FromString("(");
36561 swig_globalvar *var;
36562 for (var = v->vars; var; var=var->next) {
36563 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
36564 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
36565 }
36566 PyString_ConcatAndDel(&str,PyString_FromString(")"));
36567 return str;
36568 }
36569
36570 SWIGINTERN int
36571 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
36572 PyObject *str = swig_varlink_str(v);
36573 fprintf(fp,"Swig global variables ");
36574 fprintf(fp,"%s\n", PyString_AsString(str));
36575 Py_DECREF(str);
36576 return 0;
36577 }
36578
36579 SWIGINTERN void
36580 swig_varlink_dealloc(swig_varlinkobject *v) {
36581 swig_globalvar *var = v->vars;
36582 while (var) {
36583 swig_globalvar *n = var->next;
36584 free(var->name);
36585 free(var);
36586 var = n;
36587 }
36588 }
36589
36590 SWIGINTERN PyObject *
36591 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
36592 PyObject *res = NULL;
36593 swig_globalvar *var = v->vars;
36594 while (var) {
36595 if (strcmp(var->name,n) == 0) {
36596 res = (*var->get_attr)();
36597 break;
36598 }
36599 var = var->next;
36600 }
36601 if (res == NULL && !PyErr_Occurred()) {
36602 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36603 }
36604 return res;
36605 }
36606
36607 SWIGINTERN int
36608 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
36609 int res = 1;
36610 swig_globalvar *var = v->vars;
36611 while (var) {
36612 if (strcmp(var->name,n) == 0) {
36613 res = (*var->set_attr)(p);
36614 break;
36615 }
36616 var = var->next;
36617 }
36618 if (res == 1 && !PyErr_Occurred()) {
36619 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36620 }
36621 return res;
36622 }
36623
36624 SWIGINTERN PyTypeObject*
36625 swig_varlink_type(void) {
36626 static char varlink__doc__[] = "Swig var link object";
36627 static PyTypeObject varlink_type;
36628 static int type_init = 0;
36629 if (!type_init) {
36630 const PyTypeObject tmp
36631 = {
36632 PyObject_HEAD_INIT(NULL)
36633 0, /* Number of items in variable part (ob_size) */
36634 (char *)"swigvarlink", /* Type name (tp_name) */
36635 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
36636 0, /* Itemsize (tp_itemsize) */
36637 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
36638 (printfunc) swig_varlink_print, /* Print (tp_print) */
36639 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
36640 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
36641 0, /* tp_compare */
36642 (reprfunc) swig_varlink_repr, /* tp_repr */
36643 0, /* tp_as_number */
36644 0, /* tp_as_sequence */
36645 0, /* tp_as_mapping */
36646 0, /* tp_hash */
36647 0, /* tp_call */
36648 (reprfunc)swig_varlink_str, /* tp_str */
36649 0, /* tp_getattro */
36650 0, /* tp_setattro */
36651 0, /* tp_as_buffer */
36652 0, /* tp_flags */
36653 varlink__doc__, /* tp_doc */
36654 0, /* tp_traverse */
36655 0, /* tp_clear */
36656 0, /* tp_richcompare */
36657 0, /* tp_weaklistoffset */
36658 #if PY_VERSION_HEX >= 0x02020000
36659 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
36660 #endif
36661 #if PY_VERSION_HEX >= 0x02030000
36662 0, /* tp_del */
36663 #endif
36664 #ifdef COUNT_ALLOCS
36665 0,0,0,0 /* tp_alloc -> tp_next */
36666 #endif
36667 };
36668 varlink_type = tmp;
36669 varlink_type.ob_type = &PyType_Type;
36670 type_init = 1;
36671 }
36672 return &varlink_type;
36673 }
36674
36675 /* Create a variable linking object for use later */
36676 SWIGINTERN PyObject *
36677 SWIG_Python_newvarlink(void) {
36678 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
36679 if (result) {
36680 result->vars = 0;
36681 }
36682 return ((PyObject*) result);
36683 }
36684
36685 SWIGINTERN void
36686 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
36687 swig_varlinkobject *v = (swig_varlinkobject *) p;
36688 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
36689 if (gv) {
36690 size_t size = strlen(name)+1;
36691 gv->name = (char *)malloc(size);
36692 if (gv->name) {
36693 strncpy(gv->name,name,size);
36694 gv->get_attr = get_attr;
36695 gv->set_attr = set_attr;
36696 gv->next = v->vars;
36697 }
36698 }
36699 v->vars = gv;
36700 }
36701
36702 SWIGINTERN PyObject *
36703 SWIG_globals() {
36704 static PyObject *_SWIG_globals = 0;
36705 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
36706 return _SWIG_globals;
36707 }
36708
36709 /* -----------------------------------------------------------------------------
36710 * constants/methods manipulation
36711 * ----------------------------------------------------------------------------- */
36712
36713 /* Install Constants */
36714 SWIGINTERN void
36715 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
36716 PyObject *obj = 0;
36717 size_t i;
36718 for (i = 0; constants[i].type; ++i) {
36719 switch(constants[i].type) {
36720 case SWIG_PY_POINTER:
36721 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
36722 break;
36723 case SWIG_PY_BINARY:
36724 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
36725 break;
36726 default:
36727 obj = 0;
36728 break;
36729 }
36730 if (obj) {
36731 PyDict_SetItemString(d, constants[i].name, obj);
36732 Py_DECREF(obj);
36733 }
36734 }
36735 }
36736
36737 /* -----------------------------------------------------------------------------*/
36738 /* Fix SwigMethods to carry the callback ptrs when needed */
36739 /* -----------------------------------------------------------------------------*/
36740
36741 SWIGINTERN void
36742 SWIG_Python_FixMethods(PyMethodDef *methods,
36743 swig_const_info *const_table,
36744 swig_type_info **types,
36745 swig_type_info **types_initial) {
36746 size_t i;
36747 for (i = 0; methods[i].ml_name; ++i) {
36748 const char *c = methods[i].ml_doc;
36749 if (c && (c = strstr(c, "swig_ptr: "))) {
36750 int j;
36751 swig_const_info *ci = 0;
36752 const char *name = c + 10;
36753 for (j = 0; const_table[j].type; ++j) {
36754 if (strncmp(const_table[j].name, name,
36755 strlen(const_table[j].name)) == 0) {
36756 ci = &(const_table[j]);
36757 break;
36758 }
36759 }
36760 if (ci) {
36761 size_t shift = (ci->ptype) - types;
36762 swig_type_info *ty = types_initial[shift];
36763 size_t ldoc = (c - methods[i].ml_doc);
36764 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
36765 char *ndoc = (char*)malloc(ldoc + lptr + 10);
36766 if (ndoc) {
36767 char *buff = ndoc;
36768 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
36769 if (ptr) {
36770 strncpy(buff, methods[i].ml_doc, ldoc);
36771 buff += ldoc;
36772 strncpy(buff, "swig_ptr: ", 10);
36773 buff += 10;
36774 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
36775 methods[i].ml_doc = ndoc;
36776 }
36777 }
36778 }
36779 }
36780 }
36781 }
36782
36783 #ifdef __cplusplus
36784 }
36785 #endif
36786
36787 /* -----------------------------------------------------------------------------*
36788 * Partial Init method
36789 * -----------------------------------------------------------------------------*/
36790
36791 #ifdef __cplusplus
36792 extern "C"
36793 #endif
36794 SWIGEXPORT void SWIG_init(void) {
36795 PyObject *m, *d;
36796
36797 /* Fix SwigMethods to carry the callback ptrs when needed */
36798 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
36799
36800 m = Py_InitModule((char *) SWIG_name, SwigMethods);
36801 d = PyModule_GetDict(m);
36802
36803 SWIG_InitializeModule(0);
36804 SWIG_InstallConstants(d,swig_const_table);
36805
36806
36807 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
36808 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
36809 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
36810 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
36811 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
36812 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
36813 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
36814 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
36815 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
36816 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
36817 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
36818 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
36819 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
36820 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
36821 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
36822 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
36823 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
36824 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
36825 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
36826 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
36827 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
36828 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
36829 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
36830 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
36831 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
36832 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
36833 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
36834 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
36835 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
36836 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
36837 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
36838 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
36839 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
36840 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
36841 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
36842 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
36843 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
36844 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
36845 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
36846 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
36847 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
36848 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
36849 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
36850 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
36851 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
36852 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
36853 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
36854 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
36855 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
36856 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
36857 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
36858 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
36859 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
36860 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
36861 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
36862 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
36863 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
36864 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
36865 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
36866 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
36867 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
36868 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
36869 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
36870 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
36871 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
36872 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
36873 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
36874 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
36875 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
36876 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
36877 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
36878 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
36879 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
36880 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
36881 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
36882 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
36883 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
36884 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
36885 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
36886 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
36887 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
36888 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
36889 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
36890 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
36891 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
36892 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
36893 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
36894 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
36895 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
36896 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
36897 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
36898 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
36899 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
36900 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
36901 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
36902 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
36903 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
36904 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
36905 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
36906 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
36907 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
36908 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
36909 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
36910 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
36911 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
36912 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
36913 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
36914 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
36915 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
36916 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
36917 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
36918 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
36919 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
36920 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
36921 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
36922 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
36923 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
36924 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
36925 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
36926 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
36927 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
36928 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
36929 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
36930 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
36931 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
36932 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
36933 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
36934 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
36935 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
36936 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
36937 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
36938 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
36939
36940 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
36941
36942 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
36943 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
36944 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
36945 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
36946 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
36947 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
36948 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
36949 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
36950 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
36951 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
36952 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
36953 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
36954 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
36955 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
36956 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
36957 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
36958 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
36959 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
36960 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
36961 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
36962 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
36963 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
36964 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
36965 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
36966 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
36967 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
36968 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
36969 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
36970 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
36971 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
36972 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
36973 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
36974 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
36975 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
36976 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
36977 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
36978 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
36979 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
36980 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
36981 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
36982 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
36983 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
36984 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
36985 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
36986 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
36987 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
36988 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
36989 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
36990 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
36991 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
36992 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
36993 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
36994 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
36995 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
36996 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
36997 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
36998 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
36999 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
37000 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
37001 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
37002 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
37003 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
37004 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
37005 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
37006 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
37007 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
37008 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
37009 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
37010 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
37011 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
37012 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
37013 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
37014 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
37015 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
37016 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
37017 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
37018 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
37019 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
37020 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
37021 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
37022 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
37023 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
37024 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
37025 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
37026 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
37027 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
37028 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
37029 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
37030 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
37031 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
37032 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
37033 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
37034 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
37035 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
37036 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
37037 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
37038 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
37039 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
37040 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
37041 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
37042 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
37043 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
37044 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
37045 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
37046 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
37047 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
37048 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
37049 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
37050 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
37051 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
37052 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
37053 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
37054 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
37055 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
37056 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
37057 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
37058 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
37059 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
37060 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
37061 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
37062 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
37063 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
37064 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
37065 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
37066 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
37067 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
37068 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
37069 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
37070 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
37071 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
37072 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
37073 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
37074 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
37075 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
37076 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
37077 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
37078 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
37079 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
37080 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
37081 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
37082 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
37083 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
37084 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
37085 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
37086 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
37087 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
37088 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
37089 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
37090 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
37091 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
37092 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
37093 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
37094 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
37095 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
37096 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
37097 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
37098 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
37099 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
37100 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
37101 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
37102 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
37103 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
37104 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
37105 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
37106 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
37107 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
37108 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
37109 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
37110 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
37111 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
37112 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
37113 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
37114 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
37115 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
37116 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
37117 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
37118 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
37119 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
37120 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
37121 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
37122 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
37123 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
37124 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
37125 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
37126 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
37127 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
37128 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
37129 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
37130 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
37131 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
37132 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
37133 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
37134 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
37135 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
37136 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
37137 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
37138 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
37139 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
37140 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
37141 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
37142 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
37143 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
37144 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
37145 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
37146 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
37147 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
37148 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
37149 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
37150 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
37151 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
37152 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
37153 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
37154 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
37155 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
37156 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
37157 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
37158 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
37159 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
37160 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
37161 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
37162 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
37163 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
37164 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
37165 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
37166 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
37167 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
37168 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
37169 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
37170 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
37171 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
37172 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
37173 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
37174 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
37175 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
37176 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
37177 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
37178 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
37179 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
37180 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
37181 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
37182 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
37183 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
37184 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
37185 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
37186 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
37187 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
37188 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
37189 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
37190 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
37191 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
37192 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
37193 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
37194 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
37195 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
37196 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
37197 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
37198 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
37199 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
37200 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
37201 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
37202 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
37203 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
37204 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
37205 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
37206 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
37207 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
37208 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
37209 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
37210 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
37211 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
37212 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
37213 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
37214 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
37215 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
37216 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
37217 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
37218 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
37219 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
37220 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
37221 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
37222 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
37223 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
37224 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
37225 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
37226 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
37227 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
37228 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
37229 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
37230 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
37231 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
37232 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
37233 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
37234 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
37235 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
37236 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
37237 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
37238 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
37239 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
37240 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
37241 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
37242 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
37243 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
37244 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
37245 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
37246 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
37247 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
37248 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
37249 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
37250 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
37251 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
37252 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
37253 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
37254 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
37255 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
37256 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
37257 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
37258 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
37259 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
37260 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
37261
37262 // Work around a chicken/egg problem in drawlist.cpp
37263 wxPyDrawList_SetAPIPtr();
37264
37265 }
37266