]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_gdi_wrap.cpp
fixed wxVsnprintf() to write as much as it can if the output buffer is too short
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_buffer swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_double swig_types[2]
2469 #define SWIGTYPE_p_form_ops_t swig_types[3]
2470 #define SWIGTYPE_p_int swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480 #define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481 #define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482 #define SWIGTYPE_p_wxBitmap swig_types[16]
2483 #define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484 #define SWIGTYPE_p_wxBrush swig_types[18]
2485 #define SWIGTYPE_p_wxBrushList swig_types[19]
2486 #define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488 #define SWIGTYPE_p_wxCURHandler swig_types[22]
2489 #define SWIGTYPE_p_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_wxColour swig_types[27]
2494 #define SWIGTYPE_p_wxColourDatabase swig_types[28]
2495 #define SWIGTYPE_p_wxCommandEvent swig_types[29]
2496 #define SWIGTYPE_p_wxContextMenuEvent swig_types[30]
2497 #define SWIGTYPE_p_wxControl swig_types[31]
2498 #define SWIGTYPE_p_wxControlWithItems swig_types[32]
2499 #define SWIGTYPE_p_wxCursor swig_types[33]
2500 #define SWIGTYPE_p_wxDC swig_types[34]
2501 #define SWIGTYPE_p_wxDCBrushChanger swig_types[35]
2502 #define SWIGTYPE_p_wxDCClipper swig_types[36]
2503 #define SWIGTYPE_p_wxDCOverlay swig_types[37]
2504 #define SWIGTYPE_p_wxDCPenChanger swig_types[38]
2505 #define SWIGTYPE_p_wxDCTextColourChanger swig_types[39]
2506 #define SWIGTYPE_p_wxDash swig_types[40]
2507 #define SWIGTYPE_p_wxDateEvent swig_types[41]
2508 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[42]
2509 #define SWIGTYPE_p_wxDropFilesEvent swig_types[43]
2510 #define SWIGTYPE_p_wxDuplexMode swig_types[44]
2511 #define SWIGTYPE_p_wxEffects swig_types[45]
2512 #define SWIGTYPE_p_wxEncodingConverter swig_types[46]
2513 #define SWIGTYPE_p_wxEraseEvent swig_types[47]
2514 #define SWIGTYPE_p_wxEvent swig_types[48]
2515 #define SWIGTYPE_p_wxEventBlocker swig_types[49]
2516 #define SWIGTYPE_p_wxEvtHandler swig_types[50]
2517 #define SWIGTYPE_p_wxFSFile swig_types[51]
2518 #define SWIGTYPE_p_wxFileSystem swig_types[52]
2519 #define SWIGTYPE_p_wxFlexGridSizer swig_types[53]
2520 #define SWIGTYPE_p_wxFocusEvent swig_types[54]
2521 #define SWIGTYPE_p_wxFont swig_types[55]
2522 #define SWIGTYPE_p_wxFontList swig_types[56]
2523 #define SWIGTYPE_p_wxFontMapper swig_types[57]
2524 #define SWIGTYPE_p_wxGBSizerItem swig_types[58]
2525 #define SWIGTYPE_p_wxGCDC swig_types[59]
2526 #define SWIGTYPE_p_wxGDIObjListBase swig_types[60]
2527 #define SWIGTYPE_p_wxGDIObject swig_types[61]
2528 #define SWIGTYPE_p_wxGIFHandler swig_types[62]
2529 #define SWIGTYPE_p_wxGraphicsBrush swig_types[63]
2530 #define SWIGTYPE_p_wxGraphicsContext swig_types[64]
2531 #define SWIGTYPE_p_wxGraphicsFont swig_types[65]
2532 #define SWIGTYPE_p_wxGraphicsMatrix swig_types[66]
2533 #define SWIGTYPE_p_wxGraphicsObject swig_types[67]
2534 #define SWIGTYPE_p_wxGraphicsPath swig_types[68]
2535 #define SWIGTYPE_p_wxGraphicsPen swig_types[69]
2536 #define SWIGTYPE_p_wxGraphicsRenderer swig_types[70]
2537 #define SWIGTYPE_p_wxGridBagSizer swig_types[71]
2538 #define SWIGTYPE_p_wxGridSizer swig_types[72]
2539 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[73]
2540 #define SWIGTYPE_p_wxICOHandler swig_types[74]
2541 #define SWIGTYPE_p_wxIcon swig_types[75]
2542 #define SWIGTYPE_p_wxIconBundle swig_types[76]
2543 #define SWIGTYPE_p_wxIconLocation swig_types[77]
2544 #define SWIGTYPE_p_wxIconizeEvent swig_types[78]
2545 #define SWIGTYPE_p_wxIdleEvent swig_types[79]
2546 #define SWIGTYPE_p_wxImage swig_types[80]
2547 #define SWIGTYPE_p_wxImageHandler swig_types[81]
2548 #define SWIGTYPE_p_wxImageList swig_types[82]
2549 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[83]
2550 #define SWIGTYPE_p_wxInitDialogEvent swig_types[84]
2551 #define SWIGTYPE_p_wxJPEGHandler swig_types[85]
2552 #define SWIGTYPE_p_wxKeyEvent swig_types[86]
2553 #define SWIGTYPE_p_wxLanguageInfo swig_types[87]
2554 #define SWIGTYPE_p_wxLayoutConstraints swig_types[88]
2555 #define SWIGTYPE_p_wxLocale swig_types[89]
2556 #define SWIGTYPE_p_wxMask swig_types[90]
2557 #define SWIGTYPE_p_wxMaximizeEvent swig_types[91]
2558 #define SWIGTYPE_p_wxMemoryDC swig_types[92]
2559 #define SWIGTYPE_p_wxMenu swig_types[93]
2560 #define SWIGTYPE_p_wxMenuBar swig_types[94]
2561 #define SWIGTYPE_p_wxMenuEvent swig_types[95]
2562 #define SWIGTYPE_p_wxMenuItem swig_types[96]
2563 #define SWIGTYPE_p_wxMetaFile swig_types[97]
2564 #define SWIGTYPE_p_wxMetaFileDC swig_types[98]
2565 #define SWIGTYPE_p_wxMirrorDC swig_types[99]
2566 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[100]
2567 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[101]
2568 #define SWIGTYPE_p_wxMouseEvent swig_types[102]
2569 #define SWIGTYPE_p_wxMoveEvent swig_types[103]
2570 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[104]
2571 #define SWIGTYPE_p_wxNativeFontInfo swig_types[105]
2572 #define SWIGTYPE_p_wxNativePixelData swig_types[106]
2573 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[107]
2574 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[108]
2575 #define SWIGTYPE_p_wxNcPaintEvent swig_types[109]
2576 #define SWIGTYPE_p_wxNotifyEvent swig_types[110]
2577 #define SWIGTYPE_p_wxObject swig_types[111]
2578 #define SWIGTYPE_p_wxOverlay swig_types[112]
2579 #define SWIGTYPE_p_wxPCXHandler swig_types[113]
2580 #define SWIGTYPE_p_wxPNGHandler swig_types[114]
2581 #define SWIGTYPE_p_wxPNMHandler swig_types[115]
2582 #define SWIGTYPE_p_wxPaintDC swig_types[116]
2583 #define SWIGTYPE_p_wxPaintEvent swig_types[117]
2584 #define SWIGTYPE_p_wxPalette swig_types[118]
2585 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[119]
2586 #define SWIGTYPE_p_wxPaperSize swig_types[120]
2587 #define SWIGTYPE_p_wxPen swig_types[121]
2588 #define SWIGTYPE_p_wxPenList swig_types[122]
2589 #define SWIGTYPE_p_wxPixelDataBase swig_types[123]
2590 #define SWIGTYPE_p_wxPoint swig_types[124]
2591 #define SWIGTYPE_p_wxPoint2D swig_types[125]
2592 #define SWIGTYPE_p_wxPostScriptDC swig_types[126]
2593 #define SWIGTYPE_p_wxPrintData swig_types[127]
2594 #define SWIGTYPE_p_wxPrinterDC swig_types[128]
2595 #define SWIGTYPE_p_wxPseudoDC swig_types[129]
2596 #define SWIGTYPE_p_wxPyApp swig_types[130]
2597 #define SWIGTYPE_p_wxPyCommandEvent swig_types[131]
2598 #define SWIGTYPE_p_wxPyEvent swig_types[132]
2599 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[133]
2600 #define SWIGTYPE_p_wxPyImageHandler swig_types[134]
2601 #define SWIGTYPE_p_wxPyLocale swig_types[135]
2602 #define SWIGTYPE_p_wxPySizer swig_types[136]
2603 #define SWIGTYPE_p_wxPyValidator swig_types[137]
2604 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[138]
2605 #define SWIGTYPE_p_wxRect swig_types[139]
2606 #define SWIGTYPE_p_wxRect2D swig_types[140]
2607 #define SWIGTYPE_p_wxRegion swig_types[141]
2608 #define SWIGTYPE_p_wxRegionIterator swig_types[142]
2609 #define SWIGTYPE_p_wxRendererNative swig_types[143]
2610 #define SWIGTYPE_p_wxRendererVersion swig_types[144]
2611 #define SWIGTYPE_p_wxSVGFileDC swig_types[145]
2612 #define SWIGTYPE_p_wxScreenDC swig_types[146]
2613 #define SWIGTYPE_p_wxScrollEvent swig_types[147]
2614 #define SWIGTYPE_p_wxScrollWinEvent swig_types[148]
2615 #define SWIGTYPE_p_wxSetCursorEvent swig_types[149]
2616 #define SWIGTYPE_p_wxShowEvent swig_types[150]
2617 #define SWIGTYPE_p_wxSize swig_types[151]
2618 #define SWIGTYPE_p_wxSizeEvent swig_types[152]
2619 #define SWIGTYPE_p_wxSizer swig_types[153]
2620 #define SWIGTYPE_p_wxSizerItem swig_types[154]
2621 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[155]
2622 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[156]
2623 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[157]
2624 #define SWIGTYPE_p_wxStockGDI swig_types[158]
2625 #define SWIGTYPE_p_wxString swig_types[159]
2626 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[160]
2627 #define SWIGTYPE_p_wxTGAHandler swig_types[161]
2628 #define SWIGTYPE_p_wxTIFFHandler swig_types[162]
2629 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[163]
2630 #define SWIGTYPE_p_wxValidator swig_types[164]
2631 #define SWIGTYPE_p_wxWindow swig_types[165]
2632 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[166]
2633 #define SWIGTYPE_p_wxWindowDC swig_types[167]
2634 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[168]
2635 #define SWIGTYPE_p_wxXPMHandler swig_types[169]
2636 static swig_type_info *swig_types[171];
2637 static swig_module_info swig_module = {swig_types, 170, 0, 0, 0, 0};
2638 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2639 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2640
2641 /* -------- TYPES TABLE (END) -------- */
2642
2643 #if (PY_VERSION_HEX <= 0x02000000)
2644 # if !defined(SWIG_PYTHON_CLASSIC)
2645 # error "This python version requires to use swig with the '-classic' option"
2646 # endif
2647 #endif
2648 #if (PY_VERSION_HEX <= 0x02020000)
2649 # error "This python version requires to use swig with the '-nomodern' option"
2650 #endif
2651 #if (PY_VERSION_HEX <= 0x02020000)
2652 # error "This python version requires to use swig with the '-nomodernargs' option"
2653 #endif
2654 #ifndef METH_O
2655 # error "This python version requires to use swig with the '-nofastunpack' option"
2656 #endif
2657
2658 /*-----------------------------------------------
2659 @(target):= _gdi_.so
2660 ------------------------------------------------*/
2661 #define SWIG_init init_gdi_
2662
2663 #define SWIG_name "_gdi_"
2664
2665 #define SWIGVERSION 0x010329
2666
2667
2668 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2669 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2670
2671
2672 #include <stdexcept>
2673
2674
2675 namespace swig {
2676 class PyObject_ptr {
2677 protected:
2678 PyObject *_obj;
2679
2680 public:
2681 PyObject_ptr() :_obj(0)
2682 {
2683 }
2684
2685 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2686 {
2687 Py_XINCREF(_obj);
2688 }
2689
2690 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2691 {
2692 if (initial_ref) Py_XINCREF(_obj);
2693 }
2694
2695 PyObject_ptr & operator=(const PyObject_ptr& item)
2696 {
2697 Py_XINCREF(item._obj);
2698 Py_XDECREF(_obj);
2699 _obj = item._obj;
2700 return *this;
2701 }
2702
2703 ~PyObject_ptr()
2704 {
2705 Py_XDECREF(_obj);
2706 }
2707
2708 operator PyObject *() const
2709 {
2710 return _obj;
2711 }
2712
2713 PyObject *operator->() const
2714 {
2715 return _obj;
2716 }
2717 };
2718 }
2719
2720
2721 namespace swig {
2722 struct PyObject_var : PyObject_ptr {
2723 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2724
2725 PyObject_var & operator = (PyObject* obj)
2726 {
2727 Py_XDECREF(_obj);
2728 _obj = obj;
2729 return *this;
2730 }
2731 };
2732 }
2733
2734
2735 #include "wx/wxPython/wxPython.h"
2736 #include "wx/wxPython/pyclasses.h"
2737
2738
2739 static const wxString wxPyEmptyString(wxEmptyString);
2740
2741 #define SWIG_From_long PyInt_FromLong
2742
2743
2744 SWIGINTERNINLINE PyObject *
2745 SWIG_From_int (int value)
2746 {
2747 return SWIG_From_long (value);
2748 }
2749
2750
2751 #include <limits.h>
2752 #ifndef LLONG_MIN
2753 # define LLONG_MIN LONG_LONG_MIN
2754 #endif
2755 #ifndef LLONG_MAX
2756 # define LLONG_MAX LONG_LONG_MAX
2757 #endif
2758 #ifndef ULLONG_MAX
2759 # define ULLONG_MAX ULONG_LONG_MAX
2760 #endif
2761
2762
2763 SWIGINTERN int
2764 SWIG_AsVal_long (PyObject* obj, long* val)
2765 {
2766 if (PyNumber_Check(obj)) {
2767 if (val) *val = PyInt_AsLong(obj);
2768 return SWIG_OK;
2769 }
2770 return SWIG_TypeError;
2771 }
2772
2773
2774 SWIGINTERN int
2775 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2776 {
2777 long v = 0;
2778 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2779 return SWIG_TypeError;
2780 }
2781 else if (val)
2782 *val = (unsigned long)v;
2783 return SWIG_OK;
2784 }
2785
2786
2787 SWIGINTERN int
2788 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2789 {
2790 unsigned long v;
2791 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2792 if (SWIG_IsOK(res)) {
2793 if ((v > UCHAR_MAX)) {
2794 return SWIG_OverflowError;
2795 } else {
2796 if (val) *val = static_cast< unsigned char >(v);
2797 }
2798 }
2799 return res;
2800 }
2801
2802
2803 SWIGINTERNINLINE PyObject*
2804 SWIG_From_unsigned_SS_long (unsigned long value)
2805 {
2806 return (value > LONG_MAX) ?
2807 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2808 }
2809
2810
2811 SWIGINTERNINLINE PyObject *
2812 SWIG_From_unsigned_SS_char (unsigned char value)
2813 {
2814 return SWIG_From_unsigned_SS_long (value);
2815 }
2816
2817 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2818 wxColour temp, *obj = &temp;
2819 if ( other == Py_None ) return false;
2820 if ( ! wxColour_helper(other, &obj) ) {
2821 PyErr_Clear();
2822 return false;
2823 }
2824 return self->operator==(*obj);
2825 }
2826 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2827 wxColour temp, *obj = &temp;
2828 if ( other == Py_None ) return true;
2829 if ( ! wxColour_helper(other, &obj)) {
2830 PyErr_Clear();
2831 return true;
2832 }
2833 return self->operator!=(*obj);
2834 }
2835
2836 SWIGINTERN int
2837 SWIG_AsVal_bool (PyObject *obj, bool *val)
2838 {
2839 if (obj == Py_True) {
2840 if (val) *val = true;
2841 return SWIG_OK;
2842 } else if (obj == Py_False) {
2843 if (val) *val = false;
2844 return SWIG_OK;
2845 } else {
2846 long v = 0;
2847 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2848 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2849 return res;
2850 }
2851 }
2852
2853 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2854 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2855 int red = -1;
2856 int green = -1;
2857 int blue = -1;
2858 int alpha = wxALPHA_OPAQUE;
2859 if (self->IsOk()) {
2860 red = self->Red();
2861 green = self->Green();
2862 blue = self->Blue();
2863 alpha = self->Alpha();
2864 }
2865 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2866 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2867 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2868 if (includeAlpha)
2869 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2870 return rv;
2871 }
2872 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2873 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2874 }
2875
2876 SWIGINTERN int
2877 SWIG_AsVal_int (PyObject * obj, int *val)
2878 {
2879 long v;
2880 int res = SWIG_AsVal_long (obj, &v);
2881 if (SWIG_IsOK(res)) {
2882 if ((v < INT_MIN || v > INT_MAX)) {
2883 return SWIG_OverflowError;
2884 } else {
2885 if (val) *val = static_cast< int >(v);
2886 }
2887 }
2888 return res;
2889 }
2890
2891 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2892 wxDash* dashes;
2893 int count = self->GetDashes(&dashes);
2894 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2895 PyObject* retval = PyList_New(0);
2896 for (int x=0; x<count; x++) {
2897 PyObject* pyint = PyInt_FromLong(dashes[x]);
2898 PyList_Append(retval, pyint);
2899 Py_DECREF(pyint);
2900 }
2901 wxPyEndBlockThreads(blocked);
2902 return retval;
2903 }
2904 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2905 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2906 int size = PyList_Size(pyDashes);
2907 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2908
2909 // black magic warning! The array of wxDashes needs to exist as
2910 // long as the pen does because wxPen does not copy the array. So
2911 // stick a copy in a Python string object and attach it to _self,
2912 // and then call SetDashes with a pointer to that array. Then
2913 // when the Python pen object is destroyed the array will be
2914 // cleaned up too.
2915 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2916 PyObject_SetAttrString(_self, "_dashes", strDashes);
2917
2918 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2919 delete [] dashes;
2920 Py_DECREF(strDashes);
2921 wxPyEndBlockThreads(blocked);
2922 }
2923 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2924 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2925
2926 SWIGINTERNINLINE PyObject *
2927 SWIG_From_short (short value)
2928 {
2929 return SWIG_From_long (value);
2930 }
2931
2932
2933 SWIGINTERN int
2934 SWIG_AsVal_short (PyObject * obj, short *val)
2935 {
2936 long v;
2937 int res = SWIG_AsVal_long (obj, &v);
2938 if (SWIG_IsOK(res)) {
2939 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2940 return SWIG_OverflowError;
2941 } else {
2942 if (val) *val = static_cast< short >(v);
2943 }
2944 }
2945 return res;
2946 }
2947
2948
2949 #include <wx/rawbmp.h>
2950
2951
2952 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2953 // appears to me that the other platforms are already doing it, so I'll just
2954 // automatically do it for wxMSW here.
2955 #ifdef __WXMSW__
2956 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2957 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2958 #else
2959 #define wxPy_premultiply(p, a) (p)
2960 #define wxPy_unpremultiply(p, a) (p)
2961 #endif
2962
2963
2964 #include <wx/image.h>
2965
2966 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2967 char** cArray = NULL;
2968 int count;
2969
2970 if (!PyList_Check(listOfStrings)) {
2971 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2972 return NULL;
2973 }
2974 count = PyList_Size(listOfStrings);
2975 cArray = new char*[count];
2976
2977 for(int x=0; x<count; x++) {
2978 // TODO: Need some validation and error checking here
2979 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2980 }
2981 return cArray;
2982 }
2983
2984
2985 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2986 char** cArray = NULL;
2987 wxBitmap* bmp;
2988
2989 cArray = ConvertListOfStrings(listOfStrings);
2990 if (! cArray)
2991 return NULL;
2992 bmp = new wxBitmap(cArray);
2993 delete [] cArray;
2994 return bmp;
2995 }
2996 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2997 char* buf;
2998 Py_ssize_t length;
2999 PyString_AsStringAndSize(bits, &buf, &length);
3000 return new wxBitmap(buf, width, height, depth);
3001 }
3002 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
3003 wxSize size(self->GetWidth(), self->GetHeight());
3004 return size;
3005 }
3006 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
3007 wxMask *mask = new wxMask(*self, colour);
3008 self->SetMask(mask);
3009 }
3010 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
3011 self->SetWidth(size.x);
3012 self->SetHeight(size.y);
3013 }
3014 SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
3015 int height=self->GetHeight();
3016 int width=self->GetWidth();
3017
3018 if (DATASIZE != width * height * 3) {
3019 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3020 }
3021 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3022 if (! pixData) {
3023 // raise an exception...
3024 wxPyErr_SetString(PyExc_RuntimeError,
3025 "Failed to gain raw access to bitmap data.");
3026 return;
3027 }
3028
3029 wxNativePixelData::Iterator p(pixData);
3030 for (int y=0; y<height; y++) {
3031 wxNativePixelData::Iterator rowStart = p;
3032 for (int x=0; x<width; x++) {
3033 p.Red() = *(data++);
3034 p.Green() = *(data++);
3035 p.Blue() = *(data++);
3036 ++p;
3037 }
3038 p = rowStart;
3039 p.OffsetY(pixData, 1);
3040 }
3041 }
3042 SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3043 int height=self->GetHeight();
3044 int width=self->GetWidth();
3045
3046 if (DATASIZE != width * height * 4) {
3047 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3048 }
3049 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3050 if (! pixData) {
3051 // raise an exception...
3052 wxPyErr_SetString(PyExc_RuntimeError,
3053 "Failed to gain raw access to bitmap data.");
3054 return;
3055 }
3056
3057 pixData.UseAlpha();
3058 wxAlphaPixelData::Iterator p(pixData);
3059 for (int y=0; y<height; y++) {
3060 wxAlphaPixelData::Iterator rowStart = p;
3061 for (int x=0; x<width; x++) {
3062 byte a = data[3];
3063 p.Red() = wxPy_premultiply(*(data++), a);
3064 p.Green() = wxPy_premultiply(*(data++), a);
3065 p.Blue() = wxPy_premultiply(*(data++), a);
3066 p.Alpha() = a; data++;
3067 ++p;
3068 }
3069 p = rowStart;
3070 p.OffsetY(pixData, 1);
3071 }
3072 }
3073 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3074 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
3075
3076 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3077 buffer data, int DATASIZE,
3078 buffer alpha, int ALPHASIZE)
3079 {
3080 if (DATASIZE != width*height*3) {
3081 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3082 return NULL;
3083 }
3084
3085 if (ALPHASIZE != width*height) {
3086 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3087 return NULL;
3088 }
3089
3090 wxBitmap* bmp = new wxBitmap(width, height, 32);
3091 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3092 if (! pixData) {
3093 // raise an exception...
3094 wxPyErr_SetString(PyExc_RuntimeError,
3095 "Failed to gain raw access to bitmap data.");
3096 return NULL;
3097 }
3098
3099 pixData.UseAlpha();
3100 wxAlphaPixelData::Iterator p(pixData);
3101 for (int y=0; y<height; y++) {
3102 wxAlphaPixelData::Iterator rowStart = p;
3103 for (int x=0; x<width; x++) {
3104 byte a = *(alpha++);
3105 p.Red() = wxPy_premultiply(*(data++), a);
3106 p.Green() = wxPy_premultiply(*(data++), a);
3107 p.Blue() = wxPy_premultiply(*(data++), a);
3108 p.Alpha() = a;
3109 ++p;
3110 }
3111 p = rowStart;
3112 p.OffsetY(pixData, 1);
3113 }
3114 return bmp;
3115 }
3116
3117 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3118 {
3119 if (DATASIZE != width*height*3) {
3120 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3121 return NULL;
3122 }
3123
3124 wxBitmap* bmp = new wxBitmap(width, height, 24);
3125 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3126 if (! pixData) {
3127 // raise an exception...
3128 wxPyErr_SetString(PyExc_RuntimeError,
3129 "Failed to gain raw access to bitmap data.");
3130 return NULL;
3131 }
3132
3133 wxNativePixelData::Iterator p(pixData);
3134 for (int y=0; y<height; y++) {
3135 wxNativePixelData::Iterator rowStart = p;
3136 for (int x=0; x<width; x++) {
3137 p.Red() = *(data++);
3138 p.Green() = *(data++);
3139 p.Blue() = *(data++);
3140 ++p;
3141 }
3142 p = rowStart;
3143 p.OffsetY(pixData, 1);
3144 }
3145 return bmp;
3146 }
3147
3148
3149 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3150 {
3151 if (DATASIZE != width*height*4) {
3152 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3153 return NULL;
3154 }
3155
3156 wxBitmap* bmp = new wxBitmap(width, height, 32);
3157 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3158 if (! pixData) {
3159 // raise an exception...
3160 wxPyErr_SetString(PyExc_RuntimeError,
3161 "Failed to gain raw access to bitmap data.");
3162 return NULL;
3163 }
3164
3165 pixData.UseAlpha();
3166 wxAlphaPixelData::Iterator p(pixData);
3167 for (int y=0; y<height; y++) {
3168 wxAlphaPixelData::Iterator rowStart = p;
3169 for (int x=0; x<width; x++) {
3170 byte a = data[3];
3171 p.Red() = wxPy_premultiply(*(data++), a);
3172 p.Green() = wxPy_premultiply(*(data++), a);
3173 p.Blue() = wxPy_premultiply(*(data++), a);
3174 p.Alpha() = a; data++;
3175 ++p;
3176 }
3177 p = rowStart;
3178 p.OffsetY(pixData, 1);
3179 }
3180 return bmp;
3181 }
3182
3183
3184 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3185
3186 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3187 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3188 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3189 self->Red() = red;
3190 self->Green() = green;
3191 self->Blue() = blue;
3192 }
3193 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3194 PyObject* rv = PyTuple_New(3);
3195 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3196 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3197 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3198 return rv;
3199 }
3200
3201 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3202
3203 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3204 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3205 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3206 self->Red() = wxPy_premultiply(red, alpha);
3207 self->Green() = wxPy_premultiply(green, alpha);
3208 self->Blue() = wxPy_premultiply(blue, alpha);
3209 self->Alpha() = alpha;
3210 }
3211 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3212 PyObject* rv = PyTuple_New(4);
3213 int red = self->Red();
3214 int green = self->Green();
3215 int blue = self->Blue();
3216 int alpha = self->Alpha();
3217
3218 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3219 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3220 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3221 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3222 return rv;
3223 }
3224 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3225 if ( !colour.IsOk() )
3226 return new wxMask(bitmap, *wxBLACK);
3227 else
3228 return new wxMask(bitmap, colour);
3229 }
3230
3231 #include <wx/iconbndl.h>
3232
3233 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3234 wxIcon* icon = new wxIcon();
3235 icon->CopyFromBitmap(bmp);
3236 return icon;
3237 }
3238 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3239 char** cArray = NULL;
3240 wxIcon* icon;
3241
3242 cArray = ConvertListOfStrings(listOfStrings);
3243 if (! cArray)
3244 return NULL;
3245 icon = new wxIcon(cArray);
3246 delete [] cArray;
3247 return icon;
3248 }
3249 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3250
3251
3252
3253 return new wxIconLocation(*filename);
3254
3255 }
3256 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3257
3258
3259
3260 // do nothing
3261
3262 }
3263 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3264
3265
3266
3267 return -1;
3268
3269 }
3270
3271 SWIGINTERNINLINE PyObject *
3272 SWIG_From_size_t (size_t value)
3273 {
3274 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3275 }
3276
3277
3278 SWIGINTERNINLINE int
3279 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3280 {
3281 unsigned long v;
3282 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3283 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3284 return res;
3285 }
3286
3287 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3288 #ifdef __WXGTK__
3289 wxImage img(cursorName, type);
3290 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3291 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3292 return new wxCursor(img);
3293 #else
3294 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3295 #endif
3296 }
3297
3298
3299 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3300 (*self) ++;
3301 }
3302 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3303 return self->operator bool();
3304 }
3305
3306 #include <wx/fontutil.h>
3307 #include <wx/fontmap.h>
3308 #include <wx/fontenum.h>
3309
3310 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3311 return self->ToString();
3312 }
3313
3314 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3315 static wxNativeEncodingInfo info;
3316 if ( wxGetNativeFontEncoding(encoding, &info) )
3317 return &info;
3318 else
3319 return NULL;
3320 }
3321
3322 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3323 wxFontEncoding alt_enc;
3324 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3325 return PyInt_FromLong(alt_enc);
3326 else {
3327 Py_INCREF(Py_None);
3328 return Py_None;
3329 }
3330 }
3331 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3332 wxNativeFontInfo nfi;
3333 nfi.FromString(info);
3334 return new wxFont(nfi);
3335 }
3336 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3337 return wxFont::New(pointSize, family, flags, face, encoding);
3338 }
3339 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3340 return wxFontBase::New(pixelSize, family,
3341 style, weight, underlined,
3342 face, encoding);
3343 }
3344 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3345 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3346 }
3347 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3348 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3349
3350 class wxPyFontEnumerator : public wxFontEnumerator {
3351 public:
3352 wxPyFontEnumerator() {}
3353 ~wxPyFontEnumerator() {}
3354
3355 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3356 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3357
3358 PYPRIVATE;
3359 };
3360
3361 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3362 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3363
3364
3365 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3366 PyObject* ret;
3367 wxArrayString arr = wxFontEnumerator::GetEncodings();
3368 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3369 ret = wxArrayString2PyList_helper(arr);
3370 wxPyEndBlockThreads(blocked);
3371 return ret;
3372 }
3373 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3374 PyObject* ret;
3375 wxArrayString arr = wxFontEnumerator::GetFacenames();
3376 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3377 ret = wxArrayString2PyList_helper(arr);
3378 wxPyEndBlockThreads(blocked);
3379 return ret;
3380 }
3381
3382 #include <locale.h>
3383
3384 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3385 wxLocale* loc;
3386 if (language == -1)
3387 loc = new wxLocale();
3388 else
3389 loc = new wxLocale(language, flags);
3390 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3391 // for the floating point conversions and such to work right.
3392 #if PY_VERSION_HEX < 0x02040000
3393 setlocale(LC_NUMERIC, "C");
3394 #endif
3395 return loc;
3396 }
3397 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &name,wxString const &shortName=wxPyEmptyString,wxString const &locale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3398 bool rc = self->Init(name, shortName, locale, bLoadDefault, bConvertEncoding);
3399 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3400 // for the floating point conversions and such to work right.
3401 #if PY_VERSION_HEX < 0x02040000
3402 setlocale(LC_NUMERIC, "C");
3403 #endif
3404 return rc;
3405 }
3406 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3407 bool rc = self->Init(language, flags);
3408 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3409 // for the floating point conversions and such to work right.
3410 #if PY_VERSION_HEX < 0x02040000
3411 setlocale(LC_NUMERIC, "C");
3412 #endif
3413 return rc;
3414 }
3415
3416 class wxPyLocale : public wxLocale
3417 {
3418 public:
3419 wxPyLocale();
3420
3421 wxPyLocale(const wxString& name, // name (for messages)
3422 const wxString& shortName = wxPyEmptyString, // dir prefix (for msg files)
3423 const wxString& locale = wxPyEmptyString, // locale (for setlocale)
3424 bool bLoadDefault = true, // preload wxstd.mo?
3425 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3426
3427 wxPyLocale(int language, // wxLanguage id or custom language
3428 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3429
3430 ~wxPyLocale();
3431
3432 virtual const wxString& GetString(const wxString& origString,
3433 const wxString& domain = wxPyEmptyString) const;
3434 virtual const wxString& GetString(const wxString& origString,
3435 const wxString& origString2,
3436 size_t n,
3437 const wxString& domain = wxPyEmptyString) const;
3438
3439 virtual const wxString& GetSingularString(const wxString& origString,
3440 const wxString& domain = wxPyEmptyString) const;
3441 virtual const wxString& GetPluralString(const wxString& origString,
3442 const wxString& origString2,
3443 size_t n,
3444 const wxString& domain = wxPyEmptyString) const;
3445
3446
3447 PYPRIVATE;
3448 private:
3449 DECLARE_NO_COPY_CLASS(wxPyLocale)
3450 };
3451
3452 wxPyLocale::wxPyLocale() : wxLocale()
3453 {
3454 }
3455
3456 wxPyLocale::wxPyLocale(const wxString& name, // name (for messages)
3457 const wxString& shortName, // dir prefix (for msg files)
3458 const wxString& locale, // locale (for setlocale)
3459 bool bLoadDefault, // preload wxstd.mo?
3460 bool bConvertEncoding) // convert Win<->Unix if necessary?
3461 : wxLocale(name, shortName, locale, bLoadDefault, bConvertEncoding)
3462 {
3463 }
3464
3465 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3466 int flags) : wxLocale(language, flags)
3467 {
3468 }
3469
3470 wxPyLocale::~wxPyLocale()
3471 {
3472 }
3473
3474 const wxString& wxPyLocale::GetString(const wxString& origString,
3475 const wxString& domain) const
3476 {
3477 return GetSingularString(origString, domain);
3478 }
3479
3480 const wxString& wxPyLocale::GetString(const wxString& origString,
3481 const wxString& origString2,
3482 size_t n,
3483 const wxString& domain) const
3484 {
3485 return GetPluralString(origString, origString2, n, domain);
3486 }
3487
3488 const wxString& wxPyLocale::GetSingularString(const wxString& origString,
3489 const wxString& domain) const
3490 {
3491 bool found;
3492 wxString str( _T("error in translation"));
3493 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3494 if ((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3495 PyObject* param1 = wx2PyString(origString);
3496 PyObject* param2 = wx2PyString(domain);
3497 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3498 Py_DECREF(param1);
3499 Py_DECREF(param2);
3500 if (ret) {
3501 str = Py2wxString(ret);
3502 Py_DECREF(ret);
3503 }
3504 }
3505 wxPyEndBlockThreads(blocked);
3506 return (found ? str : wxLocale::GetString(origString, domain));
3507 }
3508
3509 const wxString& wxPyLocale::GetPluralString(const wxString& origString,
3510 const wxString& origString2, size_t n,
3511 const wxString& domain) const
3512 {
3513 bool found;
3514 wxString str( _T("error in translation"));
3515 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3516 if ((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3517 PyObject* param1 = wx2PyString(origString);
3518 PyObject* param2 = wx2PyString(origString2);
3519 PyObject* param4 = wx2PyString(domain);
3520 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst,
3521 Py_BuildValue("(OOiO)",
3522 param1, param2,
3523 (int)n, param4));
3524 Py_DECREF(param1);
3525 Py_DECREF(param2);
3526 Py_DECREF(param4);
3527 if( ret) {
3528 str = Py2wxString(ret);
3529 Py_DECREF(ret);
3530 }
3531 }
3532 wxPyEndBlockThreads(blocked);
3533 return (found ? str : wxLocale::GetString(origString, origString2, n, domain) );
3534 }
3535
3536 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3537 wxPyLocale* loc;
3538 if (language == -1)
3539 loc = new wxPyLocale();
3540 else
3541 loc = new wxPyLocale(language, flags);
3542 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3543 // for the floating point conversions and such to work right.
3544 #if PY_VERSION_HEX < 0x02040000
3545 setlocale(LC_NUMERIC, "C");
3546 #endif
3547 return loc;
3548 }
3549
3550 #include "wx/wxPython/pydrawxxx.h"
3551
3552 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3553 wxColour col;
3554 self->GetPixel(x, y, &col);
3555 return col;
3556 }
3557 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3558 wxColour col;
3559 self->GetPixel(pt, &col);
3560 return col;
3561 }
3562
3563 SWIGINTERN int
3564 SWIG_AsVal_double (PyObject *obj, double* val)
3565 {
3566 if (PyNumber_Check(obj)) {
3567 if (val) *val = PyFloat_AsDouble(obj);
3568 return SWIG_OK;
3569 }
3570 return SWIG_TypeError;
3571 }
3572
3573 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3574 wxRect rv;
3575 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3576 return rv;
3577 }
3578 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3579 wxRect rect;
3580 self->GetClippingBox(rect);
3581 return rect;
3582 }
3583 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3584 wxArrayInt widths;
3585 self->GetPartialTextExtents(text, widths);
3586 return widths;
3587 }
3588
3589 #define SWIG_From_double PyFloat_FromDouble
3590
3591 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3592 self->SetLogicalOrigin(point.x, point.y);
3593 }
3594 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3595 self->SetDeviceOrigin(point.x, point.y);
3596 }
3597 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3598 self->CalcBoundingBox(point.x, point.y);
3599 }
3600 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3601 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3602 }
3603 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3604 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3605 }
3606 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3607 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3608 }
3609 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3610 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3611 }
3612 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3613 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3614 }
3615 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3616 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3617 }
3618
3619 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3620 *x1 = dc->MinX();
3621 *y1 = dc->MinY();
3622 *x2 = dc->MaxX();
3623 *y2 = dc->MaxY();
3624 }
3625
3626
3627 #include <wx/dcbuffer.h>
3628
3629
3630 #include <wx/dcps.h>
3631
3632
3633 #include <wx/metafile.h>
3634
3635
3636 #include <wx/dcsvg.h>
3637
3638
3639 #include <wx/graphics.h>
3640
3641
3642 #if !wxUSE_GRAPHICS_CONTEXT
3643 // C++ stub classes for platforms or build configurations that don't have
3644 // wxGraphicsContext yet.
3645
3646 class wxGraphicsRenderer;
3647 class wxGraphicsMatrix;
3648
3649
3650 class wxGraphicsObject : public wxObject
3651 {
3652 public :
3653 wxGraphicsObject() {}
3654 wxGraphicsObject( wxGraphicsRenderer* ) {
3655 PyErr_SetString(PyExc_NotImplementedError,
3656 "wx.GraphicsObject is not available on this platform.");
3657 }
3658 wxGraphicsObject( const wxGraphicsObject& ) {}
3659 virtual ~wxGraphicsObject() {}
3660 bool IsNull() const { return false; }
3661 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3662 } ;
3663
3664
3665
3666 class wxGraphicsPen : public wxGraphicsObject
3667 {
3668 public:
3669 wxGraphicsPen() {}
3670 virtual ~wxGraphicsPen() {}
3671 } ;
3672 wxGraphicsPen wxNullGraphicsPen;
3673
3674
3675
3676 class wxGraphicsBrush : public wxGraphicsObject
3677 {
3678 public :
3679 wxGraphicsBrush() {}
3680 virtual ~wxGraphicsBrush() {}
3681 } ;
3682 wxGraphicsBrush wxNullGraphicsBrush;
3683
3684
3685
3686 class wxGraphicsFont : public wxGraphicsObject
3687 {
3688 public :
3689 wxGraphicsFont() {}
3690 virtual ~wxGraphicsFont() {}
3691 } ;
3692 wxGraphicsFont wxNullGraphicsFont;
3693
3694
3695
3696 class wxGraphicsPath : public wxGraphicsObject
3697 {
3698 public :
3699 wxGraphicsPath() { }
3700 wxGraphicsPath(wxGraphicsRenderer* ) {
3701 PyErr_SetString(PyExc_NotImplementedError,
3702 "wx.GraphicsPath is not available on this platform.");
3703 }
3704 virtual ~wxGraphicsPath() {}
3705
3706 void MoveToPoint( wxDouble, wxDouble ) {}
3707 void MoveToPoint( const wxPoint2DDouble& ) {}
3708 void AddLineToPoint( wxDouble, wxDouble ) {}
3709 void AddLineToPoint( const wxPoint2DDouble& ) {}
3710 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3711 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3712 void AddPath( const wxGraphicsPath& ) {}
3713 void CloseSubpath() {}
3714 void GetCurrentPoint( wxDouble&, wxDouble&) const {}
3715 wxPoint2DDouble GetCurrentPoint() const { return wxPoint2D(0,0); }
3716 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3717 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
3718
3719 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3720 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3721 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3722 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3723
3724 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3725 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3726 void * GetNativePath() const { return NULL; }
3727 void UnGetNativePath(void *) const {}
3728 void Transform( const wxGraphicsMatrix& ) {}
3729 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) const {}
3730 wxRect2D GetBox() const { return wxRect2D(0,0,0,0); }
3731
3732 bool Contains( wxDouble , wxDouble , int ) const { return false; }
3733 bool Contains( const wxPoint2DDouble& , int ) const { return false; }
3734 };
3735 wxGraphicsPath wxNullGraphicsPath;
3736
3737
3738 class wxGraphicsMatrix : public wxGraphicsObject
3739 {
3740 public :
3741 wxGraphicsMatrix() { }
3742 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3743 PyErr_SetString(PyExc_NotImplementedError,
3744 "wx.GraphicsMatrix is not available on this platform.");
3745 }
3746 virtual ~wxGraphicsMatrix() {}
3747 virtual void Concat( const wxGraphicsMatrix & ) {}
3748 virtual void Copy( const wxGraphicsMatrix & ) {}
3749 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3750 wxDouble , wxDouble ) {}
3751 virtual void Get(wxDouble*, wxDouble*, wxDouble*,
3752 wxDouble*, wxDouble*, wxDouble*) {}
3753 virtual void Invert() {}
3754 virtual bool IsEqual( const wxGraphicsMatrix& t) const { return false; }
3755 virtual bool IsIdentity() const { return false; }
3756 virtual void Translate( wxDouble , wxDouble ) {}
3757 virtual void Scale( wxDouble , wxDouble ) {}
3758 virtual void Rotate( wxDouble ) {}
3759 virtual void TransformPoint( wxDouble *, wxDouble * ) const {}
3760 virtual void TransformDistance( wxDouble *, wxDouble * ) const {}
3761 virtual void * GetNativeMatrix() const { return NULL; }
3762 };
3763 wxGraphicsMatrix wxNullGraphicsMatrix;
3764
3765
3766 class wxGraphicsContext : public wxGraphicsObject
3767 {
3768 public:
3769
3770 wxGraphicsContext(wxGraphicsRenderer* ) {
3771 PyErr_SetString(PyExc_NotImplementedError,
3772 "wx.GraphicsContext is not available on this platform.");
3773 }
3774
3775 virtual ~wxGraphicsContext() {}
3776
3777 static wxGraphicsContext* Create() {
3778 PyErr_SetString(PyExc_NotImplementedError,
3779 "wx.GraphicsContext is not available on this platform.");
3780 return NULL;
3781 }
3782 static wxGraphicsContext* Create( const wxWindowDC& ) {
3783 PyErr_SetString(PyExc_NotImplementedError,
3784 "wx.GraphicsContext is not available on this platform.");
3785 return NULL;
3786 }
3787
3788 static wxGraphicsContext* CreateFromNative( void * ) {
3789 PyErr_SetString(PyExc_NotImplementedError,
3790 "wx.GraphicsContext is not available on this platform.");
3791 return NULL;
3792 }
3793
3794 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3795 PyErr_SetString(PyExc_NotImplementedError,
3796 "wx.GraphicsContext is not available on this platform.");
3797 return NULL;
3798 }
3799
3800 static wxGraphicsContext* Create( wxWindow* ) {
3801 PyErr_SetString(PyExc_NotImplementedError,
3802 "wx.GraphicsContext is not available on this platform.");
3803 return NULL;
3804 }
3805
3806 wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
3807
3808 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3809
3810 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3811
3812 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3813 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
3814
3815 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3816 wxDouble xc, wxDouble yc, wxDouble radius,
3817 const wxColour &oColor, const wxColour &cColor) { return wxNullGraphicsBrush; }
3818
3819 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return wxNullGraphicsFont; }
3820
3821 virtual wxGraphicsMatrix CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3822 wxDouble, wxDouble) { return wxNullGraphicsMatrix; }
3823
3824 virtual void PushState() {}
3825 virtual void PopState() {}
3826 virtual void Clip( const wxRegion & ) {}
3827 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3828 virtual void ResetClip() {}
3829 virtual void * GetNativeContext() { return NULL; }
3830 virtual int GetLogicalFunction() const { return 0; }
3831 virtual bool SetLogicalFunction(int ) {}
3832 virtual void Translate( wxDouble , wxDouble ) {}
3833 virtual void Scale( wxDouble , wxDouble ) {}
3834 virtual void Rotate( wxDouble ) {}
3835 virtual void ConcatTransform( const wxGraphicsMatrix& ) {}
3836 virtual void SetTransform( const wxGraphicsMatrix& ) {}
3837 virtual wxGraphicsMatrix GetTransform() const { return wxNullGraphicsMatrix; }
3838
3839 virtual void SetPen( const wxGraphicsPen& ) {}
3840 void SetPen( const wxPen& ) {}
3841
3842 virtual void SetBrush( const wxGraphicsBrush& ) {}
3843 void SetBrush( const wxBrush& ) {}
3844
3845 virtual void SetFont( const wxGraphicsFont& ) {}
3846 void SetFont( const wxFont&, const wxColour& ) {}
3847
3848 virtual void StrokePath( const wxGraphicsPath & ) {}
3849 virtual void FillPath( const wxGraphicsPath &, int ) {}
3850 virtual void DrawPath( const wxGraphicsPath &, int ) {}
3851
3852 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3853 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3854 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxGraphicsBrush ) {}
3855 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble , wxGraphicsBrush ) {}
3856 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3857 wxDouble *, wxDouble * ) const {}
3858 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3859
3860 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3861 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3862
3863 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3864 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3865 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3866 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3867 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3868 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3869 virtual void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3870 virtual bool ShouldOffset() const { return false; }
3871 };
3872
3873
3874 class wxGraphicsRenderer : public wxObject
3875 {
3876 public :
3877 wxGraphicsRenderer() {
3878 PyErr_SetString(PyExc_NotImplementedError,
3879 "wx.GraphicsRenderer is not available on this platform.");
3880 }
3881
3882 virtual ~wxGraphicsRenderer() {}
3883
3884 static wxGraphicsRenderer* GetDefaultRenderer() {
3885 PyErr_SetString(PyExc_NotImplementedError,
3886 "wx.GraphicsRenderer is not available on this platform.");
3887 return NULL;
3888 }
3889
3890 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3891 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3892 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3893 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3894 virtual wxGraphicsContext * CreateMeasuringContext() { return NULL; }
3895
3896 virtual wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
3897
3898 virtual wxGraphicsMatrix CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3899 wxDouble , wxDouble ) { return wxNullGraphicsMatrix; }
3900
3901 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3902 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3903 virtual wxGraphicsBrush CreateLinearGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble ,
3904 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
3905 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3906 const wxColour &, const wxColour &) { return wxNullGraphicsBrush; }
3907 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGraphicsFont; }
3908 };
3909
3910
3911
3912 class wxGCDC: public wxWindowDC
3913 {
3914 public:
3915 wxGCDC(const wxWindowDC&) {
3916 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3917 PyErr_SetString(PyExc_NotImplementedError,
3918 "wxGCDC is not available on this platform.");
3919 wxPyEndBlockThreads(blocked);
3920 }
3921
3922 wxGCDC(const wxWindow*) {
3923 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3924 PyErr_SetString(PyExc_NotImplementedError,
3925 "wxGCDC is not available on this platform.");
3926 wxPyEndBlockThreads(blocked);
3927 }
3928
3929 wxGCDC() {
3930 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3931 PyErr_SetString(PyExc_NotImplementedError,
3932 "wxGCDC is not available on this platform.");
3933 wxPyEndBlockThreads(blocked);
3934 }
3935
3936 virtual ~wxGCDC() {}
3937
3938 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3939 void SetGraphicsContext( wxGraphicsContext* ) {}
3940 };
3941
3942 #endif
3943
3944 SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3945 if ( !backgroundBrush.IsNull() )
3946 self->DrawText(str, x, y, backgroundBrush);
3947 else
3948 self->DrawText(str, x, y);
3949 }
3950 SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3951 if ( !backgroundBrush.IsNull() )
3952 self->DrawText(str, x, y, angle, backgroundBrush);
3953 else
3954 self->DrawText(str, x, y, angle);
3955 }
3956 SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3957 wxDouble width = 0.0,
3958 height = 0.0;
3959 self->GetTextExtent(text, &width, &height, NULL, NULL);
3960 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3961 PyObject* rv = PyTuple_New(2);
3962 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3963 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3964 return rv;
3965 }
3966 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3967 wxArrayDouble widths;
3968 self->GetPartialTextExtents(text, widths);
3969 return widths;
3970 }
3971 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3972 size_t c1, c2, count;
3973 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3974 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3975
3976 if ( beginP != NULL && endP != NULL )
3977 {
3978 count = wxMin(c1, c2);
3979 self->StrokeLines(count, beginP, endP);
3980 }
3981 delete [] beginP;
3982 delete [] endP;
3983 }
3984
3985 #include "wx/dcgraph.h"
3986
3987
3988 #include <wx/overlay.h>
3989
3990
3991
3992 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3993 self->AddColour(name, wxColour(red, green, blue));
3994 }
3995
3996 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3997 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3998 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3999 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
4000
4001
4002 #include <wx/effects.h>
4003
4004
4005 #include "wx/renderer.h"
4006
4007
4008 SWIGINTERNINLINE PyObject*
4009 SWIG_From_bool (bool value)
4010 {
4011 return PyBool_FromLong(value ? 1 : 0);
4012 }
4013
4014
4015 #include "wx/wxPython/pseudodc.h"
4016
4017 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
4018 wxRect rect;
4019 self->GetIdBounds(id, rect);
4020 return rect;
4021 }
4022 #ifdef __cplusplus
4023 extern "C" {
4024 #endif
4025 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4026 PyObject *resultobj = 0;
4027 wxGDIObject *result = 0 ;
4028
4029 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
4030 {
4031 if (!wxPyCheckForApp()) SWIG_fail;
4032 PyThreadState* __tstate = wxPyBeginAllowThreads();
4033 result = (wxGDIObject *)new wxGDIObject();
4034 wxPyEndAllowThreads(__tstate);
4035 if (PyErr_Occurred()) SWIG_fail;
4036 }
4037 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
4038 return resultobj;
4039 fail:
4040 return NULL;
4041 }
4042
4043
4044 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4045 PyObject *resultobj = 0;
4046 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4047 void *argp1 = 0 ;
4048 int res1 = 0 ;
4049 PyObject *swig_obj[1] ;
4050
4051 if (!args) SWIG_fail;
4052 swig_obj[0] = args;
4053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4054 if (!SWIG_IsOK(res1)) {
4055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4056 }
4057 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4058 {
4059 PyThreadState* __tstate = wxPyBeginAllowThreads();
4060 delete arg1;
4061
4062 wxPyEndAllowThreads(__tstate);
4063 if (PyErr_Occurred()) SWIG_fail;
4064 }
4065 resultobj = SWIG_Py_Void();
4066 return resultobj;
4067 fail:
4068 return NULL;
4069 }
4070
4071
4072 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4073 PyObject *resultobj = 0;
4074 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4075 bool result;
4076 void *argp1 = 0 ;
4077 int res1 = 0 ;
4078 PyObject *swig_obj[1] ;
4079
4080 if (!args) SWIG_fail;
4081 swig_obj[0] = args;
4082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4083 if (!SWIG_IsOK(res1)) {
4084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4085 }
4086 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4087 {
4088 PyThreadState* __tstate = wxPyBeginAllowThreads();
4089 result = (bool)(arg1)->IsNull();
4090 wxPyEndAllowThreads(__tstate);
4091 if (PyErr_Occurred()) SWIG_fail;
4092 }
4093 {
4094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4095 }
4096 return resultobj;
4097 fail:
4098 return NULL;
4099 }
4100
4101
4102 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4103 PyObject *obj;
4104 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4105 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4106 return SWIG_Py_Void();
4107 }
4108
4109 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4110 return SWIG_Python_InitShadowInstance(args);
4111 }
4112
4113 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4114 PyObject *resultobj = 0;
4115 byte arg1 = (byte) 0 ;
4116 byte arg2 = (byte) 0 ;
4117 byte arg3 = (byte) 0 ;
4118 byte arg4 = (byte) wxALPHA_OPAQUE ;
4119 wxColour *result = 0 ;
4120 unsigned char val1 ;
4121 int ecode1 = 0 ;
4122 unsigned char val2 ;
4123 int ecode2 = 0 ;
4124 unsigned char val3 ;
4125 int ecode3 = 0 ;
4126 unsigned char val4 ;
4127 int ecode4 = 0 ;
4128 PyObject * obj0 = 0 ;
4129 PyObject * obj1 = 0 ;
4130 PyObject * obj2 = 0 ;
4131 PyObject * obj3 = 0 ;
4132 char * kwnames[] = {
4133 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4134 };
4135
4136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4137 if (obj0) {
4138 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4139 if (!SWIG_IsOK(ecode1)) {
4140 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4141 }
4142 arg1 = static_cast< byte >(val1);
4143 }
4144 if (obj1) {
4145 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4146 if (!SWIG_IsOK(ecode2)) {
4147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4148 }
4149 arg2 = static_cast< byte >(val2);
4150 }
4151 if (obj2) {
4152 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4153 if (!SWIG_IsOK(ecode3)) {
4154 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4155 }
4156 arg3 = static_cast< byte >(val3);
4157 }
4158 if (obj3) {
4159 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4160 if (!SWIG_IsOK(ecode4)) {
4161 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4162 }
4163 arg4 = static_cast< byte >(val4);
4164 }
4165 {
4166 PyThreadState* __tstate = wxPyBeginAllowThreads();
4167 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
4168 wxPyEndAllowThreads(__tstate);
4169 if (PyErr_Occurred()) SWIG_fail;
4170 }
4171 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4172 return resultobj;
4173 fail:
4174 return NULL;
4175 }
4176
4177
4178 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4179 PyObject *resultobj = 0;
4180 wxString *arg1 = 0 ;
4181 wxColour *result = 0 ;
4182 bool temp1 = false ;
4183 PyObject * obj0 = 0 ;
4184 char * kwnames[] = {
4185 (char *) "colorName", NULL
4186 };
4187
4188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4189 {
4190 arg1 = wxString_in_helper(obj0);
4191 if (arg1 == NULL) SWIG_fail;
4192 temp1 = true;
4193 }
4194 {
4195 if (!wxPyCheckForApp()) SWIG_fail;
4196 PyThreadState* __tstate = wxPyBeginAllowThreads();
4197 result = (wxColour *)new wxColour((wxString const &)*arg1);
4198 wxPyEndAllowThreads(__tstate);
4199 if (PyErr_Occurred()) SWIG_fail;
4200 }
4201 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4202 {
4203 if (temp1)
4204 delete arg1;
4205 }
4206 return resultobj;
4207 fail:
4208 {
4209 if (temp1)
4210 delete arg1;
4211 }
4212 return NULL;
4213 }
4214
4215
4216 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4217 PyObject *resultobj = 0;
4218 unsigned long arg1 ;
4219 wxColour *result = 0 ;
4220 unsigned long val1 ;
4221 int ecode1 = 0 ;
4222 PyObject * obj0 = 0 ;
4223 char * kwnames[] = {
4224 (char *) "colRGB", NULL
4225 };
4226
4227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4228 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4229 if (!SWIG_IsOK(ecode1)) {
4230 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4231 }
4232 arg1 = static_cast< unsigned long >(val1);
4233 {
4234 PyThreadState* __tstate = wxPyBeginAllowThreads();
4235 result = (wxColour *)new wxColour(arg1);
4236 wxPyEndAllowThreads(__tstate);
4237 if (PyErr_Occurred()) SWIG_fail;
4238 }
4239 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4240 return resultobj;
4241 fail:
4242 return NULL;
4243 }
4244
4245
4246 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4247 PyObject *resultobj = 0;
4248 wxColour *arg1 = (wxColour *) 0 ;
4249 void *argp1 = 0 ;
4250 int res1 = 0 ;
4251 PyObject *swig_obj[1] ;
4252
4253 if (!args) SWIG_fail;
4254 swig_obj[0] = args;
4255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4256 if (!SWIG_IsOK(res1)) {
4257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4258 }
4259 arg1 = reinterpret_cast< wxColour * >(argp1);
4260 {
4261 PyThreadState* __tstate = wxPyBeginAllowThreads();
4262 delete arg1;
4263
4264 wxPyEndAllowThreads(__tstate);
4265 if (PyErr_Occurred()) SWIG_fail;
4266 }
4267 resultobj = SWIG_Py_Void();
4268 return resultobj;
4269 fail:
4270 return NULL;
4271 }
4272
4273
4274 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4275 PyObject *resultobj = 0;
4276 wxColour *arg1 = (wxColour *) 0 ;
4277 byte result;
4278 void *argp1 = 0 ;
4279 int res1 = 0 ;
4280 PyObject *swig_obj[1] ;
4281
4282 if (!args) SWIG_fail;
4283 swig_obj[0] = args;
4284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4285 if (!SWIG_IsOK(res1)) {
4286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4287 }
4288 arg1 = reinterpret_cast< wxColour * >(argp1);
4289 {
4290 PyThreadState* __tstate = wxPyBeginAllowThreads();
4291 result = (byte)(arg1)->Red();
4292 wxPyEndAllowThreads(__tstate);
4293 if (PyErr_Occurred()) SWIG_fail;
4294 }
4295 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4296 return resultobj;
4297 fail:
4298 return NULL;
4299 }
4300
4301
4302 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4303 PyObject *resultobj = 0;
4304 wxColour *arg1 = (wxColour *) 0 ;
4305 byte result;
4306 void *argp1 = 0 ;
4307 int res1 = 0 ;
4308 PyObject *swig_obj[1] ;
4309
4310 if (!args) SWIG_fail;
4311 swig_obj[0] = args;
4312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4313 if (!SWIG_IsOK(res1)) {
4314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4315 }
4316 arg1 = reinterpret_cast< wxColour * >(argp1);
4317 {
4318 PyThreadState* __tstate = wxPyBeginAllowThreads();
4319 result = (byte)(arg1)->Green();
4320 wxPyEndAllowThreads(__tstate);
4321 if (PyErr_Occurred()) SWIG_fail;
4322 }
4323 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4324 return resultobj;
4325 fail:
4326 return NULL;
4327 }
4328
4329
4330 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4331 PyObject *resultobj = 0;
4332 wxColour *arg1 = (wxColour *) 0 ;
4333 byte result;
4334 void *argp1 = 0 ;
4335 int res1 = 0 ;
4336 PyObject *swig_obj[1] ;
4337
4338 if (!args) SWIG_fail;
4339 swig_obj[0] = args;
4340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4341 if (!SWIG_IsOK(res1)) {
4342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4343 }
4344 arg1 = reinterpret_cast< wxColour * >(argp1);
4345 {
4346 PyThreadState* __tstate = wxPyBeginAllowThreads();
4347 result = (byte)(arg1)->Blue();
4348 wxPyEndAllowThreads(__tstate);
4349 if (PyErr_Occurred()) SWIG_fail;
4350 }
4351 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4352 return resultobj;
4353 fail:
4354 return NULL;
4355 }
4356
4357
4358 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4359 PyObject *resultobj = 0;
4360 wxColour *arg1 = (wxColour *) 0 ;
4361 byte result;
4362 void *argp1 = 0 ;
4363 int res1 = 0 ;
4364 PyObject *swig_obj[1] ;
4365
4366 if (!args) SWIG_fail;
4367 swig_obj[0] = args;
4368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4369 if (!SWIG_IsOK(res1)) {
4370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4371 }
4372 arg1 = reinterpret_cast< wxColour * >(argp1);
4373 {
4374 PyThreadState* __tstate = wxPyBeginAllowThreads();
4375 result = (byte)(arg1)->Alpha();
4376 wxPyEndAllowThreads(__tstate);
4377 if (PyErr_Occurred()) SWIG_fail;
4378 }
4379 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4380 return resultobj;
4381 fail:
4382 return NULL;
4383 }
4384
4385
4386 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4387 PyObject *resultobj = 0;
4388 wxColour *arg1 = (wxColour *) 0 ;
4389 bool result;
4390 void *argp1 = 0 ;
4391 int res1 = 0 ;
4392 PyObject *swig_obj[1] ;
4393
4394 if (!args) SWIG_fail;
4395 swig_obj[0] = args;
4396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4397 if (!SWIG_IsOK(res1)) {
4398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4399 }
4400 arg1 = reinterpret_cast< wxColour * >(argp1);
4401 {
4402 PyThreadState* __tstate = wxPyBeginAllowThreads();
4403 result = (bool)(arg1)->IsOk();
4404 wxPyEndAllowThreads(__tstate);
4405 if (PyErr_Occurred()) SWIG_fail;
4406 }
4407 {
4408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4409 }
4410 return resultobj;
4411 fail:
4412 return NULL;
4413 }
4414
4415
4416 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4417 PyObject *resultobj = 0;
4418 wxColour *arg1 = (wxColour *) 0 ;
4419 byte arg2 ;
4420 byte arg3 ;
4421 byte arg4 ;
4422 byte arg5 = (byte) wxALPHA_OPAQUE ;
4423 void *argp1 = 0 ;
4424 int res1 = 0 ;
4425 unsigned char val2 ;
4426 int ecode2 = 0 ;
4427 unsigned char val3 ;
4428 int ecode3 = 0 ;
4429 unsigned char val4 ;
4430 int ecode4 = 0 ;
4431 unsigned char val5 ;
4432 int ecode5 = 0 ;
4433 PyObject * obj0 = 0 ;
4434 PyObject * obj1 = 0 ;
4435 PyObject * obj2 = 0 ;
4436 PyObject * obj3 = 0 ;
4437 PyObject * obj4 = 0 ;
4438 char * kwnames[] = {
4439 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4440 };
4441
4442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4444 if (!SWIG_IsOK(res1)) {
4445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4446 }
4447 arg1 = reinterpret_cast< wxColour * >(argp1);
4448 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4449 if (!SWIG_IsOK(ecode2)) {
4450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4451 }
4452 arg2 = static_cast< byte >(val2);
4453 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4454 if (!SWIG_IsOK(ecode3)) {
4455 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4456 }
4457 arg3 = static_cast< byte >(val3);
4458 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4459 if (!SWIG_IsOK(ecode4)) {
4460 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4461 }
4462 arg4 = static_cast< byte >(val4);
4463 if (obj4) {
4464 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4465 if (!SWIG_IsOK(ecode5)) {
4466 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4467 }
4468 arg5 = static_cast< byte >(val5);
4469 }
4470 {
4471 PyThreadState* __tstate = wxPyBeginAllowThreads();
4472 (arg1)->Set(arg2,arg3,arg4,arg5);
4473 wxPyEndAllowThreads(__tstate);
4474 if (PyErr_Occurred()) SWIG_fail;
4475 }
4476 resultobj = SWIG_Py_Void();
4477 return resultobj;
4478 fail:
4479 return NULL;
4480 }
4481
4482
4483 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4484 PyObject *resultobj = 0;
4485 wxColour *arg1 = (wxColour *) 0 ;
4486 unsigned long arg2 ;
4487 void *argp1 = 0 ;
4488 int res1 = 0 ;
4489 unsigned long val2 ;
4490 int ecode2 = 0 ;
4491 PyObject * obj0 = 0 ;
4492 PyObject * obj1 = 0 ;
4493 char * kwnames[] = {
4494 (char *) "self",(char *) "colRGB", NULL
4495 };
4496
4497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4499 if (!SWIG_IsOK(res1)) {
4500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4501 }
4502 arg1 = reinterpret_cast< wxColour * >(argp1);
4503 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4504 if (!SWIG_IsOK(ecode2)) {
4505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4506 }
4507 arg2 = static_cast< unsigned long >(val2);
4508 {
4509 PyThreadState* __tstate = wxPyBeginAllowThreads();
4510 (arg1)->Set(arg2);
4511 wxPyEndAllowThreads(__tstate);
4512 if (PyErr_Occurred()) SWIG_fail;
4513 }
4514 resultobj = SWIG_Py_Void();
4515 return resultobj;
4516 fail:
4517 return NULL;
4518 }
4519
4520
4521 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4522 PyObject *resultobj = 0;
4523 wxColour *arg1 = (wxColour *) 0 ;
4524 wxString *arg2 = 0 ;
4525 void *argp1 = 0 ;
4526 int res1 = 0 ;
4527 bool temp2 = false ;
4528 PyObject * obj0 = 0 ;
4529 PyObject * obj1 = 0 ;
4530 char * kwnames[] = {
4531 (char *) "self",(char *) "colourName", NULL
4532 };
4533
4534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4536 if (!SWIG_IsOK(res1)) {
4537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4538 }
4539 arg1 = reinterpret_cast< wxColour * >(argp1);
4540 {
4541 arg2 = wxString_in_helper(obj1);
4542 if (arg2 == NULL) SWIG_fail;
4543 temp2 = true;
4544 }
4545 {
4546 PyThreadState* __tstate = wxPyBeginAllowThreads();
4547 (arg1)->Set((wxString const &)*arg2);
4548 wxPyEndAllowThreads(__tstate);
4549 if (PyErr_Occurred()) SWIG_fail;
4550 }
4551 resultobj = SWIG_Py_Void();
4552 {
4553 if (temp2)
4554 delete arg2;
4555 }
4556 return resultobj;
4557 fail:
4558 {
4559 if (temp2)
4560 delete arg2;
4561 }
4562 return NULL;
4563 }
4564
4565
4566 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4567 PyObject *resultobj = 0;
4568 wxColour *arg1 = (wxColour *) 0 ;
4569 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4570 wxString result;
4571 void *argp1 = 0 ;
4572 int res1 = 0 ;
4573 long val2 ;
4574 int ecode2 = 0 ;
4575 PyObject * obj0 = 0 ;
4576 PyObject * obj1 = 0 ;
4577 char * kwnames[] = {
4578 (char *) "self",(char *) "flags", NULL
4579 };
4580
4581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4583 if (!SWIG_IsOK(res1)) {
4584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4585 }
4586 arg1 = reinterpret_cast< wxColour * >(argp1);
4587 if (obj1) {
4588 ecode2 = SWIG_AsVal_long(obj1, &val2);
4589 if (!SWIG_IsOK(ecode2)) {
4590 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4591 }
4592 arg2 = static_cast< long >(val2);
4593 }
4594 {
4595 PyThreadState* __tstate = wxPyBeginAllowThreads();
4596 result = ((wxColour const *)arg1)->GetAsString(arg2);
4597 wxPyEndAllowThreads(__tstate);
4598 if (PyErr_Occurred()) SWIG_fail;
4599 }
4600 {
4601 #if wxUSE_UNICODE
4602 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4603 #else
4604 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4605 #endif
4606 }
4607 return resultobj;
4608 fail:
4609 return NULL;
4610 }
4611
4612
4613 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4614 PyObject *resultobj = 0;
4615 wxColour *arg1 = (wxColour *) 0 ;
4616 long result;
4617 void *argp1 = 0 ;
4618 int res1 = 0 ;
4619 PyObject *swig_obj[1] ;
4620
4621 if (!args) SWIG_fail;
4622 swig_obj[0] = args;
4623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4624 if (!SWIG_IsOK(res1)) {
4625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4626 }
4627 arg1 = reinterpret_cast< wxColour * >(argp1);
4628 {
4629 PyThreadState* __tstate = wxPyBeginAllowThreads();
4630 result = (long)((wxColour const *)arg1)->GetPixel();
4631 wxPyEndAllowThreads(__tstate);
4632 if (PyErr_Occurred()) SWIG_fail;
4633 }
4634 resultobj = SWIG_From_long(static_cast< long >(result));
4635 return resultobj;
4636 fail:
4637 return NULL;
4638 }
4639
4640
4641 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4642 PyObject *resultobj = 0;
4643 wxColour *arg1 = (wxColour *) 0 ;
4644 PyObject *arg2 = (PyObject *) 0 ;
4645 bool result;
4646 void *argp1 = 0 ;
4647 int res1 = 0 ;
4648 PyObject * obj0 = 0 ;
4649 PyObject * obj1 = 0 ;
4650 char * kwnames[] = {
4651 (char *) "self",(char *) "other", NULL
4652 };
4653
4654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4656 if (!SWIG_IsOK(res1)) {
4657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4658 }
4659 arg1 = reinterpret_cast< wxColour * >(argp1);
4660 arg2 = obj1;
4661 {
4662 result = (bool)wxColour___eq__(arg1,arg2);
4663 if (PyErr_Occurred()) SWIG_fail;
4664 }
4665 {
4666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4667 }
4668 return resultobj;
4669 fail:
4670 return NULL;
4671 }
4672
4673
4674 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4675 PyObject *resultobj = 0;
4676 wxColour *arg1 = (wxColour *) 0 ;
4677 PyObject *arg2 = (PyObject *) 0 ;
4678 bool result;
4679 void *argp1 = 0 ;
4680 int res1 = 0 ;
4681 PyObject * obj0 = 0 ;
4682 PyObject * obj1 = 0 ;
4683 char * kwnames[] = {
4684 (char *) "self",(char *) "other", NULL
4685 };
4686
4687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4689 if (!SWIG_IsOK(res1)) {
4690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4691 }
4692 arg1 = reinterpret_cast< wxColour * >(argp1);
4693 arg2 = obj1;
4694 {
4695 result = (bool)wxColour___ne__(arg1,arg2);
4696 if (PyErr_Occurred()) SWIG_fail;
4697 }
4698 {
4699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4700 }
4701 return resultobj;
4702 fail:
4703 return NULL;
4704 }
4705
4706
4707 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4708 PyObject *resultobj = 0;
4709 wxColour *arg1 = (wxColour *) 0 ;
4710 bool arg2 = (bool) false ;
4711 PyObject *result = 0 ;
4712 void *argp1 = 0 ;
4713 int res1 = 0 ;
4714 bool val2 ;
4715 int ecode2 = 0 ;
4716 PyObject * obj0 = 0 ;
4717 PyObject * obj1 = 0 ;
4718 char * kwnames[] = {
4719 (char *) "self",(char *) "includeAlpha", NULL
4720 };
4721
4722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4724 if (!SWIG_IsOK(res1)) {
4725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4726 }
4727 arg1 = reinterpret_cast< wxColour * >(argp1);
4728 if (obj1) {
4729 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4730 if (!SWIG_IsOK(ecode2)) {
4731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4732 }
4733 arg2 = static_cast< bool >(val2);
4734 }
4735 {
4736 result = (PyObject *)wxColour_Get(arg1,arg2);
4737 if (PyErr_Occurred()) SWIG_fail;
4738 }
4739 resultobj = result;
4740 return resultobj;
4741 fail:
4742 return NULL;
4743 }
4744
4745
4746 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4747 PyObject *resultobj = 0;
4748 wxColour *arg1 = (wxColour *) 0 ;
4749 unsigned long result;
4750 void *argp1 = 0 ;
4751 int res1 = 0 ;
4752 PyObject *swig_obj[1] ;
4753
4754 if (!args) SWIG_fail;
4755 swig_obj[0] = args;
4756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4757 if (!SWIG_IsOK(res1)) {
4758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4759 }
4760 arg1 = reinterpret_cast< wxColour * >(argp1);
4761 {
4762 result = (unsigned long)wxColour_GetRGB(arg1);
4763 if (PyErr_Occurred()) SWIG_fail;
4764 }
4765 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4766 return resultobj;
4767 fail:
4768 return NULL;
4769 }
4770
4771
4772 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4773 PyObject *obj;
4774 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4775 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4776 return SWIG_Py_Void();
4777 }
4778
4779 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4780 return SWIG_Python_InitShadowInstance(args);
4781 }
4782
4783 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4784 PyObject *resultobj = 0;
4785 int arg1 ;
4786 unsigned char *arg2 = (unsigned char *) 0 ;
4787 unsigned char *arg3 = (unsigned char *) 0 ;
4788 unsigned char *arg4 = (unsigned char *) 0 ;
4789 wxPalette *result = 0 ;
4790 int val1 ;
4791 int ecode1 = 0 ;
4792 void *argp2 = 0 ;
4793 int res2 = 0 ;
4794 void *argp3 = 0 ;
4795 int res3 = 0 ;
4796 void *argp4 = 0 ;
4797 int res4 = 0 ;
4798 PyObject * obj0 = 0 ;
4799 PyObject * obj1 = 0 ;
4800 PyObject * obj2 = 0 ;
4801 PyObject * obj3 = 0 ;
4802 char * kwnames[] = {
4803 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4804 };
4805
4806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4807 ecode1 = SWIG_AsVal_int(obj0, &val1);
4808 if (!SWIG_IsOK(ecode1)) {
4809 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4810 }
4811 arg1 = static_cast< int >(val1);
4812 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4813 if (!SWIG_IsOK(res2)) {
4814 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4815 }
4816 arg2 = reinterpret_cast< unsigned char * >(argp2);
4817 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4818 if (!SWIG_IsOK(res3)) {
4819 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4820 }
4821 arg3 = reinterpret_cast< unsigned char * >(argp3);
4822 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4823 if (!SWIG_IsOK(res4)) {
4824 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4825 }
4826 arg4 = reinterpret_cast< unsigned char * >(argp4);
4827 {
4828 if (!wxPyCheckForApp()) SWIG_fail;
4829 PyThreadState* __tstate = wxPyBeginAllowThreads();
4830 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4831 wxPyEndAllowThreads(__tstate);
4832 if (PyErr_Occurred()) SWIG_fail;
4833 }
4834 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4835 return resultobj;
4836 fail:
4837 return NULL;
4838 }
4839
4840
4841 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4842 PyObject *resultobj = 0;
4843 wxPalette *arg1 = (wxPalette *) 0 ;
4844 void *argp1 = 0 ;
4845 int res1 = 0 ;
4846 PyObject *swig_obj[1] ;
4847
4848 if (!args) SWIG_fail;
4849 swig_obj[0] = args;
4850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4851 if (!SWIG_IsOK(res1)) {
4852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4853 }
4854 arg1 = reinterpret_cast< wxPalette * >(argp1);
4855 {
4856 PyThreadState* __tstate = wxPyBeginAllowThreads();
4857 delete arg1;
4858
4859 wxPyEndAllowThreads(__tstate);
4860 if (PyErr_Occurred()) SWIG_fail;
4861 }
4862 resultobj = SWIG_Py_Void();
4863 return resultobj;
4864 fail:
4865 return NULL;
4866 }
4867
4868
4869 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4870 PyObject *resultobj = 0;
4871 wxPalette *arg1 = (wxPalette *) 0 ;
4872 byte arg2 ;
4873 byte arg3 ;
4874 byte arg4 ;
4875 int result;
4876 void *argp1 = 0 ;
4877 int res1 = 0 ;
4878 unsigned char val2 ;
4879 int ecode2 = 0 ;
4880 unsigned char val3 ;
4881 int ecode3 = 0 ;
4882 unsigned char val4 ;
4883 int ecode4 = 0 ;
4884 PyObject * obj0 = 0 ;
4885 PyObject * obj1 = 0 ;
4886 PyObject * obj2 = 0 ;
4887 PyObject * obj3 = 0 ;
4888 char * kwnames[] = {
4889 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4890 };
4891
4892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4894 if (!SWIG_IsOK(res1)) {
4895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4896 }
4897 arg1 = reinterpret_cast< wxPalette * >(argp1);
4898 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4899 if (!SWIG_IsOK(ecode2)) {
4900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4901 }
4902 arg2 = static_cast< byte >(val2);
4903 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4904 if (!SWIG_IsOK(ecode3)) {
4905 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4906 }
4907 arg3 = static_cast< byte >(val3);
4908 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4909 if (!SWIG_IsOK(ecode4)) {
4910 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4911 }
4912 arg4 = static_cast< byte >(val4);
4913 {
4914 PyThreadState* __tstate = wxPyBeginAllowThreads();
4915 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4916 wxPyEndAllowThreads(__tstate);
4917 if (PyErr_Occurred()) SWIG_fail;
4918 }
4919 resultobj = SWIG_From_int(static_cast< int >(result));
4920 return resultobj;
4921 fail:
4922 return NULL;
4923 }
4924
4925
4926 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4927 PyObject *resultobj = 0;
4928 wxPalette *arg1 = (wxPalette *) 0 ;
4929 int arg2 ;
4930 byte *arg3 = (byte *) 0 ;
4931 byte *arg4 = (byte *) 0 ;
4932 byte *arg5 = (byte *) 0 ;
4933 bool result;
4934 void *argp1 = 0 ;
4935 int res1 = 0 ;
4936 int val2 ;
4937 int ecode2 = 0 ;
4938 byte temp3 ;
4939 int res3 = SWIG_TMPOBJ ;
4940 byte temp4 ;
4941 int res4 = SWIG_TMPOBJ ;
4942 byte temp5 ;
4943 int res5 = SWIG_TMPOBJ ;
4944 PyObject * obj0 = 0 ;
4945 PyObject * obj1 = 0 ;
4946 char * kwnames[] = {
4947 (char *) "self",(char *) "pixel", NULL
4948 };
4949
4950 arg3 = &temp3;
4951 arg4 = &temp4;
4952 arg5 = &temp5;
4953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4955 if (!SWIG_IsOK(res1)) {
4956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4957 }
4958 arg1 = reinterpret_cast< wxPalette * >(argp1);
4959 ecode2 = SWIG_AsVal_int(obj1, &val2);
4960 if (!SWIG_IsOK(ecode2)) {
4961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4962 }
4963 arg2 = static_cast< int >(val2);
4964 {
4965 PyThreadState* __tstate = wxPyBeginAllowThreads();
4966 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4967 wxPyEndAllowThreads(__tstate);
4968 if (PyErr_Occurred()) SWIG_fail;
4969 }
4970 {
4971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4972 }
4973 if (SWIG_IsTmpObj(res3)) {
4974 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4975 } else {
4976 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4977 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4978 }
4979 if (SWIG_IsTmpObj(res4)) {
4980 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4981 } else {
4982 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4983 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4984 }
4985 if (SWIG_IsTmpObj(res5)) {
4986 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4987 } else {
4988 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4989 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4990 }
4991 return resultobj;
4992 fail:
4993 return NULL;
4994 }
4995
4996
4997 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4998 PyObject *resultobj = 0;
4999 wxPalette *arg1 = (wxPalette *) 0 ;
5000 int result;
5001 void *argp1 = 0 ;
5002 int res1 = 0 ;
5003 PyObject *swig_obj[1] ;
5004
5005 if (!args) SWIG_fail;
5006 swig_obj[0] = args;
5007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5008 if (!SWIG_IsOK(res1)) {
5009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
5010 }
5011 arg1 = reinterpret_cast< wxPalette * >(argp1);
5012 {
5013 PyThreadState* __tstate = wxPyBeginAllowThreads();
5014 result = (int)((wxPalette const *)arg1)->GetColoursCount();
5015 wxPyEndAllowThreads(__tstate);
5016 if (PyErr_Occurred()) SWIG_fail;
5017 }
5018 resultobj = SWIG_From_int(static_cast< int >(result));
5019 return resultobj;
5020 fail:
5021 return NULL;
5022 }
5023
5024
5025 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5026 PyObject *resultobj = 0;
5027 wxPalette *arg1 = (wxPalette *) 0 ;
5028 bool result;
5029 void *argp1 = 0 ;
5030 int res1 = 0 ;
5031 PyObject *swig_obj[1] ;
5032
5033 if (!args) SWIG_fail;
5034 swig_obj[0] = args;
5035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5036 if (!SWIG_IsOK(res1)) {
5037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
5038 }
5039 arg1 = reinterpret_cast< wxPalette * >(argp1);
5040 {
5041 PyThreadState* __tstate = wxPyBeginAllowThreads();
5042 result = (bool)(arg1)->IsOk();
5043 wxPyEndAllowThreads(__tstate);
5044 if (PyErr_Occurred()) SWIG_fail;
5045 }
5046 {
5047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5048 }
5049 return resultobj;
5050 fail:
5051 return NULL;
5052 }
5053
5054
5055 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5056 PyObject *obj;
5057 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5058 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5059 return SWIG_Py_Void();
5060 }
5061
5062 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5063 return SWIG_Python_InitShadowInstance(args);
5064 }
5065
5066 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5067 PyObject *resultobj = 0;
5068 wxColour *arg1 = 0 ;
5069 int arg2 = (int) 1 ;
5070 int arg3 = (int) wxSOLID ;
5071 wxPen *result = 0 ;
5072 wxColour temp1 ;
5073 int val2 ;
5074 int ecode2 = 0 ;
5075 int val3 ;
5076 int ecode3 = 0 ;
5077 PyObject * obj0 = 0 ;
5078 PyObject * obj1 = 0 ;
5079 PyObject * obj2 = 0 ;
5080 char * kwnames[] = {
5081 (char *) "colour",(char *) "width",(char *) "style", NULL
5082 };
5083
5084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5085 {
5086 arg1 = &temp1;
5087 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5088 }
5089 if (obj1) {
5090 ecode2 = SWIG_AsVal_int(obj1, &val2);
5091 if (!SWIG_IsOK(ecode2)) {
5092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5093 }
5094 arg2 = static_cast< int >(val2);
5095 }
5096 if (obj2) {
5097 ecode3 = SWIG_AsVal_int(obj2, &val3);
5098 if (!SWIG_IsOK(ecode3)) {
5099 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5100 }
5101 arg3 = static_cast< int >(val3);
5102 }
5103 {
5104 if (!wxPyCheckForApp()) SWIG_fail;
5105 PyThreadState* __tstate = wxPyBeginAllowThreads();
5106 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5107 wxPyEndAllowThreads(__tstate);
5108 if (PyErr_Occurred()) SWIG_fail;
5109 }
5110 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5111 return resultobj;
5112 fail:
5113 return NULL;
5114 }
5115
5116
5117 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5118 PyObject *resultobj = 0;
5119 wxPen *arg1 = (wxPen *) 0 ;
5120 void *argp1 = 0 ;
5121 int res1 = 0 ;
5122 PyObject *swig_obj[1] ;
5123
5124 if (!args) SWIG_fail;
5125 swig_obj[0] = args;
5126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5127 if (!SWIG_IsOK(res1)) {
5128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5129 }
5130 arg1 = reinterpret_cast< wxPen * >(argp1);
5131 {
5132 PyThreadState* __tstate = wxPyBeginAllowThreads();
5133 delete arg1;
5134
5135 wxPyEndAllowThreads(__tstate);
5136 if (PyErr_Occurred()) SWIG_fail;
5137 }
5138 resultobj = SWIG_Py_Void();
5139 return resultobj;
5140 fail:
5141 return NULL;
5142 }
5143
5144
5145 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5146 PyObject *resultobj = 0;
5147 wxPen *arg1 = (wxPen *) 0 ;
5148 int result;
5149 void *argp1 = 0 ;
5150 int res1 = 0 ;
5151 PyObject *swig_obj[1] ;
5152
5153 if (!args) SWIG_fail;
5154 swig_obj[0] = args;
5155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5156 if (!SWIG_IsOK(res1)) {
5157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5158 }
5159 arg1 = reinterpret_cast< wxPen * >(argp1);
5160 {
5161 PyThreadState* __tstate = wxPyBeginAllowThreads();
5162 result = (int)(arg1)->GetCap();
5163 wxPyEndAllowThreads(__tstate);
5164 if (PyErr_Occurred()) SWIG_fail;
5165 }
5166 resultobj = SWIG_From_int(static_cast< int >(result));
5167 return resultobj;
5168 fail:
5169 return NULL;
5170 }
5171
5172
5173 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5174 PyObject *resultobj = 0;
5175 wxPen *arg1 = (wxPen *) 0 ;
5176 wxColour result;
5177 void *argp1 = 0 ;
5178 int res1 = 0 ;
5179 PyObject *swig_obj[1] ;
5180
5181 if (!args) SWIG_fail;
5182 swig_obj[0] = args;
5183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5184 if (!SWIG_IsOK(res1)) {
5185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5186 }
5187 arg1 = reinterpret_cast< wxPen * >(argp1);
5188 {
5189 PyThreadState* __tstate = wxPyBeginAllowThreads();
5190 result = (arg1)->GetColour();
5191 wxPyEndAllowThreads(__tstate);
5192 if (PyErr_Occurred()) SWIG_fail;
5193 }
5194 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5195 return resultobj;
5196 fail:
5197 return NULL;
5198 }
5199
5200
5201 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5202 PyObject *resultobj = 0;
5203 wxPen *arg1 = (wxPen *) 0 ;
5204 int result;
5205 void *argp1 = 0 ;
5206 int res1 = 0 ;
5207 PyObject *swig_obj[1] ;
5208
5209 if (!args) SWIG_fail;
5210 swig_obj[0] = args;
5211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5212 if (!SWIG_IsOK(res1)) {
5213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5214 }
5215 arg1 = reinterpret_cast< wxPen * >(argp1);
5216 {
5217 PyThreadState* __tstate = wxPyBeginAllowThreads();
5218 result = (int)(arg1)->GetJoin();
5219 wxPyEndAllowThreads(__tstate);
5220 if (PyErr_Occurred()) SWIG_fail;
5221 }
5222 resultobj = SWIG_From_int(static_cast< int >(result));
5223 return resultobj;
5224 fail:
5225 return NULL;
5226 }
5227
5228
5229 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5230 PyObject *resultobj = 0;
5231 wxPen *arg1 = (wxPen *) 0 ;
5232 int result;
5233 void *argp1 = 0 ;
5234 int res1 = 0 ;
5235 PyObject *swig_obj[1] ;
5236
5237 if (!args) SWIG_fail;
5238 swig_obj[0] = args;
5239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5240 if (!SWIG_IsOK(res1)) {
5241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5242 }
5243 arg1 = reinterpret_cast< wxPen * >(argp1);
5244 {
5245 PyThreadState* __tstate = wxPyBeginAllowThreads();
5246 result = (int)(arg1)->GetStyle();
5247 wxPyEndAllowThreads(__tstate);
5248 if (PyErr_Occurred()) SWIG_fail;
5249 }
5250 resultobj = SWIG_From_int(static_cast< int >(result));
5251 return resultobj;
5252 fail:
5253 return NULL;
5254 }
5255
5256
5257 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5258 PyObject *resultobj = 0;
5259 wxPen *arg1 = (wxPen *) 0 ;
5260 int result;
5261 void *argp1 = 0 ;
5262 int res1 = 0 ;
5263 PyObject *swig_obj[1] ;
5264
5265 if (!args) SWIG_fail;
5266 swig_obj[0] = args;
5267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5268 if (!SWIG_IsOK(res1)) {
5269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5270 }
5271 arg1 = reinterpret_cast< wxPen * >(argp1);
5272 {
5273 PyThreadState* __tstate = wxPyBeginAllowThreads();
5274 result = (int)(arg1)->GetWidth();
5275 wxPyEndAllowThreads(__tstate);
5276 if (PyErr_Occurred()) SWIG_fail;
5277 }
5278 resultobj = SWIG_From_int(static_cast< int >(result));
5279 return resultobj;
5280 fail:
5281 return NULL;
5282 }
5283
5284
5285 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5286 PyObject *resultobj = 0;
5287 wxPen *arg1 = (wxPen *) 0 ;
5288 bool result;
5289 void *argp1 = 0 ;
5290 int res1 = 0 ;
5291 PyObject *swig_obj[1] ;
5292
5293 if (!args) SWIG_fail;
5294 swig_obj[0] = args;
5295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5296 if (!SWIG_IsOK(res1)) {
5297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
5298 }
5299 arg1 = reinterpret_cast< wxPen * >(argp1);
5300 {
5301 PyThreadState* __tstate = wxPyBeginAllowThreads();
5302 result = (bool)(arg1)->IsOk();
5303 wxPyEndAllowThreads(__tstate);
5304 if (PyErr_Occurred()) SWIG_fail;
5305 }
5306 {
5307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5308 }
5309 return resultobj;
5310 fail:
5311 return NULL;
5312 }
5313
5314
5315 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5316 PyObject *resultobj = 0;
5317 wxPen *arg1 = (wxPen *) 0 ;
5318 int arg2 ;
5319 void *argp1 = 0 ;
5320 int res1 = 0 ;
5321 int val2 ;
5322 int ecode2 = 0 ;
5323 PyObject * obj0 = 0 ;
5324 PyObject * obj1 = 0 ;
5325 char * kwnames[] = {
5326 (char *) "self",(char *) "cap_style", NULL
5327 };
5328
5329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5331 if (!SWIG_IsOK(res1)) {
5332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5333 }
5334 arg1 = reinterpret_cast< wxPen * >(argp1);
5335 ecode2 = SWIG_AsVal_int(obj1, &val2);
5336 if (!SWIG_IsOK(ecode2)) {
5337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5338 }
5339 arg2 = static_cast< int >(val2);
5340 {
5341 PyThreadState* __tstate = wxPyBeginAllowThreads();
5342 (arg1)->SetCap(arg2);
5343 wxPyEndAllowThreads(__tstate);
5344 if (PyErr_Occurred()) SWIG_fail;
5345 }
5346 resultobj = SWIG_Py_Void();
5347 return resultobj;
5348 fail:
5349 return NULL;
5350 }
5351
5352
5353 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5354 PyObject *resultobj = 0;
5355 wxPen *arg1 = (wxPen *) 0 ;
5356 wxColour *arg2 = 0 ;
5357 void *argp1 = 0 ;
5358 int res1 = 0 ;
5359 wxColour temp2 ;
5360 PyObject * obj0 = 0 ;
5361 PyObject * obj1 = 0 ;
5362 char * kwnames[] = {
5363 (char *) "self",(char *) "colour", NULL
5364 };
5365
5366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5368 if (!SWIG_IsOK(res1)) {
5369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5370 }
5371 arg1 = reinterpret_cast< wxPen * >(argp1);
5372 {
5373 arg2 = &temp2;
5374 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5375 }
5376 {
5377 PyThreadState* __tstate = wxPyBeginAllowThreads();
5378 (arg1)->SetColour(*arg2);
5379 wxPyEndAllowThreads(__tstate);
5380 if (PyErr_Occurred()) SWIG_fail;
5381 }
5382 resultobj = SWIG_Py_Void();
5383 return resultobj;
5384 fail:
5385 return NULL;
5386 }
5387
5388
5389 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5390 PyObject *resultobj = 0;
5391 wxPen *arg1 = (wxPen *) 0 ;
5392 int arg2 ;
5393 void *argp1 = 0 ;
5394 int res1 = 0 ;
5395 int val2 ;
5396 int ecode2 = 0 ;
5397 PyObject * obj0 = 0 ;
5398 PyObject * obj1 = 0 ;
5399 char * kwnames[] = {
5400 (char *) "self",(char *) "join_style", NULL
5401 };
5402
5403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5405 if (!SWIG_IsOK(res1)) {
5406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5407 }
5408 arg1 = reinterpret_cast< wxPen * >(argp1);
5409 ecode2 = SWIG_AsVal_int(obj1, &val2);
5410 if (!SWIG_IsOK(ecode2)) {
5411 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5412 }
5413 arg2 = static_cast< int >(val2);
5414 {
5415 PyThreadState* __tstate = wxPyBeginAllowThreads();
5416 (arg1)->SetJoin(arg2);
5417 wxPyEndAllowThreads(__tstate);
5418 if (PyErr_Occurred()) SWIG_fail;
5419 }
5420 resultobj = SWIG_Py_Void();
5421 return resultobj;
5422 fail:
5423 return NULL;
5424 }
5425
5426
5427 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5428 PyObject *resultobj = 0;
5429 wxPen *arg1 = (wxPen *) 0 ;
5430 int arg2 ;
5431 void *argp1 = 0 ;
5432 int res1 = 0 ;
5433 int val2 ;
5434 int ecode2 = 0 ;
5435 PyObject * obj0 = 0 ;
5436 PyObject * obj1 = 0 ;
5437 char * kwnames[] = {
5438 (char *) "self",(char *) "style", NULL
5439 };
5440
5441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5443 if (!SWIG_IsOK(res1)) {
5444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5445 }
5446 arg1 = reinterpret_cast< wxPen * >(argp1);
5447 ecode2 = SWIG_AsVal_int(obj1, &val2);
5448 if (!SWIG_IsOK(ecode2)) {
5449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5450 }
5451 arg2 = static_cast< int >(val2);
5452 {
5453 PyThreadState* __tstate = wxPyBeginAllowThreads();
5454 (arg1)->SetStyle(arg2);
5455 wxPyEndAllowThreads(__tstate);
5456 if (PyErr_Occurred()) SWIG_fail;
5457 }
5458 resultobj = SWIG_Py_Void();
5459 return resultobj;
5460 fail:
5461 return NULL;
5462 }
5463
5464
5465 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5466 PyObject *resultobj = 0;
5467 wxPen *arg1 = (wxPen *) 0 ;
5468 int arg2 ;
5469 void *argp1 = 0 ;
5470 int res1 = 0 ;
5471 int val2 ;
5472 int ecode2 = 0 ;
5473 PyObject * obj0 = 0 ;
5474 PyObject * obj1 = 0 ;
5475 char * kwnames[] = {
5476 (char *) "self",(char *) "width", NULL
5477 };
5478
5479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5481 if (!SWIG_IsOK(res1)) {
5482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5483 }
5484 arg1 = reinterpret_cast< wxPen * >(argp1);
5485 ecode2 = SWIG_AsVal_int(obj1, &val2);
5486 if (!SWIG_IsOK(ecode2)) {
5487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5488 }
5489 arg2 = static_cast< int >(val2);
5490 {
5491 PyThreadState* __tstate = wxPyBeginAllowThreads();
5492 (arg1)->SetWidth(arg2);
5493 wxPyEndAllowThreads(__tstate);
5494 if (PyErr_Occurred()) SWIG_fail;
5495 }
5496 resultobj = SWIG_Py_Void();
5497 return resultobj;
5498 fail:
5499 return NULL;
5500 }
5501
5502
5503 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5504 PyObject *resultobj = 0;
5505 wxPen *arg1 = (wxPen *) 0 ;
5506 int arg2 ;
5507 wxDash *arg3 = (wxDash *) 0 ;
5508 void *argp1 = 0 ;
5509 int res1 = 0 ;
5510 PyObject * obj0 = 0 ;
5511 PyObject * obj1 = 0 ;
5512 char * kwnames[] = {
5513 (char *) "self",(char *) "dashes", NULL
5514 };
5515
5516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5518 if (!SWIG_IsOK(res1)) {
5519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5520 }
5521 arg1 = reinterpret_cast< wxPen * >(argp1);
5522 {
5523 arg2 = PyList_Size(obj1);
5524 arg3 = (wxDash*)byte_LIST_helper(obj1);
5525 if (arg3 == NULL) SWIG_fail;
5526 }
5527 {
5528 PyThreadState* __tstate = wxPyBeginAllowThreads();
5529 (arg1)->SetDashes(arg2,arg3);
5530 wxPyEndAllowThreads(__tstate);
5531 if (PyErr_Occurred()) SWIG_fail;
5532 }
5533 resultobj = SWIG_Py_Void();
5534 {
5535 if (arg3) delete [] arg3;
5536 }
5537 return resultobj;
5538 fail:
5539 {
5540 if (arg3) delete [] arg3;
5541 }
5542 return NULL;
5543 }
5544
5545
5546 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5547 PyObject *resultobj = 0;
5548 wxPen *arg1 = (wxPen *) 0 ;
5549 PyObject *result = 0 ;
5550 void *argp1 = 0 ;
5551 int res1 = 0 ;
5552 PyObject *swig_obj[1] ;
5553
5554 if (!args) SWIG_fail;
5555 swig_obj[0] = args;
5556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5557 if (!SWIG_IsOK(res1)) {
5558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5559 }
5560 arg1 = reinterpret_cast< wxPen * >(argp1);
5561 {
5562 PyThreadState* __tstate = wxPyBeginAllowThreads();
5563 result = (PyObject *)wxPen_GetDashes(arg1);
5564 wxPyEndAllowThreads(__tstate);
5565 if (PyErr_Occurred()) SWIG_fail;
5566 }
5567 resultobj = result;
5568 return resultobj;
5569 fail:
5570 return NULL;
5571 }
5572
5573
5574 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5575 PyObject *resultobj = 0;
5576 wxPen *arg1 = (wxPen *) 0 ;
5577 PyObject *arg2 = (PyObject *) 0 ;
5578 PyObject *arg3 = (PyObject *) 0 ;
5579 void *argp1 = 0 ;
5580 int res1 = 0 ;
5581 PyObject * obj0 = 0 ;
5582 PyObject * obj1 = 0 ;
5583 PyObject * obj2 = 0 ;
5584 char * kwnames[] = {
5585 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5586 };
5587
5588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5590 if (!SWIG_IsOK(res1)) {
5591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5592 }
5593 arg1 = reinterpret_cast< wxPen * >(argp1);
5594 arg2 = obj1;
5595 arg3 = obj2;
5596 {
5597 PyThreadState* __tstate = wxPyBeginAllowThreads();
5598 wxPen__SetDashes(arg1,arg2,arg3);
5599 wxPyEndAllowThreads(__tstate);
5600 if (PyErr_Occurred()) SWIG_fail;
5601 }
5602 resultobj = SWIG_Py_Void();
5603 return resultobj;
5604 fail:
5605 return NULL;
5606 }
5607
5608
5609 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5610 PyObject *resultobj = 0;
5611 wxPen *arg1 = (wxPen *) 0 ;
5612 wxPen *arg2 = (wxPen *) 0 ;
5613 bool result;
5614 void *argp1 = 0 ;
5615 int res1 = 0 ;
5616 void *argp2 = 0 ;
5617 int res2 = 0 ;
5618 PyObject * obj0 = 0 ;
5619 PyObject * obj1 = 0 ;
5620 char * kwnames[] = {
5621 (char *) "self",(char *) "other", NULL
5622 };
5623
5624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5626 if (!SWIG_IsOK(res1)) {
5627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5628 }
5629 arg1 = reinterpret_cast< wxPen * >(argp1);
5630 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5631 if (!SWIG_IsOK(res2)) {
5632 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5633 }
5634 arg2 = reinterpret_cast< wxPen * >(argp2);
5635 {
5636 PyThreadState* __tstate = wxPyBeginAllowThreads();
5637 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5638 wxPyEndAllowThreads(__tstate);
5639 if (PyErr_Occurred()) SWIG_fail;
5640 }
5641 {
5642 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5643 }
5644 return resultobj;
5645 fail:
5646 return NULL;
5647 }
5648
5649
5650 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5651 PyObject *resultobj = 0;
5652 wxPen *arg1 = (wxPen *) 0 ;
5653 wxPen *arg2 = (wxPen *) 0 ;
5654 bool result;
5655 void *argp1 = 0 ;
5656 int res1 = 0 ;
5657 void *argp2 = 0 ;
5658 int res2 = 0 ;
5659 PyObject * obj0 = 0 ;
5660 PyObject * obj1 = 0 ;
5661 char * kwnames[] = {
5662 (char *) "self",(char *) "other", NULL
5663 };
5664
5665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5667 if (!SWIG_IsOK(res1)) {
5668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5669 }
5670 arg1 = reinterpret_cast< wxPen * >(argp1);
5671 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5672 if (!SWIG_IsOK(res2)) {
5673 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5674 }
5675 arg2 = reinterpret_cast< wxPen * >(argp2);
5676 {
5677 PyThreadState* __tstate = wxPyBeginAllowThreads();
5678 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5679 wxPyEndAllowThreads(__tstate);
5680 if (PyErr_Occurred()) SWIG_fail;
5681 }
5682 {
5683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5684 }
5685 return resultobj;
5686 fail:
5687 return NULL;
5688 }
5689
5690
5691 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5692 PyObject *obj;
5693 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5694 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5695 return SWIG_Py_Void();
5696 }
5697
5698 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5699 return SWIG_Python_InitShadowInstance(args);
5700 }
5701
5702 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5703 PyObject *resultobj = 0;
5704 wxColour *arg1 = 0 ;
5705 int arg2 = (int) wxSOLID ;
5706 wxBrush *result = 0 ;
5707 wxColour temp1 ;
5708 int val2 ;
5709 int ecode2 = 0 ;
5710 PyObject * obj0 = 0 ;
5711 PyObject * obj1 = 0 ;
5712 char * kwnames[] = {
5713 (char *) "colour",(char *) "style", NULL
5714 };
5715
5716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5717 {
5718 arg1 = &temp1;
5719 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5720 }
5721 if (obj1) {
5722 ecode2 = SWIG_AsVal_int(obj1, &val2);
5723 if (!SWIG_IsOK(ecode2)) {
5724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5725 }
5726 arg2 = static_cast< int >(val2);
5727 }
5728 {
5729 if (!wxPyCheckForApp()) SWIG_fail;
5730 PyThreadState* __tstate = wxPyBeginAllowThreads();
5731 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5732 wxPyEndAllowThreads(__tstate);
5733 if (PyErr_Occurred()) SWIG_fail;
5734 }
5735 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5736 return resultobj;
5737 fail:
5738 return NULL;
5739 }
5740
5741
5742 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5743 PyObject *resultobj = 0;
5744 wxBitmap *arg1 = 0 ;
5745 wxBrush *result = 0 ;
5746 void *argp1 = 0 ;
5747 int res1 = 0 ;
5748 PyObject * obj0 = 0 ;
5749 char * kwnames[] = {
5750 (char *) "stippleBitmap", NULL
5751 };
5752
5753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5754 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5755 if (!SWIG_IsOK(res1)) {
5756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5757 }
5758 if (!argp1) {
5759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5760 }
5761 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5762 {
5763 if (!wxPyCheckForApp()) SWIG_fail;
5764 PyThreadState* __tstate = wxPyBeginAllowThreads();
5765 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5766 wxPyEndAllowThreads(__tstate);
5767 if (PyErr_Occurred()) SWIG_fail;
5768 }
5769 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5770 return resultobj;
5771 fail:
5772 return NULL;
5773 }
5774
5775
5776 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5777 PyObject *resultobj = 0;
5778 wxBrush *arg1 = (wxBrush *) 0 ;
5779 void *argp1 = 0 ;
5780 int res1 = 0 ;
5781 PyObject *swig_obj[1] ;
5782
5783 if (!args) SWIG_fail;
5784 swig_obj[0] = args;
5785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5786 if (!SWIG_IsOK(res1)) {
5787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5788 }
5789 arg1 = reinterpret_cast< wxBrush * >(argp1);
5790 {
5791 PyThreadState* __tstate = wxPyBeginAllowThreads();
5792 delete arg1;
5793
5794 wxPyEndAllowThreads(__tstate);
5795 if (PyErr_Occurred()) SWIG_fail;
5796 }
5797 resultobj = SWIG_Py_Void();
5798 return resultobj;
5799 fail:
5800 return NULL;
5801 }
5802
5803
5804 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5805 PyObject *resultobj = 0;
5806 wxBrush *arg1 = (wxBrush *) 0 ;
5807 wxColour *arg2 = 0 ;
5808 void *argp1 = 0 ;
5809 int res1 = 0 ;
5810 wxColour temp2 ;
5811 PyObject * obj0 = 0 ;
5812 PyObject * obj1 = 0 ;
5813 char * kwnames[] = {
5814 (char *) "self",(char *) "col", NULL
5815 };
5816
5817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5819 if (!SWIG_IsOK(res1)) {
5820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5821 }
5822 arg1 = reinterpret_cast< wxBrush * >(argp1);
5823 {
5824 arg2 = &temp2;
5825 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5826 }
5827 {
5828 PyThreadState* __tstate = wxPyBeginAllowThreads();
5829 (arg1)->SetColour((wxColour const &)*arg2);
5830 wxPyEndAllowThreads(__tstate);
5831 if (PyErr_Occurred()) SWIG_fail;
5832 }
5833 resultobj = SWIG_Py_Void();
5834 return resultobj;
5835 fail:
5836 return NULL;
5837 }
5838
5839
5840 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5841 PyObject *resultobj = 0;
5842 wxBrush *arg1 = (wxBrush *) 0 ;
5843 int arg2 ;
5844 void *argp1 = 0 ;
5845 int res1 = 0 ;
5846 int val2 ;
5847 int ecode2 = 0 ;
5848 PyObject * obj0 = 0 ;
5849 PyObject * obj1 = 0 ;
5850 char * kwnames[] = {
5851 (char *) "self",(char *) "style", NULL
5852 };
5853
5854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5856 if (!SWIG_IsOK(res1)) {
5857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5858 }
5859 arg1 = reinterpret_cast< wxBrush * >(argp1);
5860 ecode2 = SWIG_AsVal_int(obj1, &val2);
5861 if (!SWIG_IsOK(ecode2)) {
5862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5863 }
5864 arg2 = static_cast< int >(val2);
5865 {
5866 PyThreadState* __tstate = wxPyBeginAllowThreads();
5867 (arg1)->SetStyle(arg2);
5868 wxPyEndAllowThreads(__tstate);
5869 if (PyErr_Occurred()) SWIG_fail;
5870 }
5871 resultobj = SWIG_Py_Void();
5872 return resultobj;
5873 fail:
5874 return NULL;
5875 }
5876
5877
5878 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5879 PyObject *resultobj = 0;
5880 wxBrush *arg1 = (wxBrush *) 0 ;
5881 wxBitmap *arg2 = 0 ;
5882 void *argp1 = 0 ;
5883 int res1 = 0 ;
5884 void *argp2 = 0 ;
5885 int res2 = 0 ;
5886 PyObject * obj0 = 0 ;
5887 PyObject * obj1 = 0 ;
5888 char * kwnames[] = {
5889 (char *) "self",(char *) "stipple", NULL
5890 };
5891
5892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5894 if (!SWIG_IsOK(res1)) {
5895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5896 }
5897 arg1 = reinterpret_cast< wxBrush * >(argp1);
5898 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5899 if (!SWIG_IsOK(res2)) {
5900 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5901 }
5902 if (!argp2) {
5903 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5904 }
5905 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5906 {
5907 PyThreadState* __tstate = wxPyBeginAllowThreads();
5908 (arg1)->SetStipple((wxBitmap const &)*arg2);
5909 wxPyEndAllowThreads(__tstate);
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_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5920 PyObject *resultobj = 0;
5921 wxBrush *arg1 = (wxBrush *) 0 ;
5922 wxColour result;
5923 void *argp1 = 0 ;
5924 int res1 = 0 ;
5925 PyObject *swig_obj[1] ;
5926
5927 if (!args) SWIG_fail;
5928 swig_obj[0] = args;
5929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5930 if (!SWIG_IsOK(res1)) {
5931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5932 }
5933 arg1 = reinterpret_cast< wxBrush * >(argp1);
5934 {
5935 PyThreadState* __tstate = wxPyBeginAllowThreads();
5936 result = ((wxBrush const *)arg1)->GetColour();
5937 wxPyEndAllowThreads(__tstate);
5938 if (PyErr_Occurred()) SWIG_fail;
5939 }
5940 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5941 return resultobj;
5942 fail:
5943 return NULL;
5944 }
5945
5946
5947 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5948 PyObject *resultobj = 0;
5949 wxBrush *arg1 = (wxBrush *) 0 ;
5950 int result;
5951 void *argp1 = 0 ;
5952 int res1 = 0 ;
5953 PyObject *swig_obj[1] ;
5954
5955 if (!args) SWIG_fail;
5956 swig_obj[0] = args;
5957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5958 if (!SWIG_IsOK(res1)) {
5959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5960 }
5961 arg1 = reinterpret_cast< wxBrush * >(argp1);
5962 {
5963 PyThreadState* __tstate = wxPyBeginAllowThreads();
5964 result = (int)((wxBrush const *)arg1)->GetStyle();
5965 wxPyEndAllowThreads(__tstate);
5966 if (PyErr_Occurred()) SWIG_fail;
5967 }
5968 resultobj = SWIG_From_int(static_cast< int >(result));
5969 return resultobj;
5970 fail:
5971 return NULL;
5972 }
5973
5974
5975 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5976 PyObject *resultobj = 0;
5977 wxBrush *arg1 = (wxBrush *) 0 ;
5978 wxBitmap *result = 0 ;
5979 void *argp1 = 0 ;
5980 int res1 = 0 ;
5981 PyObject *swig_obj[1] ;
5982
5983 if (!args) SWIG_fail;
5984 swig_obj[0] = args;
5985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5986 if (!SWIG_IsOK(res1)) {
5987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5988 }
5989 arg1 = reinterpret_cast< wxBrush * >(argp1);
5990 {
5991 PyThreadState* __tstate = wxPyBeginAllowThreads();
5992 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5993 wxPyEndAllowThreads(__tstate);
5994 if (PyErr_Occurred()) SWIG_fail;
5995 }
5996 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5997 return resultobj;
5998 fail:
5999 return NULL;
6000 }
6001
6002
6003 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6004 PyObject *resultobj = 0;
6005 wxBrush *arg1 = (wxBrush *) 0 ;
6006 bool result;
6007 void *argp1 = 0 ;
6008 int res1 = 0 ;
6009 PyObject *swig_obj[1] ;
6010
6011 if (!args) SWIG_fail;
6012 swig_obj[0] = args;
6013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6014 if (!SWIG_IsOK(res1)) {
6015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
6016 }
6017 arg1 = reinterpret_cast< wxBrush * >(argp1);
6018 {
6019 PyThreadState* __tstate = wxPyBeginAllowThreads();
6020 result = (bool)((wxBrush const *)arg1)->IsHatch();
6021 wxPyEndAllowThreads(__tstate);
6022 if (PyErr_Occurred()) SWIG_fail;
6023 }
6024 {
6025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6026 }
6027 return resultobj;
6028 fail:
6029 return NULL;
6030 }
6031
6032
6033 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6034 PyObject *resultobj = 0;
6035 wxBrush *arg1 = (wxBrush *) 0 ;
6036 bool result;
6037 void *argp1 = 0 ;
6038 int res1 = 0 ;
6039 PyObject *swig_obj[1] ;
6040
6041 if (!args) SWIG_fail;
6042 swig_obj[0] = args;
6043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6044 if (!SWIG_IsOK(res1)) {
6045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
6046 }
6047 arg1 = reinterpret_cast< wxBrush * >(argp1);
6048 {
6049 PyThreadState* __tstate = wxPyBeginAllowThreads();
6050 result = (bool)(arg1)->IsOk();
6051 wxPyEndAllowThreads(__tstate);
6052 if (PyErr_Occurred()) SWIG_fail;
6053 }
6054 {
6055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6056 }
6057 return resultobj;
6058 fail:
6059 return NULL;
6060 }
6061
6062
6063 SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6064 PyObject *resultobj = 0;
6065 wxBrush *arg1 = (wxBrush *) 0 ;
6066 short result;
6067 void *argp1 = 0 ;
6068 int res1 = 0 ;
6069 PyObject *swig_obj[1] ;
6070
6071 if (!args) SWIG_fail;
6072 swig_obj[0] = args;
6073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6074 if (!SWIG_IsOK(res1)) {
6075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6076 }
6077 arg1 = reinterpret_cast< wxBrush * >(argp1);
6078 {
6079 PyThreadState* __tstate = wxPyBeginAllowThreads();
6080 result = (short)(arg1)->MacGetTheme();
6081 wxPyEndAllowThreads(__tstate);
6082 if (PyErr_Occurred()) SWIG_fail;
6083 }
6084 resultobj = SWIG_From_short(static_cast< short >(result));
6085 return resultobj;
6086 fail:
6087 return NULL;
6088 }
6089
6090
6091 SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6092 PyObject *resultobj = 0;
6093 wxBrush *arg1 = (wxBrush *) 0 ;
6094 short arg2 ;
6095 void *argp1 = 0 ;
6096 int res1 = 0 ;
6097 short val2 ;
6098 int ecode2 = 0 ;
6099 PyObject * obj0 = 0 ;
6100 PyObject * obj1 = 0 ;
6101 char * kwnames[] = {
6102 (char *) "self",(char *) "macThemeBrush", NULL
6103 };
6104
6105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
6106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6107 if (!SWIG_IsOK(res1)) {
6108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6109 }
6110 arg1 = reinterpret_cast< wxBrush * >(argp1);
6111 ecode2 = SWIG_AsVal_short(obj1, &val2);
6112 if (!SWIG_IsOK(ecode2)) {
6113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
6114 }
6115 arg2 = static_cast< short >(val2);
6116 {
6117 PyThreadState* __tstate = wxPyBeginAllowThreads();
6118 (arg1)->MacSetTheme(arg2);
6119 wxPyEndAllowThreads(__tstate);
6120 if (PyErr_Occurred()) SWIG_fail;
6121 }
6122 resultobj = SWIG_Py_Void();
6123 return resultobj;
6124 fail:
6125 return NULL;
6126 }
6127
6128
6129 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6130 PyObject *obj;
6131 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6132 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6133 return SWIG_Py_Void();
6134 }
6135
6136 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6137 return SWIG_Python_InitShadowInstance(args);
6138 }
6139
6140 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6141 PyObject *resultobj = 0;
6142 wxString *arg1 = 0 ;
6143 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6144 wxBitmap *result = 0 ;
6145 bool temp1 = false ;
6146 int val2 ;
6147 int ecode2 = 0 ;
6148 PyObject * obj0 = 0 ;
6149 PyObject * obj1 = 0 ;
6150 char * kwnames[] = {
6151 (char *) "name",(char *) "type", NULL
6152 };
6153
6154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6155 {
6156 arg1 = wxString_in_helper(obj0);
6157 if (arg1 == NULL) SWIG_fail;
6158 temp1 = true;
6159 }
6160 if (obj1) {
6161 ecode2 = SWIG_AsVal_int(obj1, &val2);
6162 if (!SWIG_IsOK(ecode2)) {
6163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6164 }
6165 arg2 = static_cast< wxBitmapType >(val2);
6166 }
6167 {
6168 if (!wxPyCheckForApp()) SWIG_fail;
6169 PyThreadState* __tstate = wxPyBeginAllowThreads();
6170 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6171 wxPyEndAllowThreads(__tstate);
6172 if (PyErr_Occurred()) SWIG_fail;
6173 }
6174 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6175 {
6176 if (temp1)
6177 delete arg1;
6178 }
6179 return resultobj;
6180 fail:
6181 {
6182 if (temp1)
6183 delete arg1;
6184 }
6185 return NULL;
6186 }
6187
6188
6189 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6190 PyObject *resultobj = 0;
6191 wxBitmap *arg1 = (wxBitmap *) 0 ;
6192 void *argp1 = 0 ;
6193 int res1 = 0 ;
6194 PyObject *swig_obj[1] ;
6195
6196 if (!args) SWIG_fail;
6197 swig_obj[0] = args;
6198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6199 if (!SWIG_IsOK(res1)) {
6200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6201 }
6202 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6203 {
6204 delete arg1;
6205
6206 if (PyErr_Occurred()) SWIG_fail;
6207 }
6208 resultobj = SWIG_Py_Void();
6209 return resultobj;
6210 fail:
6211 return NULL;
6212 }
6213
6214
6215 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6216 PyObject *resultobj = 0;
6217 int arg1 ;
6218 int arg2 ;
6219 int arg3 = (int) -1 ;
6220 wxBitmap *result = 0 ;
6221 int val1 ;
6222 int ecode1 = 0 ;
6223 int val2 ;
6224 int ecode2 = 0 ;
6225 int val3 ;
6226 int ecode3 = 0 ;
6227 PyObject * obj0 = 0 ;
6228 PyObject * obj1 = 0 ;
6229 PyObject * obj2 = 0 ;
6230 char * kwnames[] = {
6231 (char *) "width",(char *) "height",(char *) "depth", NULL
6232 };
6233
6234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6235 ecode1 = SWIG_AsVal_int(obj0, &val1);
6236 if (!SWIG_IsOK(ecode1)) {
6237 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6238 }
6239 arg1 = static_cast< int >(val1);
6240 ecode2 = SWIG_AsVal_int(obj1, &val2);
6241 if (!SWIG_IsOK(ecode2)) {
6242 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6243 }
6244 arg2 = static_cast< int >(val2);
6245 if (obj2) {
6246 ecode3 = SWIG_AsVal_int(obj2, &val3);
6247 if (!SWIG_IsOK(ecode3)) {
6248 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6249 }
6250 arg3 = static_cast< int >(val3);
6251 }
6252 {
6253 if (!wxPyCheckForApp()) SWIG_fail;
6254 PyThreadState* __tstate = wxPyBeginAllowThreads();
6255 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6256 wxPyEndAllowThreads(__tstate);
6257 if (PyErr_Occurred()) SWIG_fail;
6258 }
6259 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6260 return resultobj;
6261 fail:
6262 return NULL;
6263 }
6264
6265
6266 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6267 PyObject *resultobj = 0;
6268 wxIcon *arg1 = 0 ;
6269 wxBitmap *result = 0 ;
6270 void *argp1 = 0 ;
6271 int res1 = 0 ;
6272 PyObject * obj0 = 0 ;
6273 char * kwnames[] = {
6274 (char *) "icon", NULL
6275 };
6276
6277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6278 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6279 if (!SWIG_IsOK(res1)) {
6280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6281 }
6282 if (!argp1) {
6283 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6284 }
6285 arg1 = reinterpret_cast< wxIcon * >(argp1);
6286 {
6287 if (!wxPyCheckForApp()) SWIG_fail;
6288 PyThreadState* __tstate = wxPyBeginAllowThreads();
6289 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6290 wxPyEndAllowThreads(__tstate);
6291 if (PyErr_Occurred()) SWIG_fail;
6292 }
6293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6294 return resultobj;
6295 fail:
6296 return NULL;
6297 }
6298
6299
6300 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6301 PyObject *resultobj = 0;
6302 wxImage *arg1 = 0 ;
6303 int arg2 = (int) -1 ;
6304 wxBitmap *result = 0 ;
6305 void *argp1 = 0 ;
6306 int res1 = 0 ;
6307 int val2 ;
6308 int ecode2 = 0 ;
6309 PyObject * obj0 = 0 ;
6310 PyObject * obj1 = 0 ;
6311 char * kwnames[] = {
6312 (char *) "image",(char *) "depth", NULL
6313 };
6314
6315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6316 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6317 if (!SWIG_IsOK(res1)) {
6318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6319 }
6320 if (!argp1) {
6321 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6322 }
6323 arg1 = reinterpret_cast< wxImage * >(argp1);
6324 if (obj1) {
6325 ecode2 = SWIG_AsVal_int(obj1, &val2);
6326 if (!SWIG_IsOK(ecode2)) {
6327 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6328 }
6329 arg2 = static_cast< int >(val2);
6330 }
6331 {
6332 if (!wxPyCheckForApp()) SWIG_fail;
6333 PyThreadState* __tstate = wxPyBeginAllowThreads();
6334 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6335 wxPyEndAllowThreads(__tstate);
6336 if (PyErr_Occurred()) SWIG_fail;
6337 }
6338 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6339 return resultobj;
6340 fail:
6341 return NULL;
6342 }
6343
6344
6345 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6346 PyObject *resultobj = 0;
6347 PyObject *arg1 = (PyObject *) 0 ;
6348 wxBitmap *result = 0 ;
6349 PyObject * obj0 = 0 ;
6350 char * kwnames[] = {
6351 (char *) "listOfStrings", NULL
6352 };
6353
6354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6355 arg1 = obj0;
6356 {
6357 if (!wxPyCheckForApp()) SWIG_fail;
6358 PyThreadState* __tstate = wxPyBeginAllowThreads();
6359 result = (wxBitmap *)new_wxBitmap(arg1);
6360 wxPyEndAllowThreads(__tstate);
6361 if (PyErr_Occurred()) SWIG_fail;
6362 }
6363 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6364 return resultobj;
6365 fail:
6366 return NULL;
6367 }
6368
6369
6370 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6371 PyObject *resultobj = 0;
6372 PyObject *arg1 = (PyObject *) 0 ;
6373 int arg2 ;
6374 int arg3 ;
6375 int arg4 = (int) 1 ;
6376 wxBitmap *result = 0 ;
6377 int val2 ;
6378 int ecode2 = 0 ;
6379 int val3 ;
6380 int ecode3 = 0 ;
6381 int val4 ;
6382 int ecode4 = 0 ;
6383 PyObject * obj0 = 0 ;
6384 PyObject * obj1 = 0 ;
6385 PyObject * obj2 = 0 ;
6386 PyObject * obj3 = 0 ;
6387 char * kwnames[] = {
6388 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6389 };
6390
6391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6392 arg1 = obj0;
6393 ecode2 = SWIG_AsVal_int(obj1, &val2);
6394 if (!SWIG_IsOK(ecode2)) {
6395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6396 }
6397 arg2 = static_cast< int >(val2);
6398 ecode3 = SWIG_AsVal_int(obj2, &val3);
6399 if (!SWIG_IsOK(ecode3)) {
6400 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6401 }
6402 arg3 = static_cast< int >(val3);
6403 if (obj3) {
6404 ecode4 = SWIG_AsVal_int(obj3, &val4);
6405 if (!SWIG_IsOK(ecode4)) {
6406 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6407 }
6408 arg4 = static_cast< int >(val4);
6409 }
6410 {
6411 if (!wxPyCheckForApp()) SWIG_fail;
6412 PyThreadState* __tstate = wxPyBeginAllowThreads();
6413 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6414 wxPyEndAllowThreads(__tstate);
6415 if (PyErr_Occurred()) SWIG_fail;
6416 }
6417 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6418 return resultobj;
6419 fail:
6420 return NULL;
6421 }
6422
6423
6424 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6425 PyObject *resultobj = 0;
6426 wxBitmap *arg1 = (wxBitmap *) 0 ;
6427 bool result;
6428 void *argp1 = 0 ;
6429 int res1 = 0 ;
6430 PyObject *swig_obj[1] ;
6431
6432 if (!args) SWIG_fail;
6433 swig_obj[0] = args;
6434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6435 if (!SWIG_IsOK(res1)) {
6436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6437 }
6438 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6439 {
6440 result = (bool)(arg1)->IsOk();
6441 if (PyErr_Occurred()) SWIG_fail;
6442 }
6443 {
6444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6445 }
6446 return resultobj;
6447 fail:
6448 return NULL;
6449 }
6450
6451
6452 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6453 PyObject *resultobj = 0;
6454 wxBitmap *arg1 = (wxBitmap *) 0 ;
6455 int result;
6456 void *argp1 = 0 ;
6457 int res1 = 0 ;
6458 PyObject *swig_obj[1] ;
6459
6460 if (!args) SWIG_fail;
6461 swig_obj[0] = args;
6462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6463 if (!SWIG_IsOK(res1)) {
6464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6465 }
6466 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6467 {
6468 result = (int)(arg1)->GetWidth();
6469 if (PyErr_Occurred()) SWIG_fail;
6470 }
6471 resultobj = SWIG_From_int(static_cast< int >(result));
6472 return resultobj;
6473 fail:
6474 return NULL;
6475 }
6476
6477
6478 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6479 PyObject *resultobj = 0;
6480 wxBitmap *arg1 = (wxBitmap *) 0 ;
6481 int result;
6482 void *argp1 = 0 ;
6483 int res1 = 0 ;
6484 PyObject *swig_obj[1] ;
6485
6486 if (!args) SWIG_fail;
6487 swig_obj[0] = args;
6488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6489 if (!SWIG_IsOK(res1)) {
6490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6491 }
6492 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6493 {
6494 result = (int)(arg1)->GetHeight();
6495 if (PyErr_Occurred()) SWIG_fail;
6496 }
6497 resultobj = SWIG_From_int(static_cast< int >(result));
6498 return resultobj;
6499 fail:
6500 return NULL;
6501 }
6502
6503
6504 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6505 PyObject *resultobj = 0;
6506 wxBitmap *arg1 = (wxBitmap *) 0 ;
6507 int result;
6508 void *argp1 = 0 ;
6509 int res1 = 0 ;
6510 PyObject *swig_obj[1] ;
6511
6512 if (!args) SWIG_fail;
6513 swig_obj[0] = args;
6514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6515 if (!SWIG_IsOK(res1)) {
6516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6517 }
6518 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6519 {
6520 result = (int)(arg1)->GetDepth();
6521 if (PyErr_Occurred()) SWIG_fail;
6522 }
6523 resultobj = SWIG_From_int(static_cast< int >(result));
6524 return resultobj;
6525 fail:
6526 return NULL;
6527 }
6528
6529
6530 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6531 PyObject *resultobj = 0;
6532 wxBitmap *arg1 = (wxBitmap *) 0 ;
6533 wxSize result;
6534 void *argp1 = 0 ;
6535 int res1 = 0 ;
6536 PyObject *swig_obj[1] ;
6537
6538 if (!args) SWIG_fail;
6539 swig_obj[0] = args;
6540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6541 if (!SWIG_IsOK(res1)) {
6542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6543 }
6544 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6545 {
6546 result = wxBitmap_GetSize(arg1);
6547 if (PyErr_Occurred()) SWIG_fail;
6548 }
6549 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6550 return resultobj;
6551 fail:
6552 return NULL;
6553 }
6554
6555
6556 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6557 PyObject *resultobj = 0;
6558 wxBitmap *arg1 = (wxBitmap *) 0 ;
6559 SwigValueWrapper<wxImage > result;
6560 void *argp1 = 0 ;
6561 int res1 = 0 ;
6562 PyObject *swig_obj[1] ;
6563
6564 if (!args) SWIG_fail;
6565 swig_obj[0] = args;
6566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6567 if (!SWIG_IsOK(res1)) {
6568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6569 }
6570 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6571 {
6572 result = ((wxBitmap const *)arg1)->ConvertToImage();
6573 if (PyErr_Occurred()) SWIG_fail;
6574 }
6575 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6576 return resultobj;
6577 fail:
6578 return NULL;
6579 }
6580
6581
6582 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6583 PyObject *resultobj = 0;
6584 wxBitmap *arg1 = (wxBitmap *) 0 ;
6585 wxMask *result = 0 ;
6586 void *argp1 = 0 ;
6587 int res1 = 0 ;
6588 PyObject *swig_obj[1] ;
6589
6590 if (!args) SWIG_fail;
6591 swig_obj[0] = args;
6592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6593 if (!SWIG_IsOK(res1)) {
6594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6595 }
6596 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6597 {
6598 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6599 if (PyErr_Occurred()) SWIG_fail;
6600 }
6601 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6602 return resultobj;
6603 fail:
6604 return NULL;
6605 }
6606
6607
6608 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6609 PyObject *resultobj = 0;
6610 wxBitmap *arg1 = (wxBitmap *) 0 ;
6611 wxMask *arg2 = (wxMask *) 0 ;
6612 void *argp1 = 0 ;
6613 int res1 = 0 ;
6614 int res2 = 0 ;
6615 PyObject * obj0 = 0 ;
6616 PyObject * obj1 = 0 ;
6617 char * kwnames[] = {
6618 (char *) "self",(char *) "mask", NULL
6619 };
6620
6621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6623 if (!SWIG_IsOK(res1)) {
6624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6625 }
6626 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6627 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6628 if (!SWIG_IsOK(res2)) {
6629 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6630 }
6631 {
6632 (arg1)->SetMask(arg2);
6633 if (PyErr_Occurred()) SWIG_fail;
6634 }
6635 resultobj = SWIG_Py_Void();
6636 return resultobj;
6637 fail:
6638 return NULL;
6639 }
6640
6641
6642 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6643 PyObject *resultobj = 0;
6644 wxBitmap *arg1 = (wxBitmap *) 0 ;
6645 wxColour *arg2 = 0 ;
6646 void *argp1 = 0 ;
6647 int res1 = 0 ;
6648 wxColour temp2 ;
6649 PyObject * obj0 = 0 ;
6650 PyObject * obj1 = 0 ;
6651 char * kwnames[] = {
6652 (char *) "self",(char *) "colour", NULL
6653 };
6654
6655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6657 if (!SWIG_IsOK(res1)) {
6658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6659 }
6660 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6661 {
6662 arg2 = &temp2;
6663 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6664 }
6665 {
6666 wxBitmap_SetMaskColour(arg1,(wxColour const &)*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_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6677 PyObject *resultobj = 0;
6678 wxBitmap *arg1 = (wxBitmap *) 0 ;
6679 wxRect *arg2 = 0 ;
6680 SwigValueWrapper<wxBitmap > result;
6681 void *argp1 = 0 ;
6682 int res1 = 0 ;
6683 wxRect temp2 ;
6684 PyObject * obj0 = 0 ;
6685 PyObject * obj1 = 0 ;
6686 char * kwnames[] = {
6687 (char *) "self",(char *) "rect", NULL
6688 };
6689
6690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",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_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6694 }
6695 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6696 {
6697 arg2 = &temp2;
6698 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6699 }
6700 {
6701 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6702 if (PyErr_Occurred()) SWIG_fail;
6703 }
6704 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6705 return resultobj;
6706 fail:
6707 return NULL;
6708 }
6709
6710
6711 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6712 PyObject *resultobj = 0;
6713 wxBitmap *arg1 = (wxBitmap *) 0 ;
6714 wxString *arg2 = 0 ;
6715 wxBitmapType arg3 ;
6716 wxPalette *arg4 = (wxPalette *) NULL ;
6717 bool result;
6718 void *argp1 = 0 ;
6719 int res1 = 0 ;
6720 bool temp2 = false ;
6721 int val3 ;
6722 int ecode3 = 0 ;
6723 void *argp4 = 0 ;
6724 int res4 = 0 ;
6725 PyObject * obj0 = 0 ;
6726 PyObject * obj1 = 0 ;
6727 PyObject * obj2 = 0 ;
6728 PyObject * obj3 = 0 ;
6729 char * kwnames[] = {
6730 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6731 };
6732
6733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6735 if (!SWIG_IsOK(res1)) {
6736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6737 }
6738 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6739 {
6740 arg2 = wxString_in_helper(obj1);
6741 if (arg2 == NULL) SWIG_fail;
6742 temp2 = true;
6743 }
6744 ecode3 = SWIG_AsVal_int(obj2, &val3);
6745 if (!SWIG_IsOK(ecode3)) {
6746 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6747 }
6748 arg3 = static_cast< wxBitmapType >(val3);
6749 if (obj3) {
6750 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6751 if (!SWIG_IsOK(res4)) {
6752 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6753 }
6754 arg4 = reinterpret_cast< wxPalette * >(argp4);
6755 }
6756 {
6757 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6758 if (PyErr_Occurred()) SWIG_fail;
6759 }
6760 {
6761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6762 }
6763 {
6764 if (temp2)
6765 delete arg2;
6766 }
6767 return resultobj;
6768 fail:
6769 {
6770 if (temp2)
6771 delete arg2;
6772 }
6773 return NULL;
6774 }
6775
6776
6777 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6778 PyObject *resultobj = 0;
6779 wxBitmap *arg1 = (wxBitmap *) 0 ;
6780 wxString *arg2 = 0 ;
6781 wxBitmapType arg3 ;
6782 bool result;
6783 void *argp1 = 0 ;
6784 int res1 = 0 ;
6785 bool temp2 = false ;
6786 int val3 ;
6787 int ecode3 = 0 ;
6788 PyObject * obj0 = 0 ;
6789 PyObject * obj1 = 0 ;
6790 PyObject * obj2 = 0 ;
6791 char * kwnames[] = {
6792 (char *) "self",(char *) "name",(char *) "type", NULL
6793 };
6794
6795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6797 if (!SWIG_IsOK(res1)) {
6798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6799 }
6800 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6801 {
6802 arg2 = wxString_in_helper(obj1);
6803 if (arg2 == NULL) SWIG_fail;
6804 temp2 = true;
6805 }
6806 ecode3 = SWIG_AsVal_int(obj2, &val3);
6807 if (!SWIG_IsOK(ecode3)) {
6808 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6809 }
6810 arg3 = static_cast< wxBitmapType >(val3);
6811 {
6812 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6813 if (PyErr_Occurred()) SWIG_fail;
6814 }
6815 {
6816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6817 }
6818 {
6819 if (temp2)
6820 delete arg2;
6821 }
6822 return resultobj;
6823 fail:
6824 {
6825 if (temp2)
6826 delete arg2;
6827 }
6828 return NULL;
6829 }
6830
6831
6832 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6833 PyObject *resultobj = 0;
6834 wxBitmap *arg1 = (wxBitmap *) 0 ;
6835 wxPalette *result = 0 ;
6836 void *argp1 = 0 ;
6837 int res1 = 0 ;
6838 PyObject *swig_obj[1] ;
6839
6840 if (!args) SWIG_fail;
6841 swig_obj[0] = args;
6842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6843 if (!SWIG_IsOK(res1)) {
6844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6845 }
6846 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6847 {
6848 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6849 if (PyErr_Occurred()) SWIG_fail;
6850 }
6851 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6852 return resultobj;
6853 fail:
6854 return NULL;
6855 }
6856
6857
6858 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6859 PyObject *resultobj = 0;
6860 wxBitmap *arg1 = (wxBitmap *) 0 ;
6861 wxIcon *arg2 = 0 ;
6862 bool result;
6863 void *argp1 = 0 ;
6864 int res1 = 0 ;
6865 void *argp2 = 0 ;
6866 int res2 = 0 ;
6867 PyObject * obj0 = 0 ;
6868 PyObject * obj1 = 0 ;
6869 char * kwnames[] = {
6870 (char *) "self",(char *) "icon", NULL
6871 };
6872
6873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6875 if (!SWIG_IsOK(res1)) {
6876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6877 }
6878 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6879 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6880 if (!SWIG_IsOK(res2)) {
6881 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6882 }
6883 if (!argp2) {
6884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6885 }
6886 arg2 = reinterpret_cast< wxIcon * >(argp2);
6887 {
6888 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6889 if (PyErr_Occurred()) SWIG_fail;
6890 }
6891 {
6892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6893 }
6894 return resultobj;
6895 fail:
6896 return NULL;
6897 }
6898
6899
6900 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6901 PyObject *resultobj = 0;
6902 wxBitmap *arg1 = (wxBitmap *) 0 ;
6903 int arg2 ;
6904 void *argp1 = 0 ;
6905 int res1 = 0 ;
6906 int val2 ;
6907 int ecode2 = 0 ;
6908 PyObject * obj0 = 0 ;
6909 PyObject * obj1 = 0 ;
6910 char * kwnames[] = {
6911 (char *) "self",(char *) "height", NULL
6912 };
6913
6914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6916 if (!SWIG_IsOK(res1)) {
6917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6918 }
6919 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6920 ecode2 = SWIG_AsVal_int(obj1, &val2);
6921 if (!SWIG_IsOK(ecode2)) {
6922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6923 }
6924 arg2 = static_cast< int >(val2);
6925 {
6926 (arg1)->SetHeight(arg2);
6927 if (PyErr_Occurred()) SWIG_fail;
6928 }
6929 resultobj = SWIG_Py_Void();
6930 return resultobj;
6931 fail:
6932 return NULL;
6933 }
6934
6935
6936 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6937 PyObject *resultobj = 0;
6938 wxBitmap *arg1 = (wxBitmap *) 0 ;
6939 int arg2 ;
6940 void *argp1 = 0 ;
6941 int res1 = 0 ;
6942 int val2 ;
6943 int ecode2 = 0 ;
6944 PyObject * obj0 = 0 ;
6945 PyObject * obj1 = 0 ;
6946 char * kwnames[] = {
6947 (char *) "self",(char *) "width", NULL
6948 };
6949
6950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6952 if (!SWIG_IsOK(res1)) {
6953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6954 }
6955 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6956 ecode2 = SWIG_AsVal_int(obj1, &val2);
6957 if (!SWIG_IsOK(ecode2)) {
6958 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6959 }
6960 arg2 = static_cast< int >(val2);
6961 {
6962 (arg1)->SetWidth(arg2);
6963 if (PyErr_Occurred()) SWIG_fail;
6964 }
6965 resultobj = SWIG_Py_Void();
6966 return resultobj;
6967 fail:
6968 return NULL;
6969 }
6970
6971
6972 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6973 PyObject *resultobj = 0;
6974 wxBitmap *arg1 = (wxBitmap *) 0 ;
6975 int arg2 ;
6976 void *argp1 = 0 ;
6977 int res1 = 0 ;
6978 int val2 ;
6979 int ecode2 = 0 ;
6980 PyObject * obj0 = 0 ;
6981 PyObject * obj1 = 0 ;
6982 char * kwnames[] = {
6983 (char *) "self",(char *) "depth", NULL
6984 };
6985
6986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6988 if (!SWIG_IsOK(res1)) {
6989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6990 }
6991 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6992 ecode2 = SWIG_AsVal_int(obj1, &val2);
6993 if (!SWIG_IsOK(ecode2)) {
6994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6995 }
6996 arg2 = static_cast< int >(val2);
6997 {
6998 (arg1)->SetDepth(arg2);
6999 if (PyErr_Occurred()) SWIG_fail;
7000 }
7001 resultobj = SWIG_Py_Void();
7002 return resultobj;
7003 fail:
7004 return NULL;
7005 }
7006
7007
7008 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7009 PyObject *resultobj = 0;
7010 wxBitmap *arg1 = (wxBitmap *) 0 ;
7011 wxSize *arg2 = 0 ;
7012 void *argp1 = 0 ;
7013 int res1 = 0 ;
7014 wxSize temp2 ;
7015 PyObject * obj0 = 0 ;
7016 PyObject * obj1 = 0 ;
7017 char * kwnames[] = {
7018 (char *) "self",(char *) "size", NULL
7019 };
7020
7021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7023 if (!SWIG_IsOK(res1)) {
7024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
7025 }
7026 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7027 {
7028 arg2 = &temp2;
7029 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7030 }
7031 {
7032 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
7033 if (PyErr_Occurred()) SWIG_fail;
7034 }
7035 resultobj = SWIG_Py_Void();
7036 return resultobj;
7037 fail:
7038 return NULL;
7039 }
7040
7041
7042 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7043 PyObject *resultobj = 0;
7044 wxBitmap *arg1 = (wxBitmap *) 0 ;
7045 buffer arg2 ;
7046 int arg3 ;
7047 void *argp1 = 0 ;
7048 int res1 = 0 ;
7049 Py_ssize_t temp2 ;
7050 PyObject * obj0 = 0 ;
7051 PyObject * obj1 = 0 ;
7052 char * kwnames[] = {
7053 (char *) "self",(char *) "data", NULL
7054 };
7055
7056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7058 if (!SWIG_IsOK(res1)) {
7059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7060 }
7061 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7062 {
7063 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7064 arg3 = (int)temp2;
7065 }
7066 {
7067 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7068 if (PyErr_Occurred()) SWIG_fail;
7069 }
7070 resultobj = SWIG_Py_Void();
7071 return resultobj;
7072 fail:
7073 return NULL;
7074 }
7075
7076
7077 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7078 PyObject *resultobj = 0;
7079 wxBitmap *arg1 = (wxBitmap *) 0 ;
7080 buffer arg2 ;
7081 int arg3 ;
7082 void *argp1 = 0 ;
7083 int res1 = 0 ;
7084 Py_ssize_t temp2 ;
7085 PyObject * obj0 = 0 ;
7086 PyObject * obj1 = 0 ;
7087 char * kwnames[] = {
7088 (char *) "self",(char *) "data", NULL
7089 };
7090
7091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7093 if (!SWIG_IsOK(res1)) {
7094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7095 }
7096 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7097 {
7098 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7099 arg3 = (int)temp2;
7100 }
7101 {
7102 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7103 if (PyErr_Occurred()) SWIG_fail;
7104 }
7105 resultobj = SWIG_Py_Void();
7106 return resultobj;
7107 fail:
7108 return NULL;
7109 }
7110
7111
7112 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7113 PyObject *resultobj = 0;
7114 wxBitmap *arg1 = (wxBitmap *) 0 ;
7115 wxBitmap *arg2 = (wxBitmap *) 0 ;
7116 bool result;
7117 void *argp1 = 0 ;
7118 int res1 = 0 ;
7119 void *argp2 = 0 ;
7120 int res2 = 0 ;
7121 PyObject * obj0 = 0 ;
7122 PyObject * obj1 = 0 ;
7123 char * kwnames[] = {
7124 (char *) "self",(char *) "other", NULL
7125 };
7126
7127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7129 if (!SWIG_IsOK(res1)) {
7130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7131 }
7132 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7133 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7134 if (!SWIG_IsOK(res2)) {
7135 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7136 }
7137 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7138 {
7139 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
7140 if (PyErr_Occurred()) SWIG_fail;
7141 }
7142 {
7143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7144 }
7145 return resultobj;
7146 fail:
7147 return NULL;
7148 }
7149
7150
7151 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7152 PyObject *resultobj = 0;
7153 wxBitmap *arg1 = (wxBitmap *) 0 ;
7154 wxBitmap *arg2 = (wxBitmap *) 0 ;
7155 bool result;
7156 void *argp1 = 0 ;
7157 int res1 = 0 ;
7158 void *argp2 = 0 ;
7159 int res2 = 0 ;
7160 PyObject * obj0 = 0 ;
7161 PyObject * obj1 = 0 ;
7162 char * kwnames[] = {
7163 (char *) "self",(char *) "other", NULL
7164 };
7165
7166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7168 if (!SWIG_IsOK(res1)) {
7169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7170 }
7171 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7172 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7173 if (!SWIG_IsOK(res2)) {
7174 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7175 }
7176 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7177 {
7178 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7179 if (PyErr_Occurred()) SWIG_fail;
7180 }
7181 {
7182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7183 }
7184 return resultobj;
7185 fail:
7186 return NULL;
7187 }
7188
7189
7190 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7191 PyObject *obj;
7192 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7193 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7194 return SWIG_Py_Void();
7195 }
7196
7197 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7198 return SWIG_Python_InitShadowInstance(args);
7199 }
7200
7201 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7202 PyObject *resultobj = 0;
7203 int arg1 ;
7204 int arg2 ;
7205 buffer arg3 ;
7206 int arg4 ;
7207 buffer arg5 ;
7208 int arg6 ;
7209 wxBitmap *result = 0 ;
7210 int val1 ;
7211 int ecode1 = 0 ;
7212 int val2 ;
7213 int ecode2 = 0 ;
7214 Py_ssize_t temp3 ;
7215 Py_ssize_t temp5 ;
7216 PyObject * obj0 = 0 ;
7217 PyObject * obj1 = 0 ;
7218 PyObject * obj2 = 0 ;
7219 PyObject * obj3 = 0 ;
7220 char * kwnames[] = {
7221 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7222 };
7223
7224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7225 ecode1 = SWIG_AsVal_int(obj0, &val1);
7226 if (!SWIG_IsOK(ecode1)) {
7227 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7228 }
7229 arg1 = static_cast< int >(val1);
7230 ecode2 = SWIG_AsVal_int(obj1, &val2);
7231 if (!SWIG_IsOK(ecode2)) {
7232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7233 }
7234 arg2 = static_cast< int >(val2);
7235 {
7236 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7237 arg4 = (int)temp3;
7238 }
7239 {
7240 if (obj3 != Py_None) {
7241 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7242 arg6 = (int)temp5;
7243 }
7244 }
7245 {
7246 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7247 if (PyErr_Occurred()) SWIG_fail;
7248 }
7249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7250 return resultobj;
7251 fail:
7252 return NULL;
7253 }
7254
7255
7256 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7257 PyObject *resultobj = 0;
7258 int arg1 ;
7259 int arg2 ;
7260 buffer arg3 ;
7261 int arg4 ;
7262 wxBitmap *result = 0 ;
7263 int val1 ;
7264 int ecode1 = 0 ;
7265 int val2 ;
7266 int ecode2 = 0 ;
7267 Py_ssize_t temp3 ;
7268 PyObject * obj0 = 0 ;
7269 PyObject * obj1 = 0 ;
7270 PyObject * obj2 = 0 ;
7271 char * kwnames[] = {
7272 (char *) "width",(char *) "height",(char *) "data", NULL
7273 };
7274
7275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7276 ecode1 = SWIG_AsVal_int(obj0, &val1);
7277 if (!SWIG_IsOK(ecode1)) {
7278 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7279 }
7280 arg1 = static_cast< int >(val1);
7281 ecode2 = SWIG_AsVal_int(obj1, &val2);
7282 if (!SWIG_IsOK(ecode2)) {
7283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7284 }
7285 arg2 = static_cast< int >(val2);
7286 {
7287 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7288 arg4 = (int)temp3;
7289 }
7290 {
7291 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7292 if (PyErr_Occurred()) SWIG_fail;
7293 }
7294 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7295 return resultobj;
7296 fail:
7297 return NULL;
7298 }
7299
7300
7301 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7302 PyObject *resultobj = 0;
7303 int arg1 ;
7304 int arg2 ;
7305 buffer arg3 ;
7306 int arg4 ;
7307 wxBitmap *result = 0 ;
7308 int val1 ;
7309 int ecode1 = 0 ;
7310 int val2 ;
7311 int ecode2 = 0 ;
7312 Py_ssize_t temp3 ;
7313 PyObject * obj0 = 0 ;
7314 PyObject * obj1 = 0 ;
7315 PyObject * obj2 = 0 ;
7316 char * kwnames[] = {
7317 (char *) "width",(char *) "height",(char *) "data", NULL
7318 };
7319
7320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7321 ecode1 = SWIG_AsVal_int(obj0, &val1);
7322 if (!SWIG_IsOK(ecode1)) {
7323 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7324 }
7325 arg1 = static_cast< int >(val1);
7326 ecode2 = SWIG_AsVal_int(obj1, &val2);
7327 if (!SWIG_IsOK(ecode2)) {
7328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7329 }
7330 arg2 = static_cast< int >(val2);
7331 {
7332 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7333 arg4 = (int)temp3;
7334 }
7335 {
7336 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7337 if (PyErr_Occurred()) SWIG_fail;
7338 }
7339 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7340 return resultobj;
7341 fail:
7342 return NULL;
7343 }
7344
7345
7346 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7347 PyObject *resultobj = 0;
7348 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7349 wxPoint result;
7350 void *argp1 = 0 ;
7351 int res1 = 0 ;
7352 PyObject *swig_obj[1] ;
7353
7354 if (!args) SWIG_fail;
7355 swig_obj[0] = args;
7356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7357 if (!SWIG_IsOK(res1)) {
7358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7359 }
7360 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7361 {
7362 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7363 if (PyErr_Occurred()) SWIG_fail;
7364 }
7365 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7366 return resultobj;
7367 fail:
7368 return NULL;
7369 }
7370
7371
7372 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7373 PyObject *resultobj = 0;
7374 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7375 int result;
7376 void *argp1 = 0 ;
7377 int res1 = 0 ;
7378 PyObject *swig_obj[1] ;
7379
7380 if (!args) SWIG_fail;
7381 swig_obj[0] = args;
7382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7383 if (!SWIG_IsOK(res1)) {
7384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7385 }
7386 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7387 {
7388 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7389 if (PyErr_Occurred()) SWIG_fail;
7390 }
7391 resultobj = SWIG_From_int(static_cast< int >(result));
7392 return resultobj;
7393 fail:
7394 return NULL;
7395 }
7396
7397
7398 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7399 PyObject *resultobj = 0;
7400 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7401 int result;
7402 void *argp1 = 0 ;
7403 int res1 = 0 ;
7404 PyObject *swig_obj[1] ;
7405
7406 if (!args) SWIG_fail;
7407 swig_obj[0] = args;
7408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7409 if (!SWIG_IsOK(res1)) {
7410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7411 }
7412 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7413 {
7414 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7415 if (PyErr_Occurred()) SWIG_fail;
7416 }
7417 resultobj = SWIG_From_int(static_cast< int >(result));
7418 return resultobj;
7419 fail:
7420 return NULL;
7421 }
7422
7423
7424 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7425 PyObject *resultobj = 0;
7426 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7427 wxSize result;
7428 void *argp1 = 0 ;
7429 int res1 = 0 ;
7430 PyObject *swig_obj[1] ;
7431
7432 if (!args) SWIG_fail;
7433 swig_obj[0] = args;
7434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7435 if (!SWIG_IsOK(res1)) {
7436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7437 }
7438 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7439 {
7440 result = ((wxPixelDataBase const *)arg1)->GetSize();
7441 if (PyErr_Occurred()) SWIG_fail;
7442 }
7443 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7444 return resultobj;
7445 fail:
7446 return NULL;
7447 }
7448
7449
7450 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7451 PyObject *resultobj = 0;
7452 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7453 int result;
7454 void *argp1 = 0 ;
7455 int res1 = 0 ;
7456 PyObject *swig_obj[1] ;
7457
7458 if (!args) SWIG_fail;
7459 swig_obj[0] = args;
7460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7461 if (!SWIG_IsOK(res1)) {
7462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7463 }
7464 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7465 {
7466 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7467 if (PyErr_Occurred()) SWIG_fail;
7468 }
7469 resultobj = SWIG_From_int(static_cast< int >(result));
7470 return resultobj;
7471 fail:
7472 return NULL;
7473 }
7474
7475
7476 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7477 PyObject *obj;
7478 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7479 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7480 return SWIG_Py_Void();
7481 }
7482
7483 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7484 PyObject *resultobj = 0;
7485 wxBitmap *arg1 = 0 ;
7486 wxNativePixelData *result = 0 ;
7487 void *argp1 = 0 ;
7488 int res1 = 0 ;
7489
7490 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7492 if (!SWIG_IsOK(res1)) {
7493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7494 }
7495 if (!argp1) {
7496 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7497 }
7498 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7499 {
7500 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7501 if (PyErr_Occurred()) SWIG_fail;
7502 }
7503 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7504 return resultobj;
7505 fail:
7506 return NULL;
7507 }
7508
7509
7510 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7511 PyObject *resultobj = 0;
7512 wxBitmap *arg1 = 0 ;
7513 wxRect *arg2 = 0 ;
7514 wxNativePixelData *result = 0 ;
7515 void *argp1 = 0 ;
7516 int res1 = 0 ;
7517 wxRect temp2 ;
7518
7519 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7521 if (!SWIG_IsOK(res1)) {
7522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7523 }
7524 if (!argp1) {
7525 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7526 }
7527 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7528 {
7529 arg2 = &temp2;
7530 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7531 }
7532 {
7533 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7534 if (PyErr_Occurred()) SWIG_fail;
7535 }
7536 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7537 return resultobj;
7538 fail:
7539 return NULL;
7540 }
7541
7542
7543 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7544 PyObject *resultobj = 0;
7545 wxBitmap *arg1 = 0 ;
7546 wxPoint *arg2 = 0 ;
7547 wxSize *arg3 = 0 ;
7548 wxNativePixelData *result = 0 ;
7549 void *argp1 = 0 ;
7550 int res1 = 0 ;
7551 wxPoint temp2 ;
7552 wxSize temp3 ;
7553
7554 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7556 if (!SWIG_IsOK(res1)) {
7557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7558 }
7559 if (!argp1) {
7560 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7561 }
7562 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7563 {
7564 arg2 = &temp2;
7565 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7566 }
7567 {
7568 arg3 = &temp3;
7569 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7570 }
7571 {
7572 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7573 if (PyErr_Occurred()) SWIG_fail;
7574 }
7575 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7576 return resultobj;
7577 fail:
7578 return NULL;
7579 }
7580
7581
7582 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7583 int argc;
7584 PyObject *argv[4];
7585
7586 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7587 --argc;
7588 if (argc == 1) {
7589 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7590 }
7591 if (argc == 2) {
7592 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7593 }
7594 if (argc == 3) {
7595 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7596 }
7597
7598 fail:
7599 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7600 return NULL;
7601 }
7602
7603
7604 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7605 PyObject *resultobj = 0;
7606 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7607 void *argp1 = 0 ;
7608 int res1 = 0 ;
7609 PyObject *swig_obj[1] ;
7610
7611 if (!args) SWIG_fail;
7612 swig_obj[0] = args;
7613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7614 if (!SWIG_IsOK(res1)) {
7615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7616 }
7617 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7618 {
7619 delete arg1;
7620
7621 if (PyErr_Occurred()) SWIG_fail;
7622 }
7623 resultobj = SWIG_Py_Void();
7624 return resultobj;
7625 fail:
7626 return NULL;
7627 }
7628
7629
7630 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7631 PyObject *resultobj = 0;
7632 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7633 wxNativePixelData_Accessor result;
7634 void *argp1 = 0 ;
7635 int res1 = 0 ;
7636 PyObject *swig_obj[1] ;
7637
7638 if (!args) SWIG_fail;
7639 swig_obj[0] = args;
7640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7641 if (!SWIG_IsOK(res1)) {
7642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7643 }
7644 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7645 {
7646 result = ((wxNativePixelData const *)arg1)->GetPixels();
7647 if (PyErr_Occurred()) SWIG_fail;
7648 }
7649 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7650 return resultobj;
7651 fail:
7652 return NULL;
7653 }
7654
7655
7656 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7657 PyObject *resultobj = 0;
7658 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7659 void *argp1 = 0 ;
7660 int res1 = 0 ;
7661 PyObject *swig_obj[1] ;
7662
7663 if (!args) SWIG_fail;
7664 swig_obj[0] = args;
7665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7666 if (!SWIG_IsOK(res1)) {
7667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7668 }
7669 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7670 {
7671 (arg1)->UseAlpha();
7672 if (PyErr_Occurred()) SWIG_fail;
7673 }
7674 resultobj = SWIG_Py_Void();
7675 return resultobj;
7676 fail:
7677 return NULL;
7678 }
7679
7680
7681 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7682 PyObject *resultobj = 0;
7683 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7684 bool result;
7685 void *argp1 = 0 ;
7686 int res1 = 0 ;
7687 PyObject *swig_obj[1] ;
7688
7689 if (!args) SWIG_fail;
7690 swig_obj[0] = args;
7691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7692 if (!SWIG_IsOK(res1)) {
7693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7694 }
7695 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7696 {
7697 result = (bool)wxNativePixelData___nonzero__(arg1);
7698 if (PyErr_Occurred()) SWIG_fail;
7699 }
7700 {
7701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7702 }
7703 return resultobj;
7704 fail:
7705 return NULL;
7706 }
7707
7708
7709 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7710 PyObject *obj;
7711 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7712 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7713 return SWIG_Py_Void();
7714 }
7715
7716 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7717 return SWIG_Python_InitShadowInstance(args);
7718 }
7719
7720 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7721 PyObject *resultobj = 0;
7722 wxNativePixelData *arg1 = 0 ;
7723 wxNativePixelData_Accessor *result = 0 ;
7724 void *argp1 = 0 ;
7725 int res1 = 0 ;
7726
7727 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7729 if (!SWIG_IsOK(res1)) {
7730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7731 }
7732 if (!argp1) {
7733 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7734 }
7735 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7736 {
7737 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7738 if (PyErr_Occurred()) SWIG_fail;
7739 }
7740 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7741 return resultobj;
7742 fail:
7743 return NULL;
7744 }
7745
7746
7747 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7748 PyObject *resultobj = 0;
7749 wxBitmap *arg1 = 0 ;
7750 wxNativePixelData *arg2 = 0 ;
7751 wxNativePixelData_Accessor *result = 0 ;
7752 void *argp1 = 0 ;
7753 int res1 = 0 ;
7754 void *argp2 = 0 ;
7755 int res2 = 0 ;
7756
7757 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7759 if (!SWIG_IsOK(res1)) {
7760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7761 }
7762 if (!argp1) {
7763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7764 }
7765 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7766 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7767 if (!SWIG_IsOK(res2)) {
7768 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7769 }
7770 if (!argp2) {
7771 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7772 }
7773 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7774 {
7775 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7776 if (PyErr_Occurred()) SWIG_fail;
7777 }
7778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7779 return resultobj;
7780 fail:
7781 return NULL;
7782 }
7783
7784
7785 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7786 PyObject *resultobj = 0;
7787 wxNativePixelData_Accessor *result = 0 ;
7788
7789 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7790 {
7791 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7792 if (PyErr_Occurred()) SWIG_fail;
7793 }
7794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7795 return resultobj;
7796 fail:
7797 return NULL;
7798 }
7799
7800
7801 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7802 int argc;
7803 PyObject *argv[3];
7804
7805 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7806 --argc;
7807 if (argc == 0) {
7808 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7809 }
7810 if (argc == 1) {
7811 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7812 }
7813 if (argc == 2) {
7814 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7815 }
7816
7817 fail:
7818 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7819 return NULL;
7820 }
7821
7822
7823 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7824 PyObject *resultobj = 0;
7825 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7826 void *argp1 = 0 ;
7827 int res1 = 0 ;
7828 PyObject *swig_obj[1] ;
7829
7830 if (!args) SWIG_fail;
7831 swig_obj[0] = args;
7832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7833 if (!SWIG_IsOK(res1)) {
7834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7835 }
7836 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7837 {
7838 delete arg1;
7839
7840 if (PyErr_Occurred()) SWIG_fail;
7841 }
7842 resultobj = SWIG_Py_Void();
7843 return resultobj;
7844 fail:
7845 return NULL;
7846 }
7847
7848
7849 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7850 PyObject *resultobj = 0;
7851 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7852 wxNativePixelData *arg2 = 0 ;
7853 void *argp1 = 0 ;
7854 int res1 = 0 ;
7855 void *argp2 = 0 ;
7856 int res2 = 0 ;
7857 PyObject * obj0 = 0 ;
7858 PyObject * obj1 = 0 ;
7859 char * kwnames[] = {
7860 (char *) "self",(char *) "data", NULL
7861 };
7862
7863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7865 if (!SWIG_IsOK(res1)) {
7866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7867 }
7868 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7869 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7870 if (!SWIG_IsOK(res2)) {
7871 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7872 }
7873 if (!argp2) {
7874 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7875 }
7876 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7877 {
7878 (arg1)->Reset((wxNativePixelData const &)*arg2);
7879 if (PyErr_Occurred()) SWIG_fail;
7880 }
7881 resultobj = SWIG_Py_Void();
7882 return resultobj;
7883 fail:
7884 return NULL;
7885 }
7886
7887
7888 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7889 PyObject *resultobj = 0;
7890 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7891 bool result;
7892 void *argp1 = 0 ;
7893 int res1 = 0 ;
7894 PyObject *swig_obj[1] ;
7895
7896 if (!args) SWIG_fail;
7897 swig_obj[0] = args;
7898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7899 if (!SWIG_IsOK(res1)) {
7900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7901 }
7902 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7903 {
7904 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7905 if (PyErr_Occurred()) SWIG_fail;
7906 }
7907 {
7908 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7909 }
7910 return resultobj;
7911 fail:
7912 return NULL;
7913 }
7914
7915
7916 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7917 PyObject *resultobj = 0;
7918 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7919 void *argp1 = 0 ;
7920 int res1 = 0 ;
7921 PyObject *swig_obj[1] ;
7922
7923 if (!args) SWIG_fail;
7924 swig_obj[0] = args;
7925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7926 if (!SWIG_IsOK(res1)) {
7927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7928 }
7929 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7930 {
7931 wxNativePixelData_Accessor_nextPixel(arg1);
7932 if (PyErr_Occurred()) SWIG_fail;
7933 }
7934 resultobj = SWIG_Py_Void();
7935 return resultobj;
7936 fail:
7937 return NULL;
7938 }
7939
7940
7941 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7942 PyObject *resultobj = 0;
7943 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7944 wxNativePixelData *arg2 = 0 ;
7945 int arg3 ;
7946 int arg4 ;
7947 void *argp1 = 0 ;
7948 int res1 = 0 ;
7949 void *argp2 = 0 ;
7950 int res2 = 0 ;
7951 int val3 ;
7952 int ecode3 = 0 ;
7953 int val4 ;
7954 int ecode4 = 0 ;
7955 PyObject * obj0 = 0 ;
7956 PyObject * obj1 = 0 ;
7957 PyObject * obj2 = 0 ;
7958 PyObject * obj3 = 0 ;
7959 char * kwnames[] = {
7960 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7961 };
7962
7963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7965 if (!SWIG_IsOK(res1)) {
7966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7967 }
7968 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7969 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7970 if (!SWIG_IsOK(res2)) {
7971 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7972 }
7973 if (!argp2) {
7974 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7975 }
7976 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7977 ecode3 = SWIG_AsVal_int(obj2, &val3);
7978 if (!SWIG_IsOK(ecode3)) {
7979 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7980 }
7981 arg3 = static_cast< int >(val3);
7982 ecode4 = SWIG_AsVal_int(obj3, &val4);
7983 if (!SWIG_IsOK(ecode4)) {
7984 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7985 }
7986 arg4 = static_cast< int >(val4);
7987 {
7988 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7989 if (PyErr_Occurred()) SWIG_fail;
7990 }
7991 resultobj = SWIG_Py_Void();
7992 return resultobj;
7993 fail:
7994 return NULL;
7995 }
7996
7997
7998 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7999 PyObject *resultobj = 0;
8000 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8001 wxNativePixelData *arg2 = 0 ;
8002 int arg3 ;
8003 void *argp1 = 0 ;
8004 int res1 = 0 ;
8005 void *argp2 = 0 ;
8006 int res2 = 0 ;
8007 int val3 ;
8008 int ecode3 = 0 ;
8009 PyObject * obj0 = 0 ;
8010 PyObject * obj1 = 0 ;
8011 PyObject * obj2 = 0 ;
8012 char * kwnames[] = {
8013 (char *) "self",(char *) "data",(char *) "x", NULL
8014 };
8015
8016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8018 if (!SWIG_IsOK(res1)) {
8019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8020 }
8021 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8022 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8023 if (!SWIG_IsOK(res2)) {
8024 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8025 }
8026 if (!argp2) {
8027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8028 }
8029 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8030 ecode3 = SWIG_AsVal_int(obj2, &val3);
8031 if (!SWIG_IsOK(ecode3)) {
8032 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8033 }
8034 arg3 = static_cast< int >(val3);
8035 {
8036 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
8037 if (PyErr_Occurred()) SWIG_fail;
8038 }
8039 resultobj = SWIG_Py_Void();
8040 return resultobj;
8041 fail:
8042 return NULL;
8043 }
8044
8045
8046 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8047 PyObject *resultobj = 0;
8048 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8049 wxNativePixelData *arg2 = 0 ;
8050 int arg3 ;
8051 void *argp1 = 0 ;
8052 int res1 = 0 ;
8053 void *argp2 = 0 ;
8054 int res2 = 0 ;
8055 int val3 ;
8056 int ecode3 = 0 ;
8057 PyObject * obj0 = 0 ;
8058 PyObject * obj1 = 0 ;
8059 PyObject * obj2 = 0 ;
8060 char * kwnames[] = {
8061 (char *) "self",(char *) "data",(char *) "y", NULL
8062 };
8063
8064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8066 if (!SWIG_IsOK(res1)) {
8067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8068 }
8069 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8070 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8071 if (!SWIG_IsOK(res2)) {
8072 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8073 }
8074 if (!argp2) {
8075 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8076 }
8077 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8078 ecode3 = SWIG_AsVal_int(obj2, &val3);
8079 if (!SWIG_IsOK(ecode3)) {
8080 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8081 }
8082 arg3 = static_cast< int >(val3);
8083 {
8084 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8085 if (PyErr_Occurred()) SWIG_fail;
8086 }
8087 resultobj = SWIG_Py_Void();
8088 return resultobj;
8089 fail:
8090 return NULL;
8091 }
8092
8093
8094 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8095 PyObject *resultobj = 0;
8096 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8097 wxNativePixelData *arg2 = 0 ;
8098 int arg3 ;
8099 int arg4 ;
8100 void *argp1 = 0 ;
8101 int res1 = 0 ;
8102 void *argp2 = 0 ;
8103 int res2 = 0 ;
8104 int val3 ;
8105 int ecode3 = 0 ;
8106 int val4 ;
8107 int ecode4 = 0 ;
8108 PyObject * obj0 = 0 ;
8109 PyObject * obj1 = 0 ;
8110 PyObject * obj2 = 0 ;
8111 PyObject * obj3 = 0 ;
8112 char * kwnames[] = {
8113 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8114 };
8115
8116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8118 if (!SWIG_IsOK(res1)) {
8119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8120 }
8121 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8122 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8123 if (!SWIG_IsOK(res2)) {
8124 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8125 }
8126 if (!argp2) {
8127 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8128 }
8129 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8130 ecode3 = SWIG_AsVal_int(obj2, &val3);
8131 if (!SWIG_IsOK(ecode3)) {
8132 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8133 }
8134 arg3 = static_cast< int >(val3);
8135 ecode4 = SWIG_AsVal_int(obj3, &val4);
8136 if (!SWIG_IsOK(ecode4)) {
8137 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8138 }
8139 arg4 = static_cast< int >(val4);
8140 {
8141 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8142 if (PyErr_Occurred()) SWIG_fail;
8143 }
8144 resultobj = SWIG_Py_Void();
8145 return resultobj;
8146 fail:
8147 return NULL;
8148 }
8149
8150
8151 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8152 PyObject *resultobj = 0;
8153 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8154 byte arg2 ;
8155 byte arg3 ;
8156 byte arg4 ;
8157 void *argp1 = 0 ;
8158 int res1 = 0 ;
8159 unsigned char val2 ;
8160 int ecode2 = 0 ;
8161 unsigned char val3 ;
8162 int ecode3 = 0 ;
8163 unsigned char val4 ;
8164 int ecode4 = 0 ;
8165 PyObject * obj0 = 0 ;
8166 PyObject * obj1 = 0 ;
8167 PyObject * obj2 = 0 ;
8168 PyObject * obj3 = 0 ;
8169 char * kwnames[] = {
8170 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8171 };
8172
8173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8175 if (!SWIG_IsOK(res1)) {
8176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8177 }
8178 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8179 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8180 if (!SWIG_IsOK(ecode2)) {
8181 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8182 }
8183 arg2 = static_cast< byte >(val2);
8184 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8185 if (!SWIG_IsOK(ecode3)) {
8186 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8187 }
8188 arg3 = static_cast< byte >(val3);
8189 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8190 if (!SWIG_IsOK(ecode4)) {
8191 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8192 }
8193 arg4 = static_cast< byte >(val4);
8194 {
8195 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8196 if (PyErr_Occurred()) SWIG_fail;
8197 }
8198 resultobj = SWIG_Py_Void();
8199 return resultobj;
8200 fail:
8201 return NULL;
8202 }
8203
8204
8205 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8206 PyObject *resultobj = 0;
8207 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8208 PyObject *result = 0 ;
8209 void *argp1 = 0 ;
8210 int res1 = 0 ;
8211 PyObject *swig_obj[1] ;
8212
8213 if (!args) SWIG_fail;
8214 swig_obj[0] = args;
8215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8216 if (!SWIG_IsOK(res1)) {
8217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8218 }
8219 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8220 {
8221 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8222 if (PyErr_Occurred()) SWIG_fail;
8223 }
8224 resultobj = result;
8225 return resultobj;
8226 fail:
8227 return NULL;
8228 }
8229
8230
8231 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8232 PyObject *obj;
8233 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8234 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8235 return SWIG_Py_Void();
8236 }
8237
8238 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8239 return SWIG_Python_InitShadowInstance(args);
8240 }
8241
8242 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8243 PyObject *resultobj = 0;
8244 wxBitmap *arg1 = 0 ;
8245 wxAlphaPixelData *result = 0 ;
8246 void *argp1 = 0 ;
8247 int res1 = 0 ;
8248
8249 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8251 if (!SWIG_IsOK(res1)) {
8252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8253 }
8254 if (!argp1) {
8255 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8256 }
8257 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8258 {
8259 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8260 if (PyErr_Occurred()) SWIG_fail;
8261 }
8262 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8263 return resultobj;
8264 fail:
8265 return NULL;
8266 }
8267
8268
8269 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8270 PyObject *resultobj = 0;
8271 wxBitmap *arg1 = 0 ;
8272 wxRect *arg2 = 0 ;
8273 wxAlphaPixelData *result = 0 ;
8274 void *argp1 = 0 ;
8275 int res1 = 0 ;
8276 wxRect temp2 ;
8277
8278 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8280 if (!SWIG_IsOK(res1)) {
8281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8282 }
8283 if (!argp1) {
8284 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8285 }
8286 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8287 {
8288 arg2 = &temp2;
8289 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8290 }
8291 {
8292 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8293 if (PyErr_Occurred()) SWIG_fail;
8294 }
8295 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8296 return resultobj;
8297 fail:
8298 return NULL;
8299 }
8300
8301
8302 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8303 PyObject *resultobj = 0;
8304 wxBitmap *arg1 = 0 ;
8305 wxPoint *arg2 = 0 ;
8306 wxSize *arg3 = 0 ;
8307 wxAlphaPixelData *result = 0 ;
8308 void *argp1 = 0 ;
8309 int res1 = 0 ;
8310 wxPoint temp2 ;
8311 wxSize temp3 ;
8312
8313 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8315 if (!SWIG_IsOK(res1)) {
8316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8317 }
8318 if (!argp1) {
8319 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8320 }
8321 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8322 {
8323 arg2 = &temp2;
8324 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8325 }
8326 {
8327 arg3 = &temp3;
8328 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8329 }
8330 {
8331 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8332 if (PyErr_Occurred()) SWIG_fail;
8333 }
8334 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8335 return resultobj;
8336 fail:
8337 return NULL;
8338 }
8339
8340
8341 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8342 int argc;
8343 PyObject *argv[4];
8344
8345 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8346 --argc;
8347 if (argc == 1) {
8348 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8349 }
8350 if (argc == 2) {
8351 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8352 }
8353 if (argc == 3) {
8354 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8355 }
8356
8357 fail:
8358 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8359 return NULL;
8360 }
8361
8362
8363 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8364 PyObject *resultobj = 0;
8365 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8366 void *argp1 = 0 ;
8367 int res1 = 0 ;
8368 PyObject *swig_obj[1] ;
8369
8370 if (!args) SWIG_fail;
8371 swig_obj[0] = args;
8372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8373 if (!SWIG_IsOK(res1)) {
8374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8375 }
8376 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8377 {
8378 delete arg1;
8379
8380 if (PyErr_Occurred()) SWIG_fail;
8381 }
8382 resultobj = SWIG_Py_Void();
8383 return resultobj;
8384 fail:
8385 return NULL;
8386 }
8387
8388
8389 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8390 PyObject *resultobj = 0;
8391 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8392 wxAlphaPixelData_Accessor result;
8393 void *argp1 = 0 ;
8394 int res1 = 0 ;
8395 PyObject *swig_obj[1] ;
8396
8397 if (!args) SWIG_fail;
8398 swig_obj[0] = args;
8399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8400 if (!SWIG_IsOK(res1)) {
8401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8402 }
8403 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8404 {
8405 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8406 if (PyErr_Occurred()) SWIG_fail;
8407 }
8408 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8409 return resultobj;
8410 fail:
8411 return NULL;
8412 }
8413
8414
8415 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8416 PyObject *resultobj = 0;
8417 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8418 void *argp1 = 0 ;
8419 int res1 = 0 ;
8420 PyObject *swig_obj[1] ;
8421
8422 if (!args) SWIG_fail;
8423 swig_obj[0] = args;
8424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8425 if (!SWIG_IsOK(res1)) {
8426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8427 }
8428 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8429 {
8430 (arg1)->UseAlpha();
8431 if (PyErr_Occurred()) SWIG_fail;
8432 }
8433 resultobj = SWIG_Py_Void();
8434 return resultobj;
8435 fail:
8436 return NULL;
8437 }
8438
8439
8440 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8441 PyObject *resultobj = 0;
8442 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8443 bool result;
8444 void *argp1 = 0 ;
8445 int res1 = 0 ;
8446 PyObject *swig_obj[1] ;
8447
8448 if (!args) SWIG_fail;
8449 swig_obj[0] = args;
8450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8451 if (!SWIG_IsOK(res1)) {
8452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8453 }
8454 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8455 {
8456 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8457 if (PyErr_Occurred()) SWIG_fail;
8458 }
8459 {
8460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8461 }
8462 return resultobj;
8463 fail:
8464 return NULL;
8465 }
8466
8467
8468 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8469 PyObject *obj;
8470 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8471 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8472 return SWIG_Py_Void();
8473 }
8474
8475 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8476 return SWIG_Python_InitShadowInstance(args);
8477 }
8478
8479 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8480 PyObject *resultobj = 0;
8481 wxAlphaPixelData *arg1 = 0 ;
8482 wxAlphaPixelData_Accessor *result = 0 ;
8483 void *argp1 = 0 ;
8484 int res1 = 0 ;
8485
8486 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8488 if (!SWIG_IsOK(res1)) {
8489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8490 }
8491 if (!argp1) {
8492 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8493 }
8494 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8495 {
8496 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8497 if (PyErr_Occurred()) SWIG_fail;
8498 }
8499 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8500 return resultobj;
8501 fail:
8502 return NULL;
8503 }
8504
8505
8506 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8507 PyObject *resultobj = 0;
8508 wxBitmap *arg1 = 0 ;
8509 wxAlphaPixelData *arg2 = 0 ;
8510 wxAlphaPixelData_Accessor *result = 0 ;
8511 void *argp1 = 0 ;
8512 int res1 = 0 ;
8513 void *argp2 = 0 ;
8514 int res2 = 0 ;
8515
8516 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8518 if (!SWIG_IsOK(res1)) {
8519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8520 }
8521 if (!argp1) {
8522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8523 }
8524 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8525 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8526 if (!SWIG_IsOK(res2)) {
8527 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8528 }
8529 if (!argp2) {
8530 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8531 }
8532 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8533 {
8534 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8535 if (PyErr_Occurred()) SWIG_fail;
8536 }
8537 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8538 return resultobj;
8539 fail:
8540 return NULL;
8541 }
8542
8543
8544 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8545 PyObject *resultobj = 0;
8546 wxAlphaPixelData_Accessor *result = 0 ;
8547
8548 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8549 {
8550 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8551 if (PyErr_Occurred()) SWIG_fail;
8552 }
8553 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8554 return resultobj;
8555 fail:
8556 return NULL;
8557 }
8558
8559
8560 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8561 int argc;
8562 PyObject *argv[3];
8563
8564 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8565 --argc;
8566 if (argc == 0) {
8567 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8568 }
8569 if (argc == 1) {
8570 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8571 }
8572 if (argc == 2) {
8573 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8574 }
8575
8576 fail:
8577 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8578 return NULL;
8579 }
8580
8581
8582 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8583 PyObject *resultobj = 0;
8584 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8585 void *argp1 = 0 ;
8586 int res1 = 0 ;
8587 PyObject *swig_obj[1] ;
8588
8589 if (!args) SWIG_fail;
8590 swig_obj[0] = args;
8591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8592 if (!SWIG_IsOK(res1)) {
8593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8594 }
8595 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8596 {
8597 delete arg1;
8598
8599 if (PyErr_Occurred()) SWIG_fail;
8600 }
8601 resultobj = SWIG_Py_Void();
8602 return resultobj;
8603 fail:
8604 return NULL;
8605 }
8606
8607
8608 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8609 PyObject *resultobj = 0;
8610 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8611 wxAlphaPixelData *arg2 = 0 ;
8612 void *argp1 = 0 ;
8613 int res1 = 0 ;
8614 void *argp2 = 0 ;
8615 int res2 = 0 ;
8616 PyObject * obj0 = 0 ;
8617 PyObject * obj1 = 0 ;
8618 char * kwnames[] = {
8619 (char *) "self",(char *) "data", NULL
8620 };
8621
8622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8624 if (!SWIG_IsOK(res1)) {
8625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8626 }
8627 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8628 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8629 if (!SWIG_IsOK(res2)) {
8630 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8631 }
8632 if (!argp2) {
8633 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8634 }
8635 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8636 {
8637 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8638 if (PyErr_Occurred()) SWIG_fail;
8639 }
8640 resultobj = SWIG_Py_Void();
8641 return resultobj;
8642 fail:
8643 return NULL;
8644 }
8645
8646
8647 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8648 PyObject *resultobj = 0;
8649 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8650 bool result;
8651 void *argp1 = 0 ;
8652 int res1 = 0 ;
8653 PyObject *swig_obj[1] ;
8654
8655 if (!args) SWIG_fail;
8656 swig_obj[0] = args;
8657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8658 if (!SWIG_IsOK(res1)) {
8659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8660 }
8661 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8662 {
8663 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8664 if (PyErr_Occurred()) SWIG_fail;
8665 }
8666 {
8667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8668 }
8669 return resultobj;
8670 fail:
8671 return NULL;
8672 }
8673
8674
8675 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8676 PyObject *resultobj = 0;
8677 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8678 void *argp1 = 0 ;
8679 int res1 = 0 ;
8680 PyObject *swig_obj[1] ;
8681
8682 if (!args) SWIG_fail;
8683 swig_obj[0] = args;
8684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8685 if (!SWIG_IsOK(res1)) {
8686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8687 }
8688 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8689 {
8690 wxAlphaPixelData_Accessor_nextPixel(arg1);
8691 if (PyErr_Occurred()) SWIG_fail;
8692 }
8693 resultobj = SWIG_Py_Void();
8694 return resultobj;
8695 fail:
8696 return NULL;
8697 }
8698
8699
8700 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8701 PyObject *resultobj = 0;
8702 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8703 wxAlphaPixelData *arg2 = 0 ;
8704 int arg3 ;
8705 int arg4 ;
8706 void *argp1 = 0 ;
8707 int res1 = 0 ;
8708 void *argp2 = 0 ;
8709 int res2 = 0 ;
8710 int val3 ;
8711 int ecode3 = 0 ;
8712 int val4 ;
8713 int ecode4 = 0 ;
8714 PyObject * obj0 = 0 ;
8715 PyObject * obj1 = 0 ;
8716 PyObject * obj2 = 0 ;
8717 PyObject * obj3 = 0 ;
8718 char * kwnames[] = {
8719 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8720 };
8721
8722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8724 if (!SWIG_IsOK(res1)) {
8725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8726 }
8727 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8728 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8729 if (!SWIG_IsOK(res2)) {
8730 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8731 }
8732 if (!argp2) {
8733 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8734 }
8735 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8736 ecode3 = SWIG_AsVal_int(obj2, &val3);
8737 if (!SWIG_IsOK(ecode3)) {
8738 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8739 }
8740 arg3 = static_cast< int >(val3);
8741 ecode4 = SWIG_AsVal_int(obj3, &val4);
8742 if (!SWIG_IsOK(ecode4)) {
8743 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8744 }
8745 arg4 = static_cast< int >(val4);
8746 {
8747 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8748 if (PyErr_Occurred()) SWIG_fail;
8749 }
8750 resultobj = SWIG_Py_Void();
8751 return resultobj;
8752 fail:
8753 return NULL;
8754 }
8755
8756
8757 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8758 PyObject *resultobj = 0;
8759 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8760 wxAlphaPixelData *arg2 = 0 ;
8761 int arg3 ;
8762 void *argp1 = 0 ;
8763 int res1 = 0 ;
8764 void *argp2 = 0 ;
8765 int res2 = 0 ;
8766 int val3 ;
8767 int ecode3 = 0 ;
8768 PyObject * obj0 = 0 ;
8769 PyObject * obj1 = 0 ;
8770 PyObject * obj2 = 0 ;
8771 char * kwnames[] = {
8772 (char *) "self",(char *) "data",(char *) "x", NULL
8773 };
8774
8775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8777 if (!SWIG_IsOK(res1)) {
8778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8779 }
8780 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8781 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8782 if (!SWIG_IsOK(res2)) {
8783 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8784 }
8785 if (!argp2) {
8786 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8787 }
8788 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8789 ecode3 = SWIG_AsVal_int(obj2, &val3);
8790 if (!SWIG_IsOK(ecode3)) {
8791 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8792 }
8793 arg3 = static_cast< int >(val3);
8794 {
8795 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8796 if (PyErr_Occurred()) SWIG_fail;
8797 }
8798 resultobj = SWIG_Py_Void();
8799 return resultobj;
8800 fail:
8801 return NULL;
8802 }
8803
8804
8805 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8806 PyObject *resultobj = 0;
8807 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8808 wxAlphaPixelData *arg2 = 0 ;
8809 int arg3 ;
8810 void *argp1 = 0 ;
8811 int res1 = 0 ;
8812 void *argp2 = 0 ;
8813 int res2 = 0 ;
8814 int val3 ;
8815 int ecode3 = 0 ;
8816 PyObject * obj0 = 0 ;
8817 PyObject * obj1 = 0 ;
8818 PyObject * obj2 = 0 ;
8819 char * kwnames[] = {
8820 (char *) "self",(char *) "data",(char *) "y", NULL
8821 };
8822
8823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8825 if (!SWIG_IsOK(res1)) {
8826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8827 }
8828 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8829 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8830 if (!SWIG_IsOK(res2)) {
8831 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8832 }
8833 if (!argp2) {
8834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8835 }
8836 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8837 ecode3 = SWIG_AsVal_int(obj2, &val3);
8838 if (!SWIG_IsOK(ecode3)) {
8839 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8840 }
8841 arg3 = static_cast< int >(val3);
8842 {
8843 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8844 if (PyErr_Occurred()) SWIG_fail;
8845 }
8846 resultobj = SWIG_Py_Void();
8847 return resultobj;
8848 fail:
8849 return NULL;
8850 }
8851
8852
8853 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8854 PyObject *resultobj = 0;
8855 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8856 wxAlphaPixelData *arg2 = 0 ;
8857 int arg3 ;
8858 int arg4 ;
8859 void *argp1 = 0 ;
8860 int res1 = 0 ;
8861 void *argp2 = 0 ;
8862 int res2 = 0 ;
8863 int val3 ;
8864 int ecode3 = 0 ;
8865 int val4 ;
8866 int ecode4 = 0 ;
8867 PyObject * obj0 = 0 ;
8868 PyObject * obj1 = 0 ;
8869 PyObject * obj2 = 0 ;
8870 PyObject * obj3 = 0 ;
8871 char * kwnames[] = {
8872 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8873 };
8874
8875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8877 if (!SWIG_IsOK(res1)) {
8878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8879 }
8880 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8881 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8882 if (!SWIG_IsOK(res2)) {
8883 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8884 }
8885 if (!argp2) {
8886 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8887 }
8888 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8889 ecode3 = SWIG_AsVal_int(obj2, &val3);
8890 if (!SWIG_IsOK(ecode3)) {
8891 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8892 }
8893 arg3 = static_cast< int >(val3);
8894 ecode4 = SWIG_AsVal_int(obj3, &val4);
8895 if (!SWIG_IsOK(ecode4)) {
8896 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8897 }
8898 arg4 = static_cast< int >(val4);
8899 {
8900 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8901 if (PyErr_Occurred()) SWIG_fail;
8902 }
8903 resultobj = SWIG_Py_Void();
8904 return resultobj;
8905 fail:
8906 return NULL;
8907 }
8908
8909
8910 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8911 PyObject *resultobj = 0;
8912 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8913 byte arg2 ;
8914 byte arg3 ;
8915 byte arg4 ;
8916 byte arg5 ;
8917 void *argp1 = 0 ;
8918 int res1 = 0 ;
8919 unsigned char val2 ;
8920 int ecode2 = 0 ;
8921 unsigned char val3 ;
8922 int ecode3 = 0 ;
8923 unsigned char val4 ;
8924 int ecode4 = 0 ;
8925 unsigned char val5 ;
8926 int ecode5 = 0 ;
8927 PyObject * obj0 = 0 ;
8928 PyObject * obj1 = 0 ;
8929 PyObject * obj2 = 0 ;
8930 PyObject * obj3 = 0 ;
8931 PyObject * obj4 = 0 ;
8932 char * kwnames[] = {
8933 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8934 };
8935
8936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8938 if (!SWIG_IsOK(res1)) {
8939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8940 }
8941 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8942 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8943 if (!SWIG_IsOK(ecode2)) {
8944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8945 }
8946 arg2 = static_cast< byte >(val2);
8947 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8948 if (!SWIG_IsOK(ecode3)) {
8949 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8950 }
8951 arg3 = static_cast< byte >(val3);
8952 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8953 if (!SWIG_IsOK(ecode4)) {
8954 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8955 }
8956 arg4 = static_cast< byte >(val4);
8957 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8958 if (!SWIG_IsOK(ecode5)) {
8959 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8960 }
8961 arg5 = static_cast< byte >(val5);
8962 {
8963 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8964 if (PyErr_Occurred()) SWIG_fail;
8965 }
8966 resultobj = SWIG_Py_Void();
8967 return resultobj;
8968 fail:
8969 return NULL;
8970 }
8971
8972
8973 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8974 PyObject *resultobj = 0;
8975 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8976 PyObject *result = 0 ;
8977 void *argp1 = 0 ;
8978 int res1 = 0 ;
8979 PyObject *swig_obj[1] ;
8980
8981 if (!args) SWIG_fail;
8982 swig_obj[0] = args;
8983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8984 if (!SWIG_IsOK(res1)) {
8985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8986 }
8987 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8988 {
8989 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8990 if (PyErr_Occurred()) SWIG_fail;
8991 }
8992 resultobj = result;
8993 return resultobj;
8994 fail:
8995 return NULL;
8996 }
8997
8998
8999 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9000 PyObject *obj;
9001 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9002 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
9003 return SWIG_Py_Void();
9004 }
9005
9006 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9007 return SWIG_Python_InitShadowInstance(args);
9008 }
9009
9010 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9011 PyObject *resultobj = 0;
9012 wxBitmap *arg1 = 0 ;
9013 wxColour const &arg2_defvalue = wxNullColour ;
9014 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
9015 wxMask *result = 0 ;
9016 void *argp1 = 0 ;
9017 int res1 = 0 ;
9018 wxColour temp2 ;
9019 PyObject * obj0 = 0 ;
9020 PyObject * obj1 = 0 ;
9021 char * kwnames[] = {
9022 (char *) "bitmap",(char *) "colour", NULL
9023 };
9024
9025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
9026 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9027 if (!SWIG_IsOK(res1)) {
9028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9029 }
9030 if (!argp1) {
9031 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9032 }
9033 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9034 if (obj1) {
9035 {
9036 arg2 = &temp2;
9037 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9038 }
9039 }
9040 {
9041 if (!wxPyCheckForApp()) SWIG_fail;
9042 PyThreadState* __tstate = wxPyBeginAllowThreads();
9043 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
9044 wxPyEndAllowThreads(__tstate);
9045 if (PyErr_Occurred()) SWIG_fail;
9046 }
9047 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9048 return resultobj;
9049 fail:
9050 return NULL;
9051 }
9052
9053
9054 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9055 PyObject *resultobj = 0;
9056 wxMask *arg1 = (wxMask *) 0 ;
9057 void *argp1 = 0 ;
9058 int res1 = 0 ;
9059 PyObject *swig_obj[1] ;
9060
9061 if (!args) SWIG_fail;
9062 swig_obj[0] = args;
9063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9064 if (!SWIG_IsOK(res1)) {
9065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9066 }
9067 arg1 = reinterpret_cast< wxMask * >(argp1);
9068 {
9069 delete arg1;
9070
9071 if (PyErr_Occurred()) SWIG_fail;
9072 }
9073 resultobj = SWIG_Py_Void();
9074 return resultobj;
9075 fail:
9076 return NULL;
9077 }
9078
9079
9080 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9081 PyObject *obj;
9082 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9083 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9084 return SWIG_Py_Void();
9085 }
9086
9087 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9088 return SWIG_Python_InitShadowInstance(args);
9089 }
9090
9091 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9092 PyObject *resultobj = 0;
9093 wxString *arg1 = 0 ;
9094 wxBitmapType arg2 ;
9095 int arg3 = (int) -1 ;
9096 int arg4 = (int) -1 ;
9097 wxIcon *result = 0 ;
9098 bool temp1 = false ;
9099 int val2 ;
9100 int ecode2 = 0 ;
9101 int val3 ;
9102 int ecode3 = 0 ;
9103 int val4 ;
9104 int ecode4 = 0 ;
9105 PyObject * obj0 = 0 ;
9106 PyObject * obj1 = 0 ;
9107 PyObject * obj2 = 0 ;
9108 PyObject * obj3 = 0 ;
9109 char * kwnames[] = {
9110 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9111 };
9112
9113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9114 {
9115 arg1 = wxString_in_helper(obj0);
9116 if (arg1 == NULL) SWIG_fail;
9117 temp1 = true;
9118 }
9119 ecode2 = SWIG_AsVal_int(obj1, &val2);
9120 if (!SWIG_IsOK(ecode2)) {
9121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9122 }
9123 arg2 = static_cast< wxBitmapType >(val2);
9124 if (obj2) {
9125 ecode3 = SWIG_AsVal_int(obj2, &val3);
9126 if (!SWIG_IsOK(ecode3)) {
9127 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9128 }
9129 arg3 = static_cast< int >(val3);
9130 }
9131 if (obj3) {
9132 ecode4 = SWIG_AsVal_int(obj3, &val4);
9133 if (!SWIG_IsOK(ecode4)) {
9134 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9135 }
9136 arg4 = static_cast< int >(val4);
9137 }
9138 {
9139 if (!wxPyCheckForApp()) SWIG_fail;
9140 PyThreadState* __tstate = wxPyBeginAllowThreads();
9141 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9142 wxPyEndAllowThreads(__tstate);
9143 if (PyErr_Occurred()) SWIG_fail;
9144 }
9145 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9146 {
9147 if (temp1)
9148 delete arg1;
9149 }
9150 return resultobj;
9151 fail:
9152 {
9153 if (temp1)
9154 delete arg1;
9155 }
9156 return NULL;
9157 }
9158
9159
9160 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9161 PyObject *resultobj = 0;
9162 wxIcon *arg1 = (wxIcon *) 0 ;
9163 void *argp1 = 0 ;
9164 int res1 = 0 ;
9165 PyObject *swig_obj[1] ;
9166
9167 if (!args) SWIG_fail;
9168 swig_obj[0] = args;
9169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9170 if (!SWIG_IsOK(res1)) {
9171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9172 }
9173 arg1 = reinterpret_cast< wxIcon * >(argp1);
9174 {
9175 PyThreadState* __tstate = wxPyBeginAllowThreads();
9176 delete arg1;
9177
9178 wxPyEndAllowThreads(__tstate);
9179 if (PyErr_Occurred()) SWIG_fail;
9180 }
9181 resultobj = SWIG_Py_Void();
9182 return resultobj;
9183 fail:
9184 return NULL;
9185 }
9186
9187
9188 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9189 PyObject *resultobj = 0;
9190 wxIcon *result = 0 ;
9191
9192 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9193 {
9194 if (!wxPyCheckForApp()) SWIG_fail;
9195 PyThreadState* __tstate = wxPyBeginAllowThreads();
9196 result = (wxIcon *)new wxIcon();
9197 wxPyEndAllowThreads(__tstate);
9198 if (PyErr_Occurred()) SWIG_fail;
9199 }
9200 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9201 return resultobj;
9202 fail:
9203 return NULL;
9204 }
9205
9206
9207 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9208 PyObject *resultobj = 0;
9209 wxIconLocation *arg1 = 0 ;
9210 wxIcon *result = 0 ;
9211 void *argp1 = 0 ;
9212 int res1 = 0 ;
9213 PyObject * obj0 = 0 ;
9214 char * kwnames[] = {
9215 (char *) "loc", NULL
9216 };
9217
9218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9219 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9220 if (!SWIG_IsOK(res1)) {
9221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9222 }
9223 if (!argp1) {
9224 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9225 }
9226 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9227 {
9228 if (!wxPyCheckForApp()) SWIG_fail;
9229 PyThreadState* __tstate = wxPyBeginAllowThreads();
9230 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9231 wxPyEndAllowThreads(__tstate);
9232 if (PyErr_Occurred()) SWIG_fail;
9233 }
9234 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9235 return resultobj;
9236 fail:
9237 return NULL;
9238 }
9239
9240
9241 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9242 PyObject *resultobj = 0;
9243 wxBitmap *arg1 = 0 ;
9244 wxIcon *result = 0 ;
9245 void *argp1 = 0 ;
9246 int res1 = 0 ;
9247 PyObject * obj0 = 0 ;
9248 char * kwnames[] = {
9249 (char *) "bmp", NULL
9250 };
9251
9252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9253 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9254 if (!SWIG_IsOK(res1)) {
9255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9256 }
9257 if (!argp1) {
9258 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9259 }
9260 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9261 {
9262 if (!wxPyCheckForApp()) SWIG_fail;
9263 PyThreadState* __tstate = wxPyBeginAllowThreads();
9264 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9265 wxPyEndAllowThreads(__tstate);
9266 if (PyErr_Occurred()) SWIG_fail;
9267 }
9268 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9269 return resultobj;
9270 fail:
9271 return NULL;
9272 }
9273
9274
9275 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9276 PyObject *resultobj = 0;
9277 PyObject *arg1 = (PyObject *) 0 ;
9278 wxIcon *result = 0 ;
9279 PyObject * obj0 = 0 ;
9280 char * kwnames[] = {
9281 (char *) "listOfStrings", NULL
9282 };
9283
9284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9285 arg1 = obj0;
9286 {
9287 if (!wxPyCheckForApp()) SWIG_fail;
9288 PyThreadState* __tstate = wxPyBeginAllowThreads();
9289 result = (wxIcon *)new_wxIcon(arg1);
9290 wxPyEndAllowThreads(__tstate);
9291 if (PyErr_Occurred()) SWIG_fail;
9292 }
9293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9294 return resultobj;
9295 fail:
9296 return NULL;
9297 }
9298
9299
9300 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9301 PyObject *resultobj = 0;
9302 wxIcon *arg1 = (wxIcon *) 0 ;
9303 bool result;
9304 void *argp1 = 0 ;
9305 int res1 = 0 ;
9306 PyObject *swig_obj[1] ;
9307
9308 if (!args) SWIG_fail;
9309 swig_obj[0] = args;
9310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9311 if (!SWIG_IsOK(res1)) {
9312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
9313 }
9314 arg1 = reinterpret_cast< wxIcon * >(argp1);
9315 {
9316 PyThreadState* __tstate = wxPyBeginAllowThreads();
9317 result = (bool)(arg1)->IsOk();
9318 wxPyEndAllowThreads(__tstate);
9319 if (PyErr_Occurred()) SWIG_fail;
9320 }
9321 {
9322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9323 }
9324 return resultobj;
9325 fail:
9326 return NULL;
9327 }
9328
9329
9330 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9331 PyObject *resultobj = 0;
9332 wxIcon *arg1 = (wxIcon *) 0 ;
9333 int result;
9334 void *argp1 = 0 ;
9335 int res1 = 0 ;
9336 PyObject *swig_obj[1] ;
9337
9338 if (!args) SWIG_fail;
9339 swig_obj[0] = args;
9340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9341 if (!SWIG_IsOK(res1)) {
9342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9343 }
9344 arg1 = reinterpret_cast< wxIcon * >(argp1);
9345 {
9346 PyThreadState* __tstate = wxPyBeginAllowThreads();
9347 result = (int)(arg1)->GetWidth();
9348 wxPyEndAllowThreads(__tstate);
9349 if (PyErr_Occurred()) SWIG_fail;
9350 }
9351 resultobj = SWIG_From_int(static_cast< int >(result));
9352 return resultobj;
9353 fail:
9354 return NULL;
9355 }
9356
9357
9358 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9359 PyObject *resultobj = 0;
9360 wxIcon *arg1 = (wxIcon *) 0 ;
9361 int result;
9362 void *argp1 = 0 ;
9363 int res1 = 0 ;
9364 PyObject *swig_obj[1] ;
9365
9366 if (!args) SWIG_fail;
9367 swig_obj[0] = args;
9368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9369 if (!SWIG_IsOK(res1)) {
9370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9371 }
9372 arg1 = reinterpret_cast< wxIcon * >(argp1);
9373 {
9374 PyThreadState* __tstate = wxPyBeginAllowThreads();
9375 result = (int)(arg1)->GetHeight();
9376 wxPyEndAllowThreads(__tstate);
9377 if (PyErr_Occurred()) SWIG_fail;
9378 }
9379 resultobj = SWIG_From_int(static_cast< int >(result));
9380 return resultobj;
9381 fail:
9382 return NULL;
9383 }
9384
9385
9386 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9387 PyObject *resultobj = 0;
9388 wxIcon *arg1 = (wxIcon *) 0 ;
9389 int result;
9390 void *argp1 = 0 ;
9391 int res1 = 0 ;
9392 PyObject *swig_obj[1] ;
9393
9394 if (!args) SWIG_fail;
9395 swig_obj[0] = args;
9396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9397 if (!SWIG_IsOK(res1)) {
9398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9399 }
9400 arg1 = reinterpret_cast< wxIcon * >(argp1);
9401 {
9402 PyThreadState* __tstate = wxPyBeginAllowThreads();
9403 result = (int)(arg1)->GetDepth();
9404 wxPyEndAllowThreads(__tstate);
9405 if (PyErr_Occurred()) SWIG_fail;
9406 }
9407 resultobj = SWIG_From_int(static_cast< int >(result));
9408 return resultobj;
9409 fail:
9410 return NULL;
9411 }
9412
9413
9414 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9415 PyObject *resultobj = 0;
9416 wxIcon *arg1 = (wxIcon *) 0 ;
9417 int arg2 ;
9418 void *argp1 = 0 ;
9419 int res1 = 0 ;
9420 int val2 ;
9421 int ecode2 = 0 ;
9422 PyObject * obj0 = 0 ;
9423 PyObject * obj1 = 0 ;
9424 char * kwnames[] = {
9425 (char *) "self",(char *) "w", NULL
9426 };
9427
9428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9430 if (!SWIG_IsOK(res1)) {
9431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9432 }
9433 arg1 = reinterpret_cast< wxIcon * >(argp1);
9434 ecode2 = SWIG_AsVal_int(obj1, &val2);
9435 if (!SWIG_IsOK(ecode2)) {
9436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9437 }
9438 arg2 = static_cast< int >(val2);
9439 {
9440 PyThreadState* __tstate = wxPyBeginAllowThreads();
9441 (arg1)->SetWidth(arg2);
9442 wxPyEndAllowThreads(__tstate);
9443 if (PyErr_Occurred()) SWIG_fail;
9444 }
9445 resultobj = SWIG_Py_Void();
9446 return resultobj;
9447 fail:
9448 return NULL;
9449 }
9450
9451
9452 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9453 PyObject *resultobj = 0;
9454 wxIcon *arg1 = (wxIcon *) 0 ;
9455 int arg2 ;
9456 void *argp1 = 0 ;
9457 int res1 = 0 ;
9458 int val2 ;
9459 int ecode2 = 0 ;
9460 PyObject * obj0 = 0 ;
9461 PyObject * obj1 = 0 ;
9462 char * kwnames[] = {
9463 (char *) "self",(char *) "h", NULL
9464 };
9465
9466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9468 if (!SWIG_IsOK(res1)) {
9469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9470 }
9471 arg1 = reinterpret_cast< wxIcon * >(argp1);
9472 ecode2 = SWIG_AsVal_int(obj1, &val2);
9473 if (!SWIG_IsOK(ecode2)) {
9474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9475 }
9476 arg2 = static_cast< int >(val2);
9477 {
9478 PyThreadState* __tstate = wxPyBeginAllowThreads();
9479 (arg1)->SetHeight(arg2);
9480 wxPyEndAllowThreads(__tstate);
9481 if (PyErr_Occurred()) SWIG_fail;
9482 }
9483 resultobj = SWIG_Py_Void();
9484 return resultobj;
9485 fail:
9486 return NULL;
9487 }
9488
9489
9490 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9491 PyObject *resultobj = 0;
9492 wxIcon *arg1 = (wxIcon *) 0 ;
9493 int arg2 ;
9494 void *argp1 = 0 ;
9495 int res1 = 0 ;
9496 int val2 ;
9497 int ecode2 = 0 ;
9498 PyObject * obj0 = 0 ;
9499 PyObject * obj1 = 0 ;
9500 char * kwnames[] = {
9501 (char *) "self",(char *) "d", NULL
9502 };
9503
9504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9506 if (!SWIG_IsOK(res1)) {
9507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9508 }
9509 arg1 = reinterpret_cast< wxIcon * >(argp1);
9510 ecode2 = SWIG_AsVal_int(obj1, &val2);
9511 if (!SWIG_IsOK(ecode2)) {
9512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9513 }
9514 arg2 = static_cast< int >(val2);
9515 {
9516 PyThreadState* __tstate = wxPyBeginAllowThreads();
9517 (arg1)->SetDepth(arg2);
9518 wxPyEndAllowThreads(__tstate);
9519 if (PyErr_Occurred()) SWIG_fail;
9520 }
9521 resultobj = SWIG_Py_Void();
9522 return resultobj;
9523 fail:
9524 return NULL;
9525 }
9526
9527
9528 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9529 PyObject *resultobj = 0;
9530 wxIcon *arg1 = (wxIcon *) 0 ;
9531 wxBitmap *arg2 = 0 ;
9532 void *argp1 = 0 ;
9533 int res1 = 0 ;
9534 void *argp2 = 0 ;
9535 int res2 = 0 ;
9536 PyObject * obj0 = 0 ;
9537 PyObject * obj1 = 0 ;
9538 char * kwnames[] = {
9539 (char *) "self",(char *) "bmp", NULL
9540 };
9541
9542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9544 if (!SWIG_IsOK(res1)) {
9545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9546 }
9547 arg1 = reinterpret_cast< wxIcon * >(argp1);
9548 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9549 if (!SWIG_IsOK(res2)) {
9550 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9551 }
9552 if (!argp2) {
9553 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9554 }
9555 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9556 {
9557 PyThreadState* __tstate = wxPyBeginAllowThreads();
9558 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9559 wxPyEndAllowThreads(__tstate);
9560 if (PyErr_Occurred()) SWIG_fail;
9561 }
9562 resultobj = SWIG_Py_Void();
9563 return resultobj;
9564 fail:
9565 return NULL;
9566 }
9567
9568
9569 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9570 PyObject *obj;
9571 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9572 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9573 return SWIG_Py_Void();
9574 }
9575
9576 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9577 return SWIG_Python_InitShadowInstance(args);
9578 }
9579
9580 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9581 PyObject *resultobj = 0;
9582 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9583 int arg2 = (int) 0 ;
9584 wxIconLocation *result = 0 ;
9585 bool temp1 = false ;
9586 int val2 ;
9587 int ecode2 = 0 ;
9588 PyObject * obj0 = 0 ;
9589 PyObject * obj1 = 0 ;
9590 char * kwnames[] = {
9591 (char *) "filename",(char *) "num", NULL
9592 };
9593
9594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9595 if (obj0) {
9596 {
9597 arg1 = wxString_in_helper(obj0);
9598 if (arg1 == NULL) SWIG_fail;
9599 temp1 = true;
9600 }
9601 }
9602 if (obj1) {
9603 ecode2 = SWIG_AsVal_int(obj1, &val2);
9604 if (!SWIG_IsOK(ecode2)) {
9605 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9606 }
9607 arg2 = static_cast< int >(val2);
9608 }
9609 {
9610 PyThreadState* __tstate = wxPyBeginAllowThreads();
9611 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9612 wxPyEndAllowThreads(__tstate);
9613 if (PyErr_Occurred()) SWIG_fail;
9614 }
9615 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9616 {
9617 if (temp1)
9618 delete arg1;
9619 }
9620 return resultobj;
9621 fail:
9622 {
9623 if (temp1)
9624 delete arg1;
9625 }
9626 return NULL;
9627 }
9628
9629
9630 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9631 PyObject *resultobj = 0;
9632 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9633 void *argp1 = 0 ;
9634 int res1 = 0 ;
9635 PyObject *swig_obj[1] ;
9636
9637 if (!args) SWIG_fail;
9638 swig_obj[0] = args;
9639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9640 if (!SWIG_IsOK(res1)) {
9641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9642 }
9643 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9644 {
9645 PyThreadState* __tstate = wxPyBeginAllowThreads();
9646 delete arg1;
9647
9648 wxPyEndAllowThreads(__tstate);
9649 if (PyErr_Occurred()) SWIG_fail;
9650 }
9651 resultobj = SWIG_Py_Void();
9652 return resultobj;
9653 fail:
9654 return NULL;
9655 }
9656
9657
9658 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9659 PyObject *resultobj = 0;
9660 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9661 bool result;
9662 void *argp1 = 0 ;
9663 int res1 = 0 ;
9664 PyObject *swig_obj[1] ;
9665
9666 if (!args) SWIG_fail;
9667 swig_obj[0] = args;
9668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9669 if (!SWIG_IsOK(res1)) {
9670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9671 }
9672 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9673 {
9674 PyThreadState* __tstate = wxPyBeginAllowThreads();
9675 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9676 wxPyEndAllowThreads(__tstate);
9677 if (PyErr_Occurred()) SWIG_fail;
9678 }
9679 {
9680 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9681 }
9682 return resultobj;
9683 fail:
9684 return NULL;
9685 }
9686
9687
9688 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9689 PyObject *resultobj = 0;
9690 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9691 wxString *arg2 = 0 ;
9692 void *argp1 = 0 ;
9693 int res1 = 0 ;
9694 bool temp2 = false ;
9695 PyObject * obj0 = 0 ;
9696 PyObject * obj1 = 0 ;
9697 char * kwnames[] = {
9698 (char *) "self",(char *) "filename", NULL
9699 };
9700
9701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9703 if (!SWIG_IsOK(res1)) {
9704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9705 }
9706 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9707 {
9708 arg2 = wxString_in_helper(obj1);
9709 if (arg2 == NULL) SWIG_fail;
9710 temp2 = true;
9711 }
9712 {
9713 PyThreadState* __tstate = wxPyBeginAllowThreads();
9714 (arg1)->SetFileName((wxString const &)*arg2);
9715 wxPyEndAllowThreads(__tstate);
9716 if (PyErr_Occurred()) SWIG_fail;
9717 }
9718 resultobj = SWIG_Py_Void();
9719 {
9720 if (temp2)
9721 delete arg2;
9722 }
9723 return resultobj;
9724 fail:
9725 {
9726 if (temp2)
9727 delete arg2;
9728 }
9729 return NULL;
9730 }
9731
9732
9733 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9734 PyObject *resultobj = 0;
9735 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9736 wxString *result = 0 ;
9737 void *argp1 = 0 ;
9738 int res1 = 0 ;
9739 PyObject *swig_obj[1] ;
9740
9741 if (!args) SWIG_fail;
9742 swig_obj[0] = args;
9743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9744 if (!SWIG_IsOK(res1)) {
9745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9746 }
9747 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9748 {
9749 PyThreadState* __tstate = wxPyBeginAllowThreads();
9750 {
9751 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9752 result = (wxString *) &_result_ref;
9753 }
9754 wxPyEndAllowThreads(__tstate);
9755 if (PyErr_Occurred()) SWIG_fail;
9756 }
9757 {
9758 #if wxUSE_UNICODE
9759 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9760 #else
9761 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9762 #endif
9763 }
9764 return resultobj;
9765 fail:
9766 return NULL;
9767 }
9768
9769
9770 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9771 PyObject *resultobj = 0;
9772 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9773 int arg2 ;
9774 void *argp1 = 0 ;
9775 int res1 = 0 ;
9776 int val2 ;
9777 int ecode2 = 0 ;
9778 PyObject * obj0 = 0 ;
9779 PyObject * obj1 = 0 ;
9780 char * kwnames[] = {
9781 (char *) "self",(char *) "num", NULL
9782 };
9783
9784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9786 if (!SWIG_IsOK(res1)) {
9787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9788 }
9789 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9790 ecode2 = SWIG_AsVal_int(obj1, &val2);
9791 if (!SWIG_IsOK(ecode2)) {
9792 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9793 }
9794 arg2 = static_cast< int >(val2);
9795 {
9796 PyThreadState* __tstate = wxPyBeginAllowThreads();
9797 wxIconLocation_SetIndex(arg1,arg2);
9798 wxPyEndAllowThreads(__tstate);
9799 if (PyErr_Occurred()) SWIG_fail;
9800 }
9801 resultobj = SWIG_Py_Void();
9802 return resultobj;
9803 fail:
9804 return NULL;
9805 }
9806
9807
9808 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9809 PyObject *resultobj = 0;
9810 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9811 int result;
9812 void *argp1 = 0 ;
9813 int res1 = 0 ;
9814 PyObject *swig_obj[1] ;
9815
9816 if (!args) SWIG_fail;
9817 swig_obj[0] = args;
9818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9819 if (!SWIG_IsOK(res1)) {
9820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9821 }
9822 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9823 {
9824 PyThreadState* __tstate = wxPyBeginAllowThreads();
9825 result = (int)wxIconLocation_GetIndex(arg1);
9826 wxPyEndAllowThreads(__tstate);
9827 if (PyErr_Occurred()) SWIG_fail;
9828 }
9829 resultobj = SWIG_From_int(static_cast< int >(result));
9830 return resultobj;
9831 fail:
9832 return NULL;
9833 }
9834
9835
9836 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9837 PyObject *obj;
9838 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9839 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9840 return SWIG_Py_Void();
9841 }
9842
9843 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9844 return SWIG_Python_InitShadowInstance(args);
9845 }
9846
9847 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9848 PyObject *resultobj = 0;
9849 wxIconBundle *result = 0 ;
9850
9851 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9852 {
9853 PyThreadState* __tstate = wxPyBeginAllowThreads();
9854 result = (wxIconBundle *)new wxIconBundle();
9855 wxPyEndAllowThreads(__tstate);
9856 if (PyErr_Occurred()) SWIG_fail;
9857 }
9858 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9859 return resultobj;
9860 fail:
9861 return NULL;
9862 }
9863
9864
9865 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9866 PyObject *resultobj = 0;
9867 wxString *arg1 = 0 ;
9868 long arg2 ;
9869 wxIconBundle *result = 0 ;
9870 bool temp1 = false ;
9871 long val2 ;
9872 int ecode2 = 0 ;
9873 PyObject * obj0 = 0 ;
9874 PyObject * obj1 = 0 ;
9875 char * kwnames[] = {
9876 (char *) "file",(char *) "type", NULL
9877 };
9878
9879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9880 {
9881 arg1 = wxString_in_helper(obj0);
9882 if (arg1 == NULL) SWIG_fail;
9883 temp1 = true;
9884 }
9885 ecode2 = SWIG_AsVal_long(obj1, &val2);
9886 if (!SWIG_IsOK(ecode2)) {
9887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9888 }
9889 arg2 = static_cast< long >(val2);
9890 {
9891 PyThreadState* __tstate = wxPyBeginAllowThreads();
9892 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9893 wxPyEndAllowThreads(__tstate);
9894 if (PyErr_Occurred()) SWIG_fail;
9895 }
9896 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9897 {
9898 if (temp1)
9899 delete arg1;
9900 }
9901 return resultobj;
9902 fail:
9903 {
9904 if (temp1)
9905 delete arg1;
9906 }
9907 return NULL;
9908 }
9909
9910
9911 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9912 PyObject *resultobj = 0;
9913 wxIcon *arg1 = 0 ;
9914 wxIconBundle *result = 0 ;
9915 void *argp1 = 0 ;
9916 int res1 = 0 ;
9917 PyObject * obj0 = 0 ;
9918 char * kwnames[] = {
9919 (char *) "icon", NULL
9920 };
9921
9922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9923 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9924 if (!SWIG_IsOK(res1)) {
9925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9926 }
9927 if (!argp1) {
9928 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9929 }
9930 arg1 = reinterpret_cast< wxIcon * >(argp1);
9931 {
9932 PyThreadState* __tstate = wxPyBeginAllowThreads();
9933 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9934 wxPyEndAllowThreads(__tstate);
9935 if (PyErr_Occurred()) SWIG_fail;
9936 }
9937 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9938 return resultobj;
9939 fail:
9940 return NULL;
9941 }
9942
9943
9944 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9945 PyObject *resultobj = 0;
9946 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9947 void *argp1 = 0 ;
9948 int res1 = 0 ;
9949 PyObject *swig_obj[1] ;
9950
9951 if (!args) SWIG_fail;
9952 swig_obj[0] = args;
9953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9954 if (!SWIG_IsOK(res1)) {
9955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9956 }
9957 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9958 {
9959 PyThreadState* __tstate = wxPyBeginAllowThreads();
9960 delete arg1;
9961
9962 wxPyEndAllowThreads(__tstate);
9963 if (PyErr_Occurred()) SWIG_fail;
9964 }
9965 resultobj = SWIG_Py_Void();
9966 return resultobj;
9967 fail:
9968 return NULL;
9969 }
9970
9971
9972 SWIGINTERN PyObject *_wrap_IconBundle_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9973 PyObject *resultobj = 0;
9974 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9975 bool result;
9976 void *argp1 = 0 ;
9977 int res1 = 0 ;
9978 PyObject *swig_obj[1] ;
9979
9980 if (!args) SWIG_fail;
9981 swig_obj[0] = args;
9982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9983 if (!SWIG_IsOK(res1)) {
9984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_IsOk" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9985 }
9986 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9987 {
9988 PyThreadState* __tstate = wxPyBeginAllowThreads();
9989 result = (bool)((wxIconBundle const *)arg1)->IsOk();
9990 wxPyEndAllowThreads(__tstate);
9991 if (PyErr_Occurred()) SWIG_fail;
9992 }
9993 {
9994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9995 }
9996 return resultobj;
9997 fail:
9998 return NULL;
9999 }
10000
10001
10002 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10003 PyObject *resultobj = 0;
10004 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10005 wxIcon *arg2 = 0 ;
10006 void *argp1 = 0 ;
10007 int res1 = 0 ;
10008 void *argp2 = 0 ;
10009 int res2 = 0 ;
10010 PyObject * obj0 = 0 ;
10011 PyObject * obj1 = 0 ;
10012 char * kwnames[] = {
10013 (char *) "self",(char *) "icon", NULL
10014 };
10015
10016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10018 if (!SWIG_IsOK(res1)) {
10019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10020 }
10021 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10022 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
10023 if (!SWIG_IsOK(res2)) {
10024 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10025 }
10026 if (!argp2) {
10027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10028 }
10029 arg2 = reinterpret_cast< wxIcon * >(argp2);
10030 {
10031 PyThreadState* __tstate = wxPyBeginAllowThreads();
10032 (arg1)->AddIcon((wxIcon const &)*arg2);
10033 wxPyEndAllowThreads(__tstate);
10034 if (PyErr_Occurred()) SWIG_fail;
10035 }
10036 resultobj = SWIG_Py_Void();
10037 return resultobj;
10038 fail:
10039 return NULL;
10040 }
10041
10042
10043 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10044 PyObject *resultobj = 0;
10045 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10046 wxString *arg2 = 0 ;
10047 long arg3 ;
10048 void *argp1 = 0 ;
10049 int res1 = 0 ;
10050 bool temp2 = false ;
10051 long val3 ;
10052 int ecode3 = 0 ;
10053 PyObject * obj0 = 0 ;
10054 PyObject * obj1 = 0 ;
10055 PyObject * obj2 = 0 ;
10056 char * kwnames[] = {
10057 (char *) "self",(char *) "file",(char *) "type", NULL
10058 };
10059
10060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10062 if (!SWIG_IsOK(res1)) {
10063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10064 }
10065 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10066 {
10067 arg2 = wxString_in_helper(obj1);
10068 if (arg2 == NULL) SWIG_fail;
10069 temp2 = true;
10070 }
10071 ecode3 = SWIG_AsVal_long(obj2, &val3);
10072 if (!SWIG_IsOK(ecode3)) {
10073 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10074 }
10075 arg3 = static_cast< long >(val3);
10076 {
10077 PyThreadState* __tstate = wxPyBeginAllowThreads();
10078 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10079 wxPyEndAllowThreads(__tstate);
10080 if (PyErr_Occurred()) SWIG_fail;
10081 }
10082 resultobj = SWIG_Py_Void();
10083 {
10084 if (temp2)
10085 delete arg2;
10086 }
10087 return resultobj;
10088 fail:
10089 {
10090 if (temp2)
10091 delete arg2;
10092 }
10093 return NULL;
10094 }
10095
10096
10097 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10098 PyObject *resultobj = 0;
10099 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10100 wxSize *arg2 = 0 ;
10101 wxIcon *result = 0 ;
10102 void *argp1 = 0 ;
10103 int res1 = 0 ;
10104 wxSize temp2 ;
10105 PyObject * obj0 = 0 ;
10106 PyObject * obj1 = 0 ;
10107 char * kwnames[] = {
10108 (char *) "self",(char *) "size", NULL
10109 };
10110
10111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10113 if (!SWIG_IsOK(res1)) {
10114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10115 }
10116 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10117 {
10118 arg2 = &temp2;
10119 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10120 }
10121 {
10122 PyThreadState* __tstate = wxPyBeginAllowThreads();
10123 {
10124 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10125 result = (wxIcon *) &_result_ref;
10126 }
10127 wxPyEndAllowThreads(__tstate);
10128 if (PyErr_Occurred()) SWIG_fail;
10129 }
10130 {
10131 wxIcon* resultptr = new wxIcon(*result);
10132 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10133 }
10134 return resultobj;
10135 fail:
10136 return NULL;
10137 }
10138
10139
10140 SWIGINTERN PyObject *_wrap_IconBundle_GetIconOfExactSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10141 PyObject *resultobj = 0;
10142 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10143 wxSize *arg2 = 0 ;
10144 wxIcon result;
10145 void *argp1 = 0 ;
10146 int res1 = 0 ;
10147 wxSize temp2 ;
10148 PyObject * obj0 = 0 ;
10149 PyObject * obj1 = 0 ;
10150 char * kwnames[] = {
10151 (char *) "self",(char *) "size", NULL
10152 };
10153
10154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIconOfExactSize",kwnames,&obj0,&obj1)) SWIG_fail;
10155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10156 if (!SWIG_IsOK(res1)) {
10157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIconOfExactSize" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10158 }
10159 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10160 {
10161 arg2 = &temp2;
10162 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10163 }
10164 {
10165 PyThreadState* __tstate = wxPyBeginAllowThreads();
10166 result = ((wxIconBundle const *)arg1)->GetIconOfExactSize((wxSize const &)*arg2);
10167 wxPyEndAllowThreads(__tstate);
10168 if (PyErr_Occurred()) SWIG_fail;
10169 }
10170 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
10171 return resultobj;
10172 fail:
10173 return NULL;
10174 }
10175
10176
10177 SWIGINTERN PyObject *_wrap_IconBundle_GetIconCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10178 PyObject *resultobj = 0;
10179 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10180 size_t result;
10181 void *argp1 = 0 ;
10182 int res1 = 0 ;
10183 PyObject *swig_obj[1] ;
10184
10185 if (!args) SWIG_fail;
10186 swig_obj[0] = args;
10187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10188 if (!SWIG_IsOK(res1)) {
10189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIconCount" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10190 }
10191 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10192 {
10193 PyThreadState* __tstate = wxPyBeginAllowThreads();
10194 result = (size_t)((wxIconBundle const *)arg1)->GetIconCount();
10195 wxPyEndAllowThreads(__tstate);
10196 if (PyErr_Occurred()) SWIG_fail;
10197 }
10198 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
10199 return resultobj;
10200 fail:
10201 return NULL;
10202 }
10203
10204
10205 SWIGINTERN PyObject *_wrap_IconBundle_GetIconByIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10206 PyObject *resultobj = 0;
10207 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10208 size_t arg2 ;
10209 wxIcon result;
10210 void *argp1 = 0 ;
10211 int res1 = 0 ;
10212 size_t val2 ;
10213 int ecode2 = 0 ;
10214 PyObject * obj0 = 0 ;
10215 PyObject * obj1 = 0 ;
10216 char * kwnames[] = {
10217 (char *) "self",(char *) "n", NULL
10218 };
10219
10220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIconByIndex",kwnames,&obj0,&obj1)) SWIG_fail;
10221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10222 if (!SWIG_IsOK(res1)) {
10223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIconByIndex" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10224 }
10225 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10226 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
10227 if (!SWIG_IsOK(ecode2)) {
10228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconBundle_GetIconByIndex" "', expected argument " "2"" of type '" "size_t""'");
10229 }
10230 arg2 = static_cast< size_t >(val2);
10231 {
10232 PyThreadState* __tstate = wxPyBeginAllowThreads();
10233 result = ((wxIconBundle const *)arg1)->GetIconByIndex(arg2);
10234 wxPyEndAllowThreads(__tstate);
10235 if (PyErr_Occurred()) SWIG_fail;
10236 }
10237 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
10238 return resultobj;
10239 fail:
10240 return NULL;
10241 }
10242
10243
10244 SWIGINTERN PyObject *_wrap_IconBundle_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10245 PyObject *resultobj = 0;
10246 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10247 bool result;
10248 void *argp1 = 0 ;
10249 int res1 = 0 ;
10250 PyObject *swig_obj[1] ;
10251
10252 if (!args) SWIG_fail;
10253 swig_obj[0] = args;
10254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10255 if (!SWIG_IsOK(res1)) {
10256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_IsEmpty" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10257 }
10258 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10259 {
10260 PyThreadState* __tstate = wxPyBeginAllowThreads();
10261 result = (bool)((wxIconBundle const *)arg1)->IsEmpty();
10262 wxPyEndAllowThreads(__tstate);
10263 if (PyErr_Occurred()) SWIG_fail;
10264 }
10265 {
10266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10267 }
10268 return resultobj;
10269 fail:
10270 return NULL;
10271 }
10272
10273
10274 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10275 PyObject *obj;
10276 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10277 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10278 return SWIG_Py_Void();
10279 }
10280
10281 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10282 return SWIG_Python_InitShadowInstance(args);
10283 }
10284
10285 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10286 PyObject *resultobj = 0;
10287 wxString *arg1 = 0 ;
10288 long arg2 ;
10289 int arg3 = (int) 0 ;
10290 int arg4 = (int) 0 ;
10291 wxCursor *result = 0 ;
10292 bool temp1 = false ;
10293 long val2 ;
10294 int ecode2 = 0 ;
10295 int val3 ;
10296 int ecode3 = 0 ;
10297 int val4 ;
10298 int ecode4 = 0 ;
10299 PyObject * obj0 = 0 ;
10300 PyObject * obj1 = 0 ;
10301 PyObject * obj2 = 0 ;
10302 PyObject * obj3 = 0 ;
10303 char * kwnames[] = {
10304 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10305 };
10306
10307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10308 {
10309 arg1 = wxString_in_helper(obj0);
10310 if (arg1 == NULL) SWIG_fail;
10311 temp1 = true;
10312 }
10313 ecode2 = SWIG_AsVal_long(obj1, &val2);
10314 if (!SWIG_IsOK(ecode2)) {
10315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10316 }
10317 arg2 = static_cast< long >(val2);
10318 if (obj2) {
10319 ecode3 = SWIG_AsVal_int(obj2, &val3);
10320 if (!SWIG_IsOK(ecode3)) {
10321 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10322 }
10323 arg3 = static_cast< int >(val3);
10324 }
10325 if (obj3) {
10326 ecode4 = SWIG_AsVal_int(obj3, &val4);
10327 if (!SWIG_IsOK(ecode4)) {
10328 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10329 }
10330 arg4 = static_cast< int >(val4);
10331 }
10332 {
10333 if (!wxPyCheckForApp()) SWIG_fail;
10334 PyThreadState* __tstate = wxPyBeginAllowThreads();
10335 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10336 wxPyEndAllowThreads(__tstate);
10337 if (PyErr_Occurred()) SWIG_fail;
10338 }
10339 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10340 {
10341 if (temp1)
10342 delete arg1;
10343 }
10344 return resultobj;
10345 fail:
10346 {
10347 if (temp1)
10348 delete arg1;
10349 }
10350 return NULL;
10351 }
10352
10353
10354 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10355 PyObject *resultobj = 0;
10356 wxCursor *arg1 = (wxCursor *) 0 ;
10357 void *argp1 = 0 ;
10358 int res1 = 0 ;
10359 PyObject *swig_obj[1] ;
10360
10361 if (!args) SWIG_fail;
10362 swig_obj[0] = args;
10363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10364 if (!SWIG_IsOK(res1)) {
10365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10366 }
10367 arg1 = reinterpret_cast< wxCursor * >(argp1);
10368 {
10369 PyThreadState* __tstate = wxPyBeginAllowThreads();
10370 delete arg1;
10371
10372 wxPyEndAllowThreads(__tstate);
10373 if (PyErr_Occurred()) SWIG_fail;
10374 }
10375 resultobj = SWIG_Py_Void();
10376 return resultobj;
10377 fail:
10378 return NULL;
10379 }
10380
10381
10382 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10383 PyObject *resultobj = 0;
10384 int arg1 ;
10385 wxCursor *result = 0 ;
10386 int val1 ;
10387 int ecode1 = 0 ;
10388 PyObject * obj0 = 0 ;
10389 char * kwnames[] = {
10390 (char *) "id", NULL
10391 };
10392
10393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10394 ecode1 = SWIG_AsVal_int(obj0, &val1);
10395 if (!SWIG_IsOK(ecode1)) {
10396 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10397 }
10398 arg1 = static_cast< int >(val1);
10399 {
10400 if (!wxPyCheckForApp()) SWIG_fail;
10401 PyThreadState* __tstate = wxPyBeginAllowThreads();
10402 result = (wxCursor *)new wxCursor(arg1);
10403 wxPyEndAllowThreads(__tstate);
10404 if (PyErr_Occurred()) SWIG_fail;
10405 }
10406 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10407 return resultobj;
10408 fail:
10409 return NULL;
10410 }
10411
10412
10413 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10414 PyObject *resultobj = 0;
10415 wxImage *arg1 = 0 ;
10416 wxCursor *result = 0 ;
10417 void *argp1 = 0 ;
10418 int res1 = 0 ;
10419 PyObject * obj0 = 0 ;
10420 char * kwnames[] = {
10421 (char *) "image", NULL
10422 };
10423
10424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10425 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10426 if (!SWIG_IsOK(res1)) {
10427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10428 }
10429 if (!argp1) {
10430 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10431 }
10432 arg1 = reinterpret_cast< wxImage * >(argp1);
10433 {
10434 if (!wxPyCheckForApp()) SWIG_fail;
10435 PyThreadState* __tstate = wxPyBeginAllowThreads();
10436 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10437 wxPyEndAllowThreads(__tstate);
10438 if (PyErr_Occurred()) SWIG_fail;
10439 }
10440 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10441 return resultobj;
10442 fail:
10443 return NULL;
10444 }
10445
10446
10447 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10448 PyObject *resultobj = 0;
10449 wxCursor *arg1 = (wxCursor *) 0 ;
10450 bool result;
10451 void *argp1 = 0 ;
10452 int res1 = 0 ;
10453 PyObject *swig_obj[1] ;
10454
10455 if (!args) SWIG_fail;
10456 swig_obj[0] = args;
10457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10458 if (!SWIG_IsOK(res1)) {
10459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
10460 }
10461 arg1 = reinterpret_cast< wxCursor * >(argp1);
10462 {
10463 PyThreadState* __tstate = wxPyBeginAllowThreads();
10464 result = (bool)(arg1)->IsOk();
10465 wxPyEndAllowThreads(__tstate);
10466 if (PyErr_Occurred()) SWIG_fail;
10467 }
10468 {
10469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10470 }
10471 return resultobj;
10472 fail:
10473 return NULL;
10474 }
10475
10476
10477 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10478 PyObject *obj;
10479 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10480 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10481 return SWIG_Py_Void();
10482 }
10483
10484 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10485 return SWIG_Python_InitShadowInstance(args);
10486 }
10487
10488 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10489 PyObject *resultobj = 0;
10490 int arg1 = (int) 0 ;
10491 int arg2 = (int) 0 ;
10492 int arg3 = (int) 0 ;
10493 int arg4 = (int) 0 ;
10494 wxRegion *result = 0 ;
10495 int val1 ;
10496 int ecode1 = 0 ;
10497 int val2 ;
10498 int ecode2 = 0 ;
10499 int val3 ;
10500 int ecode3 = 0 ;
10501 int val4 ;
10502 int ecode4 = 0 ;
10503 PyObject * obj0 = 0 ;
10504 PyObject * obj1 = 0 ;
10505 PyObject * obj2 = 0 ;
10506 PyObject * obj3 = 0 ;
10507 char * kwnames[] = {
10508 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10509 };
10510
10511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10512 if (obj0) {
10513 ecode1 = SWIG_AsVal_int(obj0, &val1);
10514 if (!SWIG_IsOK(ecode1)) {
10515 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10516 }
10517 arg1 = static_cast< int >(val1);
10518 }
10519 if (obj1) {
10520 ecode2 = SWIG_AsVal_int(obj1, &val2);
10521 if (!SWIG_IsOK(ecode2)) {
10522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10523 }
10524 arg2 = static_cast< int >(val2);
10525 }
10526 if (obj2) {
10527 ecode3 = SWIG_AsVal_int(obj2, &val3);
10528 if (!SWIG_IsOK(ecode3)) {
10529 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10530 }
10531 arg3 = static_cast< int >(val3);
10532 }
10533 if (obj3) {
10534 ecode4 = SWIG_AsVal_int(obj3, &val4);
10535 if (!SWIG_IsOK(ecode4)) {
10536 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10537 }
10538 arg4 = static_cast< int >(val4);
10539 }
10540 {
10541 if (!wxPyCheckForApp()) SWIG_fail;
10542 PyThreadState* __tstate = wxPyBeginAllowThreads();
10543 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10544 wxPyEndAllowThreads(__tstate);
10545 if (PyErr_Occurred()) SWIG_fail;
10546 }
10547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10548 return resultobj;
10549 fail:
10550 return NULL;
10551 }
10552
10553
10554 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10555 PyObject *resultobj = 0;
10556 wxBitmap *arg1 = 0 ;
10557 wxRegion *result = 0 ;
10558 void *argp1 = 0 ;
10559 int res1 = 0 ;
10560 PyObject * obj0 = 0 ;
10561 char * kwnames[] = {
10562 (char *) "bmp", NULL
10563 };
10564
10565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10566 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10567 if (!SWIG_IsOK(res1)) {
10568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10569 }
10570 if (!argp1) {
10571 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10572 }
10573 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10574 {
10575 if (!wxPyCheckForApp()) SWIG_fail;
10576 PyThreadState* __tstate = wxPyBeginAllowThreads();
10577 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10578 wxPyEndAllowThreads(__tstate);
10579 if (PyErr_Occurred()) SWIG_fail;
10580 }
10581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10582 return resultobj;
10583 fail:
10584 return NULL;
10585 }
10586
10587
10588 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10589 PyObject *resultobj = 0;
10590 wxBitmap *arg1 = 0 ;
10591 wxColour *arg2 = 0 ;
10592 int arg3 = (int) 0 ;
10593 wxRegion *result = 0 ;
10594 void *argp1 = 0 ;
10595 int res1 = 0 ;
10596 wxColour temp2 ;
10597 int val3 ;
10598 int ecode3 = 0 ;
10599 PyObject * obj0 = 0 ;
10600 PyObject * obj1 = 0 ;
10601 PyObject * obj2 = 0 ;
10602 char * kwnames[] = {
10603 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10604 };
10605
10606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10607 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10608 if (!SWIG_IsOK(res1)) {
10609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10610 }
10611 if (!argp1) {
10612 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10613 }
10614 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10615 {
10616 arg2 = &temp2;
10617 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10618 }
10619 if (obj2) {
10620 ecode3 = SWIG_AsVal_int(obj2, &val3);
10621 if (!SWIG_IsOK(ecode3)) {
10622 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10623 }
10624 arg3 = static_cast< int >(val3);
10625 }
10626 {
10627 if (!wxPyCheckForApp()) SWIG_fail;
10628 PyThreadState* __tstate = wxPyBeginAllowThreads();
10629 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10630 wxPyEndAllowThreads(__tstate);
10631 if (PyErr_Occurred()) SWIG_fail;
10632 }
10633 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10634 return resultobj;
10635 fail:
10636 return NULL;
10637 }
10638
10639
10640 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10641 PyObject *resultobj = 0;
10642 int arg1 ;
10643 wxPoint *arg2 = (wxPoint *) 0 ;
10644 int arg3 = (int) wxWINDING_RULE ;
10645 wxRegion *result = 0 ;
10646 int val3 ;
10647 int ecode3 = 0 ;
10648 PyObject * obj0 = 0 ;
10649 PyObject * obj1 = 0 ;
10650 char * kwnames[] = {
10651 (char *) "points",(char *) "fillStyle", NULL
10652 };
10653
10654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10655 {
10656 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10657 if (arg2 == NULL) SWIG_fail;
10658 }
10659 if (obj1) {
10660 ecode3 = SWIG_AsVal_int(obj1, &val3);
10661 if (!SWIG_IsOK(ecode3)) {
10662 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10663 }
10664 arg3 = static_cast< int >(val3);
10665 }
10666 {
10667 if (!wxPyCheckForApp()) SWIG_fail;
10668 PyThreadState* __tstate = wxPyBeginAllowThreads();
10669 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10670 wxPyEndAllowThreads(__tstate);
10671 if (PyErr_Occurred()) SWIG_fail;
10672 }
10673 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10674 {
10675 if (arg2) delete [] arg2;
10676 }
10677 return resultobj;
10678 fail:
10679 {
10680 if (arg2) delete [] arg2;
10681 }
10682 return NULL;
10683 }
10684
10685
10686 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10687 PyObject *resultobj = 0;
10688 wxRegion *arg1 = (wxRegion *) 0 ;
10689 void *argp1 = 0 ;
10690 int res1 = 0 ;
10691 PyObject *swig_obj[1] ;
10692
10693 if (!args) SWIG_fail;
10694 swig_obj[0] = args;
10695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10696 if (!SWIG_IsOK(res1)) {
10697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10698 }
10699 arg1 = reinterpret_cast< wxRegion * >(argp1);
10700 {
10701 PyThreadState* __tstate = wxPyBeginAllowThreads();
10702 delete arg1;
10703
10704 wxPyEndAllowThreads(__tstate);
10705 if (PyErr_Occurred()) SWIG_fail;
10706 }
10707 resultobj = SWIG_Py_Void();
10708 return resultobj;
10709 fail:
10710 return NULL;
10711 }
10712
10713
10714 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10715 PyObject *resultobj = 0;
10716 wxRegion *arg1 = (wxRegion *) 0 ;
10717 void *argp1 = 0 ;
10718 int res1 = 0 ;
10719 PyObject *swig_obj[1] ;
10720
10721 if (!args) SWIG_fail;
10722 swig_obj[0] = args;
10723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10724 if (!SWIG_IsOK(res1)) {
10725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10726 }
10727 arg1 = reinterpret_cast< wxRegion * >(argp1);
10728 {
10729 PyThreadState* __tstate = wxPyBeginAllowThreads();
10730 (arg1)->Clear();
10731 wxPyEndAllowThreads(__tstate);
10732 if (PyErr_Occurred()) SWIG_fail;
10733 }
10734 resultobj = SWIG_Py_Void();
10735 return resultobj;
10736 fail:
10737 return NULL;
10738 }
10739
10740
10741 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10742 PyObject *resultobj = 0;
10743 wxRegion *arg1 = (wxRegion *) 0 ;
10744 int arg2 ;
10745 int arg3 ;
10746 bool result;
10747 void *argp1 = 0 ;
10748 int res1 = 0 ;
10749 int val2 ;
10750 int ecode2 = 0 ;
10751 int val3 ;
10752 int ecode3 = 0 ;
10753 PyObject * obj0 = 0 ;
10754 PyObject * obj1 = 0 ;
10755 PyObject * obj2 = 0 ;
10756 char * kwnames[] = {
10757 (char *) "self",(char *) "x",(char *) "y", NULL
10758 };
10759
10760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10762 if (!SWIG_IsOK(res1)) {
10763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10764 }
10765 arg1 = reinterpret_cast< wxRegion * >(argp1);
10766 ecode2 = SWIG_AsVal_int(obj1, &val2);
10767 if (!SWIG_IsOK(ecode2)) {
10768 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10769 }
10770 arg2 = static_cast< int >(val2);
10771 ecode3 = SWIG_AsVal_int(obj2, &val3);
10772 if (!SWIG_IsOK(ecode3)) {
10773 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10774 }
10775 arg3 = static_cast< int >(val3);
10776 {
10777 PyThreadState* __tstate = wxPyBeginAllowThreads();
10778 result = (bool)(arg1)->Offset(arg2,arg3);
10779 wxPyEndAllowThreads(__tstate);
10780 if (PyErr_Occurred()) SWIG_fail;
10781 }
10782 {
10783 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10784 }
10785 return resultobj;
10786 fail:
10787 return NULL;
10788 }
10789
10790
10791 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10792 PyObject *resultobj = 0;
10793 wxRegion *arg1 = (wxRegion *) 0 ;
10794 int arg2 ;
10795 int arg3 ;
10796 wxRegionContain result;
10797 void *argp1 = 0 ;
10798 int res1 = 0 ;
10799 int val2 ;
10800 int ecode2 = 0 ;
10801 int val3 ;
10802 int ecode3 = 0 ;
10803 PyObject * obj0 = 0 ;
10804 PyObject * obj1 = 0 ;
10805 PyObject * obj2 = 0 ;
10806 char * kwnames[] = {
10807 (char *) "self",(char *) "x",(char *) "y", NULL
10808 };
10809
10810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10812 if (!SWIG_IsOK(res1)) {
10813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10814 }
10815 arg1 = reinterpret_cast< wxRegion * >(argp1);
10816 ecode2 = SWIG_AsVal_int(obj1, &val2);
10817 if (!SWIG_IsOK(ecode2)) {
10818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10819 }
10820 arg2 = static_cast< int >(val2);
10821 ecode3 = SWIG_AsVal_int(obj2, &val3);
10822 if (!SWIG_IsOK(ecode3)) {
10823 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10824 }
10825 arg3 = static_cast< int >(val3);
10826 {
10827 PyThreadState* __tstate = wxPyBeginAllowThreads();
10828 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10829 wxPyEndAllowThreads(__tstate);
10830 if (PyErr_Occurred()) SWIG_fail;
10831 }
10832 resultobj = SWIG_From_int(static_cast< int >(result));
10833 return resultobj;
10834 fail:
10835 return NULL;
10836 }
10837
10838
10839 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10840 PyObject *resultobj = 0;
10841 wxRegion *arg1 = (wxRegion *) 0 ;
10842 wxPoint *arg2 = 0 ;
10843 wxRegionContain result;
10844 void *argp1 = 0 ;
10845 int res1 = 0 ;
10846 wxPoint temp2 ;
10847 PyObject * obj0 = 0 ;
10848 PyObject * obj1 = 0 ;
10849 char * kwnames[] = {
10850 (char *) "self",(char *) "pt", NULL
10851 };
10852
10853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10855 if (!SWIG_IsOK(res1)) {
10856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10857 }
10858 arg1 = reinterpret_cast< wxRegion * >(argp1);
10859 {
10860 arg2 = &temp2;
10861 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10862 }
10863 {
10864 PyThreadState* __tstate = wxPyBeginAllowThreads();
10865 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10866 wxPyEndAllowThreads(__tstate);
10867 if (PyErr_Occurred()) SWIG_fail;
10868 }
10869 resultobj = SWIG_From_int(static_cast< int >(result));
10870 return resultobj;
10871 fail:
10872 return NULL;
10873 }
10874
10875
10876 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10877 PyObject *resultobj = 0;
10878 wxRegion *arg1 = (wxRegion *) 0 ;
10879 wxRect *arg2 = 0 ;
10880 wxRegionContain result;
10881 void *argp1 = 0 ;
10882 int res1 = 0 ;
10883 wxRect temp2 ;
10884 PyObject * obj0 = 0 ;
10885 PyObject * obj1 = 0 ;
10886 char * kwnames[] = {
10887 (char *) "self",(char *) "rect", NULL
10888 };
10889
10890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10892 if (!SWIG_IsOK(res1)) {
10893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10894 }
10895 arg1 = reinterpret_cast< wxRegion * >(argp1);
10896 {
10897 arg2 = &temp2;
10898 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10899 }
10900 {
10901 PyThreadState* __tstate = wxPyBeginAllowThreads();
10902 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10903 wxPyEndAllowThreads(__tstate);
10904 if (PyErr_Occurred()) SWIG_fail;
10905 }
10906 resultobj = SWIG_From_int(static_cast< int >(result));
10907 return resultobj;
10908 fail:
10909 return NULL;
10910 }
10911
10912
10913 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10914 PyObject *resultobj = 0;
10915 wxRegion *arg1 = (wxRegion *) 0 ;
10916 int arg2 ;
10917 int arg3 ;
10918 int arg4 ;
10919 int arg5 ;
10920 wxRegionContain result;
10921 void *argp1 = 0 ;
10922 int res1 = 0 ;
10923 int val2 ;
10924 int ecode2 = 0 ;
10925 int val3 ;
10926 int ecode3 = 0 ;
10927 int val4 ;
10928 int ecode4 = 0 ;
10929 int val5 ;
10930 int ecode5 = 0 ;
10931 PyObject * obj0 = 0 ;
10932 PyObject * obj1 = 0 ;
10933 PyObject * obj2 = 0 ;
10934 PyObject * obj3 = 0 ;
10935 PyObject * obj4 = 0 ;
10936 char * kwnames[] = {
10937 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10938 };
10939
10940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10942 if (!SWIG_IsOK(res1)) {
10943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10944 }
10945 arg1 = reinterpret_cast< wxRegion * >(argp1);
10946 ecode2 = SWIG_AsVal_int(obj1, &val2);
10947 if (!SWIG_IsOK(ecode2)) {
10948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10949 }
10950 arg2 = static_cast< int >(val2);
10951 ecode3 = SWIG_AsVal_int(obj2, &val3);
10952 if (!SWIG_IsOK(ecode3)) {
10953 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10954 }
10955 arg3 = static_cast< int >(val3);
10956 ecode4 = SWIG_AsVal_int(obj3, &val4);
10957 if (!SWIG_IsOK(ecode4)) {
10958 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10959 }
10960 arg4 = static_cast< int >(val4);
10961 ecode5 = SWIG_AsVal_int(obj4, &val5);
10962 if (!SWIG_IsOK(ecode5)) {
10963 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10964 }
10965 arg5 = static_cast< int >(val5);
10966 {
10967 PyThreadState* __tstate = wxPyBeginAllowThreads();
10968 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10969 wxPyEndAllowThreads(__tstate);
10970 if (PyErr_Occurred()) SWIG_fail;
10971 }
10972 resultobj = SWIG_From_int(static_cast< int >(result));
10973 return resultobj;
10974 fail:
10975 return NULL;
10976 }
10977
10978
10979 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10980 PyObject *resultobj = 0;
10981 wxRegion *arg1 = (wxRegion *) 0 ;
10982 wxRect result;
10983 void *argp1 = 0 ;
10984 int res1 = 0 ;
10985 PyObject *swig_obj[1] ;
10986
10987 if (!args) SWIG_fail;
10988 swig_obj[0] = args;
10989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10990 if (!SWIG_IsOK(res1)) {
10991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10992 }
10993 arg1 = reinterpret_cast< wxRegion * >(argp1);
10994 {
10995 PyThreadState* __tstate = wxPyBeginAllowThreads();
10996 result = (arg1)->GetBox();
10997 wxPyEndAllowThreads(__tstate);
10998 if (PyErr_Occurred()) SWIG_fail;
10999 }
11000 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11001 return resultobj;
11002 fail:
11003 return NULL;
11004 }
11005
11006
11007 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11008 PyObject *resultobj = 0;
11009 wxRegion *arg1 = (wxRegion *) 0 ;
11010 int arg2 ;
11011 int arg3 ;
11012 int arg4 ;
11013 int arg5 ;
11014 bool result;
11015 void *argp1 = 0 ;
11016 int res1 = 0 ;
11017 int val2 ;
11018 int ecode2 = 0 ;
11019 int val3 ;
11020 int ecode3 = 0 ;
11021 int val4 ;
11022 int ecode4 = 0 ;
11023 int val5 ;
11024 int ecode5 = 0 ;
11025 PyObject * obj0 = 0 ;
11026 PyObject * obj1 = 0 ;
11027 PyObject * obj2 = 0 ;
11028 PyObject * obj3 = 0 ;
11029 PyObject * obj4 = 0 ;
11030 char * kwnames[] = {
11031 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11032 };
11033
11034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11036 if (!SWIG_IsOK(res1)) {
11037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
11038 }
11039 arg1 = reinterpret_cast< wxRegion * >(argp1);
11040 ecode2 = SWIG_AsVal_int(obj1, &val2);
11041 if (!SWIG_IsOK(ecode2)) {
11042 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
11043 }
11044 arg2 = static_cast< int >(val2);
11045 ecode3 = SWIG_AsVal_int(obj2, &val3);
11046 if (!SWIG_IsOK(ecode3)) {
11047 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
11048 }
11049 arg3 = static_cast< int >(val3);
11050 ecode4 = SWIG_AsVal_int(obj3, &val4);
11051 if (!SWIG_IsOK(ecode4)) {
11052 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
11053 }
11054 arg4 = static_cast< int >(val4);
11055 ecode5 = SWIG_AsVal_int(obj4, &val5);
11056 if (!SWIG_IsOK(ecode5)) {
11057 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
11058 }
11059 arg5 = static_cast< int >(val5);
11060 {
11061 PyThreadState* __tstate = wxPyBeginAllowThreads();
11062 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
11063 wxPyEndAllowThreads(__tstate);
11064 if (PyErr_Occurred()) SWIG_fail;
11065 }
11066 {
11067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11068 }
11069 return resultobj;
11070 fail:
11071 return NULL;
11072 }
11073
11074
11075 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11076 PyObject *resultobj = 0;
11077 wxRegion *arg1 = (wxRegion *) 0 ;
11078 wxRect *arg2 = 0 ;
11079 bool result;
11080 void *argp1 = 0 ;
11081 int res1 = 0 ;
11082 wxRect temp2 ;
11083 PyObject * obj0 = 0 ;
11084 PyObject * obj1 = 0 ;
11085 char * kwnames[] = {
11086 (char *) "self",(char *) "rect", NULL
11087 };
11088
11089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
11090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11091 if (!SWIG_IsOK(res1)) {
11092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11093 }
11094 arg1 = reinterpret_cast< wxRegion * >(argp1);
11095 {
11096 arg2 = &temp2;
11097 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11098 }
11099 {
11100 PyThreadState* __tstate = wxPyBeginAllowThreads();
11101 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
11102 wxPyEndAllowThreads(__tstate);
11103 if (PyErr_Occurred()) SWIG_fail;
11104 }
11105 {
11106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11107 }
11108 return resultobj;
11109 fail:
11110 return NULL;
11111 }
11112
11113
11114 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11115 PyObject *resultobj = 0;
11116 wxRegion *arg1 = (wxRegion *) 0 ;
11117 wxRegion *arg2 = 0 ;
11118 bool result;
11119 void *argp1 = 0 ;
11120 int res1 = 0 ;
11121 void *argp2 = 0 ;
11122 int res2 = 0 ;
11123 PyObject * obj0 = 0 ;
11124 PyObject * obj1 = 0 ;
11125 char * kwnames[] = {
11126 (char *) "self",(char *) "region", NULL
11127 };
11128
11129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11131 if (!SWIG_IsOK(res1)) {
11132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11133 }
11134 arg1 = reinterpret_cast< wxRegion * >(argp1);
11135 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11136 if (!SWIG_IsOK(res2)) {
11137 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11138 }
11139 if (!argp2) {
11140 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11141 }
11142 arg2 = reinterpret_cast< wxRegion * >(argp2);
11143 {
11144 PyThreadState* __tstate = wxPyBeginAllowThreads();
11145 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
11146 wxPyEndAllowThreads(__tstate);
11147 if (PyErr_Occurred()) SWIG_fail;
11148 }
11149 {
11150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11151 }
11152 return resultobj;
11153 fail:
11154 return NULL;
11155 }
11156
11157
11158 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11159 PyObject *resultobj = 0;
11160 wxRegion *arg1 = (wxRegion *) 0 ;
11161 bool result;
11162 void *argp1 = 0 ;
11163 int res1 = 0 ;
11164 PyObject *swig_obj[1] ;
11165
11166 if (!args) SWIG_fail;
11167 swig_obj[0] = args;
11168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11169 if (!SWIG_IsOK(res1)) {
11170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11171 }
11172 arg1 = reinterpret_cast< wxRegion * >(argp1);
11173 {
11174 PyThreadState* __tstate = wxPyBeginAllowThreads();
11175 result = (bool)(arg1)->IsEmpty();
11176 wxPyEndAllowThreads(__tstate);
11177 if (PyErr_Occurred()) SWIG_fail;
11178 }
11179 {
11180 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11181 }
11182 return resultobj;
11183 fail:
11184 return NULL;
11185 }
11186
11187
11188 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11189 PyObject *resultobj = 0;
11190 wxRegion *arg1 = (wxRegion *) 0 ;
11191 wxRegion *arg2 = 0 ;
11192 bool result;
11193 void *argp1 = 0 ;
11194 int res1 = 0 ;
11195 void *argp2 = 0 ;
11196 int res2 = 0 ;
11197 PyObject * obj0 = 0 ;
11198 PyObject * obj1 = 0 ;
11199 char * kwnames[] = {
11200 (char *) "self",(char *) "region", NULL
11201 };
11202
11203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11205 if (!SWIG_IsOK(res1)) {
11206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11207 }
11208 arg1 = reinterpret_cast< wxRegion * >(argp1);
11209 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11210 if (!SWIG_IsOK(res2)) {
11211 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11212 }
11213 if (!argp2) {
11214 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11215 }
11216 arg2 = reinterpret_cast< wxRegion * >(argp2);
11217 {
11218 PyThreadState* __tstate = wxPyBeginAllowThreads();
11219 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11220 wxPyEndAllowThreads(__tstate);
11221 if (PyErr_Occurred()) SWIG_fail;
11222 }
11223 {
11224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11225 }
11226 return resultobj;
11227 fail:
11228 return NULL;
11229 }
11230
11231
11232 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11233 PyObject *resultobj = 0;
11234 wxRegion *arg1 = (wxRegion *) 0 ;
11235 int arg2 ;
11236 int arg3 ;
11237 int arg4 ;
11238 int arg5 ;
11239 bool result;
11240 void *argp1 = 0 ;
11241 int res1 = 0 ;
11242 int val2 ;
11243 int ecode2 = 0 ;
11244 int val3 ;
11245 int ecode3 = 0 ;
11246 int val4 ;
11247 int ecode4 = 0 ;
11248 int val5 ;
11249 int ecode5 = 0 ;
11250 PyObject * obj0 = 0 ;
11251 PyObject * obj1 = 0 ;
11252 PyObject * obj2 = 0 ;
11253 PyObject * obj3 = 0 ;
11254 PyObject * obj4 = 0 ;
11255 char * kwnames[] = {
11256 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11257 };
11258
11259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11261 if (!SWIG_IsOK(res1)) {
11262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11263 }
11264 arg1 = reinterpret_cast< wxRegion * >(argp1);
11265 ecode2 = SWIG_AsVal_int(obj1, &val2);
11266 if (!SWIG_IsOK(ecode2)) {
11267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11268 }
11269 arg2 = static_cast< int >(val2);
11270 ecode3 = SWIG_AsVal_int(obj2, &val3);
11271 if (!SWIG_IsOK(ecode3)) {
11272 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11273 }
11274 arg3 = static_cast< int >(val3);
11275 ecode4 = SWIG_AsVal_int(obj3, &val4);
11276 if (!SWIG_IsOK(ecode4)) {
11277 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11278 }
11279 arg4 = static_cast< int >(val4);
11280 ecode5 = SWIG_AsVal_int(obj4, &val5);
11281 if (!SWIG_IsOK(ecode5)) {
11282 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11283 }
11284 arg5 = static_cast< int >(val5);
11285 {
11286 PyThreadState* __tstate = wxPyBeginAllowThreads();
11287 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11288 wxPyEndAllowThreads(__tstate);
11289 if (PyErr_Occurred()) SWIG_fail;
11290 }
11291 {
11292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11293 }
11294 return resultobj;
11295 fail:
11296 return NULL;
11297 }
11298
11299
11300 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11301 PyObject *resultobj = 0;
11302 wxRegion *arg1 = (wxRegion *) 0 ;
11303 wxRect *arg2 = 0 ;
11304 bool result;
11305 void *argp1 = 0 ;
11306 int res1 = 0 ;
11307 wxRect temp2 ;
11308 PyObject * obj0 = 0 ;
11309 PyObject * obj1 = 0 ;
11310 char * kwnames[] = {
11311 (char *) "self",(char *) "rect", NULL
11312 };
11313
11314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11316 if (!SWIG_IsOK(res1)) {
11317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11318 }
11319 arg1 = reinterpret_cast< wxRegion * >(argp1);
11320 {
11321 arg2 = &temp2;
11322 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11323 }
11324 {
11325 PyThreadState* __tstate = wxPyBeginAllowThreads();
11326 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11327 wxPyEndAllowThreads(__tstate);
11328 if (PyErr_Occurred()) SWIG_fail;
11329 }
11330 {
11331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11332 }
11333 return resultobj;
11334 fail:
11335 return NULL;
11336 }
11337
11338
11339 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11340 PyObject *resultobj = 0;
11341 wxRegion *arg1 = (wxRegion *) 0 ;
11342 wxRegion *arg2 = 0 ;
11343 bool result;
11344 void *argp1 = 0 ;
11345 int res1 = 0 ;
11346 void *argp2 = 0 ;
11347 int res2 = 0 ;
11348 PyObject * obj0 = 0 ;
11349 PyObject * obj1 = 0 ;
11350 char * kwnames[] = {
11351 (char *) "self",(char *) "region", NULL
11352 };
11353
11354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11356 if (!SWIG_IsOK(res1)) {
11357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11358 }
11359 arg1 = reinterpret_cast< wxRegion * >(argp1);
11360 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11361 if (!SWIG_IsOK(res2)) {
11362 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11363 }
11364 if (!argp2) {
11365 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11366 }
11367 arg2 = reinterpret_cast< wxRegion * >(argp2);
11368 {
11369 PyThreadState* __tstate = wxPyBeginAllowThreads();
11370 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11371 wxPyEndAllowThreads(__tstate);
11372 if (PyErr_Occurred()) SWIG_fail;
11373 }
11374 {
11375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11376 }
11377 return resultobj;
11378 fail:
11379 return NULL;
11380 }
11381
11382
11383 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11384 PyObject *resultobj = 0;
11385 wxRegion *arg1 = (wxRegion *) 0 ;
11386 int arg2 ;
11387 int arg3 ;
11388 int arg4 ;
11389 int arg5 ;
11390 bool result;
11391 void *argp1 = 0 ;
11392 int res1 = 0 ;
11393 int val2 ;
11394 int ecode2 = 0 ;
11395 int val3 ;
11396 int ecode3 = 0 ;
11397 int val4 ;
11398 int ecode4 = 0 ;
11399 int val5 ;
11400 int ecode5 = 0 ;
11401 PyObject * obj0 = 0 ;
11402 PyObject * obj1 = 0 ;
11403 PyObject * obj2 = 0 ;
11404 PyObject * obj3 = 0 ;
11405 PyObject * obj4 = 0 ;
11406 char * kwnames[] = {
11407 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11408 };
11409
11410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11412 if (!SWIG_IsOK(res1)) {
11413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11414 }
11415 arg1 = reinterpret_cast< wxRegion * >(argp1);
11416 ecode2 = SWIG_AsVal_int(obj1, &val2);
11417 if (!SWIG_IsOK(ecode2)) {
11418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11419 }
11420 arg2 = static_cast< int >(val2);
11421 ecode3 = SWIG_AsVal_int(obj2, &val3);
11422 if (!SWIG_IsOK(ecode3)) {
11423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11424 }
11425 arg3 = static_cast< int >(val3);
11426 ecode4 = SWIG_AsVal_int(obj3, &val4);
11427 if (!SWIG_IsOK(ecode4)) {
11428 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11429 }
11430 arg4 = static_cast< int >(val4);
11431 ecode5 = SWIG_AsVal_int(obj4, &val5);
11432 if (!SWIG_IsOK(ecode5)) {
11433 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11434 }
11435 arg5 = static_cast< int >(val5);
11436 {
11437 PyThreadState* __tstate = wxPyBeginAllowThreads();
11438 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11439 wxPyEndAllowThreads(__tstate);
11440 if (PyErr_Occurred()) SWIG_fail;
11441 }
11442 {
11443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11444 }
11445 return resultobj;
11446 fail:
11447 return NULL;
11448 }
11449
11450
11451 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11452 PyObject *resultobj = 0;
11453 wxRegion *arg1 = (wxRegion *) 0 ;
11454 wxRect *arg2 = 0 ;
11455 bool result;
11456 void *argp1 = 0 ;
11457 int res1 = 0 ;
11458 wxRect temp2 ;
11459 PyObject * obj0 = 0 ;
11460 PyObject * obj1 = 0 ;
11461 char * kwnames[] = {
11462 (char *) "self",(char *) "rect", NULL
11463 };
11464
11465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11467 if (!SWIG_IsOK(res1)) {
11468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11469 }
11470 arg1 = reinterpret_cast< wxRegion * >(argp1);
11471 {
11472 arg2 = &temp2;
11473 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11474 }
11475 {
11476 PyThreadState* __tstate = wxPyBeginAllowThreads();
11477 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11478 wxPyEndAllowThreads(__tstate);
11479 if (PyErr_Occurred()) SWIG_fail;
11480 }
11481 {
11482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11483 }
11484 return resultobj;
11485 fail:
11486 return NULL;
11487 }
11488
11489
11490 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11491 PyObject *resultobj = 0;
11492 wxRegion *arg1 = (wxRegion *) 0 ;
11493 wxRegion *arg2 = 0 ;
11494 bool result;
11495 void *argp1 = 0 ;
11496 int res1 = 0 ;
11497 void *argp2 = 0 ;
11498 int res2 = 0 ;
11499 PyObject * obj0 = 0 ;
11500 PyObject * obj1 = 0 ;
11501 char * kwnames[] = {
11502 (char *) "self",(char *) "region", NULL
11503 };
11504
11505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11507 if (!SWIG_IsOK(res1)) {
11508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11509 }
11510 arg1 = reinterpret_cast< wxRegion * >(argp1);
11511 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11512 if (!SWIG_IsOK(res2)) {
11513 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11514 }
11515 if (!argp2) {
11516 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11517 }
11518 arg2 = reinterpret_cast< wxRegion * >(argp2);
11519 {
11520 PyThreadState* __tstate = wxPyBeginAllowThreads();
11521 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11522 wxPyEndAllowThreads(__tstate);
11523 if (PyErr_Occurred()) SWIG_fail;
11524 }
11525 {
11526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11527 }
11528 return resultobj;
11529 fail:
11530 return NULL;
11531 }
11532
11533
11534 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11535 PyObject *resultobj = 0;
11536 wxRegion *arg1 = (wxRegion *) 0 ;
11537 int arg2 ;
11538 int arg3 ;
11539 int arg4 ;
11540 int arg5 ;
11541 bool result;
11542 void *argp1 = 0 ;
11543 int res1 = 0 ;
11544 int val2 ;
11545 int ecode2 = 0 ;
11546 int val3 ;
11547 int ecode3 = 0 ;
11548 int val4 ;
11549 int ecode4 = 0 ;
11550 int val5 ;
11551 int ecode5 = 0 ;
11552 PyObject * obj0 = 0 ;
11553 PyObject * obj1 = 0 ;
11554 PyObject * obj2 = 0 ;
11555 PyObject * obj3 = 0 ;
11556 PyObject * obj4 = 0 ;
11557 char * kwnames[] = {
11558 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11559 };
11560
11561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11563 if (!SWIG_IsOK(res1)) {
11564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11565 }
11566 arg1 = reinterpret_cast< wxRegion * >(argp1);
11567 ecode2 = SWIG_AsVal_int(obj1, &val2);
11568 if (!SWIG_IsOK(ecode2)) {
11569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11570 }
11571 arg2 = static_cast< int >(val2);
11572 ecode3 = SWIG_AsVal_int(obj2, &val3);
11573 if (!SWIG_IsOK(ecode3)) {
11574 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11575 }
11576 arg3 = static_cast< int >(val3);
11577 ecode4 = SWIG_AsVal_int(obj3, &val4);
11578 if (!SWIG_IsOK(ecode4)) {
11579 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11580 }
11581 arg4 = static_cast< int >(val4);
11582 ecode5 = SWIG_AsVal_int(obj4, &val5);
11583 if (!SWIG_IsOK(ecode5)) {
11584 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11585 }
11586 arg5 = static_cast< int >(val5);
11587 {
11588 PyThreadState* __tstate = wxPyBeginAllowThreads();
11589 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11590 wxPyEndAllowThreads(__tstate);
11591 if (PyErr_Occurred()) SWIG_fail;
11592 }
11593 {
11594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11595 }
11596 return resultobj;
11597 fail:
11598 return NULL;
11599 }
11600
11601
11602 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11603 PyObject *resultobj = 0;
11604 wxRegion *arg1 = (wxRegion *) 0 ;
11605 wxRect *arg2 = 0 ;
11606 bool result;
11607 void *argp1 = 0 ;
11608 int res1 = 0 ;
11609 wxRect temp2 ;
11610 PyObject * obj0 = 0 ;
11611 PyObject * obj1 = 0 ;
11612 char * kwnames[] = {
11613 (char *) "self",(char *) "rect", NULL
11614 };
11615
11616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11618 if (!SWIG_IsOK(res1)) {
11619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11620 }
11621 arg1 = reinterpret_cast< wxRegion * >(argp1);
11622 {
11623 arg2 = &temp2;
11624 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11625 }
11626 {
11627 PyThreadState* __tstate = wxPyBeginAllowThreads();
11628 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11629 wxPyEndAllowThreads(__tstate);
11630 if (PyErr_Occurred()) SWIG_fail;
11631 }
11632 {
11633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11634 }
11635 return resultobj;
11636 fail:
11637 return NULL;
11638 }
11639
11640
11641 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11642 PyObject *resultobj = 0;
11643 wxRegion *arg1 = (wxRegion *) 0 ;
11644 wxRegion *arg2 = 0 ;
11645 bool result;
11646 void *argp1 = 0 ;
11647 int res1 = 0 ;
11648 void *argp2 = 0 ;
11649 int res2 = 0 ;
11650 PyObject * obj0 = 0 ;
11651 PyObject * obj1 = 0 ;
11652 char * kwnames[] = {
11653 (char *) "self",(char *) "region", NULL
11654 };
11655
11656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11658 if (!SWIG_IsOK(res1)) {
11659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11660 }
11661 arg1 = reinterpret_cast< wxRegion * >(argp1);
11662 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11663 if (!SWIG_IsOK(res2)) {
11664 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11665 }
11666 if (!argp2) {
11667 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11668 }
11669 arg2 = reinterpret_cast< wxRegion * >(argp2);
11670 {
11671 PyThreadState* __tstate = wxPyBeginAllowThreads();
11672 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11673 wxPyEndAllowThreads(__tstate);
11674 if (PyErr_Occurred()) SWIG_fail;
11675 }
11676 {
11677 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11678 }
11679 return resultobj;
11680 fail:
11681 return NULL;
11682 }
11683
11684
11685 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11686 PyObject *resultobj = 0;
11687 wxRegion *arg1 = (wxRegion *) 0 ;
11688 SwigValueWrapper<wxBitmap > result;
11689 void *argp1 = 0 ;
11690 int res1 = 0 ;
11691 PyObject *swig_obj[1] ;
11692
11693 if (!args) SWIG_fail;
11694 swig_obj[0] = args;
11695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11696 if (!SWIG_IsOK(res1)) {
11697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11698 }
11699 arg1 = reinterpret_cast< wxRegion * >(argp1);
11700 {
11701 PyThreadState* __tstate = wxPyBeginAllowThreads();
11702 result = (arg1)->ConvertToBitmap();
11703 wxPyEndAllowThreads(__tstate);
11704 if (PyErr_Occurred()) SWIG_fail;
11705 }
11706 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11707 return resultobj;
11708 fail:
11709 return NULL;
11710 }
11711
11712
11713 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11714 PyObject *resultobj = 0;
11715 wxRegion *arg1 = (wxRegion *) 0 ;
11716 wxBitmap *arg2 = 0 ;
11717 bool result;
11718 void *argp1 = 0 ;
11719 int res1 = 0 ;
11720 void *argp2 = 0 ;
11721 int res2 = 0 ;
11722 PyObject * obj0 = 0 ;
11723 PyObject * obj1 = 0 ;
11724 char * kwnames[] = {
11725 (char *) "self",(char *) "bmp", NULL
11726 };
11727
11728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11730 if (!SWIG_IsOK(res1)) {
11731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11732 }
11733 arg1 = reinterpret_cast< wxRegion * >(argp1);
11734 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11735 if (!SWIG_IsOK(res2)) {
11736 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11737 }
11738 if (!argp2) {
11739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11740 }
11741 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11742 {
11743 PyThreadState* __tstate = wxPyBeginAllowThreads();
11744 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11745 wxPyEndAllowThreads(__tstate);
11746 if (PyErr_Occurred()) SWIG_fail;
11747 }
11748 {
11749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11750 }
11751 return resultobj;
11752 fail:
11753 return NULL;
11754 }
11755
11756
11757 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11758 PyObject *resultobj = 0;
11759 wxRegion *arg1 = (wxRegion *) 0 ;
11760 wxBitmap *arg2 = 0 ;
11761 wxColour *arg3 = 0 ;
11762 int arg4 = (int) 0 ;
11763 bool result;
11764 void *argp1 = 0 ;
11765 int res1 = 0 ;
11766 void *argp2 = 0 ;
11767 int res2 = 0 ;
11768 wxColour temp3 ;
11769 int val4 ;
11770 int ecode4 = 0 ;
11771 PyObject * obj0 = 0 ;
11772 PyObject * obj1 = 0 ;
11773 PyObject * obj2 = 0 ;
11774 PyObject * obj3 = 0 ;
11775 char * kwnames[] = {
11776 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11777 };
11778
11779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11781 if (!SWIG_IsOK(res1)) {
11782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11783 }
11784 arg1 = reinterpret_cast< wxRegion * >(argp1);
11785 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11786 if (!SWIG_IsOK(res2)) {
11787 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11788 }
11789 if (!argp2) {
11790 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11791 }
11792 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11793 {
11794 arg3 = &temp3;
11795 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11796 }
11797 if (obj3) {
11798 ecode4 = SWIG_AsVal_int(obj3, &val4);
11799 if (!SWIG_IsOK(ecode4)) {
11800 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11801 }
11802 arg4 = static_cast< int >(val4);
11803 }
11804 {
11805 PyThreadState* __tstate = wxPyBeginAllowThreads();
11806 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11807 wxPyEndAllowThreads(__tstate);
11808 if (PyErr_Occurred()) SWIG_fail;
11809 }
11810 {
11811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11812 }
11813 return resultobj;
11814 fail:
11815 return NULL;
11816 }
11817
11818
11819 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11820 PyObject *obj;
11821 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11822 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11823 return SWIG_Py_Void();
11824 }
11825
11826 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11827 return SWIG_Python_InitShadowInstance(args);
11828 }
11829
11830 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11831 PyObject *resultobj = 0;
11832 wxRegion *arg1 = 0 ;
11833 wxRegionIterator *result = 0 ;
11834 void *argp1 = 0 ;
11835 int res1 = 0 ;
11836 PyObject * obj0 = 0 ;
11837 char * kwnames[] = {
11838 (char *) "region", NULL
11839 };
11840
11841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11842 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11843 if (!SWIG_IsOK(res1)) {
11844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11845 }
11846 if (!argp1) {
11847 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11848 }
11849 arg1 = reinterpret_cast< wxRegion * >(argp1);
11850 {
11851 if (!wxPyCheckForApp()) SWIG_fail;
11852 PyThreadState* __tstate = wxPyBeginAllowThreads();
11853 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11854 wxPyEndAllowThreads(__tstate);
11855 if (PyErr_Occurred()) SWIG_fail;
11856 }
11857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11858 return resultobj;
11859 fail:
11860 return NULL;
11861 }
11862
11863
11864 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11865 PyObject *resultobj = 0;
11866 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11867 void *argp1 = 0 ;
11868 int res1 = 0 ;
11869 PyObject *swig_obj[1] ;
11870
11871 if (!args) SWIG_fail;
11872 swig_obj[0] = args;
11873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11874 if (!SWIG_IsOK(res1)) {
11875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11876 }
11877 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11878 {
11879 PyThreadState* __tstate = wxPyBeginAllowThreads();
11880 delete arg1;
11881
11882 wxPyEndAllowThreads(__tstate);
11883 if (PyErr_Occurred()) SWIG_fail;
11884 }
11885 resultobj = SWIG_Py_Void();
11886 return resultobj;
11887 fail:
11888 return NULL;
11889 }
11890
11891
11892 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11893 PyObject *resultobj = 0;
11894 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11895 int result;
11896 void *argp1 = 0 ;
11897 int res1 = 0 ;
11898 PyObject *swig_obj[1] ;
11899
11900 if (!args) SWIG_fail;
11901 swig_obj[0] = args;
11902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11903 if (!SWIG_IsOK(res1)) {
11904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11905 }
11906 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11907 {
11908 PyThreadState* __tstate = wxPyBeginAllowThreads();
11909 result = (int)(arg1)->GetX();
11910 wxPyEndAllowThreads(__tstate);
11911 if (PyErr_Occurred()) SWIG_fail;
11912 }
11913 resultobj = SWIG_From_int(static_cast< int >(result));
11914 return resultobj;
11915 fail:
11916 return NULL;
11917 }
11918
11919
11920 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11921 PyObject *resultobj = 0;
11922 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11923 int result;
11924 void *argp1 = 0 ;
11925 int res1 = 0 ;
11926 PyObject *swig_obj[1] ;
11927
11928 if (!args) SWIG_fail;
11929 swig_obj[0] = args;
11930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11931 if (!SWIG_IsOK(res1)) {
11932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11933 }
11934 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11935 {
11936 PyThreadState* __tstate = wxPyBeginAllowThreads();
11937 result = (int)(arg1)->GetY();
11938 wxPyEndAllowThreads(__tstate);
11939 if (PyErr_Occurred()) SWIG_fail;
11940 }
11941 resultobj = SWIG_From_int(static_cast< int >(result));
11942 return resultobj;
11943 fail:
11944 return NULL;
11945 }
11946
11947
11948 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11949 PyObject *resultobj = 0;
11950 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11951 int result;
11952 void *argp1 = 0 ;
11953 int res1 = 0 ;
11954 PyObject *swig_obj[1] ;
11955
11956 if (!args) SWIG_fail;
11957 swig_obj[0] = args;
11958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11959 if (!SWIG_IsOK(res1)) {
11960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11961 }
11962 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11963 {
11964 PyThreadState* __tstate = wxPyBeginAllowThreads();
11965 result = (int)(arg1)->GetW();
11966 wxPyEndAllowThreads(__tstate);
11967 if (PyErr_Occurred()) SWIG_fail;
11968 }
11969 resultobj = SWIG_From_int(static_cast< int >(result));
11970 return resultobj;
11971 fail:
11972 return NULL;
11973 }
11974
11975
11976 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11977 PyObject *resultobj = 0;
11978 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11979 int result;
11980 void *argp1 = 0 ;
11981 int res1 = 0 ;
11982 PyObject *swig_obj[1] ;
11983
11984 if (!args) SWIG_fail;
11985 swig_obj[0] = args;
11986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11987 if (!SWIG_IsOK(res1)) {
11988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11989 }
11990 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11991 {
11992 PyThreadState* __tstate = wxPyBeginAllowThreads();
11993 result = (int)(arg1)->GetWidth();
11994 wxPyEndAllowThreads(__tstate);
11995 if (PyErr_Occurred()) SWIG_fail;
11996 }
11997 resultobj = SWIG_From_int(static_cast< int >(result));
11998 return resultobj;
11999 fail:
12000 return NULL;
12001 }
12002
12003
12004 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12005 PyObject *resultobj = 0;
12006 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12007 int result;
12008 void *argp1 = 0 ;
12009 int res1 = 0 ;
12010 PyObject *swig_obj[1] ;
12011
12012 if (!args) SWIG_fail;
12013 swig_obj[0] = args;
12014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12015 if (!SWIG_IsOK(res1)) {
12016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12017 }
12018 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12019 {
12020 PyThreadState* __tstate = wxPyBeginAllowThreads();
12021 result = (int)(arg1)->GetH();
12022 wxPyEndAllowThreads(__tstate);
12023 if (PyErr_Occurred()) SWIG_fail;
12024 }
12025 resultobj = SWIG_From_int(static_cast< int >(result));
12026 return resultobj;
12027 fail:
12028 return NULL;
12029 }
12030
12031
12032 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12033 PyObject *resultobj = 0;
12034 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12035 int result;
12036 void *argp1 = 0 ;
12037 int res1 = 0 ;
12038 PyObject *swig_obj[1] ;
12039
12040 if (!args) SWIG_fail;
12041 swig_obj[0] = args;
12042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12043 if (!SWIG_IsOK(res1)) {
12044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12045 }
12046 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12047 {
12048 PyThreadState* __tstate = wxPyBeginAllowThreads();
12049 result = (int)(arg1)->GetHeight();
12050 wxPyEndAllowThreads(__tstate);
12051 if (PyErr_Occurred()) SWIG_fail;
12052 }
12053 resultobj = SWIG_From_int(static_cast< int >(result));
12054 return resultobj;
12055 fail:
12056 return NULL;
12057 }
12058
12059
12060 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12061 PyObject *resultobj = 0;
12062 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12063 wxRect result;
12064 void *argp1 = 0 ;
12065 int res1 = 0 ;
12066 PyObject *swig_obj[1] ;
12067
12068 if (!args) SWIG_fail;
12069 swig_obj[0] = args;
12070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12071 if (!SWIG_IsOK(res1)) {
12072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12073 }
12074 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12075 {
12076 PyThreadState* __tstate = wxPyBeginAllowThreads();
12077 result = (arg1)->GetRect();
12078 wxPyEndAllowThreads(__tstate);
12079 if (PyErr_Occurred()) SWIG_fail;
12080 }
12081 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
12082 return resultobj;
12083 fail:
12084 return NULL;
12085 }
12086
12087
12088 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12089 PyObject *resultobj = 0;
12090 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12091 bool result;
12092 void *argp1 = 0 ;
12093 int res1 = 0 ;
12094 PyObject *swig_obj[1] ;
12095
12096 if (!args) SWIG_fail;
12097 swig_obj[0] = args;
12098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12099 if (!SWIG_IsOK(res1)) {
12100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12101 }
12102 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12103 {
12104 PyThreadState* __tstate = wxPyBeginAllowThreads();
12105 result = (bool)(arg1)->HaveRects();
12106 wxPyEndAllowThreads(__tstate);
12107 if (PyErr_Occurred()) SWIG_fail;
12108 }
12109 {
12110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12111 }
12112 return resultobj;
12113 fail:
12114 return NULL;
12115 }
12116
12117
12118 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12119 PyObject *resultobj = 0;
12120 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12121 void *argp1 = 0 ;
12122 int res1 = 0 ;
12123 PyObject *swig_obj[1] ;
12124
12125 if (!args) SWIG_fail;
12126 swig_obj[0] = args;
12127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12128 if (!SWIG_IsOK(res1)) {
12129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12130 }
12131 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12132 {
12133 PyThreadState* __tstate = wxPyBeginAllowThreads();
12134 (arg1)->Reset();
12135 wxPyEndAllowThreads(__tstate);
12136 if (PyErr_Occurred()) SWIG_fail;
12137 }
12138 resultobj = SWIG_Py_Void();
12139 return resultobj;
12140 fail:
12141 return NULL;
12142 }
12143
12144
12145 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12146 PyObject *resultobj = 0;
12147 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12148 void *argp1 = 0 ;
12149 int res1 = 0 ;
12150 PyObject *swig_obj[1] ;
12151
12152 if (!args) SWIG_fail;
12153 swig_obj[0] = args;
12154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12155 if (!SWIG_IsOK(res1)) {
12156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12157 }
12158 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12159 {
12160 PyThreadState* __tstate = wxPyBeginAllowThreads();
12161 wxRegionIterator_Next(arg1);
12162 wxPyEndAllowThreads(__tstate);
12163 if (PyErr_Occurred()) SWIG_fail;
12164 }
12165 resultobj = SWIG_Py_Void();
12166 return resultobj;
12167 fail:
12168 return NULL;
12169 }
12170
12171
12172 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12173 PyObject *resultobj = 0;
12174 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12175 bool result;
12176 void *argp1 = 0 ;
12177 int res1 = 0 ;
12178 PyObject *swig_obj[1] ;
12179
12180 if (!args) SWIG_fail;
12181 swig_obj[0] = args;
12182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12183 if (!SWIG_IsOK(res1)) {
12184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12185 }
12186 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12187 {
12188 PyThreadState* __tstate = wxPyBeginAllowThreads();
12189 result = (bool)wxRegionIterator___nonzero__(arg1);
12190 wxPyEndAllowThreads(__tstate);
12191 if (PyErr_Occurred()) SWIG_fail;
12192 }
12193 {
12194 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12195 }
12196 return resultobj;
12197 fail:
12198 return NULL;
12199 }
12200
12201
12202 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12203 PyObject *obj;
12204 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12205 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12206 return SWIG_Py_Void();
12207 }
12208
12209 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12210 return SWIG_Python_InitShadowInstance(args);
12211 }
12212
12213 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12214 PyObject *resultobj = 0;
12215 wxNativeFontInfo *result = 0 ;
12216
12217 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12218 {
12219 PyThreadState* __tstate = wxPyBeginAllowThreads();
12220 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12221 wxPyEndAllowThreads(__tstate);
12222 if (PyErr_Occurred()) SWIG_fail;
12223 }
12224 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12225 return resultobj;
12226 fail:
12227 return NULL;
12228 }
12229
12230
12231 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12232 PyObject *resultobj = 0;
12233 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12234 void *argp1 = 0 ;
12235 int res1 = 0 ;
12236 PyObject *swig_obj[1] ;
12237
12238 if (!args) SWIG_fail;
12239 swig_obj[0] = args;
12240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12241 if (!SWIG_IsOK(res1)) {
12242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12243 }
12244 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12245 {
12246 PyThreadState* __tstate = wxPyBeginAllowThreads();
12247 delete arg1;
12248
12249 wxPyEndAllowThreads(__tstate);
12250 if (PyErr_Occurred()) SWIG_fail;
12251 }
12252 resultobj = SWIG_Py_Void();
12253 return resultobj;
12254 fail:
12255 return NULL;
12256 }
12257
12258
12259 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12260 PyObject *resultobj = 0;
12261 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12262 void *argp1 = 0 ;
12263 int res1 = 0 ;
12264 PyObject *swig_obj[1] ;
12265
12266 if (!args) SWIG_fail;
12267 swig_obj[0] = args;
12268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12269 if (!SWIG_IsOK(res1)) {
12270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12271 }
12272 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12273 {
12274 PyThreadState* __tstate = wxPyBeginAllowThreads();
12275 (arg1)->Init();
12276 wxPyEndAllowThreads(__tstate);
12277 if (PyErr_Occurred()) SWIG_fail;
12278 }
12279 resultobj = SWIG_Py_Void();
12280 return resultobj;
12281 fail:
12282 return NULL;
12283 }
12284
12285
12286 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12287 PyObject *resultobj = 0;
12288 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12289 wxFont *arg2 = 0 ;
12290 void *argp1 = 0 ;
12291 int res1 = 0 ;
12292 void *argp2 = 0 ;
12293 int res2 = 0 ;
12294 PyObject * obj0 = 0 ;
12295 PyObject * obj1 = 0 ;
12296 char * kwnames[] = {
12297 (char *) "self",(char *) "font", NULL
12298 };
12299
12300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12302 if (!SWIG_IsOK(res1)) {
12303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12304 }
12305 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12306 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12307 if (!SWIG_IsOK(res2)) {
12308 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12309 }
12310 if (!argp2) {
12311 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12312 }
12313 arg2 = reinterpret_cast< wxFont * >(argp2);
12314 {
12315 PyThreadState* __tstate = wxPyBeginAllowThreads();
12316 (arg1)->InitFromFont((wxFont const &)*arg2);
12317 wxPyEndAllowThreads(__tstate);
12318 if (PyErr_Occurred()) SWIG_fail;
12319 }
12320 resultobj = SWIG_Py_Void();
12321 return resultobj;
12322 fail:
12323 return NULL;
12324 }
12325
12326
12327 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12328 PyObject *resultobj = 0;
12329 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12330 int result;
12331 void *argp1 = 0 ;
12332 int res1 = 0 ;
12333 PyObject *swig_obj[1] ;
12334
12335 if (!args) SWIG_fail;
12336 swig_obj[0] = args;
12337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12338 if (!SWIG_IsOK(res1)) {
12339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12340 }
12341 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12342 {
12343 PyThreadState* __tstate = wxPyBeginAllowThreads();
12344 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12345 wxPyEndAllowThreads(__tstate);
12346 if (PyErr_Occurred()) SWIG_fail;
12347 }
12348 resultobj = SWIG_From_int(static_cast< int >(result));
12349 return resultobj;
12350 fail:
12351 return NULL;
12352 }
12353
12354
12355 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12356 PyObject *resultobj = 0;
12357 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12358 wxFontStyle result;
12359 void *argp1 = 0 ;
12360 int res1 = 0 ;
12361 PyObject *swig_obj[1] ;
12362
12363 if (!args) SWIG_fail;
12364 swig_obj[0] = args;
12365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12366 if (!SWIG_IsOK(res1)) {
12367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12368 }
12369 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12370 {
12371 PyThreadState* __tstate = wxPyBeginAllowThreads();
12372 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12373 wxPyEndAllowThreads(__tstate);
12374 if (PyErr_Occurred()) SWIG_fail;
12375 }
12376 resultobj = SWIG_From_int(static_cast< int >(result));
12377 return resultobj;
12378 fail:
12379 return NULL;
12380 }
12381
12382
12383 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12384 PyObject *resultobj = 0;
12385 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12386 wxFontWeight result;
12387 void *argp1 = 0 ;
12388 int res1 = 0 ;
12389 PyObject *swig_obj[1] ;
12390
12391 if (!args) SWIG_fail;
12392 swig_obj[0] = args;
12393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12394 if (!SWIG_IsOK(res1)) {
12395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12396 }
12397 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12398 {
12399 PyThreadState* __tstate = wxPyBeginAllowThreads();
12400 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12401 wxPyEndAllowThreads(__tstate);
12402 if (PyErr_Occurred()) SWIG_fail;
12403 }
12404 resultobj = SWIG_From_int(static_cast< int >(result));
12405 return resultobj;
12406 fail:
12407 return NULL;
12408 }
12409
12410
12411 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12412 PyObject *resultobj = 0;
12413 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12414 bool result;
12415 void *argp1 = 0 ;
12416 int res1 = 0 ;
12417 PyObject *swig_obj[1] ;
12418
12419 if (!args) SWIG_fail;
12420 swig_obj[0] = args;
12421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12422 if (!SWIG_IsOK(res1)) {
12423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12424 }
12425 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12426 {
12427 PyThreadState* __tstate = wxPyBeginAllowThreads();
12428 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12429 wxPyEndAllowThreads(__tstate);
12430 if (PyErr_Occurred()) SWIG_fail;
12431 }
12432 {
12433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12434 }
12435 return resultobj;
12436 fail:
12437 return NULL;
12438 }
12439
12440
12441 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12442 PyObject *resultobj = 0;
12443 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12444 wxString result;
12445 void *argp1 = 0 ;
12446 int res1 = 0 ;
12447 PyObject *swig_obj[1] ;
12448
12449 if (!args) SWIG_fail;
12450 swig_obj[0] = args;
12451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12452 if (!SWIG_IsOK(res1)) {
12453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12454 }
12455 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12456 {
12457 PyThreadState* __tstate = wxPyBeginAllowThreads();
12458 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12459 wxPyEndAllowThreads(__tstate);
12460 if (PyErr_Occurred()) SWIG_fail;
12461 }
12462 {
12463 #if wxUSE_UNICODE
12464 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12465 #else
12466 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12467 #endif
12468 }
12469 return resultobj;
12470 fail:
12471 return NULL;
12472 }
12473
12474
12475 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12476 PyObject *resultobj = 0;
12477 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12478 wxFontFamily result;
12479 void *argp1 = 0 ;
12480 int res1 = 0 ;
12481 PyObject *swig_obj[1] ;
12482
12483 if (!args) SWIG_fail;
12484 swig_obj[0] = args;
12485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12486 if (!SWIG_IsOK(res1)) {
12487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12488 }
12489 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12490 {
12491 PyThreadState* __tstate = wxPyBeginAllowThreads();
12492 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12493 wxPyEndAllowThreads(__tstate);
12494 if (PyErr_Occurred()) SWIG_fail;
12495 }
12496 resultobj = SWIG_From_int(static_cast< int >(result));
12497 return resultobj;
12498 fail:
12499 return NULL;
12500 }
12501
12502
12503 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12504 PyObject *resultobj = 0;
12505 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12506 wxFontEncoding result;
12507 void *argp1 = 0 ;
12508 int res1 = 0 ;
12509 PyObject *swig_obj[1] ;
12510
12511 if (!args) SWIG_fail;
12512 swig_obj[0] = args;
12513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12514 if (!SWIG_IsOK(res1)) {
12515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12516 }
12517 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12518 {
12519 PyThreadState* __tstate = wxPyBeginAllowThreads();
12520 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12521 wxPyEndAllowThreads(__tstate);
12522 if (PyErr_Occurred()) SWIG_fail;
12523 }
12524 resultobj = SWIG_From_int(static_cast< int >(result));
12525 return resultobj;
12526 fail:
12527 return NULL;
12528 }
12529
12530
12531 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12532 PyObject *resultobj = 0;
12533 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12534 int arg2 ;
12535 void *argp1 = 0 ;
12536 int res1 = 0 ;
12537 int val2 ;
12538 int ecode2 = 0 ;
12539 PyObject * obj0 = 0 ;
12540 PyObject * obj1 = 0 ;
12541 char * kwnames[] = {
12542 (char *) "self",(char *) "pointsize", NULL
12543 };
12544
12545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12547 if (!SWIG_IsOK(res1)) {
12548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12549 }
12550 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12551 ecode2 = SWIG_AsVal_int(obj1, &val2);
12552 if (!SWIG_IsOK(ecode2)) {
12553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12554 }
12555 arg2 = static_cast< int >(val2);
12556 {
12557 PyThreadState* __tstate = wxPyBeginAllowThreads();
12558 (arg1)->SetPointSize(arg2);
12559 wxPyEndAllowThreads(__tstate);
12560 if (PyErr_Occurred()) SWIG_fail;
12561 }
12562 resultobj = SWIG_Py_Void();
12563 return resultobj;
12564 fail:
12565 return NULL;
12566 }
12567
12568
12569 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12570 PyObject *resultobj = 0;
12571 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12572 wxFontStyle arg2 ;
12573 void *argp1 = 0 ;
12574 int res1 = 0 ;
12575 int val2 ;
12576 int ecode2 = 0 ;
12577 PyObject * obj0 = 0 ;
12578 PyObject * obj1 = 0 ;
12579 char * kwnames[] = {
12580 (char *) "self",(char *) "style", NULL
12581 };
12582
12583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12585 if (!SWIG_IsOK(res1)) {
12586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12587 }
12588 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12589 ecode2 = SWIG_AsVal_int(obj1, &val2);
12590 if (!SWIG_IsOK(ecode2)) {
12591 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12592 }
12593 arg2 = static_cast< wxFontStyle >(val2);
12594 {
12595 PyThreadState* __tstate = wxPyBeginAllowThreads();
12596 (arg1)->SetStyle(arg2);
12597 wxPyEndAllowThreads(__tstate);
12598 if (PyErr_Occurred()) SWIG_fail;
12599 }
12600 resultobj = SWIG_Py_Void();
12601 return resultobj;
12602 fail:
12603 return NULL;
12604 }
12605
12606
12607 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12608 PyObject *resultobj = 0;
12609 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12610 wxFontWeight arg2 ;
12611 void *argp1 = 0 ;
12612 int res1 = 0 ;
12613 int val2 ;
12614 int ecode2 = 0 ;
12615 PyObject * obj0 = 0 ;
12616 PyObject * obj1 = 0 ;
12617 char * kwnames[] = {
12618 (char *) "self",(char *) "weight", NULL
12619 };
12620
12621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12623 if (!SWIG_IsOK(res1)) {
12624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12625 }
12626 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12627 ecode2 = SWIG_AsVal_int(obj1, &val2);
12628 if (!SWIG_IsOK(ecode2)) {
12629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12630 }
12631 arg2 = static_cast< wxFontWeight >(val2);
12632 {
12633 PyThreadState* __tstate = wxPyBeginAllowThreads();
12634 (arg1)->SetWeight(arg2);
12635 wxPyEndAllowThreads(__tstate);
12636 if (PyErr_Occurred()) SWIG_fail;
12637 }
12638 resultobj = SWIG_Py_Void();
12639 return resultobj;
12640 fail:
12641 return NULL;
12642 }
12643
12644
12645 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12646 PyObject *resultobj = 0;
12647 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12648 bool arg2 ;
12649 void *argp1 = 0 ;
12650 int res1 = 0 ;
12651 bool val2 ;
12652 int ecode2 = 0 ;
12653 PyObject * obj0 = 0 ;
12654 PyObject * obj1 = 0 ;
12655 char * kwnames[] = {
12656 (char *) "self",(char *) "underlined", NULL
12657 };
12658
12659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12661 if (!SWIG_IsOK(res1)) {
12662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12663 }
12664 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12665 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12666 if (!SWIG_IsOK(ecode2)) {
12667 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12668 }
12669 arg2 = static_cast< bool >(val2);
12670 {
12671 PyThreadState* __tstate = wxPyBeginAllowThreads();
12672 (arg1)->SetUnderlined(arg2);
12673 wxPyEndAllowThreads(__tstate);
12674 if (PyErr_Occurred()) SWIG_fail;
12675 }
12676 resultobj = SWIG_Py_Void();
12677 return resultobj;
12678 fail:
12679 return NULL;
12680 }
12681
12682
12683 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12684 PyObject *resultobj = 0;
12685 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12686 wxString arg2 ;
12687 bool result;
12688 void *argp1 = 0 ;
12689 int res1 = 0 ;
12690 PyObject * obj0 = 0 ;
12691 PyObject * obj1 = 0 ;
12692 char * kwnames[] = {
12693 (char *) "self",(char *) "facename", NULL
12694 };
12695
12696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12698 if (!SWIG_IsOK(res1)) {
12699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12700 }
12701 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12702 {
12703 wxString* sptr = wxString_in_helper(obj1);
12704 if (sptr == NULL) SWIG_fail;
12705 arg2 = *sptr;
12706 delete sptr;
12707 }
12708 {
12709 PyThreadState* __tstate = wxPyBeginAllowThreads();
12710 result = (bool)(arg1)->SetFaceName(arg2);
12711 wxPyEndAllowThreads(__tstate);
12712 if (PyErr_Occurred()) SWIG_fail;
12713 }
12714 {
12715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12716 }
12717 return resultobj;
12718 fail:
12719 return NULL;
12720 }
12721
12722
12723 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12724 PyObject *resultobj = 0;
12725 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12726 wxFontFamily arg2 ;
12727 void *argp1 = 0 ;
12728 int res1 = 0 ;
12729 int val2 ;
12730 int ecode2 = 0 ;
12731 PyObject * obj0 = 0 ;
12732 PyObject * obj1 = 0 ;
12733 char * kwnames[] = {
12734 (char *) "self",(char *) "family", NULL
12735 };
12736
12737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12739 if (!SWIG_IsOK(res1)) {
12740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12741 }
12742 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12743 ecode2 = SWIG_AsVal_int(obj1, &val2);
12744 if (!SWIG_IsOK(ecode2)) {
12745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12746 }
12747 arg2 = static_cast< wxFontFamily >(val2);
12748 {
12749 PyThreadState* __tstate = wxPyBeginAllowThreads();
12750 (arg1)->SetFamily(arg2);
12751 wxPyEndAllowThreads(__tstate);
12752 if (PyErr_Occurred()) SWIG_fail;
12753 }
12754 resultobj = SWIG_Py_Void();
12755 return resultobj;
12756 fail:
12757 return NULL;
12758 }
12759
12760
12761 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12762 PyObject *resultobj = 0;
12763 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12764 wxFontEncoding arg2 ;
12765 void *argp1 = 0 ;
12766 int res1 = 0 ;
12767 int val2 ;
12768 int ecode2 = 0 ;
12769 PyObject * obj0 = 0 ;
12770 PyObject * obj1 = 0 ;
12771 char * kwnames[] = {
12772 (char *) "self",(char *) "encoding", NULL
12773 };
12774
12775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12777 if (!SWIG_IsOK(res1)) {
12778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12779 }
12780 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12781 ecode2 = SWIG_AsVal_int(obj1, &val2);
12782 if (!SWIG_IsOK(ecode2)) {
12783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12784 }
12785 arg2 = static_cast< wxFontEncoding >(val2);
12786 {
12787 PyThreadState* __tstate = wxPyBeginAllowThreads();
12788 (arg1)->SetEncoding(arg2);
12789 wxPyEndAllowThreads(__tstate);
12790 if (PyErr_Occurred()) SWIG_fail;
12791 }
12792 resultobj = SWIG_Py_Void();
12793 return resultobj;
12794 fail:
12795 return NULL;
12796 }
12797
12798
12799 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12800 PyObject *resultobj = 0;
12801 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12802 wxString *arg2 = 0 ;
12803 bool result;
12804 void *argp1 = 0 ;
12805 int res1 = 0 ;
12806 bool temp2 = false ;
12807 PyObject * obj0 = 0 ;
12808 PyObject * obj1 = 0 ;
12809 char * kwnames[] = {
12810 (char *) "self",(char *) "s", NULL
12811 };
12812
12813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12815 if (!SWIG_IsOK(res1)) {
12816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12817 }
12818 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12819 {
12820 arg2 = wxString_in_helper(obj1);
12821 if (arg2 == NULL) SWIG_fail;
12822 temp2 = true;
12823 }
12824 {
12825 PyThreadState* __tstate = wxPyBeginAllowThreads();
12826 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12827 wxPyEndAllowThreads(__tstate);
12828 if (PyErr_Occurred()) SWIG_fail;
12829 }
12830 {
12831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12832 }
12833 {
12834 if (temp2)
12835 delete arg2;
12836 }
12837 return resultobj;
12838 fail:
12839 {
12840 if (temp2)
12841 delete arg2;
12842 }
12843 return NULL;
12844 }
12845
12846
12847 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12848 PyObject *resultobj = 0;
12849 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12850 wxString result;
12851 void *argp1 = 0 ;
12852 int res1 = 0 ;
12853 PyObject *swig_obj[1] ;
12854
12855 if (!args) SWIG_fail;
12856 swig_obj[0] = args;
12857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12858 if (!SWIG_IsOK(res1)) {
12859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12860 }
12861 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12862 {
12863 PyThreadState* __tstate = wxPyBeginAllowThreads();
12864 result = ((wxNativeFontInfo const *)arg1)->ToString();
12865 wxPyEndAllowThreads(__tstate);
12866 if (PyErr_Occurred()) SWIG_fail;
12867 }
12868 {
12869 #if wxUSE_UNICODE
12870 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12871 #else
12872 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12873 #endif
12874 }
12875 return resultobj;
12876 fail:
12877 return NULL;
12878 }
12879
12880
12881 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12882 PyObject *resultobj = 0;
12883 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12884 wxString result;
12885 void *argp1 = 0 ;
12886 int res1 = 0 ;
12887 PyObject *swig_obj[1] ;
12888
12889 if (!args) SWIG_fail;
12890 swig_obj[0] = args;
12891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12892 if (!SWIG_IsOK(res1)) {
12893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12894 }
12895 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12896 {
12897 PyThreadState* __tstate = wxPyBeginAllowThreads();
12898 result = wxNativeFontInfo___str__(arg1);
12899 wxPyEndAllowThreads(__tstate);
12900 if (PyErr_Occurred()) SWIG_fail;
12901 }
12902 {
12903 #if wxUSE_UNICODE
12904 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12905 #else
12906 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12907 #endif
12908 }
12909 return resultobj;
12910 fail:
12911 return NULL;
12912 }
12913
12914
12915 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12916 PyObject *resultobj = 0;
12917 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12918 wxString *arg2 = 0 ;
12919 bool result;
12920 void *argp1 = 0 ;
12921 int res1 = 0 ;
12922 bool temp2 = false ;
12923 PyObject * obj0 = 0 ;
12924 PyObject * obj1 = 0 ;
12925 char * kwnames[] = {
12926 (char *) "self",(char *) "s", NULL
12927 };
12928
12929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12931 if (!SWIG_IsOK(res1)) {
12932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12933 }
12934 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12935 {
12936 arg2 = wxString_in_helper(obj1);
12937 if (arg2 == NULL) SWIG_fail;
12938 temp2 = true;
12939 }
12940 {
12941 PyThreadState* __tstate = wxPyBeginAllowThreads();
12942 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12943 wxPyEndAllowThreads(__tstate);
12944 if (PyErr_Occurred()) SWIG_fail;
12945 }
12946 {
12947 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12948 }
12949 {
12950 if (temp2)
12951 delete arg2;
12952 }
12953 return resultobj;
12954 fail:
12955 {
12956 if (temp2)
12957 delete arg2;
12958 }
12959 return NULL;
12960 }
12961
12962
12963 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12964 PyObject *resultobj = 0;
12965 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12966 wxString result;
12967 void *argp1 = 0 ;
12968 int res1 = 0 ;
12969 PyObject *swig_obj[1] ;
12970
12971 if (!args) SWIG_fail;
12972 swig_obj[0] = args;
12973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12974 if (!SWIG_IsOK(res1)) {
12975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12976 }
12977 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12978 {
12979 PyThreadState* __tstate = wxPyBeginAllowThreads();
12980 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12981 wxPyEndAllowThreads(__tstate);
12982 if (PyErr_Occurred()) SWIG_fail;
12983 }
12984 {
12985 #if wxUSE_UNICODE
12986 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12987 #else
12988 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12989 #endif
12990 }
12991 return resultobj;
12992 fail:
12993 return NULL;
12994 }
12995
12996
12997 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12998 PyObject *obj;
12999 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13000 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
13001 return SWIG_Py_Void();
13002 }
13003
13004 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13005 return SWIG_Python_InitShadowInstance(args);
13006 }
13007
13008 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13009 PyObject *resultobj = 0;
13010 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13011 wxString *arg2 = (wxString *) 0 ;
13012 void *argp1 = 0 ;
13013 int res1 = 0 ;
13014 bool temp2 = false ;
13015 PyObject *swig_obj[2] ;
13016
13017 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
13018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13019 if (!SWIG_IsOK(res1)) {
13020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13021 }
13022 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13023 {
13024 arg2 = wxString_in_helper(swig_obj[1]);
13025 if (arg2 == NULL) SWIG_fail;
13026 temp2 = true;
13027 }
13028 if (arg1) (arg1)->facename = *arg2;
13029
13030 resultobj = SWIG_Py_Void();
13031 {
13032 if (temp2)
13033 delete arg2;
13034 }
13035 return resultobj;
13036 fail:
13037 {
13038 if (temp2)
13039 delete arg2;
13040 }
13041 return NULL;
13042 }
13043
13044
13045 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13046 PyObject *resultobj = 0;
13047 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13048 wxString *result = 0 ;
13049 void *argp1 = 0 ;
13050 int res1 = 0 ;
13051 PyObject *swig_obj[1] ;
13052
13053 if (!args) SWIG_fail;
13054 swig_obj[0] = args;
13055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13056 if (!SWIG_IsOK(res1)) {
13057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13058 }
13059 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13060 result = (wxString *)& ((arg1)->facename);
13061 {
13062 #if wxUSE_UNICODE
13063 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13064 #else
13065 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13066 #endif
13067 }
13068 return resultobj;
13069 fail:
13070 return NULL;
13071 }
13072
13073
13074 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13075 PyObject *resultobj = 0;
13076 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13077 wxFontEncoding arg2 ;
13078 void *argp1 = 0 ;
13079 int res1 = 0 ;
13080 int val2 ;
13081 int ecode2 = 0 ;
13082 PyObject *swig_obj[2] ;
13083
13084 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13086 if (!SWIG_IsOK(res1)) {
13087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13088 }
13089 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13090 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13091 if (!SWIG_IsOK(ecode2)) {
13092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13093 }
13094 arg2 = static_cast< wxFontEncoding >(val2);
13095 if (arg1) (arg1)->encoding = arg2;
13096
13097 resultobj = SWIG_Py_Void();
13098 return resultobj;
13099 fail:
13100 return NULL;
13101 }
13102
13103
13104 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13105 PyObject *resultobj = 0;
13106 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13107 wxFontEncoding result;
13108 void *argp1 = 0 ;
13109 int res1 = 0 ;
13110 PyObject *swig_obj[1] ;
13111
13112 if (!args) SWIG_fail;
13113 swig_obj[0] = args;
13114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13115 if (!SWIG_IsOK(res1)) {
13116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13117 }
13118 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13119 result = (wxFontEncoding) ((arg1)->encoding);
13120 resultobj = SWIG_From_int(static_cast< int >(result));
13121 return resultobj;
13122 fail:
13123 return NULL;
13124 }
13125
13126
13127 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13128 PyObject *resultobj = 0;
13129 wxNativeEncodingInfo *result = 0 ;
13130
13131 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13132 {
13133 PyThreadState* __tstate = wxPyBeginAllowThreads();
13134 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13135 wxPyEndAllowThreads(__tstate);
13136 if (PyErr_Occurred()) SWIG_fail;
13137 }
13138 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13139 return resultobj;
13140 fail:
13141 return NULL;
13142 }
13143
13144
13145 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13146 PyObject *resultobj = 0;
13147 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13148 void *argp1 = 0 ;
13149 int res1 = 0 ;
13150 PyObject *swig_obj[1] ;
13151
13152 if (!args) SWIG_fail;
13153 swig_obj[0] = args;
13154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13155 if (!SWIG_IsOK(res1)) {
13156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13157 }
13158 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13159 {
13160 PyThreadState* __tstate = wxPyBeginAllowThreads();
13161 delete arg1;
13162
13163 wxPyEndAllowThreads(__tstate);
13164 if (PyErr_Occurred()) SWIG_fail;
13165 }
13166 resultobj = SWIG_Py_Void();
13167 return resultobj;
13168 fail:
13169 return NULL;
13170 }
13171
13172
13173 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13174 PyObject *resultobj = 0;
13175 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13176 wxString *arg2 = 0 ;
13177 bool result;
13178 void *argp1 = 0 ;
13179 int res1 = 0 ;
13180 bool temp2 = false ;
13181 PyObject * obj0 = 0 ;
13182 PyObject * obj1 = 0 ;
13183 char * kwnames[] = {
13184 (char *) "self",(char *) "s", NULL
13185 };
13186
13187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13189 if (!SWIG_IsOK(res1)) {
13190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13191 }
13192 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13193 {
13194 arg2 = wxString_in_helper(obj1);
13195 if (arg2 == NULL) SWIG_fail;
13196 temp2 = true;
13197 }
13198 {
13199 PyThreadState* __tstate = wxPyBeginAllowThreads();
13200 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13201 wxPyEndAllowThreads(__tstate);
13202 if (PyErr_Occurred()) SWIG_fail;
13203 }
13204 {
13205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13206 }
13207 {
13208 if (temp2)
13209 delete arg2;
13210 }
13211 return resultobj;
13212 fail:
13213 {
13214 if (temp2)
13215 delete arg2;
13216 }
13217 return NULL;
13218 }
13219
13220
13221 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13222 PyObject *resultobj = 0;
13223 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13224 wxString result;
13225 void *argp1 = 0 ;
13226 int res1 = 0 ;
13227 PyObject *swig_obj[1] ;
13228
13229 if (!args) SWIG_fail;
13230 swig_obj[0] = args;
13231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13232 if (!SWIG_IsOK(res1)) {
13233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13234 }
13235 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13236 {
13237 PyThreadState* __tstate = wxPyBeginAllowThreads();
13238 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13239 wxPyEndAllowThreads(__tstate);
13240 if (PyErr_Occurred()) SWIG_fail;
13241 }
13242 {
13243 #if wxUSE_UNICODE
13244 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13245 #else
13246 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13247 #endif
13248 }
13249 return resultobj;
13250 fail:
13251 return NULL;
13252 }
13253
13254
13255 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13256 PyObject *obj;
13257 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13258 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13259 return SWIG_Py_Void();
13260 }
13261
13262 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13263 return SWIG_Python_InitShadowInstance(args);
13264 }
13265
13266 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13267 PyObject *resultobj = 0;
13268 wxFontEncoding arg1 ;
13269 wxNativeEncodingInfo *result = 0 ;
13270 int val1 ;
13271 int ecode1 = 0 ;
13272 PyObject * obj0 = 0 ;
13273 char * kwnames[] = {
13274 (char *) "encoding", NULL
13275 };
13276
13277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13278 ecode1 = SWIG_AsVal_int(obj0, &val1);
13279 if (!SWIG_IsOK(ecode1)) {
13280 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13281 }
13282 arg1 = static_cast< wxFontEncoding >(val1);
13283 {
13284 PyThreadState* __tstate = wxPyBeginAllowThreads();
13285 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13286 wxPyEndAllowThreads(__tstate);
13287 if (PyErr_Occurred()) SWIG_fail;
13288 }
13289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13290 return resultobj;
13291 fail:
13292 return NULL;
13293 }
13294
13295
13296 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13297 PyObject *resultobj = 0;
13298 wxNativeEncodingInfo *arg1 = 0 ;
13299 bool result;
13300 void *argp1 = 0 ;
13301 int res1 = 0 ;
13302 PyObject * obj0 = 0 ;
13303 char * kwnames[] = {
13304 (char *) "info", NULL
13305 };
13306
13307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13308 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13309 if (!SWIG_IsOK(res1)) {
13310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13311 }
13312 if (!argp1) {
13313 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13314 }
13315 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13316 {
13317 PyThreadState* __tstate = wxPyBeginAllowThreads();
13318 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13319 wxPyEndAllowThreads(__tstate);
13320 if (PyErr_Occurred()) SWIG_fail;
13321 }
13322 {
13323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13324 }
13325 return resultobj;
13326 fail:
13327 return NULL;
13328 }
13329
13330
13331 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13332 PyObject *resultobj = 0;
13333 wxFontMapper *result = 0 ;
13334
13335 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13336 {
13337 PyThreadState* __tstate = wxPyBeginAllowThreads();
13338 result = (wxFontMapper *)new wxFontMapper();
13339 wxPyEndAllowThreads(__tstate);
13340 if (PyErr_Occurred()) SWIG_fail;
13341 }
13342 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13343 return resultobj;
13344 fail:
13345 return NULL;
13346 }
13347
13348
13349 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13350 PyObject *resultobj = 0;
13351 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13352 void *argp1 = 0 ;
13353 int res1 = 0 ;
13354 PyObject *swig_obj[1] ;
13355
13356 if (!args) SWIG_fail;
13357 swig_obj[0] = args;
13358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13359 if (!SWIG_IsOK(res1)) {
13360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13361 }
13362 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13363 {
13364 PyThreadState* __tstate = wxPyBeginAllowThreads();
13365 delete arg1;
13366
13367 wxPyEndAllowThreads(__tstate);
13368 if (PyErr_Occurred()) SWIG_fail;
13369 }
13370 resultobj = SWIG_Py_Void();
13371 return resultobj;
13372 fail:
13373 return NULL;
13374 }
13375
13376
13377 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13378 PyObject *resultobj = 0;
13379 wxFontMapper *result = 0 ;
13380
13381 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13382 {
13383 PyThreadState* __tstate = wxPyBeginAllowThreads();
13384 result = (wxFontMapper *)wxFontMapper::Get();
13385 wxPyEndAllowThreads(__tstate);
13386 if (PyErr_Occurred()) SWIG_fail;
13387 }
13388 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13389 return resultobj;
13390 fail:
13391 return NULL;
13392 }
13393
13394
13395 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13396 PyObject *resultobj = 0;
13397 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13398 wxFontMapper *result = 0 ;
13399 void *argp1 = 0 ;
13400 int res1 = 0 ;
13401 PyObject * obj0 = 0 ;
13402 char * kwnames[] = {
13403 (char *) "mapper", NULL
13404 };
13405
13406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13408 if (!SWIG_IsOK(res1)) {
13409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13410 }
13411 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13412 {
13413 PyThreadState* __tstate = wxPyBeginAllowThreads();
13414 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13415 wxPyEndAllowThreads(__tstate);
13416 if (PyErr_Occurred()) SWIG_fail;
13417 }
13418 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13419 return resultobj;
13420 fail:
13421 return NULL;
13422 }
13423
13424
13425 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13426 PyObject *resultobj = 0;
13427 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13428 wxString *arg2 = 0 ;
13429 bool arg3 = (bool) true ;
13430 wxFontEncoding result;
13431 void *argp1 = 0 ;
13432 int res1 = 0 ;
13433 bool temp2 = false ;
13434 bool val3 ;
13435 int ecode3 = 0 ;
13436 PyObject * obj0 = 0 ;
13437 PyObject * obj1 = 0 ;
13438 PyObject * obj2 = 0 ;
13439 char * kwnames[] = {
13440 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13441 };
13442
13443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13445 if (!SWIG_IsOK(res1)) {
13446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13447 }
13448 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13449 {
13450 arg2 = wxString_in_helper(obj1);
13451 if (arg2 == NULL) SWIG_fail;
13452 temp2 = true;
13453 }
13454 if (obj2) {
13455 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13456 if (!SWIG_IsOK(ecode3)) {
13457 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13458 }
13459 arg3 = static_cast< bool >(val3);
13460 }
13461 {
13462 PyThreadState* __tstate = wxPyBeginAllowThreads();
13463 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13464 wxPyEndAllowThreads(__tstate);
13465 if (PyErr_Occurred()) SWIG_fail;
13466 }
13467 resultobj = SWIG_From_int(static_cast< int >(result));
13468 {
13469 if (temp2)
13470 delete arg2;
13471 }
13472 return resultobj;
13473 fail:
13474 {
13475 if (temp2)
13476 delete arg2;
13477 }
13478 return NULL;
13479 }
13480
13481
13482 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13483 PyObject *resultobj = 0;
13484 size_t result;
13485
13486 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13487 {
13488 PyThreadState* __tstate = wxPyBeginAllowThreads();
13489 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13490 wxPyEndAllowThreads(__tstate);
13491 if (PyErr_Occurred()) SWIG_fail;
13492 }
13493 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13494 return resultobj;
13495 fail:
13496 return NULL;
13497 }
13498
13499
13500 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13501 PyObject *resultobj = 0;
13502 size_t arg1 ;
13503 wxFontEncoding result;
13504 size_t val1 ;
13505 int ecode1 = 0 ;
13506 PyObject * obj0 = 0 ;
13507 char * kwnames[] = {
13508 (char *) "n", NULL
13509 };
13510
13511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13512 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13513 if (!SWIG_IsOK(ecode1)) {
13514 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13515 }
13516 arg1 = static_cast< size_t >(val1);
13517 {
13518 PyThreadState* __tstate = wxPyBeginAllowThreads();
13519 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13520 wxPyEndAllowThreads(__tstate);
13521 if (PyErr_Occurred()) SWIG_fail;
13522 }
13523 resultobj = SWIG_From_int(static_cast< int >(result));
13524 return resultobj;
13525 fail:
13526 return NULL;
13527 }
13528
13529
13530 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13531 PyObject *resultobj = 0;
13532 wxFontEncoding arg1 ;
13533 wxString result;
13534 int val1 ;
13535 int ecode1 = 0 ;
13536 PyObject * obj0 = 0 ;
13537 char * kwnames[] = {
13538 (char *) "encoding", NULL
13539 };
13540
13541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13542 ecode1 = SWIG_AsVal_int(obj0, &val1);
13543 if (!SWIG_IsOK(ecode1)) {
13544 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13545 }
13546 arg1 = static_cast< wxFontEncoding >(val1);
13547 {
13548 PyThreadState* __tstate = wxPyBeginAllowThreads();
13549 result = wxFontMapper::GetEncodingName(arg1);
13550 wxPyEndAllowThreads(__tstate);
13551 if (PyErr_Occurred()) SWIG_fail;
13552 }
13553 {
13554 #if wxUSE_UNICODE
13555 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13556 #else
13557 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13558 #endif
13559 }
13560 return resultobj;
13561 fail:
13562 return NULL;
13563 }
13564
13565
13566 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13567 PyObject *resultobj = 0;
13568 wxFontEncoding arg1 ;
13569 wxString result;
13570 int val1 ;
13571 int ecode1 = 0 ;
13572 PyObject * obj0 = 0 ;
13573 char * kwnames[] = {
13574 (char *) "encoding", NULL
13575 };
13576
13577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13578 ecode1 = SWIG_AsVal_int(obj0, &val1);
13579 if (!SWIG_IsOK(ecode1)) {
13580 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13581 }
13582 arg1 = static_cast< wxFontEncoding >(val1);
13583 {
13584 PyThreadState* __tstate = wxPyBeginAllowThreads();
13585 result = wxFontMapper::GetEncodingDescription(arg1);
13586 wxPyEndAllowThreads(__tstate);
13587 if (PyErr_Occurred()) SWIG_fail;
13588 }
13589 {
13590 #if wxUSE_UNICODE
13591 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13592 #else
13593 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13594 #endif
13595 }
13596 return resultobj;
13597 fail:
13598 return NULL;
13599 }
13600
13601
13602 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13603 PyObject *resultobj = 0;
13604 wxString *arg1 = 0 ;
13605 wxFontEncoding result;
13606 bool temp1 = false ;
13607 PyObject * obj0 = 0 ;
13608 char * kwnames[] = {
13609 (char *) "name", NULL
13610 };
13611
13612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13613 {
13614 arg1 = wxString_in_helper(obj0);
13615 if (arg1 == NULL) SWIG_fail;
13616 temp1 = true;
13617 }
13618 {
13619 PyThreadState* __tstate = wxPyBeginAllowThreads();
13620 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13621 wxPyEndAllowThreads(__tstate);
13622 if (PyErr_Occurred()) SWIG_fail;
13623 }
13624 resultobj = SWIG_From_int(static_cast< int >(result));
13625 {
13626 if (temp1)
13627 delete arg1;
13628 }
13629 return resultobj;
13630 fail:
13631 {
13632 if (temp1)
13633 delete arg1;
13634 }
13635 return NULL;
13636 }
13637
13638
13639 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13640 PyObject *resultobj = 0;
13641 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13642 wxString *arg2 = 0 ;
13643 void *argp1 = 0 ;
13644 int res1 = 0 ;
13645 bool temp2 = false ;
13646 PyObject * obj0 = 0 ;
13647 PyObject * obj1 = 0 ;
13648 char * kwnames[] = {
13649 (char *) "self",(char *) "prefix", NULL
13650 };
13651
13652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13654 if (!SWIG_IsOK(res1)) {
13655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13656 }
13657 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13658 {
13659 arg2 = wxString_in_helper(obj1);
13660 if (arg2 == NULL) SWIG_fail;
13661 temp2 = true;
13662 }
13663 {
13664 PyThreadState* __tstate = wxPyBeginAllowThreads();
13665 (arg1)->SetConfigPath((wxString const &)*arg2);
13666 wxPyEndAllowThreads(__tstate);
13667 if (PyErr_Occurred()) SWIG_fail;
13668 }
13669 resultobj = SWIG_Py_Void();
13670 {
13671 if (temp2)
13672 delete arg2;
13673 }
13674 return resultobj;
13675 fail:
13676 {
13677 if (temp2)
13678 delete arg2;
13679 }
13680 return NULL;
13681 }
13682
13683
13684 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13685 PyObject *resultobj = 0;
13686 wxString result;
13687
13688 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13689 {
13690 PyThreadState* __tstate = wxPyBeginAllowThreads();
13691 result = wxFontMapper::GetDefaultConfigPath();
13692 wxPyEndAllowThreads(__tstate);
13693 if (PyErr_Occurred()) SWIG_fail;
13694 }
13695 {
13696 #if wxUSE_UNICODE
13697 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13698 #else
13699 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13700 #endif
13701 }
13702 return resultobj;
13703 fail:
13704 return NULL;
13705 }
13706
13707
13708 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13709 PyObject *resultobj = 0;
13710 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13711 wxFontEncoding arg2 ;
13712 wxString const &arg3_defvalue = wxPyEmptyString ;
13713 wxString *arg3 = (wxString *) &arg3_defvalue ;
13714 bool arg4 = (bool) true ;
13715 PyObject *result = 0 ;
13716 void *argp1 = 0 ;
13717 int res1 = 0 ;
13718 int val2 ;
13719 int ecode2 = 0 ;
13720 bool temp3 = false ;
13721 bool val4 ;
13722 int ecode4 = 0 ;
13723 PyObject * obj0 = 0 ;
13724 PyObject * obj1 = 0 ;
13725 PyObject * obj2 = 0 ;
13726 PyObject * obj3 = 0 ;
13727 char * kwnames[] = {
13728 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13729 };
13730
13731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13733 if (!SWIG_IsOK(res1)) {
13734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13735 }
13736 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13737 ecode2 = SWIG_AsVal_int(obj1, &val2);
13738 if (!SWIG_IsOK(ecode2)) {
13739 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13740 }
13741 arg2 = static_cast< wxFontEncoding >(val2);
13742 if (obj2) {
13743 {
13744 arg3 = wxString_in_helper(obj2);
13745 if (arg3 == NULL) SWIG_fail;
13746 temp3 = true;
13747 }
13748 }
13749 if (obj3) {
13750 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13751 if (!SWIG_IsOK(ecode4)) {
13752 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13753 }
13754 arg4 = static_cast< bool >(val4);
13755 }
13756 {
13757 PyThreadState* __tstate = wxPyBeginAllowThreads();
13758 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13759 wxPyEndAllowThreads(__tstate);
13760 if (PyErr_Occurred()) SWIG_fail;
13761 }
13762 resultobj = result;
13763 {
13764 if (temp3)
13765 delete arg3;
13766 }
13767 return resultobj;
13768 fail:
13769 {
13770 if (temp3)
13771 delete arg3;
13772 }
13773 return NULL;
13774 }
13775
13776
13777 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13778 PyObject *resultobj = 0;
13779 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13780 wxFontEncoding arg2 ;
13781 wxString const &arg3_defvalue = wxPyEmptyString ;
13782 wxString *arg3 = (wxString *) &arg3_defvalue ;
13783 bool result;
13784 void *argp1 = 0 ;
13785 int res1 = 0 ;
13786 int val2 ;
13787 int ecode2 = 0 ;
13788 bool temp3 = false ;
13789 PyObject * obj0 = 0 ;
13790 PyObject * obj1 = 0 ;
13791 PyObject * obj2 = 0 ;
13792 char * kwnames[] = {
13793 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13794 };
13795
13796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13798 if (!SWIG_IsOK(res1)) {
13799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13800 }
13801 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13802 ecode2 = SWIG_AsVal_int(obj1, &val2);
13803 if (!SWIG_IsOK(ecode2)) {
13804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13805 }
13806 arg2 = static_cast< wxFontEncoding >(val2);
13807 if (obj2) {
13808 {
13809 arg3 = wxString_in_helper(obj2);
13810 if (arg3 == NULL) SWIG_fail;
13811 temp3 = true;
13812 }
13813 }
13814 {
13815 PyThreadState* __tstate = wxPyBeginAllowThreads();
13816 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13817 wxPyEndAllowThreads(__tstate);
13818 if (PyErr_Occurred()) SWIG_fail;
13819 }
13820 {
13821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13822 }
13823 {
13824 if (temp3)
13825 delete arg3;
13826 }
13827 return resultobj;
13828 fail:
13829 {
13830 if (temp3)
13831 delete arg3;
13832 }
13833 return NULL;
13834 }
13835
13836
13837 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13838 PyObject *resultobj = 0;
13839 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13840 wxWindow *arg2 = (wxWindow *) 0 ;
13841 void *argp1 = 0 ;
13842 int res1 = 0 ;
13843 void *argp2 = 0 ;
13844 int res2 = 0 ;
13845 PyObject * obj0 = 0 ;
13846 PyObject * obj1 = 0 ;
13847 char * kwnames[] = {
13848 (char *) "self",(char *) "parent", NULL
13849 };
13850
13851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13853 if (!SWIG_IsOK(res1)) {
13854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13855 }
13856 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13857 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13858 if (!SWIG_IsOK(res2)) {
13859 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13860 }
13861 arg2 = reinterpret_cast< wxWindow * >(argp2);
13862 {
13863 PyThreadState* __tstate = wxPyBeginAllowThreads();
13864 (arg1)->SetDialogParent(arg2);
13865 wxPyEndAllowThreads(__tstate);
13866 if (PyErr_Occurred()) SWIG_fail;
13867 }
13868 resultobj = SWIG_Py_Void();
13869 return resultobj;
13870 fail:
13871 return NULL;
13872 }
13873
13874
13875 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13876 PyObject *resultobj = 0;
13877 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13878 wxString *arg2 = 0 ;
13879 void *argp1 = 0 ;
13880 int res1 = 0 ;
13881 bool temp2 = false ;
13882 PyObject * obj0 = 0 ;
13883 PyObject * obj1 = 0 ;
13884 char * kwnames[] = {
13885 (char *) "self",(char *) "title", NULL
13886 };
13887
13888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13890 if (!SWIG_IsOK(res1)) {
13891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13892 }
13893 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13894 {
13895 arg2 = wxString_in_helper(obj1);
13896 if (arg2 == NULL) SWIG_fail;
13897 temp2 = true;
13898 }
13899 {
13900 PyThreadState* __tstate = wxPyBeginAllowThreads();
13901 (arg1)->SetDialogTitle((wxString const &)*arg2);
13902 wxPyEndAllowThreads(__tstate);
13903 if (PyErr_Occurred()) SWIG_fail;
13904 }
13905 resultobj = SWIG_Py_Void();
13906 {
13907 if (temp2)
13908 delete arg2;
13909 }
13910 return resultobj;
13911 fail:
13912 {
13913 if (temp2)
13914 delete arg2;
13915 }
13916 return NULL;
13917 }
13918
13919
13920 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13921 PyObject *obj;
13922 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13923 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13924 return SWIG_Py_Void();
13925 }
13926
13927 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13928 return SWIG_Python_InitShadowInstance(args);
13929 }
13930
13931 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13932 PyObject *resultobj = 0;
13933 int arg1 ;
13934 int arg2 ;
13935 int arg3 ;
13936 int arg4 ;
13937 bool arg5 = (bool) false ;
13938 wxString const &arg6_defvalue = wxPyEmptyString ;
13939 wxString *arg6 = (wxString *) &arg6_defvalue ;
13940 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13941 wxFont *result = 0 ;
13942 int val1 ;
13943 int ecode1 = 0 ;
13944 int val2 ;
13945 int ecode2 = 0 ;
13946 int val3 ;
13947 int ecode3 = 0 ;
13948 int val4 ;
13949 int ecode4 = 0 ;
13950 bool val5 ;
13951 int ecode5 = 0 ;
13952 bool temp6 = false ;
13953 int val7 ;
13954 int ecode7 = 0 ;
13955 PyObject * obj0 = 0 ;
13956 PyObject * obj1 = 0 ;
13957 PyObject * obj2 = 0 ;
13958 PyObject * obj3 = 0 ;
13959 PyObject * obj4 = 0 ;
13960 PyObject * obj5 = 0 ;
13961 PyObject * obj6 = 0 ;
13962 char * kwnames[] = {
13963 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13964 };
13965
13966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13967 ecode1 = SWIG_AsVal_int(obj0, &val1);
13968 if (!SWIG_IsOK(ecode1)) {
13969 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13970 }
13971 arg1 = static_cast< int >(val1);
13972 ecode2 = SWIG_AsVal_int(obj1, &val2);
13973 if (!SWIG_IsOK(ecode2)) {
13974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13975 }
13976 arg2 = static_cast< int >(val2);
13977 ecode3 = SWIG_AsVal_int(obj2, &val3);
13978 if (!SWIG_IsOK(ecode3)) {
13979 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13980 }
13981 arg3 = static_cast< int >(val3);
13982 ecode4 = SWIG_AsVal_int(obj3, &val4);
13983 if (!SWIG_IsOK(ecode4)) {
13984 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13985 }
13986 arg4 = static_cast< int >(val4);
13987 if (obj4) {
13988 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13989 if (!SWIG_IsOK(ecode5)) {
13990 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13991 }
13992 arg5 = static_cast< bool >(val5);
13993 }
13994 if (obj5) {
13995 {
13996 arg6 = wxString_in_helper(obj5);
13997 if (arg6 == NULL) SWIG_fail;
13998 temp6 = true;
13999 }
14000 }
14001 if (obj6) {
14002 ecode7 = SWIG_AsVal_int(obj6, &val7);
14003 if (!SWIG_IsOK(ecode7)) {
14004 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14005 }
14006 arg7 = static_cast< wxFontEncoding >(val7);
14007 }
14008 {
14009 if (!wxPyCheckForApp()) SWIG_fail;
14010 PyThreadState* __tstate = wxPyBeginAllowThreads();
14011 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14012 wxPyEndAllowThreads(__tstate);
14013 if (PyErr_Occurred()) SWIG_fail;
14014 }
14015 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
14016 {
14017 if (temp6)
14018 delete arg6;
14019 }
14020 return resultobj;
14021 fail:
14022 {
14023 if (temp6)
14024 delete arg6;
14025 }
14026 return NULL;
14027 }
14028
14029
14030 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14031 PyObject *resultobj = 0;
14032 wxFont *arg1 = (wxFont *) 0 ;
14033 void *argp1 = 0 ;
14034 int res1 = 0 ;
14035 PyObject *swig_obj[1] ;
14036
14037 if (!args) SWIG_fail;
14038 swig_obj[0] = args;
14039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
14040 if (!SWIG_IsOK(res1)) {
14041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14042 }
14043 arg1 = reinterpret_cast< wxFont * >(argp1);
14044 {
14045 PyThreadState* __tstate = wxPyBeginAllowThreads();
14046 delete arg1;
14047
14048 wxPyEndAllowThreads(__tstate);
14049 if (PyErr_Occurred()) SWIG_fail;
14050 }
14051 resultobj = SWIG_Py_Void();
14052 return resultobj;
14053 fail:
14054 return NULL;
14055 }
14056
14057
14058 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14059 PyObject *resultobj = 0;
14060 wxNativeFontInfo *arg1 = 0 ;
14061 wxFont *result = 0 ;
14062 void *argp1 = 0 ;
14063 int res1 = 0 ;
14064 PyObject * obj0 = 0 ;
14065 char * kwnames[] = {
14066 (char *) "info", NULL
14067 };
14068
14069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14070 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14071 if (!SWIG_IsOK(res1)) {
14072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14073 }
14074 if (!argp1) {
14075 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14076 }
14077 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14078 {
14079 if (!wxPyCheckForApp()) SWIG_fail;
14080 PyThreadState* __tstate = wxPyBeginAllowThreads();
14081 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14082 wxPyEndAllowThreads(__tstate);
14083 if (PyErr_Occurred()) SWIG_fail;
14084 }
14085 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14086 return resultobj;
14087 fail:
14088 return NULL;
14089 }
14090
14091
14092 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14093 PyObject *resultobj = 0;
14094 wxString *arg1 = 0 ;
14095 wxFont *result = 0 ;
14096 bool temp1 = false ;
14097 PyObject * obj0 = 0 ;
14098 char * kwnames[] = {
14099 (char *) "info", NULL
14100 };
14101
14102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14103 {
14104 arg1 = wxString_in_helper(obj0);
14105 if (arg1 == NULL) SWIG_fail;
14106 temp1 = true;
14107 }
14108 {
14109 if (!wxPyCheckForApp()) SWIG_fail;
14110 PyThreadState* __tstate = wxPyBeginAllowThreads();
14111 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14112 wxPyEndAllowThreads(__tstate);
14113 if (PyErr_Occurred()) SWIG_fail;
14114 }
14115 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14116 {
14117 if (temp1)
14118 delete arg1;
14119 }
14120 return resultobj;
14121 fail:
14122 {
14123 if (temp1)
14124 delete arg1;
14125 }
14126 return NULL;
14127 }
14128
14129
14130 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14131 PyObject *resultobj = 0;
14132 int arg1 ;
14133 wxFontFamily arg2 ;
14134 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14135 wxString const &arg4_defvalue = wxPyEmptyString ;
14136 wxString *arg4 = (wxString *) &arg4_defvalue ;
14137 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14138 wxFont *result = 0 ;
14139 int val1 ;
14140 int ecode1 = 0 ;
14141 int val2 ;
14142 int ecode2 = 0 ;
14143 int val3 ;
14144 int ecode3 = 0 ;
14145 bool temp4 = false ;
14146 int val5 ;
14147 int ecode5 = 0 ;
14148 PyObject * obj0 = 0 ;
14149 PyObject * obj1 = 0 ;
14150 PyObject * obj2 = 0 ;
14151 PyObject * obj3 = 0 ;
14152 PyObject * obj4 = 0 ;
14153 char * kwnames[] = {
14154 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14155 };
14156
14157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14158 ecode1 = SWIG_AsVal_int(obj0, &val1);
14159 if (!SWIG_IsOK(ecode1)) {
14160 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14161 }
14162 arg1 = static_cast< int >(val1);
14163 ecode2 = SWIG_AsVal_int(obj1, &val2);
14164 if (!SWIG_IsOK(ecode2)) {
14165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14166 }
14167 arg2 = static_cast< wxFontFamily >(val2);
14168 if (obj2) {
14169 ecode3 = SWIG_AsVal_int(obj2, &val3);
14170 if (!SWIG_IsOK(ecode3)) {
14171 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14172 }
14173 arg3 = static_cast< int >(val3);
14174 }
14175 if (obj3) {
14176 {
14177 arg4 = wxString_in_helper(obj3);
14178 if (arg4 == NULL) SWIG_fail;
14179 temp4 = true;
14180 }
14181 }
14182 if (obj4) {
14183 ecode5 = SWIG_AsVal_int(obj4, &val5);
14184 if (!SWIG_IsOK(ecode5)) {
14185 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14186 }
14187 arg5 = static_cast< wxFontEncoding >(val5);
14188 }
14189 {
14190 if (!wxPyCheckForApp()) SWIG_fail;
14191 PyThreadState* __tstate = wxPyBeginAllowThreads();
14192 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14193 wxPyEndAllowThreads(__tstate);
14194 if (PyErr_Occurred()) SWIG_fail;
14195 }
14196 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14197 {
14198 if (temp4)
14199 delete arg4;
14200 }
14201 return resultobj;
14202 fail:
14203 {
14204 if (temp4)
14205 delete arg4;
14206 }
14207 return NULL;
14208 }
14209
14210
14211 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14212 PyObject *resultobj = 0;
14213 wxSize *arg1 = 0 ;
14214 int arg2 ;
14215 int arg3 ;
14216 int arg4 ;
14217 bool arg5 = (bool) false ;
14218 wxString const &arg6_defvalue = wxEmptyString ;
14219 wxString *arg6 = (wxString *) &arg6_defvalue ;
14220 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14221 wxFont *result = 0 ;
14222 wxSize temp1 ;
14223 int val2 ;
14224 int ecode2 = 0 ;
14225 int val3 ;
14226 int ecode3 = 0 ;
14227 int val4 ;
14228 int ecode4 = 0 ;
14229 bool val5 ;
14230 int ecode5 = 0 ;
14231 bool temp6 = false ;
14232 int val7 ;
14233 int ecode7 = 0 ;
14234 PyObject * obj0 = 0 ;
14235 PyObject * obj1 = 0 ;
14236 PyObject * obj2 = 0 ;
14237 PyObject * obj3 = 0 ;
14238 PyObject * obj4 = 0 ;
14239 PyObject * obj5 = 0 ;
14240 PyObject * obj6 = 0 ;
14241 char * kwnames[] = {
14242 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14243 };
14244
14245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14246 {
14247 arg1 = &temp1;
14248 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14249 }
14250 ecode2 = SWIG_AsVal_int(obj1, &val2);
14251 if (!SWIG_IsOK(ecode2)) {
14252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14253 }
14254 arg2 = static_cast< int >(val2);
14255 ecode3 = SWIG_AsVal_int(obj2, &val3);
14256 if (!SWIG_IsOK(ecode3)) {
14257 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14258 }
14259 arg3 = static_cast< int >(val3);
14260 ecode4 = SWIG_AsVal_int(obj3, &val4);
14261 if (!SWIG_IsOK(ecode4)) {
14262 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14263 }
14264 arg4 = static_cast< int >(val4);
14265 if (obj4) {
14266 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14267 if (!SWIG_IsOK(ecode5)) {
14268 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14269 }
14270 arg5 = static_cast< bool >(val5);
14271 }
14272 if (obj5) {
14273 {
14274 arg6 = wxString_in_helper(obj5);
14275 if (arg6 == NULL) SWIG_fail;
14276 temp6 = true;
14277 }
14278 }
14279 if (obj6) {
14280 ecode7 = SWIG_AsVal_int(obj6, &val7);
14281 if (!SWIG_IsOK(ecode7)) {
14282 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14283 }
14284 arg7 = static_cast< wxFontEncoding >(val7);
14285 }
14286 {
14287 if (!wxPyCheckForApp()) SWIG_fail;
14288 PyThreadState* __tstate = wxPyBeginAllowThreads();
14289 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14290 wxPyEndAllowThreads(__tstate);
14291 if (PyErr_Occurred()) SWIG_fail;
14292 }
14293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14294 {
14295 if (temp6)
14296 delete arg6;
14297 }
14298 return resultobj;
14299 fail:
14300 {
14301 if (temp6)
14302 delete arg6;
14303 }
14304 return NULL;
14305 }
14306
14307
14308 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14309 PyObject *resultobj = 0;
14310 wxSize *arg1 = 0 ;
14311 wxFontFamily arg2 ;
14312 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14313 wxString const &arg4_defvalue = wxEmptyString ;
14314 wxString *arg4 = (wxString *) &arg4_defvalue ;
14315 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14316 wxFont *result = 0 ;
14317 wxSize temp1 ;
14318 int val2 ;
14319 int ecode2 = 0 ;
14320 int val3 ;
14321 int ecode3 = 0 ;
14322 bool temp4 = false ;
14323 int val5 ;
14324 int ecode5 = 0 ;
14325 PyObject * obj0 = 0 ;
14326 PyObject * obj1 = 0 ;
14327 PyObject * obj2 = 0 ;
14328 PyObject * obj3 = 0 ;
14329 PyObject * obj4 = 0 ;
14330 char * kwnames[] = {
14331 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14332 };
14333
14334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14335 {
14336 arg1 = &temp1;
14337 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14338 }
14339 ecode2 = SWIG_AsVal_int(obj1, &val2);
14340 if (!SWIG_IsOK(ecode2)) {
14341 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14342 }
14343 arg2 = static_cast< wxFontFamily >(val2);
14344 if (obj2) {
14345 ecode3 = SWIG_AsVal_int(obj2, &val3);
14346 if (!SWIG_IsOK(ecode3)) {
14347 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14348 }
14349 arg3 = static_cast< int >(val3);
14350 }
14351 if (obj3) {
14352 {
14353 arg4 = wxString_in_helper(obj3);
14354 if (arg4 == NULL) SWIG_fail;
14355 temp4 = true;
14356 }
14357 }
14358 if (obj4) {
14359 ecode5 = SWIG_AsVal_int(obj4, &val5);
14360 if (!SWIG_IsOK(ecode5)) {
14361 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14362 }
14363 arg5 = static_cast< wxFontEncoding >(val5);
14364 }
14365 {
14366 if (!wxPyCheckForApp()) SWIG_fail;
14367 PyThreadState* __tstate = wxPyBeginAllowThreads();
14368 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14369 wxPyEndAllowThreads(__tstate);
14370 if (PyErr_Occurred()) SWIG_fail;
14371 }
14372 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14373 {
14374 if (temp4)
14375 delete arg4;
14376 }
14377 return resultobj;
14378 fail:
14379 {
14380 if (temp4)
14381 delete arg4;
14382 }
14383 return NULL;
14384 }
14385
14386
14387 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14388 PyObject *resultobj = 0;
14389 wxFont *arg1 = (wxFont *) 0 ;
14390 bool result;
14391 void *argp1 = 0 ;
14392 int res1 = 0 ;
14393 PyObject *swig_obj[1] ;
14394
14395 if (!args) SWIG_fail;
14396 swig_obj[0] = args;
14397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14398 if (!SWIG_IsOK(res1)) {
14399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
14400 }
14401 arg1 = reinterpret_cast< wxFont * >(argp1);
14402 {
14403 PyThreadState* __tstate = wxPyBeginAllowThreads();
14404 result = (bool)((wxFont const *)arg1)->IsOk();
14405 wxPyEndAllowThreads(__tstate);
14406 if (PyErr_Occurred()) SWIG_fail;
14407 }
14408 {
14409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14410 }
14411 return resultobj;
14412 fail:
14413 return NULL;
14414 }
14415
14416
14417 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14418 PyObject *resultobj = 0;
14419 wxFont *arg1 = (wxFont *) 0 ;
14420 wxFont *arg2 = (wxFont *) 0 ;
14421 bool result;
14422 void *argp1 = 0 ;
14423 int res1 = 0 ;
14424 void *argp2 = 0 ;
14425 int res2 = 0 ;
14426 PyObject * obj0 = 0 ;
14427 PyObject * obj1 = 0 ;
14428 char * kwnames[] = {
14429 (char *) "self",(char *) "other", NULL
14430 };
14431
14432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14434 if (!SWIG_IsOK(res1)) {
14435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14436 }
14437 arg1 = reinterpret_cast< wxFont * >(argp1);
14438 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14439 if (!SWIG_IsOK(res2)) {
14440 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14441 }
14442 arg2 = reinterpret_cast< wxFont * >(argp2);
14443 {
14444 PyThreadState* __tstate = wxPyBeginAllowThreads();
14445 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14446 wxPyEndAllowThreads(__tstate);
14447 if (PyErr_Occurred()) SWIG_fail;
14448 }
14449 {
14450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14451 }
14452 return resultobj;
14453 fail:
14454 return NULL;
14455 }
14456
14457
14458 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14459 PyObject *resultobj = 0;
14460 wxFont *arg1 = (wxFont *) 0 ;
14461 wxFont *arg2 = (wxFont *) 0 ;
14462 bool result;
14463 void *argp1 = 0 ;
14464 int res1 = 0 ;
14465 void *argp2 = 0 ;
14466 int res2 = 0 ;
14467 PyObject * obj0 = 0 ;
14468 PyObject * obj1 = 0 ;
14469 char * kwnames[] = {
14470 (char *) "self",(char *) "other", NULL
14471 };
14472
14473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14475 if (!SWIG_IsOK(res1)) {
14476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14477 }
14478 arg1 = reinterpret_cast< wxFont * >(argp1);
14479 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14480 if (!SWIG_IsOK(res2)) {
14481 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14482 }
14483 arg2 = reinterpret_cast< wxFont * >(argp2);
14484 {
14485 PyThreadState* __tstate = wxPyBeginAllowThreads();
14486 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14487 wxPyEndAllowThreads(__tstate);
14488 if (PyErr_Occurred()) SWIG_fail;
14489 }
14490 {
14491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14492 }
14493 return resultobj;
14494 fail:
14495 return NULL;
14496 }
14497
14498
14499 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14500 PyObject *resultobj = 0;
14501 wxFont *arg1 = (wxFont *) 0 ;
14502 int result;
14503 void *argp1 = 0 ;
14504 int res1 = 0 ;
14505 PyObject *swig_obj[1] ;
14506
14507 if (!args) SWIG_fail;
14508 swig_obj[0] = args;
14509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14510 if (!SWIG_IsOK(res1)) {
14511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14512 }
14513 arg1 = reinterpret_cast< wxFont * >(argp1);
14514 {
14515 PyThreadState* __tstate = wxPyBeginAllowThreads();
14516 result = (int)((wxFont const *)arg1)->GetPointSize();
14517 wxPyEndAllowThreads(__tstate);
14518 if (PyErr_Occurred()) SWIG_fail;
14519 }
14520 resultobj = SWIG_From_int(static_cast< int >(result));
14521 return resultobj;
14522 fail:
14523 return NULL;
14524 }
14525
14526
14527 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14528 PyObject *resultobj = 0;
14529 wxFont *arg1 = (wxFont *) 0 ;
14530 wxSize result;
14531 void *argp1 = 0 ;
14532 int res1 = 0 ;
14533 PyObject *swig_obj[1] ;
14534
14535 if (!args) SWIG_fail;
14536 swig_obj[0] = args;
14537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14538 if (!SWIG_IsOK(res1)) {
14539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14540 }
14541 arg1 = reinterpret_cast< wxFont * >(argp1);
14542 {
14543 PyThreadState* __tstate = wxPyBeginAllowThreads();
14544 result = ((wxFont const *)arg1)->GetPixelSize();
14545 wxPyEndAllowThreads(__tstate);
14546 if (PyErr_Occurred()) SWIG_fail;
14547 }
14548 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14549 return resultobj;
14550 fail:
14551 return NULL;
14552 }
14553
14554
14555 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14556 PyObject *resultobj = 0;
14557 wxFont *arg1 = (wxFont *) 0 ;
14558 bool result;
14559 void *argp1 = 0 ;
14560 int res1 = 0 ;
14561 PyObject *swig_obj[1] ;
14562
14563 if (!args) SWIG_fail;
14564 swig_obj[0] = args;
14565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14566 if (!SWIG_IsOK(res1)) {
14567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14568 }
14569 arg1 = reinterpret_cast< wxFont * >(argp1);
14570 {
14571 PyThreadState* __tstate = wxPyBeginAllowThreads();
14572 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14573 wxPyEndAllowThreads(__tstate);
14574 if (PyErr_Occurred()) SWIG_fail;
14575 }
14576 {
14577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14578 }
14579 return resultobj;
14580 fail:
14581 return NULL;
14582 }
14583
14584
14585 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14586 PyObject *resultobj = 0;
14587 wxFont *arg1 = (wxFont *) 0 ;
14588 int result;
14589 void *argp1 = 0 ;
14590 int res1 = 0 ;
14591 PyObject *swig_obj[1] ;
14592
14593 if (!args) SWIG_fail;
14594 swig_obj[0] = args;
14595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14596 if (!SWIG_IsOK(res1)) {
14597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14598 }
14599 arg1 = reinterpret_cast< wxFont * >(argp1);
14600 {
14601 PyThreadState* __tstate = wxPyBeginAllowThreads();
14602 result = (int)((wxFont const *)arg1)->GetFamily();
14603 wxPyEndAllowThreads(__tstate);
14604 if (PyErr_Occurred()) SWIG_fail;
14605 }
14606 resultobj = SWIG_From_int(static_cast< int >(result));
14607 return resultobj;
14608 fail:
14609 return NULL;
14610 }
14611
14612
14613 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14614 PyObject *resultobj = 0;
14615 wxFont *arg1 = (wxFont *) 0 ;
14616 int result;
14617 void *argp1 = 0 ;
14618 int res1 = 0 ;
14619 PyObject *swig_obj[1] ;
14620
14621 if (!args) SWIG_fail;
14622 swig_obj[0] = args;
14623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14624 if (!SWIG_IsOK(res1)) {
14625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14626 }
14627 arg1 = reinterpret_cast< wxFont * >(argp1);
14628 {
14629 PyThreadState* __tstate = wxPyBeginAllowThreads();
14630 result = (int)((wxFont const *)arg1)->GetStyle();
14631 wxPyEndAllowThreads(__tstate);
14632 if (PyErr_Occurred()) SWIG_fail;
14633 }
14634 resultobj = SWIG_From_int(static_cast< int >(result));
14635 return resultobj;
14636 fail:
14637 return NULL;
14638 }
14639
14640
14641 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14642 PyObject *resultobj = 0;
14643 wxFont *arg1 = (wxFont *) 0 ;
14644 int result;
14645 void *argp1 = 0 ;
14646 int res1 = 0 ;
14647 PyObject *swig_obj[1] ;
14648
14649 if (!args) SWIG_fail;
14650 swig_obj[0] = args;
14651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14652 if (!SWIG_IsOK(res1)) {
14653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14654 }
14655 arg1 = reinterpret_cast< wxFont * >(argp1);
14656 {
14657 PyThreadState* __tstate = wxPyBeginAllowThreads();
14658 result = (int)((wxFont const *)arg1)->GetWeight();
14659 wxPyEndAllowThreads(__tstate);
14660 if (PyErr_Occurred()) SWIG_fail;
14661 }
14662 resultobj = SWIG_From_int(static_cast< int >(result));
14663 return resultobj;
14664 fail:
14665 return NULL;
14666 }
14667
14668
14669 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14670 PyObject *resultobj = 0;
14671 wxFont *arg1 = (wxFont *) 0 ;
14672 bool result;
14673 void *argp1 = 0 ;
14674 int res1 = 0 ;
14675 PyObject *swig_obj[1] ;
14676
14677 if (!args) SWIG_fail;
14678 swig_obj[0] = args;
14679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14680 if (!SWIG_IsOK(res1)) {
14681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14682 }
14683 arg1 = reinterpret_cast< wxFont * >(argp1);
14684 {
14685 PyThreadState* __tstate = wxPyBeginAllowThreads();
14686 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14687 wxPyEndAllowThreads(__tstate);
14688 if (PyErr_Occurred()) SWIG_fail;
14689 }
14690 {
14691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14692 }
14693 return resultobj;
14694 fail:
14695 return NULL;
14696 }
14697
14698
14699 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14700 PyObject *resultobj = 0;
14701 wxFont *arg1 = (wxFont *) 0 ;
14702 wxString result;
14703 void *argp1 = 0 ;
14704 int res1 = 0 ;
14705 PyObject *swig_obj[1] ;
14706
14707 if (!args) SWIG_fail;
14708 swig_obj[0] = args;
14709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14710 if (!SWIG_IsOK(res1)) {
14711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14712 }
14713 arg1 = reinterpret_cast< wxFont * >(argp1);
14714 {
14715 PyThreadState* __tstate = wxPyBeginAllowThreads();
14716 result = ((wxFont const *)arg1)->GetFaceName();
14717 wxPyEndAllowThreads(__tstate);
14718 if (PyErr_Occurred()) SWIG_fail;
14719 }
14720 {
14721 #if wxUSE_UNICODE
14722 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14723 #else
14724 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14725 #endif
14726 }
14727 return resultobj;
14728 fail:
14729 return NULL;
14730 }
14731
14732
14733 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14734 PyObject *resultobj = 0;
14735 wxFont *arg1 = (wxFont *) 0 ;
14736 wxFontEncoding result;
14737 void *argp1 = 0 ;
14738 int res1 = 0 ;
14739 PyObject *swig_obj[1] ;
14740
14741 if (!args) SWIG_fail;
14742 swig_obj[0] = args;
14743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14744 if (!SWIG_IsOK(res1)) {
14745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14746 }
14747 arg1 = reinterpret_cast< wxFont * >(argp1);
14748 {
14749 PyThreadState* __tstate = wxPyBeginAllowThreads();
14750 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14751 wxPyEndAllowThreads(__tstate);
14752 if (PyErr_Occurred()) SWIG_fail;
14753 }
14754 resultobj = SWIG_From_int(static_cast< int >(result));
14755 return resultobj;
14756 fail:
14757 return NULL;
14758 }
14759
14760
14761 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14762 PyObject *resultobj = 0;
14763 wxFont *arg1 = (wxFont *) 0 ;
14764 wxNativeFontInfo *result = 0 ;
14765 void *argp1 = 0 ;
14766 int res1 = 0 ;
14767 PyObject *swig_obj[1] ;
14768
14769 if (!args) SWIG_fail;
14770 swig_obj[0] = args;
14771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14772 if (!SWIG_IsOK(res1)) {
14773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14774 }
14775 arg1 = reinterpret_cast< wxFont * >(argp1);
14776 {
14777 PyThreadState* __tstate = wxPyBeginAllowThreads();
14778 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14779 wxPyEndAllowThreads(__tstate);
14780 if (PyErr_Occurred()) SWIG_fail;
14781 }
14782 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14783 return resultobj;
14784 fail:
14785 return NULL;
14786 }
14787
14788
14789 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14790 PyObject *resultobj = 0;
14791 wxFont *arg1 = (wxFont *) 0 ;
14792 bool result;
14793 void *argp1 = 0 ;
14794 int res1 = 0 ;
14795 PyObject *swig_obj[1] ;
14796
14797 if (!args) SWIG_fail;
14798 swig_obj[0] = args;
14799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14800 if (!SWIG_IsOK(res1)) {
14801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14802 }
14803 arg1 = reinterpret_cast< wxFont * >(argp1);
14804 {
14805 PyThreadState* __tstate = wxPyBeginAllowThreads();
14806 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14807 wxPyEndAllowThreads(__tstate);
14808 if (PyErr_Occurred()) SWIG_fail;
14809 }
14810 {
14811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14812 }
14813 return resultobj;
14814 fail:
14815 return NULL;
14816 }
14817
14818
14819 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14820 PyObject *resultobj = 0;
14821 wxFont *arg1 = (wxFont *) 0 ;
14822 wxString result;
14823 void *argp1 = 0 ;
14824 int res1 = 0 ;
14825 PyObject *swig_obj[1] ;
14826
14827 if (!args) SWIG_fail;
14828 swig_obj[0] = args;
14829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14830 if (!SWIG_IsOK(res1)) {
14831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14832 }
14833 arg1 = reinterpret_cast< wxFont * >(argp1);
14834 {
14835 PyThreadState* __tstate = wxPyBeginAllowThreads();
14836 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14837 wxPyEndAllowThreads(__tstate);
14838 if (PyErr_Occurred()) SWIG_fail;
14839 }
14840 {
14841 #if wxUSE_UNICODE
14842 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14843 #else
14844 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14845 #endif
14846 }
14847 return resultobj;
14848 fail:
14849 return NULL;
14850 }
14851
14852
14853 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14854 PyObject *resultobj = 0;
14855 wxFont *arg1 = (wxFont *) 0 ;
14856 wxString result;
14857 void *argp1 = 0 ;
14858 int res1 = 0 ;
14859 PyObject *swig_obj[1] ;
14860
14861 if (!args) SWIG_fail;
14862 swig_obj[0] = args;
14863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14864 if (!SWIG_IsOK(res1)) {
14865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14866 }
14867 arg1 = reinterpret_cast< wxFont * >(argp1);
14868 {
14869 PyThreadState* __tstate = wxPyBeginAllowThreads();
14870 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14871 wxPyEndAllowThreads(__tstate);
14872 if (PyErr_Occurred()) SWIG_fail;
14873 }
14874 {
14875 #if wxUSE_UNICODE
14876 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14877 #else
14878 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14879 #endif
14880 }
14881 return resultobj;
14882 fail:
14883 return NULL;
14884 }
14885
14886
14887 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14888 PyObject *resultobj = 0;
14889 wxFont *arg1 = (wxFont *) 0 ;
14890 int arg2 ;
14891 void *argp1 = 0 ;
14892 int res1 = 0 ;
14893 int val2 ;
14894 int ecode2 = 0 ;
14895 PyObject * obj0 = 0 ;
14896 PyObject * obj1 = 0 ;
14897 char * kwnames[] = {
14898 (char *) "self",(char *) "pointSize", NULL
14899 };
14900
14901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14903 if (!SWIG_IsOK(res1)) {
14904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14905 }
14906 arg1 = reinterpret_cast< wxFont * >(argp1);
14907 ecode2 = SWIG_AsVal_int(obj1, &val2);
14908 if (!SWIG_IsOK(ecode2)) {
14909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14910 }
14911 arg2 = static_cast< int >(val2);
14912 {
14913 PyThreadState* __tstate = wxPyBeginAllowThreads();
14914 (arg1)->SetPointSize(arg2);
14915 wxPyEndAllowThreads(__tstate);
14916 if (PyErr_Occurred()) SWIG_fail;
14917 }
14918 resultobj = SWIG_Py_Void();
14919 return resultobj;
14920 fail:
14921 return NULL;
14922 }
14923
14924
14925 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14926 PyObject *resultobj = 0;
14927 wxFont *arg1 = (wxFont *) 0 ;
14928 wxSize *arg2 = 0 ;
14929 void *argp1 = 0 ;
14930 int res1 = 0 ;
14931 wxSize temp2 ;
14932 PyObject * obj0 = 0 ;
14933 PyObject * obj1 = 0 ;
14934 char * kwnames[] = {
14935 (char *) "self",(char *) "pixelSize", NULL
14936 };
14937
14938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14940 if (!SWIG_IsOK(res1)) {
14941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14942 }
14943 arg1 = reinterpret_cast< wxFont * >(argp1);
14944 {
14945 arg2 = &temp2;
14946 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14947 }
14948 {
14949 PyThreadState* __tstate = wxPyBeginAllowThreads();
14950 (arg1)->SetPixelSize((wxSize const &)*arg2);
14951 wxPyEndAllowThreads(__tstate);
14952 if (PyErr_Occurred()) SWIG_fail;
14953 }
14954 resultobj = SWIG_Py_Void();
14955 return resultobj;
14956 fail:
14957 return NULL;
14958 }
14959
14960
14961 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14962 PyObject *resultobj = 0;
14963 wxFont *arg1 = (wxFont *) 0 ;
14964 int arg2 ;
14965 void *argp1 = 0 ;
14966 int res1 = 0 ;
14967 int val2 ;
14968 int ecode2 = 0 ;
14969 PyObject * obj0 = 0 ;
14970 PyObject * obj1 = 0 ;
14971 char * kwnames[] = {
14972 (char *) "self",(char *) "family", NULL
14973 };
14974
14975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14977 if (!SWIG_IsOK(res1)) {
14978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14979 }
14980 arg1 = reinterpret_cast< wxFont * >(argp1);
14981 ecode2 = SWIG_AsVal_int(obj1, &val2);
14982 if (!SWIG_IsOK(ecode2)) {
14983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14984 }
14985 arg2 = static_cast< int >(val2);
14986 {
14987 PyThreadState* __tstate = wxPyBeginAllowThreads();
14988 (arg1)->SetFamily(arg2);
14989 wxPyEndAllowThreads(__tstate);
14990 if (PyErr_Occurred()) SWIG_fail;
14991 }
14992 resultobj = SWIG_Py_Void();
14993 return resultobj;
14994 fail:
14995 return NULL;
14996 }
14997
14998
14999 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15000 PyObject *resultobj = 0;
15001 wxFont *arg1 = (wxFont *) 0 ;
15002 int arg2 ;
15003 void *argp1 = 0 ;
15004 int res1 = 0 ;
15005 int val2 ;
15006 int ecode2 = 0 ;
15007 PyObject * obj0 = 0 ;
15008 PyObject * obj1 = 0 ;
15009 char * kwnames[] = {
15010 (char *) "self",(char *) "style", NULL
15011 };
15012
15013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
15014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15015 if (!SWIG_IsOK(res1)) {
15016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
15017 }
15018 arg1 = reinterpret_cast< wxFont * >(argp1);
15019 ecode2 = SWIG_AsVal_int(obj1, &val2);
15020 if (!SWIG_IsOK(ecode2)) {
15021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
15022 }
15023 arg2 = static_cast< int >(val2);
15024 {
15025 PyThreadState* __tstate = wxPyBeginAllowThreads();
15026 (arg1)->SetStyle(arg2);
15027 wxPyEndAllowThreads(__tstate);
15028 if (PyErr_Occurred()) SWIG_fail;
15029 }
15030 resultobj = SWIG_Py_Void();
15031 return resultobj;
15032 fail:
15033 return NULL;
15034 }
15035
15036
15037 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15038 PyObject *resultobj = 0;
15039 wxFont *arg1 = (wxFont *) 0 ;
15040 int arg2 ;
15041 void *argp1 = 0 ;
15042 int res1 = 0 ;
15043 int val2 ;
15044 int ecode2 = 0 ;
15045 PyObject * obj0 = 0 ;
15046 PyObject * obj1 = 0 ;
15047 char * kwnames[] = {
15048 (char *) "self",(char *) "weight", NULL
15049 };
15050
15051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15053 if (!SWIG_IsOK(res1)) {
15054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15055 }
15056 arg1 = reinterpret_cast< wxFont * >(argp1);
15057 ecode2 = SWIG_AsVal_int(obj1, &val2);
15058 if (!SWIG_IsOK(ecode2)) {
15059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15060 }
15061 arg2 = static_cast< int >(val2);
15062 {
15063 PyThreadState* __tstate = wxPyBeginAllowThreads();
15064 (arg1)->SetWeight(arg2);
15065 wxPyEndAllowThreads(__tstate);
15066 if (PyErr_Occurred()) SWIG_fail;
15067 }
15068 resultobj = SWIG_Py_Void();
15069 return resultobj;
15070 fail:
15071 return NULL;
15072 }
15073
15074
15075 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15076 PyObject *resultobj = 0;
15077 wxFont *arg1 = (wxFont *) 0 ;
15078 wxString *arg2 = 0 ;
15079 bool result;
15080 void *argp1 = 0 ;
15081 int res1 = 0 ;
15082 bool temp2 = false ;
15083 PyObject * obj0 = 0 ;
15084 PyObject * obj1 = 0 ;
15085 char * kwnames[] = {
15086 (char *) "self",(char *) "faceName", NULL
15087 };
15088
15089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15091 if (!SWIG_IsOK(res1)) {
15092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15093 }
15094 arg1 = reinterpret_cast< wxFont * >(argp1);
15095 {
15096 arg2 = wxString_in_helper(obj1);
15097 if (arg2 == NULL) SWIG_fail;
15098 temp2 = true;
15099 }
15100 {
15101 PyThreadState* __tstate = wxPyBeginAllowThreads();
15102 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
15103 wxPyEndAllowThreads(__tstate);
15104 if (PyErr_Occurred()) SWIG_fail;
15105 }
15106 {
15107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15108 }
15109 {
15110 if (temp2)
15111 delete arg2;
15112 }
15113 return resultobj;
15114 fail:
15115 {
15116 if (temp2)
15117 delete arg2;
15118 }
15119 return NULL;
15120 }
15121
15122
15123 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15124 PyObject *resultobj = 0;
15125 wxFont *arg1 = (wxFont *) 0 ;
15126 bool arg2 ;
15127 void *argp1 = 0 ;
15128 int res1 = 0 ;
15129 bool val2 ;
15130 int ecode2 = 0 ;
15131 PyObject * obj0 = 0 ;
15132 PyObject * obj1 = 0 ;
15133 char * kwnames[] = {
15134 (char *) "self",(char *) "underlined", NULL
15135 };
15136
15137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15139 if (!SWIG_IsOK(res1)) {
15140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15141 }
15142 arg1 = reinterpret_cast< wxFont * >(argp1);
15143 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15144 if (!SWIG_IsOK(ecode2)) {
15145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15146 }
15147 arg2 = static_cast< bool >(val2);
15148 {
15149 PyThreadState* __tstate = wxPyBeginAllowThreads();
15150 (arg1)->SetUnderlined(arg2);
15151 wxPyEndAllowThreads(__tstate);
15152 if (PyErr_Occurred()) SWIG_fail;
15153 }
15154 resultobj = SWIG_Py_Void();
15155 return resultobj;
15156 fail:
15157 return NULL;
15158 }
15159
15160
15161 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15162 PyObject *resultobj = 0;
15163 wxFont *arg1 = (wxFont *) 0 ;
15164 wxFontEncoding arg2 ;
15165 void *argp1 = 0 ;
15166 int res1 = 0 ;
15167 int val2 ;
15168 int ecode2 = 0 ;
15169 PyObject * obj0 = 0 ;
15170 PyObject * obj1 = 0 ;
15171 char * kwnames[] = {
15172 (char *) "self",(char *) "encoding", NULL
15173 };
15174
15175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15177 if (!SWIG_IsOK(res1)) {
15178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15179 }
15180 arg1 = reinterpret_cast< wxFont * >(argp1);
15181 ecode2 = SWIG_AsVal_int(obj1, &val2);
15182 if (!SWIG_IsOK(ecode2)) {
15183 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15184 }
15185 arg2 = static_cast< wxFontEncoding >(val2);
15186 {
15187 PyThreadState* __tstate = wxPyBeginAllowThreads();
15188 (arg1)->SetEncoding(arg2);
15189 wxPyEndAllowThreads(__tstate);
15190 if (PyErr_Occurred()) SWIG_fail;
15191 }
15192 resultobj = SWIG_Py_Void();
15193 return resultobj;
15194 fail:
15195 return NULL;
15196 }
15197
15198
15199 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15200 PyObject *resultobj = 0;
15201 wxFont *arg1 = (wxFont *) 0 ;
15202 wxNativeFontInfo *arg2 = 0 ;
15203 void *argp1 = 0 ;
15204 int res1 = 0 ;
15205 void *argp2 = 0 ;
15206 int res2 = 0 ;
15207 PyObject * obj0 = 0 ;
15208 PyObject * obj1 = 0 ;
15209 char * kwnames[] = {
15210 (char *) "self",(char *) "info", NULL
15211 };
15212
15213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15215 if (!SWIG_IsOK(res1)) {
15216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15217 }
15218 arg1 = reinterpret_cast< wxFont * >(argp1);
15219 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15220 if (!SWIG_IsOK(res2)) {
15221 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15222 }
15223 if (!argp2) {
15224 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15225 }
15226 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15227 {
15228 PyThreadState* __tstate = wxPyBeginAllowThreads();
15229 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15230 wxPyEndAllowThreads(__tstate);
15231 if (PyErr_Occurred()) SWIG_fail;
15232 }
15233 resultobj = SWIG_Py_Void();
15234 return resultobj;
15235 fail:
15236 return NULL;
15237 }
15238
15239
15240 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15241 PyObject *resultobj = 0;
15242 wxFont *arg1 = (wxFont *) 0 ;
15243 wxString *arg2 = 0 ;
15244 bool result;
15245 void *argp1 = 0 ;
15246 int res1 = 0 ;
15247 bool temp2 = false ;
15248 PyObject * obj0 = 0 ;
15249 PyObject * obj1 = 0 ;
15250 char * kwnames[] = {
15251 (char *) "self",(char *) "info", NULL
15252 };
15253
15254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15256 if (!SWIG_IsOK(res1)) {
15257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15258 }
15259 arg1 = reinterpret_cast< wxFont * >(argp1);
15260 {
15261 arg2 = wxString_in_helper(obj1);
15262 if (arg2 == NULL) SWIG_fail;
15263 temp2 = true;
15264 }
15265 {
15266 PyThreadState* __tstate = wxPyBeginAllowThreads();
15267 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15268 wxPyEndAllowThreads(__tstate);
15269 if (PyErr_Occurred()) SWIG_fail;
15270 }
15271 {
15272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15273 }
15274 {
15275 if (temp2)
15276 delete arg2;
15277 }
15278 return resultobj;
15279 fail:
15280 {
15281 if (temp2)
15282 delete arg2;
15283 }
15284 return NULL;
15285 }
15286
15287
15288 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15289 PyObject *resultobj = 0;
15290 wxFont *arg1 = (wxFont *) 0 ;
15291 wxString *arg2 = 0 ;
15292 bool result;
15293 void *argp1 = 0 ;
15294 int res1 = 0 ;
15295 bool temp2 = false ;
15296 PyObject * obj0 = 0 ;
15297 PyObject * obj1 = 0 ;
15298 char * kwnames[] = {
15299 (char *) "self",(char *) "info", NULL
15300 };
15301
15302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15304 if (!SWIG_IsOK(res1)) {
15305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15306 }
15307 arg1 = reinterpret_cast< wxFont * >(argp1);
15308 {
15309 arg2 = wxString_in_helper(obj1);
15310 if (arg2 == NULL) SWIG_fail;
15311 temp2 = true;
15312 }
15313 {
15314 PyThreadState* __tstate = wxPyBeginAllowThreads();
15315 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15316 wxPyEndAllowThreads(__tstate);
15317 if (PyErr_Occurred()) SWIG_fail;
15318 }
15319 {
15320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15321 }
15322 {
15323 if (temp2)
15324 delete arg2;
15325 }
15326 return resultobj;
15327 fail:
15328 {
15329 if (temp2)
15330 delete arg2;
15331 }
15332 return NULL;
15333 }
15334
15335
15336 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15337 PyObject *resultobj = 0;
15338 wxFont *arg1 = (wxFont *) 0 ;
15339 wxString result;
15340 void *argp1 = 0 ;
15341 int res1 = 0 ;
15342 PyObject *swig_obj[1] ;
15343
15344 if (!args) SWIG_fail;
15345 swig_obj[0] = args;
15346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15347 if (!SWIG_IsOK(res1)) {
15348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15349 }
15350 arg1 = reinterpret_cast< wxFont * >(argp1);
15351 {
15352 PyThreadState* __tstate = wxPyBeginAllowThreads();
15353 result = ((wxFont const *)arg1)->GetFamilyString();
15354 wxPyEndAllowThreads(__tstate);
15355 if (PyErr_Occurred()) SWIG_fail;
15356 }
15357 {
15358 #if wxUSE_UNICODE
15359 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15360 #else
15361 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15362 #endif
15363 }
15364 return resultobj;
15365 fail:
15366 return NULL;
15367 }
15368
15369
15370 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15371 PyObject *resultobj = 0;
15372 wxFont *arg1 = (wxFont *) 0 ;
15373 wxString result;
15374 void *argp1 = 0 ;
15375 int res1 = 0 ;
15376 PyObject *swig_obj[1] ;
15377
15378 if (!args) SWIG_fail;
15379 swig_obj[0] = args;
15380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15381 if (!SWIG_IsOK(res1)) {
15382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15383 }
15384 arg1 = reinterpret_cast< wxFont * >(argp1);
15385 {
15386 PyThreadState* __tstate = wxPyBeginAllowThreads();
15387 result = ((wxFont const *)arg1)->GetStyleString();
15388 wxPyEndAllowThreads(__tstate);
15389 if (PyErr_Occurred()) SWIG_fail;
15390 }
15391 {
15392 #if wxUSE_UNICODE
15393 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15394 #else
15395 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15396 #endif
15397 }
15398 return resultobj;
15399 fail:
15400 return NULL;
15401 }
15402
15403
15404 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15405 PyObject *resultobj = 0;
15406 wxFont *arg1 = (wxFont *) 0 ;
15407 wxString result;
15408 void *argp1 = 0 ;
15409 int res1 = 0 ;
15410 PyObject *swig_obj[1] ;
15411
15412 if (!args) SWIG_fail;
15413 swig_obj[0] = args;
15414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15415 if (!SWIG_IsOK(res1)) {
15416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15417 }
15418 arg1 = reinterpret_cast< wxFont * >(argp1);
15419 {
15420 PyThreadState* __tstate = wxPyBeginAllowThreads();
15421 result = ((wxFont const *)arg1)->GetWeightString();
15422 wxPyEndAllowThreads(__tstate);
15423 if (PyErr_Occurred()) SWIG_fail;
15424 }
15425 {
15426 #if wxUSE_UNICODE
15427 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15428 #else
15429 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15430 #endif
15431 }
15432 return resultobj;
15433 fail:
15434 return NULL;
15435 }
15436
15437
15438 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15439 PyObject *resultobj = 0;
15440 wxFont *arg1 = (wxFont *) 0 ;
15441 bool arg2 = (bool) true ;
15442 void *argp1 = 0 ;
15443 int res1 = 0 ;
15444 bool val2 ;
15445 int ecode2 = 0 ;
15446 PyObject * obj0 = 0 ;
15447 PyObject * obj1 = 0 ;
15448 char * kwnames[] = {
15449 (char *) "self",(char *) "no", NULL
15450 };
15451
15452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15454 if (!SWIG_IsOK(res1)) {
15455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15456 }
15457 arg1 = reinterpret_cast< wxFont * >(argp1);
15458 if (obj1) {
15459 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15460 if (!SWIG_IsOK(ecode2)) {
15461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15462 }
15463 arg2 = static_cast< bool >(val2);
15464 }
15465 {
15466 PyThreadState* __tstate = wxPyBeginAllowThreads();
15467 (arg1)->SetNoAntiAliasing(arg2);
15468 wxPyEndAllowThreads(__tstate);
15469 if (PyErr_Occurred()) SWIG_fail;
15470 }
15471 resultobj = SWIG_Py_Void();
15472 return resultobj;
15473 fail:
15474 return NULL;
15475 }
15476
15477
15478 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15479 PyObject *resultobj = 0;
15480 wxFont *arg1 = (wxFont *) 0 ;
15481 bool result;
15482 void *argp1 = 0 ;
15483 int res1 = 0 ;
15484 PyObject *swig_obj[1] ;
15485
15486 if (!args) SWIG_fail;
15487 swig_obj[0] = args;
15488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15489 if (!SWIG_IsOK(res1)) {
15490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15491 }
15492 arg1 = reinterpret_cast< wxFont * >(argp1);
15493 {
15494 PyThreadState* __tstate = wxPyBeginAllowThreads();
15495 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15496 wxPyEndAllowThreads(__tstate);
15497 if (PyErr_Occurred()) SWIG_fail;
15498 }
15499 {
15500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15501 }
15502 return resultobj;
15503 fail:
15504 return NULL;
15505 }
15506
15507
15508 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15509 PyObject *resultobj = 0;
15510 wxFontEncoding result;
15511
15512 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15513 {
15514 if (!wxPyCheckForApp()) SWIG_fail;
15515 PyThreadState* __tstate = wxPyBeginAllowThreads();
15516 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15517 wxPyEndAllowThreads(__tstate);
15518 if (PyErr_Occurred()) SWIG_fail;
15519 }
15520 resultobj = SWIG_From_int(static_cast< int >(result));
15521 return resultobj;
15522 fail:
15523 return NULL;
15524 }
15525
15526
15527 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15528 PyObject *resultobj = 0;
15529 wxFontEncoding arg1 ;
15530 int val1 ;
15531 int ecode1 = 0 ;
15532 PyObject * obj0 = 0 ;
15533 char * kwnames[] = {
15534 (char *) "encoding", NULL
15535 };
15536
15537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15538 ecode1 = SWIG_AsVal_int(obj0, &val1);
15539 if (!SWIG_IsOK(ecode1)) {
15540 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15541 }
15542 arg1 = static_cast< wxFontEncoding >(val1);
15543 {
15544 if (!wxPyCheckForApp()) SWIG_fail;
15545 PyThreadState* __tstate = wxPyBeginAllowThreads();
15546 wxFont::SetDefaultEncoding(arg1);
15547 wxPyEndAllowThreads(__tstate);
15548 if (PyErr_Occurred()) SWIG_fail;
15549 }
15550 resultobj = SWIG_Py_Void();
15551 return resultobj;
15552 fail:
15553 return NULL;
15554 }
15555
15556
15557 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15558 PyObject *obj;
15559 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15560 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15561 return SWIG_Py_Void();
15562 }
15563
15564 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15565 return SWIG_Python_InitShadowInstance(args);
15566 }
15567
15568 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15569 PyObject *resultobj = 0;
15570 wxPyFontEnumerator *result = 0 ;
15571
15572 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15573 {
15574 if (!wxPyCheckForApp()) SWIG_fail;
15575 PyThreadState* __tstate = wxPyBeginAllowThreads();
15576 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15577 wxPyEndAllowThreads(__tstate);
15578 if (PyErr_Occurred()) SWIG_fail;
15579 }
15580 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15581 return resultobj;
15582 fail:
15583 return NULL;
15584 }
15585
15586
15587 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15588 PyObject *resultobj = 0;
15589 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15590 void *argp1 = 0 ;
15591 int res1 = 0 ;
15592 PyObject *swig_obj[1] ;
15593
15594 if (!args) SWIG_fail;
15595 swig_obj[0] = args;
15596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15597 if (!SWIG_IsOK(res1)) {
15598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15599 }
15600 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15601 {
15602 PyThreadState* __tstate = wxPyBeginAllowThreads();
15603 delete arg1;
15604
15605 wxPyEndAllowThreads(__tstate);
15606 if (PyErr_Occurred()) SWIG_fail;
15607 }
15608 resultobj = SWIG_Py_Void();
15609 return resultobj;
15610 fail:
15611 return NULL;
15612 }
15613
15614
15615 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15616 PyObject *resultobj = 0;
15617 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15618 PyObject *arg2 = (PyObject *) 0 ;
15619 PyObject *arg3 = (PyObject *) 0 ;
15620 int arg4 = (int) 0 ;
15621 void *argp1 = 0 ;
15622 int res1 = 0 ;
15623 int val4 ;
15624 int ecode4 = 0 ;
15625 PyObject * obj0 = 0 ;
15626 PyObject * obj1 = 0 ;
15627 PyObject * obj2 = 0 ;
15628 PyObject * obj3 = 0 ;
15629 char * kwnames[] = {
15630 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15631 };
15632
15633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15635 if (!SWIG_IsOK(res1)) {
15636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15637 }
15638 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15639 arg2 = obj1;
15640 arg3 = obj2;
15641 if (obj3) {
15642 ecode4 = SWIG_AsVal_int(obj3, &val4);
15643 if (!SWIG_IsOK(ecode4)) {
15644 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "int""'");
15645 }
15646 arg4 = static_cast< int >(val4);
15647 }
15648 {
15649 PyThreadState* __tstate = wxPyBeginAllowThreads();
15650 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15651 wxPyEndAllowThreads(__tstate);
15652 if (PyErr_Occurred()) SWIG_fail;
15653 }
15654 resultobj = SWIG_Py_Void();
15655 return resultobj;
15656 fail:
15657 return NULL;
15658 }
15659
15660
15661 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15662 PyObject *resultobj = 0;
15663 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15664 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15665 bool arg3 = (bool) false ;
15666 bool result;
15667 void *argp1 = 0 ;
15668 int res1 = 0 ;
15669 int val2 ;
15670 int ecode2 = 0 ;
15671 bool val3 ;
15672 int ecode3 = 0 ;
15673 PyObject * obj0 = 0 ;
15674 PyObject * obj1 = 0 ;
15675 PyObject * obj2 = 0 ;
15676 char * kwnames[] = {
15677 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15678 };
15679
15680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15682 if (!SWIG_IsOK(res1)) {
15683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15684 }
15685 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15686 if (obj1) {
15687 ecode2 = SWIG_AsVal_int(obj1, &val2);
15688 if (!SWIG_IsOK(ecode2)) {
15689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15690 }
15691 arg2 = static_cast< wxFontEncoding >(val2);
15692 }
15693 if (obj2) {
15694 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15695 if (!SWIG_IsOK(ecode3)) {
15696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15697 }
15698 arg3 = static_cast< bool >(val3);
15699 }
15700 {
15701 PyThreadState* __tstate = wxPyBeginAllowThreads();
15702 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15703 wxPyEndAllowThreads(__tstate);
15704 if (PyErr_Occurred()) SWIG_fail;
15705 }
15706 {
15707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15708 }
15709 return resultobj;
15710 fail:
15711 return NULL;
15712 }
15713
15714
15715 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15716 PyObject *resultobj = 0;
15717 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15718 wxString const &arg2_defvalue = wxPyEmptyString ;
15719 wxString *arg2 = (wxString *) &arg2_defvalue ;
15720 bool result;
15721 void *argp1 = 0 ;
15722 int res1 = 0 ;
15723 bool temp2 = false ;
15724 PyObject * obj0 = 0 ;
15725 PyObject * obj1 = 0 ;
15726 char * kwnames[] = {
15727 (char *) "self",(char *) "facename", NULL
15728 };
15729
15730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15732 if (!SWIG_IsOK(res1)) {
15733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15734 }
15735 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15736 if (obj1) {
15737 {
15738 arg2 = wxString_in_helper(obj1);
15739 if (arg2 == NULL) SWIG_fail;
15740 temp2 = true;
15741 }
15742 }
15743 {
15744 PyThreadState* __tstate = wxPyBeginAllowThreads();
15745 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15746 wxPyEndAllowThreads(__tstate);
15747 if (PyErr_Occurred()) SWIG_fail;
15748 }
15749 {
15750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15751 }
15752 {
15753 if (temp2)
15754 delete arg2;
15755 }
15756 return resultobj;
15757 fail:
15758 {
15759 if (temp2)
15760 delete arg2;
15761 }
15762 return NULL;
15763 }
15764
15765
15766 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15767 PyObject *resultobj = 0;
15768 PyObject *result = 0 ;
15769
15770 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15771 {
15772 PyThreadState* __tstate = wxPyBeginAllowThreads();
15773 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15774 wxPyEndAllowThreads(__tstate);
15775 if (PyErr_Occurred()) SWIG_fail;
15776 }
15777 resultobj = result;
15778 return resultobj;
15779 fail:
15780 return NULL;
15781 }
15782
15783
15784 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15785 PyObject *resultobj = 0;
15786 PyObject *result = 0 ;
15787
15788 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15789 {
15790 PyThreadState* __tstate = wxPyBeginAllowThreads();
15791 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15792 wxPyEndAllowThreads(__tstate);
15793 if (PyErr_Occurred()) SWIG_fail;
15794 }
15795 resultobj = result;
15796 return resultobj;
15797 fail:
15798 return NULL;
15799 }
15800
15801
15802 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15803 PyObject *resultobj = 0;
15804 wxString *arg1 = 0 ;
15805 bool result;
15806 bool temp1 = false ;
15807 PyObject * obj0 = 0 ;
15808 char * kwnames[] = {
15809 (char *) "str", NULL
15810 };
15811
15812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15813 {
15814 arg1 = wxString_in_helper(obj0);
15815 if (arg1 == NULL) SWIG_fail;
15816 temp1 = true;
15817 }
15818 {
15819 PyThreadState* __tstate = wxPyBeginAllowThreads();
15820 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15821 wxPyEndAllowThreads(__tstate);
15822 if (PyErr_Occurred()) SWIG_fail;
15823 }
15824 {
15825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15826 }
15827 {
15828 if (temp1)
15829 delete arg1;
15830 }
15831 return resultobj;
15832 fail:
15833 {
15834 if (temp1)
15835 delete arg1;
15836 }
15837 return NULL;
15838 }
15839
15840
15841 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15842 PyObject *obj;
15843 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15844 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15845 return SWIG_Py_Void();
15846 }
15847
15848 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15849 return SWIG_Python_InitShadowInstance(args);
15850 }
15851
15852 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15853 PyObject *resultobj = 0;
15854 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15855 int arg2 ;
15856 void *argp1 = 0 ;
15857 int res1 = 0 ;
15858 int val2 ;
15859 int ecode2 = 0 ;
15860 PyObject *swig_obj[2] ;
15861
15862 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15864 if (!SWIG_IsOK(res1)) {
15865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15866 }
15867 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15868 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15869 if (!SWIG_IsOK(ecode2)) {
15870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15871 }
15872 arg2 = static_cast< int >(val2);
15873 if (arg1) (arg1)->Language = arg2;
15874
15875 resultobj = SWIG_Py_Void();
15876 return resultobj;
15877 fail:
15878 return NULL;
15879 }
15880
15881
15882 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15883 PyObject *resultobj = 0;
15884 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15885 int result;
15886 void *argp1 = 0 ;
15887 int res1 = 0 ;
15888 PyObject *swig_obj[1] ;
15889
15890 if (!args) SWIG_fail;
15891 swig_obj[0] = args;
15892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15893 if (!SWIG_IsOK(res1)) {
15894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15895 }
15896 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15897 result = (int) ((arg1)->Language);
15898 resultobj = SWIG_From_int(static_cast< int >(result));
15899 return resultobj;
15900 fail:
15901 return NULL;
15902 }
15903
15904
15905 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15906 PyObject *resultobj = 0;
15907 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15908 wxString *arg2 = (wxString *) 0 ;
15909 void *argp1 = 0 ;
15910 int res1 = 0 ;
15911 bool temp2 = false ;
15912 PyObject *swig_obj[2] ;
15913
15914 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15916 if (!SWIG_IsOK(res1)) {
15917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15918 }
15919 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15920 {
15921 arg2 = wxString_in_helper(swig_obj[1]);
15922 if (arg2 == NULL) SWIG_fail;
15923 temp2 = true;
15924 }
15925 if (arg1) (arg1)->CanonicalName = *arg2;
15926
15927 resultobj = SWIG_Py_Void();
15928 {
15929 if (temp2)
15930 delete arg2;
15931 }
15932 return resultobj;
15933 fail:
15934 {
15935 if (temp2)
15936 delete arg2;
15937 }
15938 return NULL;
15939 }
15940
15941
15942 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15943 PyObject *resultobj = 0;
15944 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15945 wxString *result = 0 ;
15946 void *argp1 = 0 ;
15947 int res1 = 0 ;
15948 PyObject *swig_obj[1] ;
15949
15950 if (!args) SWIG_fail;
15951 swig_obj[0] = args;
15952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15953 if (!SWIG_IsOK(res1)) {
15954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15955 }
15956 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15957 result = (wxString *)& ((arg1)->CanonicalName);
15958 {
15959 #if wxUSE_UNICODE
15960 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15961 #else
15962 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15963 #endif
15964 }
15965 return resultobj;
15966 fail:
15967 return NULL;
15968 }
15969
15970
15971 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15972 PyObject *resultobj = 0;
15973 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15974 wxString *arg2 = (wxString *) 0 ;
15975 void *argp1 = 0 ;
15976 int res1 = 0 ;
15977 bool temp2 = false ;
15978 PyObject *swig_obj[2] ;
15979
15980 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15982 if (!SWIG_IsOK(res1)) {
15983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15984 }
15985 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15986 {
15987 arg2 = wxString_in_helper(swig_obj[1]);
15988 if (arg2 == NULL) SWIG_fail;
15989 temp2 = true;
15990 }
15991 if (arg1) (arg1)->Description = *arg2;
15992
15993 resultobj = SWIG_Py_Void();
15994 {
15995 if (temp2)
15996 delete arg2;
15997 }
15998 return resultobj;
15999 fail:
16000 {
16001 if (temp2)
16002 delete arg2;
16003 }
16004 return NULL;
16005 }
16006
16007
16008 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16009 PyObject *resultobj = 0;
16010 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16011 wxString *result = 0 ;
16012 void *argp1 = 0 ;
16013 int res1 = 0 ;
16014 PyObject *swig_obj[1] ;
16015
16016 if (!args) SWIG_fail;
16017 swig_obj[0] = args;
16018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16019 if (!SWIG_IsOK(res1)) {
16020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16021 }
16022 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16023 result = (wxString *)& ((arg1)->Description);
16024 {
16025 #if wxUSE_UNICODE
16026 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16027 #else
16028 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16029 #endif
16030 }
16031 return resultobj;
16032 fail:
16033 return NULL;
16034 }
16035
16036
16037 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16038 PyObject *obj;
16039 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16040 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
16041 return SWIG_Py_Void();
16042 }
16043
16044 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16045 PyObject *resultobj = 0;
16046 int arg1 = (int) -1 ;
16047 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16048 wxLocale *result = 0 ;
16049 int val1 ;
16050 int ecode1 = 0 ;
16051 int val2 ;
16052 int ecode2 = 0 ;
16053 PyObject * obj0 = 0 ;
16054 PyObject * obj1 = 0 ;
16055 char * kwnames[] = {
16056 (char *) "language",(char *) "flags", NULL
16057 };
16058
16059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16060 if (obj0) {
16061 ecode1 = SWIG_AsVal_int(obj0, &val1);
16062 if (!SWIG_IsOK(ecode1)) {
16063 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16064 }
16065 arg1 = static_cast< int >(val1);
16066 }
16067 if (obj1) {
16068 ecode2 = SWIG_AsVal_int(obj1, &val2);
16069 if (!SWIG_IsOK(ecode2)) {
16070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16071 }
16072 arg2 = static_cast< int >(val2);
16073 }
16074 {
16075 PyThreadState* __tstate = wxPyBeginAllowThreads();
16076 result = (wxLocale *)new_wxLocale(arg1,arg2);
16077 wxPyEndAllowThreads(__tstate);
16078 if (PyErr_Occurred()) SWIG_fail;
16079 }
16080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16081 return resultobj;
16082 fail:
16083 return NULL;
16084 }
16085
16086
16087 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16088 PyObject *resultobj = 0;
16089 wxLocale *arg1 = (wxLocale *) 0 ;
16090 void *argp1 = 0 ;
16091 int res1 = 0 ;
16092 PyObject *swig_obj[1] ;
16093
16094 if (!args) SWIG_fail;
16095 swig_obj[0] = args;
16096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16097 if (!SWIG_IsOK(res1)) {
16098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16099 }
16100 arg1 = reinterpret_cast< wxLocale * >(argp1);
16101 {
16102 PyThreadState* __tstate = wxPyBeginAllowThreads();
16103 delete arg1;
16104
16105 wxPyEndAllowThreads(__tstate);
16106 if (PyErr_Occurred()) SWIG_fail;
16107 }
16108 resultobj = SWIG_Py_Void();
16109 return resultobj;
16110 fail:
16111 return NULL;
16112 }
16113
16114
16115 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16116 PyObject *resultobj = 0;
16117 wxLocale *arg1 = (wxLocale *) 0 ;
16118 wxString *arg2 = 0 ;
16119 wxString const &arg3_defvalue = wxPyEmptyString ;
16120 wxString *arg3 = (wxString *) &arg3_defvalue ;
16121 wxString const &arg4_defvalue = wxPyEmptyString ;
16122 wxString *arg4 = (wxString *) &arg4_defvalue ;
16123 bool arg5 = (bool) true ;
16124 bool arg6 = (bool) false ;
16125 bool result;
16126 void *argp1 = 0 ;
16127 int res1 = 0 ;
16128 bool temp2 = false ;
16129 bool temp3 = false ;
16130 bool temp4 = false ;
16131 bool val5 ;
16132 int ecode5 = 0 ;
16133 bool val6 ;
16134 int ecode6 = 0 ;
16135 PyObject * obj0 = 0 ;
16136 PyObject * obj1 = 0 ;
16137 PyObject * obj2 = 0 ;
16138 PyObject * obj3 = 0 ;
16139 PyObject * obj4 = 0 ;
16140 PyObject * obj5 = 0 ;
16141 char * kwnames[] = {
16142 (char *) "self",(char *) "name",(char *) "shortName",(char *) "locale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
16143 };
16144
16145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16147 if (!SWIG_IsOK(res1)) {
16148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16149 }
16150 arg1 = reinterpret_cast< wxLocale * >(argp1);
16151 {
16152 arg2 = wxString_in_helper(obj1);
16153 if (arg2 == NULL) SWIG_fail;
16154 temp2 = true;
16155 }
16156 if (obj2) {
16157 {
16158 arg3 = wxString_in_helper(obj2);
16159 if (arg3 == NULL) SWIG_fail;
16160 temp3 = true;
16161 }
16162 }
16163 if (obj3) {
16164 {
16165 arg4 = wxString_in_helper(obj3);
16166 if (arg4 == NULL) SWIG_fail;
16167 temp4 = true;
16168 }
16169 }
16170 if (obj4) {
16171 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16172 if (!SWIG_IsOK(ecode5)) {
16173 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16174 }
16175 arg5 = static_cast< bool >(val5);
16176 }
16177 if (obj5) {
16178 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16179 if (!SWIG_IsOK(ecode6)) {
16180 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16181 }
16182 arg6 = static_cast< bool >(val6);
16183 }
16184 {
16185 PyThreadState* __tstate = wxPyBeginAllowThreads();
16186 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16187 wxPyEndAllowThreads(__tstate);
16188 if (PyErr_Occurred()) SWIG_fail;
16189 }
16190 {
16191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16192 }
16193 {
16194 if (temp2)
16195 delete arg2;
16196 }
16197 {
16198 if (temp3)
16199 delete arg3;
16200 }
16201 {
16202 if (temp4)
16203 delete arg4;
16204 }
16205 return resultobj;
16206 fail:
16207 {
16208 if (temp2)
16209 delete arg2;
16210 }
16211 {
16212 if (temp3)
16213 delete arg3;
16214 }
16215 {
16216 if (temp4)
16217 delete arg4;
16218 }
16219 return NULL;
16220 }
16221
16222
16223 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16224 PyObject *resultobj = 0;
16225 wxLocale *arg1 = (wxLocale *) 0 ;
16226 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16227 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16228 bool result;
16229 void *argp1 = 0 ;
16230 int res1 = 0 ;
16231 int val2 ;
16232 int ecode2 = 0 ;
16233 int val3 ;
16234 int ecode3 = 0 ;
16235 PyObject * obj0 = 0 ;
16236 PyObject * obj1 = 0 ;
16237 PyObject * obj2 = 0 ;
16238 char * kwnames[] = {
16239 (char *) "self",(char *) "language",(char *) "flags", NULL
16240 };
16241
16242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16244 if (!SWIG_IsOK(res1)) {
16245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16246 }
16247 arg1 = reinterpret_cast< wxLocale * >(argp1);
16248 if (obj1) {
16249 ecode2 = SWIG_AsVal_int(obj1, &val2);
16250 if (!SWIG_IsOK(ecode2)) {
16251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16252 }
16253 arg2 = static_cast< int >(val2);
16254 }
16255 if (obj2) {
16256 ecode3 = SWIG_AsVal_int(obj2, &val3);
16257 if (!SWIG_IsOK(ecode3)) {
16258 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16259 }
16260 arg3 = static_cast< int >(val3);
16261 }
16262 {
16263 PyThreadState* __tstate = wxPyBeginAllowThreads();
16264 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16265 wxPyEndAllowThreads(__tstate);
16266 if (PyErr_Occurred()) SWIG_fail;
16267 }
16268 {
16269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16270 }
16271 return resultobj;
16272 fail:
16273 return NULL;
16274 }
16275
16276
16277 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16278 PyObject *resultobj = 0;
16279 int result;
16280
16281 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16282 {
16283 PyThreadState* __tstate = wxPyBeginAllowThreads();
16284 result = (int)wxLocale::GetSystemLanguage();
16285 wxPyEndAllowThreads(__tstate);
16286 if (PyErr_Occurred()) SWIG_fail;
16287 }
16288 resultobj = SWIG_From_int(static_cast< int >(result));
16289 return resultobj;
16290 fail:
16291 return NULL;
16292 }
16293
16294
16295 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16296 PyObject *resultobj = 0;
16297 wxFontEncoding result;
16298
16299 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16300 {
16301 PyThreadState* __tstate = wxPyBeginAllowThreads();
16302 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16303 wxPyEndAllowThreads(__tstate);
16304 if (PyErr_Occurred()) SWIG_fail;
16305 }
16306 resultobj = SWIG_From_int(static_cast< int >(result));
16307 return resultobj;
16308 fail:
16309 return NULL;
16310 }
16311
16312
16313 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16314 PyObject *resultobj = 0;
16315 wxString result;
16316
16317 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16318 {
16319 PyThreadState* __tstate = wxPyBeginAllowThreads();
16320 result = wxLocale::GetSystemEncodingName();
16321 wxPyEndAllowThreads(__tstate);
16322 if (PyErr_Occurred()) SWIG_fail;
16323 }
16324 {
16325 #if wxUSE_UNICODE
16326 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16327 #else
16328 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16329 #endif
16330 }
16331 return resultobj;
16332 fail:
16333 return NULL;
16334 }
16335
16336
16337 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16338 PyObject *resultobj = 0;
16339 wxLocale *arg1 = (wxLocale *) 0 ;
16340 bool result;
16341 void *argp1 = 0 ;
16342 int res1 = 0 ;
16343 PyObject *swig_obj[1] ;
16344
16345 if (!args) SWIG_fail;
16346 swig_obj[0] = args;
16347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16348 if (!SWIG_IsOK(res1)) {
16349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16350 }
16351 arg1 = reinterpret_cast< wxLocale * >(argp1);
16352 {
16353 PyThreadState* __tstate = wxPyBeginAllowThreads();
16354 result = (bool)((wxLocale const *)arg1)->IsOk();
16355 wxPyEndAllowThreads(__tstate);
16356 if (PyErr_Occurred()) SWIG_fail;
16357 }
16358 {
16359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16360 }
16361 return resultobj;
16362 fail:
16363 return NULL;
16364 }
16365
16366
16367 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16368 PyObject *resultobj = 0;
16369 wxLocale *arg1 = (wxLocale *) 0 ;
16370 wxString result;
16371 void *argp1 = 0 ;
16372 int res1 = 0 ;
16373 PyObject *swig_obj[1] ;
16374
16375 if (!args) SWIG_fail;
16376 swig_obj[0] = args;
16377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16378 if (!SWIG_IsOK(res1)) {
16379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16380 }
16381 arg1 = reinterpret_cast< wxLocale * >(argp1);
16382 {
16383 PyThreadState* __tstate = wxPyBeginAllowThreads();
16384 result = ((wxLocale const *)arg1)->GetLocale();
16385 wxPyEndAllowThreads(__tstate);
16386 if (PyErr_Occurred()) SWIG_fail;
16387 }
16388 {
16389 #if wxUSE_UNICODE
16390 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16391 #else
16392 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16393 #endif
16394 }
16395 return resultobj;
16396 fail:
16397 return NULL;
16398 }
16399
16400
16401 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16402 PyObject *resultobj = 0;
16403 wxLocale *arg1 = (wxLocale *) 0 ;
16404 int result;
16405 void *argp1 = 0 ;
16406 int res1 = 0 ;
16407 PyObject *swig_obj[1] ;
16408
16409 if (!args) SWIG_fail;
16410 swig_obj[0] = args;
16411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16412 if (!SWIG_IsOK(res1)) {
16413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16414 }
16415 arg1 = reinterpret_cast< wxLocale * >(argp1);
16416 {
16417 PyThreadState* __tstate = wxPyBeginAllowThreads();
16418 result = (int)((wxLocale const *)arg1)->GetLanguage();
16419 wxPyEndAllowThreads(__tstate);
16420 if (PyErr_Occurred()) SWIG_fail;
16421 }
16422 resultobj = SWIG_From_int(static_cast< int >(result));
16423 return resultobj;
16424 fail:
16425 return NULL;
16426 }
16427
16428
16429 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16430 PyObject *resultobj = 0;
16431 wxLocale *arg1 = (wxLocale *) 0 ;
16432 wxString result;
16433 void *argp1 = 0 ;
16434 int res1 = 0 ;
16435 PyObject *swig_obj[1] ;
16436
16437 if (!args) SWIG_fail;
16438 swig_obj[0] = args;
16439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16440 if (!SWIG_IsOK(res1)) {
16441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16442 }
16443 arg1 = reinterpret_cast< wxLocale * >(argp1);
16444 {
16445 PyThreadState* __tstate = wxPyBeginAllowThreads();
16446 result = ((wxLocale const *)arg1)->GetSysName();
16447 wxPyEndAllowThreads(__tstate);
16448 if (PyErr_Occurred()) SWIG_fail;
16449 }
16450 {
16451 #if wxUSE_UNICODE
16452 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16453 #else
16454 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16455 #endif
16456 }
16457 return resultobj;
16458 fail:
16459 return NULL;
16460 }
16461
16462
16463 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16464 PyObject *resultobj = 0;
16465 wxLocale *arg1 = (wxLocale *) 0 ;
16466 wxString result;
16467 void *argp1 = 0 ;
16468 int res1 = 0 ;
16469 PyObject *swig_obj[1] ;
16470
16471 if (!args) SWIG_fail;
16472 swig_obj[0] = args;
16473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16474 if (!SWIG_IsOK(res1)) {
16475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16476 }
16477 arg1 = reinterpret_cast< wxLocale * >(argp1);
16478 {
16479 PyThreadState* __tstate = wxPyBeginAllowThreads();
16480 result = ((wxLocale const *)arg1)->GetCanonicalName();
16481 wxPyEndAllowThreads(__tstate);
16482 if (PyErr_Occurred()) SWIG_fail;
16483 }
16484 {
16485 #if wxUSE_UNICODE
16486 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16487 #else
16488 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16489 #endif
16490 }
16491 return resultobj;
16492 fail:
16493 return NULL;
16494 }
16495
16496
16497 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16498 PyObject *resultobj = 0;
16499 wxString *arg1 = 0 ;
16500 bool temp1 = false ;
16501 PyObject * obj0 = 0 ;
16502 char * kwnames[] = {
16503 (char *) "prefix", NULL
16504 };
16505
16506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16507 {
16508 arg1 = wxString_in_helper(obj0);
16509 if (arg1 == NULL) SWIG_fail;
16510 temp1 = true;
16511 }
16512 {
16513 PyThreadState* __tstate = wxPyBeginAllowThreads();
16514 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16515 wxPyEndAllowThreads(__tstate);
16516 if (PyErr_Occurred()) SWIG_fail;
16517 }
16518 resultobj = SWIG_Py_Void();
16519 {
16520 if (temp1)
16521 delete arg1;
16522 }
16523 return resultobj;
16524 fail:
16525 {
16526 if (temp1)
16527 delete arg1;
16528 }
16529 return NULL;
16530 }
16531
16532
16533 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16534 PyObject *resultobj = 0;
16535 wxLocale *arg1 = (wxLocale *) 0 ;
16536 wxString *arg2 = 0 ;
16537 bool result;
16538 void *argp1 = 0 ;
16539 int res1 = 0 ;
16540 bool temp2 = false ;
16541 PyObject * obj0 = 0 ;
16542 PyObject * obj1 = 0 ;
16543 char * kwnames[] = {
16544 (char *) "self",(char *) "domain", NULL
16545 };
16546
16547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16549 if (!SWIG_IsOK(res1)) {
16550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16551 }
16552 arg1 = reinterpret_cast< wxLocale * >(argp1);
16553 {
16554 arg2 = wxString_in_helper(obj1);
16555 if (arg2 == NULL) SWIG_fail;
16556 temp2 = true;
16557 }
16558 {
16559 PyThreadState* __tstate = wxPyBeginAllowThreads();
16560 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16561 wxPyEndAllowThreads(__tstate);
16562 if (PyErr_Occurred()) SWIG_fail;
16563 }
16564 {
16565 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16566 }
16567 {
16568 if (temp2)
16569 delete arg2;
16570 }
16571 return resultobj;
16572 fail:
16573 {
16574 if (temp2)
16575 delete arg2;
16576 }
16577 return NULL;
16578 }
16579
16580
16581 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16582 PyObject *resultobj = 0;
16583 int arg1 ;
16584 bool result;
16585 int val1 ;
16586 int ecode1 = 0 ;
16587 PyObject * obj0 = 0 ;
16588 char * kwnames[] = {
16589 (char *) "lang", NULL
16590 };
16591
16592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16593 ecode1 = SWIG_AsVal_int(obj0, &val1);
16594 if (!SWIG_IsOK(ecode1)) {
16595 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16596 }
16597 arg1 = static_cast< int >(val1);
16598 {
16599 PyThreadState* __tstate = wxPyBeginAllowThreads();
16600 result = (bool)wxLocale::IsAvailable(arg1);
16601 wxPyEndAllowThreads(__tstate);
16602 if (PyErr_Occurred()) SWIG_fail;
16603 }
16604 {
16605 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16606 }
16607 return resultobj;
16608 fail:
16609 return NULL;
16610 }
16611
16612
16613 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16614 PyObject *resultobj = 0;
16615 wxLocale *arg1 = (wxLocale *) 0 ;
16616 wxString *arg2 = 0 ;
16617 bool result;
16618 void *argp1 = 0 ;
16619 int res1 = 0 ;
16620 bool temp2 = false ;
16621 PyObject * obj0 = 0 ;
16622 PyObject * obj1 = 0 ;
16623 char * kwnames[] = {
16624 (char *) "self",(char *) "domain", NULL
16625 };
16626
16627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16629 if (!SWIG_IsOK(res1)) {
16630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16631 }
16632 arg1 = reinterpret_cast< wxLocale * >(argp1);
16633 {
16634 arg2 = wxString_in_helper(obj1);
16635 if (arg2 == NULL) SWIG_fail;
16636 temp2 = true;
16637 }
16638 {
16639 PyThreadState* __tstate = wxPyBeginAllowThreads();
16640 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16641 wxPyEndAllowThreads(__tstate);
16642 if (PyErr_Occurred()) SWIG_fail;
16643 }
16644 {
16645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16646 }
16647 {
16648 if (temp2)
16649 delete arg2;
16650 }
16651 return resultobj;
16652 fail:
16653 {
16654 if (temp2)
16655 delete arg2;
16656 }
16657 return NULL;
16658 }
16659
16660
16661 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16662 PyObject *resultobj = 0;
16663 int arg1 ;
16664 wxLanguageInfo *result = 0 ;
16665 int val1 ;
16666 int ecode1 = 0 ;
16667 PyObject * obj0 = 0 ;
16668 char * kwnames[] = {
16669 (char *) "lang", NULL
16670 };
16671
16672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16673 ecode1 = SWIG_AsVal_int(obj0, &val1);
16674 if (!SWIG_IsOK(ecode1)) {
16675 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16676 }
16677 arg1 = static_cast< int >(val1);
16678 {
16679 PyThreadState* __tstate = wxPyBeginAllowThreads();
16680 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16681 wxPyEndAllowThreads(__tstate);
16682 if (PyErr_Occurred()) SWIG_fail;
16683 }
16684 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16685 return resultobj;
16686 fail:
16687 return NULL;
16688 }
16689
16690
16691 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16692 PyObject *resultobj = 0;
16693 int arg1 ;
16694 wxString result;
16695 int val1 ;
16696 int ecode1 = 0 ;
16697 PyObject * obj0 = 0 ;
16698 char * kwnames[] = {
16699 (char *) "lang", NULL
16700 };
16701
16702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16703 ecode1 = SWIG_AsVal_int(obj0, &val1);
16704 if (!SWIG_IsOK(ecode1)) {
16705 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16706 }
16707 arg1 = static_cast< int >(val1);
16708 {
16709 PyThreadState* __tstate = wxPyBeginAllowThreads();
16710 result = wxLocale::GetLanguageName(arg1);
16711 wxPyEndAllowThreads(__tstate);
16712 if (PyErr_Occurred()) SWIG_fail;
16713 }
16714 {
16715 #if wxUSE_UNICODE
16716 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16717 #else
16718 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16719 #endif
16720 }
16721 return resultobj;
16722 fail:
16723 return NULL;
16724 }
16725
16726
16727 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16728 PyObject *resultobj = 0;
16729 wxString *arg1 = 0 ;
16730 wxLanguageInfo *result = 0 ;
16731 bool temp1 = false ;
16732 PyObject * obj0 = 0 ;
16733 char * kwnames[] = {
16734 (char *) "locale", NULL
16735 };
16736
16737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16738 {
16739 arg1 = wxString_in_helper(obj0);
16740 if (arg1 == NULL) SWIG_fail;
16741 temp1 = true;
16742 }
16743 {
16744 PyThreadState* __tstate = wxPyBeginAllowThreads();
16745 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16746 wxPyEndAllowThreads(__tstate);
16747 if (PyErr_Occurred()) SWIG_fail;
16748 }
16749 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16750 {
16751 if (temp1)
16752 delete arg1;
16753 }
16754 return resultobj;
16755 fail:
16756 {
16757 if (temp1)
16758 delete arg1;
16759 }
16760 return NULL;
16761 }
16762
16763
16764 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16765 PyObject *resultobj = 0;
16766 wxLanguageInfo *arg1 = 0 ;
16767 void *argp1 = 0 ;
16768 int res1 = 0 ;
16769 PyObject * obj0 = 0 ;
16770 char * kwnames[] = {
16771 (char *) "info", NULL
16772 };
16773
16774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16775 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16776 if (!SWIG_IsOK(res1)) {
16777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16778 }
16779 if (!argp1) {
16780 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16781 }
16782 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16783 {
16784 PyThreadState* __tstate = wxPyBeginAllowThreads();
16785 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16786 wxPyEndAllowThreads(__tstate);
16787 if (PyErr_Occurred()) SWIG_fail;
16788 }
16789 resultobj = SWIG_Py_Void();
16790 return resultobj;
16791 fail:
16792 return NULL;
16793 }
16794
16795
16796 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16797 PyObject *resultobj = 0;
16798 wxLocale *arg1 = (wxLocale *) 0 ;
16799 wxString *arg2 = 0 ;
16800 wxString const &arg3_defvalue = wxPyEmptyString ;
16801 wxString *arg3 = (wxString *) &arg3_defvalue ;
16802 wxString result;
16803 void *argp1 = 0 ;
16804 int res1 = 0 ;
16805 bool temp2 = false ;
16806 bool temp3 = false ;
16807 PyObject * obj0 = 0 ;
16808 PyObject * obj1 = 0 ;
16809 PyObject * obj2 = 0 ;
16810 char * kwnames[] = {
16811 (char *) "self",(char *) "origString",(char *) "domain", NULL
16812 };
16813
16814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16816 if (!SWIG_IsOK(res1)) {
16817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16818 }
16819 arg1 = reinterpret_cast< wxLocale * >(argp1);
16820 {
16821 arg2 = wxString_in_helper(obj1);
16822 if (arg2 == NULL) SWIG_fail;
16823 temp2 = true;
16824 }
16825 if (obj2) {
16826 {
16827 arg3 = wxString_in_helper(obj2);
16828 if (arg3 == NULL) SWIG_fail;
16829 temp3 = true;
16830 }
16831 }
16832 {
16833 PyThreadState* __tstate = wxPyBeginAllowThreads();
16834 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16835 wxPyEndAllowThreads(__tstate);
16836 if (PyErr_Occurred()) SWIG_fail;
16837 }
16838 {
16839 #if wxUSE_UNICODE
16840 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16841 #else
16842 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16843 #endif
16844 }
16845 {
16846 if (temp2)
16847 delete arg2;
16848 }
16849 {
16850 if (temp3)
16851 delete arg3;
16852 }
16853 return resultobj;
16854 fail:
16855 {
16856 if (temp2)
16857 delete arg2;
16858 }
16859 {
16860 if (temp3)
16861 delete arg3;
16862 }
16863 return NULL;
16864 }
16865
16866
16867 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16868 PyObject *resultobj = 0;
16869 wxLocale *arg1 = (wxLocale *) 0 ;
16870 wxString *result = 0 ;
16871 void *argp1 = 0 ;
16872 int res1 = 0 ;
16873 PyObject *swig_obj[1] ;
16874
16875 if (!args) SWIG_fail;
16876 swig_obj[0] = args;
16877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16878 if (!SWIG_IsOK(res1)) {
16879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16880 }
16881 arg1 = reinterpret_cast< wxLocale * >(argp1);
16882 {
16883 PyThreadState* __tstate = wxPyBeginAllowThreads();
16884 {
16885 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16886 result = (wxString *) &_result_ref;
16887 }
16888 wxPyEndAllowThreads(__tstate);
16889 if (PyErr_Occurred()) SWIG_fail;
16890 }
16891 {
16892 #if wxUSE_UNICODE
16893 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16894 #else
16895 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16896 #endif
16897 }
16898 return resultobj;
16899 fail:
16900 return NULL;
16901 }
16902
16903
16904 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16905 PyObject *obj;
16906 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16907 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16908 return SWIG_Py_Void();
16909 }
16910
16911 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16912 return SWIG_Python_InitShadowInstance(args);
16913 }
16914
16915 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16916 PyObject *resultobj = 0;
16917 int arg1 = (int) -1 ;
16918 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16919 wxPyLocale *result = 0 ;
16920 int val1 ;
16921 int ecode1 = 0 ;
16922 int val2 ;
16923 int ecode2 = 0 ;
16924 PyObject * obj0 = 0 ;
16925 PyObject * obj1 = 0 ;
16926 char * kwnames[] = {
16927 (char *) "language",(char *) "flags", NULL
16928 };
16929
16930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16931 if (obj0) {
16932 ecode1 = SWIG_AsVal_int(obj0, &val1);
16933 if (!SWIG_IsOK(ecode1)) {
16934 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16935 }
16936 arg1 = static_cast< int >(val1);
16937 }
16938 if (obj1) {
16939 ecode2 = SWIG_AsVal_int(obj1, &val2);
16940 if (!SWIG_IsOK(ecode2)) {
16941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16942 }
16943 arg2 = static_cast< int >(val2);
16944 }
16945 {
16946 PyThreadState* __tstate = wxPyBeginAllowThreads();
16947 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16948 wxPyEndAllowThreads(__tstate);
16949 if (PyErr_Occurred()) SWIG_fail;
16950 }
16951 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16952 return resultobj;
16953 fail:
16954 return NULL;
16955 }
16956
16957
16958 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16959 PyObject *resultobj = 0;
16960 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16961 void *argp1 = 0 ;
16962 int res1 = 0 ;
16963 PyObject *swig_obj[1] ;
16964
16965 if (!args) SWIG_fail;
16966 swig_obj[0] = args;
16967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16968 if (!SWIG_IsOK(res1)) {
16969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16970 }
16971 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16972 {
16973 PyThreadState* __tstate = wxPyBeginAllowThreads();
16974 delete arg1;
16975
16976 wxPyEndAllowThreads(__tstate);
16977 if (PyErr_Occurred()) SWIG_fail;
16978 }
16979 resultobj = SWIG_Py_Void();
16980 return resultobj;
16981 fail:
16982 return NULL;
16983 }
16984
16985
16986 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16987 PyObject *resultobj = 0;
16988 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16989 PyObject *arg2 = (PyObject *) 0 ;
16990 PyObject *arg3 = (PyObject *) 0 ;
16991 void *argp1 = 0 ;
16992 int res1 = 0 ;
16993 PyObject * obj0 = 0 ;
16994 PyObject * obj1 = 0 ;
16995 PyObject * obj2 = 0 ;
16996 char * kwnames[] = {
16997 (char *) "self",(char *) "self",(char *) "_class", NULL
16998 };
16999
17000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17002 if (!SWIG_IsOK(res1)) {
17003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17004 }
17005 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17006 arg2 = obj1;
17007 arg3 = obj2;
17008 {
17009 PyThreadState* __tstate = wxPyBeginAllowThreads();
17010 (arg1)->_setCallbackInfo(arg2,arg3);
17011 wxPyEndAllowThreads(__tstate);
17012 if (PyErr_Occurred()) SWIG_fail;
17013 }
17014 resultobj = SWIG_Py_Void();
17015 return resultobj;
17016 fail:
17017 return NULL;
17018 }
17019
17020
17021 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17022 PyObject *resultobj = 0;
17023 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17024 wxString *arg2 = 0 ;
17025 wxString const &arg3_defvalue = wxPyEmptyString ;
17026 wxString *arg3 = (wxString *) &arg3_defvalue ;
17027 wxString *result = 0 ;
17028 void *argp1 = 0 ;
17029 int res1 = 0 ;
17030 bool temp2 = false ;
17031 bool temp3 = false ;
17032 PyObject * obj0 = 0 ;
17033 PyObject * obj1 = 0 ;
17034 PyObject * obj2 = 0 ;
17035 char * kwnames[] = {
17036 (char *) "self",(char *) "origString",(char *) "domain", NULL
17037 };
17038
17039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17041 if (!SWIG_IsOK(res1)) {
17042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17043 }
17044 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17045 {
17046 arg2 = wxString_in_helper(obj1);
17047 if (arg2 == NULL) SWIG_fail;
17048 temp2 = true;
17049 }
17050 if (obj2) {
17051 {
17052 arg3 = wxString_in_helper(obj2);
17053 if (arg3 == NULL) SWIG_fail;
17054 temp3 = true;
17055 }
17056 }
17057 {
17058 PyThreadState* __tstate = wxPyBeginAllowThreads();
17059 {
17060 wxString const &_result_ref = ((wxPyLocale const *)arg1)->GetSingularString((wxString const &)*arg2,(wxString const &)*arg3);
17061 result = (wxString *) &_result_ref;
17062 }
17063 wxPyEndAllowThreads(__tstate);
17064 if (PyErr_Occurred()) SWIG_fail;
17065 }
17066 {
17067 #if wxUSE_UNICODE
17068 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17069 #else
17070 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17071 #endif
17072 }
17073 {
17074 if (temp2)
17075 delete arg2;
17076 }
17077 {
17078 if (temp3)
17079 delete arg3;
17080 }
17081 return resultobj;
17082 fail:
17083 {
17084 if (temp2)
17085 delete arg2;
17086 }
17087 {
17088 if (temp3)
17089 delete arg3;
17090 }
17091 return NULL;
17092 }
17093
17094
17095 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17096 PyObject *resultobj = 0;
17097 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17098 wxString *arg2 = 0 ;
17099 wxString *arg3 = 0 ;
17100 size_t arg4 ;
17101 wxString const &arg5_defvalue = wxPyEmptyString ;
17102 wxString *arg5 = (wxString *) &arg5_defvalue ;
17103 wxString *result = 0 ;
17104 void *argp1 = 0 ;
17105 int res1 = 0 ;
17106 bool temp2 = false ;
17107 bool temp3 = false ;
17108 size_t val4 ;
17109 int ecode4 = 0 ;
17110 bool temp5 = false ;
17111 PyObject * obj0 = 0 ;
17112 PyObject * obj1 = 0 ;
17113 PyObject * obj2 = 0 ;
17114 PyObject * obj3 = 0 ;
17115 PyObject * obj4 = 0 ;
17116 char * kwnames[] = {
17117 (char *) "self",(char *) "origString",(char *) "origString2",(char *) "n",(char *) "domain", NULL
17118 };
17119
17120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17122 if (!SWIG_IsOK(res1)) {
17123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17124 }
17125 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17126 {
17127 arg2 = wxString_in_helper(obj1);
17128 if (arg2 == NULL) SWIG_fail;
17129 temp2 = true;
17130 }
17131 {
17132 arg3 = wxString_in_helper(obj2);
17133 if (arg3 == NULL) SWIG_fail;
17134 temp3 = true;
17135 }
17136 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17137 if (!SWIG_IsOK(ecode4)) {
17138 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17139 }
17140 arg4 = static_cast< size_t >(val4);
17141 if (obj4) {
17142 {
17143 arg5 = wxString_in_helper(obj4);
17144 if (arg5 == NULL) SWIG_fail;
17145 temp5 = true;
17146 }
17147 }
17148 {
17149 PyThreadState* __tstate = wxPyBeginAllowThreads();
17150 {
17151 wxString const &_result_ref = ((wxPyLocale const *)arg1)->GetPluralString((wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
17152 result = (wxString *) &_result_ref;
17153 }
17154 wxPyEndAllowThreads(__tstate);
17155 if (PyErr_Occurred()) SWIG_fail;
17156 }
17157 {
17158 #if wxUSE_UNICODE
17159 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17160 #else
17161 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17162 #endif
17163 }
17164 {
17165 if (temp2)
17166 delete arg2;
17167 }
17168 {
17169 if (temp3)
17170 delete arg3;
17171 }
17172 {
17173 if (temp5)
17174 delete arg5;
17175 }
17176 return resultobj;
17177 fail:
17178 {
17179 if (temp2)
17180 delete arg2;
17181 }
17182 {
17183 if (temp3)
17184 delete arg3;
17185 }
17186 {
17187 if (temp5)
17188 delete arg5;
17189 }
17190 return NULL;
17191 }
17192
17193
17194 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17195 PyObject *obj;
17196 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17197 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
17198 return SWIG_Py_Void();
17199 }
17200
17201 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17202 return SWIG_Python_InitShadowInstance(args);
17203 }
17204
17205 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17206 PyObject *resultobj = 0;
17207 wxLocale *result = 0 ;
17208
17209 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17210 {
17211 PyThreadState* __tstate = wxPyBeginAllowThreads();
17212 result = (wxLocale *)wxGetLocale();
17213 wxPyEndAllowThreads(__tstate);
17214 if (PyErr_Occurred()) SWIG_fail;
17215 }
17216 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17217 return resultobj;
17218 fail:
17219 return NULL;
17220 }
17221
17222
17223 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17224 PyObject *resultobj = 0;
17225 wxString *arg1 = 0 ;
17226 wxString result;
17227 bool temp1 = false ;
17228
17229 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17230 {
17231 arg1 = wxString_in_helper(swig_obj[0]);
17232 if (arg1 == NULL) SWIG_fail;
17233 temp1 = true;
17234 }
17235 {
17236 PyThreadState* __tstate = wxPyBeginAllowThreads();
17237 result = wxGetTranslation((wxString const &)*arg1);
17238 wxPyEndAllowThreads(__tstate);
17239 if (PyErr_Occurred()) SWIG_fail;
17240 }
17241 {
17242 #if wxUSE_UNICODE
17243 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17244 #else
17245 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17246 #endif
17247 }
17248 {
17249 if (temp1)
17250 delete arg1;
17251 }
17252 return resultobj;
17253 fail:
17254 {
17255 if (temp1)
17256 delete arg1;
17257 }
17258 return NULL;
17259 }
17260
17261
17262 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17263 PyObject *resultobj = 0;
17264 wxString *arg1 = 0 ;
17265 wxString *arg2 = 0 ;
17266 wxString result;
17267 bool temp1 = false ;
17268 bool temp2 = false ;
17269
17270 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17271 {
17272 arg1 = wxString_in_helper(swig_obj[0]);
17273 if (arg1 == NULL) SWIG_fail;
17274 temp1 = true;
17275 }
17276 {
17277 arg2 = wxString_in_helper(swig_obj[1]);
17278 if (arg2 == NULL) SWIG_fail;
17279 temp2 = true;
17280 }
17281 {
17282 PyThreadState* __tstate = wxPyBeginAllowThreads();
17283 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17284 wxPyEndAllowThreads(__tstate);
17285 if (PyErr_Occurred()) SWIG_fail;
17286 }
17287 {
17288 #if wxUSE_UNICODE
17289 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17290 #else
17291 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17292 #endif
17293 }
17294 {
17295 if (temp1)
17296 delete arg1;
17297 }
17298 {
17299 if (temp2)
17300 delete arg2;
17301 }
17302 return resultobj;
17303 fail:
17304 {
17305 if (temp1)
17306 delete arg1;
17307 }
17308 {
17309 if (temp2)
17310 delete arg2;
17311 }
17312 return NULL;
17313 }
17314
17315
17316 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17317 PyObject *resultobj = 0;
17318 wxString *arg1 = 0 ;
17319 wxString *arg2 = 0 ;
17320 size_t arg3 ;
17321 wxString result;
17322 bool temp1 = false ;
17323 bool temp2 = false ;
17324 size_t val3 ;
17325 int ecode3 = 0 ;
17326
17327 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17328 {
17329 arg1 = wxString_in_helper(swig_obj[0]);
17330 if (arg1 == NULL) SWIG_fail;
17331 temp1 = true;
17332 }
17333 {
17334 arg2 = wxString_in_helper(swig_obj[1]);
17335 if (arg2 == NULL) SWIG_fail;
17336 temp2 = true;
17337 }
17338 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17339 if (!SWIG_IsOK(ecode3)) {
17340 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17341 }
17342 arg3 = static_cast< size_t >(val3);
17343 {
17344 PyThreadState* __tstate = wxPyBeginAllowThreads();
17345 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17346 wxPyEndAllowThreads(__tstate);
17347 if (PyErr_Occurred()) SWIG_fail;
17348 }
17349 {
17350 #if wxUSE_UNICODE
17351 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17352 #else
17353 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17354 #endif
17355 }
17356 {
17357 if (temp1)
17358 delete arg1;
17359 }
17360 {
17361 if (temp2)
17362 delete arg2;
17363 }
17364 return resultobj;
17365 fail:
17366 {
17367 if (temp1)
17368 delete arg1;
17369 }
17370 {
17371 if (temp2)
17372 delete arg2;
17373 }
17374 return NULL;
17375 }
17376
17377
17378 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17379 PyObject *resultobj = 0;
17380 wxString *arg1 = 0 ;
17381 wxString *arg2 = 0 ;
17382 size_t arg3 ;
17383 wxString *arg4 = 0 ;
17384 wxString result;
17385 bool temp1 = false ;
17386 bool temp2 = false ;
17387 size_t val3 ;
17388 int ecode3 = 0 ;
17389 bool temp4 = false ;
17390
17391 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17392 {
17393 arg1 = wxString_in_helper(swig_obj[0]);
17394 if (arg1 == NULL) SWIG_fail;
17395 temp1 = true;
17396 }
17397 {
17398 arg2 = wxString_in_helper(swig_obj[1]);
17399 if (arg2 == NULL) SWIG_fail;
17400 temp2 = true;
17401 }
17402 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17403 if (!SWIG_IsOK(ecode3)) {
17404 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17405 }
17406 arg3 = static_cast< size_t >(val3);
17407 {
17408 arg4 = wxString_in_helper(swig_obj[3]);
17409 if (arg4 == NULL) SWIG_fail;
17410 temp4 = true;
17411 }
17412 {
17413 PyThreadState* __tstate = wxPyBeginAllowThreads();
17414 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17415 wxPyEndAllowThreads(__tstate);
17416 if (PyErr_Occurred()) SWIG_fail;
17417 }
17418 {
17419 #if wxUSE_UNICODE
17420 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17421 #else
17422 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17423 #endif
17424 }
17425 {
17426 if (temp1)
17427 delete arg1;
17428 }
17429 {
17430 if (temp2)
17431 delete arg2;
17432 }
17433 {
17434 if (temp4)
17435 delete arg4;
17436 }
17437 return resultobj;
17438 fail:
17439 {
17440 if (temp1)
17441 delete arg1;
17442 }
17443 {
17444 if (temp2)
17445 delete arg2;
17446 }
17447 {
17448 if (temp4)
17449 delete arg4;
17450 }
17451 return NULL;
17452 }
17453
17454
17455 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17456 int argc;
17457 PyObject *argv[5];
17458
17459 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
17460 --argc;
17461 if (argc == 1) {
17462 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17463 }
17464 if (argc == 2) {
17465 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17466 }
17467 if (argc == 3) {
17468 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17469 }
17470 if (argc == 4) {
17471 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17472 }
17473
17474 fail:
17475 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17476 return NULL;
17477 }
17478
17479
17480 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17481 PyObject *resultobj = 0;
17482 wxEncodingConverter *result = 0 ;
17483
17484 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17485 {
17486 PyThreadState* __tstate = wxPyBeginAllowThreads();
17487 result = (wxEncodingConverter *)new wxEncodingConverter();
17488 wxPyEndAllowThreads(__tstate);
17489 if (PyErr_Occurred()) SWIG_fail;
17490 }
17491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17492 return resultobj;
17493 fail:
17494 return NULL;
17495 }
17496
17497
17498 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17499 PyObject *resultobj = 0;
17500 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17501 void *argp1 = 0 ;
17502 int res1 = 0 ;
17503 PyObject *swig_obj[1] ;
17504
17505 if (!args) SWIG_fail;
17506 swig_obj[0] = args;
17507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17508 if (!SWIG_IsOK(res1)) {
17509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17510 }
17511 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17512 {
17513 PyThreadState* __tstate = wxPyBeginAllowThreads();
17514 delete arg1;
17515
17516 wxPyEndAllowThreads(__tstate);
17517 if (PyErr_Occurred()) SWIG_fail;
17518 }
17519 resultobj = SWIG_Py_Void();
17520 return resultobj;
17521 fail:
17522 return NULL;
17523 }
17524
17525
17526 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17527 PyObject *resultobj = 0;
17528 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17529 wxFontEncoding arg2 ;
17530 wxFontEncoding arg3 ;
17531 int arg4 = (int) wxCONVERT_STRICT ;
17532 bool result;
17533 void *argp1 = 0 ;
17534 int res1 = 0 ;
17535 int val2 ;
17536 int ecode2 = 0 ;
17537 int val3 ;
17538 int ecode3 = 0 ;
17539 int val4 ;
17540 int ecode4 = 0 ;
17541 PyObject * obj0 = 0 ;
17542 PyObject * obj1 = 0 ;
17543 PyObject * obj2 = 0 ;
17544 PyObject * obj3 = 0 ;
17545 char * kwnames[] = {
17546 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17547 };
17548
17549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17551 if (!SWIG_IsOK(res1)) {
17552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17553 }
17554 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17555 ecode2 = SWIG_AsVal_int(obj1, &val2);
17556 if (!SWIG_IsOK(ecode2)) {
17557 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17558 }
17559 arg2 = static_cast< wxFontEncoding >(val2);
17560 ecode3 = SWIG_AsVal_int(obj2, &val3);
17561 if (!SWIG_IsOK(ecode3)) {
17562 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17563 }
17564 arg3 = static_cast< wxFontEncoding >(val3);
17565 if (obj3) {
17566 ecode4 = SWIG_AsVal_int(obj3, &val4);
17567 if (!SWIG_IsOK(ecode4)) {
17568 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17569 }
17570 arg4 = static_cast< int >(val4);
17571 }
17572 {
17573 PyThreadState* __tstate = wxPyBeginAllowThreads();
17574 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17575 wxPyEndAllowThreads(__tstate);
17576 if (PyErr_Occurred()) SWIG_fail;
17577 }
17578 {
17579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17580 }
17581 return resultobj;
17582 fail:
17583 return NULL;
17584 }
17585
17586
17587 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17588 PyObject *resultobj = 0;
17589 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17590 wxString *arg2 = 0 ;
17591 wxString result;
17592 void *argp1 = 0 ;
17593 int res1 = 0 ;
17594 bool temp2 = false ;
17595 PyObject * obj0 = 0 ;
17596 PyObject * obj1 = 0 ;
17597 char * kwnames[] = {
17598 (char *) "self",(char *) "input", NULL
17599 };
17600
17601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17603 if (!SWIG_IsOK(res1)) {
17604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17605 }
17606 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17607 {
17608 arg2 = wxString_in_helper(obj1);
17609 if (arg2 == NULL) SWIG_fail;
17610 temp2 = true;
17611 }
17612 {
17613 PyThreadState* __tstate = wxPyBeginAllowThreads();
17614 result = (arg1)->Convert((wxString const &)*arg2);
17615 wxPyEndAllowThreads(__tstate);
17616 if (PyErr_Occurred()) SWIG_fail;
17617 }
17618 {
17619 #if wxUSE_UNICODE
17620 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17621 #else
17622 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17623 #endif
17624 }
17625 {
17626 if (temp2)
17627 delete arg2;
17628 }
17629 return resultobj;
17630 fail:
17631 {
17632 if (temp2)
17633 delete arg2;
17634 }
17635 return NULL;
17636 }
17637
17638
17639 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17640 PyObject *resultobj = 0;
17641 wxFontEncoding arg1 ;
17642 int arg2 = (int) wxPLATFORM_CURRENT ;
17643 wxFontEncodingArray result;
17644 int val1 ;
17645 int ecode1 = 0 ;
17646 int val2 ;
17647 int ecode2 = 0 ;
17648 PyObject * obj0 = 0 ;
17649 PyObject * obj1 = 0 ;
17650 char * kwnames[] = {
17651 (char *) "enc",(char *) "platform", NULL
17652 };
17653
17654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17655 ecode1 = SWIG_AsVal_int(obj0, &val1);
17656 if (!SWIG_IsOK(ecode1)) {
17657 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17658 }
17659 arg1 = static_cast< wxFontEncoding >(val1);
17660 if (obj1) {
17661 ecode2 = SWIG_AsVal_int(obj1, &val2);
17662 if (!SWIG_IsOK(ecode2)) {
17663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17664 }
17665 arg2 = static_cast< int >(val2);
17666 }
17667 {
17668 PyThreadState* __tstate = wxPyBeginAllowThreads();
17669 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17670 wxPyEndAllowThreads(__tstate);
17671 if (PyErr_Occurred()) SWIG_fail;
17672 }
17673 {
17674 resultobj = PyList_New(0);
17675 for (size_t i=0; i < (&result)->GetCount(); i++) {
17676 PyObject* number = PyInt_FromLong((&result)->Item(i));
17677 PyList_Append(resultobj, number);
17678 Py_DECREF(number);
17679 }
17680 }
17681 return resultobj;
17682 fail:
17683 return NULL;
17684 }
17685
17686
17687 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17688 PyObject *resultobj = 0;
17689 wxFontEncoding arg1 ;
17690 wxFontEncodingArray result;
17691 int val1 ;
17692 int ecode1 = 0 ;
17693 PyObject * obj0 = 0 ;
17694 char * kwnames[] = {
17695 (char *) "enc", NULL
17696 };
17697
17698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17699 ecode1 = SWIG_AsVal_int(obj0, &val1);
17700 if (!SWIG_IsOK(ecode1)) {
17701 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17702 }
17703 arg1 = static_cast< wxFontEncoding >(val1);
17704 {
17705 PyThreadState* __tstate = wxPyBeginAllowThreads();
17706 result = wxEncodingConverter::GetAllEquivalents(arg1);
17707 wxPyEndAllowThreads(__tstate);
17708 if (PyErr_Occurred()) SWIG_fail;
17709 }
17710 {
17711 resultobj = PyList_New(0);
17712 for (size_t i=0; i < (&result)->GetCount(); i++) {
17713 PyObject* number = PyInt_FromLong((&result)->Item(i));
17714 PyList_Append(resultobj, number);
17715 Py_DECREF(number);
17716 }
17717 }
17718 return resultobj;
17719 fail:
17720 return NULL;
17721 }
17722
17723
17724 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17725 PyObject *resultobj = 0;
17726 wxFontEncoding arg1 ;
17727 wxFontEncoding arg2 ;
17728 bool result;
17729 int val1 ;
17730 int ecode1 = 0 ;
17731 int val2 ;
17732 int ecode2 = 0 ;
17733 PyObject * obj0 = 0 ;
17734 PyObject * obj1 = 0 ;
17735 char * kwnames[] = {
17736 (char *) "encIn",(char *) "encOut", NULL
17737 };
17738
17739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17740 ecode1 = SWIG_AsVal_int(obj0, &val1);
17741 if (!SWIG_IsOK(ecode1)) {
17742 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17743 }
17744 arg1 = static_cast< wxFontEncoding >(val1);
17745 ecode2 = SWIG_AsVal_int(obj1, &val2);
17746 if (!SWIG_IsOK(ecode2)) {
17747 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17748 }
17749 arg2 = static_cast< wxFontEncoding >(val2);
17750 {
17751 PyThreadState* __tstate = wxPyBeginAllowThreads();
17752 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17753 wxPyEndAllowThreads(__tstate);
17754 if (PyErr_Occurred()) SWIG_fail;
17755 }
17756 {
17757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17758 }
17759 return resultobj;
17760 fail:
17761 return NULL;
17762 }
17763
17764
17765 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17766 PyObject *obj;
17767 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17768 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17769 return SWIG_Py_Void();
17770 }
17771
17772 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17773 return SWIG_Python_InitShadowInstance(args);
17774 }
17775
17776 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17777 PyObject *resultobj = 0;
17778 wxDC *arg1 = (wxDC *) 0 ;
17779 void *argp1 = 0 ;
17780 int res1 = 0 ;
17781 PyObject *swig_obj[1] ;
17782
17783 if (!args) SWIG_fail;
17784 swig_obj[0] = args;
17785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17786 if (!SWIG_IsOK(res1)) {
17787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17788 }
17789 arg1 = reinterpret_cast< wxDC * >(argp1);
17790 {
17791 PyThreadState* __tstate = wxPyBeginAllowThreads();
17792 delete arg1;
17793
17794 wxPyEndAllowThreads(__tstate);
17795 if (PyErr_Occurred()) SWIG_fail;
17796 }
17797 resultobj = SWIG_Py_Void();
17798 return resultobj;
17799 fail:
17800 return NULL;
17801 }
17802
17803
17804 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17805 PyObject *resultobj = 0;
17806 wxDC *arg1 = (wxDC *) 0 ;
17807 int arg2 ;
17808 int arg3 ;
17809 wxColour *arg4 = 0 ;
17810 int arg5 = (int) wxFLOOD_SURFACE ;
17811 bool result;
17812 void *argp1 = 0 ;
17813 int res1 = 0 ;
17814 int val2 ;
17815 int ecode2 = 0 ;
17816 int val3 ;
17817 int ecode3 = 0 ;
17818 wxColour temp4 ;
17819 int val5 ;
17820 int ecode5 = 0 ;
17821 PyObject * obj0 = 0 ;
17822 PyObject * obj1 = 0 ;
17823 PyObject * obj2 = 0 ;
17824 PyObject * obj3 = 0 ;
17825 PyObject * obj4 = 0 ;
17826 char * kwnames[] = {
17827 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17828 };
17829
17830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17832 if (!SWIG_IsOK(res1)) {
17833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17834 }
17835 arg1 = reinterpret_cast< wxDC * >(argp1);
17836 ecode2 = SWIG_AsVal_int(obj1, &val2);
17837 if (!SWIG_IsOK(ecode2)) {
17838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17839 }
17840 arg2 = static_cast< int >(val2);
17841 ecode3 = SWIG_AsVal_int(obj2, &val3);
17842 if (!SWIG_IsOK(ecode3)) {
17843 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17844 }
17845 arg3 = static_cast< int >(val3);
17846 {
17847 arg4 = &temp4;
17848 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17849 }
17850 if (obj4) {
17851 ecode5 = SWIG_AsVal_int(obj4, &val5);
17852 if (!SWIG_IsOK(ecode5)) {
17853 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17854 }
17855 arg5 = static_cast< int >(val5);
17856 }
17857 {
17858 PyThreadState* __tstate = wxPyBeginAllowThreads();
17859 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17860 wxPyEndAllowThreads(__tstate);
17861 if (PyErr_Occurred()) SWIG_fail;
17862 }
17863 {
17864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17865 }
17866 return resultobj;
17867 fail:
17868 return NULL;
17869 }
17870
17871
17872 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17873 PyObject *resultobj = 0;
17874 wxDC *arg1 = (wxDC *) 0 ;
17875 wxPoint *arg2 = 0 ;
17876 wxColour *arg3 = 0 ;
17877 int arg4 = (int) wxFLOOD_SURFACE ;
17878 bool result;
17879 void *argp1 = 0 ;
17880 int res1 = 0 ;
17881 wxPoint temp2 ;
17882 wxColour temp3 ;
17883 int val4 ;
17884 int ecode4 = 0 ;
17885 PyObject * obj0 = 0 ;
17886 PyObject * obj1 = 0 ;
17887 PyObject * obj2 = 0 ;
17888 PyObject * obj3 = 0 ;
17889 char * kwnames[] = {
17890 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17891 };
17892
17893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17895 if (!SWIG_IsOK(res1)) {
17896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17897 }
17898 arg1 = reinterpret_cast< wxDC * >(argp1);
17899 {
17900 arg2 = &temp2;
17901 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17902 }
17903 {
17904 arg3 = &temp3;
17905 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17906 }
17907 if (obj3) {
17908 ecode4 = SWIG_AsVal_int(obj3, &val4);
17909 if (!SWIG_IsOK(ecode4)) {
17910 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17911 }
17912 arg4 = static_cast< int >(val4);
17913 }
17914 {
17915 PyThreadState* __tstate = wxPyBeginAllowThreads();
17916 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17917 wxPyEndAllowThreads(__tstate);
17918 if (PyErr_Occurred()) SWIG_fail;
17919 }
17920 {
17921 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17922 }
17923 return resultobj;
17924 fail:
17925 return NULL;
17926 }
17927
17928
17929 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17930 PyObject *resultobj = 0;
17931 wxDC *arg1 = (wxDC *) 0 ;
17932 wxRect *arg2 = 0 ;
17933 wxColour *arg3 = 0 ;
17934 wxColour *arg4 = 0 ;
17935 wxPoint *arg5 = 0 ;
17936 void *argp1 = 0 ;
17937 int res1 = 0 ;
17938 wxRect temp2 ;
17939 wxColour temp3 ;
17940 wxColour temp4 ;
17941 wxPoint temp5 ;
17942 PyObject * obj0 = 0 ;
17943 PyObject * obj1 = 0 ;
17944 PyObject * obj2 = 0 ;
17945 PyObject * obj3 = 0 ;
17946 PyObject * obj4 = 0 ;
17947 char * kwnames[] = {
17948 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17949 };
17950
17951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17953 if (!SWIG_IsOK(res1)) {
17954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17955 }
17956 arg1 = reinterpret_cast< wxDC * >(argp1);
17957 {
17958 arg2 = &temp2;
17959 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17960 }
17961 {
17962 arg3 = &temp3;
17963 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17964 }
17965 {
17966 arg4 = &temp4;
17967 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17968 }
17969 {
17970 arg5 = &temp5;
17971 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17972 }
17973 {
17974 PyThreadState* __tstate = wxPyBeginAllowThreads();
17975 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17976 wxPyEndAllowThreads(__tstate);
17977 if (PyErr_Occurred()) SWIG_fail;
17978 }
17979 resultobj = SWIG_Py_Void();
17980 return resultobj;
17981 fail:
17982 return NULL;
17983 }
17984
17985
17986 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17987 PyObject *resultobj = 0;
17988 wxDC *arg1 = (wxDC *) 0 ;
17989 wxRect *arg2 = 0 ;
17990 wxColour *arg3 = 0 ;
17991 wxColour *arg4 = 0 ;
17992 wxDirection arg5 = (wxDirection) wxEAST ;
17993 void *argp1 = 0 ;
17994 int res1 = 0 ;
17995 wxRect temp2 ;
17996 wxColour temp3 ;
17997 wxColour temp4 ;
17998 int val5 ;
17999 int ecode5 = 0 ;
18000 PyObject * obj0 = 0 ;
18001 PyObject * obj1 = 0 ;
18002 PyObject * obj2 = 0 ;
18003 PyObject * obj3 = 0 ;
18004 PyObject * obj4 = 0 ;
18005 char * kwnames[] = {
18006 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
18007 };
18008
18009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18011 if (!SWIG_IsOK(res1)) {
18012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
18013 }
18014 arg1 = reinterpret_cast< wxDC * >(argp1);
18015 {
18016 arg2 = &temp2;
18017 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18018 }
18019 {
18020 arg3 = &temp3;
18021 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18022 }
18023 {
18024 arg4 = &temp4;
18025 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18026 }
18027 if (obj4) {
18028 ecode5 = SWIG_AsVal_int(obj4, &val5);
18029 if (!SWIG_IsOK(ecode5)) {
18030 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
18031 }
18032 arg5 = static_cast< wxDirection >(val5);
18033 }
18034 {
18035 PyThreadState* __tstate = wxPyBeginAllowThreads();
18036 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
18037 wxPyEndAllowThreads(__tstate);
18038 if (PyErr_Occurred()) SWIG_fail;
18039 }
18040 resultobj = SWIG_Py_Void();
18041 return resultobj;
18042 fail:
18043 return NULL;
18044 }
18045
18046
18047 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18048 PyObject *resultobj = 0;
18049 wxDC *arg1 = (wxDC *) 0 ;
18050 int arg2 ;
18051 int arg3 ;
18052 wxColour result;
18053 void *argp1 = 0 ;
18054 int res1 = 0 ;
18055 int val2 ;
18056 int ecode2 = 0 ;
18057 int val3 ;
18058 int ecode3 = 0 ;
18059 PyObject * obj0 = 0 ;
18060 PyObject * obj1 = 0 ;
18061 PyObject * obj2 = 0 ;
18062 char * kwnames[] = {
18063 (char *) "self",(char *) "x",(char *) "y", NULL
18064 };
18065
18066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18068 if (!SWIG_IsOK(res1)) {
18069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
18070 }
18071 arg1 = reinterpret_cast< wxDC * >(argp1);
18072 ecode2 = SWIG_AsVal_int(obj1, &val2);
18073 if (!SWIG_IsOK(ecode2)) {
18074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
18075 }
18076 arg2 = static_cast< int >(val2);
18077 ecode3 = SWIG_AsVal_int(obj2, &val3);
18078 if (!SWIG_IsOK(ecode3)) {
18079 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
18080 }
18081 arg3 = static_cast< int >(val3);
18082 {
18083 PyThreadState* __tstate = wxPyBeginAllowThreads();
18084 result = wxDC_GetPixel(arg1,arg2,arg3);
18085 wxPyEndAllowThreads(__tstate);
18086 if (PyErr_Occurred()) SWIG_fail;
18087 }
18088 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18089 return resultobj;
18090 fail:
18091 return NULL;
18092 }
18093
18094
18095 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18096 PyObject *resultobj = 0;
18097 wxDC *arg1 = (wxDC *) 0 ;
18098 wxPoint *arg2 = 0 ;
18099 wxColour result;
18100 void *argp1 = 0 ;
18101 int res1 = 0 ;
18102 wxPoint temp2 ;
18103 PyObject * obj0 = 0 ;
18104 PyObject * obj1 = 0 ;
18105 char * kwnames[] = {
18106 (char *) "self",(char *) "pt", NULL
18107 };
18108
18109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18111 if (!SWIG_IsOK(res1)) {
18112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18113 }
18114 arg1 = reinterpret_cast< wxDC * >(argp1);
18115 {
18116 arg2 = &temp2;
18117 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18118 }
18119 {
18120 PyThreadState* __tstate = wxPyBeginAllowThreads();
18121 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
18122 wxPyEndAllowThreads(__tstate);
18123 if (PyErr_Occurred()) SWIG_fail;
18124 }
18125 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18126 return resultobj;
18127 fail:
18128 return NULL;
18129 }
18130
18131
18132 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18133 PyObject *resultobj = 0;
18134 wxDC *arg1 = (wxDC *) 0 ;
18135 int arg2 ;
18136 int arg3 ;
18137 int arg4 ;
18138 int arg5 ;
18139 void *argp1 = 0 ;
18140 int res1 = 0 ;
18141 int val2 ;
18142 int ecode2 = 0 ;
18143 int val3 ;
18144 int ecode3 = 0 ;
18145 int val4 ;
18146 int ecode4 = 0 ;
18147 int val5 ;
18148 int ecode5 = 0 ;
18149 PyObject * obj0 = 0 ;
18150 PyObject * obj1 = 0 ;
18151 PyObject * obj2 = 0 ;
18152 PyObject * obj3 = 0 ;
18153 PyObject * obj4 = 0 ;
18154 char * kwnames[] = {
18155 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18156 };
18157
18158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18160 if (!SWIG_IsOK(res1)) {
18161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18162 }
18163 arg1 = reinterpret_cast< wxDC * >(argp1);
18164 ecode2 = SWIG_AsVal_int(obj1, &val2);
18165 if (!SWIG_IsOK(ecode2)) {
18166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18167 }
18168 arg2 = static_cast< int >(val2);
18169 ecode3 = SWIG_AsVal_int(obj2, &val3);
18170 if (!SWIG_IsOK(ecode3)) {
18171 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18172 }
18173 arg3 = static_cast< int >(val3);
18174 ecode4 = SWIG_AsVal_int(obj3, &val4);
18175 if (!SWIG_IsOK(ecode4)) {
18176 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18177 }
18178 arg4 = static_cast< int >(val4);
18179 ecode5 = SWIG_AsVal_int(obj4, &val5);
18180 if (!SWIG_IsOK(ecode5)) {
18181 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18182 }
18183 arg5 = static_cast< int >(val5);
18184 {
18185 PyThreadState* __tstate = wxPyBeginAllowThreads();
18186 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
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_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18198 PyObject *resultobj = 0;
18199 wxDC *arg1 = (wxDC *) 0 ;
18200 wxPoint *arg2 = 0 ;
18201 wxPoint *arg3 = 0 ;
18202 void *argp1 = 0 ;
18203 int res1 = 0 ;
18204 wxPoint temp2 ;
18205 wxPoint temp3 ;
18206 PyObject * obj0 = 0 ;
18207 PyObject * obj1 = 0 ;
18208 PyObject * obj2 = 0 ;
18209 char * kwnames[] = {
18210 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18211 };
18212
18213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18215 if (!SWIG_IsOK(res1)) {
18216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18217 }
18218 arg1 = reinterpret_cast< wxDC * >(argp1);
18219 {
18220 arg2 = &temp2;
18221 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18222 }
18223 {
18224 arg3 = &temp3;
18225 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18226 }
18227 {
18228 PyThreadState* __tstate = wxPyBeginAllowThreads();
18229 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18230 wxPyEndAllowThreads(__tstate);
18231 if (PyErr_Occurred()) SWIG_fail;
18232 }
18233 resultobj = SWIG_Py_Void();
18234 return resultobj;
18235 fail:
18236 return NULL;
18237 }
18238
18239
18240 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18241 PyObject *resultobj = 0;
18242 wxDC *arg1 = (wxDC *) 0 ;
18243 int arg2 ;
18244 int arg3 ;
18245 void *argp1 = 0 ;
18246 int res1 = 0 ;
18247 int val2 ;
18248 int ecode2 = 0 ;
18249 int val3 ;
18250 int ecode3 = 0 ;
18251 PyObject * obj0 = 0 ;
18252 PyObject * obj1 = 0 ;
18253 PyObject * obj2 = 0 ;
18254 char * kwnames[] = {
18255 (char *) "self",(char *) "x",(char *) "y", NULL
18256 };
18257
18258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18260 if (!SWIG_IsOK(res1)) {
18261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18262 }
18263 arg1 = reinterpret_cast< wxDC * >(argp1);
18264 ecode2 = SWIG_AsVal_int(obj1, &val2);
18265 if (!SWIG_IsOK(ecode2)) {
18266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18267 }
18268 arg2 = static_cast< int >(val2);
18269 ecode3 = SWIG_AsVal_int(obj2, &val3);
18270 if (!SWIG_IsOK(ecode3)) {
18271 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18272 }
18273 arg3 = static_cast< int >(val3);
18274 {
18275 PyThreadState* __tstate = wxPyBeginAllowThreads();
18276 (arg1)->CrossHair(arg2,arg3);
18277 wxPyEndAllowThreads(__tstate);
18278 if (PyErr_Occurred()) SWIG_fail;
18279 }
18280 resultobj = SWIG_Py_Void();
18281 return resultobj;
18282 fail:
18283 return NULL;
18284 }
18285
18286
18287 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18288 PyObject *resultobj = 0;
18289 wxDC *arg1 = (wxDC *) 0 ;
18290 wxPoint *arg2 = 0 ;
18291 void *argp1 = 0 ;
18292 int res1 = 0 ;
18293 wxPoint temp2 ;
18294 PyObject * obj0 = 0 ;
18295 PyObject * obj1 = 0 ;
18296 char * kwnames[] = {
18297 (char *) "self",(char *) "pt", NULL
18298 };
18299
18300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18302 if (!SWIG_IsOK(res1)) {
18303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18304 }
18305 arg1 = reinterpret_cast< wxDC * >(argp1);
18306 {
18307 arg2 = &temp2;
18308 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18309 }
18310 {
18311 PyThreadState* __tstate = wxPyBeginAllowThreads();
18312 (arg1)->CrossHair((wxPoint const &)*arg2);
18313 wxPyEndAllowThreads(__tstate);
18314 if (PyErr_Occurred()) SWIG_fail;
18315 }
18316 resultobj = SWIG_Py_Void();
18317 return resultobj;
18318 fail:
18319 return NULL;
18320 }
18321
18322
18323 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18324 PyObject *resultobj = 0;
18325 wxDC *arg1 = (wxDC *) 0 ;
18326 int arg2 ;
18327 int arg3 ;
18328 int arg4 ;
18329 int arg5 ;
18330 int arg6 ;
18331 int arg7 ;
18332 void *argp1 = 0 ;
18333 int res1 = 0 ;
18334 int val2 ;
18335 int ecode2 = 0 ;
18336 int val3 ;
18337 int ecode3 = 0 ;
18338 int val4 ;
18339 int ecode4 = 0 ;
18340 int val5 ;
18341 int ecode5 = 0 ;
18342 int val6 ;
18343 int ecode6 = 0 ;
18344 int val7 ;
18345 int ecode7 = 0 ;
18346 PyObject * obj0 = 0 ;
18347 PyObject * obj1 = 0 ;
18348 PyObject * obj2 = 0 ;
18349 PyObject * obj3 = 0 ;
18350 PyObject * obj4 = 0 ;
18351 PyObject * obj5 = 0 ;
18352 PyObject * obj6 = 0 ;
18353 char * kwnames[] = {
18354 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18355 };
18356
18357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18359 if (!SWIG_IsOK(res1)) {
18360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18361 }
18362 arg1 = reinterpret_cast< wxDC * >(argp1);
18363 ecode2 = SWIG_AsVal_int(obj1, &val2);
18364 if (!SWIG_IsOK(ecode2)) {
18365 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18366 }
18367 arg2 = static_cast< int >(val2);
18368 ecode3 = SWIG_AsVal_int(obj2, &val3);
18369 if (!SWIG_IsOK(ecode3)) {
18370 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18371 }
18372 arg3 = static_cast< int >(val3);
18373 ecode4 = SWIG_AsVal_int(obj3, &val4);
18374 if (!SWIG_IsOK(ecode4)) {
18375 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18376 }
18377 arg4 = static_cast< int >(val4);
18378 ecode5 = SWIG_AsVal_int(obj4, &val5);
18379 if (!SWIG_IsOK(ecode5)) {
18380 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18381 }
18382 arg5 = static_cast< int >(val5);
18383 ecode6 = SWIG_AsVal_int(obj5, &val6);
18384 if (!SWIG_IsOK(ecode6)) {
18385 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18386 }
18387 arg6 = static_cast< int >(val6);
18388 ecode7 = SWIG_AsVal_int(obj6, &val7);
18389 if (!SWIG_IsOK(ecode7)) {
18390 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18391 }
18392 arg7 = static_cast< int >(val7);
18393 {
18394 PyThreadState* __tstate = wxPyBeginAllowThreads();
18395 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18396 wxPyEndAllowThreads(__tstate);
18397 if (PyErr_Occurred()) SWIG_fail;
18398 }
18399 resultobj = SWIG_Py_Void();
18400 return resultobj;
18401 fail:
18402 return NULL;
18403 }
18404
18405
18406 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18407 PyObject *resultobj = 0;
18408 wxDC *arg1 = (wxDC *) 0 ;
18409 wxPoint *arg2 = 0 ;
18410 wxPoint *arg3 = 0 ;
18411 wxPoint *arg4 = 0 ;
18412 void *argp1 = 0 ;
18413 int res1 = 0 ;
18414 wxPoint temp2 ;
18415 wxPoint temp3 ;
18416 wxPoint temp4 ;
18417 PyObject * obj0 = 0 ;
18418 PyObject * obj1 = 0 ;
18419 PyObject * obj2 = 0 ;
18420 PyObject * obj3 = 0 ;
18421 char * kwnames[] = {
18422 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18423 };
18424
18425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18427 if (!SWIG_IsOK(res1)) {
18428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18429 }
18430 arg1 = reinterpret_cast< wxDC * >(argp1);
18431 {
18432 arg2 = &temp2;
18433 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18434 }
18435 {
18436 arg3 = &temp3;
18437 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18438 }
18439 {
18440 arg4 = &temp4;
18441 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18442 }
18443 {
18444 PyThreadState* __tstate = wxPyBeginAllowThreads();
18445 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18446 wxPyEndAllowThreads(__tstate);
18447 if (PyErr_Occurred()) SWIG_fail;
18448 }
18449 resultobj = SWIG_Py_Void();
18450 return resultobj;
18451 fail:
18452 return NULL;
18453 }
18454
18455
18456 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18457 PyObject *resultobj = 0;
18458 wxDC *arg1 = (wxDC *) 0 ;
18459 int arg2 ;
18460 int arg3 ;
18461 int arg4 ;
18462 int arg5 ;
18463 void *argp1 = 0 ;
18464 int res1 = 0 ;
18465 int val2 ;
18466 int ecode2 = 0 ;
18467 int val3 ;
18468 int ecode3 = 0 ;
18469 int val4 ;
18470 int ecode4 = 0 ;
18471 int val5 ;
18472 int ecode5 = 0 ;
18473 PyObject * obj0 = 0 ;
18474 PyObject * obj1 = 0 ;
18475 PyObject * obj2 = 0 ;
18476 PyObject * obj3 = 0 ;
18477 PyObject * obj4 = 0 ;
18478 char * kwnames[] = {
18479 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18480 };
18481
18482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18484 if (!SWIG_IsOK(res1)) {
18485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18486 }
18487 arg1 = reinterpret_cast< wxDC * >(argp1);
18488 ecode2 = SWIG_AsVal_int(obj1, &val2);
18489 if (!SWIG_IsOK(ecode2)) {
18490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18491 }
18492 arg2 = static_cast< int >(val2);
18493 ecode3 = SWIG_AsVal_int(obj2, &val3);
18494 if (!SWIG_IsOK(ecode3)) {
18495 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18496 }
18497 arg3 = static_cast< int >(val3);
18498 ecode4 = SWIG_AsVal_int(obj3, &val4);
18499 if (!SWIG_IsOK(ecode4)) {
18500 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18501 }
18502 arg4 = static_cast< int >(val4);
18503 ecode5 = SWIG_AsVal_int(obj4, &val5);
18504 if (!SWIG_IsOK(ecode5)) {
18505 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18506 }
18507 arg5 = static_cast< int >(val5);
18508 {
18509 PyThreadState* __tstate = wxPyBeginAllowThreads();
18510 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18511 wxPyEndAllowThreads(__tstate);
18512 if (PyErr_Occurred()) SWIG_fail;
18513 }
18514 resultobj = SWIG_Py_Void();
18515 return resultobj;
18516 fail:
18517 return NULL;
18518 }
18519
18520
18521 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18522 PyObject *resultobj = 0;
18523 wxDC *arg1 = (wxDC *) 0 ;
18524 wxRect *arg2 = 0 ;
18525 void *argp1 = 0 ;
18526 int res1 = 0 ;
18527 wxRect temp2 ;
18528 PyObject * obj0 = 0 ;
18529 PyObject * obj1 = 0 ;
18530 char * kwnames[] = {
18531 (char *) "self",(char *) "rect", NULL
18532 };
18533
18534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) 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_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18538 }
18539 arg1 = reinterpret_cast< wxDC * >(argp1);
18540 {
18541 arg2 = &temp2;
18542 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18543 }
18544 {
18545 PyThreadState* __tstate = wxPyBeginAllowThreads();
18546 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18547 wxPyEndAllowThreads(__tstate);
18548 if (PyErr_Occurred()) SWIG_fail;
18549 }
18550 resultobj = SWIG_Py_Void();
18551 return resultobj;
18552 fail:
18553 return NULL;
18554 }
18555
18556
18557 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18558 PyObject *resultobj = 0;
18559 wxDC *arg1 = (wxDC *) 0 ;
18560 int arg2 ;
18561 int arg3 ;
18562 int arg4 ;
18563 int arg5 ;
18564 double arg6 ;
18565 double arg7 ;
18566 void *argp1 = 0 ;
18567 int res1 = 0 ;
18568 int val2 ;
18569 int ecode2 = 0 ;
18570 int val3 ;
18571 int ecode3 = 0 ;
18572 int val4 ;
18573 int ecode4 = 0 ;
18574 int val5 ;
18575 int ecode5 = 0 ;
18576 double val6 ;
18577 int ecode6 = 0 ;
18578 double val7 ;
18579 int ecode7 = 0 ;
18580 PyObject * obj0 = 0 ;
18581 PyObject * obj1 = 0 ;
18582 PyObject * obj2 = 0 ;
18583 PyObject * obj3 = 0 ;
18584 PyObject * obj4 = 0 ;
18585 PyObject * obj5 = 0 ;
18586 PyObject * obj6 = 0 ;
18587 char * kwnames[] = {
18588 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18589 };
18590
18591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18593 if (!SWIG_IsOK(res1)) {
18594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18595 }
18596 arg1 = reinterpret_cast< wxDC * >(argp1);
18597 ecode2 = SWIG_AsVal_int(obj1, &val2);
18598 if (!SWIG_IsOK(ecode2)) {
18599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18600 }
18601 arg2 = static_cast< int >(val2);
18602 ecode3 = SWIG_AsVal_int(obj2, &val3);
18603 if (!SWIG_IsOK(ecode3)) {
18604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18605 }
18606 arg3 = static_cast< int >(val3);
18607 ecode4 = SWIG_AsVal_int(obj3, &val4);
18608 if (!SWIG_IsOK(ecode4)) {
18609 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18610 }
18611 arg4 = static_cast< int >(val4);
18612 ecode5 = SWIG_AsVal_int(obj4, &val5);
18613 if (!SWIG_IsOK(ecode5)) {
18614 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18615 }
18616 arg5 = static_cast< int >(val5);
18617 ecode6 = SWIG_AsVal_double(obj5, &val6);
18618 if (!SWIG_IsOK(ecode6)) {
18619 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18620 }
18621 arg6 = static_cast< double >(val6);
18622 ecode7 = SWIG_AsVal_double(obj6, &val7);
18623 if (!SWIG_IsOK(ecode7)) {
18624 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18625 }
18626 arg7 = static_cast< double >(val7);
18627 {
18628 PyThreadState* __tstate = wxPyBeginAllowThreads();
18629 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18630 wxPyEndAllowThreads(__tstate);
18631 if (PyErr_Occurred()) SWIG_fail;
18632 }
18633 resultobj = SWIG_Py_Void();
18634 return resultobj;
18635 fail:
18636 return NULL;
18637 }
18638
18639
18640 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18641 PyObject *resultobj = 0;
18642 wxDC *arg1 = (wxDC *) 0 ;
18643 wxPoint *arg2 = 0 ;
18644 wxSize *arg3 = 0 ;
18645 double arg4 ;
18646 double arg5 ;
18647 void *argp1 = 0 ;
18648 int res1 = 0 ;
18649 wxPoint temp2 ;
18650 wxSize temp3 ;
18651 double val4 ;
18652 int ecode4 = 0 ;
18653 double val5 ;
18654 int ecode5 = 0 ;
18655 PyObject * obj0 = 0 ;
18656 PyObject * obj1 = 0 ;
18657 PyObject * obj2 = 0 ;
18658 PyObject * obj3 = 0 ;
18659 PyObject * obj4 = 0 ;
18660 char * kwnames[] = {
18661 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18662 };
18663
18664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18666 if (!SWIG_IsOK(res1)) {
18667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18668 }
18669 arg1 = reinterpret_cast< wxDC * >(argp1);
18670 {
18671 arg2 = &temp2;
18672 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18673 }
18674 {
18675 arg3 = &temp3;
18676 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18677 }
18678 ecode4 = SWIG_AsVal_double(obj3, &val4);
18679 if (!SWIG_IsOK(ecode4)) {
18680 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18681 }
18682 arg4 = static_cast< double >(val4);
18683 ecode5 = SWIG_AsVal_double(obj4, &val5);
18684 if (!SWIG_IsOK(ecode5)) {
18685 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18686 }
18687 arg5 = static_cast< double >(val5);
18688 {
18689 PyThreadState* __tstate = wxPyBeginAllowThreads();
18690 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18691 wxPyEndAllowThreads(__tstate);
18692 if (PyErr_Occurred()) SWIG_fail;
18693 }
18694 resultobj = SWIG_Py_Void();
18695 return resultobj;
18696 fail:
18697 return NULL;
18698 }
18699
18700
18701 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18702 PyObject *resultobj = 0;
18703 wxDC *arg1 = (wxDC *) 0 ;
18704 int arg2 ;
18705 int arg3 ;
18706 void *argp1 = 0 ;
18707 int res1 = 0 ;
18708 int val2 ;
18709 int ecode2 = 0 ;
18710 int val3 ;
18711 int ecode3 = 0 ;
18712 PyObject * obj0 = 0 ;
18713 PyObject * obj1 = 0 ;
18714 PyObject * obj2 = 0 ;
18715 char * kwnames[] = {
18716 (char *) "self",(char *) "x",(char *) "y", NULL
18717 };
18718
18719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18721 if (!SWIG_IsOK(res1)) {
18722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18723 }
18724 arg1 = reinterpret_cast< wxDC * >(argp1);
18725 ecode2 = SWIG_AsVal_int(obj1, &val2);
18726 if (!SWIG_IsOK(ecode2)) {
18727 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18728 }
18729 arg2 = static_cast< int >(val2);
18730 ecode3 = SWIG_AsVal_int(obj2, &val3);
18731 if (!SWIG_IsOK(ecode3)) {
18732 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18733 }
18734 arg3 = static_cast< int >(val3);
18735 {
18736 PyThreadState* __tstate = wxPyBeginAllowThreads();
18737 (arg1)->DrawPoint(arg2,arg3);
18738 wxPyEndAllowThreads(__tstate);
18739 if (PyErr_Occurred()) SWIG_fail;
18740 }
18741 resultobj = SWIG_Py_Void();
18742 return resultobj;
18743 fail:
18744 return NULL;
18745 }
18746
18747
18748 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18749 PyObject *resultobj = 0;
18750 wxDC *arg1 = (wxDC *) 0 ;
18751 wxPoint *arg2 = 0 ;
18752 void *argp1 = 0 ;
18753 int res1 = 0 ;
18754 wxPoint temp2 ;
18755 PyObject * obj0 = 0 ;
18756 PyObject * obj1 = 0 ;
18757 char * kwnames[] = {
18758 (char *) "self",(char *) "pt", NULL
18759 };
18760
18761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18763 if (!SWIG_IsOK(res1)) {
18764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18765 }
18766 arg1 = reinterpret_cast< wxDC * >(argp1);
18767 {
18768 arg2 = &temp2;
18769 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18770 }
18771 {
18772 PyThreadState* __tstate = wxPyBeginAllowThreads();
18773 (arg1)->DrawPoint((wxPoint const &)*arg2);
18774 wxPyEndAllowThreads(__tstate);
18775 if (PyErr_Occurred()) SWIG_fail;
18776 }
18777 resultobj = SWIG_Py_Void();
18778 return resultobj;
18779 fail:
18780 return NULL;
18781 }
18782
18783
18784 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18785 PyObject *resultobj = 0;
18786 wxDC *arg1 = (wxDC *) 0 ;
18787 int arg2 ;
18788 int arg3 ;
18789 int arg4 ;
18790 int arg5 ;
18791 void *argp1 = 0 ;
18792 int res1 = 0 ;
18793 int val2 ;
18794 int ecode2 = 0 ;
18795 int val3 ;
18796 int ecode3 = 0 ;
18797 int val4 ;
18798 int ecode4 = 0 ;
18799 int val5 ;
18800 int ecode5 = 0 ;
18801 PyObject * obj0 = 0 ;
18802 PyObject * obj1 = 0 ;
18803 PyObject * obj2 = 0 ;
18804 PyObject * obj3 = 0 ;
18805 PyObject * obj4 = 0 ;
18806 char * kwnames[] = {
18807 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18808 };
18809
18810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18812 if (!SWIG_IsOK(res1)) {
18813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18814 }
18815 arg1 = reinterpret_cast< wxDC * >(argp1);
18816 ecode2 = SWIG_AsVal_int(obj1, &val2);
18817 if (!SWIG_IsOK(ecode2)) {
18818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18819 }
18820 arg2 = static_cast< int >(val2);
18821 ecode3 = SWIG_AsVal_int(obj2, &val3);
18822 if (!SWIG_IsOK(ecode3)) {
18823 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18824 }
18825 arg3 = static_cast< int >(val3);
18826 ecode4 = SWIG_AsVal_int(obj3, &val4);
18827 if (!SWIG_IsOK(ecode4)) {
18828 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18829 }
18830 arg4 = static_cast< int >(val4);
18831 ecode5 = SWIG_AsVal_int(obj4, &val5);
18832 if (!SWIG_IsOK(ecode5)) {
18833 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18834 }
18835 arg5 = static_cast< int >(val5);
18836 {
18837 PyThreadState* __tstate = wxPyBeginAllowThreads();
18838 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18839 wxPyEndAllowThreads(__tstate);
18840 if (PyErr_Occurred()) SWIG_fail;
18841 }
18842 resultobj = SWIG_Py_Void();
18843 return resultobj;
18844 fail:
18845 return NULL;
18846 }
18847
18848
18849 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18850 PyObject *resultobj = 0;
18851 wxDC *arg1 = (wxDC *) 0 ;
18852 wxRect *arg2 = 0 ;
18853 void *argp1 = 0 ;
18854 int res1 = 0 ;
18855 wxRect temp2 ;
18856 PyObject * obj0 = 0 ;
18857 PyObject * obj1 = 0 ;
18858 char * kwnames[] = {
18859 (char *) "self",(char *) "rect", NULL
18860 };
18861
18862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18864 if (!SWIG_IsOK(res1)) {
18865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18866 }
18867 arg1 = reinterpret_cast< wxDC * >(argp1);
18868 {
18869 arg2 = &temp2;
18870 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18871 }
18872 {
18873 PyThreadState* __tstate = wxPyBeginAllowThreads();
18874 (arg1)->DrawRectangle((wxRect const &)*arg2);
18875 wxPyEndAllowThreads(__tstate);
18876 if (PyErr_Occurred()) SWIG_fail;
18877 }
18878 resultobj = SWIG_Py_Void();
18879 return resultobj;
18880 fail:
18881 return NULL;
18882 }
18883
18884
18885 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18886 PyObject *resultobj = 0;
18887 wxDC *arg1 = (wxDC *) 0 ;
18888 wxPoint *arg2 = 0 ;
18889 wxSize *arg3 = 0 ;
18890 void *argp1 = 0 ;
18891 int res1 = 0 ;
18892 wxPoint temp2 ;
18893 wxSize temp3 ;
18894 PyObject * obj0 = 0 ;
18895 PyObject * obj1 = 0 ;
18896 PyObject * obj2 = 0 ;
18897 char * kwnames[] = {
18898 (char *) "self",(char *) "pt",(char *) "sz", NULL
18899 };
18900
18901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18903 if (!SWIG_IsOK(res1)) {
18904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18905 }
18906 arg1 = reinterpret_cast< wxDC * >(argp1);
18907 {
18908 arg2 = &temp2;
18909 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18910 }
18911 {
18912 arg3 = &temp3;
18913 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18914 }
18915 {
18916 PyThreadState* __tstate = wxPyBeginAllowThreads();
18917 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18918 wxPyEndAllowThreads(__tstate);
18919 if (PyErr_Occurred()) SWIG_fail;
18920 }
18921 resultobj = SWIG_Py_Void();
18922 return resultobj;
18923 fail:
18924 return NULL;
18925 }
18926
18927
18928 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18929 PyObject *resultobj = 0;
18930 wxDC *arg1 = (wxDC *) 0 ;
18931 int arg2 ;
18932 int arg3 ;
18933 int arg4 ;
18934 int arg5 ;
18935 double arg6 ;
18936 void *argp1 = 0 ;
18937 int res1 = 0 ;
18938 int val2 ;
18939 int ecode2 = 0 ;
18940 int val3 ;
18941 int ecode3 = 0 ;
18942 int val4 ;
18943 int ecode4 = 0 ;
18944 int val5 ;
18945 int ecode5 = 0 ;
18946 double val6 ;
18947 int ecode6 = 0 ;
18948 PyObject * obj0 = 0 ;
18949 PyObject * obj1 = 0 ;
18950 PyObject * obj2 = 0 ;
18951 PyObject * obj3 = 0 ;
18952 PyObject * obj4 = 0 ;
18953 PyObject * obj5 = 0 ;
18954 char * kwnames[] = {
18955 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18956 };
18957
18958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18960 if (!SWIG_IsOK(res1)) {
18961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18962 }
18963 arg1 = reinterpret_cast< wxDC * >(argp1);
18964 ecode2 = SWIG_AsVal_int(obj1, &val2);
18965 if (!SWIG_IsOK(ecode2)) {
18966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18967 }
18968 arg2 = static_cast< int >(val2);
18969 ecode3 = SWIG_AsVal_int(obj2, &val3);
18970 if (!SWIG_IsOK(ecode3)) {
18971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18972 }
18973 arg3 = static_cast< int >(val3);
18974 ecode4 = SWIG_AsVal_int(obj3, &val4);
18975 if (!SWIG_IsOK(ecode4)) {
18976 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18977 }
18978 arg4 = static_cast< int >(val4);
18979 ecode5 = SWIG_AsVal_int(obj4, &val5);
18980 if (!SWIG_IsOK(ecode5)) {
18981 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18982 }
18983 arg5 = static_cast< int >(val5);
18984 ecode6 = SWIG_AsVal_double(obj5, &val6);
18985 if (!SWIG_IsOK(ecode6)) {
18986 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18987 }
18988 arg6 = static_cast< double >(val6);
18989 {
18990 PyThreadState* __tstate = wxPyBeginAllowThreads();
18991 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18992 wxPyEndAllowThreads(__tstate);
18993 if (PyErr_Occurred()) SWIG_fail;
18994 }
18995 resultobj = SWIG_Py_Void();
18996 return resultobj;
18997 fail:
18998 return NULL;
18999 }
19000
19001
19002 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19003 PyObject *resultobj = 0;
19004 wxDC *arg1 = (wxDC *) 0 ;
19005 wxRect *arg2 = 0 ;
19006 double arg3 ;
19007 void *argp1 = 0 ;
19008 int res1 = 0 ;
19009 wxRect temp2 ;
19010 double val3 ;
19011 int ecode3 = 0 ;
19012 PyObject * obj0 = 0 ;
19013 PyObject * obj1 = 0 ;
19014 PyObject * obj2 = 0 ;
19015 char * kwnames[] = {
19016 (char *) "self",(char *) "r",(char *) "radius", NULL
19017 };
19018
19019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19021 if (!SWIG_IsOK(res1)) {
19022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19023 }
19024 arg1 = reinterpret_cast< wxDC * >(argp1);
19025 {
19026 arg2 = &temp2;
19027 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19028 }
19029 ecode3 = SWIG_AsVal_double(obj2, &val3);
19030 if (!SWIG_IsOK(ecode3)) {
19031 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
19032 }
19033 arg3 = static_cast< double >(val3);
19034 {
19035 PyThreadState* __tstate = wxPyBeginAllowThreads();
19036 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
19037 wxPyEndAllowThreads(__tstate);
19038 if (PyErr_Occurred()) SWIG_fail;
19039 }
19040 resultobj = SWIG_Py_Void();
19041 return resultobj;
19042 fail:
19043 return NULL;
19044 }
19045
19046
19047 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19048 PyObject *resultobj = 0;
19049 wxDC *arg1 = (wxDC *) 0 ;
19050 wxPoint *arg2 = 0 ;
19051 wxSize *arg3 = 0 ;
19052 double arg4 ;
19053 void *argp1 = 0 ;
19054 int res1 = 0 ;
19055 wxPoint temp2 ;
19056 wxSize temp3 ;
19057 double val4 ;
19058 int ecode4 = 0 ;
19059 PyObject * obj0 = 0 ;
19060 PyObject * obj1 = 0 ;
19061 PyObject * obj2 = 0 ;
19062 PyObject * obj3 = 0 ;
19063 char * kwnames[] = {
19064 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
19065 };
19066
19067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19069 if (!SWIG_IsOK(res1)) {
19070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19071 }
19072 arg1 = reinterpret_cast< wxDC * >(argp1);
19073 {
19074 arg2 = &temp2;
19075 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19076 }
19077 {
19078 arg3 = &temp3;
19079 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19080 }
19081 ecode4 = SWIG_AsVal_double(obj3, &val4);
19082 if (!SWIG_IsOK(ecode4)) {
19083 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
19084 }
19085 arg4 = static_cast< double >(val4);
19086 {
19087 PyThreadState* __tstate = wxPyBeginAllowThreads();
19088 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
19089 wxPyEndAllowThreads(__tstate);
19090 if (PyErr_Occurred()) SWIG_fail;
19091 }
19092 resultobj = SWIG_Py_Void();
19093 return resultobj;
19094 fail:
19095 return NULL;
19096 }
19097
19098
19099 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19100 PyObject *resultobj = 0;
19101 wxDC *arg1 = (wxDC *) 0 ;
19102 int arg2 ;
19103 int arg3 ;
19104 int arg4 ;
19105 void *argp1 = 0 ;
19106 int res1 = 0 ;
19107 int val2 ;
19108 int ecode2 = 0 ;
19109 int val3 ;
19110 int ecode3 = 0 ;
19111 int val4 ;
19112 int ecode4 = 0 ;
19113 PyObject * obj0 = 0 ;
19114 PyObject * obj1 = 0 ;
19115 PyObject * obj2 = 0 ;
19116 PyObject * obj3 = 0 ;
19117 char * kwnames[] = {
19118 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
19119 };
19120
19121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19123 if (!SWIG_IsOK(res1)) {
19124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
19125 }
19126 arg1 = reinterpret_cast< wxDC * >(argp1);
19127 ecode2 = SWIG_AsVal_int(obj1, &val2);
19128 if (!SWIG_IsOK(ecode2)) {
19129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
19130 }
19131 arg2 = static_cast< int >(val2);
19132 ecode3 = SWIG_AsVal_int(obj2, &val3);
19133 if (!SWIG_IsOK(ecode3)) {
19134 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19135 }
19136 arg3 = static_cast< int >(val3);
19137 ecode4 = SWIG_AsVal_int(obj3, &val4);
19138 if (!SWIG_IsOK(ecode4)) {
19139 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19140 }
19141 arg4 = static_cast< int >(val4);
19142 {
19143 PyThreadState* __tstate = wxPyBeginAllowThreads();
19144 (arg1)->DrawCircle(arg2,arg3,arg4);
19145 wxPyEndAllowThreads(__tstate);
19146 if (PyErr_Occurred()) SWIG_fail;
19147 }
19148 resultobj = SWIG_Py_Void();
19149 return resultobj;
19150 fail:
19151 return NULL;
19152 }
19153
19154
19155 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19156 PyObject *resultobj = 0;
19157 wxDC *arg1 = (wxDC *) 0 ;
19158 wxPoint *arg2 = 0 ;
19159 int arg3 ;
19160 void *argp1 = 0 ;
19161 int res1 = 0 ;
19162 wxPoint temp2 ;
19163 int val3 ;
19164 int ecode3 = 0 ;
19165 PyObject * obj0 = 0 ;
19166 PyObject * obj1 = 0 ;
19167 PyObject * obj2 = 0 ;
19168 char * kwnames[] = {
19169 (char *) "self",(char *) "pt",(char *) "radius", NULL
19170 };
19171
19172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19174 if (!SWIG_IsOK(res1)) {
19175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19176 }
19177 arg1 = reinterpret_cast< wxDC * >(argp1);
19178 {
19179 arg2 = &temp2;
19180 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19181 }
19182 ecode3 = SWIG_AsVal_int(obj2, &val3);
19183 if (!SWIG_IsOK(ecode3)) {
19184 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19185 }
19186 arg3 = static_cast< int >(val3);
19187 {
19188 PyThreadState* __tstate = wxPyBeginAllowThreads();
19189 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19190 wxPyEndAllowThreads(__tstate);
19191 if (PyErr_Occurred()) SWIG_fail;
19192 }
19193 resultobj = SWIG_Py_Void();
19194 return resultobj;
19195 fail:
19196 return NULL;
19197 }
19198
19199
19200 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19201 PyObject *resultobj = 0;
19202 wxDC *arg1 = (wxDC *) 0 ;
19203 int arg2 ;
19204 int arg3 ;
19205 int arg4 ;
19206 int arg5 ;
19207 void *argp1 = 0 ;
19208 int res1 = 0 ;
19209 int val2 ;
19210 int ecode2 = 0 ;
19211 int val3 ;
19212 int ecode3 = 0 ;
19213 int val4 ;
19214 int ecode4 = 0 ;
19215 int val5 ;
19216 int ecode5 = 0 ;
19217 PyObject * obj0 = 0 ;
19218 PyObject * obj1 = 0 ;
19219 PyObject * obj2 = 0 ;
19220 PyObject * obj3 = 0 ;
19221 PyObject * obj4 = 0 ;
19222 char * kwnames[] = {
19223 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19224 };
19225
19226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19228 if (!SWIG_IsOK(res1)) {
19229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19230 }
19231 arg1 = reinterpret_cast< wxDC * >(argp1);
19232 ecode2 = SWIG_AsVal_int(obj1, &val2);
19233 if (!SWIG_IsOK(ecode2)) {
19234 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19235 }
19236 arg2 = static_cast< int >(val2);
19237 ecode3 = SWIG_AsVal_int(obj2, &val3);
19238 if (!SWIG_IsOK(ecode3)) {
19239 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19240 }
19241 arg3 = static_cast< int >(val3);
19242 ecode4 = SWIG_AsVal_int(obj3, &val4);
19243 if (!SWIG_IsOK(ecode4)) {
19244 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19245 }
19246 arg4 = static_cast< int >(val4);
19247 ecode5 = SWIG_AsVal_int(obj4, &val5);
19248 if (!SWIG_IsOK(ecode5)) {
19249 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19250 }
19251 arg5 = static_cast< int >(val5);
19252 {
19253 PyThreadState* __tstate = wxPyBeginAllowThreads();
19254 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19255 wxPyEndAllowThreads(__tstate);
19256 if (PyErr_Occurred()) SWIG_fail;
19257 }
19258 resultobj = SWIG_Py_Void();
19259 return resultobj;
19260 fail:
19261 return NULL;
19262 }
19263
19264
19265 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19266 PyObject *resultobj = 0;
19267 wxDC *arg1 = (wxDC *) 0 ;
19268 wxRect *arg2 = 0 ;
19269 void *argp1 = 0 ;
19270 int res1 = 0 ;
19271 wxRect temp2 ;
19272 PyObject * obj0 = 0 ;
19273 PyObject * obj1 = 0 ;
19274 char * kwnames[] = {
19275 (char *) "self",(char *) "rect", NULL
19276 };
19277
19278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19280 if (!SWIG_IsOK(res1)) {
19281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19282 }
19283 arg1 = reinterpret_cast< wxDC * >(argp1);
19284 {
19285 arg2 = &temp2;
19286 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19287 }
19288 {
19289 PyThreadState* __tstate = wxPyBeginAllowThreads();
19290 (arg1)->DrawEllipse((wxRect const &)*arg2);
19291 wxPyEndAllowThreads(__tstate);
19292 if (PyErr_Occurred()) SWIG_fail;
19293 }
19294 resultobj = SWIG_Py_Void();
19295 return resultobj;
19296 fail:
19297 return NULL;
19298 }
19299
19300
19301 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19302 PyObject *resultobj = 0;
19303 wxDC *arg1 = (wxDC *) 0 ;
19304 wxPoint *arg2 = 0 ;
19305 wxSize *arg3 = 0 ;
19306 void *argp1 = 0 ;
19307 int res1 = 0 ;
19308 wxPoint temp2 ;
19309 wxSize temp3 ;
19310 PyObject * obj0 = 0 ;
19311 PyObject * obj1 = 0 ;
19312 PyObject * obj2 = 0 ;
19313 char * kwnames[] = {
19314 (char *) "self",(char *) "pt",(char *) "sz", NULL
19315 };
19316
19317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19319 if (!SWIG_IsOK(res1)) {
19320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19321 }
19322 arg1 = reinterpret_cast< wxDC * >(argp1);
19323 {
19324 arg2 = &temp2;
19325 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19326 }
19327 {
19328 arg3 = &temp3;
19329 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19330 }
19331 {
19332 PyThreadState* __tstate = wxPyBeginAllowThreads();
19333 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19334 wxPyEndAllowThreads(__tstate);
19335 if (PyErr_Occurred()) SWIG_fail;
19336 }
19337 resultobj = SWIG_Py_Void();
19338 return resultobj;
19339 fail:
19340 return NULL;
19341 }
19342
19343
19344 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19345 PyObject *resultobj = 0;
19346 wxDC *arg1 = (wxDC *) 0 ;
19347 wxIcon *arg2 = 0 ;
19348 int arg3 ;
19349 int arg4 ;
19350 void *argp1 = 0 ;
19351 int res1 = 0 ;
19352 void *argp2 = 0 ;
19353 int res2 = 0 ;
19354 int val3 ;
19355 int ecode3 = 0 ;
19356 int val4 ;
19357 int ecode4 = 0 ;
19358 PyObject * obj0 = 0 ;
19359 PyObject * obj1 = 0 ;
19360 PyObject * obj2 = 0 ;
19361 PyObject * obj3 = 0 ;
19362 char * kwnames[] = {
19363 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19364 };
19365
19366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19368 if (!SWIG_IsOK(res1)) {
19369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19370 }
19371 arg1 = reinterpret_cast< wxDC * >(argp1);
19372 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19373 if (!SWIG_IsOK(res2)) {
19374 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19375 }
19376 if (!argp2) {
19377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19378 }
19379 arg2 = reinterpret_cast< wxIcon * >(argp2);
19380 ecode3 = SWIG_AsVal_int(obj2, &val3);
19381 if (!SWIG_IsOK(ecode3)) {
19382 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19383 }
19384 arg3 = static_cast< int >(val3);
19385 ecode4 = SWIG_AsVal_int(obj3, &val4);
19386 if (!SWIG_IsOK(ecode4)) {
19387 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19388 }
19389 arg4 = static_cast< int >(val4);
19390 {
19391 PyThreadState* __tstate = wxPyBeginAllowThreads();
19392 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19393 wxPyEndAllowThreads(__tstate);
19394 if (PyErr_Occurred()) SWIG_fail;
19395 }
19396 resultobj = SWIG_Py_Void();
19397 return resultobj;
19398 fail:
19399 return NULL;
19400 }
19401
19402
19403 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19404 PyObject *resultobj = 0;
19405 wxDC *arg1 = (wxDC *) 0 ;
19406 wxIcon *arg2 = 0 ;
19407 wxPoint *arg3 = 0 ;
19408 void *argp1 = 0 ;
19409 int res1 = 0 ;
19410 void *argp2 = 0 ;
19411 int res2 = 0 ;
19412 wxPoint temp3 ;
19413 PyObject * obj0 = 0 ;
19414 PyObject * obj1 = 0 ;
19415 PyObject * obj2 = 0 ;
19416 char * kwnames[] = {
19417 (char *) "self",(char *) "icon",(char *) "pt", NULL
19418 };
19419
19420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19422 if (!SWIG_IsOK(res1)) {
19423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19424 }
19425 arg1 = reinterpret_cast< wxDC * >(argp1);
19426 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19427 if (!SWIG_IsOK(res2)) {
19428 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19429 }
19430 if (!argp2) {
19431 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19432 }
19433 arg2 = reinterpret_cast< wxIcon * >(argp2);
19434 {
19435 arg3 = &temp3;
19436 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19437 }
19438 {
19439 PyThreadState* __tstate = wxPyBeginAllowThreads();
19440 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19441 wxPyEndAllowThreads(__tstate);
19442 if (PyErr_Occurred()) SWIG_fail;
19443 }
19444 resultobj = SWIG_Py_Void();
19445 return resultobj;
19446 fail:
19447 return NULL;
19448 }
19449
19450
19451 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19452 PyObject *resultobj = 0;
19453 wxDC *arg1 = (wxDC *) 0 ;
19454 wxBitmap *arg2 = 0 ;
19455 int arg3 ;
19456 int arg4 ;
19457 bool arg5 = (bool) false ;
19458 void *argp1 = 0 ;
19459 int res1 = 0 ;
19460 void *argp2 = 0 ;
19461 int res2 = 0 ;
19462 int val3 ;
19463 int ecode3 = 0 ;
19464 int val4 ;
19465 int ecode4 = 0 ;
19466 bool val5 ;
19467 int ecode5 = 0 ;
19468 PyObject * obj0 = 0 ;
19469 PyObject * obj1 = 0 ;
19470 PyObject * obj2 = 0 ;
19471 PyObject * obj3 = 0 ;
19472 PyObject * obj4 = 0 ;
19473 char * kwnames[] = {
19474 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19475 };
19476
19477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19479 if (!SWIG_IsOK(res1)) {
19480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19481 }
19482 arg1 = reinterpret_cast< wxDC * >(argp1);
19483 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19484 if (!SWIG_IsOK(res2)) {
19485 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19486 }
19487 if (!argp2) {
19488 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19489 }
19490 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19491 ecode3 = SWIG_AsVal_int(obj2, &val3);
19492 if (!SWIG_IsOK(ecode3)) {
19493 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19494 }
19495 arg3 = static_cast< int >(val3);
19496 ecode4 = SWIG_AsVal_int(obj3, &val4);
19497 if (!SWIG_IsOK(ecode4)) {
19498 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19499 }
19500 arg4 = static_cast< int >(val4);
19501 if (obj4) {
19502 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19503 if (!SWIG_IsOK(ecode5)) {
19504 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19505 }
19506 arg5 = static_cast< bool >(val5);
19507 }
19508 {
19509 PyThreadState* __tstate = wxPyBeginAllowThreads();
19510 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19511 wxPyEndAllowThreads(__tstate);
19512 if (PyErr_Occurred()) SWIG_fail;
19513 }
19514 resultobj = SWIG_Py_Void();
19515 return resultobj;
19516 fail:
19517 return NULL;
19518 }
19519
19520
19521 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19522 PyObject *resultobj = 0;
19523 wxDC *arg1 = (wxDC *) 0 ;
19524 wxBitmap *arg2 = 0 ;
19525 wxPoint *arg3 = 0 ;
19526 bool arg4 = (bool) false ;
19527 void *argp1 = 0 ;
19528 int res1 = 0 ;
19529 void *argp2 = 0 ;
19530 int res2 = 0 ;
19531 wxPoint temp3 ;
19532 bool val4 ;
19533 int ecode4 = 0 ;
19534 PyObject * obj0 = 0 ;
19535 PyObject * obj1 = 0 ;
19536 PyObject * obj2 = 0 ;
19537 PyObject * obj3 = 0 ;
19538 char * kwnames[] = {
19539 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19540 };
19541
19542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19544 if (!SWIG_IsOK(res1)) {
19545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19546 }
19547 arg1 = reinterpret_cast< wxDC * >(argp1);
19548 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19549 if (!SWIG_IsOK(res2)) {
19550 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19551 }
19552 if (!argp2) {
19553 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19554 }
19555 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19556 {
19557 arg3 = &temp3;
19558 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19559 }
19560 if (obj3) {
19561 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19562 if (!SWIG_IsOK(ecode4)) {
19563 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19564 }
19565 arg4 = static_cast< bool >(val4);
19566 }
19567 {
19568 PyThreadState* __tstate = wxPyBeginAllowThreads();
19569 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19570 wxPyEndAllowThreads(__tstate);
19571 if (PyErr_Occurred()) SWIG_fail;
19572 }
19573 resultobj = SWIG_Py_Void();
19574 return resultobj;
19575 fail:
19576 return NULL;
19577 }
19578
19579
19580 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19581 PyObject *resultobj = 0;
19582 wxDC *arg1 = (wxDC *) 0 ;
19583 wxString *arg2 = 0 ;
19584 int arg3 ;
19585 int arg4 ;
19586 void *argp1 = 0 ;
19587 int res1 = 0 ;
19588 bool temp2 = false ;
19589 int val3 ;
19590 int ecode3 = 0 ;
19591 int val4 ;
19592 int ecode4 = 0 ;
19593 PyObject * obj0 = 0 ;
19594 PyObject * obj1 = 0 ;
19595 PyObject * obj2 = 0 ;
19596 PyObject * obj3 = 0 ;
19597 char * kwnames[] = {
19598 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19599 };
19600
19601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19603 if (!SWIG_IsOK(res1)) {
19604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19605 }
19606 arg1 = reinterpret_cast< wxDC * >(argp1);
19607 {
19608 arg2 = wxString_in_helper(obj1);
19609 if (arg2 == NULL) SWIG_fail;
19610 temp2 = true;
19611 }
19612 ecode3 = SWIG_AsVal_int(obj2, &val3);
19613 if (!SWIG_IsOK(ecode3)) {
19614 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19615 }
19616 arg3 = static_cast< int >(val3);
19617 ecode4 = SWIG_AsVal_int(obj3, &val4);
19618 if (!SWIG_IsOK(ecode4)) {
19619 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19620 }
19621 arg4 = static_cast< int >(val4);
19622 {
19623 PyThreadState* __tstate = wxPyBeginAllowThreads();
19624 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19625 wxPyEndAllowThreads(__tstate);
19626 if (PyErr_Occurred()) SWIG_fail;
19627 }
19628 resultobj = SWIG_Py_Void();
19629 {
19630 if (temp2)
19631 delete arg2;
19632 }
19633 return resultobj;
19634 fail:
19635 {
19636 if (temp2)
19637 delete arg2;
19638 }
19639 return NULL;
19640 }
19641
19642
19643 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19644 PyObject *resultobj = 0;
19645 wxDC *arg1 = (wxDC *) 0 ;
19646 wxString *arg2 = 0 ;
19647 wxPoint *arg3 = 0 ;
19648 void *argp1 = 0 ;
19649 int res1 = 0 ;
19650 bool temp2 = false ;
19651 wxPoint temp3 ;
19652 PyObject * obj0 = 0 ;
19653 PyObject * obj1 = 0 ;
19654 PyObject * obj2 = 0 ;
19655 char * kwnames[] = {
19656 (char *) "self",(char *) "text",(char *) "pt", NULL
19657 };
19658
19659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19661 if (!SWIG_IsOK(res1)) {
19662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19663 }
19664 arg1 = reinterpret_cast< wxDC * >(argp1);
19665 {
19666 arg2 = wxString_in_helper(obj1);
19667 if (arg2 == NULL) SWIG_fail;
19668 temp2 = true;
19669 }
19670 {
19671 arg3 = &temp3;
19672 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19673 }
19674 {
19675 PyThreadState* __tstate = wxPyBeginAllowThreads();
19676 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19677 wxPyEndAllowThreads(__tstate);
19678 if (PyErr_Occurred()) SWIG_fail;
19679 }
19680 resultobj = SWIG_Py_Void();
19681 {
19682 if (temp2)
19683 delete arg2;
19684 }
19685 return resultobj;
19686 fail:
19687 {
19688 if (temp2)
19689 delete arg2;
19690 }
19691 return NULL;
19692 }
19693
19694
19695 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19696 PyObject *resultobj = 0;
19697 wxDC *arg1 = (wxDC *) 0 ;
19698 wxString *arg2 = 0 ;
19699 int arg3 ;
19700 int arg4 ;
19701 double arg5 ;
19702 void *argp1 = 0 ;
19703 int res1 = 0 ;
19704 bool temp2 = false ;
19705 int val3 ;
19706 int ecode3 = 0 ;
19707 int val4 ;
19708 int ecode4 = 0 ;
19709 double val5 ;
19710 int ecode5 = 0 ;
19711 PyObject * obj0 = 0 ;
19712 PyObject * obj1 = 0 ;
19713 PyObject * obj2 = 0 ;
19714 PyObject * obj3 = 0 ;
19715 PyObject * obj4 = 0 ;
19716 char * kwnames[] = {
19717 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19718 };
19719
19720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19722 if (!SWIG_IsOK(res1)) {
19723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19724 }
19725 arg1 = reinterpret_cast< wxDC * >(argp1);
19726 {
19727 arg2 = wxString_in_helper(obj1);
19728 if (arg2 == NULL) SWIG_fail;
19729 temp2 = true;
19730 }
19731 ecode3 = SWIG_AsVal_int(obj2, &val3);
19732 if (!SWIG_IsOK(ecode3)) {
19733 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19734 }
19735 arg3 = static_cast< int >(val3);
19736 ecode4 = SWIG_AsVal_int(obj3, &val4);
19737 if (!SWIG_IsOK(ecode4)) {
19738 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19739 }
19740 arg4 = static_cast< int >(val4);
19741 ecode5 = SWIG_AsVal_double(obj4, &val5);
19742 if (!SWIG_IsOK(ecode5)) {
19743 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19744 }
19745 arg5 = static_cast< double >(val5);
19746 {
19747 PyThreadState* __tstate = wxPyBeginAllowThreads();
19748 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19749 wxPyEndAllowThreads(__tstate);
19750 if (PyErr_Occurred()) SWIG_fail;
19751 }
19752 resultobj = SWIG_Py_Void();
19753 {
19754 if (temp2)
19755 delete arg2;
19756 }
19757 return resultobj;
19758 fail:
19759 {
19760 if (temp2)
19761 delete arg2;
19762 }
19763 return NULL;
19764 }
19765
19766
19767 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19768 PyObject *resultobj = 0;
19769 wxDC *arg1 = (wxDC *) 0 ;
19770 wxString *arg2 = 0 ;
19771 wxPoint *arg3 = 0 ;
19772 double arg4 ;
19773 void *argp1 = 0 ;
19774 int res1 = 0 ;
19775 bool temp2 = false ;
19776 wxPoint temp3 ;
19777 double val4 ;
19778 int ecode4 = 0 ;
19779 PyObject * obj0 = 0 ;
19780 PyObject * obj1 = 0 ;
19781 PyObject * obj2 = 0 ;
19782 PyObject * obj3 = 0 ;
19783 char * kwnames[] = {
19784 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19785 };
19786
19787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19789 if (!SWIG_IsOK(res1)) {
19790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19791 }
19792 arg1 = reinterpret_cast< wxDC * >(argp1);
19793 {
19794 arg2 = wxString_in_helper(obj1);
19795 if (arg2 == NULL) SWIG_fail;
19796 temp2 = true;
19797 }
19798 {
19799 arg3 = &temp3;
19800 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19801 }
19802 ecode4 = SWIG_AsVal_double(obj3, &val4);
19803 if (!SWIG_IsOK(ecode4)) {
19804 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19805 }
19806 arg4 = static_cast< double >(val4);
19807 {
19808 PyThreadState* __tstate = wxPyBeginAllowThreads();
19809 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19810 wxPyEndAllowThreads(__tstate);
19811 if (PyErr_Occurred()) SWIG_fail;
19812 }
19813 resultobj = SWIG_Py_Void();
19814 {
19815 if (temp2)
19816 delete arg2;
19817 }
19818 return resultobj;
19819 fail:
19820 {
19821 if (temp2)
19822 delete arg2;
19823 }
19824 return NULL;
19825 }
19826
19827
19828 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19829 PyObject *resultobj = 0;
19830 wxDC *arg1 = (wxDC *) 0 ;
19831 int arg2 ;
19832 int arg3 ;
19833 int arg4 ;
19834 int arg5 ;
19835 wxDC *arg6 = (wxDC *) 0 ;
19836 int arg7 ;
19837 int arg8 ;
19838 int arg9 = (int) wxCOPY ;
19839 bool arg10 = (bool) false ;
19840 int arg11 = (int) -1 ;
19841 int arg12 = (int) -1 ;
19842 bool result;
19843 void *argp1 = 0 ;
19844 int res1 = 0 ;
19845 int val2 ;
19846 int ecode2 = 0 ;
19847 int val3 ;
19848 int ecode3 = 0 ;
19849 int val4 ;
19850 int ecode4 = 0 ;
19851 int val5 ;
19852 int ecode5 = 0 ;
19853 void *argp6 = 0 ;
19854 int res6 = 0 ;
19855 int val7 ;
19856 int ecode7 = 0 ;
19857 int val8 ;
19858 int ecode8 = 0 ;
19859 int val9 ;
19860 int ecode9 = 0 ;
19861 bool val10 ;
19862 int ecode10 = 0 ;
19863 int val11 ;
19864 int ecode11 = 0 ;
19865 int val12 ;
19866 int ecode12 = 0 ;
19867 PyObject * obj0 = 0 ;
19868 PyObject * obj1 = 0 ;
19869 PyObject * obj2 = 0 ;
19870 PyObject * obj3 = 0 ;
19871 PyObject * obj4 = 0 ;
19872 PyObject * obj5 = 0 ;
19873 PyObject * obj6 = 0 ;
19874 PyObject * obj7 = 0 ;
19875 PyObject * obj8 = 0 ;
19876 PyObject * obj9 = 0 ;
19877 PyObject * obj10 = 0 ;
19878 PyObject * obj11 = 0 ;
19879 char * kwnames[] = {
19880 (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
19881 };
19882
19883 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;
19884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19885 if (!SWIG_IsOK(res1)) {
19886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19887 }
19888 arg1 = reinterpret_cast< wxDC * >(argp1);
19889 ecode2 = SWIG_AsVal_int(obj1, &val2);
19890 if (!SWIG_IsOK(ecode2)) {
19891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19892 }
19893 arg2 = static_cast< int >(val2);
19894 ecode3 = SWIG_AsVal_int(obj2, &val3);
19895 if (!SWIG_IsOK(ecode3)) {
19896 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19897 }
19898 arg3 = static_cast< int >(val3);
19899 ecode4 = SWIG_AsVal_int(obj3, &val4);
19900 if (!SWIG_IsOK(ecode4)) {
19901 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19902 }
19903 arg4 = static_cast< int >(val4);
19904 ecode5 = SWIG_AsVal_int(obj4, &val5);
19905 if (!SWIG_IsOK(ecode5)) {
19906 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19907 }
19908 arg5 = static_cast< int >(val5);
19909 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19910 if (!SWIG_IsOK(res6)) {
19911 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19912 }
19913 arg6 = reinterpret_cast< wxDC * >(argp6);
19914 ecode7 = SWIG_AsVal_int(obj6, &val7);
19915 if (!SWIG_IsOK(ecode7)) {
19916 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19917 }
19918 arg7 = static_cast< int >(val7);
19919 ecode8 = SWIG_AsVal_int(obj7, &val8);
19920 if (!SWIG_IsOK(ecode8)) {
19921 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19922 }
19923 arg8 = static_cast< int >(val8);
19924 if (obj8) {
19925 ecode9 = SWIG_AsVal_int(obj8, &val9);
19926 if (!SWIG_IsOK(ecode9)) {
19927 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19928 }
19929 arg9 = static_cast< int >(val9);
19930 }
19931 if (obj9) {
19932 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19933 if (!SWIG_IsOK(ecode10)) {
19934 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19935 }
19936 arg10 = static_cast< bool >(val10);
19937 }
19938 if (obj10) {
19939 ecode11 = SWIG_AsVal_int(obj10, &val11);
19940 if (!SWIG_IsOK(ecode11)) {
19941 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19942 }
19943 arg11 = static_cast< int >(val11);
19944 }
19945 if (obj11) {
19946 ecode12 = SWIG_AsVal_int(obj11, &val12);
19947 if (!SWIG_IsOK(ecode12)) {
19948 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19949 }
19950 arg12 = static_cast< int >(val12);
19951 }
19952 {
19953 PyThreadState* __tstate = wxPyBeginAllowThreads();
19954 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19955 wxPyEndAllowThreads(__tstate);
19956 if (PyErr_Occurred()) SWIG_fail;
19957 }
19958 {
19959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19960 }
19961 return resultobj;
19962 fail:
19963 return NULL;
19964 }
19965
19966
19967 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19968 PyObject *resultobj = 0;
19969 wxDC *arg1 = (wxDC *) 0 ;
19970 wxPoint *arg2 = 0 ;
19971 wxSize *arg3 = 0 ;
19972 wxDC *arg4 = (wxDC *) 0 ;
19973 wxPoint *arg5 = 0 ;
19974 int arg6 = (int) wxCOPY ;
19975 bool arg7 = (bool) false ;
19976 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19977 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19978 bool result;
19979 void *argp1 = 0 ;
19980 int res1 = 0 ;
19981 wxPoint temp2 ;
19982 wxSize temp3 ;
19983 void *argp4 = 0 ;
19984 int res4 = 0 ;
19985 wxPoint temp5 ;
19986 int val6 ;
19987 int ecode6 = 0 ;
19988 bool val7 ;
19989 int ecode7 = 0 ;
19990 wxPoint temp8 ;
19991 PyObject * obj0 = 0 ;
19992 PyObject * obj1 = 0 ;
19993 PyObject * obj2 = 0 ;
19994 PyObject * obj3 = 0 ;
19995 PyObject * obj4 = 0 ;
19996 PyObject * obj5 = 0 ;
19997 PyObject * obj6 = 0 ;
19998 PyObject * obj7 = 0 ;
19999 char * kwnames[] = {
20000 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
20001 };
20002
20003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
20004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20005 if (!SWIG_IsOK(res1)) {
20006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20007 }
20008 arg1 = reinterpret_cast< wxDC * >(argp1);
20009 {
20010 arg2 = &temp2;
20011 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20012 }
20013 {
20014 arg3 = &temp3;
20015 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20016 }
20017 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20018 if (!SWIG_IsOK(res4)) {
20019 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20020 }
20021 arg4 = reinterpret_cast< wxDC * >(argp4);
20022 {
20023 arg5 = &temp5;
20024 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20025 }
20026 if (obj5) {
20027 ecode6 = SWIG_AsVal_int(obj5, &val6);
20028 if (!SWIG_IsOK(ecode6)) {
20029 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
20030 }
20031 arg6 = static_cast< int >(val6);
20032 }
20033 if (obj6) {
20034 ecode7 = SWIG_AsVal_bool(obj6, &val7);
20035 if (!SWIG_IsOK(ecode7)) {
20036 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
20037 }
20038 arg7 = static_cast< bool >(val7);
20039 }
20040 if (obj7) {
20041 {
20042 arg8 = &temp8;
20043 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
20044 }
20045 }
20046 {
20047 PyThreadState* __tstate = wxPyBeginAllowThreads();
20048 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
20049 wxPyEndAllowThreads(__tstate);
20050 if (PyErr_Occurred()) SWIG_fail;
20051 }
20052 {
20053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20054 }
20055 return resultobj;
20056 fail:
20057 return NULL;
20058 }
20059
20060
20061 SWIGINTERN PyObject *_wrap_DC_StretchBlit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20062 PyObject *resultobj = 0;
20063 wxDC *arg1 = (wxDC *) 0 ;
20064 int arg2 ;
20065 int arg3 ;
20066 int arg4 ;
20067 int arg5 ;
20068 wxDC *arg6 = (wxDC *) 0 ;
20069 int arg7 ;
20070 int arg8 ;
20071 int arg9 ;
20072 int arg10 ;
20073 int arg11 = (int) wxCOPY ;
20074 bool arg12 = (bool) false ;
20075 int arg13 = (int) wxDefaultCoord ;
20076 int arg14 = (int) wxDefaultCoord ;
20077 bool result;
20078 void *argp1 = 0 ;
20079 int res1 = 0 ;
20080 int val2 ;
20081 int ecode2 = 0 ;
20082 int val3 ;
20083 int ecode3 = 0 ;
20084 int val4 ;
20085 int ecode4 = 0 ;
20086 int val5 ;
20087 int ecode5 = 0 ;
20088 void *argp6 = 0 ;
20089 int res6 = 0 ;
20090 int val7 ;
20091 int ecode7 = 0 ;
20092 int val8 ;
20093 int ecode8 = 0 ;
20094 int val9 ;
20095 int ecode9 = 0 ;
20096 int val10 ;
20097 int ecode10 = 0 ;
20098 int val11 ;
20099 int ecode11 = 0 ;
20100 bool val12 ;
20101 int ecode12 = 0 ;
20102 int val13 ;
20103 int ecode13 = 0 ;
20104 int val14 ;
20105 int ecode14 = 0 ;
20106 PyObject * obj0 = 0 ;
20107 PyObject * obj1 = 0 ;
20108 PyObject * obj2 = 0 ;
20109 PyObject * obj3 = 0 ;
20110 PyObject * obj4 = 0 ;
20111 PyObject * obj5 = 0 ;
20112 PyObject * obj6 = 0 ;
20113 PyObject * obj7 = 0 ;
20114 PyObject * obj8 = 0 ;
20115 PyObject * obj9 = 0 ;
20116 PyObject * obj10 = 0 ;
20117 PyObject * obj11 = 0 ;
20118 PyObject * obj12 = 0 ;
20119 PyObject * obj13 = 0 ;
20120 char * kwnames[] = {
20121 (char *) "self",(char *) "dstX",(char *) "dstY",(char *) "dstWidth",(char *) "dstHeight",(char *) "source",(char *) "srcX",(char *) "srcY",(char *) "srcWidth",(char *) "srcHeight",(char *) "rop",(char *) "useMask",(char *) "srcMaskX",(char *) "srcMaskY", NULL
20122 };
20123
20124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOOOO|OOOO:DC_StretchBlit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13)) SWIG_fail;
20125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20126 if (!SWIG_IsOK(res1)) {
20127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StretchBlit" "', expected argument " "1"" of type '" "wxDC *""'");
20128 }
20129 arg1 = reinterpret_cast< wxDC * >(argp1);
20130 ecode2 = SWIG_AsVal_int(obj1, &val2);
20131 if (!SWIG_IsOK(ecode2)) {
20132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_StretchBlit" "', expected argument " "2"" of type '" "int""'");
20133 }
20134 arg2 = static_cast< int >(val2);
20135 ecode3 = SWIG_AsVal_int(obj2, &val3);
20136 if (!SWIG_IsOK(ecode3)) {
20137 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_StretchBlit" "', expected argument " "3"" of type '" "int""'");
20138 }
20139 arg3 = static_cast< int >(val3);
20140 ecode4 = SWIG_AsVal_int(obj3, &val4);
20141 if (!SWIG_IsOK(ecode4)) {
20142 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_StretchBlit" "', expected argument " "4"" of type '" "int""'");
20143 }
20144 arg4 = static_cast< int >(val4);
20145 ecode5 = SWIG_AsVal_int(obj4, &val5);
20146 if (!SWIG_IsOK(ecode5)) {
20147 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_StretchBlit" "', expected argument " "5"" of type '" "int""'");
20148 }
20149 arg5 = static_cast< int >(val5);
20150 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
20151 if (!SWIG_IsOK(res6)) {
20152 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_StretchBlit" "', expected argument " "6"" of type '" "wxDC *""'");
20153 }
20154 arg6 = reinterpret_cast< wxDC * >(argp6);
20155 ecode7 = SWIG_AsVal_int(obj6, &val7);
20156 if (!SWIG_IsOK(ecode7)) {
20157 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_StretchBlit" "', expected argument " "7"" of type '" "int""'");
20158 }
20159 arg7 = static_cast< int >(val7);
20160 ecode8 = SWIG_AsVal_int(obj7, &val8);
20161 if (!SWIG_IsOK(ecode8)) {
20162 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_StretchBlit" "', expected argument " "8"" of type '" "int""'");
20163 }
20164 arg8 = static_cast< int >(val8);
20165 ecode9 = SWIG_AsVal_int(obj8, &val9);
20166 if (!SWIG_IsOK(ecode9)) {
20167 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_StretchBlit" "', expected argument " "9"" of type '" "int""'");
20168 }
20169 arg9 = static_cast< int >(val9);
20170 ecode10 = SWIG_AsVal_int(obj9, &val10);
20171 if (!SWIG_IsOK(ecode10)) {
20172 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_StretchBlit" "', expected argument " "10"" of type '" "int""'");
20173 }
20174 arg10 = static_cast< int >(val10);
20175 if (obj10) {
20176 ecode11 = SWIG_AsVal_int(obj10, &val11);
20177 if (!SWIG_IsOK(ecode11)) {
20178 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_StretchBlit" "', expected argument " "11"" of type '" "int""'");
20179 }
20180 arg11 = static_cast< int >(val11);
20181 }
20182 if (obj11) {
20183 ecode12 = SWIG_AsVal_bool(obj11, &val12);
20184 if (!SWIG_IsOK(ecode12)) {
20185 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_StretchBlit" "', expected argument " "12"" of type '" "bool""'");
20186 }
20187 arg12 = static_cast< bool >(val12);
20188 }
20189 if (obj12) {
20190 ecode13 = SWIG_AsVal_int(obj12, &val13);
20191 if (!SWIG_IsOK(ecode13)) {
20192 SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "DC_StretchBlit" "', expected argument " "13"" of type '" "int""'");
20193 }
20194 arg13 = static_cast< int >(val13);
20195 }
20196 if (obj13) {
20197 ecode14 = SWIG_AsVal_int(obj13, &val14);
20198 if (!SWIG_IsOK(ecode14)) {
20199 SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "DC_StretchBlit" "', expected argument " "14"" of type '" "int""'");
20200 }
20201 arg14 = static_cast< int >(val14);
20202 }
20203 {
20204 PyThreadState* __tstate = wxPyBeginAllowThreads();
20205 result = (bool)(arg1)->StretchBlit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14);
20206 wxPyEndAllowThreads(__tstate);
20207 if (PyErr_Occurred()) SWIG_fail;
20208 }
20209 {
20210 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20211 }
20212 return resultobj;
20213 fail:
20214 return NULL;
20215 }
20216
20217
20218 SWIGINTERN PyObject *_wrap_DC_StretchBlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20219 PyObject *resultobj = 0;
20220 wxDC *arg1 = (wxDC *) 0 ;
20221 wxPoint *arg2 = 0 ;
20222 wxSize *arg3 = 0 ;
20223 wxDC *arg4 = (wxDC *) 0 ;
20224 wxPoint *arg5 = 0 ;
20225 wxSize *arg6 = 0 ;
20226 int arg7 = (int) wxCOPY ;
20227 bool arg8 = (bool) false ;
20228 wxPoint const &arg9_defvalue = wxDefaultPosition ;
20229 wxPoint *arg9 = (wxPoint *) &arg9_defvalue ;
20230 bool result;
20231 void *argp1 = 0 ;
20232 int res1 = 0 ;
20233 wxPoint temp2 ;
20234 wxSize temp3 ;
20235 void *argp4 = 0 ;
20236 int res4 = 0 ;
20237 wxPoint temp5 ;
20238 wxSize temp6 ;
20239 int val7 ;
20240 int ecode7 = 0 ;
20241 bool val8 ;
20242 int ecode8 = 0 ;
20243 wxPoint temp9 ;
20244 PyObject * obj0 = 0 ;
20245 PyObject * obj1 = 0 ;
20246 PyObject * obj2 = 0 ;
20247 PyObject * obj3 = 0 ;
20248 PyObject * obj4 = 0 ;
20249 PyObject * obj5 = 0 ;
20250 PyObject * obj6 = 0 ;
20251 PyObject * obj7 = 0 ;
20252 PyObject * obj8 = 0 ;
20253 char * kwnames[] = {
20254 (char *) "self",(char *) "dstPt",(char *) "dstSize",(char *) "source",(char *) "srcPt",(char *) "srcSize",(char *) "rop",(char *) "useMask",(char *) "srcMaskPt", NULL
20255 };
20256
20257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOO:DC_StretchBlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
20258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20259 if (!SWIG_IsOK(res1)) {
20260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StretchBlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20261 }
20262 arg1 = reinterpret_cast< wxDC * >(argp1);
20263 {
20264 arg2 = &temp2;
20265 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20266 }
20267 {
20268 arg3 = &temp3;
20269 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20270 }
20271 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20272 if (!SWIG_IsOK(res4)) {
20273 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_StretchBlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20274 }
20275 arg4 = reinterpret_cast< wxDC * >(argp4);
20276 {
20277 arg5 = &temp5;
20278 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20279 }
20280 {
20281 arg6 = &temp6;
20282 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
20283 }
20284 if (obj6) {
20285 ecode7 = SWIG_AsVal_int(obj6, &val7);
20286 if (!SWIG_IsOK(ecode7)) {
20287 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_StretchBlitPointSize" "', expected argument " "7"" of type '" "int""'");
20288 }
20289 arg7 = static_cast< int >(val7);
20290 }
20291 if (obj7) {
20292 ecode8 = SWIG_AsVal_bool(obj7, &val8);
20293 if (!SWIG_IsOK(ecode8)) {
20294 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_StretchBlitPointSize" "', expected argument " "8"" of type '" "bool""'");
20295 }
20296 arg8 = static_cast< bool >(val8);
20297 }
20298 if (obj8) {
20299 {
20300 arg9 = &temp9;
20301 if ( ! wxPoint_helper(obj8, &arg9)) SWIG_fail;
20302 }
20303 }
20304 {
20305 PyThreadState* __tstate = wxPyBeginAllowThreads();
20306 result = (bool)(arg1)->StretchBlit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,(wxPoint const &)*arg9);
20307 wxPyEndAllowThreads(__tstate);
20308 if (PyErr_Occurred()) SWIG_fail;
20309 }
20310 {
20311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20312 }
20313 return resultobj;
20314 fail:
20315 return NULL;
20316 }
20317
20318
20319 SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20320 PyObject *resultobj = 0;
20321 wxDC *arg1 = (wxDC *) 0 ;
20322 wxRect *arg2 = (wxRect *) NULL ;
20323 SwigValueWrapper<wxBitmap > result;
20324 void *argp1 = 0 ;
20325 int res1 = 0 ;
20326 void *argp2 = 0 ;
20327 int res2 = 0 ;
20328 PyObject * obj0 = 0 ;
20329 PyObject * obj1 = 0 ;
20330 char * kwnames[] = {
20331 (char *) "self",(char *) "subrect", NULL
20332 };
20333
20334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
20335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20336 if (!SWIG_IsOK(res1)) {
20337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
20338 }
20339 arg1 = reinterpret_cast< wxDC * >(argp1);
20340 if (obj1) {
20341 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
20342 if (!SWIG_IsOK(res2)) {
20343 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
20344 }
20345 arg2 = reinterpret_cast< wxRect * >(argp2);
20346 }
20347 {
20348 PyThreadState* __tstate = wxPyBeginAllowThreads();
20349 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
20350 wxPyEndAllowThreads(__tstate);
20351 if (PyErr_Occurred()) SWIG_fail;
20352 }
20353 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
20354 return resultobj;
20355 fail:
20356 return NULL;
20357 }
20358
20359
20360 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20361 PyObject *resultobj = 0;
20362 wxDC *arg1 = (wxDC *) 0 ;
20363 int arg2 ;
20364 int arg3 ;
20365 int arg4 ;
20366 int arg5 ;
20367 void *argp1 = 0 ;
20368 int res1 = 0 ;
20369 int val2 ;
20370 int ecode2 = 0 ;
20371 int val3 ;
20372 int ecode3 = 0 ;
20373 int val4 ;
20374 int ecode4 = 0 ;
20375 int val5 ;
20376 int ecode5 = 0 ;
20377 PyObject * obj0 = 0 ;
20378 PyObject * obj1 = 0 ;
20379 PyObject * obj2 = 0 ;
20380 PyObject * obj3 = 0 ;
20381 PyObject * obj4 = 0 ;
20382 char * kwnames[] = {
20383 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
20384 };
20385
20386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20388 if (!SWIG_IsOK(res1)) {
20389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20390 }
20391 arg1 = reinterpret_cast< wxDC * >(argp1);
20392 ecode2 = SWIG_AsVal_int(obj1, &val2);
20393 if (!SWIG_IsOK(ecode2)) {
20394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
20395 }
20396 arg2 = static_cast< int >(val2);
20397 ecode3 = SWIG_AsVal_int(obj2, &val3);
20398 if (!SWIG_IsOK(ecode3)) {
20399 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
20400 }
20401 arg3 = static_cast< int >(val3);
20402 ecode4 = SWIG_AsVal_int(obj3, &val4);
20403 if (!SWIG_IsOK(ecode4)) {
20404 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
20405 }
20406 arg4 = static_cast< int >(val4);
20407 ecode5 = SWIG_AsVal_int(obj4, &val5);
20408 if (!SWIG_IsOK(ecode5)) {
20409 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
20410 }
20411 arg5 = static_cast< int >(val5);
20412 {
20413 PyThreadState* __tstate = wxPyBeginAllowThreads();
20414 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
20415 wxPyEndAllowThreads(__tstate);
20416 if (PyErr_Occurred()) SWIG_fail;
20417 }
20418 resultobj = SWIG_Py_Void();
20419 return resultobj;
20420 fail:
20421 return NULL;
20422 }
20423
20424
20425 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20426 PyObject *resultobj = 0;
20427 wxDC *arg1 = (wxDC *) 0 ;
20428 wxPoint *arg2 = 0 ;
20429 wxSize *arg3 = 0 ;
20430 void *argp1 = 0 ;
20431 int res1 = 0 ;
20432 wxPoint temp2 ;
20433 wxSize temp3 ;
20434 PyObject * obj0 = 0 ;
20435 PyObject * obj1 = 0 ;
20436 PyObject * obj2 = 0 ;
20437 char * kwnames[] = {
20438 (char *) "self",(char *) "pt",(char *) "sz", NULL
20439 };
20440
20441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20443 if (!SWIG_IsOK(res1)) {
20444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20445 }
20446 arg1 = reinterpret_cast< wxDC * >(argp1);
20447 {
20448 arg2 = &temp2;
20449 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20450 }
20451 {
20452 arg3 = &temp3;
20453 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20454 }
20455 {
20456 PyThreadState* __tstate = wxPyBeginAllowThreads();
20457 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20458 wxPyEndAllowThreads(__tstate);
20459 if (PyErr_Occurred()) SWIG_fail;
20460 }
20461 resultobj = SWIG_Py_Void();
20462 return resultobj;
20463 fail:
20464 return NULL;
20465 }
20466
20467
20468 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20469 PyObject *resultobj = 0;
20470 wxDC *arg1 = (wxDC *) 0 ;
20471 wxRegion *arg2 = 0 ;
20472 void *argp1 = 0 ;
20473 int res1 = 0 ;
20474 void *argp2 = 0 ;
20475 int res2 = 0 ;
20476 PyObject * obj0 = 0 ;
20477 PyObject * obj1 = 0 ;
20478 char * kwnames[] = {
20479 (char *) "self",(char *) "region", NULL
20480 };
20481
20482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20484 if (!SWIG_IsOK(res1)) {
20485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20486 }
20487 arg1 = reinterpret_cast< wxDC * >(argp1);
20488 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20489 if (!SWIG_IsOK(res2)) {
20490 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20491 }
20492 if (!argp2) {
20493 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20494 }
20495 arg2 = reinterpret_cast< wxRegion * >(argp2);
20496 {
20497 PyThreadState* __tstate = wxPyBeginAllowThreads();
20498 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20499 wxPyEndAllowThreads(__tstate);
20500 if (PyErr_Occurred()) SWIG_fail;
20501 }
20502 resultobj = SWIG_Py_Void();
20503 return resultobj;
20504 fail:
20505 return NULL;
20506 }
20507
20508
20509 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20510 PyObject *resultobj = 0;
20511 wxDC *arg1 = (wxDC *) 0 ;
20512 wxRect *arg2 = 0 ;
20513 void *argp1 = 0 ;
20514 int res1 = 0 ;
20515 wxRect temp2 ;
20516 PyObject * obj0 = 0 ;
20517 PyObject * obj1 = 0 ;
20518 char * kwnames[] = {
20519 (char *) "self",(char *) "rect", NULL
20520 };
20521
20522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20524 if (!SWIG_IsOK(res1)) {
20525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20526 }
20527 arg1 = reinterpret_cast< wxDC * >(argp1);
20528 {
20529 arg2 = &temp2;
20530 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20531 }
20532 {
20533 PyThreadState* __tstate = wxPyBeginAllowThreads();
20534 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20535 wxPyEndAllowThreads(__tstate);
20536 if (PyErr_Occurred()) SWIG_fail;
20537 }
20538 resultobj = SWIG_Py_Void();
20539 return resultobj;
20540 fail:
20541 return NULL;
20542 }
20543
20544
20545 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20546 PyObject *resultobj = 0;
20547 wxDC *arg1 = (wxDC *) 0 ;
20548 int arg2 ;
20549 wxPoint *arg3 = (wxPoint *) 0 ;
20550 int arg4 = (int) 0 ;
20551 int arg5 = (int) 0 ;
20552 void *argp1 = 0 ;
20553 int res1 = 0 ;
20554 int val4 ;
20555 int ecode4 = 0 ;
20556 int val5 ;
20557 int ecode5 = 0 ;
20558 PyObject * obj0 = 0 ;
20559 PyObject * obj1 = 0 ;
20560 PyObject * obj2 = 0 ;
20561 PyObject * obj3 = 0 ;
20562 char * kwnames[] = {
20563 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20564 };
20565
20566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20568 if (!SWIG_IsOK(res1)) {
20569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20570 }
20571 arg1 = reinterpret_cast< wxDC * >(argp1);
20572 {
20573 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20574 if (arg3 == NULL) SWIG_fail;
20575 }
20576 if (obj2) {
20577 ecode4 = SWIG_AsVal_int(obj2, &val4);
20578 if (!SWIG_IsOK(ecode4)) {
20579 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20580 }
20581 arg4 = static_cast< int >(val4);
20582 }
20583 if (obj3) {
20584 ecode5 = SWIG_AsVal_int(obj3, &val5);
20585 if (!SWIG_IsOK(ecode5)) {
20586 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20587 }
20588 arg5 = static_cast< int >(val5);
20589 }
20590 {
20591 PyThreadState* __tstate = wxPyBeginAllowThreads();
20592 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20593 wxPyEndAllowThreads(__tstate);
20594 if (PyErr_Occurred()) SWIG_fail;
20595 }
20596 resultobj = SWIG_Py_Void();
20597 {
20598 if (arg3) delete [] arg3;
20599 }
20600 return resultobj;
20601 fail:
20602 {
20603 if (arg3) delete [] arg3;
20604 }
20605 return NULL;
20606 }
20607
20608
20609 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20610 PyObject *resultobj = 0;
20611 wxDC *arg1 = (wxDC *) 0 ;
20612 int arg2 ;
20613 wxPoint *arg3 = (wxPoint *) 0 ;
20614 int arg4 = (int) 0 ;
20615 int arg5 = (int) 0 ;
20616 int arg6 = (int) wxODDEVEN_RULE ;
20617 void *argp1 = 0 ;
20618 int res1 = 0 ;
20619 int val4 ;
20620 int ecode4 = 0 ;
20621 int val5 ;
20622 int ecode5 = 0 ;
20623 int val6 ;
20624 int ecode6 = 0 ;
20625 PyObject * obj0 = 0 ;
20626 PyObject * obj1 = 0 ;
20627 PyObject * obj2 = 0 ;
20628 PyObject * obj3 = 0 ;
20629 PyObject * obj4 = 0 ;
20630 char * kwnames[] = {
20631 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20632 };
20633
20634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20636 if (!SWIG_IsOK(res1)) {
20637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20638 }
20639 arg1 = reinterpret_cast< wxDC * >(argp1);
20640 {
20641 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20642 if (arg3 == NULL) SWIG_fail;
20643 }
20644 if (obj2) {
20645 ecode4 = SWIG_AsVal_int(obj2, &val4);
20646 if (!SWIG_IsOK(ecode4)) {
20647 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20648 }
20649 arg4 = static_cast< int >(val4);
20650 }
20651 if (obj3) {
20652 ecode5 = SWIG_AsVal_int(obj3, &val5);
20653 if (!SWIG_IsOK(ecode5)) {
20654 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20655 }
20656 arg5 = static_cast< int >(val5);
20657 }
20658 if (obj4) {
20659 ecode6 = SWIG_AsVal_int(obj4, &val6);
20660 if (!SWIG_IsOK(ecode6)) {
20661 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20662 }
20663 arg6 = static_cast< int >(val6);
20664 }
20665 {
20666 PyThreadState* __tstate = wxPyBeginAllowThreads();
20667 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20668 wxPyEndAllowThreads(__tstate);
20669 if (PyErr_Occurred()) SWIG_fail;
20670 }
20671 resultobj = SWIG_Py_Void();
20672 {
20673 if (arg3) delete [] arg3;
20674 }
20675 return resultobj;
20676 fail:
20677 {
20678 if (arg3) delete [] arg3;
20679 }
20680 return NULL;
20681 }
20682
20683
20684 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20685 PyObject *resultobj = 0;
20686 wxDC *arg1 = (wxDC *) 0 ;
20687 wxString *arg2 = 0 ;
20688 wxRect *arg3 = 0 ;
20689 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20690 int arg5 = (int) -1 ;
20691 void *argp1 = 0 ;
20692 int res1 = 0 ;
20693 bool temp2 = false ;
20694 wxRect temp3 ;
20695 int val4 ;
20696 int ecode4 = 0 ;
20697 int val5 ;
20698 int ecode5 = 0 ;
20699 PyObject * obj0 = 0 ;
20700 PyObject * obj1 = 0 ;
20701 PyObject * obj2 = 0 ;
20702 PyObject * obj3 = 0 ;
20703 PyObject * obj4 = 0 ;
20704 char * kwnames[] = {
20705 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20706 };
20707
20708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20710 if (!SWIG_IsOK(res1)) {
20711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20712 }
20713 arg1 = reinterpret_cast< wxDC * >(argp1);
20714 {
20715 arg2 = wxString_in_helper(obj1);
20716 if (arg2 == NULL) SWIG_fail;
20717 temp2 = true;
20718 }
20719 {
20720 arg3 = &temp3;
20721 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20722 }
20723 if (obj3) {
20724 ecode4 = SWIG_AsVal_int(obj3, &val4);
20725 if (!SWIG_IsOK(ecode4)) {
20726 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20727 }
20728 arg4 = static_cast< int >(val4);
20729 }
20730 if (obj4) {
20731 ecode5 = SWIG_AsVal_int(obj4, &val5);
20732 if (!SWIG_IsOK(ecode5)) {
20733 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20734 }
20735 arg5 = static_cast< int >(val5);
20736 }
20737 {
20738 PyThreadState* __tstate = wxPyBeginAllowThreads();
20739 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20740 wxPyEndAllowThreads(__tstate);
20741 if (PyErr_Occurred()) SWIG_fail;
20742 }
20743 resultobj = SWIG_Py_Void();
20744 {
20745 if (temp2)
20746 delete arg2;
20747 }
20748 return resultobj;
20749 fail:
20750 {
20751 if (temp2)
20752 delete arg2;
20753 }
20754 return NULL;
20755 }
20756
20757
20758 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20759 PyObject *resultobj = 0;
20760 wxDC *arg1 = (wxDC *) 0 ;
20761 wxString *arg2 = 0 ;
20762 wxBitmap *arg3 = 0 ;
20763 wxRect *arg4 = 0 ;
20764 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20765 int arg6 = (int) -1 ;
20766 wxRect result;
20767 void *argp1 = 0 ;
20768 int res1 = 0 ;
20769 bool temp2 = false ;
20770 void *argp3 = 0 ;
20771 int res3 = 0 ;
20772 wxRect temp4 ;
20773 int val5 ;
20774 int ecode5 = 0 ;
20775 int val6 ;
20776 int ecode6 = 0 ;
20777 PyObject * obj0 = 0 ;
20778 PyObject * obj1 = 0 ;
20779 PyObject * obj2 = 0 ;
20780 PyObject * obj3 = 0 ;
20781 PyObject * obj4 = 0 ;
20782 PyObject * obj5 = 0 ;
20783 char * kwnames[] = {
20784 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20785 };
20786
20787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20789 if (!SWIG_IsOK(res1)) {
20790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20791 }
20792 arg1 = reinterpret_cast< wxDC * >(argp1);
20793 {
20794 arg2 = wxString_in_helper(obj1);
20795 if (arg2 == NULL) SWIG_fail;
20796 temp2 = true;
20797 }
20798 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20799 if (!SWIG_IsOK(res3)) {
20800 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20801 }
20802 if (!argp3) {
20803 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20804 }
20805 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20806 {
20807 arg4 = &temp4;
20808 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20809 }
20810 if (obj4) {
20811 ecode5 = SWIG_AsVal_int(obj4, &val5);
20812 if (!SWIG_IsOK(ecode5)) {
20813 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20814 }
20815 arg5 = static_cast< int >(val5);
20816 }
20817 if (obj5) {
20818 ecode6 = SWIG_AsVal_int(obj5, &val6);
20819 if (!SWIG_IsOK(ecode6)) {
20820 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20821 }
20822 arg6 = static_cast< int >(val6);
20823 }
20824 {
20825 PyThreadState* __tstate = wxPyBeginAllowThreads();
20826 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20827 wxPyEndAllowThreads(__tstate);
20828 if (PyErr_Occurred()) SWIG_fail;
20829 }
20830 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20831 {
20832 if (temp2)
20833 delete arg2;
20834 }
20835 return resultobj;
20836 fail:
20837 {
20838 if (temp2)
20839 delete arg2;
20840 }
20841 return NULL;
20842 }
20843
20844
20845 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20846 PyObject *resultobj = 0;
20847 wxDC *arg1 = (wxDC *) 0 ;
20848 int arg2 ;
20849 wxPoint *arg3 = (wxPoint *) 0 ;
20850 void *argp1 = 0 ;
20851 int res1 = 0 ;
20852 PyObject * obj0 = 0 ;
20853 PyObject * obj1 = 0 ;
20854 char * kwnames[] = {
20855 (char *) "self",(char *) "points", NULL
20856 };
20857
20858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20860 if (!SWIG_IsOK(res1)) {
20861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20862 }
20863 arg1 = reinterpret_cast< wxDC * >(argp1);
20864 {
20865 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20866 if (arg3 == NULL) SWIG_fail;
20867 }
20868 {
20869 PyThreadState* __tstate = wxPyBeginAllowThreads();
20870 (arg1)->DrawSpline(arg2,arg3);
20871 wxPyEndAllowThreads(__tstate);
20872 if (PyErr_Occurred()) SWIG_fail;
20873 }
20874 resultobj = SWIG_Py_Void();
20875 {
20876 if (arg3) delete [] arg3;
20877 }
20878 return resultobj;
20879 fail:
20880 {
20881 if (arg3) delete [] arg3;
20882 }
20883 return NULL;
20884 }
20885
20886
20887 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20888 PyObject *resultobj = 0;
20889 wxDC *arg1 = (wxDC *) 0 ;
20890 void *argp1 = 0 ;
20891 int res1 = 0 ;
20892 PyObject *swig_obj[1] ;
20893
20894 if (!args) SWIG_fail;
20895 swig_obj[0] = args;
20896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20897 if (!SWIG_IsOK(res1)) {
20898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20899 }
20900 arg1 = reinterpret_cast< wxDC * >(argp1);
20901 {
20902 PyThreadState* __tstate = wxPyBeginAllowThreads();
20903 (arg1)->Clear();
20904 wxPyEndAllowThreads(__tstate);
20905 if (PyErr_Occurred()) SWIG_fail;
20906 }
20907 resultobj = SWIG_Py_Void();
20908 return resultobj;
20909 fail:
20910 return NULL;
20911 }
20912
20913
20914 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20915 PyObject *resultobj = 0;
20916 wxDC *arg1 = (wxDC *) 0 ;
20917 wxString *arg2 = 0 ;
20918 bool result;
20919 void *argp1 = 0 ;
20920 int res1 = 0 ;
20921 bool temp2 = false ;
20922 PyObject * obj0 = 0 ;
20923 PyObject * obj1 = 0 ;
20924 char * kwnames[] = {
20925 (char *) "self",(char *) "message", NULL
20926 };
20927
20928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20930 if (!SWIG_IsOK(res1)) {
20931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20932 }
20933 arg1 = reinterpret_cast< wxDC * >(argp1);
20934 {
20935 arg2 = wxString_in_helper(obj1);
20936 if (arg2 == NULL) SWIG_fail;
20937 temp2 = true;
20938 }
20939 {
20940 PyThreadState* __tstate = wxPyBeginAllowThreads();
20941 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20942 wxPyEndAllowThreads(__tstate);
20943 if (PyErr_Occurred()) SWIG_fail;
20944 }
20945 {
20946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20947 }
20948 {
20949 if (temp2)
20950 delete arg2;
20951 }
20952 return resultobj;
20953 fail:
20954 {
20955 if (temp2)
20956 delete arg2;
20957 }
20958 return NULL;
20959 }
20960
20961
20962 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20963 PyObject *resultobj = 0;
20964 wxDC *arg1 = (wxDC *) 0 ;
20965 void *argp1 = 0 ;
20966 int res1 = 0 ;
20967 PyObject *swig_obj[1] ;
20968
20969 if (!args) SWIG_fail;
20970 swig_obj[0] = args;
20971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20972 if (!SWIG_IsOK(res1)) {
20973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20974 }
20975 arg1 = reinterpret_cast< wxDC * >(argp1);
20976 {
20977 PyThreadState* __tstate = wxPyBeginAllowThreads();
20978 (arg1)->EndDoc();
20979 wxPyEndAllowThreads(__tstate);
20980 if (PyErr_Occurred()) SWIG_fail;
20981 }
20982 resultobj = SWIG_Py_Void();
20983 return resultobj;
20984 fail:
20985 return NULL;
20986 }
20987
20988
20989 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20990 PyObject *resultobj = 0;
20991 wxDC *arg1 = (wxDC *) 0 ;
20992 void *argp1 = 0 ;
20993 int res1 = 0 ;
20994 PyObject *swig_obj[1] ;
20995
20996 if (!args) SWIG_fail;
20997 swig_obj[0] = args;
20998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20999 if (!SWIG_IsOK(res1)) {
21000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
21001 }
21002 arg1 = reinterpret_cast< wxDC * >(argp1);
21003 {
21004 PyThreadState* __tstate = wxPyBeginAllowThreads();
21005 (arg1)->StartPage();
21006 wxPyEndAllowThreads(__tstate);
21007 if (PyErr_Occurred()) SWIG_fail;
21008 }
21009 resultobj = SWIG_Py_Void();
21010 return resultobj;
21011 fail:
21012 return NULL;
21013 }
21014
21015
21016 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21017 PyObject *resultobj = 0;
21018 wxDC *arg1 = (wxDC *) 0 ;
21019 void *argp1 = 0 ;
21020 int res1 = 0 ;
21021 PyObject *swig_obj[1] ;
21022
21023 if (!args) SWIG_fail;
21024 swig_obj[0] = args;
21025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21026 if (!SWIG_IsOK(res1)) {
21027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
21028 }
21029 arg1 = reinterpret_cast< wxDC * >(argp1);
21030 {
21031 PyThreadState* __tstate = wxPyBeginAllowThreads();
21032 (arg1)->EndPage();
21033 wxPyEndAllowThreads(__tstate);
21034 if (PyErr_Occurred()) SWIG_fail;
21035 }
21036 resultobj = SWIG_Py_Void();
21037 return resultobj;
21038 fail:
21039 return NULL;
21040 }
21041
21042
21043 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21044 PyObject *resultobj = 0;
21045 wxDC *arg1 = (wxDC *) 0 ;
21046 wxFont *arg2 = 0 ;
21047 void *argp1 = 0 ;
21048 int res1 = 0 ;
21049 void *argp2 = 0 ;
21050 int res2 = 0 ;
21051 PyObject * obj0 = 0 ;
21052 PyObject * obj1 = 0 ;
21053 char * kwnames[] = {
21054 (char *) "self",(char *) "font", NULL
21055 };
21056
21057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
21058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21059 if (!SWIG_IsOK(res1)) {
21060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
21061 }
21062 arg1 = reinterpret_cast< wxDC * >(argp1);
21063 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
21064 if (!SWIG_IsOK(res2)) {
21065 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21066 }
21067 if (!argp2) {
21068 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21069 }
21070 arg2 = reinterpret_cast< wxFont * >(argp2);
21071 {
21072 PyThreadState* __tstate = wxPyBeginAllowThreads();
21073 (arg1)->SetFont((wxFont const &)*arg2);
21074 wxPyEndAllowThreads(__tstate);
21075 if (PyErr_Occurred()) SWIG_fail;
21076 }
21077 resultobj = SWIG_Py_Void();
21078 return resultobj;
21079 fail:
21080 return NULL;
21081 }
21082
21083
21084 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21085 PyObject *resultobj = 0;
21086 wxDC *arg1 = (wxDC *) 0 ;
21087 wxPen *arg2 = 0 ;
21088 void *argp1 = 0 ;
21089 int res1 = 0 ;
21090 void *argp2 = 0 ;
21091 int res2 = 0 ;
21092 PyObject * obj0 = 0 ;
21093 PyObject * obj1 = 0 ;
21094 char * kwnames[] = {
21095 (char *) "self",(char *) "pen", NULL
21096 };
21097
21098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
21099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21100 if (!SWIG_IsOK(res1)) {
21101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
21102 }
21103 arg1 = reinterpret_cast< wxDC * >(argp1);
21104 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
21105 if (!SWIG_IsOK(res2)) {
21106 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21107 }
21108 if (!argp2) {
21109 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21110 }
21111 arg2 = reinterpret_cast< wxPen * >(argp2);
21112 {
21113 PyThreadState* __tstate = wxPyBeginAllowThreads();
21114 (arg1)->SetPen((wxPen const &)*arg2);
21115 wxPyEndAllowThreads(__tstate);
21116 if (PyErr_Occurred()) SWIG_fail;
21117 }
21118 resultobj = SWIG_Py_Void();
21119 return resultobj;
21120 fail:
21121 return NULL;
21122 }
21123
21124
21125 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21126 PyObject *resultobj = 0;
21127 wxDC *arg1 = (wxDC *) 0 ;
21128 wxBrush *arg2 = 0 ;
21129 void *argp1 = 0 ;
21130 int res1 = 0 ;
21131 void *argp2 = 0 ;
21132 int res2 = 0 ;
21133 PyObject * obj0 = 0 ;
21134 PyObject * obj1 = 0 ;
21135 char * kwnames[] = {
21136 (char *) "self",(char *) "brush", NULL
21137 };
21138
21139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
21140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21141 if (!SWIG_IsOK(res1)) {
21142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
21143 }
21144 arg1 = reinterpret_cast< wxDC * >(argp1);
21145 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21146 if (!SWIG_IsOK(res2)) {
21147 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21148 }
21149 if (!argp2) {
21150 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21151 }
21152 arg2 = reinterpret_cast< wxBrush * >(argp2);
21153 {
21154 PyThreadState* __tstate = wxPyBeginAllowThreads();
21155 (arg1)->SetBrush((wxBrush const &)*arg2);
21156 wxPyEndAllowThreads(__tstate);
21157 if (PyErr_Occurred()) SWIG_fail;
21158 }
21159 resultobj = SWIG_Py_Void();
21160 return resultobj;
21161 fail:
21162 return NULL;
21163 }
21164
21165
21166 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21167 PyObject *resultobj = 0;
21168 wxDC *arg1 = (wxDC *) 0 ;
21169 wxBrush *arg2 = 0 ;
21170 void *argp1 = 0 ;
21171 int res1 = 0 ;
21172 void *argp2 = 0 ;
21173 int res2 = 0 ;
21174 PyObject * obj0 = 0 ;
21175 PyObject * obj1 = 0 ;
21176 char * kwnames[] = {
21177 (char *) "self",(char *) "brush", NULL
21178 };
21179
21180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21182 if (!SWIG_IsOK(res1)) {
21183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21184 }
21185 arg1 = reinterpret_cast< wxDC * >(argp1);
21186 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21187 if (!SWIG_IsOK(res2)) {
21188 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21189 }
21190 if (!argp2) {
21191 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21192 }
21193 arg2 = reinterpret_cast< wxBrush * >(argp2);
21194 {
21195 PyThreadState* __tstate = wxPyBeginAllowThreads();
21196 (arg1)->SetBackground((wxBrush const &)*arg2);
21197 wxPyEndAllowThreads(__tstate);
21198 if (PyErr_Occurred()) SWIG_fail;
21199 }
21200 resultobj = SWIG_Py_Void();
21201 return resultobj;
21202 fail:
21203 return NULL;
21204 }
21205
21206
21207 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21208 PyObject *resultobj = 0;
21209 wxDC *arg1 = (wxDC *) 0 ;
21210 int arg2 ;
21211 void *argp1 = 0 ;
21212 int res1 = 0 ;
21213 int val2 ;
21214 int ecode2 = 0 ;
21215 PyObject * obj0 = 0 ;
21216 PyObject * obj1 = 0 ;
21217 char * kwnames[] = {
21218 (char *) "self",(char *) "mode", NULL
21219 };
21220
21221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
21222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21223 if (!SWIG_IsOK(res1)) {
21224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
21225 }
21226 arg1 = reinterpret_cast< wxDC * >(argp1);
21227 ecode2 = SWIG_AsVal_int(obj1, &val2);
21228 if (!SWIG_IsOK(ecode2)) {
21229 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
21230 }
21231 arg2 = static_cast< int >(val2);
21232 {
21233 PyThreadState* __tstate = wxPyBeginAllowThreads();
21234 (arg1)->SetBackgroundMode(arg2);
21235 wxPyEndAllowThreads(__tstate);
21236 if (PyErr_Occurred()) SWIG_fail;
21237 }
21238 resultobj = SWIG_Py_Void();
21239 return resultobj;
21240 fail:
21241 return NULL;
21242 }
21243
21244
21245 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21246 PyObject *resultobj = 0;
21247 wxDC *arg1 = (wxDC *) 0 ;
21248 wxPalette *arg2 = 0 ;
21249 void *argp1 = 0 ;
21250 int res1 = 0 ;
21251 void *argp2 = 0 ;
21252 int res2 = 0 ;
21253 PyObject * obj0 = 0 ;
21254 PyObject * obj1 = 0 ;
21255 char * kwnames[] = {
21256 (char *) "self",(char *) "palette", NULL
21257 };
21258
21259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
21260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21261 if (!SWIG_IsOK(res1)) {
21262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
21263 }
21264 arg1 = reinterpret_cast< wxDC * >(argp1);
21265 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
21266 if (!SWIG_IsOK(res2)) {
21267 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21268 }
21269 if (!argp2) {
21270 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21271 }
21272 arg2 = reinterpret_cast< wxPalette * >(argp2);
21273 {
21274 PyThreadState* __tstate = wxPyBeginAllowThreads();
21275 (arg1)->SetPalette((wxPalette const &)*arg2);
21276 wxPyEndAllowThreads(__tstate);
21277 if (PyErr_Occurred()) SWIG_fail;
21278 }
21279 resultobj = SWIG_Py_Void();
21280 return resultobj;
21281 fail:
21282 return NULL;
21283 }
21284
21285
21286 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21287 PyObject *resultobj = 0;
21288 wxDC *arg1 = (wxDC *) 0 ;
21289 void *argp1 = 0 ;
21290 int res1 = 0 ;
21291 PyObject *swig_obj[1] ;
21292
21293 if (!args) SWIG_fail;
21294 swig_obj[0] = args;
21295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21296 if (!SWIG_IsOK(res1)) {
21297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21298 }
21299 arg1 = reinterpret_cast< wxDC * >(argp1);
21300 {
21301 PyThreadState* __tstate = wxPyBeginAllowThreads();
21302 (arg1)->DestroyClippingRegion();
21303 wxPyEndAllowThreads(__tstate);
21304 if (PyErr_Occurred()) SWIG_fail;
21305 }
21306 resultobj = SWIG_Py_Void();
21307 return resultobj;
21308 fail:
21309 return NULL;
21310 }
21311
21312
21313 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21314 PyObject *resultobj = 0;
21315 wxDC *arg1 = (wxDC *) 0 ;
21316 int *arg2 = (int *) 0 ;
21317 int *arg3 = (int *) 0 ;
21318 int *arg4 = (int *) 0 ;
21319 int *arg5 = (int *) 0 ;
21320 void *argp1 = 0 ;
21321 int res1 = 0 ;
21322 int temp2 ;
21323 int res2 = SWIG_TMPOBJ ;
21324 int temp3 ;
21325 int res3 = SWIG_TMPOBJ ;
21326 int temp4 ;
21327 int res4 = SWIG_TMPOBJ ;
21328 int temp5 ;
21329 int res5 = SWIG_TMPOBJ ;
21330 PyObject *swig_obj[1] ;
21331
21332 arg2 = &temp2;
21333 arg3 = &temp3;
21334 arg4 = &temp4;
21335 arg5 = &temp5;
21336 if (!args) SWIG_fail;
21337 swig_obj[0] = args;
21338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21339 if (!SWIG_IsOK(res1)) {
21340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
21341 }
21342 arg1 = reinterpret_cast< wxDC * >(argp1);
21343 {
21344 PyThreadState* __tstate = wxPyBeginAllowThreads();
21345 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
21346 wxPyEndAllowThreads(__tstate);
21347 if (PyErr_Occurred()) SWIG_fail;
21348 }
21349 resultobj = SWIG_Py_Void();
21350 if (SWIG_IsTmpObj(res2)) {
21351 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21352 } else {
21353 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21354 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21355 }
21356 if (SWIG_IsTmpObj(res3)) {
21357 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21358 } else {
21359 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21360 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21361 }
21362 if (SWIG_IsTmpObj(res4)) {
21363 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21364 } else {
21365 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21366 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21367 }
21368 if (SWIG_IsTmpObj(res5)) {
21369 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21370 } else {
21371 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21372 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21373 }
21374 return resultobj;
21375 fail:
21376 return NULL;
21377 }
21378
21379
21380 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21381 PyObject *resultobj = 0;
21382 wxDC *arg1 = (wxDC *) 0 ;
21383 wxRect result;
21384 void *argp1 = 0 ;
21385 int res1 = 0 ;
21386 PyObject *swig_obj[1] ;
21387
21388 if (!args) SWIG_fail;
21389 swig_obj[0] = args;
21390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21391 if (!SWIG_IsOK(res1)) {
21392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21393 }
21394 arg1 = reinterpret_cast< wxDC * >(argp1);
21395 {
21396 PyThreadState* __tstate = wxPyBeginAllowThreads();
21397 result = wxDC_GetClippingRect(arg1);
21398 wxPyEndAllowThreads(__tstate);
21399 if (PyErr_Occurred()) SWIG_fail;
21400 }
21401 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21402 return resultobj;
21403 fail:
21404 return NULL;
21405 }
21406
21407
21408 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21409 PyObject *resultobj = 0;
21410 wxDC *arg1 = (wxDC *) 0 ;
21411 int result;
21412 void *argp1 = 0 ;
21413 int res1 = 0 ;
21414 PyObject *swig_obj[1] ;
21415
21416 if (!args) SWIG_fail;
21417 swig_obj[0] = args;
21418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21419 if (!SWIG_IsOK(res1)) {
21420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
21421 }
21422 arg1 = reinterpret_cast< wxDC * >(argp1);
21423 {
21424 PyThreadState* __tstate = wxPyBeginAllowThreads();
21425 result = (int)((wxDC const *)arg1)->GetCharHeight();
21426 wxPyEndAllowThreads(__tstate);
21427 if (PyErr_Occurred()) SWIG_fail;
21428 }
21429 resultobj = SWIG_From_int(static_cast< int >(result));
21430 return resultobj;
21431 fail:
21432 return NULL;
21433 }
21434
21435
21436 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21437 PyObject *resultobj = 0;
21438 wxDC *arg1 = (wxDC *) 0 ;
21439 int result;
21440 void *argp1 = 0 ;
21441 int res1 = 0 ;
21442 PyObject *swig_obj[1] ;
21443
21444 if (!args) SWIG_fail;
21445 swig_obj[0] = args;
21446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21447 if (!SWIG_IsOK(res1)) {
21448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21449 }
21450 arg1 = reinterpret_cast< wxDC * >(argp1);
21451 {
21452 PyThreadState* __tstate = wxPyBeginAllowThreads();
21453 result = (int)((wxDC const *)arg1)->GetCharWidth();
21454 wxPyEndAllowThreads(__tstate);
21455 if (PyErr_Occurred()) SWIG_fail;
21456 }
21457 resultobj = SWIG_From_int(static_cast< int >(result));
21458 return resultobj;
21459 fail:
21460 return NULL;
21461 }
21462
21463
21464 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21465 PyObject *resultobj = 0;
21466 wxDC *arg1 = (wxDC *) 0 ;
21467 wxString *arg2 = 0 ;
21468 int *arg3 = (int *) 0 ;
21469 int *arg4 = (int *) 0 ;
21470 void *argp1 = 0 ;
21471 int res1 = 0 ;
21472 bool temp2 = false ;
21473 int temp3 ;
21474 int res3 = SWIG_TMPOBJ ;
21475 int temp4 ;
21476 int res4 = SWIG_TMPOBJ ;
21477 PyObject * obj0 = 0 ;
21478 PyObject * obj1 = 0 ;
21479 char * kwnames[] = {
21480 (char *) "self",(char *) "string", NULL
21481 };
21482
21483 arg3 = &temp3;
21484 arg4 = &temp4;
21485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21487 if (!SWIG_IsOK(res1)) {
21488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21489 }
21490 arg1 = reinterpret_cast< wxDC * >(argp1);
21491 {
21492 arg2 = wxString_in_helper(obj1);
21493 if (arg2 == NULL) SWIG_fail;
21494 temp2 = true;
21495 }
21496 {
21497 PyThreadState* __tstate = wxPyBeginAllowThreads();
21498 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21499 wxPyEndAllowThreads(__tstate);
21500 if (PyErr_Occurred()) SWIG_fail;
21501 }
21502 resultobj = SWIG_Py_Void();
21503 if (SWIG_IsTmpObj(res3)) {
21504 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21505 } else {
21506 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21507 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21508 }
21509 if (SWIG_IsTmpObj(res4)) {
21510 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21511 } else {
21512 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21513 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21514 }
21515 {
21516 if (temp2)
21517 delete arg2;
21518 }
21519 return resultobj;
21520 fail:
21521 {
21522 if (temp2)
21523 delete arg2;
21524 }
21525 return NULL;
21526 }
21527
21528
21529 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21530 PyObject *resultobj = 0;
21531 wxDC *arg1 = (wxDC *) 0 ;
21532 wxString *arg2 = 0 ;
21533 int *arg3 = (int *) 0 ;
21534 int *arg4 = (int *) 0 ;
21535 int *arg5 = (int *) 0 ;
21536 int *arg6 = (int *) 0 ;
21537 wxFont *arg7 = (wxFont *) NULL ;
21538 void *argp1 = 0 ;
21539 int res1 = 0 ;
21540 bool temp2 = false ;
21541 int temp3 ;
21542 int res3 = SWIG_TMPOBJ ;
21543 int temp4 ;
21544 int res4 = SWIG_TMPOBJ ;
21545 int temp5 ;
21546 int res5 = SWIG_TMPOBJ ;
21547 int temp6 ;
21548 int res6 = SWIG_TMPOBJ ;
21549 void *argp7 = 0 ;
21550 int res7 = 0 ;
21551 PyObject * obj0 = 0 ;
21552 PyObject * obj1 = 0 ;
21553 PyObject * obj2 = 0 ;
21554 char * kwnames[] = {
21555 (char *) "self",(char *) "string",(char *) "font", NULL
21556 };
21557
21558 arg3 = &temp3;
21559 arg4 = &temp4;
21560 arg5 = &temp5;
21561 arg6 = &temp6;
21562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21564 if (!SWIG_IsOK(res1)) {
21565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21566 }
21567 arg1 = reinterpret_cast< wxDC * >(argp1);
21568 {
21569 arg2 = wxString_in_helper(obj1);
21570 if (arg2 == NULL) SWIG_fail;
21571 temp2 = true;
21572 }
21573 if (obj2) {
21574 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21575 if (!SWIG_IsOK(res7)) {
21576 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
21577 }
21578 arg7 = reinterpret_cast< wxFont * >(argp7);
21579 }
21580 {
21581 PyThreadState* __tstate = wxPyBeginAllowThreads();
21582 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21583 wxPyEndAllowThreads(__tstate);
21584 if (PyErr_Occurred()) SWIG_fail;
21585 }
21586 resultobj = SWIG_Py_Void();
21587 if (SWIG_IsTmpObj(res3)) {
21588 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21589 } else {
21590 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21591 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21592 }
21593 if (SWIG_IsTmpObj(res4)) {
21594 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21595 } else {
21596 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21597 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21598 }
21599 if (SWIG_IsTmpObj(res5)) {
21600 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21601 } else {
21602 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21603 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21604 }
21605 if (SWIG_IsTmpObj(res6)) {
21606 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21607 } else {
21608 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21609 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21610 }
21611 {
21612 if (temp2)
21613 delete arg2;
21614 }
21615 return resultobj;
21616 fail:
21617 {
21618 if (temp2)
21619 delete arg2;
21620 }
21621 return NULL;
21622 }
21623
21624
21625 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21626 PyObject *resultobj = 0;
21627 wxDC *arg1 = (wxDC *) 0 ;
21628 wxString *arg2 = 0 ;
21629 int *arg3 = (int *) 0 ;
21630 int *arg4 = (int *) 0 ;
21631 int *arg5 = (int *) 0 ;
21632 wxFont *arg6 = (wxFont *) NULL ;
21633 void *argp1 = 0 ;
21634 int res1 = 0 ;
21635 bool temp2 = false ;
21636 int temp3 ;
21637 int res3 = SWIG_TMPOBJ ;
21638 int temp4 ;
21639 int res4 = SWIG_TMPOBJ ;
21640 int temp5 ;
21641 int res5 = SWIG_TMPOBJ ;
21642 void *argp6 = 0 ;
21643 int res6 = 0 ;
21644 PyObject * obj0 = 0 ;
21645 PyObject * obj1 = 0 ;
21646 PyObject * obj2 = 0 ;
21647 char * kwnames[] = {
21648 (char *) "self",(char *) "text",(char *) "font", NULL
21649 };
21650
21651 arg3 = &temp3;
21652 arg4 = &temp4;
21653 arg5 = &temp5;
21654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21656 if (!SWIG_IsOK(res1)) {
21657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21658 }
21659 arg1 = reinterpret_cast< wxDC * >(argp1);
21660 {
21661 arg2 = wxString_in_helper(obj1);
21662 if (arg2 == NULL) SWIG_fail;
21663 temp2 = true;
21664 }
21665 if (obj2) {
21666 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21667 if (!SWIG_IsOK(res6)) {
21668 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
21669 }
21670 arg6 = reinterpret_cast< wxFont * >(argp6);
21671 }
21672 {
21673 PyThreadState* __tstate = wxPyBeginAllowThreads();
21674 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21675 wxPyEndAllowThreads(__tstate);
21676 if (PyErr_Occurred()) SWIG_fail;
21677 }
21678 resultobj = SWIG_Py_Void();
21679 if (SWIG_IsTmpObj(res3)) {
21680 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21681 } else {
21682 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21683 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21684 }
21685 if (SWIG_IsTmpObj(res4)) {
21686 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21687 } else {
21688 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21689 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21690 }
21691 if (SWIG_IsTmpObj(res5)) {
21692 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21693 } else {
21694 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21695 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21696 }
21697 {
21698 if (temp2)
21699 delete arg2;
21700 }
21701 return resultobj;
21702 fail:
21703 {
21704 if (temp2)
21705 delete arg2;
21706 }
21707 return NULL;
21708 }
21709
21710
21711 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21712 PyObject *resultobj = 0;
21713 wxDC *arg1 = (wxDC *) 0 ;
21714 wxString *arg2 = 0 ;
21715 wxArrayInt result;
21716 void *argp1 = 0 ;
21717 int res1 = 0 ;
21718 bool temp2 = false ;
21719 PyObject * obj0 = 0 ;
21720 PyObject * obj1 = 0 ;
21721 char * kwnames[] = {
21722 (char *) "self",(char *) "text", NULL
21723 };
21724
21725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21727 if (!SWIG_IsOK(res1)) {
21728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21729 }
21730 arg1 = reinterpret_cast< wxDC * >(argp1);
21731 {
21732 arg2 = wxString_in_helper(obj1);
21733 if (arg2 == NULL) SWIG_fail;
21734 temp2 = true;
21735 }
21736 {
21737 PyThreadState* __tstate = wxPyBeginAllowThreads();
21738 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21739 wxPyEndAllowThreads(__tstate);
21740 if (PyErr_Occurred()) SWIG_fail;
21741 }
21742 {
21743 resultobj = wxArrayInt2PyList_helper(result);
21744 }
21745 {
21746 if (temp2)
21747 delete arg2;
21748 }
21749 return resultobj;
21750 fail:
21751 {
21752 if (temp2)
21753 delete arg2;
21754 }
21755 return NULL;
21756 }
21757
21758
21759 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21760 PyObject *resultobj = 0;
21761 wxDC *arg1 = (wxDC *) 0 ;
21762 wxSize result;
21763 void *argp1 = 0 ;
21764 int res1 = 0 ;
21765 PyObject *swig_obj[1] ;
21766
21767 if (!args) SWIG_fail;
21768 swig_obj[0] = args;
21769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21770 if (!SWIG_IsOK(res1)) {
21771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21772 }
21773 arg1 = reinterpret_cast< wxDC * >(argp1);
21774 {
21775 PyThreadState* __tstate = wxPyBeginAllowThreads();
21776 result = (arg1)->GetSize();
21777 wxPyEndAllowThreads(__tstate);
21778 if (PyErr_Occurred()) SWIG_fail;
21779 }
21780 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21781 return resultobj;
21782 fail:
21783 return NULL;
21784 }
21785
21786
21787 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21788 PyObject *resultobj = 0;
21789 wxDC *arg1 = (wxDC *) 0 ;
21790 int *arg2 = (int *) 0 ;
21791 int *arg3 = (int *) 0 ;
21792 void *argp1 = 0 ;
21793 int res1 = 0 ;
21794 int temp2 ;
21795 int res2 = SWIG_TMPOBJ ;
21796 int temp3 ;
21797 int res3 = SWIG_TMPOBJ ;
21798 PyObject *swig_obj[1] ;
21799
21800 arg2 = &temp2;
21801 arg3 = &temp3;
21802 if (!args) SWIG_fail;
21803 swig_obj[0] = args;
21804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21805 if (!SWIG_IsOK(res1)) {
21806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21807 }
21808 arg1 = reinterpret_cast< wxDC * >(argp1);
21809 {
21810 PyThreadState* __tstate = wxPyBeginAllowThreads();
21811 (arg1)->GetSize(arg2,arg3);
21812 wxPyEndAllowThreads(__tstate);
21813 if (PyErr_Occurred()) SWIG_fail;
21814 }
21815 resultobj = SWIG_Py_Void();
21816 if (SWIG_IsTmpObj(res2)) {
21817 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21818 } else {
21819 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21820 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21821 }
21822 if (SWIG_IsTmpObj(res3)) {
21823 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21824 } else {
21825 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21826 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21827 }
21828 return resultobj;
21829 fail:
21830 return NULL;
21831 }
21832
21833
21834 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21835 PyObject *resultobj = 0;
21836 wxDC *arg1 = (wxDC *) 0 ;
21837 wxSize result;
21838 void *argp1 = 0 ;
21839 int res1 = 0 ;
21840 PyObject *swig_obj[1] ;
21841
21842 if (!args) SWIG_fail;
21843 swig_obj[0] = args;
21844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21845 if (!SWIG_IsOK(res1)) {
21846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21847 }
21848 arg1 = reinterpret_cast< wxDC * >(argp1);
21849 {
21850 PyThreadState* __tstate = wxPyBeginAllowThreads();
21851 result = ((wxDC const *)arg1)->GetSizeMM();
21852 wxPyEndAllowThreads(__tstate);
21853 if (PyErr_Occurred()) SWIG_fail;
21854 }
21855 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21856 return resultobj;
21857 fail:
21858 return NULL;
21859 }
21860
21861
21862 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21863 PyObject *resultobj = 0;
21864 wxDC *arg1 = (wxDC *) 0 ;
21865 int *arg2 = (int *) 0 ;
21866 int *arg3 = (int *) 0 ;
21867 void *argp1 = 0 ;
21868 int res1 = 0 ;
21869 int temp2 ;
21870 int res2 = SWIG_TMPOBJ ;
21871 int temp3 ;
21872 int res3 = SWIG_TMPOBJ ;
21873 PyObject *swig_obj[1] ;
21874
21875 arg2 = &temp2;
21876 arg3 = &temp3;
21877 if (!args) SWIG_fail;
21878 swig_obj[0] = args;
21879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21880 if (!SWIG_IsOK(res1)) {
21881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21882 }
21883 arg1 = reinterpret_cast< wxDC * >(argp1);
21884 {
21885 PyThreadState* __tstate = wxPyBeginAllowThreads();
21886 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21887 wxPyEndAllowThreads(__tstate);
21888 if (PyErr_Occurred()) SWIG_fail;
21889 }
21890 resultobj = SWIG_Py_Void();
21891 if (SWIG_IsTmpObj(res2)) {
21892 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21893 } else {
21894 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21895 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21896 }
21897 if (SWIG_IsTmpObj(res3)) {
21898 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21899 } else {
21900 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21901 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21902 }
21903 return resultobj;
21904 fail:
21905 return NULL;
21906 }
21907
21908
21909 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21910 PyObject *resultobj = 0;
21911 wxDC *arg1 = (wxDC *) 0 ;
21912 int arg2 ;
21913 int result;
21914 void *argp1 = 0 ;
21915 int res1 = 0 ;
21916 int val2 ;
21917 int ecode2 = 0 ;
21918 PyObject * obj0 = 0 ;
21919 PyObject * obj1 = 0 ;
21920 char * kwnames[] = {
21921 (char *) "self",(char *) "x", NULL
21922 };
21923
21924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21926 if (!SWIG_IsOK(res1)) {
21927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21928 }
21929 arg1 = reinterpret_cast< wxDC * >(argp1);
21930 ecode2 = SWIG_AsVal_int(obj1, &val2);
21931 if (!SWIG_IsOK(ecode2)) {
21932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21933 }
21934 arg2 = static_cast< int >(val2);
21935 {
21936 PyThreadState* __tstate = wxPyBeginAllowThreads();
21937 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21938 wxPyEndAllowThreads(__tstate);
21939 if (PyErr_Occurred()) SWIG_fail;
21940 }
21941 resultobj = SWIG_From_int(static_cast< int >(result));
21942 return resultobj;
21943 fail:
21944 return NULL;
21945 }
21946
21947
21948 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21949 PyObject *resultobj = 0;
21950 wxDC *arg1 = (wxDC *) 0 ;
21951 int arg2 ;
21952 int result;
21953 void *argp1 = 0 ;
21954 int res1 = 0 ;
21955 int val2 ;
21956 int ecode2 = 0 ;
21957 PyObject * obj0 = 0 ;
21958 PyObject * obj1 = 0 ;
21959 char * kwnames[] = {
21960 (char *) "self",(char *) "y", NULL
21961 };
21962
21963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21965 if (!SWIG_IsOK(res1)) {
21966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21967 }
21968 arg1 = reinterpret_cast< wxDC * >(argp1);
21969 ecode2 = SWIG_AsVal_int(obj1, &val2);
21970 if (!SWIG_IsOK(ecode2)) {
21971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21972 }
21973 arg2 = static_cast< int >(val2);
21974 {
21975 PyThreadState* __tstate = wxPyBeginAllowThreads();
21976 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21977 wxPyEndAllowThreads(__tstate);
21978 if (PyErr_Occurred()) SWIG_fail;
21979 }
21980 resultobj = SWIG_From_int(static_cast< int >(result));
21981 return resultobj;
21982 fail:
21983 return NULL;
21984 }
21985
21986
21987 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21988 PyObject *resultobj = 0;
21989 wxDC *arg1 = (wxDC *) 0 ;
21990 int arg2 ;
21991 int result;
21992 void *argp1 = 0 ;
21993 int res1 = 0 ;
21994 int val2 ;
21995 int ecode2 = 0 ;
21996 PyObject * obj0 = 0 ;
21997 PyObject * obj1 = 0 ;
21998 char * kwnames[] = {
21999 (char *) "self",(char *) "x", NULL
22000 };
22001
22002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22004 if (!SWIG_IsOK(res1)) {
22005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22006 }
22007 arg1 = reinterpret_cast< wxDC * >(argp1);
22008 ecode2 = SWIG_AsVal_int(obj1, &val2);
22009 if (!SWIG_IsOK(ecode2)) {
22010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
22011 }
22012 arg2 = static_cast< int >(val2);
22013 {
22014 PyThreadState* __tstate = wxPyBeginAllowThreads();
22015 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
22016 wxPyEndAllowThreads(__tstate);
22017 if (PyErr_Occurred()) SWIG_fail;
22018 }
22019 resultobj = SWIG_From_int(static_cast< int >(result));
22020 return resultobj;
22021 fail:
22022 return NULL;
22023 }
22024
22025
22026 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22027 PyObject *resultobj = 0;
22028 wxDC *arg1 = (wxDC *) 0 ;
22029 int arg2 ;
22030 int result;
22031 void *argp1 = 0 ;
22032 int res1 = 0 ;
22033 int val2 ;
22034 int ecode2 = 0 ;
22035 PyObject * obj0 = 0 ;
22036 PyObject * obj1 = 0 ;
22037 char * kwnames[] = {
22038 (char *) "self",(char *) "y", NULL
22039 };
22040
22041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22043 if (!SWIG_IsOK(res1)) {
22044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22045 }
22046 arg1 = reinterpret_cast< wxDC * >(argp1);
22047 ecode2 = SWIG_AsVal_int(obj1, &val2);
22048 if (!SWIG_IsOK(ecode2)) {
22049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
22050 }
22051 arg2 = static_cast< int >(val2);
22052 {
22053 PyThreadState* __tstate = wxPyBeginAllowThreads();
22054 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
22055 wxPyEndAllowThreads(__tstate);
22056 if (PyErr_Occurred()) SWIG_fail;
22057 }
22058 resultobj = SWIG_From_int(static_cast< int >(result));
22059 return resultobj;
22060 fail:
22061 return NULL;
22062 }
22063
22064
22065 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22066 PyObject *resultobj = 0;
22067 wxDC *arg1 = (wxDC *) 0 ;
22068 int arg2 ;
22069 int result;
22070 void *argp1 = 0 ;
22071 int res1 = 0 ;
22072 int val2 ;
22073 int ecode2 = 0 ;
22074 PyObject * obj0 = 0 ;
22075 PyObject * obj1 = 0 ;
22076 char * kwnames[] = {
22077 (char *) "self",(char *) "x", NULL
22078 };
22079
22080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
22081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22082 if (!SWIG_IsOK(res1)) {
22083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
22084 }
22085 arg1 = reinterpret_cast< wxDC * >(argp1);
22086 ecode2 = SWIG_AsVal_int(obj1, &val2);
22087 if (!SWIG_IsOK(ecode2)) {
22088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
22089 }
22090 arg2 = static_cast< int >(val2);
22091 {
22092 PyThreadState* __tstate = wxPyBeginAllowThreads();
22093 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
22094 wxPyEndAllowThreads(__tstate);
22095 if (PyErr_Occurred()) SWIG_fail;
22096 }
22097 resultobj = SWIG_From_int(static_cast< int >(result));
22098 return resultobj;
22099 fail:
22100 return NULL;
22101 }
22102
22103
22104 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22105 PyObject *resultobj = 0;
22106 wxDC *arg1 = (wxDC *) 0 ;
22107 int arg2 ;
22108 int result;
22109 void *argp1 = 0 ;
22110 int res1 = 0 ;
22111 int val2 ;
22112 int ecode2 = 0 ;
22113 PyObject * obj0 = 0 ;
22114 PyObject * obj1 = 0 ;
22115 char * kwnames[] = {
22116 (char *) "self",(char *) "y", NULL
22117 };
22118
22119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
22120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22121 if (!SWIG_IsOK(res1)) {
22122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
22123 }
22124 arg1 = reinterpret_cast< wxDC * >(argp1);
22125 ecode2 = SWIG_AsVal_int(obj1, &val2);
22126 if (!SWIG_IsOK(ecode2)) {
22127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
22128 }
22129 arg2 = static_cast< int >(val2);
22130 {
22131 PyThreadState* __tstate = wxPyBeginAllowThreads();
22132 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
22133 wxPyEndAllowThreads(__tstate);
22134 if (PyErr_Occurred()) SWIG_fail;
22135 }
22136 resultobj = SWIG_From_int(static_cast< int >(result));
22137 return resultobj;
22138 fail:
22139 return NULL;
22140 }
22141
22142
22143 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22144 PyObject *resultobj = 0;
22145 wxDC *arg1 = (wxDC *) 0 ;
22146 int arg2 ;
22147 int result;
22148 void *argp1 = 0 ;
22149 int res1 = 0 ;
22150 int val2 ;
22151 int ecode2 = 0 ;
22152 PyObject * obj0 = 0 ;
22153 PyObject * obj1 = 0 ;
22154 char * kwnames[] = {
22155 (char *) "self",(char *) "x", NULL
22156 };
22157
22158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22160 if (!SWIG_IsOK(res1)) {
22161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22162 }
22163 arg1 = reinterpret_cast< wxDC * >(argp1);
22164 ecode2 = SWIG_AsVal_int(obj1, &val2);
22165 if (!SWIG_IsOK(ecode2)) {
22166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
22167 }
22168 arg2 = static_cast< int >(val2);
22169 {
22170 PyThreadState* __tstate = wxPyBeginAllowThreads();
22171 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
22172 wxPyEndAllowThreads(__tstate);
22173 if (PyErr_Occurred()) SWIG_fail;
22174 }
22175 resultobj = SWIG_From_int(static_cast< int >(result));
22176 return resultobj;
22177 fail:
22178 return NULL;
22179 }
22180
22181
22182 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22183 PyObject *resultobj = 0;
22184 wxDC *arg1 = (wxDC *) 0 ;
22185 int arg2 ;
22186 int result;
22187 void *argp1 = 0 ;
22188 int res1 = 0 ;
22189 int val2 ;
22190 int ecode2 = 0 ;
22191 PyObject * obj0 = 0 ;
22192 PyObject * obj1 = 0 ;
22193 char * kwnames[] = {
22194 (char *) "self",(char *) "y", NULL
22195 };
22196
22197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22199 if (!SWIG_IsOK(res1)) {
22200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22201 }
22202 arg1 = reinterpret_cast< wxDC * >(argp1);
22203 ecode2 = SWIG_AsVal_int(obj1, &val2);
22204 if (!SWIG_IsOK(ecode2)) {
22205 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
22206 }
22207 arg2 = static_cast< int >(val2);
22208 {
22209 PyThreadState* __tstate = wxPyBeginAllowThreads();
22210 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
22211 wxPyEndAllowThreads(__tstate);
22212 if (PyErr_Occurred()) SWIG_fail;
22213 }
22214 resultobj = SWIG_From_int(static_cast< int >(result));
22215 return resultobj;
22216 fail:
22217 return NULL;
22218 }
22219
22220
22221 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22222 PyObject *resultobj = 0;
22223 wxDC *arg1 = (wxDC *) 0 ;
22224 bool result;
22225 void *argp1 = 0 ;
22226 int res1 = 0 ;
22227 PyObject *swig_obj[1] ;
22228
22229 if (!args) SWIG_fail;
22230 swig_obj[0] = args;
22231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22232 if (!SWIG_IsOK(res1)) {
22233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
22234 }
22235 arg1 = reinterpret_cast< wxDC * >(argp1);
22236 {
22237 PyThreadState* __tstate = wxPyBeginAllowThreads();
22238 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
22239 wxPyEndAllowThreads(__tstate);
22240 if (PyErr_Occurred()) SWIG_fail;
22241 }
22242 {
22243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22244 }
22245 return resultobj;
22246 fail:
22247 return NULL;
22248 }
22249
22250
22251 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22252 PyObject *resultobj = 0;
22253 wxDC *arg1 = (wxDC *) 0 ;
22254 bool result;
22255 void *argp1 = 0 ;
22256 int res1 = 0 ;
22257 PyObject *swig_obj[1] ;
22258
22259 if (!args) SWIG_fail;
22260 swig_obj[0] = args;
22261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22262 if (!SWIG_IsOK(res1)) {
22263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
22264 }
22265 arg1 = reinterpret_cast< wxDC * >(argp1);
22266 {
22267 PyThreadState* __tstate = wxPyBeginAllowThreads();
22268 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
22269 wxPyEndAllowThreads(__tstate);
22270 if (PyErr_Occurred()) SWIG_fail;
22271 }
22272 {
22273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22274 }
22275 return resultobj;
22276 fail:
22277 return NULL;
22278 }
22279
22280
22281 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22282 PyObject *resultobj = 0;
22283 wxDC *arg1 = (wxDC *) 0 ;
22284 int result;
22285 void *argp1 = 0 ;
22286 int res1 = 0 ;
22287 PyObject *swig_obj[1] ;
22288
22289 if (!args) SWIG_fail;
22290 swig_obj[0] = args;
22291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22292 if (!SWIG_IsOK(res1)) {
22293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
22294 }
22295 arg1 = reinterpret_cast< wxDC * >(argp1);
22296 {
22297 PyThreadState* __tstate = wxPyBeginAllowThreads();
22298 result = (int)((wxDC const *)arg1)->GetDepth();
22299 wxPyEndAllowThreads(__tstate);
22300 if (PyErr_Occurred()) SWIG_fail;
22301 }
22302 resultobj = SWIG_From_int(static_cast< int >(result));
22303 return resultobj;
22304 fail:
22305 return NULL;
22306 }
22307
22308
22309 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22310 PyObject *resultobj = 0;
22311 wxDC *arg1 = (wxDC *) 0 ;
22312 wxSize result;
22313 void *argp1 = 0 ;
22314 int res1 = 0 ;
22315 PyObject *swig_obj[1] ;
22316
22317 if (!args) SWIG_fail;
22318 swig_obj[0] = args;
22319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22320 if (!SWIG_IsOK(res1)) {
22321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
22322 }
22323 arg1 = reinterpret_cast< wxDC * >(argp1);
22324 {
22325 PyThreadState* __tstate = wxPyBeginAllowThreads();
22326 result = ((wxDC const *)arg1)->GetPPI();
22327 wxPyEndAllowThreads(__tstate);
22328 if (PyErr_Occurred()) SWIG_fail;
22329 }
22330 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22331 return resultobj;
22332 fail:
22333 return NULL;
22334 }
22335
22336
22337 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22338 PyObject *resultobj = 0;
22339 wxDC *arg1 = (wxDC *) 0 ;
22340 bool result;
22341 void *argp1 = 0 ;
22342 int res1 = 0 ;
22343 PyObject *swig_obj[1] ;
22344
22345 if (!args) SWIG_fail;
22346 swig_obj[0] = args;
22347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22348 if (!SWIG_IsOK(res1)) {
22349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
22350 }
22351 arg1 = reinterpret_cast< wxDC * >(argp1);
22352 {
22353 PyThreadState* __tstate = wxPyBeginAllowThreads();
22354 result = (bool)((wxDC const *)arg1)->IsOk();
22355 wxPyEndAllowThreads(__tstate);
22356 if (PyErr_Occurred()) SWIG_fail;
22357 }
22358 {
22359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22360 }
22361 return resultobj;
22362 fail:
22363 return NULL;
22364 }
22365
22366
22367 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22368 PyObject *resultobj = 0;
22369 wxDC *arg1 = (wxDC *) 0 ;
22370 int result;
22371 void *argp1 = 0 ;
22372 int res1 = 0 ;
22373 PyObject *swig_obj[1] ;
22374
22375 if (!args) SWIG_fail;
22376 swig_obj[0] = args;
22377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22378 if (!SWIG_IsOK(res1)) {
22379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22380 }
22381 arg1 = reinterpret_cast< wxDC * >(argp1);
22382 {
22383 PyThreadState* __tstate = wxPyBeginAllowThreads();
22384 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
22385 wxPyEndAllowThreads(__tstate);
22386 if (PyErr_Occurred()) SWIG_fail;
22387 }
22388 resultobj = SWIG_From_int(static_cast< int >(result));
22389 return resultobj;
22390 fail:
22391 return NULL;
22392 }
22393
22394
22395 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22396 PyObject *resultobj = 0;
22397 wxDC *arg1 = (wxDC *) 0 ;
22398 wxBrush *result = 0 ;
22399 void *argp1 = 0 ;
22400 int res1 = 0 ;
22401 PyObject *swig_obj[1] ;
22402
22403 if (!args) SWIG_fail;
22404 swig_obj[0] = args;
22405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22406 if (!SWIG_IsOK(res1)) {
22407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22408 }
22409 arg1 = reinterpret_cast< wxDC * >(argp1);
22410 {
22411 PyThreadState* __tstate = wxPyBeginAllowThreads();
22412 {
22413 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
22414 result = (wxBrush *) &_result_ref;
22415 }
22416 wxPyEndAllowThreads(__tstate);
22417 if (PyErr_Occurred()) SWIG_fail;
22418 }
22419 {
22420 wxBrush* resultptr = new wxBrush(*result);
22421 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22422 }
22423 return resultobj;
22424 fail:
22425 return NULL;
22426 }
22427
22428
22429 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22430 PyObject *resultobj = 0;
22431 wxDC *arg1 = (wxDC *) 0 ;
22432 wxBrush *result = 0 ;
22433 void *argp1 = 0 ;
22434 int res1 = 0 ;
22435 PyObject *swig_obj[1] ;
22436
22437 if (!args) SWIG_fail;
22438 swig_obj[0] = args;
22439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22440 if (!SWIG_IsOK(res1)) {
22441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22442 }
22443 arg1 = reinterpret_cast< wxDC * >(argp1);
22444 {
22445 PyThreadState* __tstate = wxPyBeginAllowThreads();
22446 {
22447 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22448 result = (wxBrush *) &_result_ref;
22449 }
22450 wxPyEndAllowThreads(__tstate);
22451 if (PyErr_Occurred()) SWIG_fail;
22452 }
22453 {
22454 wxBrush* resultptr = new wxBrush(*result);
22455 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22456 }
22457 return resultobj;
22458 fail:
22459 return NULL;
22460 }
22461
22462
22463 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22464 PyObject *resultobj = 0;
22465 wxDC *arg1 = (wxDC *) 0 ;
22466 wxFont *result = 0 ;
22467 void *argp1 = 0 ;
22468 int res1 = 0 ;
22469 PyObject *swig_obj[1] ;
22470
22471 if (!args) SWIG_fail;
22472 swig_obj[0] = args;
22473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22474 if (!SWIG_IsOK(res1)) {
22475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22476 }
22477 arg1 = reinterpret_cast< wxDC * >(argp1);
22478 {
22479 PyThreadState* __tstate = wxPyBeginAllowThreads();
22480 {
22481 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22482 result = (wxFont *) &_result_ref;
22483 }
22484 wxPyEndAllowThreads(__tstate);
22485 if (PyErr_Occurred()) SWIG_fail;
22486 }
22487 {
22488 wxFont* resultptr = new wxFont(*result);
22489 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22490 }
22491 return resultobj;
22492 fail:
22493 return NULL;
22494 }
22495
22496
22497 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22498 PyObject *resultobj = 0;
22499 wxDC *arg1 = (wxDC *) 0 ;
22500 wxPen *result = 0 ;
22501 void *argp1 = 0 ;
22502 int res1 = 0 ;
22503 PyObject *swig_obj[1] ;
22504
22505 if (!args) SWIG_fail;
22506 swig_obj[0] = args;
22507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22508 if (!SWIG_IsOK(res1)) {
22509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22510 }
22511 arg1 = reinterpret_cast< wxDC * >(argp1);
22512 {
22513 PyThreadState* __tstate = wxPyBeginAllowThreads();
22514 {
22515 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22516 result = (wxPen *) &_result_ref;
22517 }
22518 wxPyEndAllowThreads(__tstate);
22519 if (PyErr_Occurred()) SWIG_fail;
22520 }
22521 {
22522 wxPen* resultptr = new wxPen(*result);
22523 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22524 }
22525 return resultobj;
22526 fail:
22527 return NULL;
22528 }
22529
22530
22531 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22532 PyObject *resultobj = 0;
22533 wxDC *arg1 = (wxDC *) 0 ;
22534 wxColour *result = 0 ;
22535 void *argp1 = 0 ;
22536 int res1 = 0 ;
22537 PyObject *swig_obj[1] ;
22538
22539 if (!args) SWIG_fail;
22540 swig_obj[0] = args;
22541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22542 if (!SWIG_IsOK(res1)) {
22543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22544 }
22545 arg1 = reinterpret_cast< wxDC * >(argp1);
22546 {
22547 PyThreadState* __tstate = wxPyBeginAllowThreads();
22548 {
22549 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22550 result = (wxColour *) &_result_ref;
22551 }
22552 wxPyEndAllowThreads(__tstate);
22553 if (PyErr_Occurred()) SWIG_fail;
22554 }
22555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22556 return resultobj;
22557 fail:
22558 return NULL;
22559 }
22560
22561
22562 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22563 PyObject *resultobj = 0;
22564 wxDC *arg1 = (wxDC *) 0 ;
22565 wxColour *result = 0 ;
22566 void *argp1 = 0 ;
22567 int res1 = 0 ;
22568 PyObject *swig_obj[1] ;
22569
22570 if (!args) SWIG_fail;
22571 swig_obj[0] = args;
22572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22573 if (!SWIG_IsOK(res1)) {
22574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22575 }
22576 arg1 = reinterpret_cast< wxDC * >(argp1);
22577 {
22578 PyThreadState* __tstate = wxPyBeginAllowThreads();
22579 {
22580 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22581 result = (wxColour *) &_result_ref;
22582 }
22583 wxPyEndAllowThreads(__tstate);
22584 if (PyErr_Occurred()) SWIG_fail;
22585 }
22586 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22587 return resultobj;
22588 fail:
22589 return NULL;
22590 }
22591
22592
22593 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22594 PyObject *resultobj = 0;
22595 wxDC *arg1 = (wxDC *) 0 ;
22596 wxColour *arg2 = 0 ;
22597 void *argp1 = 0 ;
22598 int res1 = 0 ;
22599 wxColour temp2 ;
22600 PyObject * obj0 = 0 ;
22601 PyObject * obj1 = 0 ;
22602 char * kwnames[] = {
22603 (char *) "self",(char *) "colour", NULL
22604 };
22605
22606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22608 if (!SWIG_IsOK(res1)) {
22609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22610 }
22611 arg1 = reinterpret_cast< wxDC * >(argp1);
22612 {
22613 arg2 = &temp2;
22614 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22615 }
22616 {
22617 PyThreadState* __tstate = wxPyBeginAllowThreads();
22618 (arg1)->SetTextForeground((wxColour const &)*arg2);
22619 wxPyEndAllowThreads(__tstate);
22620 if (PyErr_Occurred()) SWIG_fail;
22621 }
22622 resultobj = SWIG_Py_Void();
22623 return resultobj;
22624 fail:
22625 return NULL;
22626 }
22627
22628
22629 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22630 PyObject *resultobj = 0;
22631 wxDC *arg1 = (wxDC *) 0 ;
22632 wxColour *arg2 = 0 ;
22633 void *argp1 = 0 ;
22634 int res1 = 0 ;
22635 wxColour temp2 ;
22636 PyObject * obj0 = 0 ;
22637 PyObject * obj1 = 0 ;
22638 char * kwnames[] = {
22639 (char *) "self",(char *) "colour", NULL
22640 };
22641
22642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22644 if (!SWIG_IsOK(res1)) {
22645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22646 }
22647 arg1 = reinterpret_cast< wxDC * >(argp1);
22648 {
22649 arg2 = &temp2;
22650 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22651 }
22652 {
22653 PyThreadState* __tstate = wxPyBeginAllowThreads();
22654 (arg1)->SetTextBackground((wxColour const &)*arg2);
22655 wxPyEndAllowThreads(__tstate);
22656 if (PyErr_Occurred()) SWIG_fail;
22657 }
22658 resultobj = SWIG_Py_Void();
22659 return resultobj;
22660 fail:
22661 return NULL;
22662 }
22663
22664
22665 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22666 PyObject *resultobj = 0;
22667 wxDC *arg1 = (wxDC *) 0 ;
22668 int result;
22669 void *argp1 = 0 ;
22670 int res1 = 0 ;
22671 PyObject *swig_obj[1] ;
22672
22673 if (!args) SWIG_fail;
22674 swig_obj[0] = args;
22675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22676 if (!SWIG_IsOK(res1)) {
22677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22678 }
22679 arg1 = reinterpret_cast< wxDC * >(argp1);
22680 {
22681 PyThreadState* __tstate = wxPyBeginAllowThreads();
22682 result = (int)((wxDC const *)arg1)->GetMapMode();
22683 wxPyEndAllowThreads(__tstate);
22684 if (PyErr_Occurred()) SWIG_fail;
22685 }
22686 resultobj = SWIG_From_int(static_cast< int >(result));
22687 return resultobj;
22688 fail:
22689 return NULL;
22690 }
22691
22692
22693 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22694 PyObject *resultobj = 0;
22695 wxDC *arg1 = (wxDC *) 0 ;
22696 int arg2 ;
22697 void *argp1 = 0 ;
22698 int res1 = 0 ;
22699 int val2 ;
22700 int ecode2 = 0 ;
22701 PyObject * obj0 = 0 ;
22702 PyObject * obj1 = 0 ;
22703 char * kwnames[] = {
22704 (char *) "self",(char *) "mode", NULL
22705 };
22706
22707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22709 if (!SWIG_IsOK(res1)) {
22710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22711 }
22712 arg1 = reinterpret_cast< wxDC * >(argp1);
22713 ecode2 = SWIG_AsVal_int(obj1, &val2);
22714 if (!SWIG_IsOK(ecode2)) {
22715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22716 }
22717 arg2 = static_cast< int >(val2);
22718 {
22719 PyThreadState* __tstate = wxPyBeginAllowThreads();
22720 (arg1)->SetMapMode(arg2);
22721 wxPyEndAllowThreads(__tstate);
22722 if (PyErr_Occurred()) SWIG_fail;
22723 }
22724 resultobj = SWIG_Py_Void();
22725 return resultobj;
22726 fail:
22727 return NULL;
22728 }
22729
22730
22731 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22732 PyObject *resultobj = 0;
22733 wxDC *arg1 = (wxDC *) 0 ;
22734 double *arg2 = (double *) 0 ;
22735 double *arg3 = (double *) 0 ;
22736 void *argp1 = 0 ;
22737 int res1 = 0 ;
22738 double temp2 ;
22739 int res2 = SWIG_TMPOBJ ;
22740 double temp3 ;
22741 int res3 = SWIG_TMPOBJ ;
22742 PyObject *swig_obj[1] ;
22743
22744 arg2 = &temp2;
22745 arg3 = &temp3;
22746 if (!args) SWIG_fail;
22747 swig_obj[0] = args;
22748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22749 if (!SWIG_IsOK(res1)) {
22750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22751 }
22752 arg1 = reinterpret_cast< wxDC * >(argp1);
22753 {
22754 PyThreadState* __tstate = wxPyBeginAllowThreads();
22755 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22756 wxPyEndAllowThreads(__tstate);
22757 if (PyErr_Occurred()) SWIG_fail;
22758 }
22759 resultobj = SWIG_Py_Void();
22760 if (SWIG_IsTmpObj(res2)) {
22761 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22762 } else {
22763 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22764 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22765 }
22766 if (SWIG_IsTmpObj(res3)) {
22767 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22768 } else {
22769 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22770 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22771 }
22772 return resultobj;
22773 fail:
22774 return NULL;
22775 }
22776
22777
22778 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22779 PyObject *resultobj = 0;
22780 wxDC *arg1 = (wxDC *) 0 ;
22781 double arg2 ;
22782 double arg3 ;
22783 void *argp1 = 0 ;
22784 int res1 = 0 ;
22785 double val2 ;
22786 int ecode2 = 0 ;
22787 double val3 ;
22788 int ecode3 = 0 ;
22789 PyObject * obj0 = 0 ;
22790 PyObject * obj1 = 0 ;
22791 PyObject * obj2 = 0 ;
22792 char * kwnames[] = {
22793 (char *) "self",(char *) "x",(char *) "y", NULL
22794 };
22795
22796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22798 if (!SWIG_IsOK(res1)) {
22799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22800 }
22801 arg1 = reinterpret_cast< wxDC * >(argp1);
22802 ecode2 = SWIG_AsVal_double(obj1, &val2);
22803 if (!SWIG_IsOK(ecode2)) {
22804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22805 }
22806 arg2 = static_cast< double >(val2);
22807 ecode3 = SWIG_AsVal_double(obj2, &val3);
22808 if (!SWIG_IsOK(ecode3)) {
22809 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22810 }
22811 arg3 = static_cast< double >(val3);
22812 {
22813 PyThreadState* __tstate = wxPyBeginAllowThreads();
22814 (arg1)->SetUserScale(arg2,arg3);
22815 wxPyEndAllowThreads(__tstate);
22816 if (PyErr_Occurred()) SWIG_fail;
22817 }
22818 resultobj = SWIG_Py_Void();
22819 return resultobj;
22820 fail:
22821 return NULL;
22822 }
22823
22824
22825 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22826 PyObject *resultobj = 0;
22827 wxDC *arg1 = (wxDC *) 0 ;
22828 double *arg2 = (double *) 0 ;
22829 double *arg3 = (double *) 0 ;
22830 void *argp1 = 0 ;
22831 int res1 = 0 ;
22832 double temp2 ;
22833 int res2 = SWIG_TMPOBJ ;
22834 double temp3 ;
22835 int res3 = SWIG_TMPOBJ ;
22836 PyObject *swig_obj[1] ;
22837
22838 arg2 = &temp2;
22839 arg3 = &temp3;
22840 if (!args) SWIG_fail;
22841 swig_obj[0] = args;
22842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22843 if (!SWIG_IsOK(res1)) {
22844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22845 }
22846 arg1 = reinterpret_cast< wxDC * >(argp1);
22847 {
22848 PyThreadState* __tstate = wxPyBeginAllowThreads();
22849 (arg1)->GetLogicalScale(arg2,arg3);
22850 wxPyEndAllowThreads(__tstate);
22851 if (PyErr_Occurred()) SWIG_fail;
22852 }
22853 resultobj = SWIG_Py_Void();
22854 if (SWIG_IsTmpObj(res2)) {
22855 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22856 } else {
22857 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22858 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22859 }
22860 if (SWIG_IsTmpObj(res3)) {
22861 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22862 } else {
22863 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22864 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22865 }
22866 return resultobj;
22867 fail:
22868 return NULL;
22869 }
22870
22871
22872 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22873 PyObject *resultobj = 0;
22874 wxDC *arg1 = (wxDC *) 0 ;
22875 double arg2 ;
22876 double arg3 ;
22877 void *argp1 = 0 ;
22878 int res1 = 0 ;
22879 double val2 ;
22880 int ecode2 = 0 ;
22881 double val3 ;
22882 int ecode3 = 0 ;
22883 PyObject * obj0 = 0 ;
22884 PyObject * obj1 = 0 ;
22885 PyObject * obj2 = 0 ;
22886 char * kwnames[] = {
22887 (char *) "self",(char *) "x",(char *) "y", NULL
22888 };
22889
22890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22892 if (!SWIG_IsOK(res1)) {
22893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22894 }
22895 arg1 = reinterpret_cast< wxDC * >(argp1);
22896 ecode2 = SWIG_AsVal_double(obj1, &val2);
22897 if (!SWIG_IsOK(ecode2)) {
22898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22899 }
22900 arg2 = static_cast< double >(val2);
22901 ecode3 = SWIG_AsVal_double(obj2, &val3);
22902 if (!SWIG_IsOK(ecode3)) {
22903 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22904 }
22905 arg3 = static_cast< double >(val3);
22906 {
22907 PyThreadState* __tstate = wxPyBeginAllowThreads();
22908 (arg1)->SetLogicalScale(arg2,arg3);
22909 wxPyEndAllowThreads(__tstate);
22910 if (PyErr_Occurred()) SWIG_fail;
22911 }
22912 resultobj = SWIG_Py_Void();
22913 return resultobj;
22914 fail:
22915 return NULL;
22916 }
22917
22918
22919 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22920 PyObject *resultobj = 0;
22921 wxDC *arg1 = (wxDC *) 0 ;
22922 wxPoint result;
22923 void *argp1 = 0 ;
22924 int res1 = 0 ;
22925 PyObject *swig_obj[1] ;
22926
22927 if (!args) SWIG_fail;
22928 swig_obj[0] = args;
22929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22930 if (!SWIG_IsOK(res1)) {
22931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22932 }
22933 arg1 = reinterpret_cast< wxDC * >(argp1);
22934 {
22935 PyThreadState* __tstate = wxPyBeginAllowThreads();
22936 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22937 wxPyEndAllowThreads(__tstate);
22938 if (PyErr_Occurred()) SWIG_fail;
22939 }
22940 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22941 return resultobj;
22942 fail:
22943 return NULL;
22944 }
22945
22946
22947 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22948 PyObject *resultobj = 0;
22949 wxDC *arg1 = (wxDC *) 0 ;
22950 int *arg2 = (int *) 0 ;
22951 int *arg3 = (int *) 0 ;
22952 void *argp1 = 0 ;
22953 int res1 = 0 ;
22954 int temp2 ;
22955 int res2 = SWIG_TMPOBJ ;
22956 int temp3 ;
22957 int res3 = SWIG_TMPOBJ ;
22958 PyObject *swig_obj[1] ;
22959
22960 arg2 = &temp2;
22961 arg3 = &temp3;
22962 if (!args) SWIG_fail;
22963 swig_obj[0] = args;
22964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22965 if (!SWIG_IsOK(res1)) {
22966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22967 }
22968 arg1 = reinterpret_cast< wxDC * >(argp1);
22969 {
22970 PyThreadState* __tstate = wxPyBeginAllowThreads();
22971 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22972 wxPyEndAllowThreads(__tstate);
22973 if (PyErr_Occurred()) SWIG_fail;
22974 }
22975 resultobj = SWIG_Py_Void();
22976 if (SWIG_IsTmpObj(res2)) {
22977 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22978 } else {
22979 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22980 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22981 }
22982 if (SWIG_IsTmpObj(res3)) {
22983 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22984 } else {
22985 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22986 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22987 }
22988 return resultobj;
22989 fail:
22990 return NULL;
22991 }
22992
22993
22994 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22995 PyObject *resultobj = 0;
22996 wxDC *arg1 = (wxDC *) 0 ;
22997 int arg2 ;
22998 int arg3 ;
22999 void *argp1 = 0 ;
23000 int res1 = 0 ;
23001 int val2 ;
23002 int ecode2 = 0 ;
23003 int val3 ;
23004 int ecode3 = 0 ;
23005 PyObject * obj0 = 0 ;
23006 PyObject * obj1 = 0 ;
23007 PyObject * obj2 = 0 ;
23008 char * kwnames[] = {
23009 (char *) "self",(char *) "x",(char *) "y", NULL
23010 };
23011
23012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23014 if (!SWIG_IsOK(res1)) {
23015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23016 }
23017 arg1 = reinterpret_cast< wxDC * >(argp1);
23018 ecode2 = SWIG_AsVal_int(obj1, &val2);
23019 if (!SWIG_IsOK(ecode2)) {
23020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
23021 }
23022 arg2 = static_cast< int >(val2);
23023 ecode3 = SWIG_AsVal_int(obj2, &val3);
23024 if (!SWIG_IsOK(ecode3)) {
23025 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
23026 }
23027 arg3 = static_cast< int >(val3);
23028 {
23029 PyThreadState* __tstate = wxPyBeginAllowThreads();
23030 (arg1)->SetLogicalOrigin(arg2,arg3);
23031 wxPyEndAllowThreads(__tstate);
23032 if (PyErr_Occurred()) SWIG_fail;
23033 }
23034 resultobj = SWIG_Py_Void();
23035 return resultobj;
23036 fail:
23037 return NULL;
23038 }
23039
23040
23041 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23042 PyObject *resultobj = 0;
23043 wxDC *arg1 = (wxDC *) 0 ;
23044 wxPoint *arg2 = 0 ;
23045 void *argp1 = 0 ;
23046 int res1 = 0 ;
23047 wxPoint temp2 ;
23048 PyObject * obj0 = 0 ;
23049 PyObject * obj1 = 0 ;
23050 char * kwnames[] = {
23051 (char *) "self",(char *) "point", NULL
23052 };
23053
23054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23056 if (!SWIG_IsOK(res1)) {
23057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23058 }
23059 arg1 = reinterpret_cast< wxDC * >(argp1);
23060 {
23061 arg2 = &temp2;
23062 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23063 }
23064 {
23065 PyThreadState* __tstate = wxPyBeginAllowThreads();
23066 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
23067 wxPyEndAllowThreads(__tstate);
23068 if (PyErr_Occurred()) SWIG_fail;
23069 }
23070 resultobj = SWIG_Py_Void();
23071 return resultobj;
23072 fail:
23073 return NULL;
23074 }
23075
23076
23077 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23078 PyObject *resultobj = 0;
23079 wxDC *arg1 = (wxDC *) 0 ;
23080 wxPoint result;
23081 void *argp1 = 0 ;
23082 int res1 = 0 ;
23083 PyObject *swig_obj[1] ;
23084
23085 if (!args) SWIG_fail;
23086 swig_obj[0] = args;
23087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23088 if (!SWIG_IsOK(res1)) {
23089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23090 }
23091 arg1 = reinterpret_cast< wxDC * >(argp1);
23092 {
23093 PyThreadState* __tstate = wxPyBeginAllowThreads();
23094 result = ((wxDC const *)arg1)->GetDeviceOrigin();
23095 wxPyEndAllowThreads(__tstate);
23096 if (PyErr_Occurred()) SWIG_fail;
23097 }
23098 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23099 return resultobj;
23100 fail:
23101 return NULL;
23102 }
23103
23104
23105 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23106 PyObject *resultobj = 0;
23107 wxDC *arg1 = (wxDC *) 0 ;
23108 int *arg2 = (int *) 0 ;
23109 int *arg3 = (int *) 0 ;
23110 void *argp1 = 0 ;
23111 int res1 = 0 ;
23112 int temp2 ;
23113 int res2 = SWIG_TMPOBJ ;
23114 int temp3 ;
23115 int res3 = SWIG_TMPOBJ ;
23116 PyObject *swig_obj[1] ;
23117
23118 arg2 = &temp2;
23119 arg3 = &temp3;
23120 if (!args) SWIG_fail;
23121 swig_obj[0] = args;
23122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23123 if (!SWIG_IsOK(res1)) {
23124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23125 }
23126 arg1 = reinterpret_cast< wxDC * >(argp1);
23127 {
23128 PyThreadState* __tstate = wxPyBeginAllowThreads();
23129 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
23130 wxPyEndAllowThreads(__tstate);
23131 if (PyErr_Occurred()) SWIG_fail;
23132 }
23133 resultobj = SWIG_Py_Void();
23134 if (SWIG_IsTmpObj(res2)) {
23135 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23136 } else {
23137 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23138 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23139 }
23140 if (SWIG_IsTmpObj(res3)) {
23141 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23142 } else {
23143 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23144 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23145 }
23146 return resultobj;
23147 fail:
23148 return NULL;
23149 }
23150
23151
23152 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23153 PyObject *resultobj = 0;
23154 wxDC *arg1 = (wxDC *) 0 ;
23155 int arg2 ;
23156 int arg3 ;
23157 void *argp1 = 0 ;
23158 int res1 = 0 ;
23159 int val2 ;
23160 int ecode2 = 0 ;
23161 int val3 ;
23162 int ecode3 = 0 ;
23163 PyObject * obj0 = 0 ;
23164 PyObject * obj1 = 0 ;
23165 PyObject * obj2 = 0 ;
23166 char * kwnames[] = {
23167 (char *) "self",(char *) "x",(char *) "y", NULL
23168 };
23169
23170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23172 if (!SWIG_IsOK(res1)) {
23173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23174 }
23175 arg1 = reinterpret_cast< wxDC * >(argp1);
23176 ecode2 = SWIG_AsVal_int(obj1, &val2);
23177 if (!SWIG_IsOK(ecode2)) {
23178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
23179 }
23180 arg2 = static_cast< int >(val2);
23181 ecode3 = SWIG_AsVal_int(obj2, &val3);
23182 if (!SWIG_IsOK(ecode3)) {
23183 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
23184 }
23185 arg3 = static_cast< int >(val3);
23186 {
23187 PyThreadState* __tstate = wxPyBeginAllowThreads();
23188 (arg1)->SetDeviceOrigin(arg2,arg3);
23189 wxPyEndAllowThreads(__tstate);
23190 if (PyErr_Occurred()) SWIG_fail;
23191 }
23192 resultobj = SWIG_Py_Void();
23193 return resultobj;
23194 fail:
23195 return NULL;
23196 }
23197
23198
23199 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23200 PyObject *resultobj = 0;
23201 wxDC *arg1 = (wxDC *) 0 ;
23202 wxPoint *arg2 = 0 ;
23203 void *argp1 = 0 ;
23204 int res1 = 0 ;
23205 wxPoint temp2 ;
23206 PyObject * obj0 = 0 ;
23207 PyObject * obj1 = 0 ;
23208 char * kwnames[] = {
23209 (char *) "self",(char *) "point", NULL
23210 };
23211
23212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23214 if (!SWIG_IsOK(res1)) {
23215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23216 }
23217 arg1 = reinterpret_cast< wxDC * >(argp1);
23218 {
23219 arg2 = &temp2;
23220 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23221 }
23222 {
23223 PyThreadState* __tstate = wxPyBeginAllowThreads();
23224 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
23225 wxPyEndAllowThreads(__tstate);
23226 if (PyErr_Occurred()) SWIG_fail;
23227 }
23228 resultobj = SWIG_Py_Void();
23229 return resultobj;
23230 fail:
23231 return NULL;
23232 }
23233
23234
23235 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23236 PyObject *resultobj = 0;
23237 wxDC *arg1 = (wxDC *) 0 ;
23238 bool arg2 ;
23239 bool arg3 ;
23240 void *argp1 = 0 ;
23241 int res1 = 0 ;
23242 bool val2 ;
23243 int ecode2 = 0 ;
23244 bool val3 ;
23245 int ecode3 = 0 ;
23246 PyObject * obj0 = 0 ;
23247 PyObject * obj1 = 0 ;
23248 PyObject * obj2 = 0 ;
23249 char * kwnames[] = {
23250 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
23251 };
23252
23253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23255 if (!SWIG_IsOK(res1)) {
23256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
23257 }
23258 arg1 = reinterpret_cast< wxDC * >(argp1);
23259 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23260 if (!SWIG_IsOK(ecode2)) {
23261 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
23262 }
23263 arg2 = static_cast< bool >(val2);
23264 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23265 if (!SWIG_IsOK(ecode3)) {
23266 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
23267 }
23268 arg3 = static_cast< bool >(val3);
23269 {
23270 PyThreadState* __tstate = wxPyBeginAllowThreads();
23271 (arg1)->SetAxisOrientation(arg2,arg3);
23272 wxPyEndAllowThreads(__tstate);
23273 if (PyErr_Occurred()) SWIG_fail;
23274 }
23275 resultobj = SWIG_Py_Void();
23276 return resultobj;
23277 fail:
23278 return NULL;
23279 }
23280
23281
23282 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23283 PyObject *resultobj = 0;
23284 wxDC *arg1 = (wxDC *) 0 ;
23285 int result;
23286 void *argp1 = 0 ;
23287 int res1 = 0 ;
23288 PyObject *swig_obj[1] ;
23289
23290 if (!args) SWIG_fail;
23291 swig_obj[0] = args;
23292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23293 if (!SWIG_IsOK(res1)) {
23294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
23295 }
23296 arg1 = reinterpret_cast< wxDC * >(argp1);
23297 {
23298 PyThreadState* __tstate = wxPyBeginAllowThreads();
23299 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
23300 wxPyEndAllowThreads(__tstate);
23301 if (PyErr_Occurred()) SWIG_fail;
23302 }
23303 resultobj = SWIG_From_int(static_cast< int >(result));
23304 return resultobj;
23305 fail:
23306 return NULL;
23307 }
23308
23309
23310 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23311 PyObject *resultobj = 0;
23312 wxDC *arg1 = (wxDC *) 0 ;
23313 int arg2 ;
23314 void *argp1 = 0 ;
23315 int res1 = 0 ;
23316 int val2 ;
23317 int ecode2 = 0 ;
23318 PyObject * obj0 = 0 ;
23319 PyObject * obj1 = 0 ;
23320 char * kwnames[] = {
23321 (char *) "self",(char *) "function", NULL
23322 };
23323
23324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
23325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23326 if (!SWIG_IsOK(res1)) {
23327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
23328 }
23329 arg1 = reinterpret_cast< wxDC * >(argp1);
23330 ecode2 = SWIG_AsVal_int(obj1, &val2);
23331 if (!SWIG_IsOK(ecode2)) {
23332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
23333 }
23334 arg2 = static_cast< int >(val2);
23335 {
23336 PyThreadState* __tstate = wxPyBeginAllowThreads();
23337 (arg1)->SetLogicalFunction(arg2);
23338 wxPyEndAllowThreads(__tstate);
23339 if (PyErr_Occurred()) SWIG_fail;
23340 }
23341 resultobj = SWIG_Py_Void();
23342 return resultobj;
23343 fail:
23344 return NULL;
23345 }
23346
23347
23348 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23349 PyObject *resultobj = 0;
23350 wxDC *arg1 = (wxDC *) 0 ;
23351 void *argp1 = 0 ;
23352 int res1 = 0 ;
23353 PyObject *swig_obj[1] ;
23354
23355 if (!args) SWIG_fail;
23356 swig_obj[0] = args;
23357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23358 if (!SWIG_IsOK(res1)) {
23359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23360 }
23361 arg1 = reinterpret_cast< wxDC * >(argp1);
23362 {
23363 PyThreadState* __tstate = wxPyBeginAllowThreads();
23364 (arg1)->ComputeScaleAndOrigin();
23365 wxPyEndAllowThreads(__tstate);
23366 if (PyErr_Occurred()) SWIG_fail;
23367 }
23368 resultobj = SWIG_Py_Void();
23369 return resultobj;
23370 fail:
23371 return NULL;
23372 }
23373
23374
23375 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23376 PyObject *resultobj = 0;
23377 wxDC *arg1 = (wxDC *) 0 ;
23378 int arg2 ;
23379 int arg3 ;
23380 void *argp1 = 0 ;
23381 int res1 = 0 ;
23382 int val2 ;
23383 int ecode2 = 0 ;
23384 int val3 ;
23385 int ecode3 = 0 ;
23386 PyObject * obj0 = 0 ;
23387 PyObject * obj1 = 0 ;
23388 PyObject * obj2 = 0 ;
23389 char * kwnames[] = {
23390 (char *) "self",(char *) "x",(char *) "y", NULL
23391 };
23392
23393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23395 if (!SWIG_IsOK(res1)) {
23396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23397 }
23398 arg1 = reinterpret_cast< wxDC * >(argp1);
23399 ecode2 = SWIG_AsVal_int(obj1, &val2);
23400 if (!SWIG_IsOK(ecode2)) {
23401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
23402 }
23403 arg2 = static_cast< int >(val2);
23404 ecode3 = SWIG_AsVal_int(obj2, &val3);
23405 if (!SWIG_IsOK(ecode3)) {
23406 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
23407 }
23408 arg3 = static_cast< int >(val3);
23409 {
23410 PyThreadState* __tstate = wxPyBeginAllowThreads();
23411 (arg1)->CalcBoundingBox(arg2,arg3);
23412 wxPyEndAllowThreads(__tstate);
23413 if (PyErr_Occurred()) SWIG_fail;
23414 }
23415 resultobj = SWIG_Py_Void();
23416 return resultobj;
23417 fail:
23418 return NULL;
23419 }
23420
23421
23422 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23423 PyObject *resultobj = 0;
23424 wxDC *arg1 = (wxDC *) 0 ;
23425 wxPoint *arg2 = 0 ;
23426 void *argp1 = 0 ;
23427 int res1 = 0 ;
23428 wxPoint temp2 ;
23429 PyObject * obj0 = 0 ;
23430 PyObject * obj1 = 0 ;
23431 char * kwnames[] = {
23432 (char *) "self",(char *) "point", NULL
23433 };
23434
23435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23437 if (!SWIG_IsOK(res1)) {
23438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23439 }
23440 arg1 = reinterpret_cast< wxDC * >(argp1);
23441 {
23442 arg2 = &temp2;
23443 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23444 }
23445 {
23446 PyThreadState* __tstate = wxPyBeginAllowThreads();
23447 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23448 wxPyEndAllowThreads(__tstate);
23449 if (PyErr_Occurred()) SWIG_fail;
23450 }
23451 resultobj = SWIG_Py_Void();
23452 return resultobj;
23453 fail:
23454 return NULL;
23455 }
23456
23457
23458 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23459 PyObject *resultobj = 0;
23460 wxDC *arg1 = (wxDC *) 0 ;
23461 void *argp1 = 0 ;
23462 int res1 = 0 ;
23463 PyObject *swig_obj[1] ;
23464
23465 if (!args) SWIG_fail;
23466 swig_obj[0] = args;
23467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23468 if (!SWIG_IsOK(res1)) {
23469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23470 }
23471 arg1 = reinterpret_cast< wxDC * >(argp1);
23472 {
23473 PyThreadState* __tstate = wxPyBeginAllowThreads();
23474 (arg1)->ResetBoundingBox();
23475 wxPyEndAllowThreads(__tstate);
23476 if (PyErr_Occurred()) SWIG_fail;
23477 }
23478 resultobj = SWIG_Py_Void();
23479 return resultobj;
23480 fail:
23481 return NULL;
23482 }
23483
23484
23485 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23486 PyObject *resultobj = 0;
23487 wxDC *arg1 = (wxDC *) 0 ;
23488 int result;
23489 void *argp1 = 0 ;
23490 int res1 = 0 ;
23491 PyObject *swig_obj[1] ;
23492
23493 if (!args) SWIG_fail;
23494 swig_obj[0] = args;
23495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23496 if (!SWIG_IsOK(res1)) {
23497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23498 }
23499 arg1 = reinterpret_cast< wxDC * >(argp1);
23500 {
23501 PyThreadState* __tstate = wxPyBeginAllowThreads();
23502 result = (int)((wxDC const *)arg1)->MinX();
23503 wxPyEndAllowThreads(__tstate);
23504 if (PyErr_Occurred()) SWIG_fail;
23505 }
23506 resultobj = SWIG_From_int(static_cast< int >(result));
23507 return resultobj;
23508 fail:
23509 return NULL;
23510 }
23511
23512
23513 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23514 PyObject *resultobj = 0;
23515 wxDC *arg1 = (wxDC *) 0 ;
23516 int result;
23517 void *argp1 = 0 ;
23518 int res1 = 0 ;
23519 PyObject *swig_obj[1] ;
23520
23521 if (!args) SWIG_fail;
23522 swig_obj[0] = args;
23523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23524 if (!SWIG_IsOK(res1)) {
23525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23526 }
23527 arg1 = reinterpret_cast< wxDC * >(argp1);
23528 {
23529 PyThreadState* __tstate = wxPyBeginAllowThreads();
23530 result = (int)((wxDC const *)arg1)->MaxX();
23531 wxPyEndAllowThreads(__tstate);
23532 if (PyErr_Occurred()) SWIG_fail;
23533 }
23534 resultobj = SWIG_From_int(static_cast< int >(result));
23535 return resultobj;
23536 fail:
23537 return NULL;
23538 }
23539
23540
23541 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23542 PyObject *resultobj = 0;
23543 wxDC *arg1 = (wxDC *) 0 ;
23544 int result;
23545 void *argp1 = 0 ;
23546 int res1 = 0 ;
23547 PyObject *swig_obj[1] ;
23548
23549 if (!args) SWIG_fail;
23550 swig_obj[0] = args;
23551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23552 if (!SWIG_IsOK(res1)) {
23553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23554 }
23555 arg1 = reinterpret_cast< wxDC * >(argp1);
23556 {
23557 PyThreadState* __tstate = wxPyBeginAllowThreads();
23558 result = (int)((wxDC const *)arg1)->MinY();
23559 wxPyEndAllowThreads(__tstate);
23560 if (PyErr_Occurred()) SWIG_fail;
23561 }
23562 resultobj = SWIG_From_int(static_cast< int >(result));
23563 return resultobj;
23564 fail:
23565 return NULL;
23566 }
23567
23568
23569 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23570 PyObject *resultobj = 0;
23571 wxDC *arg1 = (wxDC *) 0 ;
23572 int result;
23573 void *argp1 = 0 ;
23574 int res1 = 0 ;
23575 PyObject *swig_obj[1] ;
23576
23577 if (!args) SWIG_fail;
23578 swig_obj[0] = args;
23579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23580 if (!SWIG_IsOK(res1)) {
23581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23582 }
23583 arg1 = reinterpret_cast< wxDC * >(argp1);
23584 {
23585 PyThreadState* __tstate = wxPyBeginAllowThreads();
23586 result = (int)((wxDC const *)arg1)->MaxY();
23587 wxPyEndAllowThreads(__tstate);
23588 if (PyErr_Occurred()) SWIG_fail;
23589 }
23590 resultobj = SWIG_From_int(static_cast< int >(result));
23591 return resultobj;
23592 fail:
23593 return NULL;
23594 }
23595
23596
23597 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23598 PyObject *resultobj = 0;
23599 wxDC *arg1 = (wxDC *) 0 ;
23600 int *arg2 = (int *) 0 ;
23601 int *arg3 = (int *) 0 ;
23602 int *arg4 = (int *) 0 ;
23603 int *arg5 = (int *) 0 ;
23604 void *argp1 = 0 ;
23605 int res1 = 0 ;
23606 int temp2 ;
23607 int res2 = SWIG_TMPOBJ ;
23608 int temp3 ;
23609 int res3 = SWIG_TMPOBJ ;
23610 int temp4 ;
23611 int res4 = SWIG_TMPOBJ ;
23612 int temp5 ;
23613 int res5 = SWIG_TMPOBJ ;
23614 PyObject *swig_obj[1] ;
23615
23616 arg2 = &temp2;
23617 arg3 = &temp3;
23618 arg4 = &temp4;
23619 arg5 = &temp5;
23620 if (!args) SWIG_fail;
23621 swig_obj[0] = args;
23622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23623 if (!SWIG_IsOK(res1)) {
23624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23625 }
23626 arg1 = reinterpret_cast< wxDC * >(argp1);
23627 {
23628 PyThreadState* __tstate = wxPyBeginAllowThreads();
23629 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23630 wxPyEndAllowThreads(__tstate);
23631 if (PyErr_Occurred()) SWIG_fail;
23632 }
23633 resultobj = SWIG_Py_Void();
23634 if (SWIG_IsTmpObj(res2)) {
23635 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23636 } else {
23637 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23638 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23639 }
23640 if (SWIG_IsTmpObj(res3)) {
23641 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23642 } else {
23643 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23644 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23645 }
23646 if (SWIG_IsTmpObj(res4)) {
23647 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23648 } else {
23649 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23650 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23651 }
23652 if (SWIG_IsTmpObj(res5)) {
23653 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23654 } else {
23655 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23656 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23657 }
23658 return resultobj;
23659 fail:
23660 return NULL;
23661 }
23662
23663
23664 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23665 PyObject *resultobj = 0;
23666 wxDC *arg1 = (wxDC *) 0 ;
23667 wxLayoutDirection result;
23668 void *argp1 = 0 ;
23669 int res1 = 0 ;
23670 PyObject *swig_obj[1] ;
23671
23672 if (!args) SWIG_fail;
23673 swig_obj[0] = args;
23674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23675 if (!SWIG_IsOK(res1)) {
23676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23677 }
23678 arg1 = reinterpret_cast< wxDC * >(argp1);
23679 {
23680 PyThreadState* __tstate = wxPyBeginAllowThreads();
23681 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23682 wxPyEndAllowThreads(__tstate);
23683 if (PyErr_Occurred()) SWIG_fail;
23684 }
23685 resultobj = SWIG_From_int(static_cast< int >(result));
23686 return resultobj;
23687 fail:
23688 return NULL;
23689 }
23690
23691
23692 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23693 PyObject *resultobj = 0;
23694 wxDC *arg1 = (wxDC *) 0 ;
23695 wxLayoutDirection arg2 ;
23696 void *argp1 = 0 ;
23697 int res1 = 0 ;
23698 int val2 ;
23699 int ecode2 = 0 ;
23700 PyObject * obj0 = 0 ;
23701 PyObject * obj1 = 0 ;
23702 char * kwnames[] = {
23703 (char *) "self",(char *) "dir", NULL
23704 };
23705
23706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23708 if (!SWIG_IsOK(res1)) {
23709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23710 }
23711 arg1 = reinterpret_cast< wxDC * >(argp1);
23712 ecode2 = SWIG_AsVal_int(obj1, &val2);
23713 if (!SWIG_IsOK(ecode2)) {
23714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23715 }
23716 arg2 = static_cast< wxLayoutDirection >(val2);
23717 {
23718 PyThreadState* __tstate = wxPyBeginAllowThreads();
23719 (arg1)->SetLayoutDirection(arg2);
23720 wxPyEndAllowThreads(__tstate);
23721 if (PyErr_Occurred()) SWIG_fail;
23722 }
23723 resultobj = SWIG_Py_Void();
23724 return resultobj;
23725 fail:
23726 return NULL;
23727 }
23728
23729
23730 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23731 PyObject *resultobj = 0;
23732 wxDC *arg1 = (wxDC *) 0 ;
23733 PyObject *arg2 = (PyObject *) 0 ;
23734 PyObject *arg3 = (PyObject *) 0 ;
23735 PyObject *arg4 = (PyObject *) 0 ;
23736 PyObject *result = 0 ;
23737 void *argp1 = 0 ;
23738 int res1 = 0 ;
23739 PyObject * obj0 = 0 ;
23740 PyObject * obj1 = 0 ;
23741 PyObject * obj2 = 0 ;
23742 PyObject * obj3 = 0 ;
23743 char * kwnames[] = {
23744 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23745 };
23746
23747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23749 if (!SWIG_IsOK(res1)) {
23750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23751 }
23752 arg1 = reinterpret_cast< wxDC * >(argp1);
23753 arg2 = obj1;
23754 arg3 = obj2;
23755 arg4 = obj3;
23756 {
23757 PyThreadState* __tstate = wxPyBeginAllowThreads();
23758 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23759 wxPyEndAllowThreads(__tstate);
23760 if (PyErr_Occurred()) SWIG_fail;
23761 }
23762 resultobj = result;
23763 return resultobj;
23764 fail:
23765 return NULL;
23766 }
23767
23768
23769 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23770 PyObject *resultobj = 0;
23771 wxDC *arg1 = (wxDC *) 0 ;
23772 PyObject *arg2 = (PyObject *) 0 ;
23773 PyObject *arg3 = (PyObject *) 0 ;
23774 PyObject *arg4 = (PyObject *) 0 ;
23775 PyObject *result = 0 ;
23776 void *argp1 = 0 ;
23777 int res1 = 0 ;
23778 PyObject * obj0 = 0 ;
23779 PyObject * obj1 = 0 ;
23780 PyObject * obj2 = 0 ;
23781 PyObject * obj3 = 0 ;
23782 char * kwnames[] = {
23783 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23784 };
23785
23786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23788 if (!SWIG_IsOK(res1)) {
23789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23790 }
23791 arg1 = reinterpret_cast< wxDC * >(argp1);
23792 arg2 = obj1;
23793 arg3 = obj2;
23794 arg4 = obj3;
23795 {
23796 PyThreadState* __tstate = wxPyBeginAllowThreads();
23797 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23798 wxPyEndAllowThreads(__tstate);
23799 if (PyErr_Occurred()) SWIG_fail;
23800 }
23801 resultobj = result;
23802 return resultobj;
23803 fail:
23804 return NULL;
23805 }
23806
23807
23808 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23809 PyObject *resultobj = 0;
23810 wxDC *arg1 = (wxDC *) 0 ;
23811 PyObject *arg2 = (PyObject *) 0 ;
23812 PyObject *arg3 = (PyObject *) 0 ;
23813 PyObject *arg4 = (PyObject *) 0 ;
23814 PyObject *result = 0 ;
23815 void *argp1 = 0 ;
23816 int res1 = 0 ;
23817 PyObject * obj0 = 0 ;
23818 PyObject * obj1 = 0 ;
23819 PyObject * obj2 = 0 ;
23820 PyObject * obj3 = 0 ;
23821 char * kwnames[] = {
23822 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23823 };
23824
23825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23827 if (!SWIG_IsOK(res1)) {
23828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23829 }
23830 arg1 = reinterpret_cast< wxDC * >(argp1);
23831 arg2 = obj1;
23832 arg3 = obj2;
23833 arg4 = obj3;
23834 {
23835 PyThreadState* __tstate = wxPyBeginAllowThreads();
23836 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23837 wxPyEndAllowThreads(__tstate);
23838 if (PyErr_Occurred()) SWIG_fail;
23839 }
23840 resultobj = result;
23841 return resultobj;
23842 fail:
23843 return NULL;
23844 }
23845
23846
23847 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23848 PyObject *resultobj = 0;
23849 wxDC *arg1 = (wxDC *) 0 ;
23850 PyObject *arg2 = (PyObject *) 0 ;
23851 PyObject *arg3 = (PyObject *) 0 ;
23852 PyObject *arg4 = (PyObject *) 0 ;
23853 PyObject *result = 0 ;
23854 void *argp1 = 0 ;
23855 int res1 = 0 ;
23856 PyObject * obj0 = 0 ;
23857 PyObject * obj1 = 0 ;
23858 PyObject * obj2 = 0 ;
23859 PyObject * obj3 = 0 ;
23860 char * kwnames[] = {
23861 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23862 };
23863
23864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23866 if (!SWIG_IsOK(res1)) {
23867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23868 }
23869 arg1 = reinterpret_cast< wxDC * >(argp1);
23870 arg2 = obj1;
23871 arg3 = obj2;
23872 arg4 = obj3;
23873 {
23874 PyThreadState* __tstate = wxPyBeginAllowThreads();
23875 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23876 wxPyEndAllowThreads(__tstate);
23877 if (PyErr_Occurred()) SWIG_fail;
23878 }
23879 resultobj = result;
23880 return resultobj;
23881 fail:
23882 return NULL;
23883 }
23884
23885
23886 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23887 PyObject *resultobj = 0;
23888 wxDC *arg1 = (wxDC *) 0 ;
23889 PyObject *arg2 = (PyObject *) 0 ;
23890 PyObject *arg3 = (PyObject *) 0 ;
23891 PyObject *arg4 = (PyObject *) 0 ;
23892 PyObject *result = 0 ;
23893 void *argp1 = 0 ;
23894 int res1 = 0 ;
23895 PyObject * obj0 = 0 ;
23896 PyObject * obj1 = 0 ;
23897 PyObject * obj2 = 0 ;
23898 PyObject * obj3 = 0 ;
23899 char * kwnames[] = {
23900 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23901 };
23902
23903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23905 if (!SWIG_IsOK(res1)) {
23906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23907 }
23908 arg1 = reinterpret_cast< wxDC * >(argp1);
23909 arg2 = obj1;
23910 arg3 = obj2;
23911 arg4 = obj3;
23912 {
23913 PyThreadState* __tstate = wxPyBeginAllowThreads();
23914 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23915 wxPyEndAllowThreads(__tstate);
23916 if (PyErr_Occurred()) SWIG_fail;
23917 }
23918 resultobj = result;
23919 return resultobj;
23920 fail:
23921 return NULL;
23922 }
23923
23924
23925 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23926 PyObject *resultobj = 0;
23927 wxDC *arg1 = (wxDC *) 0 ;
23928 PyObject *arg2 = (PyObject *) 0 ;
23929 PyObject *arg3 = (PyObject *) 0 ;
23930 PyObject *arg4 = (PyObject *) 0 ;
23931 PyObject *arg5 = (PyObject *) 0 ;
23932 PyObject *result = 0 ;
23933 void *argp1 = 0 ;
23934 int res1 = 0 ;
23935 PyObject * obj0 = 0 ;
23936 PyObject * obj1 = 0 ;
23937 PyObject * obj2 = 0 ;
23938 PyObject * obj3 = 0 ;
23939 PyObject * obj4 = 0 ;
23940 char * kwnames[] = {
23941 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23942 };
23943
23944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23946 if (!SWIG_IsOK(res1)) {
23947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23948 }
23949 arg1 = reinterpret_cast< wxDC * >(argp1);
23950 arg2 = obj1;
23951 arg3 = obj2;
23952 arg4 = obj3;
23953 arg5 = obj4;
23954 {
23955 PyThreadState* __tstate = wxPyBeginAllowThreads();
23956 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23957 wxPyEndAllowThreads(__tstate);
23958 if (PyErr_Occurred()) SWIG_fail;
23959 }
23960 resultobj = result;
23961 return resultobj;
23962 fail:
23963 return NULL;
23964 }
23965
23966
23967 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23968 PyObject *obj;
23969 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23970 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23971 return SWIG_Py_Void();
23972 }
23973
23974 SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23975 PyObject *resultobj = 0;
23976 wxDC *arg1 = 0 ;
23977 wxColour *arg2 = 0 ;
23978 wxDCTextColourChanger *result = 0 ;
23979 void *argp1 = 0 ;
23980 int res1 = 0 ;
23981 wxColour temp2 ;
23982 PyObject * obj0 = 0 ;
23983 PyObject * obj1 = 0 ;
23984 char * kwnames[] = {
23985 (char *) "dc",(char *) "col", NULL
23986 };
23987
23988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23989 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23990 if (!SWIG_IsOK(res1)) {
23991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23992 }
23993 if (!argp1) {
23994 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23995 }
23996 arg1 = reinterpret_cast< wxDC * >(argp1);
23997 {
23998 arg2 = &temp2;
23999 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24000 }
24001 {
24002 PyThreadState* __tstate = wxPyBeginAllowThreads();
24003 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
24004 wxPyEndAllowThreads(__tstate);
24005 if (PyErr_Occurred()) SWIG_fail;
24006 }
24007 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
24008 return resultobj;
24009 fail:
24010 return NULL;
24011 }
24012
24013
24014 SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24015 PyObject *resultobj = 0;
24016 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
24017 void *argp1 = 0 ;
24018 int res1 = 0 ;
24019 PyObject *swig_obj[1] ;
24020
24021 if (!args) SWIG_fail;
24022 swig_obj[0] = args;
24023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
24024 if (!SWIG_IsOK(res1)) {
24025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
24026 }
24027 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
24028 {
24029 PyThreadState* __tstate = wxPyBeginAllowThreads();
24030 delete arg1;
24031
24032 wxPyEndAllowThreads(__tstate);
24033 if (PyErr_Occurred()) SWIG_fail;
24034 }
24035 resultobj = SWIG_Py_Void();
24036 return resultobj;
24037 fail:
24038 return NULL;
24039 }
24040
24041
24042 SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24043 PyObject *obj;
24044 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24045 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
24046 return SWIG_Py_Void();
24047 }
24048
24049 SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24050 return SWIG_Python_InitShadowInstance(args);
24051 }
24052
24053 SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24054 PyObject *resultobj = 0;
24055 wxDC *arg1 = 0 ;
24056 wxPen *arg2 = 0 ;
24057 wxDCPenChanger *result = 0 ;
24058 void *argp1 = 0 ;
24059 int res1 = 0 ;
24060 void *argp2 = 0 ;
24061 int res2 = 0 ;
24062 PyObject * obj0 = 0 ;
24063 PyObject * obj1 = 0 ;
24064 char * kwnames[] = {
24065 (char *) "dc",(char *) "pen", NULL
24066 };
24067
24068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24069 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24070 if (!SWIG_IsOK(res1)) {
24071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24072 }
24073 if (!argp1) {
24074 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24075 }
24076 arg1 = reinterpret_cast< wxDC * >(argp1);
24077 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
24078 if (!SWIG_IsOK(res2)) {
24079 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24080 }
24081 if (!argp2) {
24082 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24083 }
24084 arg2 = reinterpret_cast< wxPen * >(argp2);
24085 {
24086 PyThreadState* __tstate = wxPyBeginAllowThreads();
24087 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
24088 wxPyEndAllowThreads(__tstate);
24089 if (PyErr_Occurred()) SWIG_fail;
24090 }
24091 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
24092 return resultobj;
24093 fail:
24094 return NULL;
24095 }
24096
24097
24098 SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24099 PyObject *resultobj = 0;
24100 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
24101 void *argp1 = 0 ;
24102 int res1 = 0 ;
24103 PyObject *swig_obj[1] ;
24104
24105 if (!args) SWIG_fail;
24106 swig_obj[0] = args;
24107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
24108 if (!SWIG_IsOK(res1)) {
24109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
24110 }
24111 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
24112 {
24113 PyThreadState* __tstate = wxPyBeginAllowThreads();
24114 delete arg1;
24115
24116 wxPyEndAllowThreads(__tstate);
24117 if (PyErr_Occurred()) SWIG_fail;
24118 }
24119 resultobj = SWIG_Py_Void();
24120 return resultobj;
24121 fail:
24122 return NULL;
24123 }
24124
24125
24126 SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24127 PyObject *obj;
24128 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24129 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
24130 return SWIG_Py_Void();
24131 }
24132
24133 SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24134 return SWIG_Python_InitShadowInstance(args);
24135 }
24136
24137 SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24138 PyObject *resultobj = 0;
24139 wxDC *arg1 = 0 ;
24140 wxBrush *arg2 = 0 ;
24141 wxDCBrushChanger *result = 0 ;
24142 void *argp1 = 0 ;
24143 int res1 = 0 ;
24144 void *argp2 = 0 ;
24145 int res2 = 0 ;
24146 PyObject * obj0 = 0 ;
24147 PyObject * obj1 = 0 ;
24148 char * kwnames[] = {
24149 (char *) "dc",(char *) "brush", NULL
24150 };
24151
24152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24153 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24154 if (!SWIG_IsOK(res1)) {
24155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24156 }
24157 if (!argp1) {
24158 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24159 }
24160 arg1 = reinterpret_cast< wxDC * >(argp1);
24161 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
24162 if (!SWIG_IsOK(res2)) {
24163 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24164 }
24165 if (!argp2) {
24166 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24167 }
24168 arg2 = reinterpret_cast< wxBrush * >(argp2);
24169 {
24170 PyThreadState* __tstate = wxPyBeginAllowThreads();
24171 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
24172 wxPyEndAllowThreads(__tstate);
24173 if (PyErr_Occurred()) SWIG_fail;
24174 }
24175 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
24176 return resultobj;
24177 fail:
24178 return NULL;
24179 }
24180
24181
24182 SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24183 PyObject *resultobj = 0;
24184 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
24185 void *argp1 = 0 ;
24186 int res1 = 0 ;
24187 PyObject *swig_obj[1] ;
24188
24189 if (!args) SWIG_fail;
24190 swig_obj[0] = args;
24191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
24192 if (!SWIG_IsOK(res1)) {
24193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
24194 }
24195 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
24196 {
24197 PyThreadState* __tstate = wxPyBeginAllowThreads();
24198 delete arg1;
24199
24200 wxPyEndAllowThreads(__tstate);
24201 if (PyErr_Occurred()) SWIG_fail;
24202 }
24203 resultobj = SWIG_Py_Void();
24204 return resultobj;
24205 fail:
24206 return NULL;
24207 }
24208
24209
24210 SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24211 PyObject *obj;
24212 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24213 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
24214 return SWIG_Py_Void();
24215 }
24216
24217 SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24218 return SWIG_Python_InitShadowInstance(args);
24219 }
24220
24221 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24222 PyObject *resultobj = 0;
24223 wxDC *arg1 = 0 ;
24224 wxRegion *arg2 = 0 ;
24225 wxDCClipper *result = 0 ;
24226 void *argp1 = 0 ;
24227 int res1 = 0 ;
24228 void *argp2 = 0 ;
24229 int res2 = 0 ;
24230
24231 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24233 if (!SWIG_IsOK(res1)) {
24234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24235 }
24236 if (!argp1) {
24237 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24238 }
24239 arg1 = reinterpret_cast< wxDC * >(argp1);
24240 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
24241 if (!SWIG_IsOK(res2)) {
24242 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24243 }
24244 if (!argp2) {
24245 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24246 }
24247 arg2 = reinterpret_cast< wxRegion * >(argp2);
24248 {
24249 PyThreadState* __tstate = wxPyBeginAllowThreads();
24250 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
24251 wxPyEndAllowThreads(__tstate);
24252 if (PyErr_Occurred()) SWIG_fail;
24253 }
24254 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24255 return resultobj;
24256 fail:
24257 return NULL;
24258 }
24259
24260
24261 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24262 PyObject *resultobj = 0;
24263 wxDC *arg1 = 0 ;
24264 wxRect *arg2 = 0 ;
24265 wxDCClipper *result = 0 ;
24266 void *argp1 = 0 ;
24267 int res1 = 0 ;
24268 wxRect temp2 ;
24269
24270 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24272 if (!SWIG_IsOK(res1)) {
24273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24274 }
24275 if (!argp1) {
24276 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24277 }
24278 arg1 = reinterpret_cast< wxDC * >(argp1);
24279 {
24280 arg2 = &temp2;
24281 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
24282 }
24283 {
24284 PyThreadState* __tstate = wxPyBeginAllowThreads();
24285 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
24286 wxPyEndAllowThreads(__tstate);
24287 if (PyErr_Occurred()) SWIG_fail;
24288 }
24289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24290 return resultobj;
24291 fail:
24292 return NULL;
24293 }
24294
24295
24296 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24297 PyObject *resultobj = 0;
24298 wxDC *arg1 = 0 ;
24299 int arg2 ;
24300 int arg3 ;
24301 int arg4 ;
24302 int arg5 ;
24303 wxDCClipper *result = 0 ;
24304 void *argp1 = 0 ;
24305 int res1 = 0 ;
24306 int val2 ;
24307 int ecode2 = 0 ;
24308 int val3 ;
24309 int ecode3 = 0 ;
24310 int val4 ;
24311 int ecode4 = 0 ;
24312 int val5 ;
24313 int ecode5 = 0 ;
24314
24315 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
24316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24317 if (!SWIG_IsOK(res1)) {
24318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24319 }
24320 if (!argp1) {
24321 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24322 }
24323 arg1 = reinterpret_cast< wxDC * >(argp1);
24324 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24325 if (!SWIG_IsOK(ecode2)) {
24326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
24327 }
24328 arg2 = static_cast< int >(val2);
24329 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24330 if (!SWIG_IsOK(ecode3)) {
24331 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
24332 }
24333 arg3 = static_cast< int >(val3);
24334 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
24335 if (!SWIG_IsOK(ecode4)) {
24336 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
24337 }
24338 arg4 = static_cast< int >(val4);
24339 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
24340 if (!SWIG_IsOK(ecode5)) {
24341 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
24342 }
24343 arg5 = static_cast< int >(val5);
24344 {
24345 PyThreadState* __tstate = wxPyBeginAllowThreads();
24346 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
24347 wxPyEndAllowThreads(__tstate);
24348 if (PyErr_Occurred()) SWIG_fail;
24349 }
24350 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24351 return resultobj;
24352 fail:
24353 return NULL;
24354 }
24355
24356
24357 SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
24358 int argc;
24359 PyObject *argv[6];
24360
24361 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
24362 --argc;
24363 if (argc == 2) {
24364 int _v = 0;
24365 {
24366 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
24367 _v = SWIG_CheckState(res);
24368 }
24369 if (!_v) goto check_1;
24370 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
24371 }
24372 check_1:
24373
24374 if (argc == 2) {
24375 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
24376 }
24377 if (argc == 5) {
24378 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
24379 }
24380
24381 fail:
24382 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
24383 return NULL;
24384 }
24385
24386
24387 SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24388 PyObject *resultobj = 0;
24389 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
24390 void *argp1 = 0 ;
24391 int res1 = 0 ;
24392 PyObject *swig_obj[1] ;
24393
24394 if (!args) SWIG_fail;
24395 swig_obj[0] = args;
24396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
24397 if (!SWIG_IsOK(res1)) {
24398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
24399 }
24400 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
24401 {
24402 PyThreadState* __tstate = wxPyBeginAllowThreads();
24403 delete arg1;
24404
24405 wxPyEndAllowThreads(__tstate);
24406 if (PyErr_Occurred()) SWIG_fail;
24407 }
24408 resultobj = SWIG_Py_Void();
24409 return resultobj;
24410 fail:
24411 return NULL;
24412 }
24413
24414
24415 SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24416 PyObject *obj;
24417 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24418 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
24419 return SWIG_Py_Void();
24420 }
24421
24422 SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24423 return SWIG_Python_InitShadowInstance(args);
24424 }
24425
24426 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24427 PyObject *resultobj = 0;
24428 wxScreenDC *result = 0 ;
24429
24430 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
24431 {
24432 if (!wxPyCheckForApp()) SWIG_fail;
24433 PyThreadState* __tstate = wxPyBeginAllowThreads();
24434 result = (wxScreenDC *)new wxScreenDC();
24435 wxPyEndAllowThreads(__tstate);
24436 if (PyErr_Occurred()) SWIG_fail;
24437 }
24438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
24439 return resultobj;
24440 fail:
24441 return NULL;
24442 }
24443
24444
24445 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24446 PyObject *resultobj = 0;
24447 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24448 wxWindow *arg2 = (wxWindow *) 0 ;
24449 bool result;
24450 void *argp1 = 0 ;
24451 int res1 = 0 ;
24452 void *argp2 = 0 ;
24453 int res2 = 0 ;
24454 PyObject * obj0 = 0 ;
24455 PyObject * obj1 = 0 ;
24456 char * kwnames[] = {
24457 (char *) "self",(char *) "window", NULL
24458 };
24459
24460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
24461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24462 if (!SWIG_IsOK(res1)) {
24463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24464 }
24465 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24466 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24467 if (!SWIG_IsOK(res2)) {
24468 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
24469 }
24470 arg2 = reinterpret_cast< wxWindow * >(argp2);
24471 {
24472 PyThreadState* __tstate = wxPyBeginAllowThreads();
24473 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24474 wxPyEndAllowThreads(__tstate);
24475 if (PyErr_Occurred()) SWIG_fail;
24476 }
24477 {
24478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24479 }
24480 return resultobj;
24481 fail:
24482 return NULL;
24483 }
24484
24485
24486 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24487 PyObject *resultobj = 0;
24488 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24489 wxRect *arg2 = (wxRect *) NULL ;
24490 bool result;
24491 void *argp1 = 0 ;
24492 int res1 = 0 ;
24493 void *argp2 = 0 ;
24494 int res2 = 0 ;
24495 PyObject * obj0 = 0 ;
24496 PyObject * obj1 = 0 ;
24497 char * kwnames[] = {
24498 (char *) "self",(char *) "rect", NULL
24499 };
24500
24501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24503 if (!SWIG_IsOK(res1)) {
24504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24505 }
24506 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24507 if (obj1) {
24508 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24509 if (!SWIG_IsOK(res2)) {
24510 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24511 }
24512 arg2 = reinterpret_cast< wxRect * >(argp2);
24513 }
24514 {
24515 PyThreadState* __tstate = wxPyBeginAllowThreads();
24516 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24517 wxPyEndAllowThreads(__tstate);
24518 if (PyErr_Occurred()) SWIG_fail;
24519 }
24520 {
24521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24522 }
24523 return resultobj;
24524 fail:
24525 return NULL;
24526 }
24527
24528
24529 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24530 PyObject *resultobj = 0;
24531 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24532 bool result;
24533 void *argp1 = 0 ;
24534 int res1 = 0 ;
24535 PyObject *swig_obj[1] ;
24536
24537 if (!args) SWIG_fail;
24538 swig_obj[0] = args;
24539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24540 if (!SWIG_IsOK(res1)) {
24541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24542 }
24543 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24544 {
24545 PyThreadState* __tstate = wxPyBeginAllowThreads();
24546 result = (bool)(arg1)->EndDrawingOnTop();
24547 wxPyEndAllowThreads(__tstate);
24548 if (PyErr_Occurred()) SWIG_fail;
24549 }
24550 {
24551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24552 }
24553 return resultobj;
24554 fail:
24555 return NULL;
24556 }
24557
24558
24559 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24560 PyObject *obj;
24561 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24562 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24563 return SWIG_Py_Void();
24564 }
24565
24566 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24567 return SWIG_Python_InitShadowInstance(args);
24568 }
24569
24570 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24571 PyObject *resultobj = 0;
24572 wxWindow *arg1 = (wxWindow *) 0 ;
24573 wxWindowDC *result = 0 ;
24574 void *argp1 = 0 ;
24575 int res1 = 0 ;
24576 PyObject * obj0 = 0 ;
24577 char * kwnames[] = {
24578 (char *) "win", NULL
24579 };
24580
24581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24583 if (!SWIG_IsOK(res1)) {
24584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24585 }
24586 arg1 = reinterpret_cast< wxWindow * >(argp1);
24587 {
24588 if (!wxPyCheckForApp()) SWIG_fail;
24589 PyThreadState* __tstate = wxPyBeginAllowThreads();
24590 result = (wxWindowDC *)new wxWindowDC(arg1);
24591 wxPyEndAllowThreads(__tstate);
24592 if (PyErr_Occurred()) SWIG_fail;
24593 }
24594 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24595 return resultobj;
24596 fail:
24597 return NULL;
24598 }
24599
24600
24601 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24602 PyObject *obj;
24603 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24604 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24605 return SWIG_Py_Void();
24606 }
24607
24608 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24609 return SWIG_Python_InitShadowInstance(args);
24610 }
24611
24612 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24613 PyObject *resultobj = 0;
24614 wxWindow *arg1 = (wxWindow *) 0 ;
24615 wxClientDC *result = 0 ;
24616 void *argp1 = 0 ;
24617 int res1 = 0 ;
24618 PyObject * obj0 = 0 ;
24619 char * kwnames[] = {
24620 (char *) "win", NULL
24621 };
24622
24623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24625 if (!SWIG_IsOK(res1)) {
24626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24627 }
24628 arg1 = reinterpret_cast< wxWindow * >(argp1);
24629 {
24630 if (!wxPyCheckForApp()) SWIG_fail;
24631 PyThreadState* __tstate = wxPyBeginAllowThreads();
24632 result = (wxClientDC *)new wxClientDC(arg1);
24633 wxPyEndAllowThreads(__tstate);
24634 if (PyErr_Occurred()) SWIG_fail;
24635 }
24636 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24637 return resultobj;
24638 fail:
24639 return NULL;
24640 }
24641
24642
24643 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24644 PyObject *obj;
24645 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24646 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24647 return SWIG_Py_Void();
24648 }
24649
24650 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24651 return SWIG_Python_InitShadowInstance(args);
24652 }
24653
24654 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24655 PyObject *resultobj = 0;
24656 wxWindow *arg1 = (wxWindow *) 0 ;
24657 wxPaintDC *result = 0 ;
24658 void *argp1 = 0 ;
24659 int res1 = 0 ;
24660 PyObject * obj0 = 0 ;
24661 char * kwnames[] = {
24662 (char *) "win", NULL
24663 };
24664
24665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24667 if (!SWIG_IsOK(res1)) {
24668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24669 }
24670 arg1 = reinterpret_cast< wxWindow * >(argp1);
24671 {
24672 if (!wxPyCheckForApp()) SWIG_fail;
24673 PyThreadState* __tstate = wxPyBeginAllowThreads();
24674 result = (wxPaintDC *)new wxPaintDC(arg1);
24675 wxPyEndAllowThreads(__tstate);
24676 if (PyErr_Occurred()) SWIG_fail;
24677 }
24678 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24679 return resultobj;
24680 fail:
24681 return NULL;
24682 }
24683
24684
24685 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24686 PyObject *obj;
24687 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24688 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24689 return SWIG_Py_Void();
24690 }
24691
24692 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24693 return SWIG_Python_InitShadowInstance(args);
24694 }
24695
24696 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24697 PyObject *resultobj = 0;
24698 wxBitmap &arg1_defvalue = wxNullBitmap ;
24699 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24700 wxMemoryDC *result = 0 ;
24701 void *argp1 = 0 ;
24702 int res1 = 0 ;
24703 PyObject * obj0 = 0 ;
24704 char * kwnames[] = {
24705 (char *) "bitmap", NULL
24706 };
24707
24708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24709 if (obj0) {
24710 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
24711 if (!SWIG_IsOK(res1)) {
24712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24713 }
24714 if (!argp1) {
24715 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24716 }
24717 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24718 }
24719 {
24720 if (!wxPyCheckForApp()) SWIG_fail;
24721 PyThreadState* __tstate = wxPyBeginAllowThreads();
24722 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
24723 wxPyEndAllowThreads(__tstate);
24724 if (PyErr_Occurred()) SWIG_fail;
24725 }
24726 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24727 return resultobj;
24728 fail:
24729 return NULL;
24730 }
24731
24732
24733 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24734 PyObject *resultobj = 0;
24735 wxDC *arg1 = (wxDC *) 0 ;
24736 wxMemoryDC *result = 0 ;
24737 void *argp1 = 0 ;
24738 int res1 = 0 ;
24739 PyObject * obj0 = 0 ;
24740 char * kwnames[] = {
24741 (char *) "oldDC", NULL
24742 };
24743
24744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24746 if (!SWIG_IsOK(res1)) {
24747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24748 }
24749 arg1 = reinterpret_cast< wxDC * >(argp1);
24750 {
24751 if (!wxPyCheckForApp()) SWIG_fail;
24752 PyThreadState* __tstate = wxPyBeginAllowThreads();
24753 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24754 wxPyEndAllowThreads(__tstate);
24755 if (PyErr_Occurred()) SWIG_fail;
24756 }
24757 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24758 return resultobj;
24759 fail:
24760 return NULL;
24761 }
24762
24763
24764 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24765 PyObject *resultobj = 0;
24766 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24767 wxBitmap *arg2 = 0 ;
24768 void *argp1 = 0 ;
24769 int res1 = 0 ;
24770 void *argp2 = 0 ;
24771 int res2 = 0 ;
24772 PyObject * obj0 = 0 ;
24773 PyObject * obj1 = 0 ;
24774 char * kwnames[] = {
24775 (char *) "self",(char *) "bitmap", NULL
24776 };
24777
24778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24780 if (!SWIG_IsOK(res1)) {
24781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24782 }
24783 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24784 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24785 if (!SWIG_IsOK(res2)) {
24786 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24787 }
24788 if (!argp2) {
24789 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24790 }
24791 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24792 {
24793 PyThreadState* __tstate = wxPyBeginAllowThreads();
24794 (arg1)->SelectObject(*arg2);
24795 wxPyEndAllowThreads(__tstate);
24796 if (PyErr_Occurred()) SWIG_fail;
24797 }
24798 resultobj = SWIG_Py_Void();
24799 return resultobj;
24800 fail:
24801 return NULL;
24802 }
24803
24804
24805 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24806 PyObject *resultobj = 0;
24807 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24808 wxBitmap *arg2 = 0 ;
24809 void *argp1 = 0 ;
24810 int res1 = 0 ;
24811 void *argp2 = 0 ;
24812 int res2 = 0 ;
24813 PyObject * obj0 = 0 ;
24814 PyObject * obj1 = 0 ;
24815 char * kwnames[] = {
24816 (char *) "self",(char *) "bmp", NULL
24817 };
24818
24819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24821 if (!SWIG_IsOK(res1)) {
24822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24823 }
24824 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24825 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24826 if (!SWIG_IsOK(res2)) {
24827 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24828 }
24829 if (!argp2) {
24830 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24831 }
24832 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24833 {
24834 PyThreadState* __tstate = wxPyBeginAllowThreads();
24835 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
24836 wxPyEndAllowThreads(__tstate);
24837 if (PyErr_Occurred()) SWIG_fail;
24838 }
24839 resultobj = SWIG_Py_Void();
24840 return resultobj;
24841 fail:
24842 return NULL;
24843 }
24844
24845
24846 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24847 PyObject *obj;
24848 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24849 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24850 return SWIG_Py_Void();
24851 }
24852
24853 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24854 return SWIG_Python_InitShadowInstance(args);
24855 }
24856
24857 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24858 PyObject *resultobj = 0;
24859 wxDC *arg1 = (wxDC *) 0 ;
24860 wxBitmap &arg2_defvalue = wxNullBitmap ;
24861 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24862 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24863 wxBufferedDC *result = 0 ;
24864 void *argp1 = 0 ;
24865 int res1 = 0 ;
24866 void *argp2 = 0 ;
24867 int res2 = 0 ;
24868 int val3 ;
24869 int ecode3 = 0 ;
24870
24871 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24873 if (!SWIG_IsOK(res1)) {
24874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24875 }
24876 arg1 = reinterpret_cast< wxDC * >(argp1);
24877 if (swig_obj[1]) {
24878 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
24879 if (!SWIG_IsOK(res2)) {
24880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24881 }
24882 if (!argp2) {
24883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
24884 }
24885 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24886 }
24887 if (swig_obj[2]) {
24888 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24889 if (!SWIG_IsOK(ecode3)) {
24890 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24891 }
24892 arg3 = static_cast< int >(val3);
24893 }
24894 {
24895 if (!wxPyCheckForApp()) SWIG_fail;
24896 PyThreadState* __tstate = wxPyBeginAllowThreads();
24897 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
24898 wxPyEndAllowThreads(__tstate);
24899 if (PyErr_Occurred()) SWIG_fail;
24900 }
24901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24902 return resultobj;
24903 fail:
24904 return NULL;
24905 }
24906
24907
24908 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24909 PyObject *resultobj = 0;
24910 wxDC *arg1 = (wxDC *) 0 ;
24911 wxSize *arg2 = 0 ;
24912 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24913 wxBufferedDC *result = 0 ;
24914 void *argp1 = 0 ;
24915 int res1 = 0 ;
24916 wxSize temp2 ;
24917 int val3 ;
24918 int ecode3 = 0 ;
24919
24920 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24922 if (!SWIG_IsOK(res1)) {
24923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24924 }
24925 arg1 = reinterpret_cast< wxDC * >(argp1);
24926 {
24927 arg2 = &temp2;
24928 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24929 }
24930 if (swig_obj[2]) {
24931 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24932 if (!SWIG_IsOK(ecode3)) {
24933 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24934 }
24935 arg3 = static_cast< int >(val3);
24936 }
24937 {
24938 if (!wxPyCheckForApp()) SWIG_fail;
24939 PyThreadState* __tstate = wxPyBeginAllowThreads();
24940 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24941 wxPyEndAllowThreads(__tstate);
24942 if (PyErr_Occurred()) SWIG_fail;
24943 }
24944 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24945 return resultobj;
24946 fail:
24947 return NULL;
24948 }
24949
24950
24951 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24952 int argc;
24953 PyObject *argv[4];
24954
24955 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
24956 --argc;
24957 if ((argc >= 1) && (argc <= 3)) {
24958 int _v = 0;
24959 if (argc > 1) {
24960 {
24961 void *vptr = 0;
24962 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
24963 _v = SWIG_CheckState(res);
24964 }
24965 if (!_v) goto check_1;
24966 }
24967 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24968 }
24969 check_1:
24970
24971 if ((argc >= 2) && (argc <= 3)) {
24972 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24973 }
24974
24975 fail:
24976 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24977 return NULL;
24978 }
24979
24980
24981 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24982 PyObject *resultobj = 0;
24983 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24984 void *argp1 = 0 ;
24985 int res1 = 0 ;
24986 PyObject *swig_obj[1] ;
24987
24988 if (!args) SWIG_fail;
24989 swig_obj[0] = args;
24990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24991 if (!SWIG_IsOK(res1)) {
24992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24993 }
24994 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24995 {
24996 PyThreadState* __tstate = wxPyBeginAllowThreads();
24997 delete arg1;
24998
24999 wxPyEndAllowThreads(__tstate);
25000 if (PyErr_Occurred()) SWIG_fail;
25001 }
25002 resultobj = SWIG_Py_Void();
25003 return resultobj;
25004 fail:
25005 return NULL;
25006 }
25007
25008
25009 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25010 PyObject *resultobj = 0;
25011 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25012 void *argp1 = 0 ;
25013 int res1 = 0 ;
25014 PyObject *swig_obj[1] ;
25015
25016 if (!args) SWIG_fail;
25017 swig_obj[0] = args;
25018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25019 if (!SWIG_IsOK(res1)) {
25020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25021 }
25022 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25023 {
25024 PyThreadState* __tstate = wxPyBeginAllowThreads();
25025 (arg1)->UnMask();
25026 wxPyEndAllowThreads(__tstate);
25027 if (PyErr_Occurred()) SWIG_fail;
25028 }
25029 resultobj = SWIG_Py_Void();
25030 return resultobj;
25031 fail:
25032 return NULL;
25033 }
25034
25035
25036 SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25037 PyObject *resultobj = 0;
25038 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25039 int arg2 ;
25040 void *argp1 = 0 ;
25041 int res1 = 0 ;
25042 int val2 ;
25043 int ecode2 = 0 ;
25044 PyObject * obj0 = 0 ;
25045 PyObject * obj1 = 0 ;
25046 char * kwnames[] = {
25047 (char *) "self",(char *) "style", NULL
25048 };
25049
25050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
25051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25052 if (!SWIG_IsOK(res1)) {
25053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25054 }
25055 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25056 ecode2 = SWIG_AsVal_int(obj1, &val2);
25057 if (!SWIG_IsOK(ecode2)) {
25058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
25059 }
25060 arg2 = static_cast< int >(val2);
25061 {
25062 PyThreadState* __tstate = wxPyBeginAllowThreads();
25063 (arg1)->SetStyle(arg2);
25064 wxPyEndAllowThreads(__tstate);
25065 if (PyErr_Occurred()) SWIG_fail;
25066 }
25067 resultobj = SWIG_Py_Void();
25068 return resultobj;
25069 fail:
25070 return NULL;
25071 }
25072
25073
25074 SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25075 PyObject *resultobj = 0;
25076 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25077 int result;
25078 void *argp1 = 0 ;
25079 int res1 = 0 ;
25080 PyObject *swig_obj[1] ;
25081
25082 if (!args) SWIG_fail;
25083 swig_obj[0] = args;
25084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25085 if (!SWIG_IsOK(res1)) {
25086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
25087 }
25088 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25089 {
25090 PyThreadState* __tstate = wxPyBeginAllowThreads();
25091 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
25092 wxPyEndAllowThreads(__tstate);
25093 if (PyErr_Occurred()) SWIG_fail;
25094 }
25095 resultobj = SWIG_From_int(static_cast< int >(result));
25096 return resultobj;
25097 fail:
25098 return NULL;
25099 }
25100
25101
25102 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25103 PyObject *obj;
25104 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25105 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
25106 return SWIG_Py_Void();
25107 }
25108
25109 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25110 return SWIG_Python_InitShadowInstance(args);
25111 }
25112
25113 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25114 PyObject *resultobj = 0;
25115 wxWindow *arg1 = (wxWindow *) 0 ;
25116 wxBitmap &arg2_defvalue = wxNullBitmap ;
25117 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25118 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25119 wxBufferedPaintDC *result = 0 ;
25120 void *argp1 = 0 ;
25121 int res1 = 0 ;
25122 void *argp2 = 0 ;
25123 int res2 = 0 ;
25124 int val3 ;
25125 int ecode3 = 0 ;
25126 PyObject * obj0 = 0 ;
25127 PyObject * obj1 = 0 ;
25128 PyObject * obj2 = 0 ;
25129 char * kwnames[] = {
25130 (char *) "window",(char *) "buffer",(char *) "style", NULL
25131 };
25132
25133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25135 if (!SWIG_IsOK(res1)) {
25136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25137 }
25138 arg1 = reinterpret_cast< wxWindow * >(argp1);
25139 if (obj1) {
25140 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
25141 if (!SWIG_IsOK(res2)) {
25142 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25143 }
25144 if (!argp2) {
25145 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25146 }
25147 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25148 }
25149 if (obj2) {
25150 ecode3 = SWIG_AsVal_int(obj2, &val3);
25151 if (!SWIG_IsOK(ecode3)) {
25152 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
25153 }
25154 arg3 = static_cast< int >(val3);
25155 }
25156 {
25157 if (!wxPyCheckForApp()) SWIG_fail;
25158 PyThreadState* __tstate = wxPyBeginAllowThreads();
25159 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
25160 wxPyEndAllowThreads(__tstate);
25161 if (PyErr_Occurred()) SWIG_fail;
25162 }
25163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25164 return resultobj;
25165 fail:
25166 return NULL;
25167 }
25168
25169
25170 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25171 PyObject *obj;
25172 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25173 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
25174 return SWIG_Py_Void();
25175 }
25176
25177 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25178 return SWIG_Python_InitShadowInstance(args);
25179 }
25180
25181 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25182 PyObject *resultobj = 0;
25183 wxWindow *arg1 = (wxWindow *) 0 ;
25184 wxAutoBufferedPaintDC *result = 0 ;
25185 void *argp1 = 0 ;
25186 int res1 = 0 ;
25187 PyObject * obj0 = 0 ;
25188 char * kwnames[] = {
25189 (char *) "win", NULL
25190 };
25191
25192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
25193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25194 if (!SWIG_IsOK(res1)) {
25195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25196 }
25197 arg1 = reinterpret_cast< wxWindow * >(argp1);
25198 {
25199 PyThreadState* __tstate = wxPyBeginAllowThreads();
25200 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
25201 wxPyEndAllowThreads(__tstate);
25202 if (PyErr_Occurred()) SWIG_fail;
25203 }
25204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25205 return resultobj;
25206 fail:
25207 return NULL;
25208 }
25209
25210
25211 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25212 PyObject *obj;
25213 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25214 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
25215 return SWIG_Py_Void();
25216 }
25217
25218 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25219 return SWIG_Python_InitShadowInstance(args);
25220 }
25221
25222 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25223 PyObject *resultobj = 0;
25224 wxWindow *arg1 = (wxWindow *) 0 ;
25225 wxDC *result = 0 ;
25226 void *argp1 = 0 ;
25227 int res1 = 0 ;
25228 PyObject * obj0 = 0 ;
25229 char * kwnames[] = {
25230 (char *) "window", NULL
25231 };
25232
25233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
25234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25235 if (!SWIG_IsOK(res1)) {
25236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
25237 }
25238 arg1 = reinterpret_cast< wxWindow * >(argp1);
25239 {
25240 PyThreadState* __tstate = wxPyBeginAllowThreads();
25241 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
25242 wxPyEndAllowThreads(__tstate);
25243 if (PyErr_Occurred()) SWIG_fail;
25244 }
25245 {
25246 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
25247 }
25248 return resultobj;
25249 fail:
25250 return NULL;
25251 }
25252
25253
25254 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25255 PyObject *resultobj = 0;
25256 wxDC *arg1 = 0 ;
25257 bool arg2 ;
25258 wxMirrorDC *result = 0 ;
25259 void *argp1 = 0 ;
25260 int res1 = 0 ;
25261 bool val2 ;
25262 int ecode2 = 0 ;
25263 PyObject * obj0 = 0 ;
25264 PyObject * obj1 = 0 ;
25265 char * kwnames[] = {
25266 (char *) "dc",(char *) "mirror", NULL
25267 };
25268
25269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
25270 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
25271 if (!SWIG_IsOK(res1)) {
25272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25273 }
25274 if (!argp1) {
25275 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25276 }
25277 arg1 = reinterpret_cast< wxDC * >(argp1);
25278 ecode2 = SWIG_AsVal_bool(obj1, &val2);
25279 if (!SWIG_IsOK(ecode2)) {
25280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
25281 }
25282 arg2 = static_cast< bool >(val2);
25283 {
25284 if (!wxPyCheckForApp()) SWIG_fail;
25285 PyThreadState* __tstate = wxPyBeginAllowThreads();
25286 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
25287 wxPyEndAllowThreads(__tstate);
25288 if (PyErr_Occurred()) SWIG_fail;
25289 }
25290 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
25291 return resultobj;
25292 fail:
25293 return NULL;
25294 }
25295
25296
25297 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25298 PyObject *obj;
25299 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25300 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
25301 return SWIG_Py_Void();
25302 }
25303
25304 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25305 return SWIG_Python_InitShadowInstance(args);
25306 }
25307
25308 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25309 PyObject *resultobj = 0;
25310 wxPrintData *arg1 = 0 ;
25311 wxPostScriptDC *result = 0 ;
25312 void *argp1 = 0 ;
25313 int res1 = 0 ;
25314 PyObject * obj0 = 0 ;
25315 char * kwnames[] = {
25316 (char *) "printData", NULL
25317 };
25318
25319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
25320 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25321 if (!SWIG_IsOK(res1)) {
25322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25323 }
25324 if (!argp1) {
25325 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25326 }
25327 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25328 {
25329 if (!wxPyCheckForApp()) SWIG_fail;
25330 PyThreadState* __tstate = wxPyBeginAllowThreads();
25331 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
25332 wxPyEndAllowThreads(__tstate);
25333 if (PyErr_Occurred()) SWIG_fail;
25334 }
25335 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
25336 return resultobj;
25337 fail:
25338 return NULL;
25339 }
25340
25341
25342 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25343 PyObject *resultobj = 0;
25344 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25345 wxPrintData *result = 0 ;
25346 void *argp1 = 0 ;
25347 int res1 = 0 ;
25348 PyObject *swig_obj[1] ;
25349
25350 if (!args) SWIG_fail;
25351 swig_obj[0] = args;
25352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25353 if (!SWIG_IsOK(res1)) {
25354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25355 }
25356 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25357 {
25358 PyThreadState* __tstate = wxPyBeginAllowThreads();
25359 {
25360 wxPrintData &_result_ref = (arg1)->GetPrintData();
25361 result = (wxPrintData *) &_result_ref;
25362 }
25363 wxPyEndAllowThreads(__tstate);
25364 if (PyErr_Occurred()) SWIG_fail;
25365 }
25366 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
25367 return resultobj;
25368 fail:
25369 return NULL;
25370 }
25371
25372
25373 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25374 PyObject *resultobj = 0;
25375 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25376 wxPrintData *arg2 = 0 ;
25377 void *argp1 = 0 ;
25378 int res1 = 0 ;
25379 void *argp2 = 0 ;
25380 int res2 = 0 ;
25381 PyObject * obj0 = 0 ;
25382 PyObject * obj1 = 0 ;
25383 char * kwnames[] = {
25384 (char *) "self",(char *) "data", NULL
25385 };
25386
25387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
25388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25389 if (!SWIG_IsOK(res1)) {
25390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25391 }
25392 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25393 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
25394 if (!SWIG_IsOK(res2)) {
25395 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25396 }
25397 if (!argp2) {
25398 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25399 }
25400 arg2 = reinterpret_cast< wxPrintData * >(argp2);
25401 {
25402 PyThreadState* __tstate = wxPyBeginAllowThreads();
25403 (arg1)->SetPrintData((wxPrintData const &)*arg2);
25404 wxPyEndAllowThreads(__tstate);
25405 if (PyErr_Occurred()) SWIG_fail;
25406 }
25407 resultobj = SWIG_Py_Void();
25408 return resultobj;
25409 fail:
25410 return NULL;
25411 }
25412
25413
25414 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25415 PyObject *resultobj = 0;
25416 int arg1 ;
25417 int val1 ;
25418 int ecode1 = 0 ;
25419 PyObject * obj0 = 0 ;
25420 char * kwnames[] = {
25421 (char *) "ppi", NULL
25422 };
25423
25424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
25425 ecode1 = SWIG_AsVal_int(obj0, &val1);
25426 if (!SWIG_IsOK(ecode1)) {
25427 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
25428 }
25429 arg1 = static_cast< int >(val1);
25430 {
25431 PyThreadState* __tstate = wxPyBeginAllowThreads();
25432 wxPostScriptDC::SetResolution(arg1);
25433 wxPyEndAllowThreads(__tstate);
25434 if (PyErr_Occurred()) SWIG_fail;
25435 }
25436 resultobj = SWIG_Py_Void();
25437 return resultobj;
25438 fail:
25439 return NULL;
25440 }
25441
25442
25443 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25444 PyObject *resultobj = 0;
25445 int result;
25446
25447 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
25448 {
25449 PyThreadState* __tstate = wxPyBeginAllowThreads();
25450 result = (int)wxPostScriptDC::GetResolution();
25451 wxPyEndAllowThreads(__tstate);
25452 if (PyErr_Occurred()) SWIG_fail;
25453 }
25454 resultobj = SWIG_From_int(static_cast< int >(result));
25455 return resultobj;
25456 fail:
25457 return NULL;
25458 }
25459
25460
25461 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25462 PyObject *obj;
25463 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25464 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
25465 return SWIG_Py_Void();
25466 }
25467
25468 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25469 return SWIG_Python_InitShadowInstance(args);
25470 }
25471
25472 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25473 PyObject *resultobj = 0;
25474 wxString const &arg1_defvalue = wxPyEmptyString ;
25475 wxString *arg1 = (wxString *) &arg1_defvalue ;
25476 wxMetaFile *result = 0 ;
25477 bool temp1 = false ;
25478 PyObject * obj0 = 0 ;
25479 char * kwnames[] = {
25480 (char *) "filename", NULL
25481 };
25482
25483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
25484 if (obj0) {
25485 {
25486 arg1 = wxString_in_helper(obj0);
25487 if (arg1 == NULL) SWIG_fail;
25488 temp1 = true;
25489 }
25490 }
25491 {
25492 if (!wxPyCheckForApp()) SWIG_fail;
25493 PyThreadState* __tstate = wxPyBeginAllowThreads();
25494 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
25495 wxPyEndAllowThreads(__tstate);
25496 if (PyErr_Occurred()) SWIG_fail;
25497 }
25498 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
25499 {
25500 if (temp1)
25501 delete arg1;
25502 }
25503 return resultobj;
25504 fail:
25505 {
25506 if (temp1)
25507 delete arg1;
25508 }
25509 return NULL;
25510 }
25511
25512
25513 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25514 PyObject *resultobj = 0;
25515 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25516 void *argp1 = 0 ;
25517 int res1 = 0 ;
25518 PyObject *swig_obj[1] ;
25519
25520 if (!args) SWIG_fail;
25521 swig_obj[0] = args;
25522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
25523 if (!SWIG_IsOK(res1)) {
25524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25525 }
25526 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25527 {
25528 PyThreadState* __tstate = wxPyBeginAllowThreads();
25529 delete arg1;
25530
25531 wxPyEndAllowThreads(__tstate);
25532 if (PyErr_Occurred()) SWIG_fail;
25533 }
25534 resultobj = SWIG_Py_Void();
25535 return resultobj;
25536 fail:
25537 return NULL;
25538 }
25539
25540
25541 SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25542 PyObject *resultobj = 0;
25543 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25544 bool result;
25545 void *argp1 = 0 ;
25546 int res1 = 0 ;
25547 PyObject *swig_obj[1] ;
25548
25549 if (!args) SWIG_fail;
25550 swig_obj[0] = args;
25551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25552 if (!SWIG_IsOK(res1)) {
25553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25554 }
25555 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25556 {
25557 PyThreadState* __tstate = wxPyBeginAllowThreads();
25558 result = (bool)(arg1)->IsOk();
25559 wxPyEndAllowThreads(__tstate);
25560 if (PyErr_Occurred()) SWIG_fail;
25561 }
25562 {
25563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25564 }
25565 return resultobj;
25566 fail:
25567 return NULL;
25568 }
25569
25570
25571 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25572 PyObject *resultobj = 0;
25573 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25574 int arg2 = (int) 0 ;
25575 int arg3 = (int) 0 ;
25576 bool result;
25577 void *argp1 = 0 ;
25578 int res1 = 0 ;
25579 int val2 ;
25580 int ecode2 = 0 ;
25581 int val3 ;
25582 int ecode3 = 0 ;
25583 PyObject * obj0 = 0 ;
25584 PyObject * obj1 = 0 ;
25585 PyObject * obj2 = 0 ;
25586 char * kwnames[] = {
25587 (char *) "self",(char *) "width",(char *) "height", NULL
25588 };
25589
25590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25592 if (!SWIG_IsOK(res1)) {
25593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25594 }
25595 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25596 if (obj1) {
25597 ecode2 = SWIG_AsVal_int(obj1, &val2);
25598 if (!SWIG_IsOK(ecode2)) {
25599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
25600 }
25601 arg2 = static_cast< int >(val2);
25602 }
25603 if (obj2) {
25604 ecode3 = SWIG_AsVal_int(obj2, &val3);
25605 if (!SWIG_IsOK(ecode3)) {
25606 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
25607 }
25608 arg3 = static_cast< int >(val3);
25609 }
25610 {
25611 PyThreadState* __tstate = wxPyBeginAllowThreads();
25612 result = (bool)(arg1)->SetClipboard(arg2,arg3);
25613 wxPyEndAllowThreads(__tstate);
25614 if (PyErr_Occurred()) SWIG_fail;
25615 }
25616 {
25617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25618 }
25619 return resultobj;
25620 fail:
25621 return NULL;
25622 }
25623
25624
25625 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25626 PyObject *resultobj = 0;
25627 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25628 wxSize result;
25629 void *argp1 = 0 ;
25630 int res1 = 0 ;
25631 PyObject *swig_obj[1] ;
25632
25633 if (!args) SWIG_fail;
25634 swig_obj[0] = args;
25635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25636 if (!SWIG_IsOK(res1)) {
25637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25638 }
25639 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25640 {
25641 PyThreadState* __tstate = wxPyBeginAllowThreads();
25642 result = (arg1)->GetSize();
25643 wxPyEndAllowThreads(__tstate);
25644 if (PyErr_Occurred()) SWIG_fail;
25645 }
25646 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25647 return resultobj;
25648 fail:
25649 return NULL;
25650 }
25651
25652
25653 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25654 PyObject *resultobj = 0;
25655 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25656 int result;
25657 void *argp1 = 0 ;
25658 int res1 = 0 ;
25659 PyObject *swig_obj[1] ;
25660
25661 if (!args) SWIG_fail;
25662 swig_obj[0] = args;
25663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25664 if (!SWIG_IsOK(res1)) {
25665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25666 }
25667 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25668 {
25669 PyThreadState* __tstate = wxPyBeginAllowThreads();
25670 result = (int)(arg1)->GetWidth();
25671 wxPyEndAllowThreads(__tstate);
25672 if (PyErr_Occurred()) SWIG_fail;
25673 }
25674 resultobj = SWIG_From_int(static_cast< int >(result));
25675 return resultobj;
25676 fail:
25677 return NULL;
25678 }
25679
25680
25681 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25682 PyObject *resultobj = 0;
25683 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25684 int result;
25685 void *argp1 = 0 ;
25686 int res1 = 0 ;
25687 PyObject *swig_obj[1] ;
25688
25689 if (!args) SWIG_fail;
25690 swig_obj[0] = args;
25691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25692 if (!SWIG_IsOK(res1)) {
25693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25694 }
25695 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25696 {
25697 PyThreadState* __tstate = wxPyBeginAllowThreads();
25698 result = (int)(arg1)->GetHeight();
25699 wxPyEndAllowThreads(__tstate);
25700 if (PyErr_Occurred()) SWIG_fail;
25701 }
25702 resultobj = SWIG_From_int(static_cast< int >(result));
25703 return resultobj;
25704 fail:
25705 return NULL;
25706 }
25707
25708
25709 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25710 PyObject *obj;
25711 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25712 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25713 return SWIG_Py_Void();
25714 }
25715
25716 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25717 return SWIG_Python_InitShadowInstance(args);
25718 }
25719
25720 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25721 PyObject *resultobj = 0;
25722 wxString const &arg1_defvalue = wxPyEmptyString ;
25723 wxString *arg1 = (wxString *) &arg1_defvalue ;
25724 int arg2 = (int) 0 ;
25725 int arg3 = (int) 0 ;
25726 wxString const &arg4_defvalue = wxPyEmptyString ;
25727 wxString *arg4 = (wxString *) &arg4_defvalue ;
25728 wxMetaFileDC *result = 0 ;
25729 bool temp1 = false ;
25730 int val2 ;
25731 int ecode2 = 0 ;
25732 int val3 ;
25733 int ecode3 = 0 ;
25734 bool temp4 = false ;
25735 PyObject * obj0 = 0 ;
25736 PyObject * obj1 = 0 ;
25737 PyObject * obj2 = 0 ;
25738 PyObject * obj3 = 0 ;
25739 char * kwnames[] = {
25740 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25741 };
25742
25743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25744 if (obj0) {
25745 {
25746 arg1 = wxString_in_helper(obj0);
25747 if (arg1 == NULL) SWIG_fail;
25748 temp1 = true;
25749 }
25750 }
25751 if (obj1) {
25752 ecode2 = SWIG_AsVal_int(obj1, &val2);
25753 if (!SWIG_IsOK(ecode2)) {
25754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25755 }
25756 arg2 = static_cast< int >(val2);
25757 }
25758 if (obj2) {
25759 ecode3 = SWIG_AsVal_int(obj2, &val3);
25760 if (!SWIG_IsOK(ecode3)) {
25761 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25762 }
25763 arg3 = static_cast< int >(val3);
25764 }
25765 if (obj3) {
25766 {
25767 arg4 = wxString_in_helper(obj3);
25768 if (arg4 == NULL) SWIG_fail;
25769 temp4 = true;
25770 }
25771 }
25772 {
25773 if (!wxPyCheckForApp()) SWIG_fail;
25774 PyThreadState* __tstate = wxPyBeginAllowThreads();
25775 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25776 wxPyEndAllowThreads(__tstate);
25777 if (PyErr_Occurred()) SWIG_fail;
25778 }
25779 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25780 {
25781 if (temp1)
25782 delete arg1;
25783 }
25784 {
25785 if (temp4)
25786 delete arg4;
25787 }
25788 return resultobj;
25789 fail:
25790 {
25791 if (temp1)
25792 delete arg1;
25793 }
25794 {
25795 if (temp4)
25796 delete arg4;
25797 }
25798 return NULL;
25799 }
25800
25801
25802 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25803 PyObject *resultobj = 0;
25804 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25805 wxMetaFile *result = 0 ;
25806 void *argp1 = 0 ;
25807 int res1 = 0 ;
25808 PyObject *swig_obj[1] ;
25809
25810 if (!args) SWIG_fail;
25811 swig_obj[0] = args;
25812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25813 if (!SWIG_IsOK(res1)) {
25814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25815 }
25816 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25817 {
25818 PyThreadState* __tstate = wxPyBeginAllowThreads();
25819 result = (wxMetaFile *)(arg1)->Close();
25820 wxPyEndAllowThreads(__tstate);
25821 if (PyErr_Occurred()) SWIG_fail;
25822 }
25823 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25824 return resultobj;
25825 fail:
25826 return NULL;
25827 }
25828
25829
25830 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25831 PyObject *obj;
25832 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25833 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25834 return SWIG_Py_Void();
25835 }
25836
25837 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25838 return SWIG_Python_InitShadowInstance(args);
25839 }
25840
25841 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25842 PyObject *resultobj = 0;
25843 wxPrintData *arg1 = 0 ;
25844 wxPrinterDC *result = 0 ;
25845 void *argp1 = 0 ;
25846 int res1 = 0 ;
25847 PyObject * obj0 = 0 ;
25848 char * kwnames[] = {
25849 (char *) "printData", NULL
25850 };
25851
25852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25853 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25854 if (!SWIG_IsOK(res1)) {
25855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25856 }
25857 if (!argp1) {
25858 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25859 }
25860 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25861 {
25862 if (!wxPyCheckForApp()) SWIG_fail;
25863 PyThreadState* __tstate = wxPyBeginAllowThreads();
25864 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25865 wxPyEndAllowThreads(__tstate);
25866 if (PyErr_Occurred()) SWIG_fail;
25867 }
25868 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25869 return resultobj;
25870 fail:
25871 return NULL;
25872 }
25873
25874
25875 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25876 PyObject *obj;
25877 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25878 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25879 return SWIG_Py_Void();
25880 }
25881
25882 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25883 return SWIG_Python_InitShadowInstance(args);
25884 }
25885
25886 SWIGINTERN PyObject *SVGFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25887 PyObject *obj;
25888 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25889 SWIG_TypeNewClientData(SWIGTYPE_p_wxSVGFileDC, SWIG_NewClientData(obj));
25890 return SWIG_Py_Void();
25891 }
25892
25893 SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25894 PyObject *resultobj = 0;
25895 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25896 wxGraphicsObject *result = 0 ;
25897 void *argp1 = 0 ;
25898 int res1 = 0 ;
25899 PyObject * obj0 = 0 ;
25900 char * kwnames[] = {
25901 (char *) "renderer", NULL
25902 };
25903
25904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25905 if (obj0) {
25906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25907 if (!SWIG_IsOK(res1)) {
25908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25909 }
25910 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25911 }
25912 {
25913 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25914 if (PyErr_Occurred()) SWIG_fail;
25915 }
25916 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25917 return resultobj;
25918 fail:
25919 return NULL;
25920 }
25921
25922
25923 SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25924 PyObject *resultobj = 0;
25925 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25926 void *argp1 = 0 ;
25927 int res1 = 0 ;
25928 PyObject *swig_obj[1] ;
25929
25930 if (!args) SWIG_fail;
25931 swig_obj[0] = args;
25932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25933 if (!SWIG_IsOK(res1)) {
25934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25935 }
25936 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25937 {
25938 delete arg1;
25939
25940 if (PyErr_Occurred()) SWIG_fail;
25941 }
25942 resultobj = SWIG_Py_Void();
25943 return resultobj;
25944 fail:
25945 return NULL;
25946 }
25947
25948
25949 SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25950 PyObject *resultobj = 0;
25951 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25952 bool result;
25953 void *argp1 = 0 ;
25954 int res1 = 0 ;
25955 PyObject *swig_obj[1] ;
25956
25957 if (!args) SWIG_fail;
25958 swig_obj[0] = args;
25959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25960 if (!SWIG_IsOK(res1)) {
25961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25962 }
25963 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25964 {
25965 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25966 if (PyErr_Occurred()) SWIG_fail;
25967 }
25968 {
25969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25970 }
25971 return resultobj;
25972 fail:
25973 return NULL;
25974 }
25975
25976
25977 SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25978 PyObject *resultobj = 0;
25979 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25980 wxGraphicsRenderer *result = 0 ;
25981 void *argp1 = 0 ;
25982 int res1 = 0 ;
25983 PyObject *swig_obj[1] ;
25984
25985 if (!args) SWIG_fail;
25986 swig_obj[0] = args;
25987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25988 if (!SWIG_IsOK(res1)) {
25989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25990 }
25991 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25992 {
25993 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25994 if (PyErr_Occurred()) SWIG_fail;
25995 }
25996 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25997 return resultobj;
25998 fail:
25999 return NULL;
26000 }
26001
26002
26003 SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26004 PyObject *obj;
26005 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26006 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
26007 return SWIG_Py_Void();
26008 }
26009
26010 SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26011 return SWIG_Python_InitShadowInstance(args);
26012 }
26013
26014 SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26015 PyObject *resultobj = 0;
26016 wxGraphicsPen *result = 0 ;
26017
26018 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
26019 {
26020 result = (wxGraphicsPen *)new wxGraphicsPen();
26021 if (PyErr_Occurred()) SWIG_fail;
26022 }
26023 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
26024 return resultobj;
26025 fail:
26026 return NULL;
26027 }
26028
26029
26030 SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26031 PyObject *resultobj = 0;
26032 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
26033 void *argp1 = 0 ;
26034 int res1 = 0 ;
26035 PyObject *swig_obj[1] ;
26036
26037 if (!args) SWIG_fail;
26038 swig_obj[0] = args;
26039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
26040 if (!SWIG_IsOK(res1)) {
26041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
26042 }
26043 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
26044 {
26045 delete arg1;
26046
26047 if (PyErr_Occurred()) SWIG_fail;
26048 }
26049 resultobj = SWIG_Py_Void();
26050 return resultobj;
26051 fail:
26052 return NULL;
26053 }
26054
26055
26056 SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26057 PyObject *obj;
26058 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26059 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
26060 return SWIG_Py_Void();
26061 }
26062
26063 SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26064 return SWIG_Python_InitShadowInstance(args);
26065 }
26066
26067 SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26068 PyObject *resultobj = 0;
26069 wxGraphicsBrush *result = 0 ;
26070
26071 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
26072 {
26073 result = (wxGraphicsBrush *)new wxGraphicsBrush();
26074 if (PyErr_Occurred()) SWIG_fail;
26075 }
26076 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
26077 return resultobj;
26078 fail:
26079 return NULL;
26080 }
26081
26082
26083 SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26084 PyObject *resultobj = 0;
26085 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
26086 void *argp1 = 0 ;
26087 int res1 = 0 ;
26088 PyObject *swig_obj[1] ;
26089
26090 if (!args) SWIG_fail;
26091 swig_obj[0] = args;
26092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
26093 if (!SWIG_IsOK(res1)) {
26094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
26095 }
26096 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
26097 {
26098 delete arg1;
26099
26100 if (PyErr_Occurred()) SWIG_fail;
26101 }
26102 resultobj = SWIG_Py_Void();
26103 return resultobj;
26104 fail:
26105 return NULL;
26106 }
26107
26108
26109 SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26110 PyObject *obj;
26111 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26112 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
26113 return SWIG_Py_Void();
26114 }
26115
26116 SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26117 return SWIG_Python_InitShadowInstance(args);
26118 }
26119
26120 SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26121 PyObject *resultobj = 0;
26122 wxGraphicsFont *result = 0 ;
26123
26124 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
26125 {
26126 result = (wxGraphicsFont *)new wxGraphicsFont();
26127 if (PyErr_Occurred()) SWIG_fail;
26128 }
26129 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
26130 return resultobj;
26131 fail:
26132 return NULL;
26133 }
26134
26135
26136 SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26137 PyObject *resultobj = 0;
26138 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
26139 void *argp1 = 0 ;
26140 int res1 = 0 ;
26141 PyObject *swig_obj[1] ;
26142
26143 if (!args) SWIG_fail;
26144 swig_obj[0] = args;
26145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
26146 if (!SWIG_IsOK(res1)) {
26147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
26148 }
26149 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
26150 {
26151 delete arg1;
26152
26153 if (PyErr_Occurred()) SWIG_fail;
26154 }
26155 resultobj = SWIG_Py_Void();
26156 return resultobj;
26157 fail:
26158 return NULL;
26159 }
26160
26161
26162 SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26163 PyObject *obj;
26164 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26165 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
26166 return SWIG_Py_Void();
26167 }
26168
26169 SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26170 return SWIG_Python_InitShadowInstance(args);
26171 }
26172
26173 SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26174 PyObject *resultobj = 0;
26175 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26176 void *argp1 = 0 ;
26177 int res1 = 0 ;
26178 PyObject *swig_obj[1] ;
26179
26180 if (!args) SWIG_fail;
26181 swig_obj[0] = args;
26182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
26183 if (!SWIG_IsOK(res1)) {
26184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26185 }
26186 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26187 {
26188 delete arg1;
26189
26190 if (PyErr_Occurred()) SWIG_fail;
26191 }
26192 resultobj = SWIG_Py_Void();
26193 return resultobj;
26194 fail:
26195 return NULL;
26196 }
26197
26198
26199 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26200 PyObject *resultobj = 0;
26201 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26202 wxGraphicsMatrix *arg2 = 0 ;
26203 void *argp1 = 0 ;
26204 int res1 = 0 ;
26205 void *argp2 = 0 ;
26206 int res2 = 0 ;
26207 PyObject * obj0 = 0 ;
26208 PyObject * obj1 = 0 ;
26209 char * kwnames[] = {
26210 (char *) "self",(char *) "t", NULL
26211 };
26212
26213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
26214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26215 if (!SWIG_IsOK(res1)) {
26216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26217 }
26218 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26219 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26220 if (!SWIG_IsOK(res2)) {
26221 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26222 }
26223 if (!argp2) {
26224 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26225 }
26226 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26227 {
26228 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
26229 if (PyErr_Occurred()) SWIG_fail;
26230 }
26231 resultobj = SWIG_Py_Void();
26232 return resultobj;
26233 fail:
26234 return NULL;
26235 }
26236
26237
26238 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26239 PyObject *resultobj = 0;
26240 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26241 wxDouble arg2 = (wxDouble) 1.0 ;
26242 wxDouble arg3 = (wxDouble) 0.0 ;
26243 wxDouble arg4 = (wxDouble) 0.0 ;
26244 wxDouble arg5 = (wxDouble) 1.0 ;
26245 wxDouble arg6 = (wxDouble) 0.0 ;
26246 wxDouble arg7 = (wxDouble) 0.0 ;
26247 void *argp1 = 0 ;
26248 int res1 = 0 ;
26249 double val2 ;
26250 int ecode2 = 0 ;
26251 double val3 ;
26252 int ecode3 = 0 ;
26253 double val4 ;
26254 int ecode4 = 0 ;
26255 double val5 ;
26256 int ecode5 = 0 ;
26257 double val6 ;
26258 int ecode6 = 0 ;
26259 double val7 ;
26260 int ecode7 = 0 ;
26261 PyObject * obj0 = 0 ;
26262 PyObject * obj1 = 0 ;
26263 PyObject * obj2 = 0 ;
26264 PyObject * obj3 = 0 ;
26265 PyObject * obj4 = 0 ;
26266 PyObject * obj5 = 0 ;
26267 PyObject * obj6 = 0 ;
26268 char * kwnames[] = {
26269 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
26270 };
26271
26272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26274 if (!SWIG_IsOK(res1)) {
26275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26276 }
26277 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26278 if (obj1) {
26279 ecode2 = SWIG_AsVal_double(obj1, &val2);
26280 if (!SWIG_IsOK(ecode2)) {
26281 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
26282 }
26283 arg2 = static_cast< wxDouble >(val2);
26284 }
26285 if (obj2) {
26286 ecode3 = SWIG_AsVal_double(obj2, &val3);
26287 if (!SWIG_IsOK(ecode3)) {
26288 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
26289 }
26290 arg3 = static_cast< wxDouble >(val3);
26291 }
26292 if (obj3) {
26293 ecode4 = SWIG_AsVal_double(obj3, &val4);
26294 if (!SWIG_IsOK(ecode4)) {
26295 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
26296 }
26297 arg4 = static_cast< wxDouble >(val4);
26298 }
26299 if (obj4) {
26300 ecode5 = SWIG_AsVal_double(obj4, &val5);
26301 if (!SWIG_IsOK(ecode5)) {
26302 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
26303 }
26304 arg5 = static_cast< wxDouble >(val5);
26305 }
26306 if (obj5) {
26307 ecode6 = SWIG_AsVal_double(obj5, &val6);
26308 if (!SWIG_IsOK(ecode6)) {
26309 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
26310 }
26311 arg6 = static_cast< wxDouble >(val6);
26312 }
26313 if (obj6) {
26314 ecode7 = SWIG_AsVal_double(obj6, &val7);
26315 if (!SWIG_IsOK(ecode7)) {
26316 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
26317 }
26318 arg7 = static_cast< wxDouble >(val7);
26319 }
26320 {
26321 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
26322 if (PyErr_Occurred()) SWIG_fail;
26323 }
26324 resultobj = SWIG_Py_Void();
26325 return resultobj;
26326 fail:
26327 return NULL;
26328 }
26329
26330
26331 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26332 PyObject *resultobj = 0;
26333 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26334 wxDouble *arg2 = (wxDouble *) 0 ;
26335 wxDouble *arg3 = (wxDouble *) 0 ;
26336 wxDouble *arg4 = (wxDouble *) 0 ;
26337 wxDouble *arg5 = (wxDouble *) 0 ;
26338 wxDouble *arg6 = (wxDouble *) 0 ;
26339 wxDouble *arg7 = (wxDouble *) 0 ;
26340 void *argp1 = 0 ;
26341 int res1 = 0 ;
26342 wxDouble temp2 ;
26343 int res2 = SWIG_TMPOBJ ;
26344 wxDouble temp3 ;
26345 int res3 = SWIG_TMPOBJ ;
26346 wxDouble temp4 ;
26347 int res4 = SWIG_TMPOBJ ;
26348 wxDouble temp5 ;
26349 int res5 = SWIG_TMPOBJ ;
26350 wxDouble temp6 ;
26351 int res6 = SWIG_TMPOBJ ;
26352 wxDouble temp7 ;
26353 int res7 = SWIG_TMPOBJ ;
26354 PyObject *swig_obj[1] ;
26355
26356 arg2 = &temp2;
26357 arg3 = &temp3;
26358 arg4 = &temp4;
26359 arg5 = &temp5;
26360 arg6 = &temp6;
26361 arg7 = &temp7;
26362 if (!args) SWIG_fail;
26363 swig_obj[0] = args;
26364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26365 if (!SWIG_IsOK(res1)) {
26366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Get" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26367 }
26368 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26369 {
26370 (arg1)->Get(arg2,arg3,arg4,arg5,arg6,arg7);
26371 if (PyErr_Occurred()) SWIG_fail;
26372 }
26373 resultobj = SWIG_Py_Void();
26374 if (SWIG_IsTmpObj(res2)) {
26375 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26376 } else {
26377 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26378 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26379 }
26380 if (SWIG_IsTmpObj(res3)) {
26381 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26382 } else {
26383 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26384 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26385 }
26386 if (SWIG_IsTmpObj(res4)) {
26387 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
26388 } else {
26389 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26390 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
26391 }
26392 if (SWIG_IsTmpObj(res5)) {
26393 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
26394 } else {
26395 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26396 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
26397 }
26398 if (SWIG_IsTmpObj(res6)) {
26399 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
26400 } else {
26401 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26402 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
26403 }
26404 if (SWIG_IsTmpObj(res7)) {
26405 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg7)));
26406 } else {
26407 int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26408 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
26409 }
26410 return resultobj;
26411 fail:
26412 return NULL;
26413 }
26414
26415
26416 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26417 PyObject *resultobj = 0;
26418 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26419 void *argp1 = 0 ;
26420 int res1 = 0 ;
26421 PyObject *swig_obj[1] ;
26422
26423 if (!args) SWIG_fail;
26424 swig_obj[0] = args;
26425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26426 if (!SWIG_IsOK(res1)) {
26427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26428 }
26429 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26430 {
26431 (arg1)->Invert();
26432 if (PyErr_Occurred()) SWIG_fail;
26433 }
26434 resultobj = SWIG_Py_Void();
26435 return resultobj;
26436 fail:
26437 return NULL;
26438 }
26439
26440
26441 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26442 PyObject *resultobj = 0;
26443 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26444 wxGraphicsMatrix *arg2 = 0 ;
26445 bool result;
26446 void *argp1 = 0 ;
26447 int res1 = 0 ;
26448 void *argp2 = 0 ;
26449 int res2 = 0 ;
26450 PyObject * obj0 = 0 ;
26451 PyObject * obj1 = 0 ;
26452 char * kwnames[] = {
26453 (char *) "self",(char *) "t", NULL
26454 };
26455
26456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
26457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26458 if (!SWIG_IsOK(res1)) {
26459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26460 }
26461 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26462 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26463 if (!SWIG_IsOK(res2)) {
26464 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26465 }
26466 if (!argp2) {
26467 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26468 }
26469 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26470 {
26471 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
26472 if (PyErr_Occurred()) SWIG_fail;
26473 }
26474 {
26475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26476 }
26477 return resultobj;
26478 fail:
26479 return NULL;
26480 }
26481
26482
26483 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26484 PyObject *resultobj = 0;
26485 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26486 bool result;
26487 void *argp1 = 0 ;
26488 int res1 = 0 ;
26489 PyObject *swig_obj[1] ;
26490
26491 if (!args) SWIG_fail;
26492 swig_obj[0] = args;
26493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26494 if (!SWIG_IsOK(res1)) {
26495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26496 }
26497 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26498 {
26499 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
26500 if (PyErr_Occurred()) SWIG_fail;
26501 }
26502 {
26503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26504 }
26505 return resultobj;
26506 fail:
26507 return NULL;
26508 }
26509
26510
26511 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26512 PyObject *resultobj = 0;
26513 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26514 wxDouble arg2 ;
26515 wxDouble arg3 ;
26516 void *argp1 = 0 ;
26517 int res1 = 0 ;
26518 double val2 ;
26519 int ecode2 = 0 ;
26520 double val3 ;
26521 int ecode3 = 0 ;
26522 PyObject * obj0 = 0 ;
26523 PyObject * obj1 = 0 ;
26524 PyObject * obj2 = 0 ;
26525 char * kwnames[] = {
26526 (char *) "self",(char *) "dx",(char *) "dy", NULL
26527 };
26528
26529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26531 if (!SWIG_IsOK(res1)) {
26532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26533 }
26534 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26535 ecode2 = SWIG_AsVal_double(obj1, &val2);
26536 if (!SWIG_IsOK(ecode2)) {
26537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
26538 }
26539 arg2 = static_cast< wxDouble >(val2);
26540 ecode3 = SWIG_AsVal_double(obj2, &val3);
26541 if (!SWIG_IsOK(ecode3)) {
26542 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
26543 }
26544 arg3 = static_cast< wxDouble >(val3);
26545 {
26546 (arg1)->Translate(arg2,arg3);
26547 if (PyErr_Occurred()) SWIG_fail;
26548 }
26549 resultobj = SWIG_Py_Void();
26550 return resultobj;
26551 fail:
26552 return NULL;
26553 }
26554
26555
26556 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26557 PyObject *resultobj = 0;
26558 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26559 wxDouble arg2 ;
26560 wxDouble arg3 ;
26561 void *argp1 = 0 ;
26562 int res1 = 0 ;
26563 double val2 ;
26564 int ecode2 = 0 ;
26565 double val3 ;
26566 int ecode3 = 0 ;
26567 PyObject * obj0 = 0 ;
26568 PyObject * obj1 = 0 ;
26569 PyObject * obj2 = 0 ;
26570 char * kwnames[] = {
26571 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26572 };
26573
26574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26576 if (!SWIG_IsOK(res1)) {
26577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26578 }
26579 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26580 ecode2 = SWIG_AsVal_double(obj1, &val2);
26581 if (!SWIG_IsOK(ecode2)) {
26582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26583 }
26584 arg2 = static_cast< wxDouble >(val2);
26585 ecode3 = SWIG_AsVal_double(obj2, &val3);
26586 if (!SWIG_IsOK(ecode3)) {
26587 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26588 }
26589 arg3 = static_cast< wxDouble >(val3);
26590 {
26591 (arg1)->Scale(arg2,arg3);
26592 if (PyErr_Occurred()) SWIG_fail;
26593 }
26594 resultobj = SWIG_Py_Void();
26595 return resultobj;
26596 fail:
26597 return NULL;
26598 }
26599
26600
26601 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26602 PyObject *resultobj = 0;
26603 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26604 wxDouble arg2 ;
26605 void *argp1 = 0 ;
26606 int res1 = 0 ;
26607 double val2 ;
26608 int ecode2 = 0 ;
26609 PyObject * obj0 = 0 ;
26610 PyObject * obj1 = 0 ;
26611 char * kwnames[] = {
26612 (char *) "self",(char *) "angle", NULL
26613 };
26614
26615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26617 if (!SWIG_IsOK(res1)) {
26618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26619 }
26620 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26621 ecode2 = SWIG_AsVal_double(obj1, &val2);
26622 if (!SWIG_IsOK(ecode2)) {
26623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26624 }
26625 arg2 = static_cast< wxDouble >(val2);
26626 {
26627 (arg1)->Rotate(arg2);
26628 if (PyErr_Occurred()) SWIG_fail;
26629 }
26630 resultobj = SWIG_Py_Void();
26631 return resultobj;
26632 fail:
26633 return NULL;
26634 }
26635
26636
26637 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26638 PyObject *resultobj = 0;
26639 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26640 wxDouble *arg2 = (wxDouble *) 0 ;
26641 wxDouble *arg3 = (wxDouble *) 0 ;
26642 void *argp1 = 0 ;
26643 int res1 = 0 ;
26644 wxDouble temp2 ;
26645 int res2 = 0 ;
26646 wxDouble temp3 ;
26647 int res3 = 0 ;
26648 PyObject * obj0 = 0 ;
26649 PyObject * obj1 = 0 ;
26650 PyObject * obj2 = 0 ;
26651 char * kwnames[] = {
26652 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26653 };
26654
26655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26657 if (!SWIG_IsOK(res1)) {
26658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26659 }
26660 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26661 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26662 double val;
26663 int ecode = SWIG_AsVal_double(obj1, &val);
26664 if (!SWIG_IsOK(ecode)) {
26665 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26666 }
26667 temp2 = static_cast< wxDouble >(val);
26668 arg2 = &temp2;
26669 res2 = SWIG_AddTmpMask(ecode);
26670 }
26671 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26672 double val;
26673 int ecode = SWIG_AsVal_double(obj2, &val);
26674 if (!SWIG_IsOK(ecode)) {
26675 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26676 }
26677 temp3 = static_cast< wxDouble >(val);
26678 arg3 = &temp3;
26679 res3 = SWIG_AddTmpMask(ecode);
26680 }
26681 {
26682 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
26683 if (PyErr_Occurred()) SWIG_fail;
26684 }
26685 resultobj = SWIG_Py_Void();
26686 if (SWIG_IsTmpObj(res2)) {
26687 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26688 } else {
26689 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26690 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26691 }
26692 if (SWIG_IsTmpObj(res3)) {
26693 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26694 } else {
26695 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26696 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26697 }
26698 return resultobj;
26699 fail:
26700 return NULL;
26701 }
26702
26703
26704 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26705 PyObject *resultobj = 0;
26706 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26707 wxDouble *arg2 = (wxDouble *) 0 ;
26708 wxDouble *arg3 = (wxDouble *) 0 ;
26709 void *argp1 = 0 ;
26710 int res1 = 0 ;
26711 wxDouble temp2 ;
26712 int res2 = 0 ;
26713 wxDouble temp3 ;
26714 int res3 = 0 ;
26715 PyObject * obj0 = 0 ;
26716 PyObject * obj1 = 0 ;
26717 PyObject * obj2 = 0 ;
26718 char * kwnames[] = {
26719 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26720 };
26721
26722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26724 if (!SWIG_IsOK(res1)) {
26725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26726 }
26727 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26728 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26729 double val;
26730 int ecode = SWIG_AsVal_double(obj1, &val);
26731 if (!SWIG_IsOK(ecode)) {
26732 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26733 }
26734 temp2 = static_cast< wxDouble >(val);
26735 arg2 = &temp2;
26736 res2 = SWIG_AddTmpMask(ecode);
26737 }
26738 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26739 double val;
26740 int ecode = SWIG_AsVal_double(obj2, &val);
26741 if (!SWIG_IsOK(ecode)) {
26742 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
26743 }
26744 temp3 = static_cast< wxDouble >(val);
26745 arg3 = &temp3;
26746 res3 = SWIG_AddTmpMask(ecode);
26747 }
26748 {
26749 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
26750 if (PyErr_Occurred()) SWIG_fail;
26751 }
26752 resultobj = SWIG_Py_Void();
26753 if (SWIG_IsTmpObj(res2)) {
26754 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26755 } else {
26756 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26757 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26758 }
26759 if (SWIG_IsTmpObj(res3)) {
26760 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26761 } else {
26762 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26763 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26764 }
26765 return resultobj;
26766 fail:
26767 return NULL;
26768 }
26769
26770
26771 SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26772 PyObject *resultobj = 0;
26773 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26774 void *result = 0 ;
26775 void *argp1 = 0 ;
26776 int res1 = 0 ;
26777 PyObject *swig_obj[1] ;
26778
26779 if (!args) SWIG_fail;
26780 swig_obj[0] = args;
26781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26782 if (!SWIG_IsOK(res1)) {
26783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26784 }
26785 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26786 {
26787 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26788 if (PyErr_Occurred()) SWIG_fail;
26789 }
26790 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26791 return resultobj;
26792 fail:
26793 return NULL;
26794 }
26795
26796
26797 SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26798 PyObject *obj;
26799 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26800 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26801 return SWIG_Py_Void();
26802 }
26803
26804 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26805 PyObject *resultobj = 0;
26806 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26807 void *argp1 = 0 ;
26808 int res1 = 0 ;
26809 PyObject *swig_obj[1] ;
26810
26811 if (!args) SWIG_fail;
26812 swig_obj[0] = args;
26813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
26814 if (!SWIG_IsOK(res1)) {
26815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26816 }
26817 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26818 {
26819 delete arg1;
26820
26821 if (PyErr_Occurred()) SWIG_fail;
26822 }
26823 resultobj = SWIG_Py_Void();
26824 return resultobj;
26825 fail:
26826 return NULL;
26827 }
26828
26829
26830 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26831 PyObject *resultobj = 0;
26832 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26833 wxDouble arg2 ;
26834 wxDouble arg3 ;
26835 void *argp1 = 0 ;
26836 int res1 = 0 ;
26837 double val2 ;
26838 int ecode2 = 0 ;
26839 double val3 ;
26840 int ecode3 = 0 ;
26841
26842 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26844 if (!SWIG_IsOK(res1)) {
26845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26846 }
26847 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26848 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26849 if (!SWIG_IsOK(ecode2)) {
26850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26851 }
26852 arg2 = static_cast< wxDouble >(val2);
26853 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26854 if (!SWIG_IsOK(ecode3)) {
26855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26856 }
26857 arg3 = static_cast< wxDouble >(val3);
26858 {
26859 (arg1)->MoveToPoint(arg2,arg3);
26860 if (PyErr_Occurred()) SWIG_fail;
26861 }
26862 resultobj = SWIG_Py_Void();
26863 return resultobj;
26864 fail:
26865 return NULL;
26866 }
26867
26868
26869 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26870 PyObject *resultobj = 0;
26871 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26872 wxPoint2D *arg2 = 0 ;
26873 void *argp1 = 0 ;
26874 int res1 = 0 ;
26875 wxPoint2D temp2 ;
26876
26877 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26879 if (!SWIG_IsOK(res1)) {
26880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26881 }
26882 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26883 {
26884 arg2 = &temp2;
26885 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26886 }
26887 {
26888 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
26889 if (PyErr_Occurred()) SWIG_fail;
26890 }
26891 resultobj = SWIG_Py_Void();
26892 return resultobj;
26893 fail:
26894 return NULL;
26895 }
26896
26897
26898 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
26899 int argc;
26900 PyObject *argv[4];
26901
26902 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
26903 --argc;
26904 if (argc == 2) {
26905 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
26906 }
26907 if (argc == 3) {
26908 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
26909 }
26910
26911 fail:
26912 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
26913 return NULL;
26914 }
26915
26916
26917 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26918 PyObject *resultobj = 0;
26919 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26920 wxDouble arg2 ;
26921 wxDouble arg3 ;
26922 void *argp1 = 0 ;
26923 int res1 = 0 ;
26924 double val2 ;
26925 int ecode2 = 0 ;
26926 double val3 ;
26927 int ecode3 = 0 ;
26928
26929 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26931 if (!SWIG_IsOK(res1)) {
26932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26933 }
26934 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26935 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26936 if (!SWIG_IsOK(ecode2)) {
26937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26938 }
26939 arg2 = static_cast< wxDouble >(val2);
26940 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26941 if (!SWIG_IsOK(ecode3)) {
26942 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26943 }
26944 arg3 = static_cast< wxDouble >(val3);
26945 {
26946 (arg1)->AddLineToPoint(arg2,arg3);
26947 if (PyErr_Occurred()) SWIG_fail;
26948 }
26949 resultobj = SWIG_Py_Void();
26950 return resultobj;
26951 fail:
26952 return NULL;
26953 }
26954
26955
26956 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26957 PyObject *resultobj = 0;
26958 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26959 wxPoint2D *arg2 = 0 ;
26960 void *argp1 = 0 ;
26961 int res1 = 0 ;
26962 wxPoint2D temp2 ;
26963
26964 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26966 if (!SWIG_IsOK(res1)) {
26967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26968 }
26969 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26970 {
26971 arg2 = &temp2;
26972 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26973 }
26974 {
26975 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
26976 if (PyErr_Occurred()) SWIG_fail;
26977 }
26978 resultobj = SWIG_Py_Void();
26979 return resultobj;
26980 fail:
26981 return NULL;
26982 }
26983
26984
26985 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26986 int argc;
26987 PyObject *argv[4];
26988
26989 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26990 --argc;
26991 if (argc == 2) {
26992 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
26993 }
26994 if (argc == 3) {
26995 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
26996 }
26997
26998 fail:
26999 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
27000 return NULL;
27001 }
27002
27003
27004 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27005 PyObject *resultobj = 0;
27006 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27007 wxDouble arg2 ;
27008 wxDouble arg3 ;
27009 wxDouble arg4 ;
27010 wxDouble arg5 ;
27011 wxDouble arg6 ;
27012 wxDouble arg7 ;
27013 void *argp1 = 0 ;
27014 int res1 = 0 ;
27015 double val2 ;
27016 int ecode2 = 0 ;
27017 double val3 ;
27018 int ecode3 = 0 ;
27019 double val4 ;
27020 int ecode4 = 0 ;
27021 double val5 ;
27022 int ecode5 = 0 ;
27023 double val6 ;
27024 int ecode6 = 0 ;
27025 double val7 ;
27026 int ecode7 = 0 ;
27027
27028 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
27029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27030 if (!SWIG_IsOK(res1)) {
27031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27032 }
27033 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27034 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27035 if (!SWIG_IsOK(ecode2)) {
27036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27037 }
27038 arg2 = static_cast< wxDouble >(val2);
27039 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27040 if (!SWIG_IsOK(ecode3)) {
27041 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27042 }
27043 arg3 = static_cast< wxDouble >(val3);
27044 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27045 if (!SWIG_IsOK(ecode4)) {
27046 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27047 }
27048 arg4 = static_cast< wxDouble >(val4);
27049 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27050 if (!SWIG_IsOK(ecode5)) {
27051 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27052 }
27053 arg5 = static_cast< wxDouble >(val5);
27054 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
27055 if (!SWIG_IsOK(ecode6)) {
27056 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27057 }
27058 arg6 = static_cast< wxDouble >(val6);
27059 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
27060 if (!SWIG_IsOK(ecode7)) {
27061 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
27062 }
27063 arg7 = static_cast< wxDouble >(val7);
27064 {
27065 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
27066 if (PyErr_Occurred()) SWIG_fail;
27067 }
27068 resultobj = SWIG_Py_Void();
27069 return resultobj;
27070 fail:
27071 return NULL;
27072 }
27073
27074
27075 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27076 PyObject *resultobj = 0;
27077 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27078 wxPoint2D *arg2 = 0 ;
27079 wxPoint2D *arg3 = 0 ;
27080 wxPoint2D *arg4 = 0 ;
27081 void *argp1 = 0 ;
27082 int res1 = 0 ;
27083 wxPoint2D temp2 ;
27084 wxPoint2D temp3 ;
27085 wxPoint2D temp4 ;
27086
27087 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
27088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27089 if (!SWIG_IsOK(res1)) {
27090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27091 }
27092 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27093 {
27094 arg2 = &temp2;
27095 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27096 }
27097 {
27098 arg3 = &temp3;
27099 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
27100 }
27101 {
27102 arg4 = &temp4;
27103 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
27104 }
27105 {
27106 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
27107 if (PyErr_Occurred()) SWIG_fail;
27108 }
27109 resultobj = SWIG_Py_Void();
27110 return resultobj;
27111 fail:
27112 return NULL;
27113 }
27114
27115
27116 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
27117 int argc;
27118 PyObject *argv[8];
27119
27120 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
27121 --argc;
27122 if (argc == 4) {
27123 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
27124 }
27125 if (argc == 7) {
27126 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
27127 }
27128
27129 fail:
27130 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
27131 return NULL;
27132 }
27133
27134
27135 SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27136 PyObject *resultobj = 0;
27137 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27138 wxGraphicsPath *arg2 = 0 ;
27139 void *argp1 = 0 ;
27140 int res1 = 0 ;
27141 void *argp2 = 0 ;
27142 int res2 = 0 ;
27143 PyObject * obj0 = 0 ;
27144 PyObject * obj1 = 0 ;
27145 char * kwnames[] = {
27146 (char *) "self",(char *) "path", NULL
27147 };
27148
27149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
27150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27151 if (!SWIG_IsOK(res1)) {
27152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27153 }
27154 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27155 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
27156 if (!SWIG_IsOK(res2)) {
27157 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
27158 }
27159 if (!argp2) {
27160 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
27161 }
27162 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
27163 {
27164 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
27165 if (PyErr_Occurred()) SWIG_fail;
27166 }
27167 resultobj = SWIG_Py_Void();
27168 return resultobj;
27169 fail:
27170 return NULL;
27171 }
27172
27173
27174 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27175 PyObject *resultobj = 0;
27176 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27177 void *argp1 = 0 ;
27178 int res1 = 0 ;
27179 PyObject *swig_obj[1] ;
27180
27181 if (!args) SWIG_fail;
27182 swig_obj[0] = args;
27183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27184 if (!SWIG_IsOK(res1)) {
27185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27186 }
27187 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27188 {
27189 (arg1)->CloseSubpath();
27190 if (PyErr_Occurred()) SWIG_fail;
27191 }
27192 resultobj = SWIG_Py_Void();
27193 return resultobj;
27194 fail:
27195 return NULL;
27196 }
27197
27198
27199 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27200 PyObject *resultobj = 0;
27201 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27202 wxPoint2D result;
27203 void *argp1 = 0 ;
27204 int res1 = 0 ;
27205 PyObject *swig_obj[1] ;
27206
27207 if (!args) SWIG_fail;
27208 swig_obj[0] = args;
27209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27210 if (!SWIG_IsOK(res1)) {
27211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27212 }
27213 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27214 {
27215 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
27216 if (PyErr_Occurred()) SWIG_fail;
27217 }
27218 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
27219 return resultobj;
27220 fail:
27221 return NULL;
27222 }
27223
27224
27225 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27226 PyObject *resultobj = 0;
27227 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27228 wxDouble arg2 ;
27229 wxDouble arg3 ;
27230 wxDouble arg4 ;
27231 wxDouble arg5 ;
27232 wxDouble arg6 ;
27233 bool arg7 = (bool) true ;
27234 void *argp1 = 0 ;
27235 int res1 = 0 ;
27236 double val2 ;
27237 int ecode2 = 0 ;
27238 double val3 ;
27239 int ecode3 = 0 ;
27240 double val4 ;
27241 int ecode4 = 0 ;
27242 double val5 ;
27243 int ecode5 = 0 ;
27244 double val6 ;
27245 int ecode6 = 0 ;
27246 bool val7 ;
27247 int ecode7 = 0 ;
27248
27249 if ((nobjs < 6) || (nobjs > 7)) SWIG_fail;
27250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27251 if (!SWIG_IsOK(res1)) {
27252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27253 }
27254 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27255 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27256 if (!SWIG_IsOK(ecode2)) {
27257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
27258 }
27259 arg2 = static_cast< wxDouble >(val2);
27260 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27261 if (!SWIG_IsOK(ecode3)) {
27262 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
27263 }
27264 arg3 = static_cast< wxDouble >(val3);
27265 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27266 if (!SWIG_IsOK(ecode4)) {
27267 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27268 }
27269 arg4 = static_cast< wxDouble >(val4);
27270 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27271 if (!SWIG_IsOK(ecode5)) {
27272 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27273 }
27274 arg5 = static_cast< wxDouble >(val5);
27275 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
27276 if (!SWIG_IsOK(ecode6)) {
27277 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
27278 }
27279 arg6 = static_cast< wxDouble >(val6);
27280 if (swig_obj[6]) {
27281 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
27282 if (!SWIG_IsOK(ecode7)) {
27283 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
27284 }
27285 arg7 = static_cast< bool >(val7);
27286 }
27287 {
27288 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
27289 if (PyErr_Occurred()) SWIG_fail;
27290 }
27291 resultobj = SWIG_Py_Void();
27292 return resultobj;
27293 fail:
27294 return NULL;
27295 }
27296
27297
27298 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27299 PyObject *resultobj = 0;
27300 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27301 wxPoint2D *arg2 = 0 ;
27302 wxDouble arg3 ;
27303 wxDouble arg4 ;
27304 wxDouble arg5 ;
27305 bool arg6 = (bool) true ;
27306 void *argp1 = 0 ;
27307 int res1 = 0 ;
27308 wxPoint2D temp2 ;
27309 double val3 ;
27310 int ecode3 = 0 ;
27311 double val4 ;
27312 int ecode4 = 0 ;
27313 double val5 ;
27314 int ecode5 = 0 ;
27315 bool val6 ;
27316 int ecode6 = 0 ;
27317
27318 if ((nobjs < 5) || (nobjs > 6)) SWIG_fail;
27319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27320 if (!SWIG_IsOK(res1)) {
27321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27322 }
27323 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27324 {
27325 arg2 = &temp2;
27326 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27327 }
27328 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27329 if (!SWIG_IsOK(ecode3)) {
27330 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
27331 }
27332 arg3 = static_cast< wxDouble >(val3);
27333 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27334 if (!SWIG_IsOK(ecode4)) {
27335 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27336 }
27337 arg4 = static_cast< wxDouble >(val4);
27338 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27339 if (!SWIG_IsOK(ecode5)) {
27340 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27341 }
27342 arg5 = static_cast< wxDouble >(val5);
27343 if (swig_obj[5]) {
27344 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
27345 if (!SWIG_IsOK(ecode6)) {
27346 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
27347 }
27348 arg6 = static_cast< bool >(val6);
27349 }
27350 {
27351 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
27352 if (PyErr_Occurred()) SWIG_fail;
27353 }
27354 resultobj = SWIG_Py_Void();
27355 return resultobj;
27356 fail:
27357 return NULL;
27358 }
27359
27360
27361 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
27362 int argc;
27363 PyObject *argv[8];
27364
27365 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
27366 --argc;
27367 if ((argc >= 5) && (argc <= 6)) {
27368 int _v = 0;
27369 {
27370 {
27371 _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
27372 }
27373 }
27374 if (!_v) goto check_1;
27375 if (argc > 5) {
27376 {
27377 {
27378 int res = SWIG_AsVal_bool(argv[5], NULL);
27379 _v = SWIG_CheckState(res);
27380 }
27381 }
27382 if (!_v) goto check_1;
27383 }
27384 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
27385 }
27386 check_1:
27387
27388 if ((argc >= 6) && (argc <= 7)) {
27389 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
27390 }
27391
27392 fail:
27393 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
27394 return NULL;
27395 }
27396
27397
27398 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27399 PyObject *resultobj = 0;
27400 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27401 wxDouble arg2 ;
27402 wxDouble arg3 ;
27403 wxDouble arg4 ;
27404 wxDouble arg5 ;
27405 void *argp1 = 0 ;
27406 int res1 = 0 ;
27407 double val2 ;
27408 int ecode2 = 0 ;
27409 double val3 ;
27410 int ecode3 = 0 ;
27411 double val4 ;
27412 int ecode4 = 0 ;
27413 double val5 ;
27414 int ecode5 = 0 ;
27415 PyObject * obj0 = 0 ;
27416 PyObject * obj1 = 0 ;
27417 PyObject * obj2 = 0 ;
27418 PyObject * obj3 = 0 ;
27419 PyObject * obj4 = 0 ;
27420 char * kwnames[] = {
27421 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
27422 };
27423
27424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27426 if (!SWIG_IsOK(res1)) {
27427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27428 }
27429 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27430 ecode2 = SWIG_AsVal_double(obj1, &val2);
27431 if (!SWIG_IsOK(ecode2)) {
27432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27433 }
27434 arg2 = static_cast< wxDouble >(val2);
27435 ecode3 = SWIG_AsVal_double(obj2, &val3);
27436 if (!SWIG_IsOK(ecode3)) {
27437 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27438 }
27439 arg3 = static_cast< wxDouble >(val3);
27440 ecode4 = SWIG_AsVal_double(obj3, &val4);
27441 if (!SWIG_IsOK(ecode4)) {
27442 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27443 }
27444 arg4 = static_cast< wxDouble >(val4);
27445 ecode5 = SWIG_AsVal_double(obj4, &val5);
27446 if (!SWIG_IsOK(ecode5)) {
27447 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27448 }
27449 arg5 = static_cast< wxDouble >(val5);
27450 {
27451 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
27452 if (PyErr_Occurred()) SWIG_fail;
27453 }
27454 resultobj = SWIG_Py_Void();
27455 return resultobj;
27456 fail:
27457 return NULL;
27458 }
27459
27460
27461 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27462 PyObject *resultobj = 0;
27463 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27464 wxDouble arg2 ;
27465 wxDouble arg3 ;
27466 wxDouble arg4 ;
27467 wxDouble arg5 ;
27468 void *argp1 = 0 ;
27469 int res1 = 0 ;
27470 double val2 ;
27471 int ecode2 = 0 ;
27472 double val3 ;
27473 int ecode3 = 0 ;
27474 double val4 ;
27475 int ecode4 = 0 ;
27476 double val5 ;
27477 int ecode5 = 0 ;
27478 PyObject * obj0 = 0 ;
27479 PyObject * obj1 = 0 ;
27480 PyObject * obj2 = 0 ;
27481 PyObject * obj3 = 0 ;
27482 PyObject * obj4 = 0 ;
27483 char * kwnames[] = {
27484 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27485 };
27486
27487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27489 if (!SWIG_IsOK(res1)) {
27490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27491 }
27492 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27493 ecode2 = SWIG_AsVal_double(obj1, &val2);
27494 if (!SWIG_IsOK(ecode2)) {
27495 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27496 }
27497 arg2 = static_cast< wxDouble >(val2);
27498 ecode3 = SWIG_AsVal_double(obj2, &val3);
27499 if (!SWIG_IsOK(ecode3)) {
27500 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27501 }
27502 arg3 = static_cast< wxDouble >(val3);
27503 ecode4 = SWIG_AsVal_double(obj3, &val4);
27504 if (!SWIG_IsOK(ecode4)) {
27505 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27506 }
27507 arg4 = static_cast< wxDouble >(val4);
27508 ecode5 = SWIG_AsVal_double(obj4, &val5);
27509 if (!SWIG_IsOK(ecode5)) {
27510 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27511 }
27512 arg5 = static_cast< wxDouble >(val5);
27513 {
27514 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
27515 if (PyErr_Occurred()) SWIG_fail;
27516 }
27517 resultobj = SWIG_Py_Void();
27518 return resultobj;
27519 fail:
27520 return NULL;
27521 }
27522
27523
27524 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27525 PyObject *resultobj = 0;
27526 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27527 wxDouble arg2 ;
27528 wxDouble arg3 ;
27529 wxDouble arg4 ;
27530 void *argp1 = 0 ;
27531 int res1 = 0 ;
27532 double val2 ;
27533 int ecode2 = 0 ;
27534 double val3 ;
27535 int ecode3 = 0 ;
27536 double val4 ;
27537 int ecode4 = 0 ;
27538 PyObject * obj0 = 0 ;
27539 PyObject * obj1 = 0 ;
27540 PyObject * obj2 = 0 ;
27541 PyObject * obj3 = 0 ;
27542 char * kwnames[] = {
27543 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
27544 };
27545
27546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27548 if (!SWIG_IsOK(res1)) {
27549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27550 }
27551 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27552 ecode2 = SWIG_AsVal_double(obj1, &val2);
27553 if (!SWIG_IsOK(ecode2)) {
27554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
27555 }
27556 arg2 = static_cast< wxDouble >(val2);
27557 ecode3 = SWIG_AsVal_double(obj2, &val3);
27558 if (!SWIG_IsOK(ecode3)) {
27559 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
27560 }
27561 arg3 = static_cast< wxDouble >(val3);
27562 ecode4 = SWIG_AsVal_double(obj3, &val4);
27563 if (!SWIG_IsOK(ecode4)) {
27564 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
27565 }
27566 arg4 = static_cast< wxDouble >(val4);
27567 {
27568 (arg1)->AddCircle(arg2,arg3,arg4);
27569 if (PyErr_Occurred()) SWIG_fail;
27570 }
27571 resultobj = SWIG_Py_Void();
27572 return resultobj;
27573 fail:
27574 return NULL;
27575 }
27576
27577
27578 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27579 PyObject *resultobj = 0;
27580 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27581 wxDouble arg2 ;
27582 wxDouble arg3 ;
27583 wxDouble arg4 ;
27584 wxDouble arg5 ;
27585 wxDouble arg6 ;
27586 void *argp1 = 0 ;
27587 int res1 = 0 ;
27588 double val2 ;
27589 int ecode2 = 0 ;
27590 double val3 ;
27591 int ecode3 = 0 ;
27592 double val4 ;
27593 int ecode4 = 0 ;
27594 double val5 ;
27595 int ecode5 = 0 ;
27596 double val6 ;
27597 int ecode6 = 0 ;
27598 PyObject * obj0 = 0 ;
27599 PyObject * obj1 = 0 ;
27600 PyObject * obj2 = 0 ;
27601 PyObject * obj3 = 0 ;
27602 PyObject * obj4 = 0 ;
27603 PyObject * obj5 = 0 ;
27604 char * kwnames[] = {
27605 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
27606 };
27607
27608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27610 if (!SWIG_IsOK(res1)) {
27611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27612 }
27613 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27614 ecode2 = SWIG_AsVal_double(obj1, &val2);
27615 if (!SWIG_IsOK(ecode2)) {
27616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27617 }
27618 arg2 = static_cast< wxDouble >(val2);
27619 ecode3 = SWIG_AsVal_double(obj2, &val3);
27620 if (!SWIG_IsOK(ecode3)) {
27621 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27622 }
27623 arg3 = static_cast< wxDouble >(val3);
27624 ecode4 = SWIG_AsVal_double(obj3, &val4);
27625 if (!SWIG_IsOK(ecode4)) {
27626 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27627 }
27628 arg4 = static_cast< wxDouble >(val4);
27629 ecode5 = SWIG_AsVal_double(obj4, &val5);
27630 if (!SWIG_IsOK(ecode5)) {
27631 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27632 }
27633 arg5 = static_cast< wxDouble >(val5);
27634 ecode6 = SWIG_AsVal_double(obj5, &val6);
27635 if (!SWIG_IsOK(ecode6)) {
27636 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27637 }
27638 arg6 = static_cast< wxDouble >(val6);
27639 {
27640 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
27641 if (PyErr_Occurred()) SWIG_fail;
27642 }
27643 resultobj = SWIG_Py_Void();
27644 return resultobj;
27645 fail:
27646 return NULL;
27647 }
27648
27649
27650 SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27651 PyObject *resultobj = 0;
27652 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27653 wxDouble arg2 ;
27654 wxDouble arg3 ;
27655 wxDouble arg4 ;
27656 wxDouble arg5 ;
27657 void *argp1 = 0 ;
27658 int res1 = 0 ;
27659 double val2 ;
27660 int ecode2 = 0 ;
27661 double val3 ;
27662 int ecode3 = 0 ;
27663 double val4 ;
27664 int ecode4 = 0 ;
27665 double val5 ;
27666 int ecode5 = 0 ;
27667 PyObject * obj0 = 0 ;
27668 PyObject * obj1 = 0 ;
27669 PyObject * obj2 = 0 ;
27670 PyObject * obj3 = 0 ;
27671 PyObject * obj4 = 0 ;
27672 char * kwnames[] = {
27673 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27674 };
27675
27676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27678 if (!SWIG_IsOK(res1)) {
27679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27680 }
27681 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27682 ecode2 = SWIG_AsVal_double(obj1, &val2);
27683 if (!SWIG_IsOK(ecode2)) {
27684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27685 }
27686 arg2 = static_cast< wxDouble >(val2);
27687 ecode3 = SWIG_AsVal_double(obj2, &val3);
27688 if (!SWIG_IsOK(ecode3)) {
27689 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27690 }
27691 arg3 = static_cast< wxDouble >(val3);
27692 ecode4 = SWIG_AsVal_double(obj3, &val4);
27693 if (!SWIG_IsOK(ecode4)) {
27694 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27695 }
27696 arg4 = static_cast< wxDouble >(val4);
27697 ecode5 = SWIG_AsVal_double(obj4, &val5);
27698 if (!SWIG_IsOK(ecode5)) {
27699 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27700 }
27701 arg5 = static_cast< wxDouble >(val5);
27702 {
27703 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
27704 if (PyErr_Occurred()) SWIG_fail;
27705 }
27706 resultobj = SWIG_Py_Void();
27707 return resultobj;
27708 fail:
27709 return NULL;
27710 }
27711
27712
27713 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27714 PyObject *resultobj = 0;
27715 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27716 wxDouble arg2 ;
27717 wxDouble arg3 ;
27718 wxDouble arg4 ;
27719 wxDouble arg5 ;
27720 wxDouble arg6 ;
27721 void *argp1 = 0 ;
27722 int res1 = 0 ;
27723 double val2 ;
27724 int ecode2 = 0 ;
27725 double val3 ;
27726 int ecode3 = 0 ;
27727 double val4 ;
27728 int ecode4 = 0 ;
27729 double val5 ;
27730 int ecode5 = 0 ;
27731 double val6 ;
27732 int ecode6 = 0 ;
27733 PyObject * obj0 = 0 ;
27734 PyObject * obj1 = 0 ;
27735 PyObject * obj2 = 0 ;
27736 PyObject * obj3 = 0 ;
27737 PyObject * obj4 = 0 ;
27738 PyObject * obj5 = 0 ;
27739 char * kwnames[] = {
27740 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
27741 };
27742
27743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27745 if (!SWIG_IsOK(res1)) {
27746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27747 }
27748 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27749 ecode2 = SWIG_AsVal_double(obj1, &val2);
27750 if (!SWIG_IsOK(ecode2)) {
27751 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27752 }
27753 arg2 = static_cast< wxDouble >(val2);
27754 ecode3 = SWIG_AsVal_double(obj2, &val3);
27755 if (!SWIG_IsOK(ecode3)) {
27756 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27757 }
27758 arg3 = static_cast< wxDouble >(val3);
27759 ecode4 = SWIG_AsVal_double(obj3, &val4);
27760 if (!SWIG_IsOK(ecode4)) {
27761 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27762 }
27763 arg4 = static_cast< wxDouble >(val4);
27764 ecode5 = SWIG_AsVal_double(obj4, &val5);
27765 if (!SWIG_IsOK(ecode5)) {
27766 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27767 }
27768 arg5 = static_cast< wxDouble >(val5);
27769 ecode6 = SWIG_AsVal_double(obj5, &val6);
27770 if (!SWIG_IsOK(ecode6)) {
27771 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27772 }
27773 arg6 = static_cast< wxDouble >(val6);
27774 {
27775 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
27776 if (PyErr_Occurred()) SWIG_fail;
27777 }
27778 resultobj = SWIG_Py_Void();
27779 return resultobj;
27780 fail:
27781 return NULL;
27782 }
27783
27784
27785 SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27786 PyObject *resultobj = 0;
27787 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27788 void *result = 0 ;
27789 void *argp1 = 0 ;
27790 int res1 = 0 ;
27791 PyObject *swig_obj[1] ;
27792
27793 if (!args) SWIG_fail;
27794 swig_obj[0] = args;
27795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27796 if (!SWIG_IsOK(res1)) {
27797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27798 }
27799 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27800 {
27801 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
27802 if (PyErr_Occurred()) SWIG_fail;
27803 }
27804 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
27805 return resultobj;
27806 fail:
27807 return NULL;
27808 }
27809
27810
27811 SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27812 PyObject *resultobj = 0;
27813 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27814 void *arg2 = (void *) 0 ;
27815 void *argp1 = 0 ;
27816 int res1 = 0 ;
27817 int res2 ;
27818 PyObject * obj0 = 0 ;
27819 PyObject * obj1 = 0 ;
27820 char * kwnames[] = {
27821 (char *) "self",(char *) "p", NULL
27822 };
27823
27824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27826 if (!SWIG_IsOK(res1)) {
27827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27828 }
27829 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27830 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27831 if (!SWIG_IsOK(res2)) {
27832 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
27833 }
27834 {
27835 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
27836 if (PyErr_Occurred()) SWIG_fail;
27837 }
27838 resultobj = SWIG_Py_Void();
27839 return resultobj;
27840 fail:
27841 return NULL;
27842 }
27843
27844
27845 SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27846 PyObject *resultobj = 0;
27847 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27848 wxGraphicsMatrix *arg2 = 0 ;
27849 void *argp1 = 0 ;
27850 int res1 = 0 ;
27851 void *argp2 = 0 ;
27852 int res2 = 0 ;
27853 PyObject * obj0 = 0 ;
27854 PyObject * obj1 = 0 ;
27855 char * kwnames[] = {
27856 (char *) "self",(char *) "matrix", NULL
27857 };
27858
27859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27861 if (!SWIG_IsOK(res1)) {
27862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27863 }
27864 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27865 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27866 if (!SWIG_IsOK(res2)) {
27867 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27868 }
27869 if (!argp2) {
27870 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27871 }
27872 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
27873 {
27874 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
27875 if (PyErr_Occurred()) SWIG_fail;
27876 }
27877 resultobj = SWIG_Py_Void();
27878 return resultobj;
27879 fail:
27880 return NULL;
27881 }
27882
27883
27884 SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27885 PyObject *resultobj = 0;
27886 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27887 wxRect2D result;
27888 void *argp1 = 0 ;
27889 int res1 = 0 ;
27890 PyObject *swig_obj[1] ;
27891
27892 if (!args) SWIG_fail;
27893 swig_obj[0] = args;
27894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27895 if (!SWIG_IsOK(res1)) {
27896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27897 }
27898 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27899 {
27900 result = ((wxGraphicsPath const *)arg1)->GetBox();
27901 if (PyErr_Occurred()) SWIG_fail;
27902 }
27903 resultobj = SWIG_NewPointerObj((new wxRect2D(static_cast< const wxRect2D& >(result))), SWIGTYPE_p_wxRect2D, SWIG_POINTER_OWN | 0 );
27904 return resultobj;
27905 fail:
27906 return NULL;
27907 }
27908
27909
27910 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27911 PyObject *resultobj = 0;
27912 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27913 wxDouble arg2 ;
27914 wxDouble arg3 ;
27915 int arg4 = (int) wxODDEVEN_RULE ;
27916 bool result;
27917 void *argp1 = 0 ;
27918 int res1 = 0 ;
27919 double val2 ;
27920 int ecode2 = 0 ;
27921 double val3 ;
27922 int ecode3 = 0 ;
27923 int val4 ;
27924 int ecode4 = 0 ;
27925
27926 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27928 if (!SWIG_IsOK(res1)) {
27929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27930 }
27931 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27932 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27933 if (!SWIG_IsOK(ecode2)) {
27934 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27935 }
27936 arg2 = static_cast< wxDouble >(val2);
27937 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27938 if (!SWIG_IsOK(ecode3)) {
27939 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27940 }
27941 arg3 = static_cast< wxDouble >(val3);
27942 if (swig_obj[3]) {
27943 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27944 if (!SWIG_IsOK(ecode4)) {
27945 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27946 }
27947 arg4 = static_cast< int >(val4);
27948 }
27949 {
27950 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
27951 if (PyErr_Occurred()) SWIG_fail;
27952 }
27953 {
27954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27955 }
27956 return resultobj;
27957 fail:
27958 return NULL;
27959 }
27960
27961
27962 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27963 PyObject *resultobj = 0;
27964 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27965 wxPoint2D *arg2 = 0 ;
27966 int arg3 = (int) wxODDEVEN_RULE ;
27967 bool result;
27968 void *argp1 = 0 ;
27969 int res1 = 0 ;
27970 wxPoint2D temp2 ;
27971 int val3 ;
27972 int ecode3 = 0 ;
27973
27974 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27976 if (!SWIG_IsOK(res1)) {
27977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27978 }
27979 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27980 {
27981 arg2 = &temp2;
27982 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27983 }
27984 if (swig_obj[2]) {
27985 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27986 if (!SWIG_IsOK(ecode3)) {
27987 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27988 }
27989 arg3 = static_cast< int >(val3);
27990 }
27991 {
27992 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2D const &)*arg2,arg3);
27993 if (PyErr_Occurred()) SWIG_fail;
27994 }
27995 {
27996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27997 }
27998 return resultobj;
27999 fail:
28000 return NULL;
28001 }
28002
28003
28004 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
28005 int argc;
28006 PyObject *argv[5];
28007
28008 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
28009 --argc;
28010 if ((argc >= 2) && (argc <= 3)) {
28011 int _v = 0;
28012 {
28013 {
28014 _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
28015 }
28016 }
28017 if (!_v) goto check_1;
28018 if (argc > 2) {
28019 {
28020 {
28021 int res = SWIG_AsVal_int(argv[2], NULL);
28022 _v = SWIG_CheckState(res);
28023 }
28024 }
28025 if (!_v) goto check_1;
28026 }
28027 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
28028 }
28029 check_1:
28030
28031 if ((argc >= 3) && (argc <= 4)) {
28032 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
28033 }
28034
28035 fail:
28036 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
28037 return NULL;
28038 }
28039
28040
28041 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28042 PyObject *obj;
28043 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28044 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
28045 return SWIG_Py_Void();
28046 }
28047
28048 SWIGINTERN int NullGraphicsPen_set(PyObject *) {
28049 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
28050 return 1;
28051 }
28052
28053
28054 SWIGINTERN PyObject *NullGraphicsPen_get(void) {
28055 PyObject *pyobj = 0;
28056
28057 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
28058 return pyobj;
28059 }
28060
28061
28062 SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
28063 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
28064 return 1;
28065 }
28066
28067
28068 SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
28069 PyObject *pyobj = 0;
28070
28071 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
28072 return pyobj;
28073 }
28074
28075
28076 SWIGINTERN int NullGraphicsFont_set(PyObject *) {
28077 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
28078 return 1;
28079 }
28080
28081
28082 SWIGINTERN PyObject *NullGraphicsFont_get(void) {
28083 PyObject *pyobj = 0;
28084
28085 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
28086 return pyobj;
28087 }
28088
28089
28090 SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
28091 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
28092 return 1;
28093 }
28094
28095
28096 SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
28097 PyObject *pyobj = 0;
28098
28099 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
28100 return pyobj;
28101 }
28102
28103
28104 SWIGINTERN int NullGraphicsPath_set(PyObject *) {
28105 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
28106 return 1;
28107 }
28108
28109
28110 SWIGINTERN PyObject *NullGraphicsPath_get(void) {
28111 PyObject *pyobj = 0;
28112
28113 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
28114 return pyobj;
28115 }
28116
28117
28118 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28119 PyObject *resultobj = 0;
28120 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28121 void *argp1 = 0 ;
28122 int res1 = 0 ;
28123 PyObject *swig_obj[1] ;
28124
28125 if (!args) SWIG_fail;
28126 swig_obj[0] = args;
28127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
28128 if (!SWIG_IsOK(res1)) {
28129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28130 }
28131 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28132 {
28133 delete arg1;
28134
28135 if (PyErr_Occurred()) SWIG_fail;
28136 }
28137 resultobj = SWIG_Py_Void();
28138 return resultobj;
28139 fail:
28140 return NULL;
28141 }
28142
28143
28144 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28145 PyObject *resultobj = 0;
28146 wxWindowDC *arg1 = 0 ;
28147 wxGraphicsContext *result = 0 ;
28148 void *argp1 = 0 ;
28149 int res1 = 0 ;
28150
28151 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
28153 if (!SWIG_IsOK(res1)) {
28154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28155 }
28156 if (!argp1) {
28157 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28158 }
28159 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
28160 {
28161 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
28162 if (PyErr_Occurred()) SWIG_fail;
28163 }
28164 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28165 return resultobj;
28166 fail:
28167 return NULL;
28168 }
28169
28170
28171 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28172 PyObject *resultobj = 0;
28173 wxWindow *arg1 = (wxWindow *) 0 ;
28174 wxGraphicsContext *result = 0 ;
28175 void *argp1 = 0 ;
28176 int res1 = 0 ;
28177
28178 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28180 if (!SWIG_IsOK(res1)) {
28181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
28182 }
28183 arg1 = reinterpret_cast< wxWindow * >(argp1);
28184 {
28185 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
28186 if (PyErr_Occurred()) SWIG_fail;
28187 }
28188 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28189 return resultobj;
28190 fail:
28191 return NULL;
28192 }
28193
28194
28195 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
28196 int argc;
28197 PyObject *argv[2];
28198
28199 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
28200 --argc;
28201 if (argc == 1) {
28202 int _v = 0;
28203 {
28204 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
28205 _v = SWIG_CheckState(res);
28206 }
28207 if (!_v) goto check_1;
28208 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
28209 }
28210 check_1:
28211
28212 if (argc == 1) {
28213 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
28214 }
28215
28216 fail:
28217 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
28218 return NULL;
28219 }
28220
28221
28222 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28223 PyObject *resultobj = 0;
28224 wxGraphicsContext *result = 0 ;
28225
28226 if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail;
28227 {
28228 result = (wxGraphicsContext *)wxGraphicsContext::Create();
28229 if (PyErr_Occurred()) SWIG_fail;
28230 }
28231 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28232 return resultobj;
28233 fail:
28234 return NULL;
28235 }
28236
28237
28238 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28239 PyObject *resultobj = 0;
28240 void *arg1 = (void *) 0 ;
28241 wxGraphicsContext *result = 0 ;
28242 int res1 ;
28243 PyObject * obj0 = 0 ;
28244 char * kwnames[] = {
28245 (char *) "context", NULL
28246 };
28247
28248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
28249 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28250 if (!SWIG_IsOK(res1)) {
28251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
28252 }
28253 {
28254 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
28255 if (PyErr_Occurred()) SWIG_fail;
28256 }
28257 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28258 return resultobj;
28259 fail:
28260 return NULL;
28261 }
28262
28263
28264 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28265 PyObject *resultobj = 0;
28266 void *arg1 = (void *) 0 ;
28267 wxGraphicsContext *result = 0 ;
28268 int res1 ;
28269 PyObject * obj0 = 0 ;
28270 char * kwnames[] = {
28271 (char *) "window", NULL
28272 };
28273
28274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
28275 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28276 if (!SWIG_IsOK(res1)) {
28277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
28278 }
28279 {
28280 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
28281 if (PyErr_Occurred()) SWIG_fail;
28282 }
28283 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28284 return resultobj;
28285 fail:
28286 return NULL;
28287 }
28288
28289
28290 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28291 PyObject *resultobj = 0;
28292 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28293 wxGraphicsPath result;
28294 void *argp1 = 0 ;
28295 int res1 = 0 ;
28296 PyObject *swig_obj[1] ;
28297
28298 if (!args) SWIG_fail;
28299 swig_obj[0] = args;
28300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28301 if (!SWIG_IsOK(res1)) {
28302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28303 }
28304 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28305 {
28306 result = (arg1)->CreatePath();
28307 if (PyErr_Occurred()) SWIG_fail;
28308 }
28309 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
28310 return resultobj;
28311 fail:
28312 return NULL;
28313 }
28314
28315
28316 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28317 PyObject *resultobj = 0;
28318 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28319 wxPen *arg2 = 0 ;
28320 wxGraphicsPen result;
28321 void *argp1 = 0 ;
28322 int res1 = 0 ;
28323 void *argp2 = 0 ;
28324 int res2 = 0 ;
28325 PyObject * obj0 = 0 ;
28326 PyObject * obj1 = 0 ;
28327 char * kwnames[] = {
28328 (char *) "self",(char *) "pen", NULL
28329 };
28330
28331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
28332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28333 if (!SWIG_IsOK(res1)) {
28334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28335 }
28336 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28337 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
28338 if (!SWIG_IsOK(res2)) {
28339 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28340 }
28341 if (!argp2) {
28342 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28343 }
28344 arg2 = reinterpret_cast< wxPen * >(argp2);
28345 {
28346 result = (arg1)->CreatePen((wxPen const &)*arg2);
28347 if (PyErr_Occurred()) SWIG_fail;
28348 }
28349 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
28350 return resultobj;
28351 fail:
28352 return NULL;
28353 }
28354
28355
28356 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28357 PyObject *resultobj = 0;
28358 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28359 wxBrush *arg2 = 0 ;
28360 wxGraphicsBrush result;
28361 void *argp1 = 0 ;
28362 int res1 = 0 ;
28363 void *argp2 = 0 ;
28364 int res2 = 0 ;
28365 PyObject * obj0 = 0 ;
28366 PyObject * obj1 = 0 ;
28367 char * kwnames[] = {
28368 (char *) "self",(char *) "brush", NULL
28369 };
28370
28371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28373 if (!SWIG_IsOK(res1)) {
28374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28375 }
28376 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28377 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28378 if (!SWIG_IsOK(res2)) {
28379 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28380 }
28381 if (!argp2) {
28382 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28383 }
28384 arg2 = reinterpret_cast< wxBrush * >(argp2);
28385 {
28386 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
28387 if (PyErr_Occurred()) SWIG_fail;
28388 }
28389 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28390 return resultobj;
28391 fail:
28392 return NULL;
28393 }
28394
28395
28396 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28397 PyObject *resultobj = 0;
28398 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28399 wxDouble arg2 ;
28400 wxDouble arg3 ;
28401 wxDouble arg4 ;
28402 wxDouble arg5 ;
28403 wxColour *arg6 = 0 ;
28404 wxColour *arg7 = 0 ;
28405 wxGraphicsBrush result;
28406 void *argp1 = 0 ;
28407 int res1 = 0 ;
28408 double val2 ;
28409 int ecode2 = 0 ;
28410 double val3 ;
28411 int ecode3 = 0 ;
28412 double val4 ;
28413 int ecode4 = 0 ;
28414 double val5 ;
28415 int ecode5 = 0 ;
28416 wxColour temp6 ;
28417 wxColour temp7 ;
28418 PyObject * obj0 = 0 ;
28419 PyObject * obj1 = 0 ;
28420 PyObject * obj2 = 0 ;
28421 PyObject * obj3 = 0 ;
28422 PyObject * obj4 = 0 ;
28423 PyObject * obj5 = 0 ;
28424 PyObject * obj6 = 0 ;
28425 char * kwnames[] = {
28426 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
28427 };
28428
28429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28431 if (!SWIG_IsOK(res1)) {
28432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28433 }
28434 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28435 ecode2 = SWIG_AsVal_double(obj1, &val2);
28436 if (!SWIG_IsOK(ecode2)) {
28437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
28438 }
28439 arg2 = static_cast< wxDouble >(val2);
28440 ecode3 = SWIG_AsVal_double(obj2, &val3);
28441 if (!SWIG_IsOK(ecode3)) {
28442 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
28443 }
28444 arg3 = static_cast< wxDouble >(val3);
28445 ecode4 = SWIG_AsVal_double(obj3, &val4);
28446 if (!SWIG_IsOK(ecode4)) {
28447 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
28448 }
28449 arg4 = static_cast< wxDouble >(val4);
28450 ecode5 = SWIG_AsVal_double(obj4, &val5);
28451 if (!SWIG_IsOK(ecode5)) {
28452 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
28453 }
28454 arg5 = static_cast< wxDouble >(val5);
28455 {
28456 arg6 = &temp6;
28457 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
28458 }
28459 {
28460 arg7 = &temp7;
28461 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28462 }
28463 {
28464 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
28465 if (PyErr_Occurred()) SWIG_fail;
28466 }
28467 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28468 return resultobj;
28469 fail:
28470 return NULL;
28471 }
28472
28473
28474 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28475 PyObject *resultobj = 0;
28476 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28477 wxDouble arg2 ;
28478 wxDouble arg3 ;
28479 wxDouble arg4 ;
28480 wxDouble arg5 ;
28481 wxDouble arg6 ;
28482 wxColour *arg7 = 0 ;
28483 wxColour *arg8 = 0 ;
28484 wxGraphicsBrush result;
28485 void *argp1 = 0 ;
28486 int res1 = 0 ;
28487 double val2 ;
28488 int ecode2 = 0 ;
28489 double val3 ;
28490 int ecode3 = 0 ;
28491 double val4 ;
28492 int ecode4 = 0 ;
28493 double val5 ;
28494 int ecode5 = 0 ;
28495 double val6 ;
28496 int ecode6 = 0 ;
28497 wxColour temp7 ;
28498 wxColour temp8 ;
28499 PyObject * obj0 = 0 ;
28500 PyObject * obj1 = 0 ;
28501 PyObject * obj2 = 0 ;
28502 PyObject * obj3 = 0 ;
28503 PyObject * obj4 = 0 ;
28504 PyObject * obj5 = 0 ;
28505 PyObject * obj6 = 0 ;
28506 PyObject * obj7 = 0 ;
28507 char * kwnames[] = {
28508 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
28509 };
28510
28511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28513 if (!SWIG_IsOK(res1)) {
28514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28515 }
28516 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28517 ecode2 = SWIG_AsVal_double(obj1, &val2);
28518 if (!SWIG_IsOK(ecode2)) {
28519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
28520 }
28521 arg2 = static_cast< wxDouble >(val2);
28522 ecode3 = SWIG_AsVal_double(obj2, &val3);
28523 if (!SWIG_IsOK(ecode3)) {
28524 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
28525 }
28526 arg3 = static_cast< wxDouble >(val3);
28527 ecode4 = SWIG_AsVal_double(obj3, &val4);
28528 if (!SWIG_IsOK(ecode4)) {
28529 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
28530 }
28531 arg4 = static_cast< wxDouble >(val4);
28532 ecode5 = SWIG_AsVal_double(obj4, &val5);
28533 if (!SWIG_IsOK(ecode5)) {
28534 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
28535 }
28536 arg5 = static_cast< wxDouble >(val5);
28537 ecode6 = SWIG_AsVal_double(obj5, &val6);
28538 if (!SWIG_IsOK(ecode6)) {
28539 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
28540 }
28541 arg6 = static_cast< wxDouble >(val6);
28542 {
28543 arg7 = &temp7;
28544 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28545 }
28546 {
28547 arg8 = &temp8;
28548 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
28549 }
28550 {
28551 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
28552 if (PyErr_Occurred()) SWIG_fail;
28553 }
28554 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28555 return resultobj;
28556 fail:
28557 return NULL;
28558 }
28559
28560
28561 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28562 PyObject *resultobj = 0;
28563 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28564 wxFont *arg2 = 0 ;
28565 wxColour const &arg3_defvalue = *wxBLACK ;
28566 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28567 wxGraphicsFont result;
28568 void *argp1 = 0 ;
28569 int res1 = 0 ;
28570 void *argp2 = 0 ;
28571 int res2 = 0 ;
28572 wxColour temp3 ;
28573 PyObject * obj0 = 0 ;
28574 PyObject * obj1 = 0 ;
28575 PyObject * obj2 = 0 ;
28576 char * kwnames[] = {
28577 (char *) "self",(char *) "font",(char *) "col", NULL
28578 };
28579
28580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28582 if (!SWIG_IsOK(res1)) {
28583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28584 }
28585 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28586 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28587 if (!SWIG_IsOK(res2)) {
28588 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28589 }
28590 if (!argp2) {
28591 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28592 }
28593 arg2 = reinterpret_cast< wxFont * >(argp2);
28594 if (obj2) {
28595 {
28596 arg3 = &temp3;
28597 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28598 }
28599 }
28600 {
28601 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
28602 if (PyErr_Occurred()) SWIG_fail;
28603 }
28604 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
28605 return resultobj;
28606 fail:
28607 return NULL;
28608 }
28609
28610
28611 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28612 PyObject *resultobj = 0;
28613 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28614 wxDouble arg2 = (wxDouble) 1.0 ;
28615 wxDouble arg3 = (wxDouble) 0.0 ;
28616 wxDouble arg4 = (wxDouble) 0.0 ;
28617 wxDouble arg5 = (wxDouble) 1.0 ;
28618 wxDouble arg6 = (wxDouble) 0.0 ;
28619 wxDouble arg7 = (wxDouble) 0.0 ;
28620 wxGraphicsMatrix result;
28621 void *argp1 = 0 ;
28622 int res1 = 0 ;
28623 double val2 ;
28624 int ecode2 = 0 ;
28625 double val3 ;
28626 int ecode3 = 0 ;
28627 double val4 ;
28628 int ecode4 = 0 ;
28629 double val5 ;
28630 int ecode5 = 0 ;
28631 double val6 ;
28632 int ecode6 = 0 ;
28633 double val7 ;
28634 int ecode7 = 0 ;
28635 PyObject * obj0 = 0 ;
28636 PyObject * obj1 = 0 ;
28637 PyObject * obj2 = 0 ;
28638 PyObject * obj3 = 0 ;
28639 PyObject * obj4 = 0 ;
28640 PyObject * obj5 = 0 ;
28641 PyObject * obj6 = 0 ;
28642 char * kwnames[] = {
28643 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28644 };
28645
28646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28648 if (!SWIG_IsOK(res1)) {
28649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28650 }
28651 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28652 if (obj1) {
28653 ecode2 = SWIG_AsVal_double(obj1, &val2);
28654 if (!SWIG_IsOK(ecode2)) {
28655 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28656 }
28657 arg2 = static_cast< wxDouble >(val2);
28658 }
28659 if (obj2) {
28660 ecode3 = SWIG_AsVal_double(obj2, &val3);
28661 if (!SWIG_IsOK(ecode3)) {
28662 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28663 }
28664 arg3 = static_cast< wxDouble >(val3);
28665 }
28666 if (obj3) {
28667 ecode4 = SWIG_AsVal_double(obj3, &val4);
28668 if (!SWIG_IsOK(ecode4)) {
28669 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28670 }
28671 arg4 = static_cast< wxDouble >(val4);
28672 }
28673 if (obj4) {
28674 ecode5 = SWIG_AsVal_double(obj4, &val5);
28675 if (!SWIG_IsOK(ecode5)) {
28676 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28677 }
28678 arg5 = static_cast< wxDouble >(val5);
28679 }
28680 if (obj5) {
28681 ecode6 = SWIG_AsVal_double(obj5, &val6);
28682 if (!SWIG_IsOK(ecode6)) {
28683 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28684 }
28685 arg6 = static_cast< wxDouble >(val6);
28686 }
28687 if (obj6) {
28688 ecode7 = SWIG_AsVal_double(obj6, &val7);
28689 if (!SWIG_IsOK(ecode7)) {
28690 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28691 }
28692 arg7 = static_cast< wxDouble >(val7);
28693 }
28694 {
28695 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
28696 if (PyErr_Occurred()) SWIG_fail;
28697 }
28698 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28699 return resultobj;
28700 fail:
28701 return NULL;
28702 }
28703
28704
28705 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28706 PyObject *resultobj = 0;
28707 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28708 void *argp1 = 0 ;
28709 int res1 = 0 ;
28710 PyObject *swig_obj[1] ;
28711
28712 if (!args) SWIG_fail;
28713 swig_obj[0] = args;
28714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28715 if (!SWIG_IsOK(res1)) {
28716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28717 }
28718 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28719 {
28720 (arg1)->PushState();
28721 if (PyErr_Occurred()) SWIG_fail;
28722 }
28723 resultobj = SWIG_Py_Void();
28724 return resultobj;
28725 fail:
28726 return NULL;
28727 }
28728
28729
28730 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28731 PyObject *resultobj = 0;
28732 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28733 void *argp1 = 0 ;
28734 int res1 = 0 ;
28735 PyObject *swig_obj[1] ;
28736
28737 if (!args) SWIG_fail;
28738 swig_obj[0] = args;
28739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28740 if (!SWIG_IsOK(res1)) {
28741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28742 }
28743 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28744 {
28745 (arg1)->PopState();
28746 if (PyErr_Occurred()) SWIG_fail;
28747 }
28748 resultobj = SWIG_Py_Void();
28749 return resultobj;
28750 fail:
28751 return NULL;
28752 }
28753
28754
28755 SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28756 PyObject *resultobj = 0;
28757 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28758 wxRegion *arg2 = 0 ;
28759 void *argp1 = 0 ;
28760 int res1 = 0 ;
28761 void *argp2 = 0 ;
28762 int res2 = 0 ;
28763 PyObject * obj0 = 0 ;
28764 PyObject * obj1 = 0 ;
28765 char * kwnames[] = {
28766 (char *) "self",(char *) "region", NULL
28767 };
28768
28769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
28770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28771 if (!SWIG_IsOK(res1)) {
28772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28773 }
28774 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28775 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28776 if (!SWIG_IsOK(res2)) {
28777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
28778 }
28779 if (!argp2) {
28780 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
28781 }
28782 arg2 = reinterpret_cast< wxRegion * >(argp2);
28783 {
28784 (arg1)->Clip((wxRegion const &)*arg2);
28785 if (PyErr_Occurred()) SWIG_fail;
28786 }
28787 resultobj = SWIG_Py_Void();
28788 return resultobj;
28789 fail:
28790 return NULL;
28791 }
28792
28793
28794 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28795 PyObject *resultobj = 0;
28796 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28797 wxDouble arg2 ;
28798 wxDouble arg3 ;
28799 wxDouble arg4 ;
28800 wxDouble arg5 ;
28801 void *argp1 = 0 ;
28802 int res1 = 0 ;
28803 double val2 ;
28804 int ecode2 = 0 ;
28805 double val3 ;
28806 int ecode3 = 0 ;
28807 double val4 ;
28808 int ecode4 = 0 ;
28809 double val5 ;
28810 int ecode5 = 0 ;
28811 PyObject * obj0 = 0 ;
28812 PyObject * obj1 = 0 ;
28813 PyObject * obj2 = 0 ;
28814 PyObject * obj3 = 0 ;
28815 PyObject * obj4 = 0 ;
28816 char * kwnames[] = {
28817 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28818 };
28819
28820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28822 if (!SWIG_IsOK(res1)) {
28823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28824 }
28825 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28826 ecode2 = SWIG_AsVal_double(obj1, &val2);
28827 if (!SWIG_IsOK(ecode2)) {
28828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28829 }
28830 arg2 = static_cast< wxDouble >(val2);
28831 ecode3 = SWIG_AsVal_double(obj2, &val3);
28832 if (!SWIG_IsOK(ecode3)) {
28833 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28834 }
28835 arg3 = static_cast< wxDouble >(val3);
28836 ecode4 = SWIG_AsVal_double(obj3, &val4);
28837 if (!SWIG_IsOK(ecode4)) {
28838 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28839 }
28840 arg4 = static_cast< wxDouble >(val4);
28841 ecode5 = SWIG_AsVal_double(obj4, &val5);
28842 if (!SWIG_IsOK(ecode5)) {
28843 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28844 }
28845 arg5 = static_cast< wxDouble >(val5);
28846 {
28847 (arg1)->Clip(arg2,arg3,arg4,arg5);
28848 if (PyErr_Occurred()) SWIG_fail;
28849 }
28850 resultobj = SWIG_Py_Void();
28851 return resultobj;
28852 fail:
28853 return NULL;
28854 }
28855
28856
28857 SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28858 PyObject *resultobj = 0;
28859 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28860 void *argp1 = 0 ;
28861 int res1 = 0 ;
28862 PyObject *swig_obj[1] ;
28863
28864 if (!args) SWIG_fail;
28865 swig_obj[0] = args;
28866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28867 if (!SWIG_IsOK(res1)) {
28868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28869 }
28870 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28871 {
28872 (arg1)->ResetClip();
28873 if (PyErr_Occurred()) SWIG_fail;
28874 }
28875 resultobj = SWIG_Py_Void();
28876 return resultobj;
28877 fail:
28878 return NULL;
28879 }
28880
28881
28882 SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28883 PyObject *resultobj = 0;
28884 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28885 void *result = 0 ;
28886 void *argp1 = 0 ;
28887 int res1 = 0 ;
28888 PyObject *swig_obj[1] ;
28889
28890 if (!args) SWIG_fail;
28891 swig_obj[0] = args;
28892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28893 if (!SWIG_IsOK(res1)) {
28894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28895 }
28896 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28897 {
28898 result = (void *)(arg1)->GetNativeContext();
28899 if (PyErr_Occurred()) SWIG_fail;
28900 }
28901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28902 return resultobj;
28903 fail:
28904 return NULL;
28905 }
28906
28907
28908 SWIGINTERN PyObject *_wrap_GraphicsContext_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28909 PyObject *resultobj = 0;
28910 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28911 int result;
28912 void *argp1 = 0 ;
28913 int res1 = 0 ;
28914 PyObject *swig_obj[1] ;
28915
28916 if (!args) SWIG_fail;
28917 swig_obj[0] = args;
28918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28919 if (!SWIG_IsOK(res1)) {
28920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28921 }
28922 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28923 {
28924 result = (int)((wxGraphicsContext const *)arg1)->GetLogicalFunction();
28925 if (PyErr_Occurred()) SWIG_fail;
28926 }
28927 resultobj = SWIG_From_int(static_cast< int >(result));
28928 return resultobj;
28929 fail:
28930 return NULL;
28931 }
28932
28933
28934 SWIGINTERN PyObject *_wrap_GraphicsContext_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28935 PyObject *resultobj = 0;
28936 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28937 int arg2 ;
28938 bool result;
28939 void *argp1 = 0 ;
28940 int res1 = 0 ;
28941 int val2 ;
28942 int ecode2 = 0 ;
28943 PyObject * obj0 = 0 ;
28944 PyObject * obj1 = 0 ;
28945 char * kwnames[] = {
28946 (char *) "self",(char *) "function", NULL
28947 };
28948
28949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
28950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28951 if (!SWIG_IsOK(res1)) {
28952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28953 }
28954 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28955 ecode2 = SWIG_AsVal_int(obj1, &val2);
28956 if (!SWIG_IsOK(ecode2)) {
28957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
28958 }
28959 arg2 = static_cast< int >(val2);
28960 {
28961 result = (bool)(arg1)->SetLogicalFunction(arg2);
28962 if (PyErr_Occurred()) SWIG_fail;
28963 }
28964 {
28965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28966 }
28967 return resultobj;
28968 fail:
28969 return NULL;
28970 }
28971
28972
28973 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28974 PyObject *resultobj = 0;
28975 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28976 wxDouble arg2 ;
28977 wxDouble arg3 ;
28978 void *argp1 = 0 ;
28979 int res1 = 0 ;
28980 double val2 ;
28981 int ecode2 = 0 ;
28982 double val3 ;
28983 int ecode3 = 0 ;
28984 PyObject * obj0 = 0 ;
28985 PyObject * obj1 = 0 ;
28986 PyObject * obj2 = 0 ;
28987 char * kwnames[] = {
28988 (char *) "self",(char *) "dx",(char *) "dy", NULL
28989 };
28990
28991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28993 if (!SWIG_IsOK(res1)) {
28994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28995 }
28996 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28997 ecode2 = SWIG_AsVal_double(obj1, &val2);
28998 if (!SWIG_IsOK(ecode2)) {
28999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
29000 }
29001 arg2 = static_cast< wxDouble >(val2);
29002 ecode3 = SWIG_AsVal_double(obj2, &val3);
29003 if (!SWIG_IsOK(ecode3)) {
29004 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
29005 }
29006 arg3 = static_cast< wxDouble >(val3);
29007 {
29008 (arg1)->Translate(arg2,arg3);
29009 if (PyErr_Occurred()) SWIG_fail;
29010 }
29011 resultobj = SWIG_Py_Void();
29012 return resultobj;
29013 fail:
29014 return NULL;
29015 }
29016
29017
29018 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29019 PyObject *resultobj = 0;
29020 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29021 wxDouble arg2 ;
29022 wxDouble arg3 ;
29023 void *argp1 = 0 ;
29024 int res1 = 0 ;
29025 double val2 ;
29026 int ecode2 = 0 ;
29027 double val3 ;
29028 int ecode3 = 0 ;
29029 PyObject * obj0 = 0 ;
29030 PyObject * obj1 = 0 ;
29031 PyObject * obj2 = 0 ;
29032 char * kwnames[] = {
29033 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
29034 };
29035
29036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29038 if (!SWIG_IsOK(res1)) {
29039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29040 }
29041 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29042 ecode2 = SWIG_AsVal_double(obj1, &val2);
29043 if (!SWIG_IsOK(ecode2)) {
29044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
29045 }
29046 arg2 = static_cast< wxDouble >(val2);
29047 ecode3 = SWIG_AsVal_double(obj2, &val3);
29048 if (!SWIG_IsOK(ecode3)) {
29049 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
29050 }
29051 arg3 = static_cast< wxDouble >(val3);
29052 {
29053 (arg1)->Scale(arg2,arg3);
29054 if (PyErr_Occurred()) SWIG_fail;
29055 }
29056 resultobj = SWIG_Py_Void();
29057 return resultobj;
29058 fail:
29059 return NULL;
29060 }
29061
29062
29063 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29064 PyObject *resultobj = 0;
29065 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29066 wxDouble arg2 ;
29067 void *argp1 = 0 ;
29068 int res1 = 0 ;
29069 double val2 ;
29070 int ecode2 = 0 ;
29071 PyObject * obj0 = 0 ;
29072 PyObject * obj1 = 0 ;
29073 char * kwnames[] = {
29074 (char *) "self",(char *) "angle", NULL
29075 };
29076
29077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
29078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29079 if (!SWIG_IsOK(res1)) {
29080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29081 }
29082 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29083 ecode2 = SWIG_AsVal_double(obj1, &val2);
29084 if (!SWIG_IsOK(ecode2)) {
29085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
29086 }
29087 arg2 = static_cast< wxDouble >(val2);
29088 {
29089 (arg1)->Rotate(arg2);
29090 if (PyErr_Occurred()) SWIG_fail;
29091 }
29092 resultobj = SWIG_Py_Void();
29093 return resultobj;
29094 fail:
29095 return NULL;
29096 }
29097
29098
29099 SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29100 PyObject *resultobj = 0;
29101 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29102 wxGraphicsMatrix *arg2 = 0 ;
29103 void *argp1 = 0 ;
29104 int res1 = 0 ;
29105 void *argp2 = 0 ;
29106 int res2 = 0 ;
29107 PyObject * obj0 = 0 ;
29108 PyObject * obj1 = 0 ;
29109 char * kwnames[] = {
29110 (char *) "self",(char *) "matrix", NULL
29111 };
29112
29113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
29114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29115 if (!SWIG_IsOK(res1)) {
29116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29117 }
29118 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29119 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29120 if (!SWIG_IsOK(res2)) {
29121 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29122 }
29123 if (!argp2) {
29124 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29125 }
29126 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29127 {
29128 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
29129 if (PyErr_Occurred()) SWIG_fail;
29130 }
29131 resultobj = SWIG_Py_Void();
29132 return resultobj;
29133 fail:
29134 return NULL;
29135 }
29136
29137
29138 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29139 PyObject *resultobj = 0;
29140 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29141 wxGraphicsMatrix *arg2 = 0 ;
29142 void *argp1 = 0 ;
29143 int res1 = 0 ;
29144 void *argp2 = 0 ;
29145 int res2 = 0 ;
29146 PyObject * obj0 = 0 ;
29147 PyObject * obj1 = 0 ;
29148 char * kwnames[] = {
29149 (char *) "self",(char *) "matrix", NULL
29150 };
29151
29152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
29153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29154 if (!SWIG_IsOK(res1)) {
29155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29156 }
29157 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29158 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29159 if (!SWIG_IsOK(res2)) {
29160 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29161 }
29162 if (!argp2) {
29163 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29164 }
29165 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29166 {
29167 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
29168 if (PyErr_Occurred()) SWIG_fail;
29169 }
29170 resultobj = SWIG_Py_Void();
29171 return resultobj;
29172 fail:
29173 return NULL;
29174 }
29175
29176
29177 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29178 PyObject *resultobj = 0;
29179 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29180 wxGraphicsMatrix result;
29181 void *argp1 = 0 ;
29182 int res1 = 0 ;
29183 PyObject *swig_obj[1] ;
29184
29185 if (!args) SWIG_fail;
29186 swig_obj[0] = args;
29187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29188 if (!SWIG_IsOK(res1)) {
29189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29190 }
29191 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29192 {
29193 result = ((wxGraphicsContext const *)arg1)->GetTransform();
29194 if (PyErr_Occurred()) SWIG_fail;
29195 }
29196 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
29197 return resultobj;
29198 fail:
29199 return NULL;
29200 }
29201
29202
29203 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29204 PyObject *resultobj = 0;
29205 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29206 wxGraphicsPen *arg2 = 0 ;
29207 void *argp1 = 0 ;
29208 int res1 = 0 ;
29209 void *argp2 = 0 ;
29210 int res2 = 0 ;
29211
29212 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29214 if (!SWIG_IsOK(res1)) {
29215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29216 }
29217 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29218 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
29219 if (!SWIG_IsOK(res2)) {
29220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29221 }
29222 if (!argp2) {
29223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29224 }
29225 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
29226 {
29227 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
29228 if (PyErr_Occurred()) SWIG_fail;
29229 }
29230 resultobj = SWIG_Py_Void();
29231 return resultobj;
29232 fail:
29233 return NULL;
29234 }
29235
29236
29237 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29238 PyObject *resultobj = 0;
29239 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29240 wxPen *arg2 = 0 ;
29241 void *argp1 = 0 ;
29242 int res1 = 0 ;
29243 void *argp2 = 0 ;
29244 int res2 = 0 ;
29245
29246 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29248 if (!SWIG_IsOK(res1)) {
29249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29250 }
29251 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29252 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
29253 if (!SWIG_IsOK(res2)) {
29254 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29255 }
29256 if (!argp2) {
29257 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29258 }
29259 arg2 = reinterpret_cast< wxPen * >(argp2);
29260 {
29261 (arg1)->SetPen((wxPen const &)*arg2);
29262 if (PyErr_Occurred()) SWIG_fail;
29263 }
29264 resultobj = SWIG_Py_Void();
29265 return resultobj;
29266 fail:
29267 return NULL;
29268 }
29269
29270
29271 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
29272 int argc;
29273 PyObject *argv[3];
29274
29275 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
29276 --argc;
29277 if (argc == 2) {
29278 int _v = 0;
29279 {
29280 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
29281 _v = SWIG_CheckState(res);
29282 }
29283 if (!_v) goto check_1;
29284 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
29285 }
29286 check_1:
29287
29288 if (argc == 2) {
29289 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
29290 }
29291
29292 fail:
29293 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
29294 return NULL;
29295 }
29296
29297
29298 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29299 PyObject *resultobj = 0;
29300 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29301 wxGraphicsBrush *arg2 = 0 ;
29302 void *argp1 = 0 ;
29303 int res1 = 0 ;
29304 void *argp2 = 0 ;
29305 int res2 = 0 ;
29306
29307 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29309 if (!SWIG_IsOK(res1)) {
29310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29311 }
29312 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29313 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29314 if (!SWIG_IsOK(res2)) {
29315 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29316 }
29317 if (!argp2) {
29318 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29319 }
29320 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
29321 {
29322 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
29323 if (PyErr_Occurred()) SWIG_fail;
29324 }
29325 resultobj = SWIG_Py_Void();
29326 return resultobj;
29327 fail:
29328 return NULL;
29329 }
29330
29331
29332 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29333 PyObject *resultobj = 0;
29334 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29335 wxBrush *arg2 = 0 ;
29336 void *argp1 = 0 ;
29337 int res1 = 0 ;
29338 void *argp2 = 0 ;
29339 int res2 = 0 ;
29340
29341 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29343 if (!SWIG_IsOK(res1)) {
29344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29345 }
29346 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29347 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
29348 if (!SWIG_IsOK(res2)) {
29349 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29350 }
29351 if (!argp2) {
29352 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29353 }
29354 arg2 = reinterpret_cast< wxBrush * >(argp2);
29355 {
29356 (arg1)->SetBrush((wxBrush const &)*arg2);
29357 if (PyErr_Occurred()) SWIG_fail;
29358 }
29359 resultobj = SWIG_Py_Void();
29360 return resultobj;
29361 fail:
29362 return NULL;
29363 }
29364
29365
29366 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
29367 int argc;
29368 PyObject *argv[3];
29369
29370 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
29371 --argc;
29372 if (argc == 2) {
29373 int _v = 0;
29374 {
29375 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
29376 _v = SWIG_CheckState(res);
29377 }
29378 if (!_v) goto check_1;
29379 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
29380 }
29381 check_1:
29382
29383 if (argc == 2) {
29384 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
29385 }
29386
29387 fail:
29388 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
29389 return NULL;
29390 }
29391
29392
29393 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29394 PyObject *resultobj = 0;
29395 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29396 wxGraphicsFont *arg2 = 0 ;
29397 void *argp1 = 0 ;
29398 int res1 = 0 ;
29399 void *argp2 = 0 ;
29400 int res2 = 0 ;
29401
29402 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29404 if (!SWIG_IsOK(res1)) {
29405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29406 }
29407 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29408 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
29409 if (!SWIG_IsOK(res2)) {
29410 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
29411 }
29412 if (!argp2) {
29413 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
29414 }
29415 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
29416 {
29417 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
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_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29428 PyObject *resultobj = 0;
29429 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29430 wxFont *arg2 = 0 ;
29431 wxColour const &arg3_defvalue = *wxBLACK ;
29432 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
29433 void *argp1 = 0 ;
29434 int res1 = 0 ;
29435 void *argp2 = 0 ;
29436 int res2 = 0 ;
29437 wxColour temp3 ;
29438
29439 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
29440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29441 if (!SWIG_IsOK(res1)) {
29442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29443 }
29444 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29445 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
29446 if (!SWIG_IsOK(res2)) {
29447 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29448 }
29449 if (!argp2) {
29450 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29451 }
29452 arg2 = reinterpret_cast< wxFont * >(argp2);
29453 if (swig_obj[2]) {
29454 {
29455 arg3 = &temp3;
29456 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
29457 }
29458 }
29459 {
29460 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
29461 if (PyErr_Occurred()) SWIG_fail;
29462 }
29463 resultobj = SWIG_Py_Void();
29464 return resultobj;
29465 fail:
29466 return NULL;
29467 }
29468
29469
29470 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
29471 int argc;
29472 PyObject *argv[4];
29473
29474 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
29475 --argc;
29476 if (argc == 2) {
29477 int _v = 0;
29478 {
29479 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
29480 _v = SWIG_CheckState(res);
29481 }
29482 if (!_v) goto check_1;
29483 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
29484 }
29485 check_1:
29486
29487 if ((argc >= 2) && (argc <= 3)) {
29488 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
29489 }
29490
29491 fail:
29492 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
29493 return NULL;
29494 }
29495
29496
29497 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29498 PyObject *resultobj = 0;
29499 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29500 wxGraphicsPath *arg2 = 0 ;
29501 void *argp1 = 0 ;
29502 int res1 = 0 ;
29503 void *argp2 = 0 ;
29504 int res2 = 0 ;
29505 PyObject * obj0 = 0 ;
29506 PyObject * obj1 = 0 ;
29507 char * kwnames[] = {
29508 (char *) "self",(char *) "path", NULL
29509 };
29510
29511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
29512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29513 if (!SWIG_IsOK(res1)) {
29514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29515 }
29516 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29517 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29518 if (!SWIG_IsOK(res2)) {
29519 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29520 }
29521 if (!argp2) {
29522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29523 }
29524 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29525 {
29526 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
29527 if (PyErr_Occurred()) SWIG_fail;
29528 }
29529 resultobj = SWIG_Py_Void();
29530 return resultobj;
29531 fail:
29532 return NULL;
29533 }
29534
29535
29536 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29537 PyObject *resultobj = 0;
29538 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29539 wxGraphicsPath *arg2 = 0 ;
29540 int arg3 = (int) wxODDEVEN_RULE ;
29541 void *argp1 = 0 ;
29542 int res1 = 0 ;
29543 void *argp2 = 0 ;
29544 int res2 = 0 ;
29545 int val3 ;
29546 int ecode3 = 0 ;
29547 PyObject * obj0 = 0 ;
29548 PyObject * obj1 = 0 ;
29549 PyObject * obj2 = 0 ;
29550 char * kwnames[] = {
29551 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29552 };
29553
29554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29556 if (!SWIG_IsOK(res1)) {
29557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29558 }
29559 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29560 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29561 if (!SWIG_IsOK(res2)) {
29562 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29563 }
29564 if (!argp2) {
29565 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29566 }
29567 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29568 if (obj2) {
29569 ecode3 = SWIG_AsVal_int(obj2, &val3);
29570 if (!SWIG_IsOK(ecode3)) {
29571 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
29572 }
29573 arg3 = static_cast< int >(val3);
29574 }
29575 {
29576 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
29577 if (PyErr_Occurred()) SWIG_fail;
29578 }
29579 resultobj = SWIG_Py_Void();
29580 return resultobj;
29581 fail:
29582 return NULL;
29583 }
29584
29585
29586 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29587 PyObject *resultobj = 0;
29588 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29589 wxGraphicsPath *arg2 = 0 ;
29590 int arg3 = (int) wxODDEVEN_RULE ;
29591 void *argp1 = 0 ;
29592 int res1 = 0 ;
29593 void *argp2 = 0 ;
29594 int res2 = 0 ;
29595 int val3 ;
29596 int ecode3 = 0 ;
29597 PyObject * obj0 = 0 ;
29598 PyObject * obj1 = 0 ;
29599 PyObject * obj2 = 0 ;
29600 char * kwnames[] = {
29601 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29602 };
29603
29604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29606 if (!SWIG_IsOK(res1)) {
29607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29608 }
29609 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29610 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29611 if (!SWIG_IsOK(res2)) {
29612 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29613 }
29614 if (!argp2) {
29615 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29616 }
29617 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29618 if (obj2) {
29619 ecode3 = SWIG_AsVal_int(obj2, &val3);
29620 if (!SWIG_IsOK(ecode3)) {
29621 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
29622 }
29623 arg3 = static_cast< int >(val3);
29624 }
29625 {
29626 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
29627 if (PyErr_Occurred()) SWIG_fail;
29628 }
29629 resultobj = SWIG_Py_Void();
29630 return resultobj;
29631 fail:
29632 return NULL;
29633 }
29634
29635
29636 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29637 PyObject *resultobj = 0;
29638 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29639 wxString *arg2 = 0 ;
29640 wxDouble arg3 ;
29641 wxDouble arg4 ;
29642 wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ;
29643 wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ;
29644 void *argp1 = 0 ;
29645 int res1 = 0 ;
29646 bool temp2 = false ;
29647 double val3 ;
29648 int ecode3 = 0 ;
29649 double val4 ;
29650 int ecode4 = 0 ;
29651 void *argp5 = 0 ;
29652 int res5 = 0 ;
29653 PyObject * obj0 = 0 ;
29654 PyObject * obj1 = 0 ;
29655 PyObject * obj2 = 0 ;
29656 PyObject * obj3 = 0 ;
29657 PyObject * obj4 = 0 ;
29658 char * kwnames[] = {
29659 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL
29660 };
29661
29662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29664 if (!SWIG_IsOK(res1)) {
29665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29666 }
29667 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29668 {
29669 arg2 = wxString_in_helper(obj1);
29670 if (arg2 == NULL) SWIG_fail;
29671 temp2 = true;
29672 }
29673 ecode3 = SWIG_AsVal_double(obj2, &val3);
29674 if (!SWIG_IsOK(ecode3)) {
29675 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
29676 }
29677 arg3 = static_cast< wxDouble >(val3);
29678 ecode4 = SWIG_AsVal_double(obj3, &val4);
29679 if (!SWIG_IsOK(ecode4)) {
29680 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
29681 }
29682 arg4 = static_cast< wxDouble >(val4);
29683 if (obj4) {
29684 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29685 if (!SWIG_IsOK(res5)) {
29686 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29687 }
29688 if (!argp5) {
29689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29690 }
29691 arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5);
29692 }
29693 {
29694 wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5);
29695 if (PyErr_Occurred()) SWIG_fail;
29696 }
29697 resultobj = SWIG_Py_Void();
29698 {
29699 if (temp2)
29700 delete arg2;
29701 }
29702 return resultobj;
29703 fail:
29704 {
29705 if (temp2)
29706 delete arg2;
29707 }
29708 return NULL;
29709 }
29710
29711
29712 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29713 PyObject *resultobj = 0;
29714 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29715 wxString *arg2 = 0 ;
29716 wxDouble arg3 ;
29717 wxDouble arg4 ;
29718 wxDouble arg5 ;
29719 wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ;
29720 wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ;
29721 void *argp1 = 0 ;
29722 int res1 = 0 ;
29723 bool temp2 = false ;
29724 double val3 ;
29725 int ecode3 = 0 ;
29726 double val4 ;
29727 int ecode4 = 0 ;
29728 double val5 ;
29729 int ecode5 = 0 ;
29730 void *argp6 = 0 ;
29731 int res6 = 0 ;
29732 PyObject * obj0 = 0 ;
29733 PyObject * obj1 = 0 ;
29734 PyObject * obj2 = 0 ;
29735 PyObject * obj3 = 0 ;
29736 PyObject * obj4 = 0 ;
29737 PyObject * obj5 = 0 ;
29738 char * kwnames[] = {
29739 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL
29740 };
29741
29742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29744 if (!SWIG_IsOK(res1)) {
29745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29746 }
29747 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29748 {
29749 arg2 = wxString_in_helper(obj1);
29750 if (arg2 == NULL) SWIG_fail;
29751 temp2 = true;
29752 }
29753 ecode3 = SWIG_AsVal_double(obj2, &val3);
29754 if (!SWIG_IsOK(ecode3)) {
29755 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
29756 }
29757 arg3 = static_cast< wxDouble >(val3);
29758 ecode4 = SWIG_AsVal_double(obj3, &val4);
29759 if (!SWIG_IsOK(ecode4)) {
29760 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
29761 }
29762 arg4 = static_cast< wxDouble >(val4);
29763 ecode5 = SWIG_AsVal_double(obj4, &val5);
29764 if (!SWIG_IsOK(ecode5)) {
29765 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
29766 }
29767 arg5 = static_cast< wxDouble >(val5);
29768 if (obj5) {
29769 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29770 if (!SWIG_IsOK(res6)) {
29771 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29772 }
29773 if (!argp6) {
29774 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29775 }
29776 arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6);
29777 }
29778 {
29779 wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6);
29780 if (PyErr_Occurred()) SWIG_fail;
29781 }
29782 resultobj = SWIG_Py_Void();
29783 {
29784 if (temp2)
29785 delete arg2;
29786 }
29787 return resultobj;
29788 fail:
29789 {
29790 if (temp2)
29791 delete arg2;
29792 }
29793 return NULL;
29794 }
29795
29796
29797 SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29798 PyObject *resultobj = 0;
29799 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29800 wxString *arg2 = 0 ;
29801 wxDouble *arg3 = (wxDouble *) 0 ;
29802 wxDouble *arg4 = (wxDouble *) 0 ;
29803 wxDouble *arg5 = (wxDouble *) 0 ;
29804 wxDouble *arg6 = (wxDouble *) 0 ;
29805 void *argp1 = 0 ;
29806 int res1 = 0 ;
29807 bool temp2 = false ;
29808 wxDouble temp3 ;
29809 int res3 = SWIG_TMPOBJ ;
29810 wxDouble temp4 ;
29811 int res4 = SWIG_TMPOBJ ;
29812 wxDouble temp5 ;
29813 int res5 = SWIG_TMPOBJ ;
29814 wxDouble temp6 ;
29815 int res6 = SWIG_TMPOBJ ;
29816 PyObject * obj0 = 0 ;
29817 PyObject * obj1 = 0 ;
29818 char * kwnames[] = {
29819 (char *) "self",(char *) "text", NULL
29820 };
29821
29822 arg3 = &temp3;
29823 arg4 = &temp4;
29824 arg5 = &temp5;
29825 arg6 = &temp6;
29826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29828 if (!SWIG_IsOK(res1)) {
29829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29830 }
29831 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29832 {
29833 arg2 = wxString_in_helper(obj1);
29834 if (arg2 == NULL) SWIG_fail;
29835 temp2 = true;
29836 }
29837 {
29838 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
29839 if (PyErr_Occurred()) SWIG_fail;
29840 }
29841 resultobj = SWIG_Py_Void();
29842 if (SWIG_IsTmpObj(res3)) {
29843 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29844 } else {
29845 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29846 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29847 }
29848 if (SWIG_IsTmpObj(res4)) {
29849 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29850 } else {
29851 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29852 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29853 }
29854 if (SWIG_IsTmpObj(res5)) {
29855 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29856 } else {
29857 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29858 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29859 }
29860 if (SWIG_IsTmpObj(res6)) {
29861 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29862 } else {
29863 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29864 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29865 }
29866 {
29867 if (temp2)
29868 delete arg2;
29869 }
29870 return resultobj;
29871 fail:
29872 {
29873 if (temp2)
29874 delete arg2;
29875 }
29876 return NULL;
29877 }
29878
29879
29880 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29881 PyObject *resultobj = 0;
29882 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29883 wxString *arg2 = 0 ;
29884 PyObject *result = 0 ;
29885 void *argp1 = 0 ;
29886 int res1 = 0 ;
29887 bool temp2 = false ;
29888 PyObject * obj0 = 0 ;
29889 PyObject * obj1 = 0 ;
29890 char * kwnames[] = {
29891 (char *) "self",(char *) "text", NULL
29892 };
29893
29894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29896 if (!SWIG_IsOK(res1)) {
29897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29898 }
29899 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29900 {
29901 arg2 = wxString_in_helper(obj1);
29902 if (arg2 == NULL) SWIG_fail;
29903 temp2 = true;
29904 }
29905 {
29906 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29907 if (PyErr_Occurred()) SWIG_fail;
29908 }
29909 resultobj = result;
29910 {
29911 if (temp2)
29912 delete arg2;
29913 }
29914 return resultobj;
29915 fail:
29916 {
29917 if (temp2)
29918 delete arg2;
29919 }
29920 return NULL;
29921 }
29922
29923
29924 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29925 PyObject *resultobj = 0;
29926 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29927 wxString *arg2 = 0 ;
29928 wxArrayDouble result;
29929 void *argp1 = 0 ;
29930 int res1 = 0 ;
29931 bool temp2 = false ;
29932 PyObject * obj0 = 0 ;
29933 PyObject * obj1 = 0 ;
29934 char * kwnames[] = {
29935 (char *) "self",(char *) "text", NULL
29936 };
29937
29938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
29939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29940 if (!SWIG_IsOK(res1)) {
29941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29942 }
29943 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29944 {
29945 arg2 = wxString_in_helper(obj1);
29946 if (arg2 == NULL) SWIG_fail;
29947 temp2 = true;
29948 }
29949 {
29950 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
29951 if (PyErr_Occurred()) SWIG_fail;
29952 }
29953 {
29954 resultobj = wxArrayDouble2PyList_helper(result);
29955 }
29956 {
29957 if (temp2)
29958 delete arg2;
29959 }
29960 return resultobj;
29961 fail:
29962 {
29963 if (temp2)
29964 delete arg2;
29965 }
29966 return NULL;
29967 }
29968
29969
29970 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29971 PyObject *resultobj = 0;
29972 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29973 wxBitmap *arg2 = 0 ;
29974 wxDouble arg3 ;
29975 wxDouble arg4 ;
29976 wxDouble arg5 ;
29977 wxDouble arg6 ;
29978 void *argp1 = 0 ;
29979 int res1 = 0 ;
29980 void *argp2 = 0 ;
29981 int res2 = 0 ;
29982 double val3 ;
29983 int ecode3 = 0 ;
29984 double val4 ;
29985 int ecode4 = 0 ;
29986 double val5 ;
29987 int ecode5 = 0 ;
29988 double val6 ;
29989 int ecode6 = 0 ;
29990 PyObject * obj0 = 0 ;
29991 PyObject * obj1 = 0 ;
29992 PyObject * obj2 = 0 ;
29993 PyObject * obj3 = 0 ;
29994 PyObject * obj4 = 0 ;
29995 PyObject * obj5 = 0 ;
29996 char * kwnames[] = {
29997 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29998 };
29999
30000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30002 if (!SWIG_IsOK(res1)) {
30003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30004 }
30005 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30006 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30007 if (!SWIG_IsOK(res2)) {
30008 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30009 }
30010 if (!argp2) {
30011 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30012 }
30013 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30014 ecode3 = SWIG_AsVal_double(obj2, &val3);
30015 if (!SWIG_IsOK(ecode3)) {
30016 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
30017 }
30018 arg3 = static_cast< wxDouble >(val3);
30019 ecode4 = SWIG_AsVal_double(obj3, &val4);
30020 if (!SWIG_IsOK(ecode4)) {
30021 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
30022 }
30023 arg4 = static_cast< wxDouble >(val4);
30024 ecode5 = SWIG_AsVal_double(obj4, &val5);
30025 if (!SWIG_IsOK(ecode5)) {
30026 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
30027 }
30028 arg5 = static_cast< wxDouble >(val5);
30029 ecode6 = SWIG_AsVal_double(obj5, &val6);
30030 if (!SWIG_IsOK(ecode6)) {
30031 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
30032 }
30033 arg6 = static_cast< wxDouble >(val6);
30034 {
30035 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
30036 if (PyErr_Occurred()) SWIG_fail;
30037 }
30038 resultobj = SWIG_Py_Void();
30039 return resultobj;
30040 fail:
30041 return NULL;
30042 }
30043
30044
30045 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30046 PyObject *resultobj = 0;
30047 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30048 wxIcon *arg2 = 0 ;
30049 wxDouble arg3 ;
30050 wxDouble arg4 ;
30051 wxDouble arg5 ;
30052 wxDouble arg6 ;
30053 void *argp1 = 0 ;
30054 int res1 = 0 ;
30055 void *argp2 = 0 ;
30056 int res2 = 0 ;
30057 double val3 ;
30058 int ecode3 = 0 ;
30059 double val4 ;
30060 int ecode4 = 0 ;
30061 double val5 ;
30062 int ecode5 = 0 ;
30063 double val6 ;
30064 int ecode6 = 0 ;
30065 PyObject * obj0 = 0 ;
30066 PyObject * obj1 = 0 ;
30067 PyObject * obj2 = 0 ;
30068 PyObject * obj3 = 0 ;
30069 PyObject * obj4 = 0 ;
30070 PyObject * obj5 = 0 ;
30071 char * kwnames[] = {
30072 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30073 };
30074
30075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30077 if (!SWIG_IsOK(res1)) {
30078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30079 }
30080 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30081 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30082 if (!SWIG_IsOK(res2)) {
30083 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30084 }
30085 if (!argp2) {
30086 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30087 }
30088 arg2 = reinterpret_cast< wxIcon * >(argp2);
30089 ecode3 = SWIG_AsVal_double(obj2, &val3);
30090 if (!SWIG_IsOK(ecode3)) {
30091 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
30092 }
30093 arg3 = static_cast< wxDouble >(val3);
30094 ecode4 = SWIG_AsVal_double(obj3, &val4);
30095 if (!SWIG_IsOK(ecode4)) {
30096 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
30097 }
30098 arg4 = static_cast< wxDouble >(val4);
30099 ecode5 = SWIG_AsVal_double(obj4, &val5);
30100 if (!SWIG_IsOK(ecode5)) {
30101 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
30102 }
30103 arg5 = static_cast< wxDouble >(val5);
30104 ecode6 = SWIG_AsVal_double(obj5, &val6);
30105 if (!SWIG_IsOK(ecode6)) {
30106 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
30107 }
30108 arg6 = static_cast< wxDouble >(val6);
30109 {
30110 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
30111 if (PyErr_Occurred()) SWIG_fail;
30112 }
30113 resultobj = SWIG_Py_Void();
30114 return resultobj;
30115 fail:
30116 return NULL;
30117 }
30118
30119
30120 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30121 PyObject *resultobj = 0;
30122 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30123 wxDouble arg2 ;
30124 wxDouble arg3 ;
30125 wxDouble arg4 ;
30126 wxDouble arg5 ;
30127 void *argp1 = 0 ;
30128 int res1 = 0 ;
30129 double val2 ;
30130 int ecode2 = 0 ;
30131 double val3 ;
30132 int ecode3 = 0 ;
30133 double val4 ;
30134 int ecode4 = 0 ;
30135 double val5 ;
30136 int ecode5 = 0 ;
30137 PyObject * obj0 = 0 ;
30138 PyObject * obj1 = 0 ;
30139 PyObject * obj2 = 0 ;
30140 PyObject * obj3 = 0 ;
30141 PyObject * obj4 = 0 ;
30142 char * kwnames[] = {
30143 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
30144 };
30145
30146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30148 if (!SWIG_IsOK(res1)) {
30149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30150 }
30151 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30152 ecode2 = SWIG_AsVal_double(obj1, &val2);
30153 if (!SWIG_IsOK(ecode2)) {
30154 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
30155 }
30156 arg2 = static_cast< wxDouble >(val2);
30157 ecode3 = SWIG_AsVal_double(obj2, &val3);
30158 if (!SWIG_IsOK(ecode3)) {
30159 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
30160 }
30161 arg3 = static_cast< wxDouble >(val3);
30162 ecode4 = SWIG_AsVal_double(obj3, &val4);
30163 if (!SWIG_IsOK(ecode4)) {
30164 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
30165 }
30166 arg4 = static_cast< wxDouble >(val4);
30167 ecode5 = SWIG_AsVal_double(obj4, &val5);
30168 if (!SWIG_IsOK(ecode5)) {
30169 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
30170 }
30171 arg5 = static_cast< wxDouble >(val5);
30172 {
30173 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
30174 if (PyErr_Occurred()) SWIG_fail;
30175 }
30176 resultobj = SWIG_Py_Void();
30177 return resultobj;
30178 fail:
30179 return NULL;
30180 }
30181
30182
30183 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30184 PyObject *resultobj = 0;
30185 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30186 size_t arg2 ;
30187 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
30188 void *argp1 = 0 ;
30189 int res1 = 0 ;
30190 PyObject * obj0 = 0 ;
30191 PyObject * obj1 = 0 ;
30192 char * kwnames[] = {
30193 (char *) "self",(char *) "points", NULL
30194 };
30195
30196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
30197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30198 if (!SWIG_IsOK(res1)) {
30199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30200 }
30201 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30202 {
30203 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30204 if (arg3 == NULL) SWIG_fail;
30205 }
30206 {
30207 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
30208 if (PyErr_Occurred()) SWIG_fail;
30209 }
30210 resultobj = SWIG_Py_Void();
30211 {
30212 if (arg3) delete [] arg3;
30213 }
30214 return resultobj;
30215 fail:
30216 {
30217 if (arg3) delete [] arg3;
30218 }
30219 return NULL;
30220 }
30221
30222
30223 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30224 PyObject *resultobj = 0;
30225 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30226 PyObject *arg2 = (PyObject *) 0 ;
30227 PyObject *arg3 = (PyObject *) 0 ;
30228 void *argp1 = 0 ;
30229 int res1 = 0 ;
30230 PyObject * obj0 = 0 ;
30231 PyObject * obj1 = 0 ;
30232 PyObject * obj2 = 0 ;
30233 char * kwnames[] = {
30234 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
30235 };
30236
30237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30239 if (!SWIG_IsOK(res1)) {
30240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30241 }
30242 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30243 arg2 = obj1;
30244 arg3 = obj2;
30245 {
30246 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
30247 if (PyErr_Occurred()) SWIG_fail;
30248 }
30249 resultobj = SWIG_Py_Void();
30250 return resultobj;
30251 fail:
30252 return NULL;
30253 }
30254
30255
30256 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30257 PyObject *resultobj = 0;
30258 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30259 size_t arg2 ;
30260 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
30261 int arg4 = (int) wxODDEVEN_RULE ;
30262 void *argp1 = 0 ;
30263 int res1 = 0 ;
30264 int val4 ;
30265 int ecode4 = 0 ;
30266 PyObject * obj0 = 0 ;
30267 PyObject * obj1 = 0 ;
30268 PyObject * obj2 = 0 ;
30269 char * kwnames[] = {
30270 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
30271 };
30272
30273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30275 if (!SWIG_IsOK(res1)) {
30276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30277 }
30278 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30279 {
30280 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30281 if (arg3 == NULL) SWIG_fail;
30282 }
30283 if (obj2) {
30284 ecode4 = SWIG_AsVal_int(obj2, &val4);
30285 if (!SWIG_IsOK(ecode4)) {
30286 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
30287 }
30288 arg4 = static_cast< int >(val4);
30289 }
30290 {
30291 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
30292 if (PyErr_Occurred()) SWIG_fail;
30293 }
30294 resultobj = SWIG_Py_Void();
30295 {
30296 if (arg3) delete [] arg3;
30297 }
30298 return resultobj;
30299 fail:
30300 {
30301 if (arg3) delete [] arg3;
30302 }
30303 return NULL;
30304 }
30305
30306
30307 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30308 PyObject *resultobj = 0;
30309 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30310 wxDouble arg2 ;
30311 wxDouble arg3 ;
30312 wxDouble arg4 ;
30313 wxDouble arg5 ;
30314 void *argp1 = 0 ;
30315 int res1 = 0 ;
30316 double val2 ;
30317 int ecode2 = 0 ;
30318 double val3 ;
30319 int ecode3 = 0 ;
30320 double val4 ;
30321 int ecode4 = 0 ;
30322 double val5 ;
30323 int ecode5 = 0 ;
30324 PyObject * obj0 = 0 ;
30325 PyObject * obj1 = 0 ;
30326 PyObject * obj2 = 0 ;
30327 PyObject * obj3 = 0 ;
30328 PyObject * obj4 = 0 ;
30329 char * kwnames[] = {
30330 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30331 };
30332
30333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30335 if (!SWIG_IsOK(res1)) {
30336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30337 }
30338 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30339 ecode2 = SWIG_AsVal_double(obj1, &val2);
30340 if (!SWIG_IsOK(ecode2)) {
30341 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
30342 }
30343 arg2 = static_cast< wxDouble >(val2);
30344 ecode3 = SWIG_AsVal_double(obj2, &val3);
30345 if (!SWIG_IsOK(ecode3)) {
30346 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
30347 }
30348 arg3 = static_cast< wxDouble >(val3);
30349 ecode4 = SWIG_AsVal_double(obj3, &val4);
30350 if (!SWIG_IsOK(ecode4)) {
30351 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
30352 }
30353 arg4 = static_cast< wxDouble >(val4);
30354 ecode5 = SWIG_AsVal_double(obj4, &val5);
30355 if (!SWIG_IsOK(ecode5)) {
30356 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
30357 }
30358 arg5 = static_cast< wxDouble >(val5);
30359 {
30360 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
30361 if (PyErr_Occurred()) SWIG_fail;
30362 }
30363 resultobj = SWIG_Py_Void();
30364 return resultobj;
30365 fail:
30366 return NULL;
30367 }
30368
30369
30370 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30371 PyObject *resultobj = 0;
30372 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30373 wxDouble arg2 ;
30374 wxDouble arg3 ;
30375 wxDouble arg4 ;
30376 wxDouble arg5 ;
30377 void *argp1 = 0 ;
30378 int res1 = 0 ;
30379 double val2 ;
30380 int ecode2 = 0 ;
30381 double val3 ;
30382 int ecode3 = 0 ;
30383 double val4 ;
30384 int ecode4 = 0 ;
30385 double val5 ;
30386 int ecode5 = 0 ;
30387 PyObject * obj0 = 0 ;
30388 PyObject * obj1 = 0 ;
30389 PyObject * obj2 = 0 ;
30390 PyObject * obj3 = 0 ;
30391 PyObject * obj4 = 0 ;
30392 char * kwnames[] = {
30393 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30394 };
30395
30396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30398 if (!SWIG_IsOK(res1)) {
30399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30400 }
30401 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30402 ecode2 = SWIG_AsVal_double(obj1, &val2);
30403 if (!SWIG_IsOK(ecode2)) {
30404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
30405 }
30406 arg2 = static_cast< wxDouble >(val2);
30407 ecode3 = SWIG_AsVal_double(obj2, &val3);
30408 if (!SWIG_IsOK(ecode3)) {
30409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
30410 }
30411 arg3 = static_cast< wxDouble >(val3);
30412 ecode4 = SWIG_AsVal_double(obj3, &val4);
30413 if (!SWIG_IsOK(ecode4)) {
30414 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
30415 }
30416 arg4 = static_cast< wxDouble >(val4);
30417 ecode5 = SWIG_AsVal_double(obj4, &val5);
30418 if (!SWIG_IsOK(ecode5)) {
30419 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
30420 }
30421 arg5 = static_cast< wxDouble >(val5);
30422 {
30423 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
30424 if (PyErr_Occurred()) SWIG_fail;
30425 }
30426 resultobj = SWIG_Py_Void();
30427 return resultobj;
30428 fail:
30429 return NULL;
30430 }
30431
30432
30433 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30434 PyObject *resultobj = 0;
30435 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30436 wxDouble arg2 ;
30437 wxDouble arg3 ;
30438 wxDouble arg4 ;
30439 wxDouble arg5 ;
30440 wxDouble arg6 ;
30441 void *argp1 = 0 ;
30442 int res1 = 0 ;
30443 double val2 ;
30444 int ecode2 = 0 ;
30445 double val3 ;
30446 int ecode3 = 0 ;
30447 double val4 ;
30448 int ecode4 = 0 ;
30449 double val5 ;
30450 int ecode5 = 0 ;
30451 double val6 ;
30452 int ecode6 = 0 ;
30453 PyObject * obj0 = 0 ;
30454 PyObject * obj1 = 0 ;
30455 PyObject * obj2 = 0 ;
30456 PyObject * obj3 = 0 ;
30457 PyObject * obj4 = 0 ;
30458 PyObject * obj5 = 0 ;
30459 char * kwnames[] = {
30460 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
30461 };
30462
30463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30465 if (!SWIG_IsOK(res1)) {
30466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30467 }
30468 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30469 ecode2 = SWIG_AsVal_double(obj1, &val2);
30470 if (!SWIG_IsOK(ecode2)) {
30471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
30472 }
30473 arg2 = static_cast< wxDouble >(val2);
30474 ecode3 = SWIG_AsVal_double(obj2, &val3);
30475 if (!SWIG_IsOK(ecode3)) {
30476 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
30477 }
30478 arg3 = static_cast< wxDouble >(val3);
30479 ecode4 = SWIG_AsVal_double(obj3, &val4);
30480 if (!SWIG_IsOK(ecode4)) {
30481 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
30482 }
30483 arg4 = static_cast< wxDouble >(val4);
30484 ecode5 = SWIG_AsVal_double(obj4, &val5);
30485 if (!SWIG_IsOK(ecode5)) {
30486 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
30487 }
30488 arg5 = static_cast< wxDouble >(val5);
30489 ecode6 = SWIG_AsVal_double(obj5, &val6);
30490 if (!SWIG_IsOK(ecode6)) {
30491 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
30492 }
30493 arg6 = static_cast< wxDouble >(val6);
30494 {
30495 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
30496 if (PyErr_Occurred()) SWIG_fail;
30497 }
30498 resultobj = SWIG_Py_Void();
30499 return resultobj;
30500 fail:
30501 return NULL;
30502 }
30503
30504
30505 SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30506 PyObject *resultobj = 0;
30507 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30508 bool result;
30509 void *argp1 = 0 ;
30510 int res1 = 0 ;
30511 PyObject *swig_obj[1] ;
30512
30513 if (!args) SWIG_fail;
30514 swig_obj[0] = args;
30515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30516 if (!SWIG_IsOK(res1)) {
30517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
30518 }
30519 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30520 {
30521 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
30522 if (PyErr_Occurred()) SWIG_fail;
30523 }
30524 {
30525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30526 }
30527 return resultobj;
30528 fail:
30529 return NULL;
30530 }
30531
30532
30533 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30534 PyObject *obj;
30535 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30536 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
30537 return SWIG_Py_Void();
30538 }
30539
30540 SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30541 PyObject *resultobj = 0;
30542 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30543 void *argp1 = 0 ;
30544 int res1 = 0 ;
30545 PyObject *swig_obj[1] ;
30546
30547 if (!args) SWIG_fail;
30548 swig_obj[0] = args;
30549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
30550 if (!SWIG_IsOK(res1)) {
30551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30552 }
30553 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30554 {
30555 delete arg1;
30556
30557 if (PyErr_Occurred()) SWIG_fail;
30558 }
30559 resultobj = SWIG_Py_Void();
30560 return resultobj;
30561 fail:
30562 return NULL;
30563 }
30564
30565
30566 SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30567 PyObject *resultobj = 0;
30568 wxGraphicsRenderer *result = 0 ;
30569
30570 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
30571 {
30572 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
30573 if (PyErr_Occurred()) SWIG_fail;
30574 }
30575 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30576 return resultobj;
30577 fail:
30578 return NULL;
30579 }
30580
30581
30582 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30583 PyObject *resultobj = 0;
30584 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30585 wxWindowDC *arg2 = 0 ;
30586 wxGraphicsContext *result = 0 ;
30587 void *argp1 = 0 ;
30588 int res1 = 0 ;
30589 void *argp2 = 0 ;
30590 int res2 = 0 ;
30591
30592 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30594 if (!SWIG_IsOK(res1)) {
30595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30596 }
30597 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30598 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
30599 if (!SWIG_IsOK(res2)) {
30600 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30601 }
30602 if (!argp2) {
30603 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30604 }
30605 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30606 {
30607 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
30608 if (PyErr_Occurred()) SWIG_fail;
30609 }
30610 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30611 return resultobj;
30612 fail:
30613 return NULL;
30614 }
30615
30616
30617 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30618 PyObject *resultobj = 0;
30619 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30620 wxWindow *arg2 = (wxWindow *) 0 ;
30621 wxGraphicsContext *result = 0 ;
30622 void *argp1 = 0 ;
30623 int res1 = 0 ;
30624 void *argp2 = 0 ;
30625 int res2 = 0 ;
30626
30627 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30629 if (!SWIG_IsOK(res1)) {
30630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30631 }
30632 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30633 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30634 if (!SWIG_IsOK(res2)) {
30635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
30636 }
30637 arg2 = reinterpret_cast< wxWindow * >(argp2);
30638 {
30639 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
30640 if (PyErr_Occurred()) SWIG_fail;
30641 }
30642 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30643 return resultobj;
30644 fail:
30645 return NULL;
30646 }
30647
30648
30649 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
30650 int argc;
30651 PyObject *argv[3];
30652
30653 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
30654 --argc;
30655 if (argc == 2) {
30656 int _v = 0;
30657 {
30658 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
30659 _v = SWIG_CheckState(res);
30660 }
30661 if (!_v) goto check_1;
30662 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
30663 }
30664 check_1:
30665
30666 if (argc == 2) {
30667 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
30668 }
30669
30670 fail:
30671 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
30672 return NULL;
30673 }
30674
30675
30676 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30677 PyObject *resultobj = 0;
30678 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30679 wxGraphicsContext *result = 0 ;
30680 void *argp1 = 0 ;
30681 int res1 = 0 ;
30682 PyObject *swig_obj[1] ;
30683
30684 if (!args) SWIG_fail;
30685 swig_obj[0] = args;
30686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30687 if (!SWIG_IsOK(res1)) {
30688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30689 }
30690 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30691 {
30692 result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext();
30693 if (PyErr_Occurred()) SWIG_fail;
30694 }
30695 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30696 return resultobj;
30697 fail:
30698 return NULL;
30699 }
30700
30701
30702 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30703 PyObject *resultobj = 0;
30704 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30705 void *arg2 = (void *) 0 ;
30706 wxGraphicsContext *result = 0 ;
30707 void *argp1 = 0 ;
30708 int res1 = 0 ;
30709 int res2 ;
30710 PyObject * obj0 = 0 ;
30711 PyObject * obj1 = 0 ;
30712 char * kwnames[] = {
30713 (char *) "self",(char *) "context", NULL
30714 };
30715
30716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
30717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30718 if (!SWIG_IsOK(res1)) {
30719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30720 }
30721 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30722 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30723 if (!SWIG_IsOK(res2)) {
30724 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
30725 }
30726 {
30727 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
30728 if (PyErr_Occurred()) SWIG_fail;
30729 }
30730 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30731 return resultobj;
30732 fail:
30733 return NULL;
30734 }
30735
30736
30737 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30738 PyObject *resultobj = 0;
30739 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30740 void *arg2 = (void *) 0 ;
30741 wxGraphicsContext *result = 0 ;
30742 void *argp1 = 0 ;
30743 int res1 = 0 ;
30744 int res2 ;
30745 PyObject * obj0 = 0 ;
30746 PyObject * obj1 = 0 ;
30747 char * kwnames[] = {
30748 (char *) "self",(char *) "window", NULL
30749 };
30750
30751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
30752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30753 if (!SWIG_IsOK(res1)) {
30754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30755 }
30756 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30757 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30758 if (!SWIG_IsOK(res2)) {
30759 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
30760 }
30761 {
30762 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
30763 if (PyErr_Occurred()) SWIG_fail;
30764 }
30765 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30766 return resultobj;
30767 fail:
30768 return NULL;
30769 }
30770
30771
30772 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30773 PyObject *resultobj = 0;
30774 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30775 wxGraphicsPath result;
30776 void *argp1 = 0 ;
30777 int res1 = 0 ;
30778 PyObject *swig_obj[1] ;
30779
30780 if (!args) SWIG_fail;
30781 swig_obj[0] = args;
30782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30783 if (!SWIG_IsOK(res1)) {
30784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30785 }
30786 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30787 {
30788 result = (arg1)->CreatePath();
30789 if (PyErr_Occurred()) SWIG_fail;
30790 }
30791 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
30792 return resultobj;
30793 fail:
30794 return NULL;
30795 }
30796
30797
30798 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30799 PyObject *resultobj = 0;
30800 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30801 wxDouble arg2 = (wxDouble) 1.0 ;
30802 wxDouble arg3 = (wxDouble) 0.0 ;
30803 wxDouble arg4 = (wxDouble) 0.0 ;
30804 wxDouble arg5 = (wxDouble) 1.0 ;
30805 wxDouble arg6 = (wxDouble) 0.0 ;
30806 wxDouble arg7 = (wxDouble) 0.0 ;
30807 wxGraphicsMatrix result;
30808 void *argp1 = 0 ;
30809 int res1 = 0 ;
30810 double val2 ;
30811 int ecode2 = 0 ;
30812 double val3 ;
30813 int ecode3 = 0 ;
30814 double val4 ;
30815 int ecode4 = 0 ;
30816 double val5 ;
30817 int ecode5 = 0 ;
30818 double val6 ;
30819 int ecode6 = 0 ;
30820 double val7 ;
30821 int ecode7 = 0 ;
30822 PyObject * obj0 = 0 ;
30823 PyObject * obj1 = 0 ;
30824 PyObject * obj2 = 0 ;
30825 PyObject * obj3 = 0 ;
30826 PyObject * obj4 = 0 ;
30827 PyObject * obj5 = 0 ;
30828 PyObject * obj6 = 0 ;
30829 char * kwnames[] = {
30830 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
30831 };
30832
30833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30835 if (!SWIG_IsOK(res1)) {
30836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30837 }
30838 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30839 if (obj1) {
30840 ecode2 = SWIG_AsVal_double(obj1, &val2);
30841 if (!SWIG_IsOK(ecode2)) {
30842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30843 }
30844 arg2 = static_cast< wxDouble >(val2);
30845 }
30846 if (obj2) {
30847 ecode3 = SWIG_AsVal_double(obj2, &val3);
30848 if (!SWIG_IsOK(ecode3)) {
30849 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30850 }
30851 arg3 = static_cast< wxDouble >(val3);
30852 }
30853 if (obj3) {
30854 ecode4 = SWIG_AsVal_double(obj3, &val4);
30855 if (!SWIG_IsOK(ecode4)) {
30856 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30857 }
30858 arg4 = static_cast< wxDouble >(val4);
30859 }
30860 if (obj4) {
30861 ecode5 = SWIG_AsVal_double(obj4, &val5);
30862 if (!SWIG_IsOK(ecode5)) {
30863 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30864 }
30865 arg5 = static_cast< wxDouble >(val5);
30866 }
30867 if (obj5) {
30868 ecode6 = SWIG_AsVal_double(obj5, &val6);
30869 if (!SWIG_IsOK(ecode6)) {
30870 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30871 }
30872 arg6 = static_cast< wxDouble >(val6);
30873 }
30874 if (obj6) {
30875 ecode7 = SWIG_AsVal_double(obj6, &val7);
30876 if (!SWIG_IsOK(ecode7)) {
30877 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30878 }
30879 arg7 = static_cast< wxDouble >(val7);
30880 }
30881 {
30882 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
30883 if (PyErr_Occurred()) SWIG_fail;
30884 }
30885 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
30886 return resultobj;
30887 fail:
30888 return NULL;
30889 }
30890
30891
30892 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30893 PyObject *resultobj = 0;
30894 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30895 wxPen *arg2 = 0 ;
30896 wxGraphicsPen result;
30897 void *argp1 = 0 ;
30898 int res1 = 0 ;
30899 void *argp2 = 0 ;
30900 int res2 = 0 ;
30901 PyObject * obj0 = 0 ;
30902 PyObject * obj1 = 0 ;
30903 char * kwnames[] = {
30904 (char *) "self",(char *) "pen", NULL
30905 };
30906
30907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30909 if (!SWIG_IsOK(res1)) {
30910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30911 }
30912 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30913 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30914 if (!SWIG_IsOK(res2)) {
30915 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30916 }
30917 if (!argp2) {
30918 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30919 }
30920 arg2 = reinterpret_cast< wxPen * >(argp2);
30921 {
30922 result = (arg1)->CreatePen((wxPen const &)*arg2);
30923 if (PyErr_Occurred()) SWIG_fail;
30924 }
30925 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30926 return resultobj;
30927 fail:
30928 return NULL;
30929 }
30930
30931
30932 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30933 PyObject *resultobj = 0;
30934 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30935 wxBrush *arg2 = 0 ;
30936 wxGraphicsBrush result;
30937 void *argp1 = 0 ;
30938 int res1 = 0 ;
30939 void *argp2 = 0 ;
30940 int res2 = 0 ;
30941 PyObject * obj0 = 0 ;
30942 PyObject * obj1 = 0 ;
30943 char * kwnames[] = {
30944 (char *) "self",(char *) "brush", NULL
30945 };
30946
30947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30949 if (!SWIG_IsOK(res1)) {
30950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30951 }
30952 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30953 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30954 if (!SWIG_IsOK(res2)) {
30955 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30956 }
30957 if (!argp2) {
30958 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30959 }
30960 arg2 = reinterpret_cast< wxBrush * >(argp2);
30961 {
30962 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30963 if (PyErr_Occurred()) SWIG_fail;
30964 }
30965 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30966 return resultobj;
30967 fail:
30968 return NULL;
30969 }
30970
30971
30972 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30973 PyObject *resultobj = 0;
30974 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30975 wxDouble arg2 ;
30976 wxDouble arg3 ;
30977 wxDouble arg4 ;
30978 wxDouble arg5 ;
30979 wxColour *arg6 = 0 ;
30980 wxColour *arg7 = 0 ;
30981 wxGraphicsBrush result;
30982 void *argp1 = 0 ;
30983 int res1 = 0 ;
30984 double val2 ;
30985 int ecode2 = 0 ;
30986 double val3 ;
30987 int ecode3 = 0 ;
30988 double val4 ;
30989 int ecode4 = 0 ;
30990 double val5 ;
30991 int ecode5 = 0 ;
30992 wxColour temp6 ;
30993 wxColour temp7 ;
30994 PyObject * obj0 = 0 ;
30995 PyObject * obj1 = 0 ;
30996 PyObject * obj2 = 0 ;
30997 PyObject * obj3 = 0 ;
30998 PyObject * obj4 = 0 ;
30999 PyObject * obj5 = 0 ;
31000 PyObject * obj6 = 0 ;
31001 char * kwnames[] = {
31002 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
31003 };
31004
31005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31007 if (!SWIG_IsOK(res1)) {
31008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31009 }
31010 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31011 ecode2 = SWIG_AsVal_double(obj1, &val2);
31012 if (!SWIG_IsOK(ecode2)) {
31013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
31014 }
31015 arg2 = static_cast< wxDouble >(val2);
31016 ecode3 = SWIG_AsVal_double(obj2, &val3);
31017 if (!SWIG_IsOK(ecode3)) {
31018 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
31019 }
31020 arg3 = static_cast< wxDouble >(val3);
31021 ecode4 = SWIG_AsVal_double(obj3, &val4);
31022 if (!SWIG_IsOK(ecode4)) {
31023 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
31024 }
31025 arg4 = static_cast< wxDouble >(val4);
31026 ecode5 = SWIG_AsVal_double(obj4, &val5);
31027 if (!SWIG_IsOK(ecode5)) {
31028 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
31029 }
31030 arg5 = static_cast< wxDouble >(val5);
31031 {
31032 arg6 = &temp6;
31033 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
31034 }
31035 {
31036 arg7 = &temp7;
31037 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31038 }
31039 {
31040 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
31041 if (PyErr_Occurred()) SWIG_fail;
31042 }
31043 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
31044 return resultobj;
31045 fail:
31046 return NULL;
31047 }
31048
31049
31050 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31051 PyObject *resultobj = 0;
31052 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31053 wxDouble arg2 ;
31054 wxDouble arg3 ;
31055 wxDouble arg4 ;
31056 wxDouble arg5 ;
31057 wxDouble arg6 ;
31058 wxColour *arg7 = 0 ;
31059 wxColour *arg8 = 0 ;
31060 wxGraphicsBrush result;
31061 void *argp1 = 0 ;
31062 int res1 = 0 ;
31063 double val2 ;
31064 int ecode2 = 0 ;
31065 double val3 ;
31066 int ecode3 = 0 ;
31067 double val4 ;
31068 int ecode4 = 0 ;
31069 double val5 ;
31070 int ecode5 = 0 ;
31071 double val6 ;
31072 int ecode6 = 0 ;
31073 wxColour temp7 ;
31074 wxColour temp8 ;
31075 PyObject * obj0 = 0 ;
31076 PyObject * obj1 = 0 ;
31077 PyObject * obj2 = 0 ;
31078 PyObject * obj3 = 0 ;
31079 PyObject * obj4 = 0 ;
31080 PyObject * obj5 = 0 ;
31081 PyObject * obj6 = 0 ;
31082 PyObject * obj7 = 0 ;
31083 char * kwnames[] = {
31084 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
31085 };
31086
31087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31089 if (!SWIG_IsOK(res1)) {
31090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31091 }
31092 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31093 ecode2 = SWIG_AsVal_double(obj1, &val2);
31094 if (!SWIG_IsOK(ecode2)) {
31095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
31096 }
31097 arg2 = static_cast< wxDouble >(val2);
31098 ecode3 = SWIG_AsVal_double(obj2, &val3);
31099 if (!SWIG_IsOK(ecode3)) {
31100 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
31101 }
31102 arg3 = static_cast< wxDouble >(val3);
31103 ecode4 = SWIG_AsVal_double(obj3, &val4);
31104 if (!SWIG_IsOK(ecode4)) {
31105 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
31106 }
31107 arg4 = static_cast< wxDouble >(val4);
31108 ecode5 = SWIG_AsVal_double(obj4, &val5);
31109 if (!SWIG_IsOK(ecode5)) {
31110 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
31111 }
31112 arg5 = static_cast< wxDouble >(val5);
31113 ecode6 = SWIG_AsVal_double(obj5, &val6);
31114 if (!SWIG_IsOK(ecode6)) {
31115 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
31116 }
31117 arg6 = static_cast< wxDouble >(val6);
31118 {
31119 arg7 = &temp7;
31120 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31121 }
31122 {
31123 arg8 = &temp8;
31124 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
31125 }
31126 {
31127 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
31128 if (PyErr_Occurred()) SWIG_fail;
31129 }
31130 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
31131 return resultobj;
31132 fail:
31133 return NULL;
31134 }
31135
31136
31137 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31138 PyObject *resultobj = 0;
31139 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31140 wxFont *arg2 = 0 ;
31141 wxColour const &arg3_defvalue = *wxBLACK ;
31142 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
31143 wxGraphicsFont result;
31144 void *argp1 = 0 ;
31145 int res1 = 0 ;
31146 void *argp2 = 0 ;
31147 int res2 = 0 ;
31148 wxColour temp3 ;
31149 PyObject * obj0 = 0 ;
31150 PyObject * obj1 = 0 ;
31151 PyObject * obj2 = 0 ;
31152 char * kwnames[] = {
31153 (char *) "self",(char *) "font",(char *) "col", NULL
31154 };
31155
31156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31158 if (!SWIG_IsOK(res1)) {
31159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31160 }
31161 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31162 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
31163 if (!SWIG_IsOK(res2)) {
31164 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31165 }
31166 if (!argp2) {
31167 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31168 }
31169 arg2 = reinterpret_cast< wxFont * >(argp2);
31170 if (obj2) {
31171 {
31172 arg3 = &temp3;
31173 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31174 }
31175 }
31176 {
31177 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
31178 if (PyErr_Occurred()) SWIG_fail;
31179 }
31180 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
31181 return resultobj;
31182 fail:
31183 return NULL;
31184 }
31185
31186
31187 SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31188 PyObject *obj;
31189 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31190 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
31191 return SWIG_Py_Void();
31192 }
31193
31194 SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31195 PyObject *resultobj = 0;
31196 wxWindowDC *arg1 = 0 ;
31197 wxGCDC *result = 0 ;
31198 void *argp1 = 0 ;
31199 int res1 = 0 ;
31200
31201 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
31203 if (!SWIG_IsOK(res1)) {
31204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31205 }
31206 if (!argp1) {
31207 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31208 }
31209 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
31210 {
31211 if (!wxPyCheckForApp()) SWIG_fail;
31212 PyThreadState* __tstate = wxPyBeginAllowThreads();
31213 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
31214 wxPyEndAllowThreads(__tstate);
31215 if (PyErr_Occurred()) SWIG_fail;
31216 }
31217 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
31218 return resultobj;
31219 fail:
31220 return NULL;
31221 }
31222
31223
31224 SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31225 PyObject *resultobj = 0;
31226 wxWindow *arg1 = (wxWindow *) 0 ;
31227 wxGCDC *result = 0 ;
31228 void *argp1 = 0 ;
31229 int res1 = 0 ;
31230
31231 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31233 if (!SWIG_IsOK(res1)) {
31234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'");
31235 }
31236 arg1 = reinterpret_cast< wxWindow * >(argp1);
31237 {
31238 if (!wxPyCheckForApp()) SWIG_fail;
31239 PyThreadState* __tstate = wxPyBeginAllowThreads();
31240 result = (wxGCDC *)new wxGCDC(arg1);
31241 wxPyEndAllowThreads(__tstate);
31242 if (PyErr_Occurred()) SWIG_fail;
31243 }
31244 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
31245 return resultobj;
31246 fail:
31247 return NULL;
31248 }
31249
31250
31251 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) {
31252 int argc;
31253 PyObject *argv[2];
31254
31255 if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail;
31256 --argc;
31257 if (argc == 1) {
31258 int _v = 0;
31259 {
31260 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
31261 _v = SWIG_CheckState(res);
31262 }
31263 if (!_v) goto check_1;
31264 return _wrap_new_GCDC__SWIG_0(self, argc, argv);
31265 }
31266 check_1:
31267
31268 if (argc == 1) {
31269 return _wrap_new_GCDC__SWIG_1(self, argc, argv);
31270 }
31271
31272 fail:
31273 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'");
31274 return NULL;
31275 }
31276
31277
31278 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31279 PyObject *resultobj = 0;
31280 wxGCDC *arg1 = (wxGCDC *) 0 ;
31281 void *argp1 = 0 ;
31282 int res1 = 0 ;
31283 PyObject *swig_obj[1] ;
31284
31285 if (!args) SWIG_fail;
31286 swig_obj[0] = args;
31287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
31288 if (!SWIG_IsOK(res1)) {
31289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
31290 }
31291 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31292 {
31293 delete arg1;
31294
31295 if (PyErr_Occurred()) SWIG_fail;
31296 }
31297 resultobj = SWIG_Py_Void();
31298 return resultobj;
31299 fail:
31300 return NULL;
31301 }
31302
31303
31304 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31305 PyObject *resultobj = 0;
31306 wxGCDC *arg1 = (wxGCDC *) 0 ;
31307 wxGraphicsContext *result = 0 ;
31308 void *argp1 = 0 ;
31309 int res1 = 0 ;
31310 PyObject *swig_obj[1] ;
31311
31312 if (!args) SWIG_fail;
31313 swig_obj[0] = args;
31314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31315 if (!SWIG_IsOK(res1)) {
31316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
31317 }
31318 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31319 {
31320 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
31321 if (PyErr_Occurred()) SWIG_fail;
31322 }
31323 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31324 return resultobj;
31325 fail:
31326 return NULL;
31327 }
31328
31329
31330 SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31331 PyObject *resultobj = 0;
31332 wxGCDC *arg1 = (wxGCDC *) 0 ;
31333 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
31334 void *argp1 = 0 ;
31335 int res1 = 0 ;
31336 void *argp2 = 0 ;
31337 int res2 = 0 ;
31338 PyObject * obj0 = 0 ;
31339 PyObject * obj1 = 0 ;
31340 char * kwnames[] = {
31341 (char *) "self",(char *) "ctx", NULL
31342 };
31343
31344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
31345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31346 if (!SWIG_IsOK(res1)) {
31347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
31348 }
31349 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31350 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31351 if (!SWIG_IsOK(res2)) {
31352 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
31353 }
31354 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
31355 {
31356 (arg1)->SetGraphicsContext(arg2);
31357 if (PyErr_Occurred()) SWIG_fail;
31358 }
31359 resultobj = SWIG_Py_Void();
31360 return resultobj;
31361 fail:
31362 return NULL;
31363 }
31364
31365
31366 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31367 PyObject *obj;
31368 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31369 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
31370 return SWIG_Py_Void();
31371 }
31372
31373 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31374 return SWIG_Python_InitShadowInstance(args);
31375 }
31376
31377 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31378 PyObject *resultobj = 0;
31379 wxOverlay *result = 0 ;
31380
31381 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
31382 {
31383 PyThreadState* __tstate = wxPyBeginAllowThreads();
31384 result = (wxOverlay *)new wxOverlay();
31385 wxPyEndAllowThreads(__tstate);
31386 if (PyErr_Occurred()) SWIG_fail;
31387 }
31388 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
31389 return resultobj;
31390 fail:
31391 return NULL;
31392 }
31393
31394
31395 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31396 PyObject *resultobj = 0;
31397 wxOverlay *arg1 = (wxOverlay *) 0 ;
31398 void *argp1 = 0 ;
31399 int res1 = 0 ;
31400 PyObject *swig_obj[1] ;
31401
31402 if (!args) SWIG_fail;
31403 swig_obj[0] = args;
31404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
31405 if (!SWIG_IsOK(res1)) {
31406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
31407 }
31408 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31409 {
31410 PyThreadState* __tstate = wxPyBeginAllowThreads();
31411 delete arg1;
31412
31413 wxPyEndAllowThreads(__tstate);
31414 if (PyErr_Occurred()) SWIG_fail;
31415 }
31416 resultobj = SWIG_Py_Void();
31417 return resultobj;
31418 fail:
31419 return NULL;
31420 }
31421
31422
31423 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31424 PyObject *resultobj = 0;
31425 wxOverlay *arg1 = (wxOverlay *) 0 ;
31426 void *argp1 = 0 ;
31427 int res1 = 0 ;
31428 PyObject *swig_obj[1] ;
31429
31430 if (!args) SWIG_fail;
31431 swig_obj[0] = args;
31432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
31433 if (!SWIG_IsOK(res1)) {
31434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
31435 }
31436 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31437 {
31438 PyThreadState* __tstate = wxPyBeginAllowThreads();
31439 (arg1)->Reset();
31440 wxPyEndAllowThreads(__tstate);
31441 if (PyErr_Occurred()) SWIG_fail;
31442 }
31443 resultobj = SWIG_Py_Void();
31444 return resultobj;
31445 fail:
31446 return NULL;
31447 }
31448
31449
31450 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31451 PyObject *obj;
31452 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31453 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
31454 return SWIG_Py_Void();
31455 }
31456
31457 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31458 return SWIG_Python_InitShadowInstance(args);
31459 }
31460
31461 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31462 PyObject *resultobj = 0;
31463 wxOverlay *arg1 = 0 ;
31464 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31465 int arg3 ;
31466 int arg4 ;
31467 int arg5 ;
31468 int arg6 ;
31469 wxDCOverlay *result = 0 ;
31470 void *argp1 = 0 ;
31471 int res1 = 0 ;
31472 void *argp2 = 0 ;
31473 int res2 = 0 ;
31474 int val3 ;
31475 int ecode3 = 0 ;
31476 int val4 ;
31477 int ecode4 = 0 ;
31478 int val5 ;
31479 int ecode5 = 0 ;
31480 int val6 ;
31481 int ecode6 = 0 ;
31482
31483 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
31484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31485 if (!SWIG_IsOK(res1)) {
31486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31487 }
31488 if (!argp1) {
31489 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31490 }
31491 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31492 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31493 if (!SWIG_IsOK(res2)) {
31494 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31495 }
31496 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31497 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
31498 if (!SWIG_IsOK(ecode3)) {
31499 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
31500 }
31501 arg3 = static_cast< int >(val3);
31502 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
31503 if (!SWIG_IsOK(ecode4)) {
31504 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
31505 }
31506 arg4 = static_cast< int >(val4);
31507 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
31508 if (!SWIG_IsOK(ecode5)) {
31509 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
31510 }
31511 arg5 = static_cast< int >(val5);
31512 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
31513 if (!SWIG_IsOK(ecode6)) {
31514 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
31515 }
31516 arg6 = static_cast< int >(val6);
31517 {
31518 PyThreadState* __tstate = wxPyBeginAllowThreads();
31519 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
31520 wxPyEndAllowThreads(__tstate);
31521 if (PyErr_Occurred()) SWIG_fail;
31522 }
31523 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31524 return resultobj;
31525 fail:
31526 return NULL;
31527 }
31528
31529
31530 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31531 PyObject *resultobj = 0;
31532 wxOverlay *arg1 = 0 ;
31533 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31534 wxDCOverlay *result = 0 ;
31535 void *argp1 = 0 ;
31536 int res1 = 0 ;
31537 void *argp2 = 0 ;
31538 int res2 = 0 ;
31539
31540 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31542 if (!SWIG_IsOK(res1)) {
31543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31544 }
31545 if (!argp1) {
31546 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31547 }
31548 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31549 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31550 if (!SWIG_IsOK(res2)) {
31551 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31552 }
31553 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31554 {
31555 PyThreadState* __tstate = wxPyBeginAllowThreads();
31556 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
31557 wxPyEndAllowThreads(__tstate);
31558 if (PyErr_Occurred()) SWIG_fail;
31559 }
31560 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31561 return resultobj;
31562 fail:
31563 return NULL;
31564 }
31565
31566
31567 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
31568 int argc;
31569 PyObject *argv[7];
31570
31571 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
31572 --argc;
31573 if (argc == 2) {
31574 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
31575 }
31576 if (argc == 6) {
31577 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
31578 }
31579
31580 fail:
31581 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
31582 return NULL;
31583 }
31584
31585
31586 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31587 PyObject *resultobj = 0;
31588 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31589 void *argp1 = 0 ;
31590 int res1 = 0 ;
31591 PyObject *swig_obj[1] ;
31592
31593 if (!args) SWIG_fail;
31594 swig_obj[0] = args;
31595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
31596 if (!SWIG_IsOK(res1)) {
31597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31598 }
31599 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31600 {
31601 PyThreadState* __tstate = wxPyBeginAllowThreads();
31602 delete arg1;
31603
31604 wxPyEndAllowThreads(__tstate);
31605 if (PyErr_Occurred()) SWIG_fail;
31606 }
31607 resultobj = SWIG_Py_Void();
31608 return resultobj;
31609 fail:
31610 return NULL;
31611 }
31612
31613
31614 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31615 PyObject *resultobj = 0;
31616 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31617 void *argp1 = 0 ;
31618 int res1 = 0 ;
31619 PyObject *swig_obj[1] ;
31620
31621 if (!args) SWIG_fail;
31622 swig_obj[0] = args;
31623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
31624 if (!SWIG_IsOK(res1)) {
31625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31626 }
31627 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31628 {
31629 PyThreadState* __tstate = wxPyBeginAllowThreads();
31630 (arg1)->Clear();
31631 wxPyEndAllowThreads(__tstate);
31632 if (PyErr_Occurred()) SWIG_fail;
31633 }
31634 resultobj = SWIG_Py_Void();
31635 return resultobj;
31636 fail:
31637 return NULL;
31638 }
31639
31640
31641 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31642 PyObject *obj;
31643 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31644 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
31645 return SWIG_Py_Void();
31646 }
31647
31648 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31649 return SWIG_Python_InitShadowInstance(args);
31650 }
31651
31652 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31653 PyObject *resultobj = 0;
31654 int arg1 ;
31655 int arg2 ;
31656 int arg3 = (int) true ;
31657 int arg4 = (int) 1 ;
31658 wxImageList *result = 0 ;
31659 int val1 ;
31660 int ecode1 = 0 ;
31661 int val2 ;
31662 int ecode2 = 0 ;
31663 int val3 ;
31664 int ecode3 = 0 ;
31665 int val4 ;
31666 int ecode4 = 0 ;
31667 PyObject * obj0 = 0 ;
31668 PyObject * obj1 = 0 ;
31669 PyObject * obj2 = 0 ;
31670 PyObject * obj3 = 0 ;
31671 char * kwnames[] = {
31672 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
31673 };
31674
31675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31676 ecode1 = SWIG_AsVal_int(obj0, &val1);
31677 if (!SWIG_IsOK(ecode1)) {
31678 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
31679 }
31680 arg1 = static_cast< int >(val1);
31681 ecode2 = SWIG_AsVal_int(obj1, &val2);
31682 if (!SWIG_IsOK(ecode2)) {
31683 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
31684 }
31685 arg2 = static_cast< int >(val2);
31686 if (obj2) {
31687 ecode3 = SWIG_AsVal_int(obj2, &val3);
31688 if (!SWIG_IsOK(ecode3)) {
31689 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
31690 }
31691 arg3 = static_cast< int >(val3);
31692 }
31693 if (obj3) {
31694 ecode4 = SWIG_AsVal_int(obj3, &val4);
31695 if (!SWIG_IsOK(ecode4)) {
31696 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
31697 }
31698 arg4 = static_cast< int >(val4);
31699 }
31700 {
31701 if (!wxPyCheckForApp()) SWIG_fail;
31702 PyThreadState* __tstate = wxPyBeginAllowThreads();
31703 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
31704 wxPyEndAllowThreads(__tstate);
31705 if (PyErr_Occurred()) SWIG_fail;
31706 }
31707 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
31708 return resultobj;
31709 fail:
31710 return NULL;
31711 }
31712
31713
31714 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31715 PyObject *resultobj = 0;
31716 wxImageList *arg1 = (wxImageList *) 0 ;
31717 void *argp1 = 0 ;
31718 int res1 = 0 ;
31719 PyObject *swig_obj[1] ;
31720
31721 if (!args) SWIG_fail;
31722 swig_obj[0] = args;
31723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
31724 if (!SWIG_IsOK(res1)) {
31725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
31726 }
31727 arg1 = reinterpret_cast< wxImageList * >(argp1);
31728 {
31729 PyThreadState* __tstate = wxPyBeginAllowThreads();
31730 delete arg1;
31731
31732 wxPyEndAllowThreads(__tstate);
31733 if (PyErr_Occurred()) SWIG_fail;
31734 }
31735 resultobj = SWIG_Py_Void();
31736 return resultobj;
31737 fail:
31738 return NULL;
31739 }
31740
31741
31742 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31743 PyObject *resultobj = 0;
31744 wxImageList *arg1 = (wxImageList *) 0 ;
31745 wxBitmap *arg2 = 0 ;
31746 wxBitmap const &arg3_defvalue = wxNullBitmap ;
31747 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
31748 int result;
31749 void *argp1 = 0 ;
31750 int res1 = 0 ;
31751 void *argp2 = 0 ;
31752 int res2 = 0 ;
31753 void *argp3 = 0 ;
31754 int res3 = 0 ;
31755 PyObject * obj0 = 0 ;
31756 PyObject * obj1 = 0 ;
31757 PyObject * obj2 = 0 ;
31758 char * kwnames[] = {
31759 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
31760 };
31761
31762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31764 if (!SWIG_IsOK(res1)) {
31765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
31766 }
31767 arg1 = reinterpret_cast< wxImageList * >(argp1);
31768 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31769 if (!SWIG_IsOK(res2)) {
31770 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31771 }
31772 if (!argp2) {
31773 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31774 }
31775 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31776 if (obj2) {
31777 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31778 if (!SWIG_IsOK(res3)) {
31779 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31780 }
31781 if (!argp3) {
31782 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31783 }
31784 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31785 }
31786 {
31787 PyThreadState* __tstate = wxPyBeginAllowThreads();
31788 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
31789 wxPyEndAllowThreads(__tstate);
31790 if (PyErr_Occurred()) SWIG_fail;
31791 }
31792 resultobj = SWIG_From_int(static_cast< int >(result));
31793 return resultobj;
31794 fail:
31795 return NULL;
31796 }
31797
31798
31799 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31800 PyObject *resultobj = 0;
31801 wxImageList *arg1 = (wxImageList *) 0 ;
31802 wxBitmap *arg2 = 0 ;
31803 wxColour *arg3 = 0 ;
31804 int result;
31805 void *argp1 = 0 ;
31806 int res1 = 0 ;
31807 void *argp2 = 0 ;
31808 int res2 = 0 ;
31809 wxColour temp3 ;
31810 PyObject * obj0 = 0 ;
31811 PyObject * obj1 = 0 ;
31812 PyObject * obj2 = 0 ;
31813 char * kwnames[] = {
31814 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
31815 };
31816
31817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31819 if (!SWIG_IsOK(res1)) {
31820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
31821 }
31822 arg1 = reinterpret_cast< wxImageList * >(argp1);
31823 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31824 if (!SWIG_IsOK(res2)) {
31825 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31826 }
31827 if (!argp2) {
31828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31829 }
31830 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31831 {
31832 arg3 = &temp3;
31833 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31834 }
31835 {
31836 PyThreadState* __tstate = wxPyBeginAllowThreads();
31837 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31838 wxPyEndAllowThreads(__tstate);
31839 if (PyErr_Occurred()) SWIG_fail;
31840 }
31841 resultobj = SWIG_From_int(static_cast< int >(result));
31842 return resultobj;
31843 fail:
31844 return NULL;
31845 }
31846
31847
31848 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31849 PyObject *resultobj = 0;
31850 wxImageList *arg1 = (wxImageList *) 0 ;
31851 wxIcon *arg2 = 0 ;
31852 int result;
31853 void *argp1 = 0 ;
31854 int res1 = 0 ;
31855 void *argp2 = 0 ;
31856 int res2 = 0 ;
31857 PyObject * obj0 = 0 ;
31858 PyObject * obj1 = 0 ;
31859 char * kwnames[] = {
31860 (char *) "self",(char *) "icon", NULL
31861 };
31862
31863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31865 if (!SWIG_IsOK(res1)) {
31866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31867 }
31868 arg1 = reinterpret_cast< wxImageList * >(argp1);
31869 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31870 if (!SWIG_IsOK(res2)) {
31871 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31872 }
31873 if (!argp2) {
31874 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31875 }
31876 arg2 = reinterpret_cast< wxIcon * >(argp2);
31877 {
31878 PyThreadState* __tstate = wxPyBeginAllowThreads();
31879 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31880 wxPyEndAllowThreads(__tstate);
31881 if (PyErr_Occurred()) SWIG_fail;
31882 }
31883 resultobj = SWIG_From_int(static_cast< int >(result));
31884 return resultobj;
31885 fail:
31886 return NULL;
31887 }
31888
31889
31890 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31891 PyObject *resultobj = 0;
31892 wxImageList *arg1 = (wxImageList *) 0 ;
31893 int arg2 ;
31894 SwigValueWrapper<wxBitmap > result;
31895 void *argp1 = 0 ;
31896 int res1 = 0 ;
31897 int val2 ;
31898 int ecode2 = 0 ;
31899 PyObject * obj0 = 0 ;
31900 PyObject * obj1 = 0 ;
31901 char * kwnames[] = {
31902 (char *) "self",(char *) "index", NULL
31903 };
31904
31905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31907 if (!SWIG_IsOK(res1)) {
31908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31909 }
31910 arg1 = reinterpret_cast< wxImageList * >(argp1);
31911 ecode2 = SWIG_AsVal_int(obj1, &val2);
31912 if (!SWIG_IsOK(ecode2)) {
31913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31914 }
31915 arg2 = static_cast< int >(val2);
31916 {
31917 PyThreadState* __tstate = wxPyBeginAllowThreads();
31918 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31919 wxPyEndAllowThreads(__tstate);
31920 if (PyErr_Occurred()) SWIG_fail;
31921 }
31922 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31923 return resultobj;
31924 fail:
31925 return NULL;
31926 }
31927
31928
31929 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31930 PyObject *resultobj = 0;
31931 wxImageList *arg1 = (wxImageList *) 0 ;
31932 int arg2 ;
31933 wxIcon result;
31934 void *argp1 = 0 ;
31935 int res1 = 0 ;
31936 int val2 ;
31937 int ecode2 = 0 ;
31938 PyObject * obj0 = 0 ;
31939 PyObject * obj1 = 0 ;
31940 char * kwnames[] = {
31941 (char *) "self",(char *) "index", NULL
31942 };
31943
31944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31946 if (!SWIG_IsOK(res1)) {
31947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31948 }
31949 arg1 = reinterpret_cast< wxImageList * >(argp1);
31950 ecode2 = SWIG_AsVal_int(obj1, &val2);
31951 if (!SWIG_IsOK(ecode2)) {
31952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31953 }
31954 arg2 = static_cast< int >(val2);
31955 {
31956 PyThreadState* __tstate = wxPyBeginAllowThreads();
31957 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31958 wxPyEndAllowThreads(__tstate);
31959 if (PyErr_Occurred()) SWIG_fail;
31960 }
31961 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31962 return resultobj;
31963 fail:
31964 return NULL;
31965 }
31966
31967
31968 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31969 PyObject *resultobj = 0;
31970 wxImageList *arg1 = (wxImageList *) 0 ;
31971 int arg2 ;
31972 wxBitmap *arg3 = 0 ;
31973 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31974 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
31975 bool result;
31976 void *argp1 = 0 ;
31977 int res1 = 0 ;
31978 int val2 ;
31979 int ecode2 = 0 ;
31980 void *argp3 = 0 ;
31981 int res3 = 0 ;
31982 void *argp4 = 0 ;
31983 int res4 = 0 ;
31984 PyObject * obj0 = 0 ;
31985 PyObject * obj1 = 0 ;
31986 PyObject * obj2 = 0 ;
31987 PyObject * obj3 = 0 ;
31988 char * kwnames[] = {
31989 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
31990 };
31991
31992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31994 if (!SWIG_IsOK(res1)) {
31995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31996 }
31997 arg1 = reinterpret_cast< wxImageList * >(argp1);
31998 ecode2 = SWIG_AsVal_int(obj1, &val2);
31999 if (!SWIG_IsOK(ecode2)) {
32000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
32001 }
32002 arg2 = static_cast< int >(val2);
32003 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
32004 if (!SWIG_IsOK(res3)) {
32005 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32006 }
32007 if (!argp3) {
32008 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32009 }
32010 arg3 = reinterpret_cast< wxBitmap * >(argp3);
32011 if (obj3) {
32012 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
32013 if (!SWIG_IsOK(res4)) {
32014 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
32015 }
32016 if (!argp4) {
32017 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
32018 }
32019 arg4 = reinterpret_cast< wxBitmap * >(argp4);
32020 }
32021 {
32022 PyThreadState* __tstate = wxPyBeginAllowThreads();
32023 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
32024 wxPyEndAllowThreads(__tstate);
32025 if (PyErr_Occurred()) SWIG_fail;
32026 }
32027 {
32028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32029 }
32030 return resultobj;
32031 fail:
32032 return NULL;
32033 }
32034
32035
32036 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32037 PyObject *resultobj = 0;
32038 wxImageList *arg1 = (wxImageList *) 0 ;
32039 int arg2 ;
32040 wxDC *arg3 = 0 ;
32041 int arg4 ;
32042 int arg5 ;
32043 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
32044 bool arg7 = (bool) (bool)false ;
32045 bool result;
32046 void *argp1 = 0 ;
32047 int res1 = 0 ;
32048 int val2 ;
32049 int ecode2 = 0 ;
32050 void *argp3 = 0 ;
32051 int res3 = 0 ;
32052 int val4 ;
32053 int ecode4 = 0 ;
32054 int val5 ;
32055 int ecode5 = 0 ;
32056 int val6 ;
32057 int ecode6 = 0 ;
32058 bool val7 ;
32059 int ecode7 = 0 ;
32060 PyObject * obj0 = 0 ;
32061 PyObject * obj1 = 0 ;
32062 PyObject * obj2 = 0 ;
32063 PyObject * obj3 = 0 ;
32064 PyObject * obj4 = 0 ;
32065 PyObject * obj5 = 0 ;
32066 PyObject * obj6 = 0 ;
32067 char * kwnames[] = {
32068 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
32069 };
32070
32071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32073 if (!SWIG_IsOK(res1)) {
32074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
32075 }
32076 arg1 = reinterpret_cast< wxImageList * >(argp1);
32077 ecode2 = SWIG_AsVal_int(obj1, &val2);
32078 if (!SWIG_IsOK(ecode2)) {
32079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
32080 }
32081 arg2 = static_cast< int >(val2);
32082 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
32083 if (!SWIG_IsOK(res3)) {
32084 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32085 }
32086 if (!argp3) {
32087 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32088 }
32089 arg3 = reinterpret_cast< wxDC * >(argp3);
32090 ecode4 = SWIG_AsVal_int(obj3, &val4);
32091 if (!SWIG_IsOK(ecode4)) {
32092 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
32093 }
32094 arg4 = static_cast< int >(val4);
32095 ecode5 = SWIG_AsVal_int(obj4, &val5);
32096 if (!SWIG_IsOK(ecode5)) {
32097 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
32098 }
32099 arg5 = static_cast< int >(val5);
32100 if (obj5) {
32101 ecode6 = SWIG_AsVal_int(obj5, &val6);
32102 if (!SWIG_IsOK(ecode6)) {
32103 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
32104 }
32105 arg6 = static_cast< int >(val6);
32106 }
32107 if (obj6) {
32108 ecode7 = SWIG_AsVal_bool(obj6, &val7);
32109 if (!SWIG_IsOK(ecode7)) {
32110 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
32111 }
32112 arg7 = static_cast< bool >(val7);
32113 }
32114 {
32115 PyThreadState* __tstate = wxPyBeginAllowThreads();
32116 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
32117 wxPyEndAllowThreads(__tstate);
32118 if (PyErr_Occurred()) SWIG_fail;
32119 }
32120 {
32121 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32122 }
32123 return resultobj;
32124 fail:
32125 return NULL;
32126 }
32127
32128
32129 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32130 PyObject *resultobj = 0;
32131 wxImageList *arg1 = (wxImageList *) 0 ;
32132 int result;
32133 void *argp1 = 0 ;
32134 int res1 = 0 ;
32135 PyObject *swig_obj[1] ;
32136
32137 if (!args) SWIG_fail;
32138 swig_obj[0] = args;
32139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32140 if (!SWIG_IsOK(res1)) {
32141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
32142 }
32143 arg1 = reinterpret_cast< wxImageList * >(argp1);
32144 {
32145 PyThreadState* __tstate = wxPyBeginAllowThreads();
32146 result = (int)(arg1)->GetImageCount();
32147 wxPyEndAllowThreads(__tstate);
32148 if (PyErr_Occurred()) SWIG_fail;
32149 }
32150 resultobj = SWIG_From_int(static_cast< int >(result));
32151 return resultobj;
32152 fail:
32153 return NULL;
32154 }
32155
32156
32157 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32158 PyObject *resultobj = 0;
32159 wxImageList *arg1 = (wxImageList *) 0 ;
32160 int arg2 ;
32161 bool result;
32162 void *argp1 = 0 ;
32163 int res1 = 0 ;
32164 int val2 ;
32165 int ecode2 = 0 ;
32166 PyObject * obj0 = 0 ;
32167 PyObject * obj1 = 0 ;
32168 char * kwnames[] = {
32169 (char *) "self",(char *) "index", NULL
32170 };
32171
32172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
32173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32174 if (!SWIG_IsOK(res1)) {
32175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
32176 }
32177 arg1 = reinterpret_cast< wxImageList * >(argp1);
32178 ecode2 = SWIG_AsVal_int(obj1, &val2);
32179 if (!SWIG_IsOK(ecode2)) {
32180 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
32181 }
32182 arg2 = static_cast< int >(val2);
32183 {
32184 PyThreadState* __tstate = wxPyBeginAllowThreads();
32185 result = (bool)(arg1)->Remove(arg2);
32186 wxPyEndAllowThreads(__tstate);
32187 if (PyErr_Occurred()) SWIG_fail;
32188 }
32189 {
32190 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32191 }
32192 return resultobj;
32193 fail:
32194 return NULL;
32195 }
32196
32197
32198 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32199 PyObject *resultobj = 0;
32200 wxImageList *arg1 = (wxImageList *) 0 ;
32201 bool result;
32202 void *argp1 = 0 ;
32203 int res1 = 0 ;
32204 PyObject *swig_obj[1] ;
32205
32206 if (!args) SWIG_fail;
32207 swig_obj[0] = args;
32208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32209 if (!SWIG_IsOK(res1)) {
32210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
32211 }
32212 arg1 = reinterpret_cast< wxImageList * >(argp1);
32213 {
32214 PyThreadState* __tstate = wxPyBeginAllowThreads();
32215 result = (bool)(arg1)->RemoveAll();
32216 wxPyEndAllowThreads(__tstate);
32217 if (PyErr_Occurred()) SWIG_fail;
32218 }
32219 {
32220 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32221 }
32222 return resultobj;
32223 fail:
32224 return NULL;
32225 }
32226
32227
32228 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32229 PyObject *resultobj = 0;
32230 wxImageList *arg1 = (wxImageList *) 0 ;
32231 int arg2 ;
32232 int *arg3 = 0 ;
32233 int *arg4 = 0 ;
32234 void *argp1 = 0 ;
32235 int res1 = 0 ;
32236 int val2 ;
32237 int ecode2 = 0 ;
32238 int temp3 ;
32239 int res3 = SWIG_TMPOBJ ;
32240 int temp4 ;
32241 int res4 = SWIG_TMPOBJ ;
32242 PyObject * obj0 = 0 ;
32243 PyObject * obj1 = 0 ;
32244 char * kwnames[] = {
32245 (char *) "self",(char *) "index", NULL
32246 };
32247
32248 arg3 = &temp3;
32249 arg4 = &temp4;
32250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
32251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32252 if (!SWIG_IsOK(res1)) {
32253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
32254 }
32255 arg1 = reinterpret_cast< wxImageList * >(argp1);
32256 ecode2 = SWIG_AsVal_int(obj1, &val2);
32257 if (!SWIG_IsOK(ecode2)) {
32258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
32259 }
32260 arg2 = static_cast< int >(val2);
32261 {
32262 PyThreadState* __tstate = wxPyBeginAllowThreads();
32263 (arg1)->GetSize(arg2,*arg3,*arg4);
32264 wxPyEndAllowThreads(__tstate);
32265 if (PyErr_Occurred()) SWIG_fail;
32266 }
32267 resultobj = SWIG_Py_Void();
32268 if (SWIG_IsTmpObj(res3)) {
32269 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
32270 } else {
32271 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32272 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
32273 }
32274 if (SWIG_IsTmpObj(res4)) {
32275 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
32276 } else {
32277 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32278 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
32279 }
32280 return resultobj;
32281 fail:
32282 return NULL;
32283 }
32284
32285
32286 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32287 PyObject *obj;
32288 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32289 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
32290 return SWIG_Py_Void();
32291 }
32292
32293 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32294 return SWIG_Python_InitShadowInstance(args);
32295 }
32296
32297 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32298 PyObject *resultobj = 0;
32299 wxStockGDI *result = 0 ;
32300
32301 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
32302 {
32303 PyThreadState* __tstate = wxPyBeginAllowThreads();
32304 result = (wxStockGDI *)new wxStockGDI();
32305 wxPyEndAllowThreads(__tstate);
32306 if (PyErr_Occurred()) SWIG_fail;
32307 }
32308 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
32309 return resultobj;
32310 fail:
32311 return NULL;
32312 }
32313
32314
32315 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32316 PyObject *resultobj = 0;
32317 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32318 void *argp1 = 0 ;
32319 int res1 = 0 ;
32320 PyObject *swig_obj[1] ;
32321
32322 if (!args) SWIG_fail;
32323 swig_obj[0] = args;
32324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
32325 if (!SWIG_IsOK(res1)) {
32326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32327 }
32328 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32329 {
32330 PyThreadState* __tstate = wxPyBeginAllowThreads();
32331 delete arg1;
32332
32333 wxPyEndAllowThreads(__tstate);
32334 if (PyErr_Occurred()) SWIG_fail;
32335 }
32336 resultobj = SWIG_Py_Void();
32337 return resultobj;
32338 fail:
32339 return NULL;
32340 }
32341
32342
32343 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32344 PyObject *resultobj = 0;
32345
32346 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
32347 {
32348 PyThreadState* __tstate = wxPyBeginAllowThreads();
32349 wxStockGDI::DeleteAll();
32350 wxPyEndAllowThreads(__tstate);
32351 if (PyErr_Occurred()) SWIG_fail;
32352 }
32353 resultobj = SWIG_Py_Void();
32354 return resultobj;
32355 fail:
32356 return NULL;
32357 }
32358
32359
32360 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32361 PyObject *resultobj = 0;
32362 wxStockGDI *result = 0 ;
32363
32364 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
32365 {
32366 PyThreadState* __tstate = wxPyBeginAllowThreads();
32367 {
32368 wxStockGDI &_result_ref = wxStockGDI::instance();
32369 result = (wxStockGDI *) &_result_ref;
32370 }
32371 wxPyEndAllowThreads(__tstate);
32372 if (PyErr_Occurred()) SWIG_fail;
32373 }
32374 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
32375 return resultobj;
32376 fail:
32377 return NULL;
32378 }
32379
32380
32381 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32382 PyObject *resultobj = 0;
32383 wxStockGDI::Item arg1 ;
32384 wxBrush *result = 0 ;
32385 int val1 ;
32386 int ecode1 = 0 ;
32387 PyObject * obj0 = 0 ;
32388 char * kwnames[] = {
32389 (char *) "item", NULL
32390 };
32391
32392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
32393 ecode1 = SWIG_AsVal_int(obj0, &val1);
32394 if (!SWIG_IsOK(ecode1)) {
32395 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32396 }
32397 arg1 = static_cast< wxStockGDI::Item >(val1);
32398 {
32399 PyThreadState* __tstate = wxPyBeginAllowThreads();
32400 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
32401 wxPyEndAllowThreads(__tstate);
32402 if (PyErr_Occurred()) SWIG_fail;
32403 }
32404 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32405 return resultobj;
32406 fail:
32407 return NULL;
32408 }
32409
32410
32411 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32412 PyObject *resultobj = 0;
32413 wxStockGDI::Item arg1 ;
32414 wxColour *result = 0 ;
32415 int val1 ;
32416 int ecode1 = 0 ;
32417 PyObject * obj0 = 0 ;
32418 char * kwnames[] = {
32419 (char *) "item", NULL
32420 };
32421
32422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
32423 ecode1 = SWIG_AsVal_int(obj0, &val1);
32424 if (!SWIG_IsOK(ecode1)) {
32425 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32426 }
32427 arg1 = static_cast< wxStockGDI::Item >(val1);
32428 {
32429 PyThreadState* __tstate = wxPyBeginAllowThreads();
32430 result = (wxColour *)wxStockGDI::GetColour(arg1);
32431 wxPyEndAllowThreads(__tstate);
32432 if (PyErr_Occurred()) SWIG_fail;
32433 }
32434 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
32435 return resultobj;
32436 fail:
32437 return NULL;
32438 }
32439
32440
32441 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32442 PyObject *resultobj = 0;
32443 wxStockGDI::Item arg1 ;
32444 wxCursor *result = 0 ;
32445 int val1 ;
32446 int ecode1 = 0 ;
32447 PyObject * obj0 = 0 ;
32448 char * kwnames[] = {
32449 (char *) "item", NULL
32450 };
32451
32452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
32453 ecode1 = SWIG_AsVal_int(obj0, &val1);
32454 if (!SWIG_IsOK(ecode1)) {
32455 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32456 }
32457 arg1 = static_cast< wxStockGDI::Item >(val1);
32458 {
32459 PyThreadState* __tstate = wxPyBeginAllowThreads();
32460 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
32461 wxPyEndAllowThreads(__tstate);
32462 if (PyErr_Occurred()) SWIG_fail;
32463 }
32464 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
32465 return resultobj;
32466 fail:
32467 return NULL;
32468 }
32469
32470
32471 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32472 PyObject *resultobj = 0;
32473 wxStockGDI::Item arg1 ;
32474 wxPen *result = 0 ;
32475 int val1 ;
32476 int ecode1 = 0 ;
32477 PyObject * obj0 = 0 ;
32478 char * kwnames[] = {
32479 (char *) "item", NULL
32480 };
32481
32482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
32483 ecode1 = SWIG_AsVal_int(obj0, &val1);
32484 if (!SWIG_IsOK(ecode1)) {
32485 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32486 }
32487 arg1 = static_cast< wxStockGDI::Item >(val1);
32488 {
32489 PyThreadState* __tstate = wxPyBeginAllowThreads();
32490 result = (wxPen *)wxStockGDI::GetPen(arg1);
32491 wxPyEndAllowThreads(__tstate);
32492 if (PyErr_Occurred()) SWIG_fail;
32493 }
32494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32495 return resultobj;
32496 fail:
32497 return NULL;
32498 }
32499
32500
32501 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32502 PyObject *resultobj = 0;
32503 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32504 wxStockGDI::Item arg2 ;
32505 wxFont *result = 0 ;
32506 void *argp1 = 0 ;
32507 int res1 = 0 ;
32508 int val2 ;
32509 int ecode2 = 0 ;
32510 PyObject * obj0 = 0 ;
32511 PyObject * obj1 = 0 ;
32512 char * kwnames[] = {
32513 (char *) "self",(char *) "item", NULL
32514 };
32515
32516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
32517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
32518 if (!SWIG_IsOK(res1)) {
32519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32520 }
32521 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32522 ecode2 = SWIG_AsVal_int(obj1, &val2);
32523 if (!SWIG_IsOK(ecode2)) {
32524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
32525 }
32526 arg2 = static_cast< wxStockGDI::Item >(val2);
32527 {
32528 PyThreadState* __tstate = wxPyBeginAllowThreads();
32529 result = (wxFont *)(arg1)->GetFont(arg2);
32530 wxPyEndAllowThreads(__tstate);
32531 if (PyErr_Occurred()) SWIG_fail;
32532 }
32533 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32534 return resultobj;
32535 fail:
32536 return NULL;
32537 }
32538
32539
32540 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32541 PyObject *obj;
32542 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32543 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
32544 return SWIG_Py_Void();
32545 }
32546
32547 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32548 return SWIG_Python_InitShadowInstance(args);
32549 }
32550
32551 SWIGINTERN int NullBitmap_set(PyObject *) {
32552 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
32553 return 1;
32554 }
32555
32556
32557 SWIGINTERN PyObject *NullBitmap_get(void) {
32558 PyObject *pyobj = 0;
32559
32560 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
32561 return pyobj;
32562 }
32563
32564
32565 SWIGINTERN int NullIcon_set(PyObject *) {
32566 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
32567 return 1;
32568 }
32569
32570
32571 SWIGINTERN PyObject *NullIcon_get(void) {
32572 PyObject *pyobj = 0;
32573
32574 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
32575 return pyobj;
32576 }
32577
32578
32579 SWIGINTERN int NullCursor_set(PyObject *) {
32580 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
32581 return 1;
32582 }
32583
32584
32585 SWIGINTERN PyObject *NullCursor_get(void) {
32586 PyObject *pyobj = 0;
32587
32588 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
32589 return pyobj;
32590 }
32591
32592
32593 SWIGINTERN int NullPen_set(PyObject *) {
32594 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
32595 return 1;
32596 }
32597
32598
32599 SWIGINTERN PyObject *NullPen_get(void) {
32600 PyObject *pyobj = 0;
32601
32602 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
32603 return pyobj;
32604 }
32605
32606
32607 SWIGINTERN int NullBrush_set(PyObject *) {
32608 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
32609 return 1;
32610 }
32611
32612
32613 SWIGINTERN PyObject *NullBrush_get(void) {
32614 PyObject *pyobj = 0;
32615
32616 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
32617 return pyobj;
32618 }
32619
32620
32621 SWIGINTERN int NullPalette_set(PyObject *) {
32622 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
32623 return 1;
32624 }
32625
32626
32627 SWIGINTERN PyObject *NullPalette_get(void) {
32628 PyObject *pyobj = 0;
32629
32630 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
32631 return pyobj;
32632 }
32633
32634
32635 SWIGINTERN int NullFont_set(PyObject *) {
32636 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
32637 return 1;
32638 }
32639
32640
32641 SWIGINTERN PyObject *NullFont_get(void) {
32642 PyObject *pyobj = 0;
32643
32644 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
32645 return pyobj;
32646 }
32647
32648
32649 SWIGINTERN int NullColour_set(PyObject *) {
32650 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
32651 return 1;
32652 }
32653
32654
32655 SWIGINTERN PyObject *NullColour_get(void) {
32656 PyObject *pyobj = 0;
32657
32658 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
32659 return pyobj;
32660 }
32661
32662
32663 SWIGINTERN int NullIconBundle_set(PyObject *) {
32664 SWIG_Error(SWIG_AttributeError,"Variable NullIconBundle is read-only.");
32665 return 1;
32666 }
32667
32668
32669 SWIGINTERN PyObject *NullIconBundle_get(void) {
32670 PyObject *pyobj = 0;
32671
32672 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIconBundle), SWIGTYPE_p_wxIconBundle, 0 );
32673 return pyobj;
32674 }
32675
32676
32677 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32678 PyObject *resultobj = 0;
32679 wxGDIObjListBase *result = 0 ;
32680
32681 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
32682 {
32683 PyThreadState* __tstate = wxPyBeginAllowThreads();
32684 result = (wxGDIObjListBase *)new wxGDIObjListBase();
32685 wxPyEndAllowThreads(__tstate);
32686 if (PyErr_Occurred()) SWIG_fail;
32687 }
32688 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
32689 return resultobj;
32690 fail:
32691 return NULL;
32692 }
32693
32694
32695 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32696 PyObject *resultobj = 0;
32697 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
32698 void *argp1 = 0 ;
32699 int res1 = 0 ;
32700 PyObject *swig_obj[1] ;
32701
32702 if (!args) SWIG_fail;
32703 swig_obj[0] = args;
32704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
32705 if (!SWIG_IsOK(res1)) {
32706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
32707 }
32708 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
32709 {
32710 PyThreadState* __tstate = wxPyBeginAllowThreads();
32711 delete arg1;
32712
32713 wxPyEndAllowThreads(__tstate);
32714 if (PyErr_Occurred()) SWIG_fail;
32715 }
32716 resultobj = SWIG_Py_Void();
32717 return resultobj;
32718 fail:
32719 return NULL;
32720 }
32721
32722
32723 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32724 PyObject *obj;
32725 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32726 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
32727 return SWIG_Py_Void();
32728 }
32729
32730 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32731 return SWIG_Python_InitShadowInstance(args);
32732 }
32733
32734 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32735 PyObject *resultobj = 0;
32736 wxPenList *arg1 = (wxPenList *) 0 ;
32737 wxColour *arg2 = 0 ;
32738 int arg3 ;
32739 int arg4 ;
32740 wxPen *result = 0 ;
32741 void *argp1 = 0 ;
32742 int res1 = 0 ;
32743 wxColour temp2 ;
32744 int val3 ;
32745 int ecode3 = 0 ;
32746 int val4 ;
32747 int ecode4 = 0 ;
32748 PyObject * obj0 = 0 ;
32749 PyObject * obj1 = 0 ;
32750 PyObject * obj2 = 0 ;
32751 PyObject * obj3 = 0 ;
32752 char * kwnames[] = {
32753 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
32754 };
32755
32756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32758 if (!SWIG_IsOK(res1)) {
32759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32760 }
32761 arg1 = reinterpret_cast< wxPenList * >(argp1);
32762 {
32763 arg2 = &temp2;
32764 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32765 }
32766 ecode3 = SWIG_AsVal_int(obj2, &val3);
32767 if (!SWIG_IsOK(ecode3)) {
32768 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
32769 }
32770 arg3 = static_cast< int >(val3);
32771 ecode4 = SWIG_AsVal_int(obj3, &val4);
32772 if (!SWIG_IsOK(ecode4)) {
32773 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
32774 }
32775 arg4 = static_cast< int >(val4);
32776 {
32777 PyThreadState* __tstate = wxPyBeginAllowThreads();
32778 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
32779 wxPyEndAllowThreads(__tstate);
32780 if (PyErr_Occurred()) SWIG_fail;
32781 }
32782 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32783 return resultobj;
32784 fail:
32785 return NULL;
32786 }
32787
32788
32789 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32790 PyObject *obj;
32791 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32792 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32793 return SWIG_Py_Void();
32794 }
32795
32796 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32797 PyObject *resultobj = 0;
32798 wxBrushList *arg1 = (wxBrushList *) 0 ;
32799 wxColour *arg2 = 0 ;
32800 int arg3 = (int) wxSOLID ;
32801 wxBrush *result = 0 ;
32802 void *argp1 = 0 ;
32803 int res1 = 0 ;
32804 wxColour temp2 ;
32805 int val3 ;
32806 int ecode3 = 0 ;
32807 PyObject * obj0 = 0 ;
32808 PyObject * obj1 = 0 ;
32809 PyObject * obj2 = 0 ;
32810 char * kwnames[] = {
32811 (char *) "self",(char *) "colour",(char *) "style", NULL
32812 };
32813
32814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32816 if (!SWIG_IsOK(res1)) {
32817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32818 }
32819 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32820 {
32821 arg2 = &temp2;
32822 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32823 }
32824 if (obj2) {
32825 ecode3 = SWIG_AsVal_int(obj2, &val3);
32826 if (!SWIG_IsOK(ecode3)) {
32827 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32828 }
32829 arg3 = static_cast< int >(val3);
32830 }
32831 {
32832 PyThreadState* __tstate = wxPyBeginAllowThreads();
32833 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32834 wxPyEndAllowThreads(__tstate);
32835 if (PyErr_Occurred()) SWIG_fail;
32836 }
32837 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32838 return resultobj;
32839 fail:
32840 return NULL;
32841 }
32842
32843
32844 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32845 PyObject *obj;
32846 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32847 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32848 return SWIG_Py_Void();
32849 }
32850
32851 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32852 PyObject *resultobj = 0;
32853 wxFontList *arg1 = (wxFontList *) 0 ;
32854 int arg2 ;
32855 int arg3 ;
32856 int arg4 ;
32857 int arg5 ;
32858 bool arg6 = (bool) false ;
32859 wxString const &arg7_defvalue = wxPyEmptyString ;
32860 wxString *arg7 = (wxString *) &arg7_defvalue ;
32861 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32862 wxFont *result = 0 ;
32863 void *argp1 = 0 ;
32864 int res1 = 0 ;
32865 int val2 ;
32866 int ecode2 = 0 ;
32867 int val3 ;
32868 int ecode3 = 0 ;
32869 int val4 ;
32870 int ecode4 = 0 ;
32871 int val5 ;
32872 int ecode5 = 0 ;
32873 bool val6 ;
32874 int ecode6 = 0 ;
32875 bool temp7 = false ;
32876 int val8 ;
32877 int ecode8 = 0 ;
32878 PyObject * obj0 = 0 ;
32879 PyObject * obj1 = 0 ;
32880 PyObject * obj2 = 0 ;
32881 PyObject * obj3 = 0 ;
32882 PyObject * obj4 = 0 ;
32883 PyObject * obj5 = 0 ;
32884 PyObject * obj6 = 0 ;
32885 PyObject * obj7 = 0 ;
32886 char * kwnames[] = {
32887 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
32888 };
32889
32890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
32892 if (!SWIG_IsOK(res1)) {
32893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
32894 }
32895 arg1 = reinterpret_cast< wxFontList * >(argp1);
32896 ecode2 = SWIG_AsVal_int(obj1, &val2);
32897 if (!SWIG_IsOK(ecode2)) {
32898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32899 }
32900 arg2 = static_cast< int >(val2);
32901 ecode3 = SWIG_AsVal_int(obj2, &val3);
32902 if (!SWIG_IsOK(ecode3)) {
32903 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32904 }
32905 arg3 = static_cast< int >(val3);
32906 ecode4 = SWIG_AsVal_int(obj3, &val4);
32907 if (!SWIG_IsOK(ecode4)) {
32908 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32909 }
32910 arg4 = static_cast< int >(val4);
32911 ecode5 = SWIG_AsVal_int(obj4, &val5);
32912 if (!SWIG_IsOK(ecode5)) {
32913 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32914 }
32915 arg5 = static_cast< int >(val5);
32916 if (obj5) {
32917 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32918 if (!SWIG_IsOK(ecode6)) {
32919 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32920 }
32921 arg6 = static_cast< bool >(val6);
32922 }
32923 if (obj6) {
32924 {
32925 arg7 = wxString_in_helper(obj6);
32926 if (arg7 == NULL) SWIG_fail;
32927 temp7 = true;
32928 }
32929 }
32930 if (obj7) {
32931 ecode8 = SWIG_AsVal_int(obj7, &val8);
32932 if (!SWIG_IsOK(ecode8)) {
32933 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
32934 }
32935 arg8 = static_cast< wxFontEncoding >(val8);
32936 }
32937 {
32938 PyThreadState* __tstate = wxPyBeginAllowThreads();
32939 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
32940 wxPyEndAllowThreads(__tstate);
32941 if (PyErr_Occurred()) SWIG_fail;
32942 }
32943 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32944 {
32945 if (temp7)
32946 delete arg7;
32947 }
32948 return resultobj;
32949 fail:
32950 {
32951 if (temp7)
32952 delete arg7;
32953 }
32954 return NULL;
32955 }
32956
32957
32958 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32959 PyObject *obj;
32960 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32961 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
32962 return SWIG_Py_Void();
32963 }
32964
32965 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32966 PyObject *resultobj = 0;
32967 wxColourDatabase *result = 0 ;
32968
32969 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32970 {
32971 if (!wxPyCheckForApp()) SWIG_fail;
32972 PyThreadState* __tstate = wxPyBeginAllowThreads();
32973 result = (wxColourDatabase *)new wxColourDatabase();
32974 wxPyEndAllowThreads(__tstate);
32975 if (PyErr_Occurred()) SWIG_fail;
32976 }
32977 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32978 return resultobj;
32979 fail:
32980 return NULL;
32981 }
32982
32983
32984 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32985 PyObject *resultobj = 0;
32986 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32987 void *argp1 = 0 ;
32988 int res1 = 0 ;
32989 PyObject *swig_obj[1] ;
32990
32991 if (!args) SWIG_fail;
32992 swig_obj[0] = args;
32993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32994 if (!SWIG_IsOK(res1)) {
32995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32996 }
32997 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32998 {
32999 PyThreadState* __tstate = wxPyBeginAllowThreads();
33000 delete arg1;
33001
33002 wxPyEndAllowThreads(__tstate);
33003 if (PyErr_Occurred()) SWIG_fail;
33004 }
33005 resultobj = SWIG_Py_Void();
33006 return resultobj;
33007 fail:
33008 return NULL;
33009 }
33010
33011
33012 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33013 PyObject *resultobj = 0;
33014 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33015 wxString *arg2 = 0 ;
33016 wxColour result;
33017 void *argp1 = 0 ;
33018 int res1 = 0 ;
33019 bool temp2 = false ;
33020 PyObject * obj0 = 0 ;
33021 PyObject * obj1 = 0 ;
33022 char * kwnames[] = {
33023 (char *) "self",(char *) "name", NULL
33024 };
33025
33026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
33027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33028 if (!SWIG_IsOK(res1)) {
33029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33030 }
33031 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33032 {
33033 arg2 = wxString_in_helper(obj1);
33034 if (arg2 == NULL) SWIG_fail;
33035 temp2 = true;
33036 }
33037 {
33038 PyThreadState* __tstate = wxPyBeginAllowThreads();
33039 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
33040 wxPyEndAllowThreads(__tstate);
33041 if (PyErr_Occurred()) SWIG_fail;
33042 }
33043 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33044 {
33045 if (temp2)
33046 delete arg2;
33047 }
33048 return resultobj;
33049 fail:
33050 {
33051 if (temp2)
33052 delete arg2;
33053 }
33054 return NULL;
33055 }
33056
33057
33058 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33059 PyObject *resultobj = 0;
33060 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33061 wxColour *arg2 = 0 ;
33062 wxString result;
33063 void *argp1 = 0 ;
33064 int res1 = 0 ;
33065 wxColour temp2 ;
33066 PyObject * obj0 = 0 ;
33067 PyObject * obj1 = 0 ;
33068 char * kwnames[] = {
33069 (char *) "self",(char *) "colour", NULL
33070 };
33071
33072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
33073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33074 if (!SWIG_IsOK(res1)) {
33075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33076 }
33077 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33078 {
33079 arg2 = &temp2;
33080 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33081 }
33082 {
33083 PyThreadState* __tstate = wxPyBeginAllowThreads();
33084 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
33085 wxPyEndAllowThreads(__tstate);
33086 if (PyErr_Occurred()) SWIG_fail;
33087 }
33088 {
33089 #if wxUSE_UNICODE
33090 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33091 #else
33092 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33093 #endif
33094 }
33095 return resultobj;
33096 fail:
33097 return NULL;
33098 }
33099
33100
33101 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33102 PyObject *resultobj = 0;
33103 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33104 wxString *arg2 = 0 ;
33105 wxColour *arg3 = 0 ;
33106 void *argp1 = 0 ;
33107 int res1 = 0 ;
33108 bool temp2 = false ;
33109 wxColour temp3 ;
33110 PyObject * obj0 = 0 ;
33111 PyObject * obj1 = 0 ;
33112 PyObject * obj2 = 0 ;
33113 char * kwnames[] = {
33114 (char *) "self",(char *) "name",(char *) "colour", NULL
33115 };
33116
33117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33119 if (!SWIG_IsOK(res1)) {
33120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33121 }
33122 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33123 {
33124 arg2 = wxString_in_helper(obj1);
33125 if (arg2 == NULL) SWIG_fail;
33126 temp2 = true;
33127 }
33128 {
33129 arg3 = &temp3;
33130 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33131 }
33132 {
33133 PyThreadState* __tstate = wxPyBeginAllowThreads();
33134 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
33135 wxPyEndAllowThreads(__tstate);
33136 if (PyErr_Occurred()) SWIG_fail;
33137 }
33138 resultobj = SWIG_Py_Void();
33139 {
33140 if (temp2)
33141 delete arg2;
33142 }
33143 return resultobj;
33144 fail:
33145 {
33146 if (temp2)
33147 delete arg2;
33148 }
33149 return NULL;
33150 }
33151
33152
33153 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33154 PyObject *resultobj = 0;
33155 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33156 wxString *arg2 = 0 ;
33157 int arg3 ;
33158 int arg4 ;
33159 int arg5 ;
33160 void *argp1 = 0 ;
33161 int res1 = 0 ;
33162 bool temp2 = false ;
33163 int val3 ;
33164 int ecode3 = 0 ;
33165 int val4 ;
33166 int ecode4 = 0 ;
33167 int val5 ;
33168 int ecode5 = 0 ;
33169 PyObject * obj0 = 0 ;
33170 PyObject * obj1 = 0 ;
33171 PyObject * obj2 = 0 ;
33172 PyObject * obj3 = 0 ;
33173 PyObject * obj4 = 0 ;
33174 char * kwnames[] = {
33175 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
33176 };
33177
33178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33180 if (!SWIG_IsOK(res1)) {
33181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33182 }
33183 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33184 {
33185 arg2 = wxString_in_helper(obj1);
33186 if (arg2 == NULL) SWIG_fail;
33187 temp2 = true;
33188 }
33189 ecode3 = SWIG_AsVal_int(obj2, &val3);
33190 if (!SWIG_IsOK(ecode3)) {
33191 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
33192 }
33193 arg3 = static_cast< int >(val3);
33194 ecode4 = SWIG_AsVal_int(obj3, &val4);
33195 if (!SWIG_IsOK(ecode4)) {
33196 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
33197 }
33198 arg4 = static_cast< int >(val4);
33199 ecode5 = SWIG_AsVal_int(obj4, &val5);
33200 if (!SWIG_IsOK(ecode5)) {
33201 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
33202 }
33203 arg5 = static_cast< int >(val5);
33204 {
33205 PyThreadState* __tstate = wxPyBeginAllowThreads();
33206 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
33207 wxPyEndAllowThreads(__tstate);
33208 if (PyErr_Occurred()) SWIG_fail;
33209 }
33210 resultobj = SWIG_Py_Void();
33211 {
33212 if (temp2)
33213 delete arg2;
33214 }
33215 return resultobj;
33216 fail:
33217 {
33218 if (temp2)
33219 delete arg2;
33220 }
33221 return NULL;
33222 }
33223
33224
33225 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33226 PyObject *obj;
33227 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33228 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
33229 return SWIG_Py_Void();
33230 }
33231
33232 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33233 return SWIG_Python_InitShadowInstance(args);
33234 }
33235
33236 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33237 PyObject *resultobj = 0;
33238 wxFontList *result = 0 ;
33239
33240 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
33241 {
33242 PyThreadState* __tstate = wxPyBeginAllowThreads();
33243 result = (wxFontList *)_wxPyInitTheFontList();
33244 wxPyEndAllowThreads(__tstate);
33245 if (PyErr_Occurred()) SWIG_fail;
33246 }
33247 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
33248 return resultobj;
33249 fail:
33250 return NULL;
33251 }
33252
33253
33254 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33255 PyObject *resultobj = 0;
33256 wxPenList *result = 0 ;
33257
33258 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
33259 {
33260 PyThreadState* __tstate = wxPyBeginAllowThreads();
33261 result = (wxPenList *)_wxPyInitThePenList();
33262 wxPyEndAllowThreads(__tstate);
33263 if (PyErr_Occurred()) SWIG_fail;
33264 }
33265 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
33266 return resultobj;
33267 fail:
33268 return NULL;
33269 }
33270
33271
33272 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33273 PyObject *resultobj = 0;
33274 wxBrushList *result = 0 ;
33275
33276 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
33277 {
33278 PyThreadState* __tstate = wxPyBeginAllowThreads();
33279 result = (wxBrushList *)_wxPyInitTheBrushList();
33280 wxPyEndAllowThreads(__tstate);
33281 if (PyErr_Occurred()) SWIG_fail;
33282 }
33283 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
33284 return resultobj;
33285 fail:
33286 return NULL;
33287 }
33288
33289
33290 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33291 PyObject *resultobj = 0;
33292 wxColourDatabase *result = 0 ;
33293
33294 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
33295 {
33296 PyThreadState* __tstate = wxPyBeginAllowThreads();
33297 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
33298 wxPyEndAllowThreads(__tstate);
33299 if (PyErr_Occurred()) SWIG_fail;
33300 }
33301 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33302 return resultobj;
33303 fail:
33304 return NULL;
33305 }
33306
33307
33308 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33309 PyObject *resultobj = 0;
33310 wxEffects *result = 0 ;
33311
33312 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
33313 {
33314 PyThreadState* __tstate = wxPyBeginAllowThreads();
33315 result = (wxEffects *)new wxEffects();
33316 wxPyEndAllowThreads(__tstate);
33317 if (PyErr_Occurred()) SWIG_fail;
33318 }
33319 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
33320 return resultobj;
33321 fail:
33322 return NULL;
33323 }
33324
33325
33326 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33327 PyObject *resultobj = 0;
33328 wxEffects *arg1 = (wxEffects *) 0 ;
33329 wxColour result;
33330 void *argp1 = 0 ;
33331 int res1 = 0 ;
33332 PyObject *swig_obj[1] ;
33333
33334 if (!args) SWIG_fail;
33335 swig_obj[0] = args;
33336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33337 if (!SWIG_IsOK(res1)) {
33338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33339 }
33340 arg1 = reinterpret_cast< wxEffects * >(argp1);
33341 {
33342 PyThreadState* __tstate = wxPyBeginAllowThreads();
33343 result = ((wxEffects const *)arg1)->GetHighlightColour();
33344 wxPyEndAllowThreads(__tstate);
33345 if (PyErr_Occurred()) SWIG_fail;
33346 }
33347 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33348 return resultobj;
33349 fail:
33350 return NULL;
33351 }
33352
33353
33354 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33355 PyObject *resultobj = 0;
33356 wxEffects *arg1 = (wxEffects *) 0 ;
33357 wxColour result;
33358 void *argp1 = 0 ;
33359 int res1 = 0 ;
33360 PyObject *swig_obj[1] ;
33361
33362 if (!args) SWIG_fail;
33363 swig_obj[0] = args;
33364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33365 if (!SWIG_IsOK(res1)) {
33366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33367 }
33368 arg1 = reinterpret_cast< wxEffects * >(argp1);
33369 {
33370 PyThreadState* __tstate = wxPyBeginAllowThreads();
33371 result = ((wxEffects const *)arg1)->GetLightShadow();
33372 wxPyEndAllowThreads(__tstate);
33373 if (PyErr_Occurred()) SWIG_fail;
33374 }
33375 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33376 return resultobj;
33377 fail:
33378 return NULL;
33379 }
33380
33381
33382 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33383 PyObject *resultobj = 0;
33384 wxEffects *arg1 = (wxEffects *) 0 ;
33385 wxColour result;
33386 void *argp1 = 0 ;
33387 int res1 = 0 ;
33388 PyObject *swig_obj[1] ;
33389
33390 if (!args) SWIG_fail;
33391 swig_obj[0] = args;
33392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33393 if (!SWIG_IsOK(res1)) {
33394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33395 }
33396 arg1 = reinterpret_cast< wxEffects * >(argp1);
33397 {
33398 PyThreadState* __tstate = wxPyBeginAllowThreads();
33399 result = ((wxEffects const *)arg1)->GetFaceColour();
33400 wxPyEndAllowThreads(__tstate);
33401 if (PyErr_Occurred()) SWIG_fail;
33402 }
33403 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33404 return resultobj;
33405 fail:
33406 return NULL;
33407 }
33408
33409
33410 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33411 PyObject *resultobj = 0;
33412 wxEffects *arg1 = (wxEffects *) 0 ;
33413 wxColour result;
33414 void *argp1 = 0 ;
33415 int res1 = 0 ;
33416 PyObject *swig_obj[1] ;
33417
33418 if (!args) SWIG_fail;
33419 swig_obj[0] = args;
33420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33421 if (!SWIG_IsOK(res1)) {
33422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33423 }
33424 arg1 = reinterpret_cast< wxEffects * >(argp1);
33425 {
33426 PyThreadState* __tstate = wxPyBeginAllowThreads();
33427 result = ((wxEffects const *)arg1)->GetMediumShadow();
33428 wxPyEndAllowThreads(__tstate);
33429 if (PyErr_Occurred()) SWIG_fail;
33430 }
33431 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33432 return resultobj;
33433 fail:
33434 return NULL;
33435 }
33436
33437
33438 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33439 PyObject *resultobj = 0;
33440 wxEffects *arg1 = (wxEffects *) 0 ;
33441 wxColour result;
33442 void *argp1 = 0 ;
33443 int res1 = 0 ;
33444 PyObject *swig_obj[1] ;
33445
33446 if (!args) SWIG_fail;
33447 swig_obj[0] = args;
33448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33449 if (!SWIG_IsOK(res1)) {
33450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33451 }
33452 arg1 = reinterpret_cast< wxEffects * >(argp1);
33453 {
33454 PyThreadState* __tstate = wxPyBeginAllowThreads();
33455 result = ((wxEffects const *)arg1)->GetDarkShadow();
33456 wxPyEndAllowThreads(__tstate);
33457 if (PyErr_Occurred()) SWIG_fail;
33458 }
33459 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33460 return resultobj;
33461 fail:
33462 return NULL;
33463 }
33464
33465
33466 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33467 PyObject *resultobj = 0;
33468 wxEffects *arg1 = (wxEffects *) 0 ;
33469 wxColour *arg2 = 0 ;
33470 void *argp1 = 0 ;
33471 int res1 = 0 ;
33472 wxColour temp2 ;
33473 PyObject * obj0 = 0 ;
33474 PyObject * obj1 = 0 ;
33475 char * kwnames[] = {
33476 (char *) "self",(char *) "c", NULL
33477 };
33478
33479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
33480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33481 if (!SWIG_IsOK(res1)) {
33482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33483 }
33484 arg1 = reinterpret_cast< wxEffects * >(argp1);
33485 {
33486 arg2 = &temp2;
33487 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33488 }
33489 {
33490 PyThreadState* __tstate = wxPyBeginAllowThreads();
33491 (arg1)->SetHighlightColour((wxColour const &)*arg2);
33492 wxPyEndAllowThreads(__tstate);
33493 if (PyErr_Occurred()) SWIG_fail;
33494 }
33495 resultobj = SWIG_Py_Void();
33496 return resultobj;
33497 fail:
33498 return NULL;
33499 }
33500
33501
33502 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33503 PyObject *resultobj = 0;
33504 wxEffects *arg1 = (wxEffects *) 0 ;
33505 wxColour *arg2 = 0 ;
33506 void *argp1 = 0 ;
33507 int res1 = 0 ;
33508 wxColour temp2 ;
33509 PyObject * obj0 = 0 ;
33510 PyObject * obj1 = 0 ;
33511 char * kwnames[] = {
33512 (char *) "self",(char *) "c", NULL
33513 };
33514
33515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33517 if (!SWIG_IsOK(res1)) {
33518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33519 }
33520 arg1 = reinterpret_cast< wxEffects * >(argp1);
33521 {
33522 arg2 = &temp2;
33523 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33524 }
33525 {
33526 PyThreadState* __tstate = wxPyBeginAllowThreads();
33527 (arg1)->SetLightShadow((wxColour const &)*arg2);
33528 wxPyEndAllowThreads(__tstate);
33529 if (PyErr_Occurred()) SWIG_fail;
33530 }
33531 resultobj = SWIG_Py_Void();
33532 return resultobj;
33533 fail:
33534 return NULL;
33535 }
33536
33537
33538 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33539 PyObject *resultobj = 0;
33540 wxEffects *arg1 = (wxEffects *) 0 ;
33541 wxColour *arg2 = 0 ;
33542 void *argp1 = 0 ;
33543 int res1 = 0 ;
33544 wxColour temp2 ;
33545 PyObject * obj0 = 0 ;
33546 PyObject * obj1 = 0 ;
33547 char * kwnames[] = {
33548 (char *) "self",(char *) "c", NULL
33549 };
33550
33551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
33552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33553 if (!SWIG_IsOK(res1)) {
33554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33555 }
33556 arg1 = reinterpret_cast< wxEffects * >(argp1);
33557 {
33558 arg2 = &temp2;
33559 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33560 }
33561 {
33562 PyThreadState* __tstate = wxPyBeginAllowThreads();
33563 (arg1)->SetFaceColour((wxColour const &)*arg2);
33564 wxPyEndAllowThreads(__tstate);
33565 if (PyErr_Occurred()) SWIG_fail;
33566 }
33567 resultobj = SWIG_Py_Void();
33568 return resultobj;
33569 fail:
33570 return NULL;
33571 }
33572
33573
33574 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33575 PyObject *resultobj = 0;
33576 wxEffects *arg1 = (wxEffects *) 0 ;
33577 wxColour *arg2 = 0 ;
33578 void *argp1 = 0 ;
33579 int res1 = 0 ;
33580 wxColour temp2 ;
33581 PyObject * obj0 = 0 ;
33582 PyObject * obj1 = 0 ;
33583 char * kwnames[] = {
33584 (char *) "self",(char *) "c", NULL
33585 };
33586
33587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33589 if (!SWIG_IsOK(res1)) {
33590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33591 }
33592 arg1 = reinterpret_cast< wxEffects * >(argp1);
33593 {
33594 arg2 = &temp2;
33595 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33596 }
33597 {
33598 PyThreadState* __tstate = wxPyBeginAllowThreads();
33599 (arg1)->SetMediumShadow((wxColour const &)*arg2);
33600 wxPyEndAllowThreads(__tstate);
33601 if (PyErr_Occurred()) SWIG_fail;
33602 }
33603 resultobj = SWIG_Py_Void();
33604 return resultobj;
33605 fail:
33606 return NULL;
33607 }
33608
33609
33610 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33611 PyObject *resultobj = 0;
33612 wxEffects *arg1 = (wxEffects *) 0 ;
33613 wxColour *arg2 = 0 ;
33614 void *argp1 = 0 ;
33615 int res1 = 0 ;
33616 wxColour temp2 ;
33617 PyObject * obj0 = 0 ;
33618 PyObject * obj1 = 0 ;
33619 char * kwnames[] = {
33620 (char *) "self",(char *) "c", NULL
33621 };
33622
33623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33625 if (!SWIG_IsOK(res1)) {
33626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33627 }
33628 arg1 = reinterpret_cast< wxEffects * >(argp1);
33629 {
33630 arg2 = &temp2;
33631 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33632 }
33633 {
33634 PyThreadState* __tstate = wxPyBeginAllowThreads();
33635 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33636 wxPyEndAllowThreads(__tstate);
33637 if (PyErr_Occurred()) SWIG_fail;
33638 }
33639 resultobj = SWIG_Py_Void();
33640 return resultobj;
33641 fail:
33642 return NULL;
33643 }
33644
33645
33646 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33647 PyObject *resultobj = 0;
33648 wxEffects *arg1 = (wxEffects *) 0 ;
33649 wxColour *arg2 = 0 ;
33650 wxColour *arg3 = 0 ;
33651 wxColour *arg4 = 0 ;
33652 wxColour *arg5 = 0 ;
33653 wxColour *arg6 = 0 ;
33654 void *argp1 = 0 ;
33655 int res1 = 0 ;
33656 wxColour temp2 ;
33657 wxColour temp3 ;
33658 wxColour temp4 ;
33659 wxColour temp5 ;
33660 wxColour temp6 ;
33661 PyObject * obj0 = 0 ;
33662 PyObject * obj1 = 0 ;
33663 PyObject * obj2 = 0 ;
33664 PyObject * obj3 = 0 ;
33665 PyObject * obj4 = 0 ;
33666 PyObject * obj5 = 0 ;
33667 char * kwnames[] = {
33668 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33669 };
33670
33671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33673 if (!SWIG_IsOK(res1)) {
33674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33675 }
33676 arg1 = reinterpret_cast< wxEffects * >(argp1);
33677 {
33678 arg2 = &temp2;
33679 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33680 }
33681 {
33682 arg3 = &temp3;
33683 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33684 }
33685 {
33686 arg4 = &temp4;
33687 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
33688 }
33689 {
33690 arg5 = &temp5;
33691 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33692 }
33693 {
33694 arg6 = &temp6;
33695 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33696 }
33697 {
33698 PyThreadState* __tstate = wxPyBeginAllowThreads();
33699 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33700 wxPyEndAllowThreads(__tstate);
33701 if (PyErr_Occurred()) SWIG_fail;
33702 }
33703 resultobj = SWIG_Py_Void();
33704 return resultobj;
33705 fail:
33706 return NULL;
33707 }
33708
33709
33710 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33711 PyObject *resultobj = 0;
33712 wxEffects *arg1 = (wxEffects *) 0 ;
33713 wxDC *arg2 = 0 ;
33714 wxRect *arg3 = 0 ;
33715 int arg4 = (int) 1 ;
33716 void *argp1 = 0 ;
33717 int res1 = 0 ;
33718 void *argp2 = 0 ;
33719 int res2 = 0 ;
33720 wxRect temp3 ;
33721 int val4 ;
33722 int ecode4 = 0 ;
33723 PyObject * obj0 = 0 ;
33724 PyObject * obj1 = 0 ;
33725 PyObject * obj2 = 0 ;
33726 PyObject * obj3 = 0 ;
33727 char * kwnames[] = {
33728 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33729 };
33730
33731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33733 if (!SWIG_IsOK(res1)) {
33734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33735 }
33736 arg1 = reinterpret_cast< wxEffects * >(argp1);
33737 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33738 if (!SWIG_IsOK(res2)) {
33739 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33740 }
33741 if (!argp2) {
33742 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33743 }
33744 arg2 = reinterpret_cast< wxDC * >(argp2);
33745 {
33746 arg3 = &temp3;
33747 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33748 }
33749 if (obj3) {
33750 ecode4 = SWIG_AsVal_int(obj3, &val4);
33751 if (!SWIG_IsOK(ecode4)) {
33752 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33753 }
33754 arg4 = static_cast< int >(val4);
33755 }
33756 {
33757 PyThreadState* __tstate = wxPyBeginAllowThreads();
33758 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33759 wxPyEndAllowThreads(__tstate);
33760 if (PyErr_Occurred()) SWIG_fail;
33761 }
33762 resultobj = SWIG_Py_Void();
33763 return resultobj;
33764 fail:
33765 return NULL;
33766 }
33767
33768
33769 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33770 PyObject *resultobj = 0;
33771 wxEffects *arg1 = (wxEffects *) 0 ;
33772 wxRect *arg2 = 0 ;
33773 wxDC *arg3 = 0 ;
33774 wxBitmap *arg4 = 0 ;
33775 bool result;
33776 void *argp1 = 0 ;
33777 int res1 = 0 ;
33778 wxRect temp2 ;
33779 void *argp3 = 0 ;
33780 int res3 = 0 ;
33781 void *argp4 = 0 ;
33782 int res4 = 0 ;
33783 PyObject * obj0 = 0 ;
33784 PyObject * obj1 = 0 ;
33785 PyObject * obj2 = 0 ;
33786 PyObject * obj3 = 0 ;
33787 char * kwnames[] = {
33788 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33789 };
33790
33791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33793 if (!SWIG_IsOK(res1)) {
33794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33795 }
33796 arg1 = reinterpret_cast< wxEffects * >(argp1);
33797 {
33798 arg2 = &temp2;
33799 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33800 }
33801 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33802 if (!SWIG_IsOK(res3)) {
33803 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33804 }
33805 if (!argp3) {
33806 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33807 }
33808 arg3 = reinterpret_cast< wxDC * >(argp3);
33809 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33810 if (!SWIG_IsOK(res4)) {
33811 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33812 }
33813 if (!argp4) {
33814 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33815 }
33816 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33817 {
33818 PyThreadState* __tstate = wxPyBeginAllowThreads();
33819 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33820 wxPyEndAllowThreads(__tstate);
33821 if (PyErr_Occurred()) SWIG_fail;
33822 }
33823 {
33824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33825 }
33826 return resultobj;
33827 fail:
33828 return NULL;
33829 }
33830
33831
33832 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33833 PyObject *obj;
33834 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33835 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33836 return SWIG_Py_Void();
33837 }
33838
33839 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33840 return SWIG_Python_InitShadowInstance(args);
33841 }
33842
33843 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33844 PyObject *resultobj = 0;
33845 int arg1 ;
33846 int arg2 ;
33847 bool arg3 ;
33848 wxSplitterRenderParams *result = 0 ;
33849 int val1 ;
33850 int ecode1 = 0 ;
33851 int val2 ;
33852 int ecode2 = 0 ;
33853 bool val3 ;
33854 int ecode3 = 0 ;
33855 PyObject * obj0 = 0 ;
33856 PyObject * obj1 = 0 ;
33857 PyObject * obj2 = 0 ;
33858 char * kwnames[] = {
33859 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33860 };
33861
33862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33863 ecode1 = SWIG_AsVal_int(obj0, &val1);
33864 if (!SWIG_IsOK(ecode1)) {
33865 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33866 }
33867 arg1 = static_cast< int >(val1);
33868 ecode2 = SWIG_AsVal_int(obj1, &val2);
33869 if (!SWIG_IsOK(ecode2)) {
33870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33871 }
33872 arg2 = static_cast< int >(val2);
33873 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33874 if (!SWIG_IsOK(ecode3)) {
33875 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33876 }
33877 arg3 = static_cast< bool >(val3);
33878 {
33879 PyThreadState* __tstate = wxPyBeginAllowThreads();
33880 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33881 wxPyEndAllowThreads(__tstate);
33882 if (PyErr_Occurred()) SWIG_fail;
33883 }
33884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33885 return resultobj;
33886 fail:
33887 return NULL;
33888 }
33889
33890
33891 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33892 PyObject *resultobj = 0;
33893 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33894 void *argp1 = 0 ;
33895 int res1 = 0 ;
33896 PyObject *swig_obj[1] ;
33897
33898 if (!args) SWIG_fail;
33899 swig_obj[0] = args;
33900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33901 if (!SWIG_IsOK(res1)) {
33902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33903 }
33904 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33905 {
33906 PyThreadState* __tstate = wxPyBeginAllowThreads();
33907 delete arg1;
33908
33909 wxPyEndAllowThreads(__tstate);
33910 if (PyErr_Occurred()) SWIG_fail;
33911 }
33912 resultobj = SWIG_Py_Void();
33913 return resultobj;
33914 fail:
33915 return NULL;
33916 }
33917
33918
33919 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33920 PyObject *resultobj = 0;
33921 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33922 int result;
33923 void *argp1 = 0 ;
33924 int res1 = 0 ;
33925 PyObject *swig_obj[1] ;
33926
33927 if (!args) SWIG_fail;
33928 swig_obj[0] = args;
33929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33930 if (!SWIG_IsOK(res1)) {
33931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33932 }
33933 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33934 result = (int)(int) ((arg1)->widthSash);
33935 resultobj = SWIG_From_int(static_cast< int >(result));
33936 return resultobj;
33937 fail:
33938 return NULL;
33939 }
33940
33941
33942 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33943 PyObject *resultobj = 0;
33944 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33945 int result;
33946 void *argp1 = 0 ;
33947 int res1 = 0 ;
33948 PyObject *swig_obj[1] ;
33949
33950 if (!args) SWIG_fail;
33951 swig_obj[0] = args;
33952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33953 if (!SWIG_IsOK(res1)) {
33954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33955 }
33956 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33957 result = (int)(int) ((arg1)->border);
33958 resultobj = SWIG_From_int(static_cast< int >(result));
33959 return resultobj;
33960 fail:
33961 return NULL;
33962 }
33963
33964
33965 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33966 PyObject *resultobj = 0;
33967 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33968 bool result;
33969 void *argp1 = 0 ;
33970 int res1 = 0 ;
33971 PyObject *swig_obj[1] ;
33972
33973 if (!args) SWIG_fail;
33974 swig_obj[0] = args;
33975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33976 if (!SWIG_IsOK(res1)) {
33977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33978 }
33979 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33980 result = (bool)(bool) ((arg1)->isHotSensitive);
33981 resultobj = SWIG_From_bool(static_cast< bool >(result));
33982 return resultobj;
33983 fail:
33984 return NULL;
33985 }
33986
33987
33988 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33989 PyObject *obj;
33990 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33991 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33992 return SWIG_Py_Void();
33993 }
33994
33995 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33996 return SWIG_Python_InitShadowInstance(args);
33997 }
33998
33999 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34000 PyObject *resultobj = 0;
34001 wxHeaderButtonParams *result = 0 ;
34002
34003 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
34004 {
34005 PyThreadState* __tstate = wxPyBeginAllowThreads();
34006 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
34007 wxPyEndAllowThreads(__tstate);
34008 if (PyErr_Occurred()) SWIG_fail;
34009 }
34010 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
34011 return resultobj;
34012 fail:
34013 return NULL;
34014 }
34015
34016
34017 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34018 PyObject *resultobj = 0;
34019 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34020 void *argp1 = 0 ;
34021 int res1 = 0 ;
34022 PyObject *swig_obj[1] ;
34023
34024 if (!args) SWIG_fail;
34025 swig_obj[0] = args;
34026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
34027 if (!SWIG_IsOK(res1)) {
34028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34029 }
34030 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34031 {
34032 PyThreadState* __tstate = wxPyBeginAllowThreads();
34033 delete arg1;
34034
34035 wxPyEndAllowThreads(__tstate);
34036 if (PyErr_Occurred()) SWIG_fail;
34037 }
34038 resultobj = SWIG_Py_Void();
34039 return resultobj;
34040 fail:
34041 return NULL;
34042 }
34043
34044
34045 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34046 PyObject *resultobj = 0;
34047 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34048 wxColour *arg2 = (wxColour *) 0 ;
34049 void *argp1 = 0 ;
34050 int res1 = 0 ;
34051 wxColour temp2 ;
34052 PyObject *swig_obj[2] ;
34053
34054 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
34055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34056 if (!SWIG_IsOK(res1)) {
34057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34058 }
34059 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34060 {
34061 arg2 = &temp2;
34062 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34063 }
34064 if (arg1) (arg1)->m_arrowColour = *arg2;
34065
34066 resultobj = SWIG_Py_Void();
34067 return resultobj;
34068 fail:
34069 return NULL;
34070 }
34071
34072
34073 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34074 PyObject *resultobj = 0;
34075 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34076 wxColour *result = 0 ;
34077 void *argp1 = 0 ;
34078 int res1 = 0 ;
34079 PyObject *swig_obj[1] ;
34080
34081 if (!args) SWIG_fail;
34082 swig_obj[0] = args;
34083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34084 if (!SWIG_IsOK(res1)) {
34085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34086 }
34087 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34088 result = (wxColour *)& ((arg1)->m_arrowColour);
34089 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34090 return resultobj;
34091 fail:
34092 return NULL;
34093 }
34094
34095
34096 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34097 PyObject *resultobj = 0;
34098 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34099 wxColour *arg2 = (wxColour *) 0 ;
34100 void *argp1 = 0 ;
34101 int res1 = 0 ;
34102 wxColour temp2 ;
34103 PyObject *swig_obj[2] ;
34104
34105 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
34106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34107 if (!SWIG_IsOK(res1)) {
34108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34109 }
34110 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34111 {
34112 arg2 = &temp2;
34113 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34114 }
34115 if (arg1) (arg1)->m_selectionColour = *arg2;
34116
34117 resultobj = SWIG_Py_Void();
34118 return resultobj;
34119 fail:
34120 return NULL;
34121 }
34122
34123
34124 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34125 PyObject *resultobj = 0;
34126 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34127 wxColour *result = 0 ;
34128 void *argp1 = 0 ;
34129 int res1 = 0 ;
34130 PyObject *swig_obj[1] ;
34131
34132 if (!args) SWIG_fail;
34133 swig_obj[0] = args;
34134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34135 if (!SWIG_IsOK(res1)) {
34136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34137 }
34138 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34139 result = (wxColour *)& ((arg1)->m_selectionColour);
34140 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34141 return resultobj;
34142 fail:
34143 return NULL;
34144 }
34145
34146
34147 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34148 PyObject *resultobj = 0;
34149 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34150 wxString *arg2 = (wxString *) 0 ;
34151 void *argp1 = 0 ;
34152 int res1 = 0 ;
34153 bool temp2 = false ;
34154 PyObject *swig_obj[2] ;
34155
34156 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
34157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34158 if (!SWIG_IsOK(res1)) {
34159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34160 }
34161 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34162 {
34163 arg2 = wxString_in_helper(swig_obj[1]);
34164 if (arg2 == NULL) SWIG_fail;
34165 temp2 = true;
34166 }
34167 if (arg1) (arg1)->m_labelText = *arg2;
34168
34169 resultobj = SWIG_Py_Void();
34170 {
34171 if (temp2)
34172 delete arg2;
34173 }
34174 return resultobj;
34175 fail:
34176 {
34177 if (temp2)
34178 delete arg2;
34179 }
34180 return NULL;
34181 }
34182
34183
34184 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34185 PyObject *resultobj = 0;
34186 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34187 wxString *result = 0 ;
34188 void *argp1 = 0 ;
34189 int res1 = 0 ;
34190 PyObject *swig_obj[1] ;
34191
34192 if (!args) SWIG_fail;
34193 swig_obj[0] = args;
34194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34195 if (!SWIG_IsOK(res1)) {
34196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34197 }
34198 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34199 result = (wxString *)& ((arg1)->m_labelText);
34200 {
34201 #if wxUSE_UNICODE
34202 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
34203 #else
34204 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
34205 #endif
34206 }
34207 return resultobj;
34208 fail:
34209 return NULL;
34210 }
34211
34212
34213 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34214 PyObject *resultobj = 0;
34215 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34216 wxFont *arg2 = (wxFont *) 0 ;
34217 void *argp1 = 0 ;
34218 int res1 = 0 ;
34219 void *argp2 = 0 ;
34220 int res2 = 0 ;
34221 PyObject *swig_obj[2] ;
34222
34223 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
34224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34225 if (!SWIG_IsOK(res1)) {
34226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34227 }
34228 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34229 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
34230 if (!SWIG_IsOK(res2)) {
34231 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
34232 }
34233 arg2 = reinterpret_cast< wxFont * >(argp2);
34234 if (arg1) (arg1)->m_labelFont = *arg2;
34235
34236 resultobj = SWIG_Py_Void();
34237 return resultobj;
34238 fail:
34239 return NULL;
34240 }
34241
34242
34243 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34244 PyObject *resultobj = 0;
34245 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34246 wxFont *result = 0 ;
34247 void *argp1 = 0 ;
34248 int res1 = 0 ;
34249 PyObject *swig_obj[1] ;
34250
34251 if (!args) SWIG_fail;
34252 swig_obj[0] = args;
34253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34254 if (!SWIG_IsOK(res1)) {
34255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34256 }
34257 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34258 result = (wxFont *)& ((arg1)->m_labelFont);
34259 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
34260 return resultobj;
34261 fail:
34262 return NULL;
34263 }
34264
34265
34266 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34267 PyObject *resultobj = 0;
34268 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34269 wxColour *arg2 = (wxColour *) 0 ;
34270 void *argp1 = 0 ;
34271 int res1 = 0 ;
34272 wxColour temp2 ;
34273 PyObject *swig_obj[2] ;
34274
34275 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
34276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34277 if (!SWIG_IsOK(res1)) {
34278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34279 }
34280 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34281 {
34282 arg2 = &temp2;
34283 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34284 }
34285 if (arg1) (arg1)->m_labelColour = *arg2;
34286
34287 resultobj = SWIG_Py_Void();
34288 return resultobj;
34289 fail:
34290 return NULL;
34291 }
34292
34293
34294 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34295 PyObject *resultobj = 0;
34296 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34297 wxColour *result = 0 ;
34298 void *argp1 = 0 ;
34299 int res1 = 0 ;
34300 PyObject *swig_obj[1] ;
34301
34302 if (!args) SWIG_fail;
34303 swig_obj[0] = args;
34304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34305 if (!SWIG_IsOK(res1)) {
34306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34307 }
34308 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34309 result = (wxColour *)& ((arg1)->m_labelColour);
34310 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34311 return resultobj;
34312 fail:
34313 return NULL;
34314 }
34315
34316
34317 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34318 PyObject *resultobj = 0;
34319 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34320 wxBitmap *arg2 = (wxBitmap *) 0 ;
34321 void *argp1 = 0 ;
34322 int res1 = 0 ;
34323 void *argp2 = 0 ;
34324 int res2 = 0 ;
34325 PyObject *swig_obj[2] ;
34326
34327 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
34328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34329 if (!SWIG_IsOK(res1)) {
34330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34331 }
34332 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34333 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
34334 if (!SWIG_IsOK(res2)) {
34335 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
34336 }
34337 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34338 if (arg1) (arg1)->m_labelBitmap = *arg2;
34339
34340 resultobj = SWIG_Py_Void();
34341 return resultobj;
34342 fail:
34343 return NULL;
34344 }
34345
34346
34347 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34348 PyObject *resultobj = 0;
34349 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34350 wxBitmap *result = 0 ;
34351 void *argp1 = 0 ;
34352 int res1 = 0 ;
34353 PyObject *swig_obj[1] ;
34354
34355 if (!args) SWIG_fail;
34356 swig_obj[0] = args;
34357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34358 if (!SWIG_IsOK(res1)) {
34359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34360 }
34361 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34362 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
34363 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
34364 return resultobj;
34365 fail:
34366 return NULL;
34367 }
34368
34369
34370 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34371 PyObject *resultobj = 0;
34372 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34373 int arg2 ;
34374 void *argp1 = 0 ;
34375 int res1 = 0 ;
34376 int val2 ;
34377 int ecode2 = 0 ;
34378 PyObject *swig_obj[2] ;
34379
34380 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
34381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34382 if (!SWIG_IsOK(res1)) {
34383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34384 }
34385 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34386 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
34387 if (!SWIG_IsOK(ecode2)) {
34388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
34389 }
34390 arg2 = static_cast< int >(val2);
34391 if (arg1) (arg1)->m_labelAlignment = arg2;
34392
34393 resultobj = SWIG_Py_Void();
34394 return resultobj;
34395 fail:
34396 return NULL;
34397 }
34398
34399
34400 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34401 PyObject *resultobj = 0;
34402 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34403 int result;
34404 void *argp1 = 0 ;
34405 int res1 = 0 ;
34406 PyObject *swig_obj[1] ;
34407
34408 if (!args) SWIG_fail;
34409 swig_obj[0] = args;
34410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34411 if (!SWIG_IsOK(res1)) {
34412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34413 }
34414 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34415 result = (int) ((arg1)->m_labelAlignment);
34416 resultobj = SWIG_From_int(static_cast< int >(result));
34417 return resultobj;
34418 fail:
34419 return NULL;
34420 }
34421
34422
34423 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34424 PyObject *obj;
34425 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34426 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
34427 return SWIG_Py_Void();
34428 }
34429
34430 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34431 return SWIG_Python_InitShadowInstance(args);
34432 }
34433
34434 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34435 PyObject *resultobj = 0;
34436 int arg1 ;
34437 int arg2 ;
34438 wxRendererVersion *result = 0 ;
34439 int val1 ;
34440 int ecode1 = 0 ;
34441 int val2 ;
34442 int ecode2 = 0 ;
34443 PyObject * obj0 = 0 ;
34444 PyObject * obj1 = 0 ;
34445 char * kwnames[] = {
34446 (char *) "version_",(char *) "age_", NULL
34447 };
34448
34449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
34450 ecode1 = SWIG_AsVal_int(obj0, &val1);
34451 if (!SWIG_IsOK(ecode1)) {
34452 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
34453 }
34454 arg1 = static_cast< int >(val1);
34455 ecode2 = SWIG_AsVal_int(obj1, &val2);
34456 if (!SWIG_IsOK(ecode2)) {
34457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
34458 }
34459 arg2 = static_cast< int >(val2);
34460 {
34461 PyThreadState* __tstate = wxPyBeginAllowThreads();
34462 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
34463 wxPyEndAllowThreads(__tstate);
34464 if (PyErr_Occurred()) SWIG_fail;
34465 }
34466 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
34467 return resultobj;
34468 fail:
34469 return NULL;
34470 }
34471
34472
34473 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34474 PyObject *resultobj = 0;
34475 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34476 void *argp1 = 0 ;
34477 int res1 = 0 ;
34478 PyObject *swig_obj[1] ;
34479
34480 if (!args) SWIG_fail;
34481 swig_obj[0] = args;
34482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
34483 if (!SWIG_IsOK(res1)) {
34484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34485 }
34486 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34487 {
34488 PyThreadState* __tstate = wxPyBeginAllowThreads();
34489 delete arg1;
34490
34491 wxPyEndAllowThreads(__tstate);
34492 if (PyErr_Occurred()) SWIG_fail;
34493 }
34494 resultobj = SWIG_Py_Void();
34495 return resultobj;
34496 fail:
34497 return NULL;
34498 }
34499
34500
34501 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34502 PyObject *resultobj = 0;
34503 wxRendererVersion *arg1 = 0 ;
34504 bool result;
34505 void *argp1 = 0 ;
34506 int res1 = 0 ;
34507 PyObject * obj0 = 0 ;
34508 char * kwnames[] = {
34509 (char *) "ver", NULL
34510 };
34511
34512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
34513 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
34514 if (!SWIG_IsOK(res1)) {
34515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34516 }
34517 if (!argp1) {
34518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34519 }
34520 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34521 {
34522 PyThreadState* __tstate = wxPyBeginAllowThreads();
34523 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
34524 wxPyEndAllowThreads(__tstate);
34525 if (PyErr_Occurred()) SWIG_fail;
34526 }
34527 {
34528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34529 }
34530 return resultobj;
34531 fail:
34532 return NULL;
34533 }
34534
34535
34536 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34537 PyObject *resultobj = 0;
34538 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34539 int result;
34540 void *argp1 = 0 ;
34541 int res1 = 0 ;
34542 PyObject *swig_obj[1] ;
34543
34544 if (!args) SWIG_fail;
34545 swig_obj[0] = args;
34546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34547 if (!SWIG_IsOK(res1)) {
34548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34549 }
34550 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34551 result = (int)(int) ((arg1)->version);
34552 resultobj = SWIG_From_int(static_cast< int >(result));
34553 return resultobj;
34554 fail:
34555 return NULL;
34556 }
34557
34558
34559 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34560 PyObject *resultobj = 0;
34561 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34562 int result;
34563 void *argp1 = 0 ;
34564 int res1 = 0 ;
34565 PyObject *swig_obj[1] ;
34566
34567 if (!args) SWIG_fail;
34568 swig_obj[0] = args;
34569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34570 if (!SWIG_IsOK(res1)) {
34571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34572 }
34573 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34574 result = (int)(int) ((arg1)->age);
34575 resultobj = SWIG_From_int(static_cast< int >(result));
34576 return resultobj;
34577 fail:
34578 return NULL;
34579 }
34580
34581
34582 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34583 PyObject *obj;
34584 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34585 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
34586 return SWIG_Py_Void();
34587 }
34588
34589 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34590 return SWIG_Python_InitShadowInstance(args);
34591 }
34592
34593 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34594 PyObject *resultobj = 0;
34595 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34596 wxWindow *arg2 = (wxWindow *) 0 ;
34597 wxDC *arg3 = 0 ;
34598 wxRect *arg4 = 0 ;
34599 int arg5 = (int) 0 ;
34600 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34601 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34602 int result;
34603 void *argp1 = 0 ;
34604 int res1 = 0 ;
34605 void *argp2 = 0 ;
34606 int res2 = 0 ;
34607 void *argp3 = 0 ;
34608 int res3 = 0 ;
34609 wxRect temp4 ;
34610 int val5 ;
34611 int ecode5 = 0 ;
34612 int val6 ;
34613 int ecode6 = 0 ;
34614 void *argp7 = 0 ;
34615 int res7 = 0 ;
34616 PyObject * obj0 = 0 ;
34617 PyObject * obj1 = 0 ;
34618 PyObject * obj2 = 0 ;
34619 PyObject * obj3 = 0 ;
34620 PyObject * obj4 = 0 ;
34621 PyObject * obj5 = 0 ;
34622 PyObject * obj6 = 0 ;
34623 char * kwnames[] = {
34624 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34625 };
34626
34627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34629 if (!SWIG_IsOK(res1)) {
34630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34631 }
34632 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34633 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34634 if (!SWIG_IsOK(res2)) {
34635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34636 }
34637 arg2 = reinterpret_cast< wxWindow * >(argp2);
34638 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34639 if (!SWIG_IsOK(res3)) {
34640 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34641 }
34642 if (!argp3) {
34643 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34644 }
34645 arg3 = reinterpret_cast< wxDC * >(argp3);
34646 {
34647 arg4 = &temp4;
34648 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34649 }
34650 if (obj4) {
34651 ecode5 = SWIG_AsVal_int(obj4, &val5);
34652 if (!SWIG_IsOK(ecode5)) {
34653 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34654 }
34655 arg5 = static_cast< int >(val5);
34656 }
34657 if (obj5) {
34658 ecode6 = SWIG_AsVal_int(obj5, &val6);
34659 if (!SWIG_IsOK(ecode6)) {
34660 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34661 }
34662 arg6 = static_cast< wxHeaderSortIconType >(val6);
34663 }
34664 if (obj6) {
34665 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34666 if (!SWIG_IsOK(res7)) {
34667 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34668 }
34669 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34670 }
34671 {
34672 PyThreadState* __tstate = wxPyBeginAllowThreads();
34673 result = (int)(arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34674 wxPyEndAllowThreads(__tstate);
34675 if (PyErr_Occurred()) SWIG_fail;
34676 }
34677 resultobj = SWIG_From_int(static_cast< int >(result));
34678 return resultobj;
34679 fail:
34680 return NULL;
34681 }
34682
34683
34684 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34685 PyObject *resultobj = 0;
34686 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34687 wxWindow *arg2 = (wxWindow *) 0 ;
34688 wxDC *arg3 = 0 ;
34689 wxRect *arg4 = 0 ;
34690 int arg5 = (int) 0 ;
34691 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34692 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34693 int result;
34694 void *argp1 = 0 ;
34695 int res1 = 0 ;
34696 void *argp2 = 0 ;
34697 int res2 = 0 ;
34698 void *argp3 = 0 ;
34699 int res3 = 0 ;
34700 wxRect temp4 ;
34701 int val5 ;
34702 int ecode5 = 0 ;
34703 int val6 ;
34704 int ecode6 = 0 ;
34705 void *argp7 = 0 ;
34706 int res7 = 0 ;
34707 PyObject * obj0 = 0 ;
34708 PyObject * obj1 = 0 ;
34709 PyObject * obj2 = 0 ;
34710 PyObject * obj3 = 0 ;
34711 PyObject * obj4 = 0 ;
34712 PyObject * obj5 = 0 ;
34713 PyObject * obj6 = 0 ;
34714 char * kwnames[] = {
34715 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34716 };
34717
34718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34720 if (!SWIG_IsOK(res1)) {
34721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34722 }
34723 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34724 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34725 if (!SWIG_IsOK(res2)) {
34726 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34727 }
34728 arg2 = reinterpret_cast< wxWindow * >(argp2);
34729 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34730 if (!SWIG_IsOK(res3)) {
34731 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34732 }
34733 if (!argp3) {
34734 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34735 }
34736 arg3 = reinterpret_cast< wxDC * >(argp3);
34737 {
34738 arg4 = &temp4;
34739 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34740 }
34741 if (obj4) {
34742 ecode5 = SWIG_AsVal_int(obj4, &val5);
34743 if (!SWIG_IsOK(ecode5)) {
34744 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34745 }
34746 arg5 = static_cast< int >(val5);
34747 }
34748 if (obj5) {
34749 ecode6 = SWIG_AsVal_int(obj5, &val6);
34750 if (!SWIG_IsOK(ecode6)) {
34751 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34752 }
34753 arg6 = static_cast< wxHeaderSortIconType >(val6);
34754 }
34755 if (obj6) {
34756 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34757 if (!SWIG_IsOK(res7)) {
34758 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34759 }
34760 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34761 }
34762 {
34763 PyThreadState* __tstate = wxPyBeginAllowThreads();
34764 result = (int)(arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34765 wxPyEndAllowThreads(__tstate);
34766 if (PyErr_Occurred()) SWIG_fail;
34767 }
34768 resultobj = SWIG_From_int(static_cast< int >(result));
34769 return resultobj;
34770 fail:
34771 return NULL;
34772 }
34773
34774
34775 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34776 PyObject *resultobj = 0;
34777 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34778 wxWindow *arg2 = (wxWindow *) 0 ;
34779 int result;
34780 void *argp1 = 0 ;
34781 int res1 = 0 ;
34782 void *argp2 = 0 ;
34783 int res2 = 0 ;
34784 PyObject * obj0 = 0 ;
34785 PyObject * obj1 = 0 ;
34786 char * kwnames[] = {
34787 (char *) "self",(char *) "win", NULL
34788 };
34789
34790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34792 if (!SWIG_IsOK(res1)) {
34793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34794 }
34795 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34796 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34797 if (!SWIG_IsOK(res2)) {
34798 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34799 }
34800 arg2 = reinterpret_cast< wxWindow * >(argp2);
34801 {
34802 PyThreadState* __tstate = wxPyBeginAllowThreads();
34803 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34804 wxPyEndAllowThreads(__tstate);
34805 if (PyErr_Occurred()) SWIG_fail;
34806 }
34807 resultobj = SWIG_From_int(static_cast< int >(result));
34808 return resultobj;
34809 fail:
34810 return NULL;
34811 }
34812
34813
34814 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34815 PyObject *resultobj = 0;
34816 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34817 wxWindow *arg2 = (wxWindow *) 0 ;
34818 wxDC *arg3 = 0 ;
34819 wxRect *arg4 = 0 ;
34820 int arg5 = (int) 0 ;
34821 void *argp1 = 0 ;
34822 int res1 = 0 ;
34823 void *argp2 = 0 ;
34824 int res2 = 0 ;
34825 void *argp3 = 0 ;
34826 int res3 = 0 ;
34827 wxRect temp4 ;
34828 int val5 ;
34829 int ecode5 = 0 ;
34830 PyObject * obj0 = 0 ;
34831 PyObject * obj1 = 0 ;
34832 PyObject * obj2 = 0 ;
34833 PyObject * obj3 = 0 ;
34834 PyObject * obj4 = 0 ;
34835 char * kwnames[] = {
34836 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34837 };
34838
34839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34841 if (!SWIG_IsOK(res1)) {
34842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34843 }
34844 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34845 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34846 if (!SWIG_IsOK(res2)) {
34847 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34848 }
34849 arg2 = reinterpret_cast< wxWindow * >(argp2);
34850 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34851 if (!SWIG_IsOK(res3)) {
34852 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34853 }
34854 if (!argp3) {
34855 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34856 }
34857 arg3 = reinterpret_cast< wxDC * >(argp3);
34858 {
34859 arg4 = &temp4;
34860 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34861 }
34862 if (obj4) {
34863 ecode5 = SWIG_AsVal_int(obj4, &val5);
34864 if (!SWIG_IsOK(ecode5)) {
34865 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34866 }
34867 arg5 = static_cast< int >(val5);
34868 }
34869 {
34870 PyThreadState* __tstate = wxPyBeginAllowThreads();
34871 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34872 wxPyEndAllowThreads(__tstate);
34873 if (PyErr_Occurred()) SWIG_fail;
34874 }
34875 resultobj = SWIG_Py_Void();
34876 return resultobj;
34877 fail:
34878 return NULL;
34879 }
34880
34881
34882 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34883 PyObject *resultobj = 0;
34884 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34885 wxWindow *arg2 = (wxWindow *) 0 ;
34886 wxDC *arg3 = 0 ;
34887 wxRect *arg4 = 0 ;
34888 int arg5 = (int) 0 ;
34889 void *argp1 = 0 ;
34890 int res1 = 0 ;
34891 void *argp2 = 0 ;
34892 int res2 = 0 ;
34893 void *argp3 = 0 ;
34894 int res3 = 0 ;
34895 wxRect temp4 ;
34896 int val5 ;
34897 int ecode5 = 0 ;
34898 PyObject * obj0 = 0 ;
34899 PyObject * obj1 = 0 ;
34900 PyObject * obj2 = 0 ;
34901 PyObject * obj3 = 0 ;
34902 PyObject * obj4 = 0 ;
34903 char * kwnames[] = {
34904 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34905 };
34906
34907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34909 if (!SWIG_IsOK(res1)) {
34910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34911 }
34912 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34913 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34914 if (!SWIG_IsOK(res2)) {
34915 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34916 }
34917 arg2 = reinterpret_cast< wxWindow * >(argp2);
34918 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34919 if (!SWIG_IsOK(res3)) {
34920 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34921 }
34922 if (!argp3) {
34923 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34924 }
34925 arg3 = reinterpret_cast< wxDC * >(argp3);
34926 {
34927 arg4 = &temp4;
34928 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34929 }
34930 if (obj4) {
34931 ecode5 = SWIG_AsVal_int(obj4, &val5);
34932 if (!SWIG_IsOK(ecode5)) {
34933 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34934 }
34935 arg5 = static_cast< int >(val5);
34936 }
34937 {
34938 PyThreadState* __tstate = wxPyBeginAllowThreads();
34939 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34940 wxPyEndAllowThreads(__tstate);
34941 if (PyErr_Occurred()) SWIG_fail;
34942 }
34943 resultobj = SWIG_Py_Void();
34944 return resultobj;
34945 fail:
34946 return NULL;
34947 }
34948
34949
34950 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34951 PyObject *resultobj = 0;
34952 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34953 wxWindow *arg2 = (wxWindow *) 0 ;
34954 wxDC *arg3 = 0 ;
34955 wxSize *arg4 = 0 ;
34956 int arg5 ;
34957 wxOrientation arg6 ;
34958 int arg7 = (int) 0 ;
34959 void *argp1 = 0 ;
34960 int res1 = 0 ;
34961 void *argp2 = 0 ;
34962 int res2 = 0 ;
34963 void *argp3 = 0 ;
34964 int res3 = 0 ;
34965 wxSize temp4 ;
34966 int val5 ;
34967 int ecode5 = 0 ;
34968 int val6 ;
34969 int ecode6 = 0 ;
34970 int val7 ;
34971 int ecode7 = 0 ;
34972 PyObject * obj0 = 0 ;
34973 PyObject * obj1 = 0 ;
34974 PyObject * obj2 = 0 ;
34975 PyObject * obj3 = 0 ;
34976 PyObject * obj4 = 0 ;
34977 PyObject * obj5 = 0 ;
34978 PyObject * obj6 = 0 ;
34979 char * kwnames[] = {
34980 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34981 };
34982
34983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34985 if (!SWIG_IsOK(res1)) {
34986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34987 }
34988 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34989 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34990 if (!SWIG_IsOK(res2)) {
34991 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34992 }
34993 arg2 = reinterpret_cast< wxWindow * >(argp2);
34994 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34995 if (!SWIG_IsOK(res3)) {
34996 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34997 }
34998 if (!argp3) {
34999 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
35000 }
35001 arg3 = reinterpret_cast< wxDC * >(argp3);
35002 {
35003 arg4 = &temp4;
35004 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
35005 }
35006 ecode5 = SWIG_AsVal_int(obj4, &val5);
35007 if (!SWIG_IsOK(ecode5)) {
35008 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
35009 }
35010 arg5 = static_cast< int >(val5);
35011 ecode6 = SWIG_AsVal_int(obj5, &val6);
35012 if (!SWIG_IsOK(ecode6)) {
35013 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
35014 }
35015 arg6 = static_cast< wxOrientation >(val6);
35016 if (obj6) {
35017 ecode7 = SWIG_AsVal_int(obj6, &val7);
35018 if (!SWIG_IsOK(ecode7)) {
35019 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
35020 }
35021 arg7 = static_cast< int >(val7);
35022 }
35023 {
35024 PyThreadState* __tstate = wxPyBeginAllowThreads();
35025 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
35026 wxPyEndAllowThreads(__tstate);
35027 if (PyErr_Occurred()) SWIG_fail;
35028 }
35029 resultobj = SWIG_Py_Void();
35030 return resultobj;
35031 fail:
35032 return NULL;
35033 }
35034
35035
35036 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35037 PyObject *resultobj = 0;
35038 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35039 wxWindow *arg2 = (wxWindow *) 0 ;
35040 wxDC *arg3 = 0 ;
35041 wxRect *arg4 = 0 ;
35042 int arg5 = (int) 0 ;
35043 void *argp1 = 0 ;
35044 int res1 = 0 ;
35045 void *argp2 = 0 ;
35046 int res2 = 0 ;
35047 void *argp3 = 0 ;
35048 int res3 = 0 ;
35049 wxRect temp4 ;
35050 int val5 ;
35051 int ecode5 = 0 ;
35052 PyObject * obj0 = 0 ;
35053 PyObject * obj1 = 0 ;
35054 PyObject * obj2 = 0 ;
35055 PyObject * obj3 = 0 ;
35056 PyObject * obj4 = 0 ;
35057 char * kwnames[] = {
35058 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35059 };
35060
35061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35063 if (!SWIG_IsOK(res1)) {
35064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35065 }
35066 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35067 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35068 if (!SWIG_IsOK(res2)) {
35069 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35070 }
35071 arg2 = reinterpret_cast< wxWindow * >(argp2);
35072 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35073 if (!SWIG_IsOK(res3)) {
35074 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35075 }
35076 if (!argp3) {
35077 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35078 }
35079 arg3 = reinterpret_cast< wxDC * >(argp3);
35080 {
35081 arg4 = &temp4;
35082 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35083 }
35084 if (obj4) {
35085 ecode5 = SWIG_AsVal_int(obj4, &val5);
35086 if (!SWIG_IsOK(ecode5)) {
35087 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
35088 }
35089 arg5 = static_cast< int >(val5);
35090 }
35091 {
35092 PyThreadState* __tstate = wxPyBeginAllowThreads();
35093 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35094 wxPyEndAllowThreads(__tstate);
35095 if (PyErr_Occurred()) SWIG_fail;
35096 }
35097 resultobj = SWIG_Py_Void();
35098 return resultobj;
35099 fail:
35100 return NULL;
35101 }
35102
35103
35104 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35105 PyObject *resultobj = 0;
35106 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35107 wxWindow *arg2 = (wxWindow *) 0 ;
35108 wxDC *arg3 = 0 ;
35109 wxRect *arg4 = 0 ;
35110 int arg5 = (int) 0 ;
35111 void *argp1 = 0 ;
35112 int res1 = 0 ;
35113 void *argp2 = 0 ;
35114 int res2 = 0 ;
35115 void *argp3 = 0 ;
35116 int res3 = 0 ;
35117 wxRect temp4 ;
35118 int val5 ;
35119 int ecode5 = 0 ;
35120 PyObject * obj0 = 0 ;
35121 PyObject * obj1 = 0 ;
35122 PyObject * obj2 = 0 ;
35123 PyObject * obj3 = 0 ;
35124 PyObject * obj4 = 0 ;
35125 char * kwnames[] = {
35126 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35127 };
35128
35129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35131 if (!SWIG_IsOK(res1)) {
35132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35133 }
35134 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35135 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35136 if (!SWIG_IsOK(res2)) {
35137 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
35138 }
35139 arg2 = reinterpret_cast< wxWindow * >(argp2);
35140 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35141 if (!SWIG_IsOK(res3)) {
35142 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35143 }
35144 if (!argp3) {
35145 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35146 }
35147 arg3 = reinterpret_cast< wxDC * >(argp3);
35148 {
35149 arg4 = &temp4;
35150 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35151 }
35152 if (obj4) {
35153 ecode5 = SWIG_AsVal_int(obj4, &val5);
35154 if (!SWIG_IsOK(ecode5)) {
35155 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
35156 }
35157 arg5 = static_cast< int >(val5);
35158 }
35159 {
35160 PyThreadState* __tstate = wxPyBeginAllowThreads();
35161 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
35162 wxPyEndAllowThreads(__tstate);
35163 if (PyErr_Occurred()) SWIG_fail;
35164 }
35165 resultobj = SWIG_Py_Void();
35166 return resultobj;
35167 fail:
35168 return NULL;
35169 }
35170
35171
35172 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35173 PyObject *resultobj = 0;
35174 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35175 wxWindow *arg2 = (wxWindow *) 0 ;
35176 wxDC *arg3 = 0 ;
35177 wxRect *arg4 = 0 ;
35178 int arg5 = (int) 0 ;
35179 void *argp1 = 0 ;
35180 int res1 = 0 ;
35181 void *argp2 = 0 ;
35182 int res2 = 0 ;
35183 void *argp3 = 0 ;
35184 int res3 = 0 ;
35185 wxRect temp4 ;
35186 int val5 ;
35187 int ecode5 = 0 ;
35188 PyObject * obj0 = 0 ;
35189 PyObject * obj1 = 0 ;
35190 PyObject * obj2 = 0 ;
35191 PyObject * obj3 = 0 ;
35192 PyObject * obj4 = 0 ;
35193 char * kwnames[] = {
35194 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35195 };
35196
35197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35199 if (!SWIG_IsOK(res1)) {
35200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35201 }
35202 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35203 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35204 if (!SWIG_IsOK(res2)) {
35205 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
35206 }
35207 arg2 = reinterpret_cast< wxWindow * >(argp2);
35208 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35209 if (!SWIG_IsOK(res3)) {
35210 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35211 }
35212 if (!argp3) {
35213 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35214 }
35215 arg3 = reinterpret_cast< wxDC * >(argp3);
35216 {
35217 arg4 = &temp4;
35218 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35219 }
35220 if (obj4) {
35221 ecode5 = SWIG_AsVal_int(obj4, &val5);
35222 if (!SWIG_IsOK(ecode5)) {
35223 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
35224 }
35225 arg5 = static_cast< int >(val5);
35226 }
35227 {
35228 PyThreadState* __tstate = wxPyBeginAllowThreads();
35229 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
35230 wxPyEndAllowThreads(__tstate);
35231 if (PyErr_Occurred()) SWIG_fail;
35232 }
35233 resultobj = SWIG_Py_Void();
35234 return resultobj;
35235 fail:
35236 return NULL;
35237 }
35238
35239
35240 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35241 PyObject *resultobj = 0;
35242 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35243 wxWindow *arg2 = (wxWindow *) 0 ;
35244 wxDC *arg3 = 0 ;
35245 wxRect *arg4 = 0 ;
35246 int arg5 = (int) 0 ;
35247 void *argp1 = 0 ;
35248 int res1 = 0 ;
35249 void *argp2 = 0 ;
35250 int res2 = 0 ;
35251 void *argp3 = 0 ;
35252 int res3 = 0 ;
35253 wxRect temp4 ;
35254 int val5 ;
35255 int ecode5 = 0 ;
35256 PyObject * obj0 = 0 ;
35257 PyObject * obj1 = 0 ;
35258 PyObject * obj2 = 0 ;
35259 PyObject * obj3 = 0 ;
35260 PyObject * obj4 = 0 ;
35261 char * kwnames[] = {
35262 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35263 };
35264
35265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35267 if (!SWIG_IsOK(res1)) {
35268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35269 }
35270 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35271 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35272 if (!SWIG_IsOK(res2)) {
35273 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35274 }
35275 arg2 = reinterpret_cast< wxWindow * >(argp2);
35276 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35277 if (!SWIG_IsOK(res3)) {
35278 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35279 }
35280 if (!argp3) {
35281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35282 }
35283 arg3 = reinterpret_cast< wxDC * >(argp3);
35284 {
35285 arg4 = &temp4;
35286 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35287 }
35288 if (obj4) {
35289 ecode5 = SWIG_AsVal_int(obj4, &val5);
35290 if (!SWIG_IsOK(ecode5)) {
35291 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
35292 }
35293 arg5 = static_cast< int >(val5);
35294 }
35295 {
35296 PyThreadState* __tstate = wxPyBeginAllowThreads();
35297 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35298 wxPyEndAllowThreads(__tstate);
35299 if (PyErr_Occurred()) SWIG_fail;
35300 }
35301 resultobj = SWIG_Py_Void();
35302 return resultobj;
35303 fail:
35304 return NULL;
35305 }
35306
35307
35308 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35309 PyObject *resultobj = 0;
35310 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35311 wxWindow *arg2 = (wxWindow *) 0 ;
35312 wxDC *arg3 = 0 ;
35313 wxRect *arg4 = 0 ;
35314 int arg5 = (int) 0 ;
35315 void *argp1 = 0 ;
35316 int res1 = 0 ;
35317 void *argp2 = 0 ;
35318 int res2 = 0 ;
35319 void *argp3 = 0 ;
35320 int res3 = 0 ;
35321 wxRect temp4 ;
35322 int val5 ;
35323 int ecode5 = 0 ;
35324 PyObject * obj0 = 0 ;
35325 PyObject * obj1 = 0 ;
35326 PyObject * obj2 = 0 ;
35327 PyObject * obj3 = 0 ;
35328 PyObject * obj4 = 0 ;
35329 char * kwnames[] = {
35330 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35331 };
35332
35333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35335 if (!SWIG_IsOK(res1)) {
35336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35337 }
35338 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35339 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35340 if (!SWIG_IsOK(res2)) {
35341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
35342 }
35343 arg2 = reinterpret_cast< wxWindow * >(argp2);
35344 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35345 if (!SWIG_IsOK(res3)) {
35346 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35347 }
35348 if (!argp3) {
35349 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35350 }
35351 arg3 = reinterpret_cast< wxDC * >(argp3);
35352 {
35353 arg4 = &temp4;
35354 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35355 }
35356 if (obj4) {
35357 ecode5 = SWIG_AsVal_int(obj4, &val5);
35358 if (!SWIG_IsOK(ecode5)) {
35359 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
35360 }
35361 arg5 = static_cast< int >(val5);
35362 }
35363 {
35364 PyThreadState* __tstate = wxPyBeginAllowThreads();
35365 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
35366 wxPyEndAllowThreads(__tstate);
35367 if (PyErr_Occurred()) SWIG_fail;
35368 }
35369 resultobj = SWIG_Py_Void();
35370 return resultobj;
35371 fail:
35372 return NULL;
35373 }
35374
35375
35376 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35377 PyObject *resultobj = 0;
35378 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35379 wxWindow *arg2 = (wxWindow *) 0 ;
35380 SwigValueWrapper<wxSplitterRenderParams > result;
35381 void *argp1 = 0 ;
35382 int res1 = 0 ;
35383 void *argp2 = 0 ;
35384 int res2 = 0 ;
35385 PyObject * obj0 = 0 ;
35386 PyObject * obj1 = 0 ;
35387 char * kwnames[] = {
35388 (char *) "self",(char *) "win", NULL
35389 };
35390
35391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
35392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35393 if (!SWIG_IsOK(res1)) {
35394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35395 }
35396 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35397 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35398 if (!SWIG_IsOK(res2)) {
35399 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
35400 }
35401 arg2 = reinterpret_cast< wxWindow * >(argp2);
35402 {
35403 PyThreadState* __tstate = wxPyBeginAllowThreads();
35404 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
35405 wxPyEndAllowThreads(__tstate);
35406 if (PyErr_Occurred()) SWIG_fail;
35407 }
35408 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
35409 return resultobj;
35410 fail:
35411 return NULL;
35412 }
35413
35414
35415 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35416 PyObject *resultobj = 0;
35417 wxRendererNative *result = 0 ;
35418
35419 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
35420 {
35421 if (!wxPyCheckForApp()) SWIG_fail;
35422 PyThreadState* __tstate = wxPyBeginAllowThreads();
35423 {
35424 wxRendererNative &_result_ref = wxRendererNative::Get();
35425 result = (wxRendererNative *) &_result_ref;
35426 }
35427 wxPyEndAllowThreads(__tstate);
35428 if (PyErr_Occurred()) SWIG_fail;
35429 }
35430 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35431 return resultobj;
35432 fail:
35433 return NULL;
35434 }
35435
35436
35437 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35438 PyObject *resultobj = 0;
35439 wxRendererNative *result = 0 ;
35440
35441 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
35442 {
35443 if (!wxPyCheckForApp()) SWIG_fail;
35444 PyThreadState* __tstate = wxPyBeginAllowThreads();
35445 {
35446 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
35447 result = (wxRendererNative *) &_result_ref;
35448 }
35449 wxPyEndAllowThreads(__tstate);
35450 if (PyErr_Occurred()) SWIG_fail;
35451 }
35452 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35453 return resultobj;
35454 fail:
35455 return NULL;
35456 }
35457
35458
35459 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35460 PyObject *resultobj = 0;
35461 wxRendererNative *result = 0 ;
35462
35463 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
35464 {
35465 if (!wxPyCheckForApp()) SWIG_fail;
35466 PyThreadState* __tstate = wxPyBeginAllowThreads();
35467 {
35468 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
35469 result = (wxRendererNative *) &_result_ref;
35470 }
35471 wxPyEndAllowThreads(__tstate);
35472 if (PyErr_Occurred()) SWIG_fail;
35473 }
35474 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35475 return resultobj;
35476 fail:
35477 return NULL;
35478 }
35479
35480
35481 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35482 PyObject *resultobj = 0;
35483 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35484 wxRendererNative *result = 0 ;
35485 void *argp1 = 0 ;
35486 int res1 = 0 ;
35487 PyObject * obj0 = 0 ;
35488 char * kwnames[] = {
35489 (char *) "renderer", NULL
35490 };
35491
35492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
35493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35494 if (!SWIG_IsOK(res1)) {
35495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35496 }
35497 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35498 {
35499 if (!wxPyCheckForApp()) SWIG_fail;
35500 PyThreadState* __tstate = wxPyBeginAllowThreads();
35501 result = (wxRendererNative *)wxRendererNative::Set(arg1);
35502 wxPyEndAllowThreads(__tstate);
35503 if (PyErr_Occurred()) SWIG_fail;
35504 }
35505 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35506 return resultobj;
35507 fail:
35508 return NULL;
35509 }
35510
35511
35512 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35513 PyObject *resultobj = 0;
35514 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35515 SwigValueWrapper<wxRendererVersion > result;
35516 void *argp1 = 0 ;
35517 int res1 = 0 ;
35518 PyObject *swig_obj[1] ;
35519
35520 if (!args) SWIG_fail;
35521 swig_obj[0] = args;
35522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35523 if (!SWIG_IsOK(res1)) {
35524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
35525 }
35526 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35527 {
35528 PyThreadState* __tstate = wxPyBeginAllowThreads();
35529 result = ((wxRendererNative const *)arg1)->GetVersion();
35530 wxPyEndAllowThreads(__tstate);
35531 if (PyErr_Occurred()) SWIG_fail;
35532 }
35533 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
35534 return resultobj;
35535 fail:
35536 return NULL;
35537 }
35538
35539
35540 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35541 PyObject *obj;
35542 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35543 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
35544 return SWIG_Py_Void();
35545 }
35546
35547 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35548 PyObject *resultobj = 0;
35549 wxPseudoDC *result = 0 ;
35550
35551 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
35552 {
35553 PyThreadState* __tstate = wxPyBeginAllowThreads();
35554 result = (wxPseudoDC *)new wxPseudoDC();
35555 wxPyEndAllowThreads(__tstate);
35556 if (PyErr_Occurred()) SWIG_fail;
35557 }
35558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
35559 return resultobj;
35560 fail:
35561 return NULL;
35562 }
35563
35564
35565 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35566 PyObject *resultobj = 0;
35567 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35568 void *argp1 = 0 ;
35569 int res1 = 0 ;
35570 PyObject *swig_obj[1] ;
35571
35572 if (!args) SWIG_fail;
35573 swig_obj[0] = args;
35574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35575 if (!SWIG_IsOK(res1)) {
35576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35577 }
35578 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35579 {
35580 PyThreadState* __tstate = wxPyBeginAllowThreads();
35581 (arg1)->BeginDrawing();
35582 wxPyEndAllowThreads(__tstate);
35583 if (PyErr_Occurred()) SWIG_fail;
35584 }
35585 resultobj = SWIG_Py_Void();
35586 return resultobj;
35587 fail:
35588 return NULL;
35589 }
35590
35591
35592 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35593 PyObject *resultobj = 0;
35594 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35595 void *argp1 = 0 ;
35596 int res1 = 0 ;
35597 PyObject *swig_obj[1] ;
35598
35599 if (!args) SWIG_fail;
35600 swig_obj[0] = args;
35601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35602 if (!SWIG_IsOK(res1)) {
35603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35604 }
35605 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35606 {
35607 PyThreadState* __tstate = wxPyBeginAllowThreads();
35608 (arg1)->EndDrawing();
35609 wxPyEndAllowThreads(__tstate);
35610 if (PyErr_Occurred()) SWIG_fail;
35611 }
35612 resultobj = SWIG_Py_Void();
35613 return resultobj;
35614 fail:
35615 return NULL;
35616 }
35617
35618
35619 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35620 PyObject *resultobj = 0;
35621 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35622 void *argp1 = 0 ;
35623 int res1 = 0 ;
35624 PyObject *swig_obj[1] ;
35625
35626 if (!args) SWIG_fail;
35627 swig_obj[0] = args;
35628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35629 if (!SWIG_IsOK(res1)) {
35630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35631 }
35632 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35633 {
35634 PyThreadState* __tstate = wxPyBeginAllowThreads();
35635 delete arg1;
35636
35637 wxPyEndAllowThreads(__tstate);
35638 if (PyErr_Occurred()) SWIG_fail;
35639 }
35640 resultobj = SWIG_Py_Void();
35641 return resultobj;
35642 fail:
35643 return NULL;
35644 }
35645
35646
35647 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35648 PyObject *resultobj = 0;
35649 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35650 void *argp1 = 0 ;
35651 int res1 = 0 ;
35652 PyObject *swig_obj[1] ;
35653
35654 if (!args) SWIG_fail;
35655 swig_obj[0] = args;
35656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35657 if (!SWIG_IsOK(res1)) {
35658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35659 }
35660 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35661 {
35662 PyThreadState* __tstate = wxPyBeginAllowThreads();
35663 (arg1)->RemoveAll();
35664 wxPyEndAllowThreads(__tstate);
35665 if (PyErr_Occurred()) SWIG_fail;
35666 }
35667 resultobj = SWIG_Py_Void();
35668 return resultobj;
35669 fail:
35670 return NULL;
35671 }
35672
35673
35674 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35675 PyObject *resultobj = 0;
35676 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35677 int result;
35678 void *argp1 = 0 ;
35679 int res1 = 0 ;
35680 PyObject *swig_obj[1] ;
35681
35682 if (!args) SWIG_fail;
35683 swig_obj[0] = args;
35684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35685 if (!SWIG_IsOK(res1)) {
35686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35687 }
35688 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35689 {
35690 PyThreadState* __tstate = wxPyBeginAllowThreads();
35691 result = (int)(arg1)->GetLen();
35692 wxPyEndAllowThreads(__tstate);
35693 if (PyErr_Occurred()) SWIG_fail;
35694 }
35695 resultobj = SWIG_From_int(static_cast< int >(result));
35696 return resultobj;
35697 fail:
35698 return NULL;
35699 }
35700
35701
35702 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35703 PyObject *resultobj = 0;
35704 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35705 int arg2 ;
35706 void *argp1 = 0 ;
35707 int res1 = 0 ;
35708 int val2 ;
35709 int ecode2 = 0 ;
35710 PyObject * obj0 = 0 ;
35711 PyObject * obj1 = 0 ;
35712 char * kwnames[] = {
35713 (char *) "self",(char *) "id", NULL
35714 };
35715
35716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35718 if (!SWIG_IsOK(res1)) {
35719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35720 }
35721 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35722 ecode2 = SWIG_AsVal_int(obj1, &val2);
35723 if (!SWIG_IsOK(ecode2)) {
35724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35725 }
35726 arg2 = static_cast< int >(val2);
35727 {
35728 PyThreadState* __tstate = wxPyBeginAllowThreads();
35729 (arg1)->SetId(arg2);
35730 wxPyEndAllowThreads(__tstate);
35731 if (PyErr_Occurred()) SWIG_fail;
35732 }
35733 resultobj = SWIG_Py_Void();
35734 return resultobj;
35735 fail:
35736 return NULL;
35737 }
35738
35739
35740 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35741 PyObject *resultobj = 0;
35742 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35743 int arg2 ;
35744 void *argp1 = 0 ;
35745 int res1 = 0 ;
35746 int val2 ;
35747 int ecode2 = 0 ;
35748 PyObject * obj0 = 0 ;
35749 PyObject * obj1 = 0 ;
35750 char * kwnames[] = {
35751 (char *) "self",(char *) "id", NULL
35752 };
35753
35754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35756 if (!SWIG_IsOK(res1)) {
35757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35758 }
35759 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35760 ecode2 = SWIG_AsVal_int(obj1, &val2);
35761 if (!SWIG_IsOK(ecode2)) {
35762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35763 }
35764 arg2 = static_cast< int >(val2);
35765 {
35766 PyThreadState* __tstate = wxPyBeginAllowThreads();
35767 (arg1)->ClearId(arg2);
35768 wxPyEndAllowThreads(__tstate);
35769 if (PyErr_Occurred()) SWIG_fail;
35770 }
35771 resultobj = SWIG_Py_Void();
35772 return resultobj;
35773 fail:
35774 return NULL;
35775 }
35776
35777
35778 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35779 PyObject *resultobj = 0;
35780 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35781 int arg2 ;
35782 void *argp1 = 0 ;
35783 int res1 = 0 ;
35784 int val2 ;
35785 int ecode2 = 0 ;
35786 PyObject * obj0 = 0 ;
35787 PyObject * obj1 = 0 ;
35788 char * kwnames[] = {
35789 (char *) "self",(char *) "id", NULL
35790 };
35791
35792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35794 if (!SWIG_IsOK(res1)) {
35795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35796 }
35797 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35798 ecode2 = SWIG_AsVal_int(obj1, &val2);
35799 if (!SWIG_IsOK(ecode2)) {
35800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35801 }
35802 arg2 = static_cast< int >(val2);
35803 {
35804 PyThreadState* __tstate = wxPyBeginAllowThreads();
35805 (arg1)->RemoveId(arg2);
35806 wxPyEndAllowThreads(__tstate);
35807 if (PyErr_Occurred()) SWIG_fail;
35808 }
35809 resultobj = SWIG_Py_Void();
35810 return resultobj;
35811 fail:
35812 return NULL;
35813 }
35814
35815
35816 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35817 PyObject *resultobj = 0;
35818 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35819 int arg2 ;
35820 int arg3 ;
35821 int arg4 ;
35822 void *argp1 = 0 ;
35823 int res1 = 0 ;
35824 int val2 ;
35825 int ecode2 = 0 ;
35826 int val3 ;
35827 int ecode3 = 0 ;
35828 int val4 ;
35829 int ecode4 = 0 ;
35830 PyObject * obj0 = 0 ;
35831 PyObject * obj1 = 0 ;
35832 PyObject * obj2 = 0 ;
35833 PyObject * obj3 = 0 ;
35834 char * kwnames[] = {
35835 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35836 };
35837
35838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35840 if (!SWIG_IsOK(res1)) {
35841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35842 }
35843 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35844 ecode2 = SWIG_AsVal_int(obj1, &val2);
35845 if (!SWIG_IsOK(ecode2)) {
35846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35847 }
35848 arg2 = static_cast< int >(val2);
35849 ecode3 = SWIG_AsVal_int(obj2, &val3);
35850 if (!SWIG_IsOK(ecode3)) {
35851 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35852 }
35853 arg3 = static_cast< int >(val3);
35854 ecode4 = SWIG_AsVal_int(obj3, &val4);
35855 if (!SWIG_IsOK(ecode4)) {
35856 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35857 }
35858 arg4 = static_cast< int >(val4);
35859 {
35860 PyThreadState* __tstate = wxPyBeginAllowThreads();
35861 (arg1)->TranslateId(arg2,arg3,arg4);
35862 wxPyEndAllowThreads(__tstate);
35863 if (PyErr_Occurred()) SWIG_fail;
35864 }
35865 resultobj = SWIG_Py_Void();
35866 return resultobj;
35867 fail:
35868 return NULL;
35869 }
35870
35871
35872 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35873 PyObject *resultobj = 0;
35874 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35875 int arg2 ;
35876 bool arg3 = (bool) true ;
35877 void *argp1 = 0 ;
35878 int res1 = 0 ;
35879 int val2 ;
35880 int ecode2 = 0 ;
35881 bool val3 ;
35882 int ecode3 = 0 ;
35883 PyObject * obj0 = 0 ;
35884 PyObject * obj1 = 0 ;
35885 PyObject * obj2 = 0 ;
35886 char * kwnames[] = {
35887 (char *) "self",(char *) "id",(char *) "greyout", NULL
35888 };
35889
35890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35892 if (!SWIG_IsOK(res1)) {
35893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35894 }
35895 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35896 ecode2 = SWIG_AsVal_int(obj1, &val2);
35897 if (!SWIG_IsOK(ecode2)) {
35898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35899 }
35900 arg2 = static_cast< int >(val2);
35901 if (obj2) {
35902 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35903 if (!SWIG_IsOK(ecode3)) {
35904 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35905 }
35906 arg3 = static_cast< bool >(val3);
35907 }
35908 {
35909 PyThreadState* __tstate = wxPyBeginAllowThreads();
35910 (arg1)->SetIdGreyedOut(arg2,arg3);
35911 wxPyEndAllowThreads(__tstate);
35912 if (PyErr_Occurred()) SWIG_fail;
35913 }
35914 resultobj = SWIG_Py_Void();
35915 return resultobj;
35916 fail:
35917 return NULL;
35918 }
35919
35920
35921 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35922 PyObject *resultobj = 0;
35923 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35924 int arg2 ;
35925 bool result;
35926 void *argp1 = 0 ;
35927 int res1 = 0 ;
35928 int val2 ;
35929 int ecode2 = 0 ;
35930 PyObject * obj0 = 0 ;
35931 PyObject * obj1 = 0 ;
35932 char * kwnames[] = {
35933 (char *) "self",(char *) "id", NULL
35934 };
35935
35936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35938 if (!SWIG_IsOK(res1)) {
35939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35940 }
35941 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35942 ecode2 = SWIG_AsVal_int(obj1, &val2);
35943 if (!SWIG_IsOK(ecode2)) {
35944 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35945 }
35946 arg2 = static_cast< int >(val2);
35947 {
35948 PyThreadState* __tstate = wxPyBeginAllowThreads();
35949 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35950 wxPyEndAllowThreads(__tstate);
35951 if (PyErr_Occurred()) SWIG_fail;
35952 }
35953 {
35954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35955 }
35956 return resultobj;
35957 fail:
35958 return NULL;
35959 }
35960
35961
35962 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35963 PyObject *resultobj = 0;
35964 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35965 int arg2 ;
35966 int arg3 ;
35967 int arg4 = (int) 1 ;
35968 wxColour const &arg5_defvalue = *wxWHITE ;
35969 wxColour *arg5 = (wxColour *) &arg5_defvalue ;
35970 PyObject *result = 0 ;
35971 void *argp1 = 0 ;
35972 int res1 = 0 ;
35973 int val2 ;
35974 int ecode2 = 0 ;
35975 int val3 ;
35976 int ecode3 = 0 ;
35977 int val4 ;
35978 int ecode4 = 0 ;
35979 wxColour temp5 ;
35980 PyObject * obj0 = 0 ;
35981 PyObject * obj1 = 0 ;
35982 PyObject * obj2 = 0 ;
35983 PyObject * obj3 = 0 ;
35984 PyObject * obj4 = 0 ;
35985 char * kwnames[] = {
35986 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35987 };
35988
35989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35991 if (!SWIG_IsOK(res1)) {
35992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35993 }
35994 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35995 ecode2 = SWIG_AsVal_int(obj1, &val2);
35996 if (!SWIG_IsOK(ecode2)) {
35997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35998 }
35999 arg2 = static_cast< int >(val2);
36000 ecode3 = SWIG_AsVal_int(obj2, &val3);
36001 if (!SWIG_IsOK(ecode3)) {
36002 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
36003 }
36004 arg3 = static_cast< int >(val3);
36005 if (obj3) {
36006 ecode4 = SWIG_AsVal_int(obj3, &val4);
36007 if (!SWIG_IsOK(ecode4)) {
36008 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
36009 }
36010 arg4 = static_cast< int >(val4);
36011 }
36012 if (obj4) {
36013 {
36014 arg5 = &temp5;
36015 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
36016 }
36017 }
36018 {
36019 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColour const &)*arg5);
36020 if (PyErr_Occurred()) SWIG_fail;
36021 }
36022 resultobj = result;
36023 return resultobj;
36024 fail:
36025 return NULL;
36026 }
36027
36028
36029 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36030 PyObject *resultobj = 0;
36031 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36032 int arg2 ;
36033 int arg3 ;
36034 PyObject *result = 0 ;
36035 void *argp1 = 0 ;
36036 int res1 = 0 ;
36037 int val2 ;
36038 int ecode2 = 0 ;
36039 int val3 ;
36040 int ecode3 = 0 ;
36041 PyObject * obj0 = 0 ;
36042 PyObject * obj1 = 0 ;
36043 PyObject * obj2 = 0 ;
36044 char * kwnames[] = {
36045 (char *) "self",(char *) "x",(char *) "y", NULL
36046 };
36047
36048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36050 if (!SWIG_IsOK(res1)) {
36051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36052 }
36053 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36054 ecode2 = SWIG_AsVal_int(obj1, &val2);
36055 if (!SWIG_IsOK(ecode2)) {
36056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
36057 }
36058 arg2 = static_cast< int >(val2);
36059 ecode3 = SWIG_AsVal_int(obj2, &val3);
36060 if (!SWIG_IsOK(ecode3)) {
36061 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
36062 }
36063 arg3 = static_cast< int >(val3);
36064 {
36065 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
36066 if (PyErr_Occurred()) SWIG_fail;
36067 }
36068 resultobj = result;
36069 return resultobj;
36070 fail:
36071 return NULL;
36072 }
36073
36074
36075 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36076 PyObject *resultobj = 0;
36077 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36078 int arg2 ;
36079 wxDC *arg3 = (wxDC *) 0 ;
36080 void *argp1 = 0 ;
36081 int res1 = 0 ;
36082 int val2 ;
36083 int ecode2 = 0 ;
36084 void *argp3 = 0 ;
36085 int res3 = 0 ;
36086 PyObject * obj0 = 0 ;
36087 PyObject * obj1 = 0 ;
36088 PyObject * obj2 = 0 ;
36089 char * kwnames[] = {
36090 (char *) "self",(char *) "id",(char *) "dc", NULL
36091 };
36092
36093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36095 if (!SWIG_IsOK(res1)) {
36096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36097 }
36098 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36099 ecode2 = SWIG_AsVal_int(obj1, &val2);
36100 if (!SWIG_IsOK(ecode2)) {
36101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
36102 }
36103 arg2 = static_cast< int >(val2);
36104 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
36105 if (!SWIG_IsOK(res3)) {
36106 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
36107 }
36108 arg3 = reinterpret_cast< wxDC * >(argp3);
36109 {
36110 PyThreadState* __tstate = wxPyBeginAllowThreads();
36111 (arg1)->DrawIdToDC(arg2,arg3);
36112 wxPyEndAllowThreads(__tstate);
36113 if (PyErr_Occurred()) SWIG_fail;
36114 }
36115 resultobj = SWIG_Py_Void();
36116 return resultobj;
36117 fail:
36118 return NULL;
36119 }
36120
36121
36122 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36123 PyObject *resultobj = 0;
36124 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36125 int arg2 ;
36126 wxRect *arg3 = 0 ;
36127 void *argp1 = 0 ;
36128 int res1 = 0 ;
36129 int val2 ;
36130 int ecode2 = 0 ;
36131 wxRect temp3 ;
36132 PyObject * obj0 = 0 ;
36133 PyObject * obj1 = 0 ;
36134 PyObject * obj2 = 0 ;
36135 char * kwnames[] = {
36136 (char *) "self",(char *) "id",(char *) "rect", NULL
36137 };
36138
36139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36141 if (!SWIG_IsOK(res1)) {
36142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36143 }
36144 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36145 ecode2 = SWIG_AsVal_int(obj1, &val2);
36146 if (!SWIG_IsOK(ecode2)) {
36147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
36148 }
36149 arg2 = static_cast< int >(val2);
36150 {
36151 arg3 = &temp3;
36152 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36153 }
36154 {
36155 PyThreadState* __tstate = wxPyBeginAllowThreads();
36156 (arg1)->SetIdBounds(arg2,*arg3);
36157 wxPyEndAllowThreads(__tstate);
36158 if (PyErr_Occurred()) SWIG_fail;
36159 }
36160 resultobj = SWIG_Py_Void();
36161 return resultobj;
36162 fail:
36163 return NULL;
36164 }
36165
36166
36167 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36168 PyObject *resultobj = 0;
36169 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36170 int arg2 ;
36171 wxRect result;
36172 void *argp1 = 0 ;
36173 int res1 = 0 ;
36174 int val2 ;
36175 int ecode2 = 0 ;
36176 PyObject * obj0 = 0 ;
36177 PyObject * obj1 = 0 ;
36178 char * kwnames[] = {
36179 (char *) "self",(char *) "id", NULL
36180 };
36181
36182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
36183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36184 if (!SWIG_IsOK(res1)) {
36185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36186 }
36187 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36188 ecode2 = SWIG_AsVal_int(obj1, &val2);
36189 if (!SWIG_IsOK(ecode2)) {
36190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
36191 }
36192 arg2 = static_cast< int >(val2);
36193 {
36194 PyThreadState* __tstate = wxPyBeginAllowThreads();
36195 result = wxPseudoDC_GetIdBounds(arg1,arg2);
36196 wxPyEndAllowThreads(__tstate);
36197 if (PyErr_Occurred()) SWIG_fail;
36198 }
36199 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
36200 return resultobj;
36201 fail:
36202 return NULL;
36203 }
36204
36205
36206 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36207 PyObject *resultobj = 0;
36208 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36209 wxDC *arg2 = (wxDC *) 0 ;
36210 wxRect *arg3 = 0 ;
36211 void *argp1 = 0 ;
36212 int res1 = 0 ;
36213 void *argp2 = 0 ;
36214 int res2 = 0 ;
36215 wxRect temp3 ;
36216 PyObject * obj0 = 0 ;
36217 PyObject * obj1 = 0 ;
36218 PyObject * obj2 = 0 ;
36219 char * kwnames[] = {
36220 (char *) "self",(char *) "dc",(char *) "rect", NULL
36221 };
36222
36223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36225 if (!SWIG_IsOK(res1)) {
36226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36227 }
36228 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36229 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36230 if (!SWIG_IsOK(res2)) {
36231 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
36232 }
36233 arg2 = reinterpret_cast< wxDC * >(argp2);
36234 {
36235 arg3 = &temp3;
36236 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36237 }
36238 {
36239 PyThreadState* __tstate = wxPyBeginAllowThreads();
36240 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
36241 wxPyEndAllowThreads(__tstate);
36242 if (PyErr_Occurred()) SWIG_fail;
36243 }
36244 resultobj = SWIG_Py_Void();
36245 return resultobj;
36246 fail:
36247 return NULL;
36248 }
36249
36250
36251 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36252 PyObject *resultobj = 0;
36253 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36254 wxDC *arg2 = (wxDC *) 0 ;
36255 wxRegion *arg3 = 0 ;
36256 void *argp1 = 0 ;
36257 int res1 = 0 ;
36258 void *argp2 = 0 ;
36259 int res2 = 0 ;
36260 void *argp3 = 0 ;
36261 int res3 = 0 ;
36262 PyObject * obj0 = 0 ;
36263 PyObject * obj1 = 0 ;
36264 PyObject * obj2 = 0 ;
36265 char * kwnames[] = {
36266 (char *) "self",(char *) "dc",(char *) "region", NULL
36267 };
36268
36269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36271 if (!SWIG_IsOK(res1)) {
36272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36273 }
36274 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36275 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36276 if (!SWIG_IsOK(res2)) {
36277 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
36278 }
36279 arg2 = reinterpret_cast< wxDC * >(argp2);
36280 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
36281 if (!SWIG_IsOK(res3)) {
36282 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36283 }
36284 if (!argp3) {
36285 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36286 }
36287 arg3 = reinterpret_cast< wxRegion * >(argp3);
36288 {
36289 PyThreadState* __tstate = wxPyBeginAllowThreads();
36290 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
36291 wxPyEndAllowThreads(__tstate);
36292 if (PyErr_Occurred()) SWIG_fail;
36293 }
36294 resultobj = SWIG_Py_Void();
36295 return resultobj;
36296 fail:
36297 return NULL;
36298 }
36299
36300
36301 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36302 PyObject *resultobj = 0;
36303 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36304 wxDC *arg2 = (wxDC *) 0 ;
36305 void *argp1 = 0 ;
36306 int res1 = 0 ;
36307 void *argp2 = 0 ;
36308 int res2 = 0 ;
36309 PyObject * obj0 = 0 ;
36310 PyObject * obj1 = 0 ;
36311 char * kwnames[] = {
36312 (char *) "self",(char *) "dc", NULL
36313 };
36314
36315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
36316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36317 if (!SWIG_IsOK(res1)) {
36318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36319 }
36320 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36321 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36322 if (!SWIG_IsOK(res2)) {
36323 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
36324 }
36325 arg2 = reinterpret_cast< wxDC * >(argp2);
36326 {
36327 PyThreadState* __tstate = wxPyBeginAllowThreads();
36328 (arg1)->DrawToDC(arg2);
36329 wxPyEndAllowThreads(__tstate);
36330 if (PyErr_Occurred()) SWIG_fail;
36331 }
36332 resultobj = SWIG_Py_Void();
36333 return resultobj;
36334 fail:
36335 return NULL;
36336 }
36337
36338
36339 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36340 PyObject *resultobj = 0;
36341 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36342 int arg2 ;
36343 int arg3 ;
36344 wxColour *arg4 = 0 ;
36345 int arg5 = (int) wxFLOOD_SURFACE ;
36346 void *argp1 = 0 ;
36347 int res1 = 0 ;
36348 int val2 ;
36349 int ecode2 = 0 ;
36350 int val3 ;
36351 int ecode3 = 0 ;
36352 wxColour temp4 ;
36353 int val5 ;
36354 int ecode5 = 0 ;
36355 PyObject * obj0 = 0 ;
36356 PyObject * obj1 = 0 ;
36357 PyObject * obj2 = 0 ;
36358 PyObject * obj3 = 0 ;
36359 PyObject * obj4 = 0 ;
36360 char * kwnames[] = {
36361 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
36362 };
36363
36364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36366 if (!SWIG_IsOK(res1)) {
36367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36368 }
36369 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36370 ecode2 = SWIG_AsVal_int(obj1, &val2);
36371 if (!SWIG_IsOK(ecode2)) {
36372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
36373 }
36374 arg2 = static_cast< int >(val2);
36375 ecode3 = SWIG_AsVal_int(obj2, &val3);
36376 if (!SWIG_IsOK(ecode3)) {
36377 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
36378 }
36379 arg3 = static_cast< int >(val3);
36380 {
36381 arg4 = &temp4;
36382 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
36383 }
36384 if (obj4) {
36385 ecode5 = SWIG_AsVal_int(obj4, &val5);
36386 if (!SWIG_IsOK(ecode5)) {
36387 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
36388 }
36389 arg5 = static_cast< int >(val5);
36390 }
36391 {
36392 PyThreadState* __tstate = wxPyBeginAllowThreads();
36393 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
36394 wxPyEndAllowThreads(__tstate);
36395 if (PyErr_Occurred()) SWIG_fail;
36396 }
36397 resultobj = SWIG_Py_Void();
36398 return resultobj;
36399 fail:
36400 return NULL;
36401 }
36402
36403
36404 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36405 PyObject *resultobj = 0;
36406 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36407 wxPoint *arg2 = 0 ;
36408 wxColour *arg3 = 0 ;
36409 int arg4 = (int) wxFLOOD_SURFACE ;
36410 void *argp1 = 0 ;
36411 int res1 = 0 ;
36412 wxPoint temp2 ;
36413 wxColour temp3 ;
36414 int val4 ;
36415 int ecode4 = 0 ;
36416 PyObject * obj0 = 0 ;
36417 PyObject * obj1 = 0 ;
36418 PyObject * obj2 = 0 ;
36419 PyObject * obj3 = 0 ;
36420 char * kwnames[] = {
36421 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
36422 };
36423
36424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36426 if (!SWIG_IsOK(res1)) {
36427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36428 }
36429 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36430 {
36431 arg2 = &temp2;
36432 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36433 }
36434 {
36435 arg3 = &temp3;
36436 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
36437 }
36438 if (obj3) {
36439 ecode4 = SWIG_AsVal_int(obj3, &val4);
36440 if (!SWIG_IsOK(ecode4)) {
36441 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
36442 }
36443 arg4 = static_cast< int >(val4);
36444 }
36445 {
36446 PyThreadState* __tstate = wxPyBeginAllowThreads();
36447 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
36448 wxPyEndAllowThreads(__tstate);
36449 if (PyErr_Occurred()) SWIG_fail;
36450 }
36451 resultobj = SWIG_Py_Void();
36452 return resultobj;
36453 fail:
36454 return NULL;
36455 }
36456
36457
36458 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36459 PyObject *resultobj = 0;
36460 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36461 int arg2 ;
36462 int arg3 ;
36463 int arg4 ;
36464 int arg5 ;
36465 void *argp1 = 0 ;
36466 int res1 = 0 ;
36467 int val2 ;
36468 int ecode2 = 0 ;
36469 int val3 ;
36470 int ecode3 = 0 ;
36471 int val4 ;
36472 int ecode4 = 0 ;
36473 int val5 ;
36474 int ecode5 = 0 ;
36475 PyObject * obj0 = 0 ;
36476 PyObject * obj1 = 0 ;
36477 PyObject * obj2 = 0 ;
36478 PyObject * obj3 = 0 ;
36479 PyObject * obj4 = 0 ;
36480 char * kwnames[] = {
36481 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
36482 };
36483
36484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36486 if (!SWIG_IsOK(res1)) {
36487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36488 }
36489 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36490 ecode2 = SWIG_AsVal_int(obj1, &val2);
36491 if (!SWIG_IsOK(ecode2)) {
36492 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
36493 }
36494 arg2 = static_cast< int >(val2);
36495 ecode3 = SWIG_AsVal_int(obj2, &val3);
36496 if (!SWIG_IsOK(ecode3)) {
36497 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
36498 }
36499 arg3 = static_cast< int >(val3);
36500 ecode4 = SWIG_AsVal_int(obj3, &val4);
36501 if (!SWIG_IsOK(ecode4)) {
36502 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
36503 }
36504 arg4 = static_cast< int >(val4);
36505 ecode5 = SWIG_AsVal_int(obj4, &val5);
36506 if (!SWIG_IsOK(ecode5)) {
36507 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
36508 }
36509 arg5 = static_cast< int >(val5);
36510 {
36511 PyThreadState* __tstate = wxPyBeginAllowThreads();
36512 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
36513 wxPyEndAllowThreads(__tstate);
36514 if (PyErr_Occurred()) SWIG_fail;
36515 }
36516 resultobj = SWIG_Py_Void();
36517 return resultobj;
36518 fail:
36519 return NULL;
36520 }
36521
36522
36523 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36524 PyObject *resultobj = 0;
36525 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36526 wxPoint *arg2 = 0 ;
36527 wxPoint *arg3 = 0 ;
36528 void *argp1 = 0 ;
36529 int res1 = 0 ;
36530 wxPoint temp2 ;
36531 wxPoint temp3 ;
36532 PyObject * obj0 = 0 ;
36533 PyObject * obj1 = 0 ;
36534 PyObject * obj2 = 0 ;
36535 char * kwnames[] = {
36536 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
36537 };
36538
36539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36541 if (!SWIG_IsOK(res1)) {
36542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36543 }
36544 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36545 {
36546 arg2 = &temp2;
36547 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36548 }
36549 {
36550 arg3 = &temp3;
36551 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36552 }
36553 {
36554 PyThreadState* __tstate = wxPyBeginAllowThreads();
36555 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
36556 wxPyEndAllowThreads(__tstate);
36557 if (PyErr_Occurred()) SWIG_fail;
36558 }
36559 resultobj = SWIG_Py_Void();
36560 return resultobj;
36561 fail:
36562 return NULL;
36563 }
36564
36565
36566 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36567 PyObject *resultobj = 0;
36568 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36569 int arg2 ;
36570 int arg3 ;
36571 void *argp1 = 0 ;
36572 int res1 = 0 ;
36573 int val2 ;
36574 int ecode2 = 0 ;
36575 int val3 ;
36576 int ecode3 = 0 ;
36577 PyObject * obj0 = 0 ;
36578 PyObject * obj1 = 0 ;
36579 PyObject * obj2 = 0 ;
36580 char * kwnames[] = {
36581 (char *) "self",(char *) "x",(char *) "y", NULL
36582 };
36583
36584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36586 if (!SWIG_IsOK(res1)) {
36587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36588 }
36589 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36590 ecode2 = SWIG_AsVal_int(obj1, &val2);
36591 if (!SWIG_IsOK(ecode2)) {
36592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
36593 }
36594 arg2 = static_cast< int >(val2);
36595 ecode3 = SWIG_AsVal_int(obj2, &val3);
36596 if (!SWIG_IsOK(ecode3)) {
36597 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
36598 }
36599 arg3 = static_cast< int >(val3);
36600 {
36601 PyThreadState* __tstate = wxPyBeginAllowThreads();
36602 (arg1)->CrossHair(arg2,arg3);
36603 wxPyEndAllowThreads(__tstate);
36604 if (PyErr_Occurred()) SWIG_fail;
36605 }
36606 resultobj = SWIG_Py_Void();
36607 return resultobj;
36608 fail:
36609 return NULL;
36610 }
36611
36612
36613 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36614 PyObject *resultobj = 0;
36615 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36616 wxPoint *arg2 = 0 ;
36617 void *argp1 = 0 ;
36618 int res1 = 0 ;
36619 wxPoint temp2 ;
36620 PyObject * obj0 = 0 ;
36621 PyObject * obj1 = 0 ;
36622 char * kwnames[] = {
36623 (char *) "self",(char *) "pt", NULL
36624 };
36625
36626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36628 if (!SWIG_IsOK(res1)) {
36629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36630 }
36631 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36632 {
36633 arg2 = &temp2;
36634 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36635 }
36636 {
36637 PyThreadState* __tstate = wxPyBeginAllowThreads();
36638 (arg1)->CrossHair((wxPoint const &)*arg2);
36639 wxPyEndAllowThreads(__tstate);
36640 if (PyErr_Occurred()) SWIG_fail;
36641 }
36642 resultobj = SWIG_Py_Void();
36643 return resultobj;
36644 fail:
36645 return NULL;
36646 }
36647
36648
36649 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36650 PyObject *resultobj = 0;
36651 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36652 int arg2 ;
36653 int arg3 ;
36654 int arg4 ;
36655 int arg5 ;
36656 int arg6 ;
36657 int arg7 ;
36658 void *argp1 = 0 ;
36659 int res1 = 0 ;
36660 int val2 ;
36661 int ecode2 = 0 ;
36662 int val3 ;
36663 int ecode3 = 0 ;
36664 int val4 ;
36665 int ecode4 = 0 ;
36666 int val5 ;
36667 int ecode5 = 0 ;
36668 int val6 ;
36669 int ecode6 = 0 ;
36670 int val7 ;
36671 int ecode7 = 0 ;
36672 PyObject * obj0 = 0 ;
36673 PyObject * obj1 = 0 ;
36674 PyObject * obj2 = 0 ;
36675 PyObject * obj3 = 0 ;
36676 PyObject * obj4 = 0 ;
36677 PyObject * obj5 = 0 ;
36678 PyObject * obj6 = 0 ;
36679 char * kwnames[] = {
36680 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36681 };
36682
36683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36685 if (!SWIG_IsOK(res1)) {
36686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36687 }
36688 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36689 ecode2 = SWIG_AsVal_int(obj1, &val2);
36690 if (!SWIG_IsOK(ecode2)) {
36691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36692 }
36693 arg2 = static_cast< int >(val2);
36694 ecode3 = SWIG_AsVal_int(obj2, &val3);
36695 if (!SWIG_IsOK(ecode3)) {
36696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36697 }
36698 arg3 = static_cast< int >(val3);
36699 ecode4 = SWIG_AsVal_int(obj3, &val4);
36700 if (!SWIG_IsOK(ecode4)) {
36701 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36702 }
36703 arg4 = static_cast< int >(val4);
36704 ecode5 = SWIG_AsVal_int(obj4, &val5);
36705 if (!SWIG_IsOK(ecode5)) {
36706 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36707 }
36708 arg5 = static_cast< int >(val5);
36709 ecode6 = SWIG_AsVal_int(obj5, &val6);
36710 if (!SWIG_IsOK(ecode6)) {
36711 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36712 }
36713 arg6 = static_cast< int >(val6);
36714 ecode7 = SWIG_AsVal_int(obj6, &val7);
36715 if (!SWIG_IsOK(ecode7)) {
36716 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36717 }
36718 arg7 = static_cast< int >(val7);
36719 {
36720 PyThreadState* __tstate = wxPyBeginAllowThreads();
36721 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
36722 wxPyEndAllowThreads(__tstate);
36723 if (PyErr_Occurred()) SWIG_fail;
36724 }
36725 resultobj = SWIG_Py_Void();
36726 return resultobj;
36727 fail:
36728 return NULL;
36729 }
36730
36731
36732 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36733 PyObject *resultobj = 0;
36734 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36735 wxPoint *arg2 = 0 ;
36736 wxPoint *arg3 = 0 ;
36737 wxPoint *arg4 = 0 ;
36738 void *argp1 = 0 ;
36739 int res1 = 0 ;
36740 wxPoint temp2 ;
36741 wxPoint temp3 ;
36742 wxPoint temp4 ;
36743 PyObject * obj0 = 0 ;
36744 PyObject * obj1 = 0 ;
36745 PyObject * obj2 = 0 ;
36746 PyObject * obj3 = 0 ;
36747 char * kwnames[] = {
36748 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36749 };
36750
36751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36753 if (!SWIG_IsOK(res1)) {
36754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36755 }
36756 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36757 {
36758 arg2 = &temp2;
36759 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36760 }
36761 {
36762 arg3 = &temp3;
36763 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36764 }
36765 {
36766 arg4 = &temp4;
36767 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36768 }
36769 {
36770 PyThreadState* __tstate = wxPyBeginAllowThreads();
36771 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36772 wxPyEndAllowThreads(__tstate);
36773 if (PyErr_Occurred()) SWIG_fail;
36774 }
36775 resultobj = SWIG_Py_Void();
36776 return resultobj;
36777 fail:
36778 return NULL;
36779 }
36780
36781
36782 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36783 PyObject *resultobj = 0;
36784 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36785 int arg2 ;
36786 int arg3 ;
36787 int arg4 ;
36788 int arg5 ;
36789 void *argp1 = 0 ;
36790 int res1 = 0 ;
36791 int val2 ;
36792 int ecode2 = 0 ;
36793 int val3 ;
36794 int ecode3 = 0 ;
36795 int val4 ;
36796 int ecode4 = 0 ;
36797 int val5 ;
36798 int ecode5 = 0 ;
36799 PyObject * obj0 = 0 ;
36800 PyObject * obj1 = 0 ;
36801 PyObject * obj2 = 0 ;
36802 PyObject * obj3 = 0 ;
36803 PyObject * obj4 = 0 ;
36804 char * kwnames[] = {
36805 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36806 };
36807
36808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36810 if (!SWIG_IsOK(res1)) {
36811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36812 }
36813 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36814 ecode2 = SWIG_AsVal_int(obj1, &val2);
36815 if (!SWIG_IsOK(ecode2)) {
36816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36817 }
36818 arg2 = static_cast< int >(val2);
36819 ecode3 = SWIG_AsVal_int(obj2, &val3);
36820 if (!SWIG_IsOK(ecode3)) {
36821 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36822 }
36823 arg3 = static_cast< int >(val3);
36824 ecode4 = SWIG_AsVal_int(obj3, &val4);
36825 if (!SWIG_IsOK(ecode4)) {
36826 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36827 }
36828 arg4 = static_cast< int >(val4);
36829 ecode5 = SWIG_AsVal_int(obj4, &val5);
36830 if (!SWIG_IsOK(ecode5)) {
36831 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36832 }
36833 arg5 = static_cast< int >(val5);
36834 {
36835 PyThreadState* __tstate = wxPyBeginAllowThreads();
36836 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36837 wxPyEndAllowThreads(__tstate);
36838 if (PyErr_Occurred()) SWIG_fail;
36839 }
36840 resultobj = SWIG_Py_Void();
36841 return resultobj;
36842 fail:
36843 return NULL;
36844 }
36845
36846
36847 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36848 PyObject *resultobj = 0;
36849 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36850 wxRect *arg2 = 0 ;
36851 void *argp1 = 0 ;
36852 int res1 = 0 ;
36853 wxRect temp2 ;
36854 PyObject * obj0 = 0 ;
36855 PyObject * obj1 = 0 ;
36856 char * kwnames[] = {
36857 (char *) "self",(char *) "rect", NULL
36858 };
36859
36860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36862 if (!SWIG_IsOK(res1)) {
36863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36864 }
36865 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36866 {
36867 arg2 = &temp2;
36868 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36869 }
36870 {
36871 PyThreadState* __tstate = wxPyBeginAllowThreads();
36872 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36873 wxPyEndAllowThreads(__tstate);
36874 if (PyErr_Occurred()) SWIG_fail;
36875 }
36876 resultobj = SWIG_Py_Void();
36877 return resultobj;
36878 fail:
36879 return NULL;
36880 }
36881
36882
36883 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36884 PyObject *resultobj = 0;
36885 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36886 int arg2 ;
36887 int arg3 ;
36888 int arg4 ;
36889 int arg5 ;
36890 double arg6 ;
36891 double arg7 ;
36892 void *argp1 = 0 ;
36893 int res1 = 0 ;
36894 int val2 ;
36895 int ecode2 = 0 ;
36896 int val3 ;
36897 int ecode3 = 0 ;
36898 int val4 ;
36899 int ecode4 = 0 ;
36900 int val5 ;
36901 int ecode5 = 0 ;
36902 double val6 ;
36903 int ecode6 = 0 ;
36904 double val7 ;
36905 int ecode7 = 0 ;
36906 PyObject * obj0 = 0 ;
36907 PyObject * obj1 = 0 ;
36908 PyObject * obj2 = 0 ;
36909 PyObject * obj3 = 0 ;
36910 PyObject * obj4 = 0 ;
36911 PyObject * obj5 = 0 ;
36912 PyObject * obj6 = 0 ;
36913 char * kwnames[] = {
36914 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36915 };
36916
36917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36919 if (!SWIG_IsOK(res1)) {
36920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36921 }
36922 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36923 ecode2 = SWIG_AsVal_int(obj1, &val2);
36924 if (!SWIG_IsOK(ecode2)) {
36925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36926 }
36927 arg2 = static_cast< int >(val2);
36928 ecode3 = SWIG_AsVal_int(obj2, &val3);
36929 if (!SWIG_IsOK(ecode3)) {
36930 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36931 }
36932 arg3 = static_cast< int >(val3);
36933 ecode4 = SWIG_AsVal_int(obj3, &val4);
36934 if (!SWIG_IsOK(ecode4)) {
36935 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36936 }
36937 arg4 = static_cast< int >(val4);
36938 ecode5 = SWIG_AsVal_int(obj4, &val5);
36939 if (!SWIG_IsOK(ecode5)) {
36940 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36941 }
36942 arg5 = static_cast< int >(val5);
36943 ecode6 = SWIG_AsVal_double(obj5, &val6);
36944 if (!SWIG_IsOK(ecode6)) {
36945 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36946 }
36947 arg6 = static_cast< double >(val6);
36948 ecode7 = SWIG_AsVal_double(obj6, &val7);
36949 if (!SWIG_IsOK(ecode7)) {
36950 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36951 }
36952 arg7 = static_cast< double >(val7);
36953 {
36954 PyThreadState* __tstate = wxPyBeginAllowThreads();
36955 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36956 wxPyEndAllowThreads(__tstate);
36957 if (PyErr_Occurred()) SWIG_fail;
36958 }
36959 resultobj = SWIG_Py_Void();
36960 return resultobj;
36961 fail:
36962 return NULL;
36963 }
36964
36965
36966 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36967 PyObject *resultobj = 0;
36968 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36969 wxPoint *arg2 = 0 ;
36970 wxSize *arg3 = 0 ;
36971 double arg4 ;
36972 double arg5 ;
36973 void *argp1 = 0 ;
36974 int res1 = 0 ;
36975 wxPoint temp2 ;
36976 wxSize temp3 ;
36977 double val4 ;
36978 int ecode4 = 0 ;
36979 double val5 ;
36980 int ecode5 = 0 ;
36981 PyObject * obj0 = 0 ;
36982 PyObject * obj1 = 0 ;
36983 PyObject * obj2 = 0 ;
36984 PyObject * obj3 = 0 ;
36985 PyObject * obj4 = 0 ;
36986 char * kwnames[] = {
36987 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36988 };
36989
36990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36992 if (!SWIG_IsOK(res1)) {
36993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36994 }
36995 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36996 {
36997 arg2 = &temp2;
36998 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36999 }
37000 {
37001 arg3 = &temp3;
37002 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37003 }
37004 ecode4 = SWIG_AsVal_double(obj3, &val4);
37005 if (!SWIG_IsOK(ecode4)) {
37006 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
37007 }
37008 arg4 = static_cast< double >(val4);
37009 ecode5 = SWIG_AsVal_double(obj4, &val5);
37010 if (!SWIG_IsOK(ecode5)) {
37011 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
37012 }
37013 arg5 = static_cast< double >(val5);
37014 {
37015 PyThreadState* __tstate = wxPyBeginAllowThreads();
37016 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
37017 wxPyEndAllowThreads(__tstate);
37018 if (PyErr_Occurred()) SWIG_fail;
37019 }
37020 resultobj = SWIG_Py_Void();
37021 return resultobj;
37022 fail:
37023 return NULL;
37024 }
37025
37026
37027 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37028 PyObject *resultobj = 0;
37029 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37030 int arg2 ;
37031 int arg3 ;
37032 void *argp1 = 0 ;
37033 int res1 = 0 ;
37034 int val2 ;
37035 int ecode2 = 0 ;
37036 int val3 ;
37037 int ecode3 = 0 ;
37038 PyObject * obj0 = 0 ;
37039 PyObject * obj1 = 0 ;
37040 PyObject * obj2 = 0 ;
37041 char * kwnames[] = {
37042 (char *) "self",(char *) "x",(char *) "y", NULL
37043 };
37044
37045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37047 if (!SWIG_IsOK(res1)) {
37048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37049 }
37050 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37051 ecode2 = SWIG_AsVal_int(obj1, &val2);
37052 if (!SWIG_IsOK(ecode2)) {
37053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
37054 }
37055 arg2 = static_cast< int >(val2);
37056 ecode3 = SWIG_AsVal_int(obj2, &val3);
37057 if (!SWIG_IsOK(ecode3)) {
37058 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
37059 }
37060 arg3 = static_cast< int >(val3);
37061 {
37062 PyThreadState* __tstate = wxPyBeginAllowThreads();
37063 (arg1)->DrawPoint(arg2,arg3);
37064 wxPyEndAllowThreads(__tstate);
37065 if (PyErr_Occurred()) SWIG_fail;
37066 }
37067 resultobj = SWIG_Py_Void();
37068 return resultobj;
37069 fail:
37070 return NULL;
37071 }
37072
37073
37074 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37075 PyObject *resultobj = 0;
37076 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37077 wxPoint *arg2 = 0 ;
37078 void *argp1 = 0 ;
37079 int res1 = 0 ;
37080 wxPoint temp2 ;
37081 PyObject * obj0 = 0 ;
37082 PyObject * obj1 = 0 ;
37083 char * kwnames[] = {
37084 (char *) "self",(char *) "pt", NULL
37085 };
37086
37087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
37088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37089 if (!SWIG_IsOK(res1)) {
37090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37091 }
37092 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37093 {
37094 arg2 = &temp2;
37095 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37096 }
37097 {
37098 PyThreadState* __tstate = wxPyBeginAllowThreads();
37099 (arg1)->DrawPoint((wxPoint const &)*arg2);
37100 wxPyEndAllowThreads(__tstate);
37101 if (PyErr_Occurred()) SWIG_fail;
37102 }
37103 resultobj = SWIG_Py_Void();
37104 return resultobj;
37105 fail:
37106 return NULL;
37107 }
37108
37109
37110 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37111 PyObject *resultobj = 0;
37112 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37113 int arg2 ;
37114 int arg3 ;
37115 int arg4 ;
37116 int arg5 ;
37117 void *argp1 = 0 ;
37118 int res1 = 0 ;
37119 int val2 ;
37120 int ecode2 = 0 ;
37121 int val3 ;
37122 int ecode3 = 0 ;
37123 int val4 ;
37124 int ecode4 = 0 ;
37125 int val5 ;
37126 int ecode5 = 0 ;
37127 PyObject * obj0 = 0 ;
37128 PyObject * obj1 = 0 ;
37129 PyObject * obj2 = 0 ;
37130 PyObject * obj3 = 0 ;
37131 PyObject * obj4 = 0 ;
37132 char * kwnames[] = {
37133 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37134 };
37135
37136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37138 if (!SWIG_IsOK(res1)) {
37139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37140 }
37141 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37142 ecode2 = SWIG_AsVal_int(obj1, &val2);
37143 if (!SWIG_IsOK(ecode2)) {
37144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
37145 }
37146 arg2 = static_cast< int >(val2);
37147 ecode3 = SWIG_AsVal_int(obj2, &val3);
37148 if (!SWIG_IsOK(ecode3)) {
37149 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
37150 }
37151 arg3 = static_cast< int >(val3);
37152 ecode4 = SWIG_AsVal_int(obj3, &val4);
37153 if (!SWIG_IsOK(ecode4)) {
37154 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
37155 }
37156 arg4 = static_cast< int >(val4);
37157 ecode5 = SWIG_AsVal_int(obj4, &val5);
37158 if (!SWIG_IsOK(ecode5)) {
37159 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
37160 }
37161 arg5 = static_cast< int >(val5);
37162 {
37163 PyThreadState* __tstate = wxPyBeginAllowThreads();
37164 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
37165 wxPyEndAllowThreads(__tstate);
37166 if (PyErr_Occurred()) SWIG_fail;
37167 }
37168 resultobj = SWIG_Py_Void();
37169 return resultobj;
37170 fail:
37171 return NULL;
37172 }
37173
37174
37175 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37176 PyObject *resultobj = 0;
37177 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37178 wxRect *arg2 = 0 ;
37179 void *argp1 = 0 ;
37180 int res1 = 0 ;
37181 wxRect temp2 ;
37182 PyObject * obj0 = 0 ;
37183 PyObject * obj1 = 0 ;
37184 char * kwnames[] = {
37185 (char *) "self",(char *) "rect", NULL
37186 };
37187
37188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
37189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37190 if (!SWIG_IsOK(res1)) {
37191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37192 }
37193 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37194 {
37195 arg2 = &temp2;
37196 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37197 }
37198 {
37199 PyThreadState* __tstate = wxPyBeginAllowThreads();
37200 (arg1)->DrawRectangle((wxRect const &)*arg2);
37201 wxPyEndAllowThreads(__tstate);
37202 if (PyErr_Occurred()) SWIG_fail;
37203 }
37204 resultobj = SWIG_Py_Void();
37205 return resultobj;
37206 fail:
37207 return NULL;
37208 }
37209
37210
37211 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37212 PyObject *resultobj = 0;
37213 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37214 wxPoint *arg2 = 0 ;
37215 wxSize *arg3 = 0 ;
37216 void *argp1 = 0 ;
37217 int res1 = 0 ;
37218 wxPoint temp2 ;
37219 wxSize temp3 ;
37220 PyObject * obj0 = 0 ;
37221 PyObject * obj1 = 0 ;
37222 PyObject * obj2 = 0 ;
37223 char * kwnames[] = {
37224 (char *) "self",(char *) "pt",(char *) "sz", NULL
37225 };
37226
37227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37229 if (!SWIG_IsOK(res1)) {
37230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37231 }
37232 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37233 {
37234 arg2 = &temp2;
37235 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37236 }
37237 {
37238 arg3 = &temp3;
37239 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37240 }
37241 {
37242 PyThreadState* __tstate = wxPyBeginAllowThreads();
37243 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
37244 wxPyEndAllowThreads(__tstate);
37245 if (PyErr_Occurred()) SWIG_fail;
37246 }
37247 resultobj = SWIG_Py_Void();
37248 return resultobj;
37249 fail:
37250 return NULL;
37251 }
37252
37253
37254 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37255 PyObject *resultobj = 0;
37256 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37257 int arg2 ;
37258 int arg3 ;
37259 int arg4 ;
37260 int arg5 ;
37261 double arg6 ;
37262 void *argp1 = 0 ;
37263 int res1 = 0 ;
37264 int val2 ;
37265 int ecode2 = 0 ;
37266 int val3 ;
37267 int ecode3 = 0 ;
37268 int val4 ;
37269 int ecode4 = 0 ;
37270 int val5 ;
37271 int ecode5 = 0 ;
37272 double val6 ;
37273 int ecode6 = 0 ;
37274 PyObject * obj0 = 0 ;
37275 PyObject * obj1 = 0 ;
37276 PyObject * obj2 = 0 ;
37277 PyObject * obj3 = 0 ;
37278 PyObject * obj4 = 0 ;
37279 PyObject * obj5 = 0 ;
37280 char * kwnames[] = {
37281 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
37282 };
37283
37284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37286 if (!SWIG_IsOK(res1)) {
37287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37288 }
37289 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37290 ecode2 = SWIG_AsVal_int(obj1, &val2);
37291 if (!SWIG_IsOK(ecode2)) {
37292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
37293 }
37294 arg2 = static_cast< int >(val2);
37295 ecode3 = SWIG_AsVal_int(obj2, &val3);
37296 if (!SWIG_IsOK(ecode3)) {
37297 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
37298 }
37299 arg3 = static_cast< int >(val3);
37300 ecode4 = SWIG_AsVal_int(obj3, &val4);
37301 if (!SWIG_IsOK(ecode4)) {
37302 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
37303 }
37304 arg4 = static_cast< int >(val4);
37305 ecode5 = SWIG_AsVal_int(obj4, &val5);
37306 if (!SWIG_IsOK(ecode5)) {
37307 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
37308 }
37309 arg5 = static_cast< int >(val5);
37310 ecode6 = SWIG_AsVal_double(obj5, &val6);
37311 if (!SWIG_IsOK(ecode6)) {
37312 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
37313 }
37314 arg6 = static_cast< double >(val6);
37315 {
37316 PyThreadState* __tstate = wxPyBeginAllowThreads();
37317 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
37318 wxPyEndAllowThreads(__tstate);
37319 if (PyErr_Occurred()) SWIG_fail;
37320 }
37321 resultobj = SWIG_Py_Void();
37322 return resultobj;
37323 fail:
37324 return NULL;
37325 }
37326
37327
37328 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37329 PyObject *resultobj = 0;
37330 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37331 wxRect *arg2 = 0 ;
37332 double arg3 ;
37333 void *argp1 = 0 ;
37334 int res1 = 0 ;
37335 wxRect temp2 ;
37336 double val3 ;
37337 int ecode3 = 0 ;
37338 PyObject * obj0 = 0 ;
37339 PyObject * obj1 = 0 ;
37340 PyObject * obj2 = 0 ;
37341 char * kwnames[] = {
37342 (char *) "self",(char *) "r",(char *) "radius", NULL
37343 };
37344
37345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37347 if (!SWIG_IsOK(res1)) {
37348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37349 }
37350 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37351 {
37352 arg2 = &temp2;
37353 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37354 }
37355 ecode3 = SWIG_AsVal_double(obj2, &val3);
37356 if (!SWIG_IsOK(ecode3)) {
37357 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
37358 }
37359 arg3 = static_cast< double >(val3);
37360 {
37361 PyThreadState* __tstate = wxPyBeginAllowThreads();
37362 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
37363 wxPyEndAllowThreads(__tstate);
37364 if (PyErr_Occurred()) SWIG_fail;
37365 }
37366 resultobj = SWIG_Py_Void();
37367 return resultobj;
37368 fail:
37369 return NULL;
37370 }
37371
37372
37373 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37374 PyObject *resultobj = 0;
37375 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37376 wxPoint *arg2 = 0 ;
37377 wxSize *arg3 = 0 ;
37378 double arg4 ;
37379 void *argp1 = 0 ;
37380 int res1 = 0 ;
37381 wxPoint temp2 ;
37382 wxSize temp3 ;
37383 double val4 ;
37384 int ecode4 = 0 ;
37385 PyObject * obj0 = 0 ;
37386 PyObject * obj1 = 0 ;
37387 PyObject * obj2 = 0 ;
37388 PyObject * obj3 = 0 ;
37389 char * kwnames[] = {
37390 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
37391 };
37392
37393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37395 if (!SWIG_IsOK(res1)) {
37396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37397 }
37398 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37399 {
37400 arg2 = &temp2;
37401 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37402 }
37403 {
37404 arg3 = &temp3;
37405 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37406 }
37407 ecode4 = SWIG_AsVal_double(obj3, &val4);
37408 if (!SWIG_IsOK(ecode4)) {
37409 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
37410 }
37411 arg4 = static_cast< double >(val4);
37412 {
37413 PyThreadState* __tstate = wxPyBeginAllowThreads();
37414 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
37415 wxPyEndAllowThreads(__tstate);
37416 if (PyErr_Occurred()) SWIG_fail;
37417 }
37418 resultobj = SWIG_Py_Void();
37419 return resultobj;
37420 fail:
37421 return NULL;
37422 }
37423
37424
37425 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37426 PyObject *resultobj = 0;
37427 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37428 int arg2 ;
37429 int arg3 ;
37430 int arg4 ;
37431 void *argp1 = 0 ;
37432 int res1 = 0 ;
37433 int val2 ;
37434 int ecode2 = 0 ;
37435 int val3 ;
37436 int ecode3 = 0 ;
37437 int val4 ;
37438 int ecode4 = 0 ;
37439 PyObject * obj0 = 0 ;
37440 PyObject * obj1 = 0 ;
37441 PyObject * obj2 = 0 ;
37442 PyObject * obj3 = 0 ;
37443 char * kwnames[] = {
37444 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
37445 };
37446
37447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37449 if (!SWIG_IsOK(res1)) {
37450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37451 }
37452 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37453 ecode2 = SWIG_AsVal_int(obj1, &val2);
37454 if (!SWIG_IsOK(ecode2)) {
37455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
37456 }
37457 arg2 = static_cast< int >(val2);
37458 ecode3 = SWIG_AsVal_int(obj2, &val3);
37459 if (!SWIG_IsOK(ecode3)) {
37460 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
37461 }
37462 arg3 = static_cast< int >(val3);
37463 ecode4 = SWIG_AsVal_int(obj3, &val4);
37464 if (!SWIG_IsOK(ecode4)) {
37465 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
37466 }
37467 arg4 = static_cast< int >(val4);
37468 {
37469 PyThreadState* __tstate = wxPyBeginAllowThreads();
37470 (arg1)->DrawCircle(arg2,arg3,arg4);
37471 wxPyEndAllowThreads(__tstate);
37472 if (PyErr_Occurred()) SWIG_fail;
37473 }
37474 resultobj = SWIG_Py_Void();
37475 return resultobj;
37476 fail:
37477 return NULL;
37478 }
37479
37480
37481 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37482 PyObject *resultobj = 0;
37483 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37484 wxPoint *arg2 = 0 ;
37485 int arg3 ;
37486 void *argp1 = 0 ;
37487 int res1 = 0 ;
37488 wxPoint temp2 ;
37489 int val3 ;
37490 int ecode3 = 0 ;
37491 PyObject * obj0 = 0 ;
37492 PyObject * obj1 = 0 ;
37493 PyObject * obj2 = 0 ;
37494 char * kwnames[] = {
37495 (char *) "self",(char *) "pt",(char *) "radius", NULL
37496 };
37497
37498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37500 if (!SWIG_IsOK(res1)) {
37501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37502 }
37503 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37504 {
37505 arg2 = &temp2;
37506 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37507 }
37508 ecode3 = SWIG_AsVal_int(obj2, &val3);
37509 if (!SWIG_IsOK(ecode3)) {
37510 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
37511 }
37512 arg3 = static_cast< int >(val3);
37513 {
37514 PyThreadState* __tstate = wxPyBeginAllowThreads();
37515 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
37516 wxPyEndAllowThreads(__tstate);
37517 if (PyErr_Occurred()) SWIG_fail;
37518 }
37519 resultobj = SWIG_Py_Void();
37520 return resultobj;
37521 fail:
37522 return NULL;
37523 }
37524
37525
37526 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37527 PyObject *resultobj = 0;
37528 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37529 int arg2 ;
37530 int arg3 ;
37531 int arg4 ;
37532 int arg5 ;
37533 void *argp1 = 0 ;
37534 int res1 = 0 ;
37535 int val2 ;
37536 int ecode2 = 0 ;
37537 int val3 ;
37538 int ecode3 = 0 ;
37539 int val4 ;
37540 int ecode4 = 0 ;
37541 int val5 ;
37542 int ecode5 = 0 ;
37543 PyObject * obj0 = 0 ;
37544 PyObject * obj1 = 0 ;
37545 PyObject * obj2 = 0 ;
37546 PyObject * obj3 = 0 ;
37547 PyObject * obj4 = 0 ;
37548 char * kwnames[] = {
37549 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37550 };
37551
37552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37554 if (!SWIG_IsOK(res1)) {
37555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37556 }
37557 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37558 ecode2 = SWIG_AsVal_int(obj1, &val2);
37559 if (!SWIG_IsOK(ecode2)) {
37560 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
37561 }
37562 arg2 = static_cast< int >(val2);
37563 ecode3 = SWIG_AsVal_int(obj2, &val3);
37564 if (!SWIG_IsOK(ecode3)) {
37565 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
37566 }
37567 arg3 = static_cast< int >(val3);
37568 ecode4 = SWIG_AsVal_int(obj3, &val4);
37569 if (!SWIG_IsOK(ecode4)) {
37570 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
37571 }
37572 arg4 = static_cast< int >(val4);
37573 ecode5 = SWIG_AsVal_int(obj4, &val5);
37574 if (!SWIG_IsOK(ecode5)) {
37575 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
37576 }
37577 arg5 = static_cast< int >(val5);
37578 {
37579 PyThreadState* __tstate = wxPyBeginAllowThreads();
37580 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
37581 wxPyEndAllowThreads(__tstate);
37582 if (PyErr_Occurred()) SWIG_fail;
37583 }
37584 resultobj = SWIG_Py_Void();
37585 return resultobj;
37586 fail:
37587 return NULL;
37588 }
37589
37590
37591 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37592 PyObject *resultobj = 0;
37593 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37594 wxRect *arg2 = 0 ;
37595 void *argp1 = 0 ;
37596 int res1 = 0 ;
37597 wxRect temp2 ;
37598 PyObject * obj0 = 0 ;
37599 PyObject * obj1 = 0 ;
37600 char * kwnames[] = {
37601 (char *) "self",(char *) "rect", NULL
37602 };
37603
37604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
37605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37606 if (!SWIG_IsOK(res1)) {
37607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37608 }
37609 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37610 {
37611 arg2 = &temp2;
37612 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37613 }
37614 {
37615 PyThreadState* __tstate = wxPyBeginAllowThreads();
37616 (arg1)->DrawEllipse((wxRect const &)*arg2);
37617 wxPyEndAllowThreads(__tstate);
37618 if (PyErr_Occurred()) SWIG_fail;
37619 }
37620 resultobj = SWIG_Py_Void();
37621 return resultobj;
37622 fail:
37623 return NULL;
37624 }
37625
37626
37627 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37628 PyObject *resultobj = 0;
37629 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37630 wxPoint *arg2 = 0 ;
37631 wxSize *arg3 = 0 ;
37632 void *argp1 = 0 ;
37633 int res1 = 0 ;
37634 wxPoint temp2 ;
37635 wxSize temp3 ;
37636 PyObject * obj0 = 0 ;
37637 PyObject * obj1 = 0 ;
37638 PyObject * obj2 = 0 ;
37639 char * kwnames[] = {
37640 (char *) "self",(char *) "pt",(char *) "sz", NULL
37641 };
37642
37643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37645 if (!SWIG_IsOK(res1)) {
37646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37647 }
37648 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37649 {
37650 arg2 = &temp2;
37651 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37652 }
37653 {
37654 arg3 = &temp3;
37655 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37656 }
37657 {
37658 PyThreadState* __tstate = wxPyBeginAllowThreads();
37659 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37660 wxPyEndAllowThreads(__tstate);
37661 if (PyErr_Occurred()) SWIG_fail;
37662 }
37663 resultobj = SWIG_Py_Void();
37664 return resultobj;
37665 fail:
37666 return NULL;
37667 }
37668
37669
37670 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37671 PyObject *resultobj = 0;
37672 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37673 wxIcon *arg2 = 0 ;
37674 int arg3 ;
37675 int arg4 ;
37676 void *argp1 = 0 ;
37677 int res1 = 0 ;
37678 void *argp2 = 0 ;
37679 int res2 = 0 ;
37680 int val3 ;
37681 int ecode3 = 0 ;
37682 int val4 ;
37683 int ecode4 = 0 ;
37684 PyObject * obj0 = 0 ;
37685 PyObject * obj1 = 0 ;
37686 PyObject * obj2 = 0 ;
37687 PyObject * obj3 = 0 ;
37688 char * kwnames[] = {
37689 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37690 };
37691
37692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37694 if (!SWIG_IsOK(res1)) {
37695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37696 }
37697 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37698 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37699 if (!SWIG_IsOK(res2)) {
37700 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37701 }
37702 if (!argp2) {
37703 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37704 }
37705 arg2 = reinterpret_cast< wxIcon * >(argp2);
37706 ecode3 = SWIG_AsVal_int(obj2, &val3);
37707 if (!SWIG_IsOK(ecode3)) {
37708 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37709 }
37710 arg3 = static_cast< int >(val3);
37711 ecode4 = SWIG_AsVal_int(obj3, &val4);
37712 if (!SWIG_IsOK(ecode4)) {
37713 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37714 }
37715 arg4 = static_cast< int >(val4);
37716 {
37717 PyThreadState* __tstate = wxPyBeginAllowThreads();
37718 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37719 wxPyEndAllowThreads(__tstate);
37720 if (PyErr_Occurred()) SWIG_fail;
37721 }
37722 resultobj = SWIG_Py_Void();
37723 return resultobj;
37724 fail:
37725 return NULL;
37726 }
37727
37728
37729 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37730 PyObject *resultobj = 0;
37731 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37732 wxIcon *arg2 = 0 ;
37733 wxPoint *arg3 = 0 ;
37734 void *argp1 = 0 ;
37735 int res1 = 0 ;
37736 void *argp2 = 0 ;
37737 int res2 = 0 ;
37738 wxPoint temp3 ;
37739 PyObject * obj0 = 0 ;
37740 PyObject * obj1 = 0 ;
37741 PyObject * obj2 = 0 ;
37742 char * kwnames[] = {
37743 (char *) "self",(char *) "icon",(char *) "pt", NULL
37744 };
37745
37746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37748 if (!SWIG_IsOK(res1)) {
37749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37750 }
37751 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37752 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37753 if (!SWIG_IsOK(res2)) {
37754 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37755 }
37756 if (!argp2) {
37757 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37758 }
37759 arg2 = reinterpret_cast< wxIcon * >(argp2);
37760 {
37761 arg3 = &temp3;
37762 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37763 }
37764 {
37765 PyThreadState* __tstate = wxPyBeginAllowThreads();
37766 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37767 wxPyEndAllowThreads(__tstate);
37768 if (PyErr_Occurred()) SWIG_fail;
37769 }
37770 resultobj = SWIG_Py_Void();
37771 return resultobj;
37772 fail:
37773 return NULL;
37774 }
37775
37776
37777 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37778 PyObject *resultobj = 0;
37779 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37780 wxBitmap *arg2 = 0 ;
37781 int arg3 ;
37782 int arg4 ;
37783 bool arg5 = (bool) false ;
37784 void *argp1 = 0 ;
37785 int res1 = 0 ;
37786 void *argp2 = 0 ;
37787 int res2 = 0 ;
37788 int val3 ;
37789 int ecode3 = 0 ;
37790 int val4 ;
37791 int ecode4 = 0 ;
37792 bool val5 ;
37793 int ecode5 = 0 ;
37794 PyObject * obj0 = 0 ;
37795 PyObject * obj1 = 0 ;
37796 PyObject * obj2 = 0 ;
37797 PyObject * obj3 = 0 ;
37798 PyObject * obj4 = 0 ;
37799 char * kwnames[] = {
37800 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37801 };
37802
37803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37805 if (!SWIG_IsOK(res1)) {
37806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37807 }
37808 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37809 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37810 if (!SWIG_IsOK(res2)) {
37811 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37812 }
37813 if (!argp2) {
37814 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37815 }
37816 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37817 ecode3 = SWIG_AsVal_int(obj2, &val3);
37818 if (!SWIG_IsOK(ecode3)) {
37819 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37820 }
37821 arg3 = static_cast< int >(val3);
37822 ecode4 = SWIG_AsVal_int(obj3, &val4);
37823 if (!SWIG_IsOK(ecode4)) {
37824 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37825 }
37826 arg4 = static_cast< int >(val4);
37827 if (obj4) {
37828 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37829 if (!SWIG_IsOK(ecode5)) {
37830 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37831 }
37832 arg5 = static_cast< bool >(val5);
37833 }
37834 {
37835 PyThreadState* __tstate = wxPyBeginAllowThreads();
37836 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37837 wxPyEndAllowThreads(__tstate);
37838 if (PyErr_Occurred()) SWIG_fail;
37839 }
37840 resultobj = SWIG_Py_Void();
37841 return resultobj;
37842 fail:
37843 return NULL;
37844 }
37845
37846
37847 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37848 PyObject *resultobj = 0;
37849 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37850 wxBitmap *arg2 = 0 ;
37851 wxPoint *arg3 = 0 ;
37852 bool arg4 = (bool) false ;
37853 void *argp1 = 0 ;
37854 int res1 = 0 ;
37855 void *argp2 = 0 ;
37856 int res2 = 0 ;
37857 wxPoint temp3 ;
37858 bool val4 ;
37859 int ecode4 = 0 ;
37860 PyObject * obj0 = 0 ;
37861 PyObject * obj1 = 0 ;
37862 PyObject * obj2 = 0 ;
37863 PyObject * obj3 = 0 ;
37864 char * kwnames[] = {
37865 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37866 };
37867
37868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37870 if (!SWIG_IsOK(res1)) {
37871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37872 }
37873 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37874 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37875 if (!SWIG_IsOK(res2)) {
37876 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37877 }
37878 if (!argp2) {
37879 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37880 }
37881 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37882 {
37883 arg3 = &temp3;
37884 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37885 }
37886 if (obj3) {
37887 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37888 if (!SWIG_IsOK(ecode4)) {
37889 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37890 }
37891 arg4 = static_cast< bool >(val4);
37892 }
37893 {
37894 PyThreadState* __tstate = wxPyBeginAllowThreads();
37895 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
37896 wxPyEndAllowThreads(__tstate);
37897 if (PyErr_Occurred()) SWIG_fail;
37898 }
37899 resultobj = SWIG_Py_Void();
37900 return resultobj;
37901 fail:
37902 return NULL;
37903 }
37904
37905
37906 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37907 PyObject *resultobj = 0;
37908 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37909 wxString *arg2 = 0 ;
37910 int arg3 ;
37911 int arg4 ;
37912 void *argp1 = 0 ;
37913 int res1 = 0 ;
37914 bool temp2 = false ;
37915 int val3 ;
37916 int ecode3 = 0 ;
37917 int val4 ;
37918 int ecode4 = 0 ;
37919 PyObject * obj0 = 0 ;
37920 PyObject * obj1 = 0 ;
37921 PyObject * obj2 = 0 ;
37922 PyObject * obj3 = 0 ;
37923 char * kwnames[] = {
37924 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37925 };
37926
37927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37929 if (!SWIG_IsOK(res1)) {
37930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37931 }
37932 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37933 {
37934 arg2 = wxString_in_helper(obj1);
37935 if (arg2 == NULL) SWIG_fail;
37936 temp2 = true;
37937 }
37938 ecode3 = SWIG_AsVal_int(obj2, &val3);
37939 if (!SWIG_IsOK(ecode3)) {
37940 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37941 }
37942 arg3 = static_cast< int >(val3);
37943 ecode4 = SWIG_AsVal_int(obj3, &val4);
37944 if (!SWIG_IsOK(ecode4)) {
37945 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37946 }
37947 arg4 = static_cast< int >(val4);
37948 {
37949 PyThreadState* __tstate = wxPyBeginAllowThreads();
37950 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37951 wxPyEndAllowThreads(__tstate);
37952 if (PyErr_Occurred()) SWIG_fail;
37953 }
37954 resultobj = SWIG_Py_Void();
37955 {
37956 if (temp2)
37957 delete arg2;
37958 }
37959 return resultobj;
37960 fail:
37961 {
37962 if (temp2)
37963 delete arg2;
37964 }
37965 return NULL;
37966 }
37967
37968
37969 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37970 PyObject *resultobj = 0;
37971 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37972 wxString *arg2 = 0 ;
37973 wxPoint *arg3 = 0 ;
37974 void *argp1 = 0 ;
37975 int res1 = 0 ;
37976 bool temp2 = false ;
37977 wxPoint temp3 ;
37978 PyObject * obj0 = 0 ;
37979 PyObject * obj1 = 0 ;
37980 PyObject * obj2 = 0 ;
37981 char * kwnames[] = {
37982 (char *) "self",(char *) "text",(char *) "pt", NULL
37983 };
37984
37985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37987 if (!SWIG_IsOK(res1)) {
37988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37989 }
37990 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37991 {
37992 arg2 = wxString_in_helper(obj1);
37993 if (arg2 == NULL) SWIG_fail;
37994 temp2 = true;
37995 }
37996 {
37997 arg3 = &temp3;
37998 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37999 }
38000 {
38001 PyThreadState* __tstate = wxPyBeginAllowThreads();
38002 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
38003 wxPyEndAllowThreads(__tstate);
38004 if (PyErr_Occurred()) SWIG_fail;
38005 }
38006 resultobj = SWIG_Py_Void();
38007 {
38008 if (temp2)
38009 delete arg2;
38010 }
38011 return resultobj;
38012 fail:
38013 {
38014 if (temp2)
38015 delete arg2;
38016 }
38017 return NULL;
38018 }
38019
38020
38021 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38022 PyObject *resultobj = 0;
38023 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38024 wxString *arg2 = 0 ;
38025 int arg3 ;
38026 int arg4 ;
38027 double arg5 ;
38028 void *argp1 = 0 ;
38029 int res1 = 0 ;
38030 bool temp2 = false ;
38031 int val3 ;
38032 int ecode3 = 0 ;
38033 int val4 ;
38034 int ecode4 = 0 ;
38035 double val5 ;
38036 int ecode5 = 0 ;
38037 PyObject * obj0 = 0 ;
38038 PyObject * obj1 = 0 ;
38039 PyObject * obj2 = 0 ;
38040 PyObject * obj3 = 0 ;
38041 PyObject * obj4 = 0 ;
38042 char * kwnames[] = {
38043 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
38044 };
38045
38046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38048 if (!SWIG_IsOK(res1)) {
38049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38050 }
38051 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38052 {
38053 arg2 = wxString_in_helper(obj1);
38054 if (arg2 == NULL) SWIG_fail;
38055 temp2 = true;
38056 }
38057 ecode3 = SWIG_AsVal_int(obj2, &val3);
38058 if (!SWIG_IsOK(ecode3)) {
38059 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
38060 }
38061 arg3 = static_cast< int >(val3);
38062 ecode4 = SWIG_AsVal_int(obj3, &val4);
38063 if (!SWIG_IsOK(ecode4)) {
38064 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
38065 }
38066 arg4 = static_cast< int >(val4);
38067 ecode5 = SWIG_AsVal_double(obj4, &val5);
38068 if (!SWIG_IsOK(ecode5)) {
38069 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
38070 }
38071 arg5 = static_cast< double >(val5);
38072 {
38073 PyThreadState* __tstate = wxPyBeginAllowThreads();
38074 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
38075 wxPyEndAllowThreads(__tstate);
38076 if (PyErr_Occurred()) SWIG_fail;
38077 }
38078 resultobj = SWIG_Py_Void();
38079 {
38080 if (temp2)
38081 delete arg2;
38082 }
38083 return resultobj;
38084 fail:
38085 {
38086 if (temp2)
38087 delete arg2;
38088 }
38089 return NULL;
38090 }
38091
38092
38093 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38094 PyObject *resultobj = 0;
38095 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38096 wxString *arg2 = 0 ;
38097 wxPoint *arg3 = 0 ;
38098 double arg4 ;
38099 void *argp1 = 0 ;
38100 int res1 = 0 ;
38101 bool temp2 = false ;
38102 wxPoint temp3 ;
38103 double val4 ;
38104 int ecode4 = 0 ;
38105 PyObject * obj0 = 0 ;
38106 PyObject * obj1 = 0 ;
38107 PyObject * obj2 = 0 ;
38108 PyObject * obj3 = 0 ;
38109 char * kwnames[] = {
38110 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
38111 };
38112
38113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38115 if (!SWIG_IsOK(res1)) {
38116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38117 }
38118 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38119 {
38120 arg2 = wxString_in_helper(obj1);
38121 if (arg2 == NULL) SWIG_fail;
38122 temp2 = true;
38123 }
38124 {
38125 arg3 = &temp3;
38126 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38127 }
38128 ecode4 = SWIG_AsVal_double(obj3, &val4);
38129 if (!SWIG_IsOK(ecode4)) {
38130 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
38131 }
38132 arg4 = static_cast< double >(val4);
38133 {
38134 PyThreadState* __tstate = wxPyBeginAllowThreads();
38135 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
38136 wxPyEndAllowThreads(__tstate);
38137 if (PyErr_Occurred()) SWIG_fail;
38138 }
38139 resultobj = SWIG_Py_Void();
38140 {
38141 if (temp2)
38142 delete arg2;
38143 }
38144 return resultobj;
38145 fail:
38146 {
38147 if (temp2)
38148 delete arg2;
38149 }
38150 return NULL;
38151 }
38152
38153
38154 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38155 PyObject *resultobj = 0;
38156 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38157 int arg2 ;
38158 wxPoint *arg3 = (wxPoint *) 0 ;
38159 int arg4 = (int) 0 ;
38160 int arg5 = (int) 0 ;
38161 void *argp1 = 0 ;
38162 int res1 = 0 ;
38163 int val4 ;
38164 int ecode4 = 0 ;
38165 int val5 ;
38166 int ecode5 = 0 ;
38167 PyObject * obj0 = 0 ;
38168 PyObject * obj1 = 0 ;
38169 PyObject * obj2 = 0 ;
38170 PyObject * obj3 = 0 ;
38171 char * kwnames[] = {
38172 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
38173 };
38174
38175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38177 if (!SWIG_IsOK(res1)) {
38178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38179 }
38180 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38181 {
38182 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38183 if (arg3 == NULL) SWIG_fail;
38184 }
38185 if (obj2) {
38186 ecode4 = SWIG_AsVal_int(obj2, &val4);
38187 if (!SWIG_IsOK(ecode4)) {
38188 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
38189 }
38190 arg4 = static_cast< int >(val4);
38191 }
38192 if (obj3) {
38193 ecode5 = SWIG_AsVal_int(obj3, &val5);
38194 if (!SWIG_IsOK(ecode5)) {
38195 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
38196 }
38197 arg5 = static_cast< int >(val5);
38198 }
38199 {
38200 PyThreadState* __tstate = wxPyBeginAllowThreads();
38201 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
38202 wxPyEndAllowThreads(__tstate);
38203 if (PyErr_Occurred()) SWIG_fail;
38204 }
38205 resultobj = SWIG_Py_Void();
38206 {
38207 if (arg3) delete [] arg3;
38208 }
38209 return resultobj;
38210 fail:
38211 {
38212 if (arg3) delete [] arg3;
38213 }
38214 return NULL;
38215 }
38216
38217
38218 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38219 PyObject *resultobj = 0;
38220 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38221 int arg2 ;
38222 wxPoint *arg3 = (wxPoint *) 0 ;
38223 int arg4 = (int) 0 ;
38224 int arg5 = (int) 0 ;
38225 int arg6 = (int) wxODDEVEN_RULE ;
38226 void *argp1 = 0 ;
38227 int res1 = 0 ;
38228 int val4 ;
38229 int ecode4 = 0 ;
38230 int val5 ;
38231 int ecode5 = 0 ;
38232 int val6 ;
38233 int ecode6 = 0 ;
38234 PyObject * obj0 = 0 ;
38235 PyObject * obj1 = 0 ;
38236 PyObject * obj2 = 0 ;
38237 PyObject * obj3 = 0 ;
38238 PyObject * obj4 = 0 ;
38239 char * kwnames[] = {
38240 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
38241 };
38242
38243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38245 if (!SWIG_IsOK(res1)) {
38246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38247 }
38248 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38249 {
38250 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38251 if (arg3 == NULL) SWIG_fail;
38252 }
38253 if (obj2) {
38254 ecode4 = SWIG_AsVal_int(obj2, &val4);
38255 if (!SWIG_IsOK(ecode4)) {
38256 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
38257 }
38258 arg4 = static_cast< int >(val4);
38259 }
38260 if (obj3) {
38261 ecode5 = SWIG_AsVal_int(obj3, &val5);
38262 if (!SWIG_IsOK(ecode5)) {
38263 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
38264 }
38265 arg5 = static_cast< int >(val5);
38266 }
38267 if (obj4) {
38268 ecode6 = SWIG_AsVal_int(obj4, &val6);
38269 if (!SWIG_IsOK(ecode6)) {
38270 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
38271 }
38272 arg6 = static_cast< int >(val6);
38273 }
38274 {
38275 PyThreadState* __tstate = wxPyBeginAllowThreads();
38276 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
38277 wxPyEndAllowThreads(__tstate);
38278 if (PyErr_Occurred()) SWIG_fail;
38279 }
38280 resultobj = SWIG_Py_Void();
38281 {
38282 if (arg3) delete [] arg3;
38283 }
38284 return resultobj;
38285 fail:
38286 {
38287 if (arg3) delete [] arg3;
38288 }
38289 return NULL;
38290 }
38291
38292
38293 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38294 PyObject *resultobj = 0;
38295 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38296 wxString *arg2 = 0 ;
38297 wxRect *arg3 = 0 ;
38298 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38299 int arg5 = (int) -1 ;
38300 void *argp1 = 0 ;
38301 int res1 = 0 ;
38302 bool temp2 = false ;
38303 wxRect temp3 ;
38304 int val4 ;
38305 int ecode4 = 0 ;
38306 int val5 ;
38307 int ecode5 = 0 ;
38308 PyObject * obj0 = 0 ;
38309 PyObject * obj1 = 0 ;
38310 PyObject * obj2 = 0 ;
38311 PyObject * obj3 = 0 ;
38312 PyObject * obj4 = 0 ;
38313 char * kwnames[] = {
38314 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38315 };
38316
38317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38319 if (!SWIG_IsOK(res1)) {
38320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38321 }
38322 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38323 {
38324 arg2 = wxString_in_helper(obj1);
38325 if (arg2 == NULL) SWIG_fail;
38326 temp2 = true;
38327 }
38328 {
38329 arg3 = &temp3;
38330 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
38331 }
38332 if (obj3) {
38333 ecode4 = SWIG_AsVal_int(obj3, &val4);
38334 if (!SWIG_IsOK(ecode4)) {
38335 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
38336 }
38337 arg4 = static_cast< int >(val4);
38338 }
38339 if (obj4) {
38340 ecode5 = SWIG_AsVal_int(obj4, &val5);
38341 if (!SWIG_IsOK(ecode5)) {
38342 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
38343 }
38344 arg5 = static_cast< int >(val5);
38345 }
38346 {
38347 PyThreadState* __tstate = wxPyBeginAllowThreads();
38348 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
38349 wxPyEndAllowThreads(__tstate);
38350 if (PyErr_Occurred()) SWIG_fail;
38351 }
38352 resultobj = SWIG_Py_Void();
38353 {
38354 if (temp2)
38355 delete arg2;
38356 }
38357 return resultobj;
38358 fail:
38359 {
38360 if (temp2)
38361 delete arg2;
38362 }
38363 return NULL;
38364 }
38365
38366
38367 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38368 PyObject *resultobj = 0;
38369 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38370 wxString *arg2 = 0 ;
38371 wxBitmap *arg3 = 0 ;
38372 wxRect *arg4 = 0 ;
38373 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38374 int arg6 = (int) -1 ;
38375 void *argp1 = 0 ;
38376 int res1 = 0 ;
38377 bool temp2 = false ;
38378 void *argp3 = 0 ;
38379 int res3 = 0 ;
38380 wxRect temp4 ;
38381 int val5 ;
38382 int ecode5 = 0 ;
38383 int val6 ;
38384 int ecode6 = 0 ;
38385 PyObject * obj0 = 0 ;
38386 PyObject * obj1 = 0 ;
38387 PyObject * obj2 = 0 ;
38388 PyObject * obj3 = 0 ;
38389 PyObject * obj4 = 0 ;
38390 PyObject * obj5 = 0 ;
38391 char * kwnames[] = {
38392 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38393 };
38394
38395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38397 if (!SWIG_IsOK(res1)) {
38398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38399 }
38400 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38401 {
38402 arg2 = wxString_in_helper(obj1);
38403 if (arg2 == NULL) SWIG_fail;
38404 temp2 = true;
38405 }
38406 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
38407 if (!SWIG_IsOK(res3)) {
38408 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38409 }
38410 if (!argp3) {
38411 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38412 }
38413 arg3 = reinterpret_cast< wxBitmap * >(argp3);
38414 {
38415 arg4 = &temp4;
38416 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
38417 }
38418 if (obj4) {
38419 ecode5 = SWIG_AsVal_int(obj4, &val5);
38420 if (!SWIG_IsOK(ecode5)) {
38421 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
38422 }
38423 arg5 = static_cast< int >(val5);
38424 }
38425 if (obj5) {
38426 ecode6 = SWIG_AsVal_int(obj5, &val6);
38427 if (!SWIG_IsOK(ecode6)) {
38428 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
38429 }
38430 arg6 = static_cast< int >(val6);
38431 }
38432 {
38433 PyThreadState* __tstate = wxPyBeginAllowThreads();
38434 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
38435 wxPyEndAllowThreads(__tstate);
38436 if (PyErr_Occurred()) SWIG_fail;
38437 }
38438 resultobj = SWIG_Py_Void();
38439 {
38440 if (temp2)
38441 delete arg2;
38442 }
38443 return resultobj;
38444 fail:
38445 {
38446 if (temp2)
38447 delete arg2;
38448 }
38449 return NULL;
38450 }
38451
38452
38453 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38454 PyObject *resultobj = 0;
38455 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38456 int arg2 ;
38457 wxPoint *arg3 = (wxPoint *) 0 ;
38458 void *argp1 = 0 ;
38459 int res1 = 0 ;
38460 PyObject * obj0 = 0 ;
38461 PyObject * obj1 = 0 ;
38462 char * kwnames[] = {
38463 (char *) "self",(char *) "points", NULL
38464 };
38465
38466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
38467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38468 if (!SWIG_IsOK(res1)) {
38469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38470 }
38471 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38472 {
38473 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38474 if (arg3 == NULL) SWIG_fail;
38475 }
38476 {
38477 PyThreadState* __tstate = wxPyBeginAllowThreads();
38478 (arg1)->DrawSpline(arg2,arg3);
38479 wxPyEndAllowThreads(__tstate);
38480 if (PyErr_Occurred()) SWIG_fail;
38481 }
38482 resultobj = SWIG_Py_Void();
38483 {
38484 if (arg3) delete [] arg3;
38485 }
38486 return resultobj;
38487 fail:
38488 {
38489 if (arg3) delete [] arg3;
38490 }
38491 return NULL;
38492 }
38493
38494
38495 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38496 PyObject *resultobj = 0;
38497 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38498 void *argp1 = 0 ;
38499 int res1 = 0 ;
38500 PyObject *swig_obj[1] ;
38501
38502 if (!args) SWIG_fail;
38503 swig_obj[0] = args;
38504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38505 if (!SWIG_IsOK(res1)) {
38506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38507 }
38508 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38509 {
38510 PyThreadState* __tstate = wxPyBeginAllowThreads();
38511 (arg1)->Clear();
38512 wxPyEndAllowThreads(__tstate);
38513 if (PyErr_Occurred()) SWIG_fail;
38514 }
38515 resultobj = SWIG_Py_Void();
38516 return resultobj;
38517 fail:
38518 return NULL;
38519 }
38520
38521
38522 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38523 PyObject *resultobj = 0;
38524 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38525 wxFont *arg2 = 0 ;
38526 void *argp1 = 0 ;
38527 int res1 = 0 ;
38528 void *argp2 = 0 ;
38529 int res2 = 0 ;
38530 PyObject * obj0 = 0 ;
38531 PyObject * obj1 = 0 ;
38532 char * kwnames[] = {
38533 (char *) "self",(char *) "font", NULL
38534 };
38535
38536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
38537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38538 if (!SWIG_IsOK(res1)) {
38539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38540 }
38541 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38542 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
38543 if (!SWIG_IsOK(res2)) {
38544 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38545 }
38546 if (!argp2) {
38547 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38548 }
38549 arg2 = reinterpret_cast< wxFont * >(argp2);
38550 {
38551 PyThreadState* __tstate = wxPyBeginAllowThreads();
38552 (arg1)->SetFont((wxFont const &)*arg2);
38553 wxPyEndAllowThreads(__tstate);
38554 if (PyErr_Occurred()) SWIG_fail;
38555 }
38556 resultobj = SWIG_Py_Void();
38557 return resultobj;
38558 fail:
38559 return NULL;
38560 }
38561
38562
38563 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38564 PyObject *resultobj = 0;
38565 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38566 wxPen *arg2 = 0 ;
38567 void *argp1 = 0 ;
38568 int res1 = 0 ;
38569 void *argp2 = 0 ;
38570 int res2 = 0 ;
38571 PyObject * obj0 = 0 ;
38572 PyObject * obj1 = 0 ;
38573 char * kwnames[] = {
38574 (char *) "self",(char *) "pen", NULL
38575 };
38576
38577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
38578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38579 if (!SWIG_IsOK(res1)) {
38580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38581 }
38582 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38583 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
38584 if (!SWIG_IsOK(res2)) {
38585 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38586 }
38587 if (!argp2) {
38588 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38589 }
38590 arg2 = reinterpret_cast< wxPen * >(argp2);
38591 {
38592 PyThreadState* __tstate = wxPyBeginAllowThreads();
38593 (arg1)->SetPen((wxPen const &)*arg2);
38594 wxPyEndAllowThreads(__tstate);
38595 if (PyErr_Occurred()) SWIG_fail;
38596 }
38597 resultobj = SWIG_Py_Void();
38598 return resultobj;
38599 fail:
38600 return NULL;
38601 }
38602
38603
38604 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38605 PyObject *resultobj = 0;
38606 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38607 wxBrush *arg2 = 0 ;
38608 void *argp1 = 0 ;
38609 int res1 = 0 ;
38610 void *argp2 = 0 ;
38611 int res2 = 0 ;
38612 PyObject * obj0 = 0 ;
38613 PyObject * obj1 = 0 ;
38614 char * kwnames[] = {
38615 (char *) "self",(char *) "brush", NULL
38616 };
38617
38618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
38619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38620 if (!SWIG_IsOK(res1)) {
38621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38622 }
38623 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38624 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38625 if (!SWIG_IsOK(res2)) {
38626 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38627 }
38628 if (!argp2) {
38629 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38630 }
38631 arg2 = reinterpret_cast< wxBrush * >(argp2);
38632 {
38633 PyThreadState* __tstate = wxPyBeginAllowThreads();
38634 (arg1)->SetBrush((wxBrush const &)*arg2);
38635 wxPyEndAllowThreads(__tstate);
38636 if (PyErr_Occurred()) SWIG_fail;
38637 }
38638 resultobj = SWIG_Py_Void();
38639 return resultobj;
38640 fail:
38641 return NULL;
38642 }
38643
38644
38645 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38646 PyObject *resultobj = 0;
38647 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38648 wxBrush *arg2 = 0 ;
38649 void *argp1 = 0 ;
38650 int res1 = 0 ;
38651 void *argp2 = 0 ;
38652 int res2 = 0 ;
38653 PyObject * obj0 = 0 ;
38654 PyObject * obj1 = 0 ;
38655 char * kwnames[] = {
38656 (char *) "self",(char *) "brush", NULL
38657 };
38658
38659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38661 if (!SWIG_IsOK(res1)) {
38662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38663 }
38664 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38665 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38666 if (!SWIG_IsOK(res2)) {
38667 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38668 }
38669 if (!argp2) {
38670 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38671 }
38672 arg2 = reinterpret_cast< wxBrush * >(argp2);
38673 {
38674 PyThreadState* __tstate = wxPyBeginAllowThreads();
38675 (arg1)->SetBackground((wxBrush const &)*arg2);
38676 wxPyEndAllowThreads(__tstate);
38677 if (PyErr_Occurred()) SWIG_fail;
38678 }
38679 resultobj = SWIG_Py_Void();
38680 return resultobj;
38681 fail:
38682 return NULL;
38683 }
38684
38685
38686 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38687 PyObject *resultobj = 0;
38688 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38689 int arg2 ;
38690 void *argp1 = 0 ;
38691 int res1 = 0 ;
38692 int val2 ;
38693 int ecode2 = 0 ;
38694 PyObject * obj0 = 0 ;
38695 PyObject * obj1 = 0 ;
38696 char * kwnames[] = {
38697 (char *) "self",(char *) "mode", NULL
38698 };
38699
38700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38702 if (!SWIG_IsOK(res1)) {
38703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38704 }
38705 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38706 ecode2 = SWIG_AsVal_int(obj1, &val2);
38707 if (!SWIG_IsOK(ecode2)) {
38708 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38709 }
38710 arg2 = static_cast< int >(val2);
38711 {
38712 PyThreadState* __tstate = wxPyBeginAllowThreads();
38713 (arg1)->SetBackgroundMode(arg2);
38714 wxPyEndAllowThreads(__tstate);
38715 if (PyErr_Occurred()) SWIG_fail;
38716 }
38717 resultobj = SWIG_Py_Void();
38718 return resultobj;
38719 fail:
38720 return NULL;
38721 }
38722
38723
38724 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38725 PyObject *resultobj = 0;
38726 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38727 wxPalette *arg2 = 0 ;
38728 void *argp1 = 0 ;
38729 int res1 = 0 ;
38730 void *argp2 = 0 ;
38731 int res2 = 0 ;
38732 PyObject * obj0 = 0 ;
38733 PyObject * obj1 = 0 ;
38734 char * kwnames[] = {
38735 (char *) "self",(char *) "palette", NULL
38736 };
38737
38738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38740 if (!SWIG_IsOK(res1)) {
38741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38742 }
38743 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38744 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38745 if (!SWIG_IsOK(res2)) {
38746 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38747 }
38748 if (!argp2) {
38749 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38750 }
38751 arg2 = reinterpret_cast< wxPalette * >(argp2);
38752 {
38753 PyThreadState* __tstate = wxPyBeginAllowThreads();
38754 (arg1)->SetPalette((wxPalette const &)*arg2);
38755 wxPyEndAllowThreads(__tstate);
38756 if (PyErr_Occurred()) SWIG_fail;
38757 }
38758 resultobj = SWIG_Py_Void();
38759 return resultobj;
38760 fail:
38761 return NULL;
38762 }
38763
38764
38765 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38766 PyObject *resultobj = 0;
38767 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38768 wxColour *arg2 = 0 ;
38769 void *argp1 = 0 ;
38770 int res1 = 0 ;
38771 wxColour temp2 ;
38772 PyObject * obj0 = 0 ;
38773 PyObject * obj1 = 0 ;
38774 char * kwnames[] = {
38775 (char *) "self",(char *) "colour", NULL
38776 };
38777
38778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38780 if (!SWIG_IsOK(res1)) {
38781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38782 }
38783 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38784 {
38785 arg2 = &temp2;
38786 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38787 }
38788 {
38789 PyThreadState* __tstate = wxPyBeginAllowThreads();
38790 (arg1)->SetTextForeground((wxColour const &)*arg2);
38791 wxPyEndAllowThreads(__tstate);
38792 if (PyErr_Occurred()) SWIG_fail;
38793 }
38794 resultobj = SWIG_Py_Void();
38795 return resultobj;
38796 fail:
38797 return NULL;
38798 }
38799
38800
38801 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38802 PyObject *resultobj = 0;
38803 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38804 wxColour *arg2 = 0 ;
38805 void *argp1 = 0 ;
38806 int res1 = 0 ;
38807 wxColour temp2 ;
38808 PyObject * obj0 = 0 ;
38809 PyObject * obj1 = 0 ;
38810 char * kwnames[] = {
38811 (char *) "self",(char *) "colour", NULL
38812 };
38813
38814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38816 if (!SWIG_IsOK(res1)) {
38817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38818 }
38819 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38820 {
38821 arg2 = &temp2;
38822 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38823 }
38824 {
38825 PyThreadState* __tstate = wxPyBeginAllowThreads();
38826 (arg1)->SetTextBackground((wxColour const &)*arg2);
38827 wxPyEndAllowThreads(__tstate);
38828 if (PyErr_Occurred()) SWIG_fail;
38829 }
38830 resultobj = SWIG_Py_Void();
38831 return resultobj;
38832 fail:
38833 return NULL;
38834 }
38835
38836
38837 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38838 PyObject *resultobj = 0;
38839 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38840 int arg2 ;
38841 void *argp1 = 0 ;
38842 int res1 = 0 ;
38843 int val2 ;
38844 int ecode2 = 0 ;
38845 PyObject * obj0 = 0 ;
38846 PyObject * obj1 = 0 ;
38847 char * kwnames[] = {
38848 (char *) "self",(char *) "function", NULL
38849 };
38850
38851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38853 if (!SWIG_IsOK(res1)) {
38854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38855 }
38856 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38857 ecode2 = SWIG_AsVal_int(obj1, &val2);
38858 if (!SWIG_IsOK(ecode2)) {
38859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38860 }
38861 arg2 = static_cast< int >(val2);
38862 {
38863 PyThreadState* __tstate = wxPyBeginAllowThreads();
38864 (arg1)->SetLogicalFunction(arg2);
38865 wxPyEndAllowThreads(__tstate);
38866 if (PyErr_Occurred()) SWIG_fail;
38867 }
38868 resultobj = SWIG_Py_Void();
38869 return resultobj;
38870 fail:
38871 return NULL;
38872 }
38873
38874
38875 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38876 PyObject *obj;
38877 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38878 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38879 return SWIG_Py_Void();
38880 }
38881
38882 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38883 return SWIG_Python_InitShadowInstance(args);
38884 }
38885
38886 static PyMethodDef SwigMethods[] = {
38887 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38888 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38889 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38890 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38891 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38892 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38893 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38894 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38895 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38896 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38897 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38898 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
38899 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
38900 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
38901 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38902 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38903 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38904 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38905 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38906 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38907 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38908 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
38909 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38910 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38911 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38912 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38913 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38914 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38915 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38916 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
38917 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
38918 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38919 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38920 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38921 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38922 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38923 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38924 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38925 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38926 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
38927 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
38928 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38929 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38930 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38931 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38932 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38933 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38934 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38935 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38936 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38937 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38938 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38939 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38940 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38941 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38942 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38943 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38944 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38945 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38946 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38947 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38948 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38949 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
38950 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
38951 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
38952 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
38953 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38954 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38955 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38956 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38957 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38958 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38959 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38960 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38961 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
38962 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
38963 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38964 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38965 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38966 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38967 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38968 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38969 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38970 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38971 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38972 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38973 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38974 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38975 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38976 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38977 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38978 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38979 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
38980 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38981 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38982 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38983 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38984 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38985 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
38986 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38987 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38988 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38989 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38990 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38991 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38992 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38993 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38994 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38995 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38996 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38997 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38998 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38999 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
39000 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
39001 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
39002 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
39003 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
39004 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
39005 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
39006 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
39007 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39008 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
39009 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
39010 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39011 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39012 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
39013 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
39014 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
39015 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
39016 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
39017 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
39018 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
39019 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
39020 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
39021 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
39022 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
39023 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
39024 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
39025 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
39026 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
39027 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39028 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
39029 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
39030 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39031 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39032 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
39033 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
39034 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
39035 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
39036 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
39037 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
39038 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
39039 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
39040 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
39041 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
39042 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39043 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39044 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
39045 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
39046 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
39047 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
39048 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
39049 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39050 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39051 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39052 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39053 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
39054 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
39055 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39056 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
39057 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
39058 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
39059 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
39060 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
39061 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
39062 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
39063 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
39064 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
39065 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39066 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39067 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
39068 { (char *)"IconBundle_IsOk", (PyCFunction)_wrap_IconBundle_IsOk, METH_O, NULL},
39069 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39070 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39071 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39072 { (char *)"IconBundle_GetIconOfExactSize", (PyCFunction) _wrap_IconBundle_GetIconOfExactSize, METH_VARARGS | METH_KEYWORDS, NULL},
39073 { (char *)"IconBundle_GetIconCount", (PyCFunction)_wrap_IconBundle_GetIconCount, METH_O, NULL},
39074 { (char *)"IconBundle_GetIconByIndex", (PyCFunction) _wrap_IconBundle_GetIconByIndex, METH_VARARGS | METH_KEYWORDS, NULL},
39075 { (char *)"IconBundle_IsEmpty", (PyCFunction)_wrap_IconBundle_IsEmpty, METH_O, NULL},
39076 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
39077 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
39078 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
39079 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
39080 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39081 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
39082 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
39083 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
39084 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
39085 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
39086 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39087 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39088 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
39089 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
39090 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
39091 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39092 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
39093 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39094 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
39095 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
39096 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
39097 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
39098 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
39099 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39100 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
39101 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39102 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
39103 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
39104 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39105 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
39106 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
39107 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39108 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
39109 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
39110 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39111 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
39112 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39113 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39114 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
39115 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
39116 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
39117 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
39118 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
39119 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
39120 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
39121 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
39122 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
39123 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
39124 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
39125 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
39126 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
39127 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
39128 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
39129 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
39130 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
39131 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
39132 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
39133 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
39134 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
39135 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
39136 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
39137 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
39138 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
39139 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
39140 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
39141 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
39142 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39143 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39144 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39145 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39146 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39147 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39148 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39149 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39150 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
39151 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
39152 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
39153 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
39154 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
39155 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
39156 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
39157 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
39158 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
39159 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
39160 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
39161 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
39162 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39163 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
39164 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
39165 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
39166 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39167 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39168 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
39169 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
39170 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
39171 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39172 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39173 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
39174 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39175 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
39176 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
39177 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
39178 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
39179 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
39180 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39181 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
39182 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
39183 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
39184 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
39185 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
39186 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
39187 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
39188 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39189 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
39190 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
39191 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39192 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39193 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
39194 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39195 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39196 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
39197 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
39198 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
39199 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
39200 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
39201 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
39202 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
39203 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
39204 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
39205 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
39206 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
39207 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
39208 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
39209 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39210 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39211 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39212 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39213 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39214 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39215 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39216 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39217 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39218 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
39219 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
39220 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
39221 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
39222 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
39223 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
39224 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
39225 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
39226 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39227 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
39228 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
39229 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
39230 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
39231 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39232 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
39233 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
39234 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
39235 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
39236 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
39237 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
39238 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
39239 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
39240 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
39241 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
39242 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
39243 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
39244 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
39245 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
39246 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
39247 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
39248 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
39249 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
39250 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
39251 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
39252 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
39253 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
39254 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
39255 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
39256 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
39257 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
39258 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
39259 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
39260 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
39261 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
39262 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39263 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
39264 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39265 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
39266 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
39267 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
39268 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
39269 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
39270 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
39271 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
39272 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39273 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
39274 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
39275 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
39276 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
39277 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
39278 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
39279 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
39280 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
39281 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
39282 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
39283 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39284 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39285 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
39286 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
39287 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
39288 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
39289 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39290 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39291 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
39292 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
39293 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39294 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39295 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39296 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39297 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39298 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39299 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39300 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39301 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39302 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39303 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39304 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39305 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39306 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39307 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39308 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39309 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39310 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39311 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39312 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39313 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39314 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39315 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39316 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39317 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39318 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39319 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39320 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39321 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39322 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39323 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39324 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39325 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39326 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
39327 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39328 { (char *)"DC_StretchBlit", (PyCFunction) _wrap_DC_StretchBlit, METH_VARARGS | METH_KEYWORDS, NULL},
39329 { (char *)"DC_StretchBlitPointSize", (PyCFunction) _wrap_DC_StretchBlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39330 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39331 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39332 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39333 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39334 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
39335 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39336 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39337 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39338 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39339 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39340 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
39341 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
39342 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
39343 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
39344 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
39345 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39346 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39347 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39348 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39349 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39350 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39351 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
39352 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
39353 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
39354 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
39355 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
39356 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39357 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39358 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39359 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39360 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
39361 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
39362 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
39363 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
39364 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
39365 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
39366 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39367 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39368 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
39369 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
39370 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39371 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39372 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
39373 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
39374 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
39375 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
39376 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
39377 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
39378 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
39379 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
39380 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
39381 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
39382 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
39383 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
39384 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39385 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39386 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
39387 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
39388 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
39389 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
39390 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
39391 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
39392 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
39393 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
39394 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39395 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39396 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
39397 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
39398 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39399 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39400 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
39401 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
39402 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39403 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
39404 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
39405 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39406 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
39407 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
39408 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
39409 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
39410 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
39411 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
39412 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
39413 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
39414 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
39415 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
39416 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
39417 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
39418 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
39419 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
39420 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
39421 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39422 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
39423 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
39424 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
39425 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39426 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
39427 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
39428 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
39429 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39430 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
39431 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
39432 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
39433 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
39434 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
39435 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
39436 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
39437 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
39438 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
39439 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
39440 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
39441 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
39442 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
39443 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
39444 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
39445 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
39446 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
39447 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
39448 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
39449 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39450 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
39451 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
39452 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
39453 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
39454 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
39455 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
39456 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
39457 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
39458 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
39459 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
39460 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
39461 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39462 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
39463 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
39464 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
39465 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39466 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
39467 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
39468 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39469 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
39470 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
39471 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
39472 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
39473 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
39474 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
39475 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
39476 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
39477 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
39478 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
39479 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
39480 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
39481 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
39482 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
39483 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
39484 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
39485 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
39486 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
39487 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
39488 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
39489 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
39490 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
39491 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
39492 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
39493 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
39494 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
39495 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
39496 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
39497 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
39498 { (char *)"SVGFileDC_swigregister", SVGFileDC_swigregister, METH_VARARGS, NULL},
39499 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
39500 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
39501 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
39502 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
39503 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
39504 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
39505 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
39506 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
39507 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
39508 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
39509 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
39510 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
39511 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
39512 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
39513 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
39514 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
39515 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
39516 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
39517 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
39518 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
39519 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39520 { (char *)"GraphicsMatrix_Get", (PyCFunction)_wrap_GraphicsMatrix_Get, METH_O, NULL},
39521 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
39522 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39523 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
39524 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39525 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39526 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39527 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39528 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
39529 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
39530 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
39531 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
39532 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
39533 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
39534 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
39535 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
39536 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
39537 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
39538 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
39539 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39540 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39541 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39542 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39543 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39544 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39545 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
39546 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
39547 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
39548 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
39549 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
39550 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
39551 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
39552 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
39553 { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL},
39554 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
39555 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39556 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
39557 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39558 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39559 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39560 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39561 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39562 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39563 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
39564 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
39565 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39566 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
39567 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
39568 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
39569 { (char *)"GraphicsContext_GetLogicalFunction", (PyCFunction)_wrap_GraphicsContext_GetLogicalFunction, METH_O, NULL},
39570 { (char *)"GraphicsContext_SetLogicalFunction", (PyCFunction) _wrap_GraphicsContext_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39571 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39572 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39573 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39574 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39575 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39576 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
39577 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
39578 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
39579 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
39580 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
39581 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
39582 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
39583 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39584 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39585 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39586 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39587 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39588 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39589 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39590 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
39591 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
39592 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
39593 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39594 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39595 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39596 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39597 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
39598 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
39599 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
39600 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
39601 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
39602 { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL},
39603 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
39604 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39605 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
39606 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39607 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39608 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39609 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39610 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39611 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39612 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
39613 { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL},
39614 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
39615 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
39616 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
39617 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
39618 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
39619 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
39620 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
39621 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
39622 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
39623 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
39624 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39625 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39626 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39627 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39628 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
39629 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39630 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39631 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39632 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39633 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39634 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39635 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39636 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39637 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39638 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39639 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39640 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39641 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39642 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39643 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
39644 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39645 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39646 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39647 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39648 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39649 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39650 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39651 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39652 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39653 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39654 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39655 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39656 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39657 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39658 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
39659 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39660 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
39661 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39662 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
39663 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39664 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
39665 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
39666 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
39667 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
39668 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
39669 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
39670 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
39671 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
39672 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
39673 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
39674 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
39675 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
39676 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
39677 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
39678 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
39679 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
39680 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
39681 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
39682 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
39683 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
39684 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39685 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
39686 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39687 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39688 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39689 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
39690 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39691 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
39692 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
39693 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
39694 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
39695 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
39696 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39697 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39698 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39699 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
39700 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39701 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39702 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39703 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39704 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39705 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39706 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39707 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39708 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39709 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39710 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39711 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39712 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39713 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39714 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39715 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39716 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39717 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
39718 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39719 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39720 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39721 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39722 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39723 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39724 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39725 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
39726 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39727 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39728 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39729 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39730 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39731 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39732 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
39733 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39734 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39735 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
39736 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39737 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39738 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39739 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39740 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39741 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39742 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
39743 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39744 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39745 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39746 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39747 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39748 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39749 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39750 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39751 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39752 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
39753 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39754 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39755 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39756 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
39757 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39758 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39759 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39760 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39761 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39762 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39763 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39764 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39765 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39766 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39767 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39768 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39769 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39770 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39771 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39772 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39773 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39774 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39775 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39776 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39777 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39778 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39779 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39780 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39781 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39782 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39783 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39784 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39785 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39786 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39787 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39788 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39789 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39790 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39791 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39792 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39793 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39794 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39795 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39796 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39797 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39798 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39799 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39800 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39801 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39802 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39803 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39804 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39805 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39806 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39807 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39808 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39809 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39810 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39811 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39812 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
39813 { NULL, NULL, 0, NULL }
39814 };
39815
39816
39817 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39818
39819 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39820 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39821 }
39822 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39823 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39824 }
39825 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39826 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39827 }
39828 static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
39829 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39830 }
39831 static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
39832 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
39833 }
39834 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39835 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39836 }
39837 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
39838 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
39839 }
39840 static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
39841 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39842 }
39843 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
39844 return (void *)((wxLocale *) ((wxPyLocale *) x));
39845 }
39846 static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
39847 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
39848 }
39849 static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
39850 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
39851 }
39852 static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
39853 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39854 }
39855 static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
39856 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
39857 }
39858 static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
39859 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
39860 }
39861 static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
39862 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
39863 }
39864 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39865 return (void *)((wxGDIObject *) ((wxIcon *) x));
39866 }
39867 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39868 return (void *)((wxGDIObject *) ((wxPalette *) x));
39869 }
39870 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39871 return (void *)((wxGDIObject *) ((wxPen *) x));
39872 }
39873 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39874 return (void *)((wxGDIObject *) ((wxFont *) x));
39875 }
39876 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39877 return (void *)((wxGDIObject *) ((wxCursor *) x));
39878 }
39879 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39880 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39881 }
39882 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39883 return (void *)((wxGDIObject *) ((wxRegion *) x));
39884 }
39885 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39886 return (void *)((wxGDIObject *) ((wxBrush *) x));
39887 }
39888 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39889 return (void *)((wxDC *) ((wxPrinterDC *) x));
39890 }
39891 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39892 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39893 }
39894 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
39895 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39896 }
39897 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
39898 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39899 }
39900 static void *_p_wxSVGFileDCTo_p_wxDC(void *x) {
39901 return (void *)((wxDC *) ((wxSVGFileDC *) x));
39902 }
39903 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39904 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39905 }
39906 static void *_p_wxClientDCTo_p_wxDC(void *x) {
39907 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
39908 }
39909 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39910 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39911 }
39912 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39913 return (void *)((wxDC *) ((wxWindowDC *) x));
39914 }
39915 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39916 return (void *)((wxDC *) ((wxScreenDC *) x));
39917 }
39918 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
39919 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
39920 }
39921 static void *_p_wxGCDCTo_p_wxDC(void *x) {
39922 return (void *)((wxDC *) ((wxGCDC *) x));
39923 }
39924 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39925 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
39926 }
39927 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39928 return (void *)((wxDC *) ((wxMirrorDC *) x));
39929 }
39930 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39931 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39932 }
39933 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39934 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39935 }
39936 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39937 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39938 }
39939 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39940 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39941 }
39942 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39943 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39944 }
39945 static void *_p_wxPenTo_p_wxObject(void *x) {
39946 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39947 }
39948 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39949 return (void *)((wxObject *) ((wxRegionIterator *) x));
39950 }
39951 static void *_p_wxEventBlockerTo_p_wxObject(void *x) {
39952 return (void *)((wxObject *) (wxEvtHandler *) ((wxEventBlocker *) x));
39953 }
39954 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39955 return (void *)((wxObject *) ((wxSizerItem *) x));
39956 }
39957 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39958 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39959 }
39960 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39961 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39962 }
39963 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39964 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39965 }
39966 static void *_p_wxIconTo_p_wxObject(void *x) {
39967 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39968 }
39969 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39970 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39971 }
39972 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39973 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39974 }
39975 static void *_p_wxSizerTo_p_wxObject(void *x) {
39976 return (void *)((wxObject *) ((wxSizer *) x));
39977 }
39978 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39979 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39980 }
39981 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39982 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39983 }
39984 static void *_p_wxEventTo_p_wxObject(void *x) {
39985 return (void *)((wxObject *) ((wxEvent *) x));
39986 }
39987 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39988 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39989 }
39990 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39991 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39992 }
39993 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39994 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39995 }
39996 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39997 return (void *)((wxObject *) ((wxPseudoDC *) x));
39998 }
39999 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
40000 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
40001 }
40002 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
40003 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
40004 }
40005 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
40006 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
40007 }
40008 static void *_p_wxDCTo_p_wxObject(void *x) {
40009 return (void *)((wxObject *) ((wxDC *) x));
40010 }
40011 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
40012 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
40013 }
40014 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
40015 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
40016 }
40017 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
40018 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
40019 }
40020 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
40021 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
40022 }
40023 static void *_p_wxControlTo_p_wxObject(void *x) {
40024 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
40025 }
40026 static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
40027 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
40028 }
40029 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
40030 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
40031 }
40032 static void *_p_wxClientDCTo_p_wxObject(void *x) {
40033 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
40034 }
40035 static void *_p_wxFSFileTo_p_wxObject(void *x) {
40036 return (void *)((wxObject *) ((wxFSFile *) x));
40037 }
40038 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
40039 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
40040 }
40041 static void *_p_wxRegionTo_p_wxObject(void *x) {
40042 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
40043 }
40044 static void *_p_wxPySizerTo_p_wxObject(void *x) {
40045 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
40046 }
40047 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
40048 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
40049 }
40050 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
40051 return (void *)((wxObject *) ((wxGDIObject *) x));
40052 }
40053 static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
40054 return (void *)((wxObject *) ((wxGraphicsObject *) x));
40055 }
40056 static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
40057 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
40058 }
40059 static void *_p_wxEffectsTo_p_wxObject(void *x) {
40060 return (void *)((wxObject *) ((wxEffects *) x));
40061 }
40062 static void *_p_wxPyEventTo_p_wxObject(void *x) {
40063 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
40064 }
40065 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
40066 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
40067 }
40068 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
40069 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
40070 }
40071 static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
40072 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
40073 }
40074 static void *_p_wxShowEventTo_p_wxObject(void *x) {
40075 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
40076 }
40077 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
40078 return (void *)((wxObject *) ((wxMenuItem *) x));
40079 }
40080 static void *_p_wxDateEventTo_p_wxObject(void *x) {
40081 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
40082 }
40083 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
40084 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
40085 }
40086 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
40087 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
40088 }
40089 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
40090 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
40091 }
40092 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
40093 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
40094 }
40095 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
40096 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
40097 }
40098 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
40099 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
40100 }
40101 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
40102 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
40103 }
40104 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
40105 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
40106 }
40107 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
40108 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
40109 }
40110 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
40111 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
40112 }
40113 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
40114 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
40115 }
40116 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
40117 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
40118 }
40119 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
40120 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
40121 }
40122 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
40123 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
40124 }
40125 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
40126 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
40127 }
40128 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
40129 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
40130 }
40131 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
40132 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
40133 }
40134 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
40135 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
40136 }
40137 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
40138 return (void *)((wxObject *) ((wxImageHandler *) x));
40139 }
40140 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
40141 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
40142 }
40143 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
40144 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
40145 }
40146 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
40147 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
40148 }
40149 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
40150 return (void *)((wxObject *) ((wxEvtHandler *) x));
40151 }
40152 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
40153 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
40154 }
40155 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
40156 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
40157 }
40158 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
40159 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40160 }
40161 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
40162 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
40163 }
40164 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
40165 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
40166 }
40167 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
40168 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
40169 }
40170 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
40171 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
40172 }
40173 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
40174 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
40175 }
40176 static void *_p_wxImageTo_p_wxObject(void *x) {
40177 return (void *)((wxObject *) ((wxImage *) x));
40178 }
40179 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
40180 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
40181 }
40182 static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
40183 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
40184 }
40185 static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
40186 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
40187 }
40188 static void *_p_wxPaletteTo_p_wxObject(void *x) {
40189 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
40190 }
40191 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
40192 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
40193 }
40194 static void *_p_wxImageListTo_p_wxObject(void *x) {
40195 return (void *)((wxObject *) ((wxImageList *) x));
40196 }
40197 static void *_p_wxGCDCTo_p_wxObject(void *x) {
40198 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
40199 }
40200 static void *_p_wxCursorTo_p_wxObject(void *x) {
40201 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
40202 }
40203 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
40204 return (void *)((wxObject *) ((wxEncodingConverter *) x));
40205 }
40206 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
40207 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
40208 }
40209 static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
40210 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
40211 }
40212 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
40213 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
40214 }
40215 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
40216 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
40217 }
40218 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
40219 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
40220 }
40221 static void *_p_wxWindowTo_p_wxObject(void *x) {
40222 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
40223 }
40224 static void *_p_wxMenuTo_p_wxObject(void *x) {
40225 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
40226 }
40227 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
40228 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
40229 }
40230 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
40231 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
40232 }
40233 static void *_p_wxSVGFileDCTo_p_wxObject(void *x) {
40234 return (void *)((wxObject *) (wxDC *) ((wxSVGFileDC *) x));
40235 }
40236 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
40237 return (void *)((wxObject *) ((wxFileSystem *) x));
40238 }
40239 static void *_p_wxBitmapTo_p_wxObject(void *x) {
40240 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
40241 }
40242 static void *_p_wxMaskTo_p_wxObject(void *x) {
40243 return (void *)((wxObject *) ((wxMask *) x));
40244 }
40245 static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
40246 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40247 }
40248 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
40249 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
40250 }
40251 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
40252 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
40253 }
40254 static void *_p_wxPyAppTo_p_wxObject(void *x) {
40255 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
40256 }
40257 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
40258 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
40259 }
40260 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
40261 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
40262 }
40263 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
40264 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
40265 }
40266 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
40267 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
40268 }
40269 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
40270 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
40271 }
40272 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
40273 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
40274 }
40275 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
40276 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
40277 }
40278 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
40279 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
40280 }
40281 static void *_p_wxFontTo_p_wxObject(void *x) {
40282 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
40283 }
40284 static void *_p_wxBrushTo_p_wxObject(void *x) {
40285 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
40286 }
40287 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
40288 return (void *)((wxObject *) ((wxMetaFile *) x));
40289 }
40290 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
40291 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
40292 }
40293 static void *_p_wxColourTo_p_wxObject(void *x) {
40294 return (void *)((wxObject *) ((wxColour *) x));
40295 }
40296 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
40297 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
40298 }
40299 static void *_p_wxValidatorTo_p_wxObject(void *x) {
40300 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
40301 }
40302 static void *_p_wxControlTo_p_wxWindow(void *x) {
40303 return (void *)((wxWindow *) ((wxControl *) x));
40304 }
40305 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
40306 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
40307 }
40308 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
40309 return (void *)((wxWindow *) ((wxMenuBar *) x));
40310 }
40311 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
40312 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
40313 }
40314 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
40315 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
40316 }
40317 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
40318 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
40319 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
40320 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};
40321 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
40322 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
40323 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
40324 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
40325 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
40326 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
40327 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
40328 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
40329 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
40330 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
40331 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
40332 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
40333 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
40334 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
40335 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
40336 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
40337 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
40338 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
40339 static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
40340 static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
40341 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
40342 static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
40343 static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
40344 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
40345 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
40346 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
40347 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
40348 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
40349 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
40350 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
40351 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
40352 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
40353 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
40354 static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
40355 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
40356 static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
40357 static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
40358 static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
40359 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
40360 static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
40361 static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
40362 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
40363 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
40364 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
40365 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
40366 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
40367 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
40368 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
40369 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
40370 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
40371 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
40372 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
40373 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
40374 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
40375 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
40376 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
40377 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
40378 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
40379 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
40380 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
40381 static swig_type_info _swigt__p_wxEventBlocker = {"_p_wxEventBlocker", 0, 0, 0, 0, 0};
40382 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
40383 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
40384 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
40385 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
40386 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
40387 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
40388 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
40389 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
40390 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
40391 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
40392 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
40393 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
40394 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
40395 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
40396 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
40397 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
40398 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
40399 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
40400 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
40401 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
40402 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
40403 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
40404 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
40405 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
40406 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
40407 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
40408 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
40409 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
40410 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
40411 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
40412 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
40413 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
40414 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
40415 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
40416 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
40417 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
40418 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
40419 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
40420 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
40421 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
40422 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
40423 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
40424 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
40425 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
40426 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
40427 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
40428 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
40429 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
40430 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
40431 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
40432 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
40433 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
40434 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
40435 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
40436 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
40437 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
40438 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
40439 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
40440 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
40441 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
40442 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
40443 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
40444 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
40445 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
40446 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
40447 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
40448 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
40449 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
40450 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
40451 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
40452 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
40453 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
40454 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
40455 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
40456 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
40457 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
40458 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
40459 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
40460 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
40461 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
40462 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
40463 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
40464 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
40465 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
40466 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
40467 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
40468 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
40469 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
40470 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
40471 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
40472 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
40473 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
40474 static swig_type_info _swigt__p_wxRect2D = {"_p_wxRect2D", "wxRect2D *", 0, 0, (void*)0, 0};
40475 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
40476 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
40477 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
40478 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
40479 static swig_type_info _swigt__p_wxSVGFileDC = {"_p_wxSVGFileDC", "wxSVGFileDC *", 0, 0, (void*)0, 0};
40480 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
40481 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
40482 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
40483 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
40484 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
40485 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
40486 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
40487
40488 static swig_type_info *swig_type_initial[] = {
40489 &_swigt__p_buffer,
40490 &_swigt__p_char,
40491 &_swigt__p_double,
40492 &_swigt__p_form_ops_t,
40493 &_swigt__p_int,
40494 &_swigt__p_unsigned_char,
40495 &_swigt__p_unsigned_int,
40496 &_swigt__p_unsigned_long,
40497 &_swigt__p_void,
40498 &_swigt__p_wxANIHandler,
40499 &_swigt__p_wxAcceleratorTable,
40500 &_swigt__p_wxActivateEvent,
40501 &_swigt__p_wxAlphaPixelData,
40502 &_swigt__p_wxAlphaPixelData_Accessor,
40503 &_swigt__p_wxAutoBufferedPaintDC,
40504 &_swigt__p_wxBMPHandler,
40505 &_swigt__p_wxBitmap,
40506 &_swigt__p_wxBoxSizer,
40507 &_swigt__p_wxBrush,
40508 &_swigt__p_wxBrushList,
40509 &_swigt__p_wxBufferedDC,
40510 &_swigt__p_wxBufferedPaintDC,
40511 &_swigt__p_wxCURHandler,
40512 &_swigt__p_wxChildFocusEvent,
40513 &_swigt__p_wxClientDC,
40514 &_swigt__p_wxClipboardTextEvent,
40515 &_swigt__p_wxCloseEvent,
40516 &_swigt__p_wxColour,
40517 &_swigt__p_wxColourDatabase,
40518 &_swigt__p_wxCommandEvent,
40519 &_swigt__p_wxContextMenuEvent,
40520 &_swigt__p_wxControl,
40521 &_swigt__p_wxControlWithItems,
40522 &_swigt__p_wxCursor,
40523 &_swigt__p_wxDC,
40524 &_swigt__p_wxDCBrushChanger,
40525 &_swigt__p_wxDCClipper,
40526 &_swigt__p_wxDCOverlay,
40527 &_swigt__p_wxDCPenChanger,
40528 &_swigt__p_wxDCTextColourChanger,
40529 &_swigt__p_wxDash,
40530 &_swigt__p_wxDateEvent,
40531 &_swigt__p_wxDisplayChangedEvent,
40532 &_swigt__p_wxDropFilesEvent,
40533 &_swigt__p_wxDuplexMode,
40534 &_swigt__p_wxEffects,
40535 &_swigt__p_wxEncodingConverter,
40536 &_swigt__p_wxEraseEvent,
40537 &_swigt__p_wxEvent,
40538 &_swigt__p_wxEventBlocker,
40539 &_swigt__p_wxEvtHandler,
40540 &_swigt__p_wxFSFile,
40541 &_swigt__p_wxFileSystem,
40542 &_swigt__p_wxFlexGridSizer,
40543 &_swigt__p_wxFocusEvent,
40544 &_swigt__p_wxFont,
40545 &_swigt__p_wxFontList,
40546 &_swigt__p_wxFontMapper,
40547 &_swigt__p_wxGBSizerItem,
40548 &_swigt__p_wxGCDC,
40549 &_swigt__p_wxGDIObjListBase,
40550 &_swigt__p_wxGDIObject,
40551 &_swigt__p_wxGIFHandler,
40552 &_swigt__p_wxGraphicsBrush,
40553 &_swigt__p_wxGraphicsContext,
40554 &_swigt__p_wxGraphicsFont,
40555 &_swigt__p_wxGraphicsMatrix,
40556 &_swigt__p_wxGraphicsObject,
40557 &_swigt__p_wxGraphicsPath,
40558 &_swigt__p_wxGraphicsPen,
40559 &_swigt__p_wxGraphicsRenderer,
40560 &_swigt__p_wxGridBagSizer,
40561 &_swigt__p_wxGridSizer,
40562 &_swigt__p_wxHeaderButtonParams,
40563 &_swigt__p_wxICOHandler,
40564 &_swigt__p_wxIcon,
40565 &_swigt__p_wxIconBundle,
40566 &_swigt__p_wxIconLocation,
40567 &_swigt__p_wxIconizeEvent,
40568 &_swigt__p_wxIdleEvent,
40569 &_swigt__p_wxImage,
40570 &_swigt__p_wxImageHandler,
40571 &_swigt__p_wxImageList,
40572 &_swigt__p_wxIndividualLayoutConstraint,
40573 &_swigt__p_wxInitDialogEvent,
40574 &_swigt__p_wxJPEGHandler,
40575 &_swigt__p_wxKeyEvent,
40576 &_swigt__p_wxLanguageInfo,
40577 &_swigt__p_wxLayoutConstraints,
40578 &_swigt__p_wxLocale,
40579 &_swigt__p_wxMask,
40580 &_swigt__p_wxMaximizeEvent,
40581 &_swigt__p_wxMemoryDC,
40582 &_swigt__p_wxMenu,
40583 &_swigt__p_wxMenuBar,
40584 &_swigt__p_wxMenuEvent,
40585 &_swigt__p_wxMenuItem,
40586 &_swigt__p_wxMetaFile,
40587 &_swigt__p_wxMetaFileDC,
40588 &_swigt__p_wxMirrorDC,
40589 &_swigt__p_wxMouseCaptureChangedEvent,
40590 &_swigt__p_wxMouseCaptureLostEvent,
40591 &_swigt__p_wxMouseEvent,
40592 &_swigt__p_wxMoveEvent,
40593 &_swigt__p_wxNativeEncodingInfo,
40594 &_swigt__p_wxNativeFontInfo,
40595 &_swigt__p_wxNativePixelData,
40596 &_swigt__p_wxNativePixelData_Accessor,
40597 &_swigt__p_wxNavigationKeyEvent,
40598 &_swigt__p_wxNcPaintEvent,
40599 &_swigt__p_wxNotifyEvent,
40600 &_swigt__p_wxObject,
40601 &_swigt__p_wxOverlay,
40602 &_swigt__p_wxPCXHandler,
40603 &_swigt__p_wxPNGHandler,
40604 &_swigt__p_wxPNMHandler,
40605 &_swigt__p_wxPaintDC,
40606 &_swigt__p_wxPaintEvent,
40607 &_swigt__p_wxPalette,
40608 &_swigt__p_wxPaletteChangedEvent,
40609 &_swigt__p_wxPaperSize,
40610 &_swigt__p_wxPen,
40611 &_swigt__p_wxPenList,
40612 &_swigt__p_wxPixelDataBase,
40613 &_swigt__p_wxPoint,
40614 &_swigt__p_wxPoint2D,
40615 &_swigt__p_wxPostScriptDC,
40616 &_swigt__p_wxPrintData,
40617 &_swigt__p_wxPrinterDC,
40618 &_swigt__p_wxPseudoDC,
40619 &_swigt__p_wxPyApp,
40620 &_swigt__p_wxPyCommandEvent,
40621 &_swigt__p_wxPyEvent,
40622 &_swigt__p_wxPyFontEnumerator,
40623 &_swigt__p_wxPyImageHandler,
40624 &_swigt__p_wxPyLocale,
40625 &_swigt__p_wxPySizer,
40626 &_swigt__p_wxPyValidator,
40627 &_swigt__p_wxQueryNewPaletteEvent,
40628 &_swigt__p_wxRect,
40629 &_swigt__p_wxRect2D,
40630 &_swigt__p_wxRegion,
40631 &_swigt__p_wxRegionIterator,
40632 &_swigt__p_wxRendererNative,
40633 &_swigt__p_wxRendererVersion,
40634 &_swigt__p_wxSVGFileDC,
40635 &_swigt__p_wxScreenDC,
40636 &_swigt__p_wxScrollEvent,
40637 &_swigt__p_wxScrollWinEvent,
40638 &_swigt__p_wxSetCursorEvent,
40639 &_swigt__p_wxShowEvent,
40640 &_swigt__p_wxSize,
40641 &_swigt__p_wxSizeEvent,
40642 &_swigt__p_wxSizer,
40643 &_swigt__p_wxSizerItem,
40644 &_swigt__p_wxSplitterRenderParams,
40645 &_swigt__p_wxStaticBoxSizer,
40646 &_swigt__p_wxStdDialogButtonSizer,
40647 &_swigt__p_wxStockGDI,
40648 &_swigt__p_wxString,
40649 &_swigt__p_wxSysColourChangedEvent,
40650 &_swigt__p_wxTGAHandler,
40651 &_swigt__p_wxTIFFHandler,
40652 &_swigt__p_wxUpdateUIEvent,
40653 &_swigt__p_wxValidator,
40654 &_swigt__p_wxWindow,
40655 &_swigt__p_wxWindowCreateEvent,
40656 &_swigt__p_wxWindowDC,
40657 &_swigt__p_wxWindowDestroyEvent,
40658 &_swigt__p_wxXPMHandler,
40659 };
40660
40661 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
40662 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40663 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40664 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40665 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40666 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40667 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40668 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
40669 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
40670 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
40671 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
40672 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40673 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40674 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
40675 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
40676 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}};
40677 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40678 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}};
40679 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40680 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
40681 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
40682 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxSVGFileDC, _p_wxSVGFileDCTo_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}};
40683 static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
40684 static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
40685 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
40686 static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
40687 static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
40688 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
40689 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40690 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
40691 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
40692 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
40693 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
40694 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
40695 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
40696 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}};
40697 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}};
40698 static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
40699 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
40700 static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
40701 static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40702 static swig_cast_info _swigc__p_wxGraphicsObject[] = { {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsObject, 0, 0, 0}, {&_swigt__p_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxGraphicsObject, 0, 0},{0, 0, 0, 0}};
40703 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
40704 static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40705 static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
40706 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
40707 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40708 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40709 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40710 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40711 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40712 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
40713 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}};
40714 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
40715 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}};
40716 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40717 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40718 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40719 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40720 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
40721 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40722 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
40723 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
40724 static swig_cast_info _swigc__p_wxEventBlocker[] = {{&_swigt__p_wxEventBlocker, 0, 0, 0},{0, 0, 0, 0}};
40725 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
40726 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
40727 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40728 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40729 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40730 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40731 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40732 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40733 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40734 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40735 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
40736 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40737 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40738 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
40739 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
40740 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40741 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40742 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40743 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40744 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40745 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40746 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40747 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40748 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40749 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40750 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40751 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40752 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40753 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
40754 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40755 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40756 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40757 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40758 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40759 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40760 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
40761 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40762 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40763 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
40764 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
40765 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40766 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40767 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40768 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40769 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40770 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
40771 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
40772 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
40773 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
40774 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
40775 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40776 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40777 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
40778 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
40779 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
40780 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
40781 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40782 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40783 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40784 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40785 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40786 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40787 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40788 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40789 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40790 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40791 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40792 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40793 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40794 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40795 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40796 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40797 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40798 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40799 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40800 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
40801 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_wxEventBlocker, _p_wxEventBlockerTo_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_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_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_wxGraphicsPen, _p_wxGraphicsPenTo_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_wxGraphicsObject, _p_wxGraphicsObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_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_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_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_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_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_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsRenderer, _p_wxGraphicsRendererTo_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_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxObject, 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_wxSVGFileDC, _p_wxSVGFileDCTo_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_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_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}};
40802 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
40803 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40804 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40805 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40806 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40807 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
40808 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}};
40809 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
40810 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
40811 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40812 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40813 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
40814 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
40815 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
40816 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
40817 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
40818 static swig_cast_info _swigc__p_wxRect2D[] = { {&_swigt__p_wxRect2D, 0, 0, 0},{0, 0, 0, 0}};
40819 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40820 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40821 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40822 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40823 static swig_cast_info _swigc__p_wxSVGFileDC[] = { {&_swigt__p_wxSVGFileDC, 0, 0, 0},{0, 0, 0, 0}};
40824 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40825 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40826 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
40827 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
40828 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40829 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}};
40830 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
40831
40832 static swig_cast_info *swig_cast_initial[] = {
40833 _swigc__p_buffer,
40834 _swigc__p_char,
40835 _swigc__p_double,
40836 _swigc__p_form_ops_t,
40837 _swigc__p_int,
40838 _swigc__p_unsigned_char,
40839 _swigc__p_unsigned_int,
40840 _swigc__p_unsigned_long,
40841 _swigc__p_void,
40842 _swigc__p_wxANIHandler,
40843 _swigc__p_wxAcceleratorTable,
40844 _swigc__p_wxActivateEvent,
40845 _swigc__p_wxAlphaPixelData,
40846 _swigc__p_wxAlphaPixelData_Accessor,
40847 _swigc__p_wxAutoBufferedPaintDC,
40848 _swigc__p_wxBMPHandler,
40849 _swigc__p_wxBitmap,
40850 _swigc__p_wxBoxSizer,
40851 _swigc__p_wxBrush,
40852 _swigc__p_wxBrushList,
40853 _swigc__p_wxBufferedDC,
40854 _swigc__p_wxBufferedPaintDC,
40855 _swigc__p_wxCURHandler,
40856 _swigc__p_wxChildFocusEvent,
40857 _swigc__p_wxClientDC,
40858 _swigc__p_wxClipboardTextEvent,
40859 _swigc__p_wxCloseEvent,
40860 _swigc__p_wxColour,
40861 _swigc__p_wxColourDatabase,
40862 _swigc__p_wxCommandEvent,
40863 _swigc__p_wxContextMenuEvent,
40864 _swigc__p_wxControl,
40865 _swigc__p_wxControlWithItems,
40866 _swigc__p_wxCursor,
40867 _swigc__p_wxDC,
40868 _swigc__p_wxDCBrushChanger,
40869 _swigc__p_wxDCClipper,
40870 _swigc__p_wxDCOverlay,
40871 _swigc__p_wxDCPenChanger,
40872 _swigc__p_wxDCTextColourChanger,
40873 _swigc__p_wxDash,
40874 _swigc__p_wxDateEvent,
40875 _swigc__p_wxDisplayChangedEvent,
40876 _swigc__p_wxDropFilesEvent,
40877 _swigc__p_wxDuplexMode,
40878 _swigc__p_wxEffects,
40879 _swigc__p_wxEncodingConverter,
40880 _swigc__p_wxEraseEvent,
40881 _swigc__p_wxEvent,
40882 _swigc__p_wxEventBlocker,
40883 _swigc__p_wxEvtHandler,
40884 _swigc__p_wxFSFile,
40885 _swigc__p_wxFileSystem,
40886 _swigc__p_wxFlexGridSizer,
40887 _swigc__p_wxFocusEvent,
40888 _swigc__p_wxFont,
40889 _swigc__p_wxFontList,
40890 _swigc__p_wxFontMapper,
40891 _swigc__p_wxGBSizerItem,
40892 _swigc__p_wxGCDC,
40893 _swigc__p_wxGDIObjListBase,
40894 _swigc__p_wxGDIObject,
40895 _swigc__p_wxGIFHandler,
40896 _swigc__p_wxGraphicsBrush,
40897 _swigc__p_wxGraphicsContext,
40898 _swigc__p_wxGraphicsFont,
40899 _swigc__p_wxGraphicsMatrix,
40900 _swigc__p_wxGraphicsObject,
40901 _swigc__p_wxGraphicsPath,
40902 _swigc__p_wxGraphicsPen,
40903 _swigc__p_wxGraphicsRenderer,
40904 _swigc__p_wxGridBagSizer,
40905 _swigc__p_wxGridSizer,
40906 _swigc__p_wxHeaderButtonParams,
40907 _swigc__p_wxICOHandler,
40908 _swigc__p_wxIcon,
40909 _swigc__p_wxIconBundle,
40910 _swigc__p_wxIconLocation,
40911 _swigc__p_wxIconizeEvent,
40912 _swigc__p_wxIdleEvent,
40913 _swigc__p_wxImage,
40914 _swigc__p_wxImageHandler,
40915 _swigc__p_wxImageList,
40916 _swigc__p_wxIndividualLayoutConstraint,
40917 _swigc__p_wxInitDialogEvent,
40918 _swigc__p_wxJPEGHandler,
40919 _swigc__p_wxKeyEvent,
40920 _swigc__p_wxLanguageInfo,
40921 _swigc__p_wxLayoutConstraints,
40922 _swigc__p_wxLocale,
40923 _swigc__p_wxMask,
40924 _swigc__p_wxMaximizeEvent,
40925 _swigc__p_wxMemoryDC,
40926 _swigc__p_wxMenu,
40927 _swigc__p_wxMenuBar,
40928 _swigc__p_wxMenuEvent,
40929 _swigc__p_wxMenuItem,
40930 _swigc__p_wxMetaFile,
40931 _swigc__p_wxMetaFileDC,
40932 _swigc__p_wxMirrorDC,
40933 _swigc__p_wxMouseCaptureChangedEvent,
40934 _swigc__p_wxMouseCaptureLostEvent,
40935 _swigc__p_wxMouseEvent,
40936 _swigc__p_wxMoveEvent,
40937 _swigc__p_wxNativeEncodingInfo,
40938 _swigc__p_wxNativeFontInfo,
40939 _swigc__p_wxNativePixelData,
40940 _swigc__p_wxNativePixelData_Accessor,
40941 _swigc__p_wxNavigationKeyEvent,
40942 _swigc__p_wxNcPaintEvent,
40943 _swigc__p_wxNotifyEvent,
40944 _swigc__p_wxObject,
40945 _swigc__p_wxOverlay,
40946 _swigc__p_wxPCXHandler,
40947 _swigc__p_wxPNGHandler,
40948 _swigc__p_wxPNMHandler,
40949 _swigc__p_wxPaintDC,
40950 _swigc__p_wxPaintEvent,
40951 _swigc__p_wxPalette,
40952 _swigc__p_wxPaletteChangedEvent,
40953 _swigc__p_wxPaperSize,
40954 _swigc__p_wxPen,
40955 _swigc__p_wxPenList,
40956 _swigc__p_wxPixelDataBase,
40957 _swigc__p_wxPoint,
40958 _swigc__p_wxPoint2D,
40959 _swigc__p_wxPostScriptDC,
40960 _swigc__p_wxPrintData,
40961 _swigc__p_wxPrinterDC,
40962 _swigc__p_wxPseudoDC,
40963 _swigc__p_wxPyApp,
40964 _swigc__p_wxPyCommandEvent,
40965 _swigc__p_wxPyEvent,
40966 _swigc__p_wxPyFontEnumerator,
40967 _swigc__p_wxPyImageHandler,
40968 _swigc__p_wxPyLocale,
40969 _swigc__p_wxPySizer,
40970 _swigc__p_wxPyValidator,
40971 _swigc__p_wxQueryNewPaletteEvent,
40972 _swigc__p_wxRect,
40973 _swigc__p_wxRect2D,
40974 _swigc__p_wxRegion,
40975 _swigc__p_wxRegionIterator,
40976 _swigc__p_wxRendererNative,
40977 _swigc__p_wxRendererVersion,
40978 _swigc__p_wxSVGFileDC,
40979 _swigc__p_wxScreenDC,
40980 _swigc__p_wxScrollEvent,
40981 _swigc__p_wxScrollWinEvent,
40982 _swigc__p_wxSetCursorEvent,
40983 _swigc__p_wxShowEvent,
40984 _swigc__p_wxSize,
40985 _swigc__p_wxSizeEvent,
40986 _swigc__p_wxSizer,
40987 _swigc__p_wxSizerItem,
40988 _swigc__p_wxSplitterRenderParams,
40989 _swigc__p_wxStaticBoxSizer,
40990 _swigc__p_wxStdDialogButtonSizer,
40991 _swigc__p_wxStockGDI,
40992 _swigc__p_wxString,
40993 _swigc__p_wxSysColourChangedEvent,
40994 _swigc__p_wxTGAHandler,
40995 _swigc__p_wxTIFFHandler,
40996 _swigc__p_wxUpdateUIEvent,
40997 _swigc__p_wxValidator,
40998 _swigc__p_wxWindow,
40999 _swigc__p_wxWindowCreateEvent,
41000 _swigc__p_wxWindowDC,
41001 _swigc__p_wxWindowDestroyEvent,
41002 _swigc__p_wxXPMHandler,
41003 };
41004
41005
41006 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
41007
41008 static swig_const_info swig_const_table[] = {
41009 {0, 0, 0, 0.0, 0, 0}};
41010
41011 #ifdef __cplusplus
41012 }
41013 #endif
41014 /* -----------------------------------------------------------------------------
41015 * Type initialization:
41016 * This problem is tough by the requirement that no dynamic
41017 * memory is used. Also, since swig_type_info structures store pointers to
41018 * swig_cast_info structures and swig_cast_info structures store pointers back
41019 * to swig_type_info structures, we need some lookup code at initialization.
41020 * The idea is that swig generates all the structures that are needed.
41021 * The runtime then collects these partially filled structures.
41022 * The SWIG_InitializeModule function takes these initial arrays out of
41023 * swig_module, and does all the lookup, filling in the swig_module.types
41024 * array with the correct data and linking the correct swig_cast_info
41025 * structures together.
41026 *
41027 * The generated swig_type_info structures are assigned staticly to an initial
41028 * array. We just loop though that array, and handle each type individually.
41029 * First we lookup if this type has been already loaded, and if so, use the
41030 * loaded structure instead of the generated one. Then we have to fill in the
41031 * cast linked list. The cast data is initially stored in something like a
41032 * two-dimensional array. Each row corresponds to a type (there are the same
41033 * number of rows as there are in the swig_type_initial array). Each entry in
41034 * a column is one of the swig_cast_info structures for that type.
41035 * The cast_initial array is actually an array of arrays, because each row has
41036 * a variable number of columns. So to actually build the cast linked list,
41037 * we find the array of casts associated with the type, and loop through it
41038 * adding the casts to the list. The one last trick we need to do is making
41039 * sure the type pointer in the swig_cast_info struct is correct.
41040 *
41041 * First off, we lookup the cast->type name to see if it is already loaded.
41042 * There are three cases to handle:
41043 * 1) If the cast->type has already been loaded AND the type we are adding
41044 * casting info to has not been loaded (it is in this module), THEN we
41045 * replace the cast->type pointer with the type pointer that has already
41046 * been loaded.
41047 * 2) If BOTH types (the one we are adding casting info to, and the
41048 * cast->type) are loaded, THEN the cast info has already been loaded by
41049 * the previous module so we just ignore it.
41050 * 3) Finally, if cast->type has not already been loaded, then we add that
41051 * swig_cast_info to the linked list (because the cast->type) pointer will
41052 * be correct.
41053 * ----------------------------------------------------------------------------- */
41054
41055 #ifdef __cplusplus
41056 extern "C" {
41057 #if 0
41058 } /* c-mode */
41059 #endif
41060 #endif
41061
41062 #if 0
41063 #define SWIGRUNTIME_DEBUG
41064 #endif
41065
41066 SWIGRUNTIME void
41067 SWIG_InitializeModule(void *clientdata) {
41068 size_t i;
41069 swig_module_info *module_head;
41070 static int init_run = 0;
41071
41072 clientdata = clientdata;
41073
41074 if (init_run) return;
41075 init_run = 1;
41076
41077 /* Initialize the swig_module */
41078 swig_module.type_initial = swig_type_initial;
41079 swig_module.cast_initial = swig_cast_initial;
41080
41081 /* Try and load any already created modules */
41082 module_head = SWIG_GetModule(clientdata);
41083 if (module_head) {
41084 swig_module.next = module_head->next;
41085 module_head->next = &swig_module;
41086 } else {
41087 /* This is the first module loaded */
41088 swig_module.next = &swig_module;
41089 SWIG_SetModule(clientdata, &swig_module);
41090 }
41091
41092 /* Now work on filling in swig_module.types */
41093 #ifdef SWIGRUNTIME_DEBUG
41094 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
41095 #endif
41096 for (i = 0; i < swig_module.size; ++i) {
41097 swig_type_info *type = 0;
41098 swig_type_info *ret;
41099 swig_cast_info *cast;
41100
41101 #ifdef SWIGRUNTIME_DEBUG
41102 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41103 #endif
41104
41105 /* if there is another module already loaded */
41106 if (swig_module.next != &swig_module) {
41107 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
41108 }
41109 if (type) {
41110 /* Overwrite clientdata field */
41111 #ifdef SWIGRUNTIME_DEBUG
41112 printf("SWIG_InitializeModule: found type %s\n", type->name);
41113 #endif
41114 if (swig_module.type_initial[i]->clientdata) {
41115 type->clientdata = swig_module.type_initial[i]->clientdata;
41116 #ifdef SWIGRUNTIME_DEBUG
41117 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
41118 #endif
41119 }
41120 } else {
41121 type = swig_module.type_initial[i];
41122 }
41123
41124 /* Insert casting types */
41125 cast = swig_module.cast_initial[i];
41126 while (cast->type) {
41127 /* Don't need to add information already in the list */
41128 ret = 0;
41129 #ifdef SWIGRUNTIME_DEBUG
41130 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
41131 #endif
41132 if (swig_module.next != &swig_module) {
41133 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
41134 #ifdef SWIGRUNTIME_DEBUG
41135 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
41136 #endif
41137 }
41138 if (ret) {
41139 if (type == swig_module.type_initial[i]) {
41140 #ifdef SWIGRUNTIME_DEBUG
41141 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
41142 #endif
41143 cast->type = ret;
41144 ret = 0;
41145 } else {
41146 /* Check for casting already in the list */
41147 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
41148 #ifdef SWIGRUNTIME_DEBUG
41149 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
41150 #endif
41151 if (!ocast) ret = 0;
41152 }
41153 }
41154
41155 if (!ret) {
41156 #ifdef SWIGRUNTIME_DEBUG
41157 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
41158 #endif
41159 if (type->cast) {
41160 type->cast->prev = cast;
41161 cast->next = type->cast;
41162 }
41163 type->cast = cast;
41164 }
41165 cast++;
41166 }
41167 /* Set entry in modules->types array equal to the type */
41168 swig_module.types[i] = type;
41169 }
41170 swig_module.types[i] = 0;
41171
41172 #ifdef SWIGRUNTIME_DEBUG
41173 printf("**** SWIG_InitializeModule: Cast List ******\n");
41174 for (i = 0; i < swig_module.size; ++i) {
41175 int j = 0;
41176 swig_cast_info *cast = swig_module.cast_initial[i];
41177 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41178 while (cast->type) {
41179 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
41180 cast++;
41181 ++j;
41182 }
41183 printf("---- Total casts: %d\n",j);
41184 }
41185 printf("**** SWIG_InitializeModule: Cast List ******\n");
41186 #endif
41187 }
41188
41189 /* This function will propagate the clientdata field of type to
41190 * any new swig_type_info structures that have been added into the list
41191 * of equivalent types. It is like calling
41192 * SWIG_TypeClientData(type, clientdata) a second time.
41193 */
41194 SWIGRUNTIME void
41195 SWIG_PropagateClientData(void) {
41196 size_t i;
41197 swig_cast_info *equiv;
41198 static int init_run = 0;
41199
41200 if (init_run) return;
41201 init_run = 1;
41202
41203 for (i = 0; i < swig_module.size; i++) {
41204 if (swig_module.types[i]->clientdata) {
41205 equiv = swig_module.types[i]->cast;
41206 while (equiv) {
41207 if (!equiv->converter) {
41208 if (equiv->type && !equiv->type->clientdata)
41209 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
41210 }
41211 equiv = equiv->next;
41212 }
41213 }
41214 }
41215 }
41216
41217 #ifdef __cplusplus
41218 #if 0
41219 {
41220 /* c-mode */
41221 #endif
41222 }
41223 #endif
41224
41225
41226
41227 #ifdef __cplusplus
41228 extern "C" {
41229 #endif
41230
41231 /* Python-specific SWIG API */
41232 #define SWIG_newvarlink() SWIG_Python_newvarlink()
41233 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
41234 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
41235
41236 /* -----------------------------------------------------------------------------
41237 * global variable support code.
41238 * ----------------------------------------------------------------------------- */
41239
41240 typedef struct swig_globalvar {
41241 char *name; /* Name of global variable */
41242 PyObject *(*get_attr)(void); /* Return the current value */
41243 int (*set_attr)(PyObject *); /* Set the value */
41244 struct swig_globalvar *next;
41245 } swig_globalvar;
41246
41247 typedef struct swig_varlinkobject {
41248 PyObject_HEAD
41249 swig_globalvar *vars;
41250 } swig_varlinkobject;
41251
41252 SWIGINTERN PyObject *
41253 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
41254 return PyString_FromString("<Swig global variables>");
41255 }
41256
41257 SWIGINTERN PyObject *
41258 swig_varlink_str(swig_varlinkobject *v) {
41259 PyObject *str = PyString_FromString("(");
41260 swig_globalvar *var;
41261 for (var = v->vars; var; var=var->next) {
41262 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
41263 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
41264 }
41265 PyString_ConcatAndDel(&str,PyString_FromString(")"));
41266 return str;
41267 }
41268
41269 SWIGINTERN int
41270 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
41271 PyObject *str = swig_varlink_str(v);
41272 fprintf(fp,"Swig global variables ");
41273 fprintf(fp,"%s\n", PyString_AsString(str));
41274 Py_DECREF(str);
41275 return 0;
41276 }
41277
41278 SWIGINTERN void
41279 swig_varlink_dealloc(swig_varlinkobject *v) {
41280 swig_globalvar *var = v->vars;
41281 while (var) {
41282 swig_globalvar *n = var->next;
41283 free(var->name);
41284 free(var);
41285 var = n;
41286 }
41287 }
41288
41289 SWIGINTERN PyObject *
41290 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
41291 PyObject *res = NULL;
41292 swig_globalvar *var = v->vars;
41293 while (var) {
41294 if (strcmp(var->name,n) == 0) {
41295 res = (*var->get_attr)();
41296 break;
41297 }
41298 var = var->next;
41299 }
41300 if (res == NULL && !PyErr_Occurred()) {
41301 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
41302 }
41303 return res;
41304 }
41305
41306 SWIGINTERN int
41307 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
41308 int res = 1;
41309 swig_globalvar *var = v->vars;
41310 while (var) {
41311 if (strcmp(var->name,n) == 0) {
41312 res = (*var->set_attr)(p);
41313 break;
41314 }
41315 var = var->next;
41316 }
41317 if (res == 1 && !PyErr_Occurred()) {
41318 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
41319 }
41320 return res;
41321 }
41322
41323 SWIGINTERN PyTypeObject*
41324 swig_varlink_type(void) {
41325 static char varlink__doc__[] = "Swig var link object";
41326 static PyTypeObject varlink_type;
41327 static int type_init = 0;
41328 if (!type_init) {
41329 const PyTypeObject tmp
41330 = {
41331 PyObject_HEAD_INIT(NULL)
41332 0, /* Number of items in variable part (ob_size) */
41333 (char *)"swigvarlink", /* Type name (tp_name) */
41334 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
41335 0, /* Itemsize (tp_itemsize) */
41336 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
41337 (printfunc) swig_varlink_print, /* Print (tp_print) */
41338 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
41339 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
41340 0, /* tp_compare */
41341 (reprfunc) swig_varlink_repr, /* tp_repr */
41342 0, /* tp_as_number */
41343 0, /* tp_as_sequence */
41344 0, /* tp_as_mapping */
41345 0, /* tp_hash */
41346 0, /* tp_call */
41347 (reprfunc)swig_varlink_str, /* tp_str */
41348 0, /* tp_getattro */
41349 0, /* tp_setattro */
41350 0, /* tp_as_buffer */
41351 0, /* tp_flags */
41352 varlink__doc__, /* tp_doc */
41353 0, /* tp_traverse */
41354 0, /* tp_clear */
41355 0, /* tp_richcompare */
41356 0, /* tp_weaklistoffset */
41357 #if PY_VERSION_HEX >= 0x02020000
41358 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
41359 #endif
41360 #if PY_VERSION_HEX >= 0x02030000
41361 0, /* tp_del */
41362 #endif
41363 #ifdef COUNT_ALLOCS
41364 0,0,0,0 /* tp_alloc -> tp_next */
41365 #endif
41366 };
41367 varlink_type = tmp;
41368 varlink_type.ob_type = &PyType_Type;
41369 type_init = 1;
41370 }
41371 return &varlink_type;
41372 }
41373
41374 /* Create a variable linking object for use later */
41375 SWIGINTERN PyObject *
41376 SWIG_Python_newvarlink(void) {
41377 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
41378 if (result) {
41379 result->vars = 0;
41380 }
41381 return ((PyObject*) result);
41382 }
41383
41384 SWIGINTERN void
41385 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
41386 swig_varlinkobject *v = (swig_varlinkobject *) p;
41387 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
41388 if (gv) {
41389 size_t size = strlen(name)+1;
41390 gv->name = (char *)malloc(size);
41391 if (gv->name) {
41392 strncpy(gv->name,name,size);
41393 gv->get_attr = get_attr;
41394 gv->set_attr = set_attr;
41395 gv->next = v->vars;
41396 }
41397 }
41398 v->vars = gv;
41399 }
41400
41401 SWIGINTERN PyObject *
41402 SWIG_globals() {
41403 static PyObject *_SWIG_globals = 0;
41404 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
41405 return _SWIG_globals;
41406 }
41407
41408 /* -----------------------------------------------------------------------------
41409 * constants/methods manipulation
41410 * ----------------------------------------------------------------------------- */
41411
41412 /* Install Constants */
41413 SWIGINTERN void
41414 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
41415 PyObject *obj = 0;
41416 size_t i;
41417 for (i = 0; constants[i].type; ++i) {
41418 switch(constants[i].type) {
41419 case SWIG_PY_POINTER:
41420 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
41421 break;
41422 case SWIG_PY_BINARY:
41423 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
41424 break;
41425 default:
41426 obj = 0;
41427 break;
41428 }
41429 if (obj) {
41430 PyDict_SetItemString(d, constants[i].name, obj);
41431 Py_DECREF(obj);
41432 }
41433 }
41434 }
41435
41436 /* -----------------------------------------------------------------------------*/
41437 /* Fix SwigMethods to carry the callback ptrs when needed */
41438 /* -----------------------------------------------------------------------------*/
41439
41440 SWIGINTERN void
41441 SWIG_Python_FixMethods(PyMethodDef *methods,
41442 swig_const_info *const_table,
41443 swig_type_info **types,
41444 swig_type_info **types_initial) {
41445 size_t i;
41446 for (i = 0; methods[i].ml_name; ++i) {
41447 const char *c = methods[i].ml_doc;
41448 if (c && (c = strstr(c, "swig_ptr: "))) {
41449 int j;
41450 swig_const_info *ci = 0;
41451 const char *name = c + 10;
41452 for (j = 0; const_table[j].type; ++j) {
41453 if (strncmp(const_table[j].name, name,
41454 strlen(const_table[j].name)) == 0) {
41455 ci = &(const_table[j]);
41456 break;
41457 }
41458 }
41459 if (ci) {
41460 size_t shift = (ci->ptype) - types;
41461 swig_type_info *ty = types_initial[shift];
41462 size_t ldoc = (c - methods[i].ml_doc);
41463 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
41464 char *ndoc = (char*)malloc(ldoc + lptr + 10);
41465 if (ndoc) {
41466 char *buff = ndoc;
41467 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
41468 if (ptr) {
41469 strncpy(buff, methods[i].ml_doc, ldoc);
41470 buff += ldoc;
41471 strncpy(buff, "swig_ptr: ", 10);
41472 buff += 10;
41473 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
41474 methods[i].ml_doc = ndoc;
41475 }
41476 }
41477 }
41478 }
41479 }
41480 }
41481
41482 #ifdef __cplusplus
41483 }
41484 #endif
41485
41486 /* -----------------------------------------------------------------------------*
41487 * Partial Init method
41488 * -----------------------------------------------------------------------------*/
41489
41490 #ifdef __cplusplus
41491 extern "C"
41492 #endif
41493 SWIGEXPORT void SWIG_init(void) {
41494 PyObject *m, *d;
41495
41496 /* Fix SwigMethods to carry the callback ptrs when needed */
41497 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
41498
41499 m = Py_InitModule((char *) SWIG_name, SwigMethods);
41500 d = PyModule_GetDict(m);
41501
41502 SWIG_InitializeModule(0);
41503 SWIG_InstallConstants(d,swig_const_table);
41504
41505
41506 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
41507 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
41508 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
41509 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
41510 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
41511 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
41512 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
41513 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
41514 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
41515 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
41516 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
41517 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
41518 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
41519 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
41520 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
41521 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
41522 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
41523 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
41524 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
41525 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
41526 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
41527 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
41528 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
41529 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
41530 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
41531 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
41532 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
41533 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
41534 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
41535 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
41536 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
41537 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
41538 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
41539 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
41540 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
41541 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
41542 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
41543 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
41544 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
41545 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
41546 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
41547 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
41548 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
41549 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
41550 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
41551 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
41552 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
41553 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
41554 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
41555 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
41556 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
41557 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
41558 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
41559 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
41560 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
41561 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
41562 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
41563 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
41564 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
41565 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
41566 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
41567 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
41568 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
41569 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
41570 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
41571 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
41572 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
41573 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
41574 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
41575 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
41576 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
41577 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
41578 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
41579 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
41580 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
41581 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
41582 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
41583 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
41584 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
41585 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
41586 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
41587 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
41588 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
41589 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
41590 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
41591 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
41592 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
41593 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
41594 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
41595 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
41596 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
41597 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
41598 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
41599 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
41600 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
41601 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
41602 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
41603 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
41604 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
41605 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
41606 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
41607 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
41608 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
41609 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
41610 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
41611 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
41612 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
41613 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
41614 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
41615 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
41616 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
41617 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
41618 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
41619 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
41620 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
41621 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
41622 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
41623 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41624 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41625 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41626 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41627 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41628 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41629 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41630 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41631 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41632 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41633 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41634 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41635 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41636 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41637 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41638
41639 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41640
41641 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41642 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41643 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41644 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41645 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41646 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41647 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41648 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41649 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41650 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41651 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41652 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41653 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41654 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41655 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41656 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41657 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41658 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41659 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41660 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41661 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41662 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41663 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41664 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41665 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41666 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
41667 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
41668 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
41669 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
41670 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
41671 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
41672 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
41673 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
41674 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
41675 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
41676 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
41677 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
41678 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
41679 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
41680 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
41681 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
41682 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
41683 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
41684 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
41685 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
41686 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
41687 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
41688 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
41689 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
41690 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
41691 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
41692 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
41693 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
41694 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
41695 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
41696 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
41697 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
41698 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
41699 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
41700 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
41701 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41702 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41703 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41704 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41705 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41706 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41707 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41708 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41709 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41710 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41711 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41712 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41713 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41714 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41715 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41716 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41717 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41718 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41719 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41720 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41721 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41722 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41723 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41724 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41725 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41726 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41727 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41728 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41729 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41730 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41731 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41732 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41733 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41734 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41735 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41736 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41737 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41738 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41739 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41740 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41741 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41742 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41743 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41744 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41745 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41746 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41747 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41748 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41749 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41750 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41751 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41752 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41753 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41754 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41755 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41756 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41757 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41758 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41759 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41760 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41761 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41762 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41763 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41764 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41765 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41766 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41767 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41768 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41769 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41770 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41771 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41772 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41773 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41774 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41775 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41776 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41777 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41778 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41779 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41780 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41781 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41782 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41783 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41784 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41785 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41786 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41787 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41788 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41789 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41790 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41791 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41792 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41793 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41794 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41795 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41796 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41797 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41798 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41799 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41800 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41801 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41802 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41803 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41804 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41805 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41806 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41807 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41808 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41809 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41810 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41811 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41812 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41813 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41814 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41815 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41816 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41817 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41818 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41819 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41820 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41821 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41822 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41823 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41824 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41825 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41826 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41827 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41828 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41829 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41830 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41831 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41832 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41833 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41834 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41835 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41836 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41837 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41838 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41839 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41840 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41841 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41842 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41843 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41844 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41845 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41846 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41847 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41848 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41849 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41850 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41851 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41852 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
41853 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
41854 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
41855 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
41856 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
41857 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
41858 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
41859 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
41860 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
41861 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
41862 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
41863 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
41864 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
41865 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
41866 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
41867 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
41868 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
41869 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
41870 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
41871 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
41872 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
41873 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
41874 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
41875 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
41876 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41877 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41878 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41879 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41880 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41881 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41882 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41883 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41884 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41885 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41886 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41887 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41888 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
41889 SWIG_Python_SetConstant(d, "BUFFER_USES_SHARED_BUFFER",SWIG_From_int(static_cast< int >(wxBUFFER_USES_SHARED_BUFFER)));
41890 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41891 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41892 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41893 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
41894 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
41895 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
41896 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41897 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41898 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41899 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41900 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41901 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41902 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
41903 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41904 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41905 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41906 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41907 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41908 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41909 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41910 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41911 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41912 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41913 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41914 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41915 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41916 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41917 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41918 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41919 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41920 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41921 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41922 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41923 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41924 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41925 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41926 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41927 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41928 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41929 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41930 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41931 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41932 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41933 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41934 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41935 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41936 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41937 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
41938 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41939 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41940 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41941 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41942 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41943 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41944 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41945 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
41946 SWIG_addvarlink(SWIG_globals(),(char*)"NullIconBundle",NullIconBundle_get, NullIconBundle_set);
41947 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41948 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41949 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
41950 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
41951 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41952 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41953 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
41954 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
41955 SWIG_Python_SetConstant(d, "CONTROL_FLAT",SWIG_From_int(static_cast< int >(wxCONTROL_FLAT)));
41956 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41957 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41958 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41959 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41960 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41961 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41962 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
41963 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41964 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41965 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
41966 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41967 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41968
41969 // Work around a chicken/egg problem in drawlist.cpp
41970 wxPyDrawList_SetAPIPtr();
41971
41972 }
41973