]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
documentation updates
[wxWidgets.git] / wxPython / src / msw / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_buffer swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_double swig_types[2]
2469 #define SWIGTYPE_p_form_ops_t swig_types[3]
2470 #define SWIGTYPE_p_int swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480 #define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481 #define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482 #define SWIGTYPE_p_wxBitmap swig_types[16]
2483 #define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484 #define SWIGTYPE_p_wxBrush swig_types[18]
2485 #define SWIGTYPE_p_wxBrushList swig_types[19]
2486 #define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488 #define SWIGTYPE_p_wxCURHandler swig_types[22]
2489 #define SWIGTYPE_p_wxChar swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxClientDC swig_types[25]
2492 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493 #define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494 #define SWIGTYPE_p_wxColor swig_types[28]
2495 #define SWIGTYPE_p_wxColour swig_types[29]
2496 #define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497 #define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498 #define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499 #define SWIGTYPE_p_wxControl swig_types[33]
2500 #define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501 #define SWIGTYPE_p_wxCursor swig_types[35]
2502 #define SWIGTYPE_p_wxDC swig_types[36]
2503 #define SWIGTYPE_p_wxDCBrushChanger swig_types[37]
2504 #define SWIGTYPE_p_wxDCClipper swig_types[38]
2505 #define SWIGTYPE_p_wxDCOverlay swig_types[39]
2506 #define SWIGTYPE_p_wxDCPenChanger swig_types[40]
2507 #define SWIGTYPE_p_wxDCTextColourChanger swig_types[41]
2508 #define SWIGTYPE_p_wxDash swig_types[42]
2509 #define SWIGTYPE_p_wxDateEvent swig_types[43]
2510 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2511 #define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2512 #define SWIGTYPE_p_wxDuplexMode swig_types[46]
2513 #define SWIGTYPE_p_wxEffects swig_types[47]
2514 #define SWIGTYPE_p_wxEncodingConverter swig_types[48]
2515 #define SWIGTYPE_p_wxEraseEvent swig_types[49]
2516 #define SWIGTYPE_p_wxEvent swig_types[50]
2517 #define SWIGTYPE_p_wxEvtHandler swig_types[51]
2518 #define SWIGTYPE_p_wxFSFile swig_types[52]
2519 #define SWIGTYPE_p_wxFileSystem swig_types[53]
2520 #define SWIGTYPE_p_wxFlexGridSizer swig_types[54]
2521 #define SWIGTYPE_p_wxFocusEvent swig_types[55]
2522 #define SWIGTYPE_p_wxFont swig_types[56]
2523 #define SWIGTYPE_p_wxFontList swig_types[57]
2524 #define SWIGTYPE_p_wxFontMapper swig_types[58]
2525 #define SWIGTYPE_p_wxGBSizerItem swig_types[59]
2526 #define SWIGTYPE_p_wxGCDC swig_types[60]
2527 #define SWIGTYPE_p_wxGDIObjListBase swig_types[61]
2528 #define SWIGTYPE_p_wxGDIObject swig_types[62]
2529 #define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530 #define SWIGTYPE_p_wxGraphicsBrush swig_types[64]
2531 #define SWIGTYPE_p_wxGraphicsContext swig_types[65]
2532 #define SWIGTYPE_p_wxGraphicsFont swig_types[66]
2533 #define SWIGTYPE_p_wxGraphicsMatrix swig_types[67]
2534 #define SWIGTYPE_p_wxGraphicsObject swig_types[68]
2535 #define SWIGTYPE_p_wxGraphicsPath swig_types[69]
2536 #define SWIGTYPE_p_wxGraphicsPen swig_types[70]
2537 #define SWIGTYPE_p_wxGraphicsRenderer swig_types[71]
2538 #define SWIGTYPE_p_wxGridBagSizer swig_types[72]
2539 #define SWIGTYPE_p_wxGridSizer swig_types[73]
2540 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[74]
2541 #define SWIGTYPE_p_wxICOHandler swig_types[75]
2542 #define SWIGTYPE_p_wxIcon swig_types[76]
2543 #define SWIGTYPE_p_wxIconBundle swig_types[77]
2544 #define SWIGTYPE_p_wxIconLocation swig_types[78]
2545 #define SWIGTYPE_p_wxIconizeEvent swig_types[79]
2546 #define SWIGTYPE_p_wxIdleEvent swig_types[80]
2547 #define SWIGTYPE_p_wxImage swig_types[81]
2548 #define SWIGTYPE_p_wxImageHandler swig_types[82]
2549 #define SWIGTYPE_p_wxImageList swig_types[83]
2550 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[84]
2551 #define SWIGTYPE_p_wxInitDialogEvent swig_types[85]
2552 #define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553 #define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554 #define SWIGTYPE_p_wxLanguageInfo swig_types[88]
2555 #define SWIGTYPE_p_wxLayoutConstraints swig_types[89]
2556 #define SWIGTYPE_p_wxLocale swig_types[90]
2557 #define SWIGTYPE_p_wxMask swig_types[91]
2558 #define SWIGTYPE_p_wxMaximizeEvent swig_types[92]
2559 #define SWIGTYPE_p_wxMemoryDC swig_types[93]
2560 #define SWIGTYPE_p_wxMenu swig_types[94]
2561 #define SWIGTYPE_p_wxMenuBar swig_types[95]
2562 #define SWIGTYPE_p_wxMenuEvent swig_types[96]
2563 #define SWIGTYPE_p_wxMenuItem swig_types[97]
2564 #define SWIGTYPE_p_wxMetaFile swig_types[98]
2565 #define SWIGTYPE_p_wxMetaFileDC swig_types[99]
2566 #define SWIGTYPE_p_wxMirrorDC swig_types[100]
2567 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569 #define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570 #define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[105]
2572 #define SWIGTYPE_p_wxNativeFontInfo swig_types[106]
2573 #define SWIGTYPE_p_wxNativePixelData swig_types[107]
2574 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[108]
2575 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[109]
2576 #define SWIGTYPE_p_wxNcPaintEvent swig_types[110]
2577 #define SWIGTYPE_p_wxNotifyEvent swig_types[111]
2578 #define SWIGTYPE_p_wxObject swig_types[112]
2579 #define SWIGTYPE_p_wxOverlay swig_types[113]
2580 #define SWIGTYPE_p_wxPCXHandler swig_types[114]
2581 #define SWIGTYPE_p_wxPNGHandler swig_types[115]
2582 #define SWIGTYPE_p_wxPNMHandler swig_types[116]
2583 #define SWIGTYPE_p_wxPaintDC swig_types[117]
2584 #define SWIGTYPE_p_wxPaintEvent swig_types[118]
2585 #define SWIGTYPE_p_wxPalette swig_types[119]
2586 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[120]
2587 #define SWIGTYPE_p_wxPaperSize swig_types[121]
2588 #define SWIGTYPE_p_wxPen swig_types[122]
2589 #define SWIGTYPE_p_wxPenList swig_types[123]
2590 #define SWIGTYPE_p_wxPixelDataBase swig_types[124]
2591 #define SWIGTYPE_p_wxPoint swig_types[125]
2592 #define SWIGTYPE_p_wxPoint2D swig_types[126]
2593 #define SWIGTYPE_p_wxPoint2DDouble swig_types[127]
2594 #define SWIGTYPE_p_wxPostScriptDC swig_types[128]
2595 #define SWIGTYPE_p_wxPrintData swig_types[129]
2596 #define SWIGTYPE_p_wxPrinterDC swig_types[130]
2597 #define SWIGTYPE_p_wxPseudoDC swig_types[131]
2598 #define SWIGTYPE_p_wxPyApp swig_types[132]
2599 #define SWIGTYPE_p_wxPyCommandEvent swig_types[133]
2600 #define SWIGTYPE_p_wxPyEvent swig_types[134]
2601 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[135]
2602 #define SWIGTYPE_p_wxPyImageHandler swig_types[136]
2603 #define SWIGTYPE_p_wxPyLocale swig_types[137]
2604 #define SWIGTYPE_p_wxPySizer swig_types[138]
2605 #define SWIGTYPE_p_wxPyValidator swig_types[139]
2606 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[140]
2607 #define SWIGTYPE_p_wxRect swig_types[141]
2608 #define SWIGTYPE_p_wxRect2DDouble swig_types[142]
2609 #define SWIGTYPE_p_wxRegion swig_types[143]
2610 #define SWIGTYPE_p_wxRegionIterator swig_types[144]
2611 #define SWIGTYPE_p_wxRendererNative swig_types[145]
2612 #define SWIGTYPE_p_wxRendererVersion swig_types[146]
2613 #define SWIGTYPE_p_wxScreenDC swig_types[147]
2614 #define SWIGTYPE_p_wxScrollEvent swig_types[148]
2615 #define SWIGTYPE_p_wxScrollWinEvent swig_types[149]
2616 #define SWIGTYPE_p_wxSetCursorEvent swig_types[150]
2617 #define SWIGTYPE_p_wxShowEvent swig_types[151]
2618 #define SWIGTYPE_p_wxSize swig_types[152]
2619 #define SWIGTYPE_p_wxSizeEvent swig_types[153]
2620 #define SWIGTYPE_p_wxSizer swig_types[154]
2621 #define SWIGTYPE_p_wxSizerItem swig_types[155]
2622 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[156]
2623 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[157]
2624 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[158]
2625 #define SWIGTYPE_p_wxStockGDI swig_types[159]
2626 #define SWIGTYPE_p_wxString swig_types[160]
2627 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[161]
2628 #define SWIGTYPE_p_wxTGAHandler swig_types[162]
2629 #define SWIGTYPE_p_wxTIFFHandler swig_types[163]
2630 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[164]
2631 #define SWIGTYPE_p_wxValidator swig_types[165]
2632 #define SWIGTYPE_p_wxWindow swig_types[166]
2633 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[167]
2634 #define SWIGTYPE_p_wxWindowDC swig_types[168]
2635 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[169]
2636 #define SWIGTYPE_p_wxXPMHandler swig_types[170]
2637 static swig_type_info *swig_types[172];
2638 static swig_module_info swig_module = {swig_types, 171, 0, 0, 0, 0};
2639 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2640 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2641
2642 /* -------- TYPES TABLE (END) -------- */
2643
2644 #if (PY_VERSION_HEX <= 0x02000000)
2645 # if !defined(SWIG_PYTHON_CLASSIC)
2646 # error "This python version requires to use swig with the '-classic' option"
2647 # endif
2648 #endif
2649 #if (PY_VERSION_HEX <= 0x02020000)
2650 # error "This python version requires to use swig with the '-nomodern' option"
2651 #endif
2652 #if (PY_VERSION_HEX <= 0x02020000)
2653 # error "This python version requires to use swig with the '-nomodernargs' option"
2654 #endif
2655 #ifndef METH_O
2656 # error "This python version requires to use swig with the '-nofastunpack' option"
2657 #endif
2658
2659 /*-----------------------------------------------
2660 @(target):= _gdi_.so
2661 ------------------------------------------------*/
2662 #define SWIG_init init_gdi_
2663
2664 #define SWIG_name "_gdi_"
2665
2666 #define SWIGVERSION 0x010329
2667
2668
2669 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2670 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2671
2672
2673 #include <stdexcept>
2674
2675
2676 namespace swig {
2677 class PyObject_ptr {
2678 protected:
2679 PyObject *_obj;
2680
2681 public:
2682 PyObject_ptr() :_obj(0)
2683 {
2684 }
2685
2686 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2687 {
2688 Py_XINCREF(_obj);
2689 }
2690
2691 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2692 {
2693 if (initial_ref) Py_XINCREF(_obj);
2694 }
2695
2696 PyObject_ptr & operator=(const PyObject_ptr& item)
2697 {
2698 Py_XINCREF(item._obj);
2699 Py_XDECREF(_obj);
2700 _obj = item._obj;
2701 return *this;
2702 }
2703
2704 ~PyObject_ptr()
2705 {
2706 Py_XDECREF(_obj);
2707 }
2708
2709 operator PyObject *() const
2710 {
2711 return _obj;
2712 }
2713
2714 PyObject *operator->() const
2715 {
2716 return _obj;
2717 }
2718 };
2719 }
2720
2721
2722 namespace swig {
2723 struct PyObject_var : PyObject_ptr {
2724 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2725
2726 PyObject_var & operator = (PyObject* obj)
2727 {
2728 Py_XDECREF(_obj);
2729 _obj = obj;
2730 return *this;
2731 }
2732 };
2733 }
2734
2735
2736 #include "wx/wxPython/wxPython.h"
2737 #include "wx/wxPython/pyclasses.h"
2738
2739
2740 static const wxString wxPyEmptyString(wxEmptyString);
2741
2742 #define SWIG_From_long PyInt_FromLong
2743
2744
2745 SWIGINTERNINLINE PyObject *
2746 SWIG_From_int (int value)
2747 {
2748 return SWIG_From_long (value);
2749 }
2750
2751
2752 #include <limits.h>
2753 #ifndef LLONG_MIN
2754 # define LLONG_MIN LONG_LONG_MIN
2755 #endif
2756 #ifndef LLONG_MAX
2757 # define LLONG_MAX LONG_LONG_MAX
2758 #endif
2759 #ifndef ULLONG_MAX
2760 # define ULLONG_MAX ULONG_LONG_MAX
2761 #endif
2762
2763
2764 SWIGINTERN int
2765 SWIG_AsVal_long (PyObject* obj, long* val)
2766 {
2767 if (PyNumber_Check(obj)) {
2768 if (val) *val = PyInt_AsLong(obj);
2769 return SWIG_OK;
2770 }
2771 return SWIG_TypeError;
2772 }
2773
2774
2775 SWIGINTERN int
2776 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2777 {
2778 long v = 0;
2779 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2780 return SWIG_TypeError;
2781 }
2782 else if (val)
2783 *val = (unsigned long)v;
2784 return SWIG_OK;
2785 }
2786
2787
2788 SWIGINTERN int
2789 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2790 {
2791 unsigned long v;
2792 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2793 if (SWIG_IsOK(res)) {
2794 if ((v > UCHAR_MAX)) {
2795 return SWIG_OverflowError;
2796 } else {
2797 if (val) *val = static_cast< unsigned char >(v);
2798 }
2799 }
2800 return res;
2801 }
2802
2803
2804 SWIGINTERNINLINE PyObject*
2805 SWIG_From_unsigned_SS_long (unsigned long value)
2806 {
2807 return (value > LONG_MAX) ?
2808 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2809 }
2810
2811
2812 SWIGINTERNINLINE PyObject *
2813 SWIG_From_unsigned_SS_char (unsigned char value)
2814 {
2815 return SWIG_From_unsigned_SS_long (value);
2816 }
2817
2818 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2819 wxColour temp, *obj = &temp;
2820 if ( other == Py_None ) return false;
2821 if ( ! wxColour_helper(other, &obj) ) {
2822 PyErr_Clear();
2823 return false;
2824 }
2825 return self->operator==(*obj);
2826 }
2827 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2828 wxColour temp, *obj = &temp;
2829 if ( other == Py_None ) return true;
2830 if ( ! wxColour_helper(other, &obj)) {
2831 PyErr_Clear();
2832 return true;
2833 }
2834 return self->operator!=(*obj);
2835 }
2836
2837 SWIGINTERN int
2838 SWIG_AsVal_bool (PyObject *obj, bool *val)
2839 {
2840 if (obj == Py_True) {
2841 if (val) *val = true;
2842 return SWIG_OK;
2843 } else if (obj == Py_False) {
2844 if (val) *val = false;
2845 return SWIG_OK;
2846 } else {
2847 long v = 0;
2848 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2849 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2850 return res;
2851 }
2852 }
2853
2854 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2855 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2856 int red = -1;
2857 int green = -1;
2858 int blue = -1;
2859 int alpha = wxALPHA_OPAQUE;
2860 if (self->IsOk()) {
2861 red = self->Red();
2862 green = self->Green();
2863 blue = self->Blue();
2864 alpha = self->Alpha();
2865 }
2866 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2867 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2868 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2869 if (includeAlpha)
2870 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2871 return rv;
2872 }
2873 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2874 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2875 }
2876
2877 SWIGINTERN int
2878 SWIG_AsVal_int (PyObject * obj, int *val)
2879 {
2880 long v;
2881 int res = SWIG_AsVal_long (obj, &v);
2882 if (SWIG_IsOK(res)) {
2883 if ((v < INT_MIN || v > INT_MAX)) {
2884 return SWIG_OverflowError;
2885 } else {
2886 if (val) *val = static_cast< int >(v);
2887 }
2888 }
2889 return res;
2890 }
2891
2892 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2893 wxDash* dashes;
2894 int count = self->GetDashes(&dashes);
2895 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2896 PyObject* retval = PyList_New(0);
2897 for (int x=0; x<count; x++) {
2898 PyObject* pyint = PyInt_FromLong(dashes[x]);
2899 PyList_Append(retval, pyint);
2900 Py_DECREF(pyint);
2901 }
2902 wxPyEndBlockThreads(blocked);
2903 return retval;
2904 }
2905 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2906 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2907 int size = PyList_Size(pyDashes);
2908 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2909
2910 // black magic warning! The array of wxDashes needs to exist as
2911 // long as the pen does because wxPen does not copy the array. So
2912 // stick a copy in a Python string object and attach it to _self,
2913 // and then call SetDashes with a pointer to that array. Then
2914 // when the Python pen object is destroyed the array will be
2915 // cleaned up too.
2916 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2917 PyObject_SetAttrString(_self, "_dashes", strDashes);
2918
2919 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2920 delete [] dashes;
2921 Py_DECREF(strDashes);
2922 wxPyEndBlockThreads(blocked);
2923 }
2924 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2925 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2926
2927 #include <wx/rawbmp.h>
2928
2929
2930 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2931 // appears to me that the other platforms are already doing it, so I'll just
2932 // automatically do it for wxMSW here.
2933 #ifdef __WXMSW__
2934 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2935 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2936 #else
2937 #define wxPy_premultiply(p, a) (p)
2938 #define wxPy_unpremultiply(p, a) (p)
2939 #endif
2940
2941
2942 #include <wx/image.h>
2943
2944 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2945 char** cArray = NULL;
2946 int count;
2947
2948 if (!PyList_Check(listOfStrings)) {
2949 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2950 return NULL;
2951 }
2952 count = PyList_Size(listOfStrings);
2953 cArray = new char*[count];
2954
2955 for(int x=0; x<count; x++) {
2956 // TODO: Need some validation and error checking here
2957 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2958 }
2959 return cArray;
2960 }
2961
2962
2963 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2964 char** cArray = NULL;
2965 wxBitmap* bmp;
2966
2967 cArray = ConvertListOfStrings(listOfStrings);
2968 if (! cArray)
2969 return NULL;
2970 bmp = new wxBitmap(cArray);
2971 delete [] cArray;
2972 return bmp;
2973 }
2974 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2975 char* buf;
2976 Py_ssize_t length;
2977 PyString_AsStringAndSize(bits, &buf, &length);
2978 return new wxBitmap(buf, width, height, depth);
2979 }
2980 SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2981 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2982 wxSize size(self->GetWidth(), self->GetHeight());
2983 return size;
2984 }
2985 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2986 wxMask *mask = new wxMask(*self, colour);
2987 self->SetMask(mask);
2988 }
2989 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2990 self->SetWidth(size.x);
2991 self->SetHeight(size.y);
2992 }
2993 SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
2994 int height=self->GetHeight();
2995 int width=self->GetWidth();
2996
2997 if (DATASIZE != width * height * 3) {
2998 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2999 }
3000 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3001 if (! pixData) {
3002 // raise an exception...
3003 wxPyErr_SetString(PyExc_RuntimeError,
3004 "Failed to gain raw access to bitmap data.");
3005 return;
3006 }
3007
3008 wxNativePixelData::Iterator p(pixData);
3009 for (int y=0; y<height; y++) {
3010 wxNativePixelData::Iterator rowStart = p;
3011 for (int x=0; x<width; x++) {
3012 p.Red() = *(data++);
3013 p.Green() = *(data++);
3014 p.Blue() = *(data++);
3015 ++p;
3016 }
3017 p = rowStart;
3018 p.OffsetY(pixData, 1);
3019 }
3020 }
3021 SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3022 int height=self->GetHeight();
3023 int width=self->GetWidth();
3024
3025 if (DATASIZE != width * height * 4) {
3026 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3027 }
3028 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3029 if (! pixData) {
3030 // raise an exception...
3031 wxPyErr_SetString(PyExc_RuntimeError,
3032 "Failed to gain raw access to bitmap data.");
3033 return;
3034 }
3035
3036 pixData.UseAlpha();
3037 wxAlphaPixelData::Iterator p(pixData);
3038 for (int y=0; y<height; y++) {
3039 wxAlphaPixelData::Iterator rowStart = p;
3040 for (int x=0; x<width; x++) {
3041 byte a = data[3];
3042 p.Red() = wxPy_premultiply(*(data++), a);
3043 p.Green() = wxPy_premultiply(*(data++), a);
3044 p.Blue() = wxPy_premultiply(*(data++), a);
3045 p.Alpha() = a; data++;
3046 ++p;
3047 }
3048 p = rowStart;
3049 p.OffsetY(pixData, 1);
3050 }
3051 }
3052 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3053 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
3054
3055 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3056 buffer data, int DATASIZE,
3057 buffer alpha, int ALPHASIZE)
3058 {
3059 if (DATASIZE != width*height*3) {
3060 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3061 return NULL;
3062 }
3063
3064 if (ALPHASIZE != width*height) {
3065 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3066 return NULL;
3067 }
3068
3069 wxBitmap* bmp = new wxBitmap(width, height, 32);
3070 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3071 if (! pixData) {
3072 // raise an exception...
3073 wxPyErr_SetString(PyExc_RuntimeError,
3074 "Failed to gain raw access to bitmap data.");
3075 return NULL;
3076 }
3077
3078 pixData.UseAlpha();
3079 wxAlphaPixelData::Iterator p(pixData);
3080 for (int y=0; y<height; y++) {
3081 wxAlphaPixelData::Iterator rowStart = p;
3082 for (int x=0; x<width; x++) {
3083 byte a = *(alpha++);
3084 p.Red() = wxPy_premultiply(*(data++), a);
3085 p.Green() = wxPy_premultiply(*(data++), a);
3086 p.Blue() = wxPy_premultiply(*(data++), a);
3087 p.Alpha() = a;
3088 ++p;
3089 }
3090 p = rowStart;
3091 p.OffsetY(pixData, 1);
3092 }
3093 return bmp;
3094 }
3095
3096 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3097 {
3098 if (DATASIZE != width*height*3) {
3099 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3100 return NULL;
3101 }
3102
3103 wxBitmap* bmp = new wxBitmap(width, height, 24);
3104 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3105 if (! pixData) {
3106 // raise an exception...
3107 wxPyErr_SetString(PyExc_RuntimeError,
3108 "Failed to gain raw access to bitmap data.");
3109 return NULL;
3110 }
3111
3112 wxNativePixelData::Iterator p(pixData);
3113 for (int y=0; y<height; y++) {
3114 wxNativePixelData::Iterator rowStart = p;
3115 for (int x=0; x<width; x++) {
3116 p.Red() = *(data++);
3117 p.Green() = *(data++);
3118 p.Blue() = *(data++);
3119 ++p;
3120 }
3121 p = rowStart;
3122 p.OffsetY(pixData, 1);
3123 }
3124 return bmp;
3125 }
3126
3127
3128 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3129 {
3130 if (DATASIZE != width*height*4) {
3131 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3132 return NULL;
3133 }
3134
3135 wxBitmap* bmp = new wxBitmap(width, height, 32);
3136 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3137 if (! pixData) {
3138 // raise an exception...
3139 wxPyErr_SetString(PyExc_RuntimeError,
3140 "Failed to gain raw access to bitmap data.");
3141 return NULL;
3142 }
3143
3144 pixData.UseAlpha();
3145 wxAlphaPixelData::Iterator p(pixData);
3146 for (int y=0; y<height; y++) {
3147 wxAlphaPixelData::Iterator rowStart = p;
3148 for (int x=0; x<width; x++) {
3149 byte a = data[3];
3150 p.Red() = wxPy_premultiply(*(data++), a);
3151 p.Green() = wxPy_premultiply(*(data++), a);
3152 p.Blue() = wxPy_premultiply(*(data++), a);
3153 p.Alpha() = a; data++;
3154 ++p;
3155 }
3156 p = rowStart;
3157 p.OffsetY(pixData, 1);
3158 }
3159 return bmp;
3160 }
3161
3162
3163 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3164
3165 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3166 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3167 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3168 self->Red() = red;
3169 self->Green() = green;
3170 self->Blue() = blue;
3171 }
3172 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3173 PyObject* rv = PyTuple_New(3);
3174 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3175 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3176 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3177 return rv;
3178 }
3179
3180 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3181
3182 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3183 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3184 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3185 self->Red() = wxPy_premultiply(red, alpha);
3186 self->Green() = wxPy_premultiply(green, alpha);
3187 self->Blue() = wxPy_premultiply(blue, alpha);
3188 self->Alpha() = alpha;
3189 }
3190 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3191 PyObject* rv = PyTuple_New(4);
3192 int red = self->Red();
3193 int green = self->Green();
3194 int blue = self->Blue();
3195 int alpha = self->Alpha();
3196
3197 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3198 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3199 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3200 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3201 return rv;
3202 }
3203 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3204 if ( !colour.IsOk() )
3205 return new wxMask(bitmap, *wxBLACK);
3206 else
3207 return new wxMask(bitmap, colour);
3208 }
3209
3210 #include <wx/iconbndl.h>
3211
3212 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3213 wxIcon* icon = new wxIcon();
3214 icon->CopyFromBitmap(bmp);
3215 return icon;
3216 }
3217 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3218 char** cArray = NULL;
3219 wxIcon* icon;
3220
3221 cArray = ConvertListOfStrings(listOfStrings);
3222 if (! cArray)
3223 return NULL;
3224 icon = new wxIcon(cArray);
3225 delete [] cArray;
3226 return icon;
3227 }
3228 SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3229 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3230
3231 return new wxIconLocation(*filename, num);
3232
3233
3234
3235 }
3236 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3237
3238 self->SetIndex(num);
3239
3240
3241
3242 }
3243 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3244
3245 return self->GetIndex();
3246
3247
3248
3249 }
3250 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3251 #ifdef __WXGTK__
3252 wxImage img(cursorName, type);
3253 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3254 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3255 return new wxCursor(img);
3256 #else
3257 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3258 #endif
3259 }
3260 SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3261
3262
3263 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3264 (*self) ++;
3265 }
3266 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3267 return self->operator bool();
3268 }
3269
3270 #include <wx/fontutil.h>
3271 #include <wx/fontmap.h>
3272 #include <wx/fontenum.h>
3273
3274 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3275 return self->ToString();
3276 }
3277
3278 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3279 { wxPyRaiseNotImplemented(); return NULL; }
3280
3281 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3282 { wxPyRaiseNotImplemented(); return false; }
3283
3284
3285 SWIGINTERNINLINE PyObject *
3286 SWIG_From_size_t (size_t value)
3287 {
3288 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3289 }
3290
3291
3292 SWIGINTERNINLINE int
3293 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3294 {
3295 unsigned long v;
3296 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3297 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3298 return res;
3299 }
3300
3301 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3302 wxFontEncoding alt_enc;
3303 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3304 return PyInt_FromLong(alt_enc);
3305 else {
3306 Py_INCREF(Py_None);
3307 return Py_None;
3308 }
3309 }
3310 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3311 wxNativeFontInfo nfi;
3312 nfi.FromString(info);
3313 return new wxFont(nfi);
3314 }
3315 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3316 return wxFont::New(pointSize, family, flags, face, encoding);
3317 }
3318 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3319 return wxFontBase::New(pixelSize, family,
3320 style, weight, underlined,
3321 face, encoding);
3322 }
3323 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3324 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3325 }
3326 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3327 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3328
3329 class wxPyFontEnumerator : public wxFontEnumerator {
3330 public:
3331 wxPyFontEnumerator() {}
3332 ~wxPyFontEnumerator() {}
3333
3334 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3335 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3336
3337 PYPRIVATE;
3338 };
3339
3340 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3341 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3342
3343
3344 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3345 PyObject* ret;
3346 wxArrayString arr = wxFontEnumerator::GetEncodings();
3347 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3348 ret = wxArrayString2PyList_helper(arr);
3349 wxPyEndBlockThreads(blocked);
3350 return ret;
3351 }
3352 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3353 PyObject* ret;
3354 wxArrayString arr = wxFontEnumerator::GetFacenames();
3355 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3356 ret = wxArrayString2PyList_helper(arr);
3357 wxPyEndBlockThreads(blocked);
3358 return ret;
3359 }
3360
3361 #include <locale.h>
3362
3363 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3364 wxLocale* loc;
3365 if (language == -1)
3366 loc = new wxLocale();
3367 else
3368 loc = new wxLocale(language, flags);
3369 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3370 // for the floating point conversions and such to work right.
3371 #if PY_VERSION_HEX < 0x02040000
3372 setlocale(LC_NUMERIC, "C");
3373 #endif
3374 return loc;
3375 }
3376 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3377 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3378 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3379 // for the floating point conversions and such to work right.
3380 #if PY_VERSION_HEX < 0x02040000
3381 setlocale(LC_NUMERIC, "C");
3382 #endif
3383 return rc;
3384 }
3385 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3386 bool rc = self->Init(language, flags);
3387 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3388 // for the floating point conversions and such to work right.
3389 #if PY_VERSION_HEX < 0x02040000
3390 setlocale(LC_NUMERIC, "C");
3391 #endif
3392 return rc;
3393 }
3394
3395 class wxPyLocale : public wxLocale
3396 {
3397 public:
3398 wxPyLocale();
3399
3400 wxPyLocale(const wxChar *szName, // name (for messages)
3401 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3402 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3403 bool bLoadDefault = true, // preload wxstd.mo?
3404 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3405
3406 wxPyLocale(int language, // wxLanguage id or custom language
3407 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3408
3409 ~wxPyLocale();
3410
3411 virtual const wxChar *GetString(const wxChar *szOrigString,
3412 const wxChar *szDomain = NULL) const;
3413 virtual const wxChar *GetString(const wxChar *szOrigString,
3414 const wxChar *szOrigString2, size_t n,
3415 const wxChar *szDomain = NULL) const;
3416
3417 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3418 const wxChar *szDomain = NULL) const;
3419 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3420 const wxChar *szOrigString2, size_t n,
3421 const wxChar *szDomain = NULL) const;
3422
3423 PYPRIVATE;
3424 private:
3425 DECLARE_NO_COPY_CLASS(wxPyLocale)
3426 };
3427
3428 wxPyLocale::wxPyLocale() : wxLocale()
3429 {
3430 }
3431
3432 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3433 const wxChar *szShort, // dir prefix (for msg files)
3434 const wxChar *szLocale, // locale (for setlocale)
3435 bool bLoadDefault, // preload wxstd.mo?
3436 bool bConvertEncoding) // convert Win<->Unix if necessary?
3437 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3438 {
3439 }
3440
3441 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3442 int flags) : wxLocale(language, flags)
3443 {
3444 }
3445
3446 wxPyLocale::~wxPyLocale()
3447 {
3448 }
3449
3450 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3451 const wxChar *szDomain) const
3452 {
3453 wxChar *str = GetSingularString(szOrigString, szDomain);
3454 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3455 }
3456
3457 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3458 const wxChar *szOrigString2, size_t n,
3459 const wxChar *szDomain) const
3460 {
3461 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3462 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3463 }
3464
3465 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3466 const wxChar *szDomain) const
3467 {
3468 bool found;
3469 static wxString str;
3470 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3471 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3472 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3473 PyObject* param1 = wx2PyString(szOrigString);
3474 PyObject* param2 = wx2PyString(szDomain);
3475 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3476 Py_DECREF(param1);
3477 Py_DECREF(param2);
3478 if (ret) {
3479 str = Py2wxString(ret);
3480 Py_DECREF(ret);
3481 }
3482 }
3483 wxPyEndBlockThreads(blocked);
3484 return (found ? (wxChar*)str.c_str() : NULL);
3485 }
3486
3487 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3488 const wxChar *szOrigString2, size_t n,
3489 const wxChar *szDomain) const
3490 {
3491 bool found;
3492 static wxString str;
3493 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3494 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3495 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3496 PyObject* param1 = wx2PyString(szOrigString);
3497 PyObject* param2 = wx2PyString(szOrigString2);
3498 PyObject* param4 = wx2PyString(szDomain);
3499 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3500 Py_DECREF(param1);
3501 Py_DECREF(param2);
3502 Py_DECREF(param4);
3503 if( ret) {
3504 str = Py2wxString(ret);
3505 Py_DECREF(ret);
3506 }
3507 }
3508 wxPyEndBlockThreads(blocked);
3509 return (found ? (wxChar*)str.c_str() : NULL);
3510 }
3511
3512 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3513 wxPyLocale* loc;
3514 if (language == -1)
3515 loc = new wxPyLocale();
3516 else
3517 loc = new wxPyLocale(language, flags);
3518 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3519 // for the floating point conversions and such to work right.
3520 #if PY_VERSION_HEX < 0x02040000
3521 setlocale(LC_NUMERIC, "C");
3522 #endif
3523 return loc;
3524 }
3525
3526 #include "wx/wxPython/pydrawxxx.h"
3527
3528 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3529 wxColour col;
3530 self->GetPixel(x, y, &col);
3531 return col;
3532 }
3533 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3534 wxColour col;
3535 self->GetPixel(pt, &col);
3536 return col;
3537 }
3538
3539 SWIGINTERN int
3540 SWIG_AsVal_double (PyObject *obj, double* val)
3541 {
3542 if (PyNumber_Check(obj)) {
3543 if (val) *val = PyFloat_AsDouble(obj);
3544 return SWIG_OK;
3545 }
3546 return SWIG_TypeError;
3547 }
3548
3549 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3550 wxRect rv;
3551 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3552 return rv;
3553 }
3554 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3555 wxRect rect;
3556 self->GetClippingBox(rect);
3557 return rect;
3558 }
3559 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3560 wxArrayInt widths;
3561 self->GetPartialTextExtents(text, widths);
3562 return widths;
3563 }
3564
3565 #define SWIG_From_double PyFloat_FromDouble
3566
3567 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3568 self->SetLogicalOrigin(point.x, point.y);
3569 }
3570 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3571 self->SetDeviceOrigin(point.x, point.y);
3572 }
3573 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3574 self->CalcBoundingBox(point.x, point.y);
3575 }
3576 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3577 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3578 }
3579 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3580 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3581 }
3582 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3583 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3584 }
3585 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3586 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3587 }
3588 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3589 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3590 }
3591 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3592 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3593 }
3594
3595 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3596 *x1 = dc->MinX();
3597 *y1 = dc->MinY();
3598 *x2 = dc->MaxX();
3599 *y2 = dc->MaxY();
3600 }
3601
3602
3603 #include <wx/dcbuffer.h>
3604
3605
3606 #include <wx/dcps.h>
3607
3608
3609 #include <wx/metafile.h>
3610
3611
3612 #include <wx/graphics.h>
3613
3614
3615 #if !wxUSE_GRAPHICS_CONTEXT
3616 // C++ stub classes for platforms or build configurations that don't have
3617 // wxGraphicsContext yet.
3618
3619 class wxGraphicsRenderer;
3620 class wxGraphicsMatrix;
3621
3622
3623 class wxGraphicsObject : public wxObject
3624 {
3625 public :
3626 wxGraphicsObject() {}
3627 wxGraphicsObject( wxGraphicsRenderer* ) {
3628 PyErr_SetString(PyExc_NotImplementedError,
3629 "wx.GraphicsObject is not available on this platform.");
3630 }
3631 wxGraphicsObject( const wxGraphicsObject& ) {}
3632 virtual ~wxGraphicsObject() {}
3633 bool IsNull() const { return false; }
3634 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3635 } ;
3636
3637
3638
3639 class wxGraphicsPen : public wxGraphicsObject
3640 {
3641 public:
3642 wxGraphicsPen() {}
3643 virtual ~wxGraphicsPen() {}
3644 } ;
3645 wxGraphicsPen wxNullGraphicsPen;
3646
3647
3648
3649 class wxGraphicsBrush : public wxGraphicsObject
3650 {
3651 public :
3652 wxGraphicsBrush() {}
3653 virtual ~wxGraphicsBrush() {}
3654 } ;
3655 wxGraphicsBrush wxNullGraphicsBrush;
3656
3657
3658
3659 class wxGraphicsFont : public wxGraphicsObject
3660 {
3661 public :
3662 wxGraphicsFont() {}
3663 virtual ~wxGraphicsFont() {}
3664 } ;
3665 wxGraphicsFont wxNullGraphicsFont;
3666
3667
3668
3669 class wxGraphicsPath : public wxGraphicsObject
3670 {
3671 public :
3672 wxGraphicsPath() { }
3673 wxGraphicsPath(wxGraphicsRenderer* ) {
3674 PyErr_SetString(PyExc_NotImplementedError,
3675 "wx.GraphicsPath is not available on this platform.");
3676 }
3677 virtual ~wxGraphicsPath() {}
3678
3679 void MoveToPoint( wxDouble, wxDouble ) {}
3680 void MoveToPoint( const wxPoint2DDouble& ) {}
3681 void AddLineToPoint( wxDouble, wxDouble ) {}
3682 void AddLineToPoint( const wxPoint2DDouble& ) {}
3683 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3684 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3685 void AddPath( const wxGraphicsPath& ) {}
3686 void CloseSubpath() {}
3687 void GetCurrentPoint( wxDouble&, wxDouble&) const {}
3688 wxPoint2DDouble GetCurrentPoint() const { return wxPoint2D(0,0); }
3689 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3690 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
3691
3692 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3693 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3694 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3695 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3696
3697 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3698 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3699 void * GetNativePath() const { return NULL; }
3700 void UnGetNativePath(void *) const {}
3701 void Transform( const wxGraphicsMatrix& ) {}
3702 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) const {}
3703 wxRect2D GetBox() const { return wxRect2D(0,0,0,0); }
3704
3705 bool Contains( wxDouble , wxDouble , int ) const { return false; }
3706 bool Contains( const wxPoint2DDouble& , int ) const { return false; }
3707 };
3708 wxGraphicsPath wxNullGraphicsPath;
3709
3710
3711 class wxGraphicsMatrix : public wxGraphicsObject
3712 {
3713 public :
3714 wxGraphicsMatrix() { }
3715 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3716 PyErr_SetString(PyExc_NotImplementedError,
3717 "wx.GraphicsMatrix is not available on this platform.");
3718 }
3719 virtual ~wxGraphicsMatrix() {}
3720 virtual void Concat( const wxGraphicsMatrix & ) {}
3721 virtual void Copy( const wxGraphicsMatrix & ) {}
3722 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3723 wxDouble , wxDouble ) {}
3724 virtual void Invert() {}
3725 virtual bool IsEqual( const wxGraphicsMatrix& t) const { return false; }
3726 virtual bool IsIdentity() const { return false; }
3727 virtual void Translate( wxDouble , wxDouble ) {}
3728 virtual void Scale( wxDouble , wxDouble ) {}
3729 virtual void Rotate( wxDouble ) {}
3730 virtual void TransformPoint( wxDouble *, wxDouble * ) const {}
3731 virtual void TransformDistance( wxDouble *, wxDouble * ) const {}
3732 virtual void * GetNativeMatrix() const { return NULL; }
3733 };
3734 wxGraphicsMatrix wxNullGraphicsMatrix;
3735
3736
3737 class wxGraphicsContext : public wxGraphicsObject
3738 {
3739 public:
3740
3741 wxGraphicsContext(wxGraphicsRenderer* ) {
3742 PyErr_SetString(PyExc_NotImplementedError,
3743 "wx.GraphicsContext is not available on this platform.");
3744 }
3745
3746 virtual ~wxGraphicsContext() {}
3747
3748 static wxGraphicsContext* Create() {
3749 PyErr_SetString(PyExc_NotImplementedError,
3750 "wx.GraphicsContext is not available on this platform.");
3751 return NULL;
3752 }
3753 static wxGraphicsContext* Create( const wxWindowDC& ) {
3754 PyErr_SetString(PyExc_NotImplementedError,
3755 "wx.GraphicsContext is not available on this platform.");
3756 return NULL;
3757 }
3758
3759 static wxGraphicsContext* CreateFromNative( void * ) {
3760 PyErr_SetString(PyExc_NotImplementedError,
3761 "wx.GraphicsContext is not available on this platform.");
3762 return NULL;
3763 }
3764
3765 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3766 PyErr_SetString(PyExc_NotImplementedError,
3767 "wx.GraphicsContext is not available on this platform.");
3768 return NULL;
3769 }
3770
3771 static wxGraphicsContext* Create( wxWindow* ) {
3772 PyErr_SetString(PyExc_NotImplementedError,
3773 "wx.GraphicsContext is not available on this platform.");
3774 return NULL;
3775 }
3776
3777 wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
3778
3779 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3780
3781 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3782
3783 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3784 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
3785
3786 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3787 wxDouble xc, wxDouble yc, wxDouble radius,
3788 const wxColour &oColor, const wxColour &cColor) { return wxNullGraphicsBrush; }
3789
3790 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return wxNullGraphicsFont; }
3791
3792 virtual wxGraphicsMatrix CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3793 wxDouble, wxDouble) { return wxNullGraphicsMatrix; }
3794
3795 virtual void PushState() {}
3796 virtual void PopState() {}
3797 virtual void Clip( const wxRegion & ) {}
3798 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3799 virtual void ResetClip() {}
3800 virtual void * GetNativeContext() { return NULL; }
3801 virtual void Translate( wxDouble , wxDouble ) {}
3802 virtual void Scale( wxDouble , wxDouble ) {}
3803 virtual void Rotate( wxDouble ) {}
3804 virtual void ConcatTransform( const wxGraphicsMatrix& ) {}
3805 virtual void SetTransform( const wxGraphicsMatrix& ) {}
3806 virtual wxGraphicsMatrix GetTransform() const { return wxNullGraphicsMatrix; }
3807
3808 virtual void SetPen( const wxGraphicsPen& ) {}
3809 void SetPen( const wxPen& ) {}
3810
3811 virtual void SetBrush( const wxGraphicsBrush& ) {}
3812 void SetBrush( const wxBrush& ) {}
3813
3814 virtual void SetFont( const wxGraphicsFont& ) {}
3815 void SetFont( const wxFont&, const wxColour& ) {}
3816
3817 virtual void StrokePath( const wxGraphicsPath & ) {}
3818 virtual void FillPath( const wxGraphicsPath &, int ) {}
3819 virtual void DrawPath( const wxGraphicsPath &, int ) {}
3820
3821 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3822 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3823 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxGraphicsBrush ) {}
3824 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble , wxGraphicsBrush ) {}
3825 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3826 wxDouble *, wxDouble * ) const {}
3827 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3828
3829 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3830 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3831
3832 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3833 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3834 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3835 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3836 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3837 virtual void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3838 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3839 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3840 virtual bool ShouldOffset() const { return false; }
3841 };
3842
3843
3844 class wxGraphicsRenderer : public wxObject
3845 {
3846 public :
3847 wxGraphicsRenderer() {
3848 PyErr_SetString(PyExc_NotImplementedError,
3849 "wx.GraphicsRenderer is not available on this platform.");
3850 }
3851
3852 virtual ~wxGraphicsRenderer() {}
3853
3854 static wxGraphicsRenderer* GetDefaultRenderer() {
3855 PyErr_SetString(PyExc_NotImplementedError,
3856 "wx.GraphicsRenderer is not available on this platform.");
3857 return NULL;
3858 }
3859
3860 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3861 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3862 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3863 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3864 virtual wxGraphicsContext * CreateMeasuringContext() { return NULL; }
3865
3866 virtual wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
3867
3868 virtual wxGraphicsMatrix CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3869 wxDouble , wxDouble ) { return wxNullGraphicsMatrix; }
3870
3871 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3872 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3873 virtual wxGraphicsBrush CreateLinearGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble ,
3874 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
3875 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3876 const wxColour &, const wxColour &) { return wxNullGraphicsBrush; }
3877 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGraphicsFont; }
3878 };
3879
3880
3881
3882 class wxGCDC: public wxWindowDC
3883 {
3884 public:
3885 wxGCDC(const wxWindowDC&) {
3886 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3887 PyErr_SetString(PyExc_NotImplementedError,
3888 "wxGCDC is not available on this platform.");
3889 wxPyEndBlockThreads(blocked);
3890 }
3891
3892 wxGCDC(const wxWindow*) {
3893 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3894 PyErr_SetString(PyExc_NotImplementedError,
3895 "wxGCDC is not available on this platform.");
3896 wxPyEndBlockThreads(blocked);
3897 }
3898
3899 wxGCDC() {
3900 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3901 PyErr_SetString(PyExc_NotImplementedError,
3902 "wxGCDC is not available on this platform.");
3903 wxPyEndBlockThreads(blocked);
3904 }
3905
3906 virtual ~wxGCDC() {}
3907
3908 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3909 void SetGraphicsContext( wxGraphicsContext* ) {}
3910 };
3911
3912 #endif
3913
3914 SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3915 if ( !backgroundBrush.IsNull() )
3916 self->DrawText(str, x, y, backgroundBrush);
3917 else
3918 self->DrawText(str, x, y);
3919 }
3920 SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3921 if ( !backgroundBrush.IsNull() )
3922 self->DrawText(str, x, y, angle, backgroundBrush);
3923 else
3924 self->DrawText(str, x, y, angle);
3925 }
3926 SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3927 wxDouble width = 0.0,
3928 height = 0.0;
3929 self->GetTextExtent(text, &width, &height, NULL, NULL);
3930 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3931 PyObject* rv = PyTuple_New(2);
3932 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3933 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3934 return rv;
3935 }
3936 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3937 wxArrayDouble widths;
3938 self->GetPartialTextExtents(text, widths);
3939 return widths;
3940 }
3941 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3942 size_t c1, c2, count;
3943 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3944 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3945
3946 if ( beginP != NULL && endP != NULL )
3947 {
3948 count = wxMin(c1, c2);
3949 self->StrokeLines(count, beginP, endP);
3950 }
3951 delete [] beginP;
3952 delete [] endP;
3953 }
3954
3955 #include "wx/dcgraph.h"
3956
3957
3958 #include <wx/overlay.h>
3959
3960
3961
3962 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3963 self->AddColour(name, wxColour(red, green, blue));
3964 }
3965
3966 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3967 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3968 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3969 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3970
3971
3972 #include <wx/effects.h>
3973
3974
3975 #include "wx/renderer.h"
3976
3977
3978 SWIGINTERNINLINE PyObject*
3979 SWIG_From_bool (bool value)
3980 {
3981 return PyBool_FromLong(value ? 1 : 0);
3982 }
3983
3984
3985 #include "wx/wxPython/pseudodc.h"
3986
3987 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3988 wxRect rect;
3989 self->GetIdBounds(id, rect);
3990 return rect;
3991 }
3992 #ifdef __cplusplus
3993 extern "C" {
3994 #endif
3995 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3996 PyObject *resultobj = 0;
3997 wxGDIObject *result = 0 ;
3998
3999 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
4000 {
4001 if (!wxPyCheckForApp()) SWIG_fail;
4002 PyThreadState* __tstate = wxPyBeginAllowThreads();
4003 result = (wxGDIObject *)new wxGDIObject();
4004 wxPyEndAllowThreads(__tstate);
4005 if (PyErr_Occurred()) SWIG_fail;
4006 }
4007 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
4008 return resultobj;
4009 fail:
4010 return NULL;
4011 }
4012
4013
4014 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4015 PyObject *resultobj = 0;
4016 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4017 void *argp1 = 0 ;
4018 int res1 = 0 ;
4019 PyObject *swig_obj[1] ;
4020
4021 if (!args) SWIG_fail;
4022 swig_obj[0] = args;
4023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4024 if (!SWIG_IsOK(res1)) {
4025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4026 }
4027 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4028 {
4029 PyThreadState* __tstate = wxPyBeginAllowThreads();
4030 delete arg1;
4031
4032 wxPyEndAllowThreads(__tstate);
4033 if (PyErr_Occurred()) SWIG_fail;
4034 }
4035 resultobj = SWIG_Py_Void();
4036 return resultobj;
4037 fail:
4038 return NULL;
4039 }
4040
4041
4042 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4043 PyObject *resultobj = 0;
4044 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4045 bool result;
4046 void *argp1 = 0 ;
4047 int res1 = 0 ;
4048 PyObject *swig_obj[1] ;
4049
4050 if (!args) SWIG_fail;
4051 swig_obj[0] = args;
4052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4053 if (!SWIG_IsOK(res1)) {
4054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4055 }
4056 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4057 {
4058 PyThreadState* __tstate = wxPyBeginAllowThreads();
4059 result = (bool)(arg1)->IsNull();
4060 wxPyEndAllowThreads(__tstate);
4061 if (PyErr_Occurred()) SWIG_fail;
4062 }
4063 {
4064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4065 }
4066 return resultobj;
4067 fail:
4068 return NULL;
4069 }
4070
4071
4072 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4073 PyObject *obj;
4074 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4075 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4076 return SWIG_Py_Void();
4077 }
4078
4079 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4080 return SWIG_Python_InitShadowInstance(args);
4081 }
4082
4083 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4084 PyObject *resultobj = 0;
4085 byte arg1 = (byte) 0 ;
4086 byte arg2 = (byte) 0 ;
4087 byte arg3 = (byte) 0 ;
4088 byte arg4 = (byte) wxALPHA_OPAQUE ;
4089 wxColour *result = 0 ;
4090 unsigned char val1 ;
4091 int ecode1 = 0 ;
4092 unsigned char val2 ;
4093 int ecode2 = 0 ;
4094 unsigned char val3 ;
4095 int ecode3 = 0 ;
4096 unsigned char val4 ;
4097 int ecode4 = 0 ;
4098 PyObject * obj0 = 0 ;
4099 PyObject * obj1 = 0 ;
4100 PyObject * obj2 = 0 ;
4101 PyObject * obj3 = 0 ;
4102 char * kwnames[] = {
4103 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4104 };
4105
4106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4107 if (obj0) {
4108 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4109 if (!SWIG_IsOK(ecode1)) {
4110 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4111 }
4112 arg1 = static_cast< byte >(val1);
4113 }
4114 if (obj1) {
4115 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4116 if (!SWIG_IsOK(ecode2)) {
4117 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4118 }
4119 arg2 = static_cast< byte >(val2);
4120 }
4121 if (obj2) {
4122 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4123 if (!SWIG_IsOK(ecode3)) {
4124 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4125 }
4126 arg3 = static_cast< byte >(val3);
4127 }
4128 if (obj3) {
4129 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4130 if (!SWIG_IsOK(ecode4)) {
4131 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4132 }
4133 arg4 = static_cast< byte >(val4);
4134 }
4135 {
4136 PyThreadState* __tstate = wxPyBeginAllowThreads();
4137 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
4138 wxPyEndAllowThreads(__tstate);
4139 if (PyErr_Occurred()) SWIG_fail;
4140 }
4141 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4142 return resultobj;
4143 fail:
4144 return NULL;
4145 }
4146
4147
4148 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4149 PyObject *resultobj = 0;
4150 wxString *arg1 = 0 ;
4151 wxColour *result = 0 ;
4152 bool temp1 = false ;
4153 PyObject * obj0 = 0 ;
4154 char * kwnames[] = {
4155 (char *) "colorName", NULL
4156 };
4157
4158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4159 {
4160 arg1 = wxString_in_helper(obj0);
4161 if (arg1 == NULL) SWIG_fail;
4162 temp1 = true;
4163 }
4164 {
4165 if (!wxPyCheckForApp()) SWIG_fail;
4166 PyThreadState* __tstate = wxPyBeginAllowThreads();
4167 result = (wxColour *)new wxColour((wxString const &)*arg1);
4168 wxPyEndAllowThreads(__tstate);
4169 if (PyErr_Occurred()) SWIG_fail;
4170 }
4171 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4172 {
4173 if (temp1)
4174 delete arg1;
4175 }
4176 return resultobj;
4177 fail:
4178 {
4179 if (temp1)
4180 delete arg1;
4181 }
4182 return NULL;
4183 }
4184
4185
4186 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4187 PyObject *resultobj = 0;
4188 unsigned long arg1 ;
4189 wxColour *result = 0 ;
4190 unsigned long val1 ;
4191 int ecode1 = 0 ;
4192 PyObject * obj0 = 0 ;
4193 char * kwnames[] = {
4194 (char *) "colRGB", NULL
4195 };
4196
4197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4198 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4199 if (!SWIG_IsOK(ecode1)) {
4200 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4201 }
4202 arg1 = static_cast< unsigned long >(val1);
4203 {
4204 PyThreadState* __tstate = wxPyBeginAllowThreads();
4205 result = (wxColour *)new wxColour(arg1);
4206 wxPyEndAllowThreads(__tstate);
4207 if (PyErr_Occurred()) SWIG_fail;
4208 }
4209 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4210 return resultobj;
4211 fail:
4212 return NULL;
4213 }
4214
4215
4216 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4217 PyObject *resultobj = 0;
4218 wxColour *arg1 = (wxColour *) 0 ;
4219 void *argp1 = 0 ;
4220 int res1 = 0 ;
4221 PyObject *swig_obj[1] ;
4222
4223 if (!args) SWIG_fail;
4224 swig_obj[0] = args;
4225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4226 if (!SWIG_IsOK(res1)) {
4227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4228 }
4229 arg1 = reinterpret_cast< wxColour * >(argp1);
4230 {
4231 PyThreadState* __tstate = wxPyBeginAllowThreads();
4232 delete arg1;
4233
4234 wxPyEndAllowThreads(__tstate);
4235 if (PyErr_Occurred()) SWIG_fail;
4236 }
4237 resultobj = SWIG_Py_Void();
4238 return resultobj;
4239 fail:
4240 return NULL;
4241 }
4242
4243
4244 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4245 PyObject *resultobj = 0;
4246 wxColour *arg1 = (wxColour *) 0 ;
4247 byte result;
4248 void *argp1 = 0 ;
4249 int res1 = 0 ;
4250 PyObject *swig_obj[1] ;
4251
4252 if (!args) SWIG_fail;
4253 swig_obj[0] = args;
4254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4255 if (!SWIG_IsOK(res1)) {
4256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4257 }
4258 arg1 = reinterpret_cast< wxColour * >(argp1);
4259 {
4260 PyThreadState* __tstate = wxPyBeginAllowThreads();
4261 result = (byte)(arg1)->Red();
4262 wxPyEndAllowThreads(__tstate);
4263 if (PyErr_Occurred()) SWIG_fail;
4264 }
4265 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4266 return resultobj;
4267 fail:
4268 return NULL;
4269 }
4270
4271
4272 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4273 PyObject *resultobj = 0;
4274 wxColour *arg1 = (wxColour *) 0 ;
4275 byte result;
4276 void *argp1 = 0 ;
4277 int res1 = 0 ;
4278 PyObject *swig_obj[1] ;
4279
4280 if (!args) SWIG_fail;
4281 swig_obj[0] = args;
4282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4283 if (!SWIG_IsOK(res1)) {
4284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4285 }
4286 arg1 = reinterpret_cast< wxColour * >(argp1);
4287 {
4288 PyThreadState* __tstate = wxPyBeginAllowThreads();
4289 result = (byte)(arg1)->Green();
4290 wxPyEndAllowThreads(__tstate);
4291 if (PyErr_Occurred()) SWIG_fail;
4292 }
4293 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4294 return resultobj;
4295 fail:
4296 return NULL;
4297 }
4298
4299
4300 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4301 PyObject *resultobj = 0;
4302 wxColour *arg1 = (wxColour *) 0 ;
4303 byte result;
4304 void *argp1 = 0 ;
4305 int res1 = 0 ;
4306 PyObject *swig_obj[1] ;
4307
4308 if (!args) SWIG_fail;
4309 swig_obj[0] = args;
4310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4311 if (!SWIG_IsOK(res1)) {
4312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4313 }
4314 arg1 = reinterpret_cast< wxColour * >(argp1);
4315 {
4316 PyThreadState* __tstate = wxPyBeginAllowThreads();
4317 result = (byte)(arg1)->Blue();
4318 wxPyEndAllowThreads(__tstate);
4319 if (PyErr_Occurred()) SWIG_fail;
4320 }
4321 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4322 return resultobj;
4323 fail:
4324 return NULL;
4325 }
4326
4327
4328 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4329 PyObject *resultobj = 0;
4330 wxColour *arg1 = (wxColour *) 0 ;
4331 byte result;
4332 void *argp1 = 0 ;
4333 int res1 = 0 ;
4334 PyObject *swig_obj[1] ;
4335
4336 if (!args) SWIG_fail;
4337 swig_obj[0] = args;
4338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4339 if (!SWIG_IsOK(res1)) {
4340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4341 }
4342 arg1 = reinterpret_cast< wxColour * >(argp1);
4343 {
4344 PyThreadState* __tstate = wxPyBeginAllowThreads();
4345 result = (byte)(arg1)->Alpha();
4346 wxPyEndAllowThreads(__tstate);
4347 if (PyErr_Occurred()) SWIG_fail;
4348 }
4349 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4350 return resultobj;
4351 fail:
4352 return NULL;
4353 }
4354
4355
4356 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4357 PyObject *resultobj = 0;
4358 wxColour *arg1 = (wxColour *) 0 ;
4359 bool result;
4360 void *argp1 = 0 ;
4361 int res1 = 0 ;
4362 PyObject *swig_obj[1] ;
4363
4364 if (!args) SWIG_fail;
4365 swig_obj[0] = args;
4366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4367 if (!SWIG_IsOK(res1)) {
4368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4369 }
4370 arg1 = reinterpret_cast< wxColour * >(argp1);
4371 {
4372 PyThreadState* __tstate = wxPyBeginAllowThreads();
4373 result = (bool)(arg1)->IsOk();
4374 wxPyEndAllowThreads(__tstate);
4375 if (PyErr_Occurred()) SWIG_fail;
4376 }
4377 {
4378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4379 }
4380 return resultobj;
4381 fail:
4382 return NULL;
4383 }
4384
4385
4386 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4387 PyObject *resultobj = 0;
4388 wxColour *arg1 = (wxColour *) 0 ;
4389 byte arg2 ;
4390 byte arg3 ;
4391 byte arg4 ;
4392 byte arg5 = (byte) wxALPHA_OPAQUE ;
4393 void *argp1 = 0 ;
4394 int res1 = 0 ;
4395 unsigned char val2 ;
4396 int ecode2 = 0 ;
4397 unsigned char val3 ;
4398 int ecode3 = 0 ;
4399 unsigned char val4 ;
4400 int ecode4 = 0 ;
4401 unsigned char val5 ;
4402 int ecode5 = 0 ;
4403 PyObject * obj0 = 0 ;
4404 PyObject * obj1 = 0 ;
4405 PyObject * obj2 = 0 ;
4406 PyObject * obj3 = 0 ;
4407 PyObject * obj4 = 0 ;
4408 char * kwnames[] = {
4409 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4410 };
4411
4412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4414 if (!SWIG_IsOK(res1)) {
4415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4416 }
4417 arg1 = reinterpret_cast< wxColour * >(argp1);
4418 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4419 if (!SWIG_IsOK(ecode2)) {
4420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4421 }
4422 arg2 = static_cast< byte >(val2);
4423 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4424 if (!SWIG_IsOK(ecode3)) {
4425 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4426 }
4427 arg3 = static_cast< byte >(val3);
4428 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4429 if (!SWIG_IsOK(ecode4)) {
4430 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4431 }
4432 arg4 = static_cast< byte >(val4);
4433 if (obj4) {
4434 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4435 if (!SWIG_IsOK(ecode5)) {
4436 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4437 }
4438 arg5 = static_cast< byte >(val5);
4439 }
4440 {
4441 PyThreadState* __tstate = wxPyBeginAllowThreads();
4442 (arg1)->Set(arg2,arg3,arg4,arg5);
4443 wxPyEndAllowThreads(__tstate);
4444 if (PyErr_Occurred()) SWIG_fail;
4445 }
4446 resultobj = SWIG_Py_Void();
4447 return resultobj;
4448 fail:
4449 return NULL;
4450 }
4451
4452
4453 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4454 PyObject *resultobj = 0;
4455 wxColour *arg1 = (wxColour *) 0 ;
4456 unsigned long arg2 ;
4457 void *argp1 = 0 ;
4458 int res1 = 0 ;
4459 unsigned long val2 ;
4460 int ecode2 = 0 ;
4461 PyObject * obj0 = 0 ;
4462 PyObject * obj1 = 0 ;
4463 char * kwnames[] = {
4464 (char *) "self",(char *) "colRGB", NULL
4465 };
4466
4467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4469 if (!SWIG_IsOK(res1)) {
4470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4471 }
4472 arg1 = reinterpret_cast< wxColour * >(argp1);
4473 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4474 if (!SWIG_IsOK(ecode2)) {
4475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4476 }
4477 arg2 = static_cast< unsigned long >(val2);
4478 {
4479 PyThreadState* __tstate = wxPyBeginAllowThreads();
4480 (arg1)->Set(arg2);
4481 wxPyEndAllowThreads(__tstate);
4482 if (PyErr_Occurred()) SWIG_fail;
4483 }
4484 resultobj = SWIG_Py_Void();
4485 return resultobj;
4486 fail:
4487 return NULL;
4488 }
4489
4490
4491 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4492 PyObject *resultobj = 0;
4493 wxColour *arg1 = (wxColour *) 0 ;
4494 wxString *arg2 = 0 ;
4495 void *argp1 = 0 ;
4496 int res1 = 0 ;
4497 bool temp2 = false ;
4498 PyObject * obj0 = 0 ;
4499 PyObject * obj1 = 0 ;
4500 char * kwnames[] = {
4501 (char *) "self",(char *) "colourName", NULL
4502 };
4503
4504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4506 if (!SWIG_IsOK(res1)) {
4507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4508 }
4509 arg1 = reinterpret_cast< wxColour * >(argp1);
4510 {
4511 arg2 = wxString_in_helper(obj1);
4512 if (arg2 == NULL) SWIG_fail;
4513 temp2 = true;
4514 }
4515 {
4516 PyThreadState* __tstate = wxPyBeginAllowThreads();
4517 (arg1)->Set((wxString const &)*arg2);
4518 wxPyEndAllowThreads(__tstate);
4519 if (PyErr_Occurred()) SWIG_fail;
4520 }
4521 resultobj = SWIG_Py_Void();
4522 {
4523 if (temp2)
4524 delete arg2;
4525 }
4526 return resultobj;
4527 fail:
4528 {
4529 if (temp2)
4530 delete arg2;
4531 }
4532 return NULL;
4533 }
4534
4535
4536 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4537 PyObject *resultobj = 0;
4538 wxColour *arg1 = (wxColour *) 0 ;
4539 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4540 wxString result;
4541 void *argp1 = 0 ;
4542 int res1 = 0 ;
4543 long val2 ;
4544 int ecode2 = 0 ;
4545 PyObject * obj0 = 0 ;
4546 PyObject * obj1 = 0 ;
4547 char * kwnames[] = {
4548 (char *) "self",(char *) "flags", NULL
4549 };
4550
4551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4553 if (!SWIG_IsOK(res1)) {
4554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4555 }
4556 arg1 = reinterpret_cast< wxColour * >(argp1);
4557 if (obj1) {
4558 ecode2 = SWIG_AsVal_long(obj1, &val2);
4559 if (!SWIG_IsOK(ecode2)) {
4560 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4561 }
4562 arg2 = static_cast< long >(val2);
4563 }
4564 {
4565 PyThreadState* __tstate = wxPyBeginAllowThreads();
4566 result = ((wxColour const *)arg1)->GetAsString(arg2);
4567 wxPyEndAllowThreads(__tstate);
4568 if (PyErr_Occurred()) SWIG_fail;
4569 }
4570 {
4571 #if wxUSE_UNICODE
4572 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4573 #else
4574 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4575 #endif
4576 }
4577 return resultobj;
4578 fail:
4579 return NULL;
4580 }
4581
4582
4583 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4584 PyObject *resultobj = 0;
4585 wxColour *arg1 = (wxColour *) 0 ;
4586 long result;
4587 void *argp1 = 0 ;
4588 int res1 = 0 ;
4589 PyObject *swig_obj[1] ;
4590
4591 if (!args) SWIG_fail;
4592 swig_obj[0] = args;
4593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4594 if (!SWIG_IsOK(res1)) {
4595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4596 }
4597 arg1 = reinterpret_cast< wxColour * >(argp1);
4598 {
4599 PyThreadState* __tstate = wxPyBeginAllowThreads();
4600 result = (long)((wxColour const *)arg1)->GetPixel();
4601 wxPyEndAllowThreads(__tstate);
4602 if (PyErr_Occurred()) SWIG_fail;
4603 }
4604 resultobj = SWIG_From_long(static_cast< long >(result));
4605 return resultobj;
4606 fail:
4607 return NULL;
4608 }
4609
4610
4611 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4612 PyObject *resultobj = 0;
4613 wxColour *arg1 = (wxColour *) 0 ;
4614 PyObject *arg2 = (PyObject *) 0 ;
4615 bool result;
4616 void *argp1 = 0 ;
4617 int res1 = 0 ;
4618 PyObject * obj0 = 0 ;
4619 PyObject * obj1 = 0 ;
4620 char * kwnames[] = {
4621 (char *) "self",(char *) "other", NULL
4622 };
4623
4624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4626 if (!SWIG_IsOK(res1)) {
4627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4628 }
4629 arg1 = reinterpret_cast< wxColour * >(argp1);
4630 arg2 = obj1;
4631 {
4632 result = (bool)wxColour___eq__(arg1,arg2);
4633 if (PyErr_Occurred()) SWIG_fail;
4634 }
4635 {
4636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4637 }
4638 return resultobj;
4639 fail:
4640 return NULL;
4641 }
4642
4643
4644 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4645 PyObject *resultobj = 0;
4646 wxColour *arg1 = (wxColour *) 0 ;
4647 PyObject *arg2 = (PyObject *) 0 ;
4648 bool result;
4649 void *argp1 = 0 ;
4650 int res1 = 0 ;
4651 PyObject * obj0 = 0 ;
4652 PyObject * obj1 = 0 ;
4653 char * kwnames[] = {
4654 (char *) "self",(char *) "other", NULL
4655 };
4656
4657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4659 if (!SWIG_IsOK(res1)) {
4660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4661 }
4662 arg1 = reinterpret_cast< wxColour * >(argp1);
4663 arg2 = obj1;
4664 {
4665 result = (bool)wxColour___ne__(arg1,arg2);
4666 if (PyErr_Occurred()) SWIG_fail;
4667 }
4668 {
4669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4670 }
4671 return resultobj;
4672 fail:
4673 return NULL;
4674 }
4675
4676
4677 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4678 PyObject *resultobj = 0;
4679 wxColour *arg1 = (wxColour *) 0 ;
4680 bool arg2 = (bool) false ;
4681 PyObject *result = 0 ;
4682 void *argp1 = 0 ;
4683 int res1 = 0 ;
4684 bool val2 ;
4685 int ecode2 = 0 ;
4686 PyObject * obj0 = 0 ;
4687 PyObject * obj1 = 0 ;
4688 char * kwnames[] = {
4689 (char *) "self",(char *) "includeAlpha", NULL
4690 };
4691
4692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4694 if (!SWIG_IsOK(res1)) {
4695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4696 }
4697 arg1 = reinterpret_cast< wxColour * >(argp1);
4698 if (obj1) {
4699 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4700 if (!SWIG_IsOK(ecode2)) {
4701 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4702 }
4703 arg2 = static_cast< bool >(val2);
4704 }
4705 {
4706 result = (PyObject *)wxColour_Get(arg1,arg2);
4707 if (PyErr_Occurred()) SWIG_fail;
4708 }
4709 resultobj = result;
4710 return resultobj;
4711 fail:
4712 return NULL;
4713 }
4714
4715
4716 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4717 PyObject *resultobj = 0;
4718 wxColour *arg1 = (wxColour *) 0 ;
4719 unsigned long result;
4720 void *argp1 = 0 ;
4721 int res1 = 0 ;
4722 PyObject *swig_obj[1] ;
4723
4724 if (!args) SWIG_fail;
4725 swig_obj[0] = args;
4726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4727 if (!SWIG_IsOK(res1)) {
4728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4729 }
4730 arg1 = reinterpret_cast< wxColour * >(argp1);
4731 {
4732 result = (unsigned long)wxColour_GetRGB(arg1);
4733 if (PyErr_Occurred()) SWIG_fail;
4734 }
4735 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4736 return resultobj;
4737 fail:
4738 return NULL;
4739 }
4740
4741
4742 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4743 PyObject *obj;
4744 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4745 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4746 return SWIG_Py_Void();
4747 }
4748
4749 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4750 return SWIG_Python_InitShadowInstance(args);
4751 }
4752
4753 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4754 PyObject *resultobj = 0;
4755 int arg1 ;
4756 unsigned char *arg2 = (unsigned char *) 0 ;
4757 unsigned char *arg3 = (unsigned char *) 0 ;
4758 unsigned char *arg4 = (unsigned char *) 0 ;
4759 wxPalette *result = 0 ;
4760 int val1 ;
4761 int ecode1 = 0 ;
4762 void *argp2 = 0 ;
4763 int res2 = 0 ;
4764 void *argp3 = 0 ;
4765 int res3 = 0 ;
4766 void *argp4 = 0 ;
4767 int res4 = 0 ;
4768 PyObject * obj0 = 0 ;
4769 PyObject * obj1 = 0 ;
4770 PyObject * obj2 = 0 ;
4771 PyObject * obj3 = 0 ;
4772 char * kwnames[] = {
4773 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4774 };
4775
4776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4777 ecode1 = SWIG_AsVal_int(obj0, &val1);
4778 if (!SWIG_IsOK(ecode1)) {
4779 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4780 }
4781 arg1 = static_cast< int >(val1);
4782 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4783 if (!SWIG_IsOK(res2)) {
4784 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4785 }
4786 arg2 = reinterpret_cast< unsigned char * >(argp2);
4787 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4788 if (!SWIG_IsOK(res3)) {
4789 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4790 }
4791 arg3 = reinterpret_cast< unsigned char * >(argp3);
4792 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4793 if (!SWIG_IsOK(res4)) {
4794 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4795 }
4796 arg4 = reinterpret_cast< unsigned char * >(argp4);
4797 {
4798 if (!wxPyCheckForApp()) SWIG_fail;
4799 PyThreadState* __tstate = wxPyBeginAllowThreads();
4800 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4801 wxPyEndAllowThreads(__tstate);
4802 if (PyErr_Occurred()) SWIG_fail;
4803 }
4804 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4805 return resultobj;
4806 fail:
4807 return NULL;
4808 }
4809
4810
4811 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4812 PyObject *resultobj = 0;
4813 wxPalette *arg1 = (wxPalette *) 0 ;
4814 void *argp1 = 0 ;
4815 int res1 = 0 ;
4816 PyObject *swig_obj[1] ;
4817
4818 if (!args) SWIG_fail;
4819 swig_obj[0] = args;
4820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4821 if (!SWIG_IsOK(res1)) {
4822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4823 }
4824 arg1 = reinterpret_cast< wxPalette * >(argp1);
4825 {
4826 PyThreadState* __tstate = wxPyBeginAllowThreads();
4827 delete arg1;
4828
4829 wxPyEndAllowThreads(__tstate);
4830 if (PyErr_Occurred()) SWIG_fail;
4831 }
4832 resultobj = SWIG_Py_Void();
4833 return resultobj;
4834 fail:
4835 return NULL;
4836 }
4837
4838
4839 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4840 PyObject *resultobj = 0;
4841 wxPalette *arg1 = (wxPalette *) 0 ;
4842 byte arg2 ;
4843 byte arg3 ;
4844 byte arg4 ;
4845 int result;
4846 void *argp1 = 0 ;
4847 int res1 = 0 ;
4848 unsigned char val2 ;
4849 int ecode2 = 0 ;
4850 unsigned char val3 ;
4851 int ecode3 = 0 ;
4852 unsigned char val4 ;
4853 int ecode4 = 0 ;
4854 PyObject * obj0 = 0 ;
4855 PyObject * obj1 = 0 ;
4856 PyObject * obj2 = 0 ;
4857 PyObject * obj3 = 0 ;
4858 char * kwnames[] = {
4859 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4860 };
4861
4862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4864 if (!SWIG_IsOK(res1)) {
4865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4866 }
4867 arg1 = reinterpret_cast< wxPalette * >(argp1);
4868 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4869 if (!SWIG_IsOK(ecode2)) {
4870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4871 }
4872 arg2 = static_cast< byte >(val2);
4873 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4874 if (!SWIG_IsOK(ecode3)) {
4875 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4876 }
4877 arg3 = static_cast< byte >(val3);
4878 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4879 if (!SWIG_IsOK(ecode4)) {
4880 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4881 }
4882 arg4 = static_cast< byte >(val4);
4883 {
4884 PyThreadState* __tstate = wxPyBeginAllowThreads();
4885 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4886 wxPyEndAllowThreads(__tstate);
4887 if (PyErr_Occurred()) SWIG_fail;
4888 }
4889 resultobj = SWIG_From_int(static_cast< int >(result));
4890 return resultobj;
4891 fail:
4892 return NULL;
4893 }
4894
4895
4896 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4897 PyObject *resultobj = 0;
4898 wxPalette *arg1 = (wxPalette *) 0 ;
4899 int arg2 ;
4900 byte *arg3 = (byte *) 0 ;
4901 byte *arg4 = (byte *) 0 ;
4902 byte *arg5 = (byte *) 0 ;
4903 bool result;
4904 void *argp1 = 0 ;
4905 int res1 = 0 ;
4906 int val2 ;
4907 int ecode2 = 0 ;
4908 byte temp3 ;
4909 int res3 = SWIG_TMPOBJ ;
4910 byte temp4 ;
4911 int res4 = SWIG_TMPOBJ ;
4912 byte temp5 ;
4913 int res5 = SWIG_TMPOBJ ;
4914 PyObject * obj0 = 0 ;
4915 PyObject * obj1 = 0 ;
4916 char * kwnames[] = {
4917 (char *) "self",(char *) "pixel", NULL
4918 };
4919
4920 arg3 = &temp3;
4921 arg4 = &temp4;
4922 arg5 = &temp5;
4923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4925 if (!SWIG_IsOK(res1)) {
4926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4927 }
4928 arg1 = reinterpret_cast< wxPalette * >(argp1);
4929 ecode2 = SWIG_AsVal_int(obj1, &val2);
4930 if (!SWIG_IsOK(ecode2)) {
4931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4932 }
4933 arg2 = static_cast< int >(val2);
4934 {
4935 PyThreadState* __tstate = wxPyBeginAllowThreads();
4936 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4937 wxPyEndAllowThreads(__tstate);
4938 if (PyErr_Occurred()) SWIG_fail;
4939 }
4940 {
4941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4942 }
4943 if (SWIG_IsTmpObj(res3)) {
4944 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4945 } else {
4946 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4947 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4948 }
4949 if (SWIG_IsTmpObj(res4)) {
4950 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4951 } else {
4952 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4953 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4954 }
4955 if (SWIG_IsTmpObj(res5)) {
4956 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4957 } else {
4958 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4959 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4960 }
4961 return resultobj;
4962 fail:
4963 return NULL;
4964 }
4965
4966
4967 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4968 PyObject *resultobj = 0;
4969 wxPalette *arg1 = (wxPalette *) 0 ;
4970 int result;
4971 void *argp1 = 0 ;
4972 int res1 = 0 ;
4973 PyObject *swig_obj[1] ;
4974
4975 if (!args) SWIG_fail;
4976 swig_obj[0] = args;
4977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4978 if (!SWIG_IsOK(res1)) {
4979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4980 }
4981 arg1 = reinterpret_cast< wxPalette * >(argp1);
4982 {
4983 PyThreadState* __tstate = wxPyBeginAllowThreads();
4984 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4985 wxPyEndAllowThreads(__tstate);
4986 if (PyErr_Occurred()) SWIG_fail;
4987 }
4988 resultobj = SWIG_From_int(static_cast< int >(result));
4989 return resultobj;
4990 fail:
4991 return NULL;
4992 }
4993
4994
4995 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4996 PyObject *resultobj = 0;
4997 wxPalette *arg1 = (wxPalette *) 0 ;
4998 bool result;
4999 void *argp1 = 0 ;
5000 int res1 = 0 ;
5001 PyObject *swig_obj[1] ;
5002
5003 if (!args) SWIG_fail;
5004 swig_obj[0] = args;
5005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5006 if (!SWIG_IsOK(res1)) {
5007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
5008 }
5009 arg1 = reinterpret_cast< wxPalette * >(argp1);
5010 {
5011 PyThreadState* __tstate = wxPyBeginAllowThreads();
5012 result = (bool)(arg1)->IsOk();
5013 wxPyEndAllowThreads(__tstate);
5014 if (PyErr_Occurred()) SWIG_fail;
5015 }
5016 {
5017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5018 }
5019 return resultobj;
5020 fail:
5021 return NULL;
5022 }
5023
5024
5025 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5026 PyObject *obj;
5027 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5028 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5029 return SWIG_Py_Void();
5030 }
5031
5032 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5033 return SWIG_Python_InitShadowInstance(args);
5034 }
5035
5036 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5037 PyObject *resultobj = 0;
5038 wxColour *arg1 = 0 ;
5039 int arg2 = (int) 1 ;
5040 int arg3 = (int) wxSOLID ;
5041 wxPen *result = 0 ;
5042 wxColour temp1 ;
5043 int val2 ;
5044 int ecode2 = 0 ;
5045 int val3 ;
5046 int ecode3 = 0 ;
5047 PyObject * obj0 = 0 ;
5048 PyObject * obj1 = 0 ;
5049 PyObject * obj2 = 0 ;
5050 char * kwnames[] = {
5051 (char *) "colour",(char *) "width",(char *) "style", NULL
5052 };
5053
5054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5055 {
5056 arg1 = &temp1;
5057 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5058 }
5059 if (obj1) {
5060 ecode2 = SWIG_AsVal_int(obj1, &val2);
5061 if (!SWIG_IsOK(ecode2)) {
5062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5063 }
5064 arg2 = static_cast< int >(val2);
5065 }
5066 if (obj2) {
5067 ecode3 = SWIG_AsVal_int(obj2, &val3);
5068 if (!SWIG_IsOK(ecode3)) {
5069 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5070 }
5071 arg3 = static_cast< int >(val3);
5072 }
5073 {
5074 if (!wxPyCheckForApp()) SWIG_fail;
5075 PyThreadState* __tstate = wxPyBeginAllowThreads();
5076 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5077 wxPyEndAllowThreads(__tstate);
5078 if (PyErr_Occurred()) SWIG_fail;
5079 }
5080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5081 return resultobj;
5082 fail:
5083 return NULL;
5084 }
5085
5086
5087 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5088 PyObject *resultobj = 0;
5089 wxPen *arg1 = (wxPen *) 0 ;
5090 void *argp1 = 0 ;
5091 int res1 = 0 ;
5092 PyObject *swig_obj[1] ;
5093
5094 if (!args) SWIG_fail;
5095 swig_obj[0] = args;
5096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5097 if (!SWIG_IsOK(res1)) {
5098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5099 }
5100 arg1 = reinterpret_cast< wxPen * >(argp1);
5101 {
5102 PyThreadState* __tstate = wxPyBeginAllowThreads();
5103 delete arg1;
5104
5105 wxPyEndAllowThreads(__tstate);
5106 if (PyErr_Occurred()) SWIG_fail;
5107 }
5108 resultobj = SWIG_Py_Void();
5109 return resultobj;
5110 fail:
5111 return NULL;
5112 }
5113
5114
5115 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5116 PyObject *resultobj = 0;
5117 wxPen *arg1 = (wxPen *) 0 ;
5118 int result;
5119 void *argp1 = 0 ;
5120 int res1 = 0 ;
5121 PyObject *swig_obj[1] ;
5122
5123 if (!args) SWIG_fail;
5124 swig_obj[0] = args;
5125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5126 if (!SWIG_IsOK(res1)) {
5127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5128 }
5129 arg1 = reinterpret_cast< wxPen * >(argp1);
5130 {
5131 PyThreadState* __tstate = wxPyBeginAllowThreads();
5132 result = (int)(arg1)->GetCap();
5133 wxPyEndAllowThreads(__tstate);
5134 if (PyErr_Occurred()) SWIG_fail;
5135 }
5136 resultobj = SWIG_From_int(static_cast< int >(result));
5137 return resultobj;
5138 fail:
5139 return NULL;
5140 }
5141
5142
5143 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5144 PyObject *resultobj = 0;
5145 wxPen *arg1 = (wxPen *) 0 ;
5146 wxColour result;
5147 void *argp1 = 0 ;
5148 int res1 = 0 ;
5149 PyObject *swig_obj[1] ;
5150
5151 if (!args) SWIG_fail;
5152 swig_obj[0] = args;
5153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5154 if (!SWIG_IsOK(res1)) {
5155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5156 }
5157 arg1 = reinterpret_cast< wxPen * >(argp1);
5158 {
5159 PyThreadState* __tstate = wxPyBeginAllowThreads();
5160 result = (arg1)->GetColour();
5161 wxPyEndAllowThreads(__tstate);
5162 if (PyErr_Occurred()) SWIG_fail;
5163 }
5164 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5165 return resultobj;
5166 fail:
5167 return NULL;
5168 }
5169
5170
5171 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5172 PyObject *resultobj = 0;
5173 wxPen *arg1 = (wxPen *) 0 ;
5174 int result;
5175 void *argp1 = 0 ;
5176 int res1 = 0 ;
5177 PyObject *swig_obj[1] ;
5178
5179 if (!args) SWIG_fail;
5180 swig_obj[0] = args;
5181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5182 if (!SWIG_IsOK(res1)) {
5183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5184 }
5185 arg1 = reinterpret_cast< wxPen * >(argp1);
5186 {
5187 PyThreadState* __tstate = wxPyBeginAllowThreads();
5188 result = (int)(arg1)->GetJoin();
5189 wxPyEndAllowThreads(__tstate);
5190 if (PyErr_Occurred()) SWIG_fail;
5191 }
5192 resultobj = SWIG_From_int(static_cast< int >(result));
5193 return resultobj;
5194 fail:
5195 return NULL;
5196 }
5197
5198
5199 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5200 PyObject *resultobj = 0;
5201 wxPen *arg1 = (wxPen *) 0 ;
5202 int result;
5203 void *argp1 = 0 ;
5204 int res1 = 0 ;
5205 PyObject *swig_obj[1] ;
5206
5207 if (!args) SWIG_fail;
5208 swig_obj[0] = args;
5209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5210 if (!SWIG_IsOK(res1)) {
5211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5212 }
5213 arg1 = reinterpret_cast< wxPen * >(argp1);
5214 {
5215 PyThreadState* __tstate = wxPyBeginAllowThreads();
5216 result = (int)(arg1)->GetStyle();
5217 wxPyEndAllowThreads(__tstate);
5218 if (PyErr_Occurred()) SWIG_fail;
5219 }
5220 resultobj = SWIG_From_int(static_cast< int >(result));
5221 return resultobj;
5222 fail:
5223 return NULL;
5224 }
5225
5226
5227 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5228 PyObject *resultobj = 0;
5229 wxPen *arg1 = (wxPen *) 0 ;
5230 int result;
5231 void *argp1 = 0 ;
5232 int res1 = 0 ;
5233 PyObject *swig_obj[1] ;
5234
5235 if (!args) SWIG_fail;
5236 swig_obj[0] = args;
5237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5238 if (!SWIG_IsOK(res1)) {
5239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5240 }
5241 arg1 = reinterpret_cast< wxPen * >(argp1);
5242 {
5243 PyThreadState* __tstate = wxPyBeginAllowThreads();
5244 result = (int)(arg1)->GetWidth();
5245 wxPyEndAllowThreads(__tstate);
5246 if (PyErr_Occurred()) SWIG_fail;
5247 }
5248 resultobj = SWIG_From_int(static_cast< int >(result));
5249 return resultobj;
5250 fail:
5251 return NULL;
5252 }
5253
5254
5255 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5256 PyObject *resultobj = 0;
5257 wxPen *arg1 = (wxPen *) 0 ;
5258 bool result;
5259 void *argp1 = 0 ;
5260 int res1 = 0 ;
5261 PyObject *swig_obj[1] ;
5262
5263 if (!args) SWIG_fail;
5264 swig_obj[0] = args;
5265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5266 if (!SWIG_IsOK(res1)) {
5267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
5268 }
5269 arg1 = reinterpret_cast< wxPen * >(argp1);
5270 {
5271 PyThreadState* __tstate = wxPyBeginAllowThreads();
5272 result = (bool)(arg1)->IsOk();
5273 wxPyEndAllowThreads(__tstate);
5274 if (PyErr_Occurred()) SWIG_fail;
5275 }
5276 {
5277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5278 }
5279 return resultobj;
5280 fail:
5281 return NULL;
5282 }
5283
5284
5285 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5286 PyObject *resultobj = 0;
5287 wxPen *arg1 = (wxPen *) 0 ;
5288 int arg2 ;
5289 void *argp1 = 0 ;
5290 int res1 = 0 ;
5291 int val2 ;
5292 int ecode2 = 0 ;
5293 PyObject * obj0 = 0 ;
5294 PyObject * obj1 = 0 ;
5295 char * kwnames[] = {
5296 (char *) "self",(char *) "cap_style", NULL
5297 };
5298
5299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5301 if (!SWIG_IsOK(res1)) {
5302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5303 }
5304 arg1 = reinterpret_cast< wxPen * >(argp1);
5305 ecode2 = SWIG_AsVal_int(obj1, &val2);
5306 if (!SWIG_IsOK(ecode2)) {
5307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5308 }
5309 arg2 = static_cast< int >(val2);
5310 {
5311 PyThreadState* __tstate = wxPyBeginAllowThreads();
5312 (arg1)->SetCap(arg2);
5313 wxPyEndAllowThreads(__tstate);
5314 if (PyErr_Occurred()) SWIG_fail;
5315 }
5316 resultobj = SWIG_Py_Void();
5317 return resultobj;
5318 fail:
5319 return NULL;
5320 }
5321
5322
5323 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5324 PyObject *resultobj = 0;
5325 wxPen *arg1 = (wxPen *) 0 ;
5326 wxColour *arg2 = 0 ;
5327 void *argp1 = 0 ;
5328 int res1 = 0 ;
5329 wxColour temp2 ;
5330 PyObject * obj0 = 0 ;
5331 PyObject * obj1 = 0 ;
5332 char * kwnames[] = {
5333 (char *) "self",(char *) "colour", NULL
5334 };
5335
5336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5338 if (!SWIG_IsOK(res1)) {
5339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5340 }
5341 arg1 = reinterpret_cast< wxPen * >(argp1);
5342 {
5343 arg2 = &temp2;
5344 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5345 }
5346 {
5347 PyThreadState* __tstate = wxPyBeginAllowThreads();
5348 (arg1)->SetColour(*arg2);
5349 wxPyEndAllowThreads(__tstate);
5350 if (PyErr_Occurred()) SWIG_fail;
5351 }
5352 resultobj = SWIG_Py_Void();
5353 return resultobj;
5354 fail:
5355 return NULL;
5356 }
5357
5358
5359 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5360 PyObject *resultobj = 0;
5361 wxPen *arg1 = (wxPen *) 0 ;
5362 int arg2 ;
5363 void *argp1 = 0 ;
5364 int res1 = 0 ;
5365 int val2 ;
5366 int ecode2 = 0 ;
5367 PyObject * obj0 = 0 ;
5368 PyObject * obj1 = 0 ;
5369 char * kwnames[] = {
5370 (char *) "self",(char *) "join_style", NULL
5371 };
5372
5373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5375 if (!SWIG_IsOK(res1)) {
5376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5377 }
5378 arg1 = reinterpret_cast< wxPen * >(argp1);
5379 ecode2 = SWIG_AsVal_int(obj1, &val2);
5380 if (!SWIG_IsOK(ecode2)) {
5381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5382 }
5383 arg2 = static_cast< int >(val2);
5384 {
5385 PyThreadState* __tstate = wxPyBeginAllowThreads();
5386 (arg1)->SetJoin(arg2);
5387 wxPyEndAllowThreads(__tstate);
5388 if (PyErr_Occurred()) SWIG_fail;
5389 }
5390 resultobj = SWIG_Py_Void();
5391 return resultobj;
5392 fail:
5393 return NULL;
5394 }
5395
5396
5397 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5398 PyObject *resultobj = 0;
5399 wxPen *arg1 = (wxPen *) 0 ;
5400 int arg2 ;
5401 void *argp1 = 0 ;
5402 int res1 = 0 ;
5403 int val2 ;
5404 int ecode2 = 0 ;
5405 PyObject * obj0 = 0 ;
5406 PyObject * obj1 = 0 ;
5407 char * kwnames[] = {
5408 (char *) "self",(char *) "style", NULL
5409 };
5410
5411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5413 if (!SWIG_IsOK(res1)) {
5414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5415 }
5416 arg1 = reinterpret_cast< wxPen * >(argp1);
5417 ecode2 = SWIG_AsVal_int(obj1, &val2);
5418 if (!SWIG_IsOK(ecode2)) {
5419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5420 }
5421 arg2 = static_cast< int >(val2);
5422 {
5423 PyThreadState* __tstate = wxPyBeginAllowThreads();
5424 (arg1)->SetStyle(arg2);
5425 wxPyEndAllowThreads(__tstate);
5426 if (PyErr_Occurred()) SWIG_fail;
5427 }
5428 resultobj = SWIG_Py_Void();
5429 return resultobj;
5430 fail:
5431 return NULL;
5432 }
5433
5434
5435 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5436 PyObject *resultobj = 0;
5437 wxPen *arg1 = (wxPen *) 0 ;
5438 int arg2 ;
5439 void *argp1 = 0 ;
5440 int res1 = 0 ;
5441 int val2 ;
5442 int ecode2 = 0 ;
5443 PyObject * obj0 = 0 ;
5444 PyObject * obj1 = 0 ;
5445 char * kwnames[] = {
5446 (char *) "self",(char *) "width", NULL
5447 };
5448
5449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5451 if (!SWIG_IsOK(res1)) {
5452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5453 }
5454 arg1 = reinterpret_cast< wxPen * >(argp1);
5455 ecode2 = SWIG_AsVal_int(obj1, &val2);
5456 if (!SWIG_IsOK(ecode2)) {
5457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5458 }
5459 arg2 = static_cast< int >(val2);
5460 {
5461 PyThreadState* __tstate = wxPyBeginAllowThreads();
5462 (arg1)->SetWidth(arg2);
5463 wxPyEndAllowThreads(__tstate);
5464 if (PyErr_Occurred()) SWIG_fail;
5465 }
5466 resultobj = SWIG_Py_Void();
5467 return resultobj;
5468 fail:
5469 return NULL;
5470 }
5471
5472
5473 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5474 PyObject *resultobj = 0;
5475 wxPen *arg1 = (wxPen *) 0 ;
5476 int arg2 ;
5477 wxDash *arg3 = (wxDash *) 0 ;
5478 void *argp1 = 0 ;
5479 int res1 = 0 ;
5480 PyObject * obj0 = 0 ;
5481 PyObject * obj1 = 0 ;
5482 char * kwnames[] = {
5483 (char *) "self",(char *) "dashes", NULL
5484 };
5485
5486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5488 if (!SWIG_IsOK(res1)) {
5489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5490 }
5491 arg1 = reinterpret_cast< wxPen * >(argp1);
5492 {
5493 arg2 = PyList_Size(obj1);
5494 arg3 = (wxDash*)byte_LIST_helper(obj1);
5495 if (arg3 == NULL) SWIG_fail;
5496 }
5497 {
5498 PyThreadState* __tstate = wxPyBeginAllowThreads();
5499 (arg1)->SetDashes(arg2,arg3);
5500 wxPyEndAllowThreads(__tstate);
5501 if (PyErr_Occurred()) SWIG_fail;
5502 }
5503 resultobj = SWIG_Py_Void();
5504 {
5505 if (arg3) delete [] arg3;
5506 }
5507 return resultobj;
5508 fail:
5509 {
5510 if (arg3) delete [] arg3;
5511 }
5512 return NULL;
5513 }
5514
5515
5516 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5517 PyObject *resultobj = 0;
5518 wxPen *arg1 = (wxPen *) 0 ;
5519 PyObject *result = 0 ;
5520 void *argp1 = 0 ;
5521 int res1 = 0 ;
5522 PyObject *swig_obj[1] ;
5523
5524 if (!args) SWIG_fail;
5525 swig_obj[0] = args;
5526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5527 if (!SWIG_IsOK(res1)) {
5528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5529 }
5530 arg1 = reinterpret_cast< wxPen * >(argp1);
5531 {
5532 PyThreadState* __tstate = wxPyBeginAllowThreads();
5533 result = (PyObject *)wxPen_GetDashes(arg1);
5534 wxPyEndAllowThreads(__tstate);
5535 if (PyErr_Occurred()) SWIG_fail;
5536 }
5537 resultobj = result;
5538 return resultobj;
5539 fail:
5540 return NULL;
5541 }
5542
5543
5544 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5545 PyObject *resultobj = 0;
5546 wxPen *arg1 = (wxPen *) 0 ;
5547 PyObject *arg2 = (PyObject *) 0 ;
5548 PyObject *arg3 = (PyObject *) 0 ;
5549 void *argp1 = 0 ;
5550 int res1 = 0 ;
5551 PyObject * obj0 = 0 ;
5552 PyObject * obj1 = 0 ;
5553 PyObject * obj2 = 0 ;
5554 char * kwnames[] = {
5555 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5556 };
5557
5558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5560 if (!SWIG_IsOK(res1)) {
5561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5562 }
5563 arg1 = reinterpret_cast< wxPen * >(argp1);
5564 arg2 = obj1;
5565 arg3 = obj2;
5566 {
5567 PyThreadState* __tstate = wxPyBeginAllowThreads();
5568 wxPen__SetDashes(arg1,arg2,arg3);
5569 wxPyEndAllowThreads(__tstate);
5570 if (PyErr_Occurred()) SWIG_fail;
5571 }
5572 resultobj = SWIG_Py_Void();
5573 return resultobj;
5574 fail:
5575 return NULL;
5576 }
5577
5578
5579 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5580 PyObject *resultobj = 0;
5581 wxPen *arg1 = (wxPen *) 0 ;
5582 int result;
5583 void *argp1 = 0 ;
5584 int res1 = 0 ;
5585 PyObject *swig_obj[1] ;
5586
5587 if (!args) SWIG_fail;
5588 swig_obj[0] = args;
5589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5590 if (!SWIG_IsOK(res1)) {
5591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5592 }
5593 arg1 = reinterpret_cast< wxPen * >(argp1);
5594 {
5595 PyThreadState* __tstate = wxPyBeginAllowThreads();
5596 result = (int)((wxPen const *)arg1)->GetDashCount();
5597 wxPyEndAllowThreads(__tstate);
5598 if (PyErr_Occurred()) SWIG_fail;
5599 }
5600 resultobj = SWIG_From_int(static_cast< int >(result));
5601 return resultobj;
5602 fail:
5603 return NULL;
5604 }
5605
5606
5607 SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5608 PyObject *resultobj = 0;
5609 wxPen *arg1 = (wxPen *) 0 ;
5610 wxBitmap *result = 0 ;
5611 void *argp1 = 0 ;
5612 int res1 = 0 ;
5613 PyObject *swig_obj[1] ;
5614
5615 if (!args) SWIG_fail;
5616 swig_obj[0] = args;
5617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5618 if (!SWIG_IsOK(res1)) {
5619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5620 }
5621 arg1 = reinterpret_cast< wxPen * >(argp1);
5622 {
5623 PyThreadState* __tstate = wxPyBeginAllowThreads();
5624 result = (wxBitmap *)(arg1)->GetStipple();
5625 wxPyEndAllowThreads(__tstate);
5626 if (PyErr_Occurred()) SWIG_fail;
5627 }
5628 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5629 return resultobj;
5630 fail:
5631 return NULL;
5632 }
5633
5634
5635 SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5636 PyObject *resultobj = 0;
5637 wxPen *arg1 = (wxPen *) 0 ;
5638 wxBitmap *arg2 = 0 ;
5639 void *argp1 = 0 ;
5640 int res1 = 0 ;
5641 void *argp2 = 0 ;
5642 int res2 = 0 ;
5643 PyObject * obj0 = 0 ;
5644 PyObject * obj1 = 0 ;
5645 char * kwnames[] = {
5646 (char *) "self",(char *) "stipple", NULL
5647 };
5648
5649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5651 if (!SWIG_IsOK(res1)) {
5652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5653 }
5654 arg1 = reinterpret_cast< wxPen * >(argp1);
5655 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
5656 if (!SWIG_IsOK(res2)) {
5657 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5658 }
5659 if (!argp2) {
5660 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5661 }
5662 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5663 {
5664 PyThreadState* __tstate = wxPyBeginAllowThreads();
5665 (arg1)->SetStipple(*arg2);
5666 wxPyEndAllowThreads(__tstate);
5667 if (PyErr_Occurred()) SWIG_fail;
5668 }
5669 resultobj = SWIG_Py_Void();
5670 return resultobj;
5671 fail:
5672 return NULL;
5673 }
5674
5675
5676 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5677 PyObject *resultobj = 0;
5678 wxPen *arg1 = (wxPen *) 0 ;
5679 wxPen *arg2 = (wxPen *) 0 ;
5680 bool result;
5681 void *argp1 = 0 ;
5682 int res1 = 0 ;
5683 void *argp2 = 0 ;
5684 int res2 = 0 ;
5685 PyObject * obj0 = 0 ;
5686 PyObject * obj1 = 0 ;
5687 char * kwnames[] = {
5688 (char *) "self",(char *) "other", NULL
5689 };
5690
5691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5693 if (!SWIG_IsOK(res1)) {
5694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5695 }
5696 arg1 = reinterpret_cast< wxPen * >(argp1);
5697 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5698 if (!SWIG_IsOK(res2)) {
5699 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5700 }
5701 arg2 = reinterpret_cast< wxPen * >(argp2);
5702 {
5703 PyThreadState* __tstate = wxPyBeginAllowThreads();
5704 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5705 wxPyEndAllowThreads(__tstate);
5706 if (PyErr_Occurred()) SWIG_fail;
5707 }
5708 {
5709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5710 }
5711 return resultobj;
5712 fail:
5713 return NULL;
5714 }
5715
5716
5717 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5718 PyObject *resultobj = 0;
5719 wxPen *arg1 = (wxPen *) 0 ;
5720 wxPen *arg2 = (wxPen *) 0 ;
5721 bool result;
5722 void *argp1 = 0 ;
5723 int res1 = 0 ;
5724 void *argp2 = 0 ;
5725 int res2 = 0 ;
5726 PyObject * obj0 = 0 ;
5727 PyObject * obj1 = 0 ;
5728 char * kwnames[] = {
5729 (char *) "self",(char *) "other", NULL
5730 };
5731
5732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5734 if (!SWIG_IsOK(res1)) {
5735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5736 }
5737 arg1 = reinterpret_cast< wxPen * >(argp1);
5738 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5739 if (!SWIG_IsOK(res2)) {
5740 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5741 }
5742 arg2 = reinterpret_cast< wxPen * >(argp2);
5743 {
5744 PyThreadState* __tstate = wxPyBeginAllowThreads();
5745 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5746 wxPyEndAllowThreads(__tstate);
5747 if (PyErr_Occurred()) SWIG_fail;
5748 }
5749 {
5750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5751 }
5752 return resultobj;
5753 fail:
5754 return NULL;
5755 }
5756
5757
5758 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5759 PyObject *obj;
5760 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5761 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5762 return SWIG_Py_Void();
5763 }
5764
5765 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5766 return SWIG_Python_InitShadowInstance(args);
5767 }
5768
5769 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5770 PyObject *resultobj = 0;
5771 wxColour *arg1 = 0 ;
5772 int arg2 = (int) wxSOLID ;
5773 wxBrush *result = 0 ;
5774 wxColour temp1 ;
5775 int val2 ;
5776 int ecode2 = 0 ;
5777 PyObject * obj0 = 0 ;
5778 PyObject * obj1 = 0 ;
5779 char * kwnames[] = {
5780 (char *) "colour",(char *) "style", NULL
5781 };
5782
5783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5784 {
5785 arg1 = &temp1;
5786 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5787 }
5788 if (obj1) {
5789 ecode2 = SWIG_AsVal_int(obj1, &val2);
5790 if (!SWIG_IsOK(ecode2)) {
5791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5792 }
5793 arg2 = static_cast< int >(val2);
5794 }
5795 {
5796 if (!wxPyCheckForApp()) SWIG_fail;
5797 PyThreadState* __tstate = wxPyBeginAllowThreads();
5798 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5799 wxPyEndAllowThreads(__tstate);
5800 if (PyErr_Occurred()) SWIG_fail;
5801 }
5802 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5803 return resultobj;
5804 fail:
5805 return NULL;
5806 }
5807
5808
5809 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5810 PyObject *resultobj = 0;
5811 wxBitmap *arg1 = 0 ;
5812 wxBrush *result = 0 ;
5813 void *argp1 = 0 ;
5814 int res1 = 0 ;
5815 PyObject * obj0 = 0 ;
5816 char * kwnames[] = {
5817 (char *) "stippleBitmap", NULL
5818 };
5819
5820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5821 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5822 if (!SWIG_IsOK(res1)) {
5823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5824 }
5825 if (!argp1) {
5826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5827 }
5828 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5829 {
5830 if (!wxPyCheckForApp()) SWIG_fail;
5831 PyThreadState* __tstate = wxPyBeginAllowThreads();
5832 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5833 wxPyEndAllowThreads(__tstate);
5834 if (PyErr_Occurred()) SWIG_fail;
5835 }
5836 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5837 return resultobj;
5838 fail:
5839 return NULL;
5840 }
5841
5842
5843 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5844 PyObject *resultobj = 0;
5845 wxBrush *arg1 = (wxBrush *) 0 ;
5846 void *argp1 = 0 ;
5847 int res1 = 0 ;
5848 PyObject *swig_obj[1] ;
5849
5850 if (!args) SWIG_fail;
5851 swig_obj[0] = args;
5852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5853 if (!SWIG_IsOK(res1)) {
5854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5855 }
5856 arg1 = reinterpret_cast< wxBrush * >(argp1);
5857 {
5858 PyThreadState* __tstate = wxPyBeginAllowThreads();
5859 delete arg1;
5860
5861 wxPyEndAllowThreads(__tstate);
5862 if (PyErr_Occurred()) SWIG_fail;
5863 }
5864 resultobj = SWIG_Py_Void();
5865 return resultobj;
5866 fail:
5867 return NULL;
5868 }
5869
5870
5871 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5872 PyObject *resultobj = 0;
5873 wxBrush *arg1 = (wxBrush *) 0 ;
5874 wxColour *arg2 = 0 ;
5875 void *argp1 = 0 ;
5876 int res1 = 0 ;
5877 wxColour temp2 ;
5878 PyObject * obj0 = 0 ;
5879 PyObject * obj1 = 0 ;
5880 char * kwnames[] = {
5881 (char *) "self",(char *) "col", NULL
5882 };
5883
5884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5886 if (!SWIG_IsOK(res1)) {
5887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5888 }
5889 arg1 = reinterpret_cast< wxBrush * >(argp1);
5890 {
5891 arg2 = &temp2;
5892 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5893 }
5894 {
5895 PyThreadState* __tstate = wxPyBeginAllowThreads();
5896 (arg1)->SetColour((wxColour const &)*arg2);
5897 wxPyEndAllowThreads(__tstate);
5898 if (PyErr_Occurred()) SWIG_fail;
5899 }
5900 resultobj = SWIG_Py_Void();
5901 return resultobj;
5902 fail:
5903 return NULL;
5904 }
5905
5906
5907 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5908 PyObject *resultobj = 0;
5909 wxBrush *arg1 = (wxBrush *) 0 ;
5910 int arg2 ;
5911 void *argp1 = 0 ;
5912 int res1 = 0 ;
5913 int val2 ;
5914 int ecode2 = 0 ;
5915 PyObject * obj0 = 0 ;
5916 PyObject * obj1 = 0 ;
5917 char * kwnames[] = {
5918 (char *) "self",(char *) "style", NULL
5919 };
5920
5921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5923 if (!SWIG_IsOK(res1)) {
5924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5925 }
5926 arg1 = reinterpret_cast< wxBrush * >(argp1);
5927 ecode2 = SWIG_AsVal_int(obj1, &val2);
5928 if (!SWIG_IsOK(ecode2)) {
5929 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5930 }
5931 arg2 = static_cast< int >(val2);
5932 {
5933 PyThreadState* __tstate = wxPyBeginAllowThreads();
5934 (arg1)->SetStyle(arg2);
5935 wxPyEndAllowThreads(__tstate);
5936 if (PyErr_Occurred()) SWIG_fail;
5937 }
5938 resultobj = SWIG_Py_Void();
5939 return resultobj;
5940 fail:
5941 return NULL;
5942 }
5943
5944
5945 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5946 PyObject *resultobj = 0;
5947 wxBrush *arg1 = (wxBrush *) 0 ;
5948 wxBitmap *arg2 = 0 ;
5949 void *argp1 = 0 ;
5950 int res1 = 0 ;
5951 void *argp2 = 0 ;
5952 int res2 = 0 ;
5953 PyObject * obj0 = 0 ;
5954 PyObject * obj1 = 0 ;
5955 char * kwnames[] = {
5956 (char *) "self",(char *) "stipple", NULL
5957 };
5958
5959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5961 if (!SWIG_IsOK(res1)) {
5962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5963 }
5964 arg1 = reinterpret_cast< wxBrush * >(argp1);
5965 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5966 if (!SWIG_IsOK(res2)) {
5967 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5968 }
5969 if (!argp2) {
5970 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5971 }
5972 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5973 {
5974 PyThreadState* __tstate = wxPyBeginAllowThreads();
5975 (arg1)->SetStipple((wxBitmap const &)*arg2);
5976 wxPyEndAllowThreads(__tstate);
5977 if (PyErr_Occurred()) SWIG_fail;
5978 }
5979 resultobj = SWIG_Py_Void();
5980 return resultobj;
5981 fail:
5982 return NULL;
5983 }
5984
5985
5986 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5987 PyObject *resultobj = 0;
5988 wxBrush *arg1 = (wxBrush *) 0 ;
5989 wxColour result;
5990 void *argp1 = 0 ;
5991 int res1 = 0 ;
5992 PyObject *swig_obj[1] ;
5993
5994 if (!args) SWIG_fail;
5995 swig_obj[0] = args;
5996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5997 if (!SWIG_IsOK(res1)) {
5998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5999 }
6000 arg1 = reinterpret_cast< wxBrush * >(argp1);
6001 {
6002 PyThreadState* __tstate = wxPyBeginAllowThreads();
6003 result = ((wxBrush const *)arg1)->GetColour();
6004 wxPyEndAllowThreads(__tstate);
6005 if (PyErr_Occurred()) SWIG_fail;
6006 }
6007 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
6008 return resultobj;
6009 fail:
6010 return NULL;
6011 }
6012
6013
6014 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6015 PyObject *resultobj = 0;
6016 wxBrush *arg1 = (wxBrush *) 0 ;
6017 int result;
6018 void *argp1 = 0 ;
6019 int res1 = 0 ;
6020 PyObject *swig_obj[1] ;
6021
6022 if (!args) SWIG_fail;
6023 swig_obj[0] = args;
6024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6025 if (!SWIG_IsOK(res1)) {
6026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
6027 }
6028 arg1 = reinterpret_cast< wxBrush * >(argp1);
6029 {
6030 PyThreadState* __tstate = wxPyBeginAllowThreads();
6031 result = (int)((wxBrush const *)arg1)->GetStyle();
6032 wxPyEndAllowThreads(__tstate);
6033 if (PyErr_Occurred()) SWIG_fail;
6034 }
6035 resultobj = SWIG_From_int(static_cast< int >(result));
6036 return resultobj;
6037 fail:
6038 return NULL;
6039 }
6040
6041
6042 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6043 PyObject *resultobj = 0;
6044 wxBrush *arg1 = (wxBrush *) 0 ;
6045 wxBitmap *result = 0 ;
6046 void *argp1 = 0 ;
6047 int res1 = 0 ;
6048 PyObject *swig_obj[1] ;
6049
6050 if (!args) SWIG_fail;
6051 swig_obj[0] = args;
6052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6053 if (!SWIG_IsOK(res1)) {
6054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
6055 }
6056 arg1 = reinterpret_cast< wxBrush * >(argp1);
6057 {
6058 PyThreadState* __tstate = wxPyBeginAllowThreads();
6059 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
6060 wxPyEndAllowThreads(__tstate);
6061 if (PyErr_Occurred()) SWIG_fail;
6062 }
6063 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
6064 return resultobj;
6065 fail:
6066 return NULL;
6067 }
6068
6069
6070 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6071 PyObject *resultobj = 0;
6072 wxBrush *arg1 = (wxBrush *) 0 ;
6073 bool result;
6074 void *argp1 = 0 ;
6075 int res1 = 0 ;
6076 PyObject *swig_obj[1] ;
6077
6078 if (!args) SWIG_fail;
6079 swig_obj[0] = args;
6080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6081 if (!SWIG_IsOK(res1)) {
6082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
6083 }
6084 arg1 = reinterpret_cast< wxBrush * >(argp1);
6085 {
6086 PyThreadState* __tstate = wxPyBeginAllowThreads();
6087 result = (bool)((wxBrush const *)arg1)->IsHatch();
6088 wxPyEndAllowThreads(__tstate);
6089 if (PyErr_Occurred()) SWIG_fail;
6090 }
6091 {
6092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6093 }
6094 return resultobj;
6095 fail:
6096 return NULL;
6097 }
6098
6099
6100 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6101 PyObject *resultobj = 0;
6102 wxBrush *arg1 = (wxBrush *) 0 ;
6103 bool result;
6104 void *argp1 = 0 ;
6105 int res1 = 0 ;
6106 PyObject *swig_obj[1] ;
6107
6108 if (!args) SWIG_fail;
6109 swig_obj[0] = args;
6110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6111 if (!SWIG_IsOK(res1)) {
6112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
6113 }
6114 arg1 = reinterpret_cast< wxBrush * >(argp1);
6115 {
6116 PyThreadState* __tstate = wxPyBeginAllowThreads();
6117 result = (bool)(arg1)->IsOk();
6118 wxPyEndAllowThreads(__tstate);
6119 if (PyErr_Occurred()) SWIG_fail;
6120 }
6121 {
6122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6123 }
6124 return resultobj;
6125 fail:
6126 return NULL;
6127 }
6128
6129
6130 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6131 PyObject *obj;
6132 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6133 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6134 return SWIG_Py_Void();
6135 }
6136
6137 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6138 return SWIG_Python_InitShadowInstance(args);
6139 }
6140
6141 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6142 PyObject *resultobj = 0;
6143 wxString *arg1 = 0 ;
6144 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6145 wxBitmap *result = 0 ;
6146 bool temp1 = false ;
6147 int val2 ;
6148 int ecode2 = 0 ;
6149 PyObject * obj0 = 0 ;
6150 PyObject * obj1 = 0 ;
6151 char * kwnames[] = {
6152 (char *) "name",(char *) "type", NULL
6153 };
6154
6155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6156 {
6157 arg1 = wxString_in_helper(obj0);
6158 if (arg1 == NULL) SWIG_fail;
6159 temp1 = true;
6160 }
6161 if (obj1) {
6162 ecode2 = SWIG_AsVal_int(obj1, &val2);
6163 if (!SWIG_IsOK(ecode2)) {
6164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6165 }
6166 arg2 = static_cast< wxBitmapType >(val2);
6167 }
6168 {
6169 if (!wxPyCheckForApp()) SWIG_fail;
6170 PyThreadState* __tstate = wxPyBeginAllowThreads();
6171 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6172 wxPyEndAllowThreads(__tstate);
6173 if (PyErr_Occurred()) SWIG_fail;
6174 }
6175 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6176 {
6177 if (temp1)
6178 delete arg1;
6179 }
6180 return resultobj;
6181 fail:
6182 {
6183 if (temp1)
6184 delete arg1;
6185 }
6186 return NULL;
6187 }
6188
6189
6190 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6191 PyObject *resultobj = 0;
6192 wxBitmap *arg1 = (wxBitmap *) 0 ;
6193 void *argp1 = 0 ;
6194 int res1 = 0 ;
6195 PyObject *swig_obj[1] ;
6196
6197 if (!args) SWIG_fail;
6198 swig_obj[0] = args;
6199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6200 if (!SWIG_IsOK(res1)) {
6201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6202 }
6203 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6204 {
6205 delete arg1;
6206
6207 if (PyErr_Occurred()) SWIG_fail;
6208 }
6209 resultobj = SWIG_Py_Void();
6210 return resultobj;
6211 fail:
6212 return NULL;
6213 }
6214
6215
6216 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6217 PyObject *resultobj = 0;
6218 int arg1 ;
6219 int arg2 ;
6220 int arg3 = (int) -1 ;
6221 wxBitmap *result = 0 ;
6222 int val1 ;
6223 int ecode1 = 0 ;
6224 int val2 ;
6225 int ecode2 = 0 ;
6226 int val3 ;
6227 int ecode3 = 0 ;
6228 PyObject * obj0 = 0 ;
6229 PyObject * obj1 = 0 ;
6230 PyObject * obj2 = 0 ;
6231 char * kwnames[] = {
6232 (char *) "width",(char *) "height",(char *) "depth", NULL
6233 };
6234
6235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6236 ecode1 = SWIG_AsVal_int(obj0, &val1);
6237 if (!SWIG_IsOK(ecode1)) {
6238 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6239 }
6240 arg1 = static_cast< int >(val1);
6241 ecode2 = SWIG_AsVal_int(obj1, &val2);
6242 if (!SWIG_IsOK(ecode2)) {
6243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6244 }
6245 arg2 = static_cast< int >(val2);
6246 if (obj2) {
6247 ecode3 = SWIG_AsVal_int(obj2, &val3);
6248 if (!SWIG_IsOK(ecode3)) {
6249 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6250 }
6251 arg3 = static_cast< int >(val3);
6252 }
6253 {
6254 if (!wxPyCheckForApp()) SWIG_fail;
6255 PyThreadState* __tstate = wxPyBeginAllowThreads();
6256 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6257 wxPyEndAllowThreads(__tstate);
6258 if (PyErr_Occurred()) SWIG_fail;
6259 }
6260 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6261 return resultobj;
6262 fail:
6263 return NULL;
6264 }
6265
6266
6267 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6268 PyObject *resultobj = 0;
6269 wxIcon *arg1 = 0 ;
6270 wxBitmap *result = 0 ;
6271 void *argp1 = 0 ;
6272 int res1 = 0 ;
6273 PyObject * obj0 = 0 ;
6274 char * kwnames[] = {
6275 (char *) "icon", NULL
6276 };
6277
6278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6279 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6280 if (!SWIG_IsOK(res1)) {
6281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6282 }
6283 if (!argp1) {
6284 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6285 }
6286 arg1 = reinterpret_cast< wxIcon * >(argp1);
6287 {
6288 if (!wxPyCheckForApp()) SWIG_fail;
6289 PyThreadState* __tstate = wxPyBeginAllowThreads();
6290 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6291 wxPyEndAllowThreads(__tstate);
6292 if (PyErr_Occurred()) SWIG_fail;
6293 }
6294 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6295 return resultobj;
6296 fail:
6297 return NULL;
6298 }
6299
6300
6301 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6302 PyObject *resultobj = 0;
6303 wxImage *arg1 = 0 ;
6304 int arg2 = (int) -1 ;
6305 wxBitmap *result = 0 ;
6306 void *argp1 = 0 ;
6307 int res1 = 0 ;
6308 int val2 ;
6309 int ecode2 = 0 ;
6310 PyObject * obj0 = 0 ;
6311 PyObject * obj1 = 0 ;
6312 char * kwnames[] = {
6313 (char *) "image",(char *) "depth", NULL
6314 };
6315
6316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6317 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6318 if (!SWIG_IsOK(res1)) {
6319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6320 }
6321 if (!argp1) {
6322 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6323 }
6324 arg1 = reinterpret_cast< wxImage * >(argp1);
6325 if (obj1) {
6326 ecode2 = SWIG_AsVal_int(obj1, &val2);
6327 if (!SWIG_IsOK(ecode2)) {
6328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6329 }
6330 arg2 = static_cast< int >(val2);
6331 }
6332 {
6333 if (!wxPyCheckForApp()) SWIG_fail;
6334 PyThreadState* __tstate = wxPyBeginAllowThreads();
6335 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6336 wxPyEndAllowThreads(__tstate);
6337 if (PyErr_Occurred()) SWIG_fail;
6338 }
6339 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6340 return resultobj;
6341 fail:
6342 return NULL;
6343 }
6344
6345
6346 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6347 PyObject *resultobj = 0;
6348 PyObject *arg1 = (PyObject *) 0 ;
6349 wxBitmap *result = 0 ;
6350 PyObject * obj0 = 0 ;
6351 char * kwnames[] = {
6352 (char *) "listOfStrings", NULL
6353 };
6354
6355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6356 arg1 = obj0;
6357 {
6358 if (!wxPyCheckForApp()) SWIG_fail;
6359 PyThreadState* __tstate = wxPyBeginAllowThreads();
6360 result = (wxBitmap *)new_wxBitmap(arg1);
6361 wxPyEndAllowThreads(__tstate);
6362 if (PyErr_Occurred()) SWIG_fail;
6363 }
6364 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6365 return resultobj;
6366 fail:
6367 return NULL;
6368 }
6369
6370
6371 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6372 PyObject *resultobj = 0;
6373 PyObject *arg1 = (PyObject *) 0 ;
6374 int arg2 ;
6375 int arg3 ;
6376 int arg4 = (int) 1 ;
6377 wxBitmap *result = 0 ;
6378 int val2 ;
6379 int ecode2 = 0 ;
6380 int val3 ;
6381 int ecode3 = 0 ;
6382 int val4 ;
6383 int ecode4 = 0 ;
6384 PyObject * obj0 = 0 ;
6385 PyObject * obj1 = 0 ;
6386 PyObject * obj2 = 0 ;
6387 PyObject * obj3 = 0 ;
6388 char * kwnames[] = {
6389 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6390 };
6391
6392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6393 arg1 = obj0;
6394 ecode2 = SWIG_AsVal_int(obj1, &val2);
6395 if (!SWIG_IsOK(ecode2)) {
6396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6397 }
6398 arg2 = static_cast< int >(val2);
6399 ecode3 = SWIG_AsVal_int(obj2, &val3);
6400 if (!SWIG_IsOK(ecode3)) {
6401 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6402 }
6403 arg3 = static_cast< int >(val3);
6404 if (obj3) {
6405 ecode4 = SWIG_AsVal_int(obj3, &val4);
6406 if (!SWIG_IsOK(ecode4)) {
6407 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6408 }
6409 arg4 = static_cast< int >(val4);
6410 }
6411 {
6412 if (!wxPyCheckForApp()) SWIG_fail;
6413 PyThreadState* __tstate = wxPyBeginAllowThreads();
6414 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6415 wxPyEndAllowThreads(__tstate);
6416 if (PyErr_Occurred()) SWIG_fail;
6417 }
6418 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6419 return resultobj;
6420 fail:
6421 return NULL;
6422 }
6423
6424
6425 SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6426 PyObject *resultobj = 0;
6427 wxBitmap *arg1 = (wxBitmap *) 0 ;
6428 long result;
6429 void *argp1 = 0 ;
6430 int res1 = 0 ;
6431 PyObject *swig_obj[1] ;
6432
6433 if (!args) SWIG_fail;
6434 swig_obj[0] = args;
6435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6436 if (!SWIG_IsOK(res1)) {
6437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6438 }
6439 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6440 {
6441 result = (long)(arg1)->GetHandle();
6442 if (PyErr_Occurred()) SWIG_fail;
6443 }
6444 resultobj = SWIG_From_long(static_cast< long >(result));
6445 return resultobj;
6446 fail:
6447 return NULL;
6448 }
6449
6450
6451 SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6452 PyObject *resultobj = 0;
6453 wxBitmap *arg1 = (wxBitmap *) 0 ;
6454 long arg2 ;
6455 void *argp1 = 0 ;
6456 int res1 = 0 ;
6457 long val2 ;
6458 int ecode2 = 0 ;
6459 PyObject * obj0 = 0 ;
6460 PyObject * obj1 = 0 ;
6461 char * kwnames[] = {
6462 (char *) "self",(char *) "handle", NULL
6463 };
6464
6465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6467 if (!SWIG_IsOK(res1)) {
6468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6469 }
6470 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6471 ecode2 = SWIG_AsVal_long(obj1, &val2);
6472 if (!SWIG_IsOK(ecode2)) {
6473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
6474 }
6475 arg2 = static_cast< long >(val2);
6476 {
6477 wxBitmap_SetHandle(arg1,arg2);
6478 if (PyErr_Occurred()) SWIG_fail;
6479 }
6480 resultobj = SWIG_Py_Void();
6481 return resultobj;
6482 fail:
6483 return NULL;
6484 }
6485
6486
6487 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6488 PyObject *resultobj = 0;
6489 wxBitmap *arg1 = (wxBitmap *) 0 ;
6490 bool result;
6491 void *argp1 = 0 ;
6492 int res1 = 0 ;
6493 PyObject *swig_obj[1] ;
6494
6495 if (!args) SWIG_fail;
6496 swig_obj[0] = args;
6497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6498 if (!SWIG_IsOK(res1)) {
6499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6500 }
6501 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6502 {
6503 result = (bool)(arg1)->IsOk();
6504 if (PyErr_Occurred()) SWIG_fail;
6505 }
6506 {
6507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6508 }
6509 return resultobj;
6510 fail:
6511 return NULL;
6512 }
6513
6514
6515 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6516 PyObject *resultobj = 0;
6517 wxBitmap *arg1 = (wxBitmap *) 0 ;
6518 int result;
6519 void *argp1 = 0 ;
6520 int res1 = 0 ;
6521 PyObject *swig_obj[1] ;
6522
6523 if (!args) SWIG_fail;
6524 swig_obj[0] = args;
6525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6526 if (!SWIG_IsOK(res1)) {
6527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6528 }
6529 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6530 {
6531 result = (int)(arg1)->GetWidth();
6532 if (PyErr_Occurred()) SWIG_fail;
6533 }
6534 resultobj = SWIG_From_int(static_cast< int >(result));
6535 return resultobj;
6536 fail:
6537 return NULL;
6538 }
6539
6540
6541 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6542 PyObject *resultobj = 0;
6543 wxBitmap *arg1 = (wxBitmap *) 0 ;
6544 int result;
6545 void *argp1 = 0 ;
6546 int res1 = 0 ;
6547 PyObject *swig_obj[1] ;
6548
6549 if (!args) SWIG_fail;
6550 swig_obj[0] = args;
6551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6552 if (!SWIG_IsOK(res1)) {
6553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6554 }
6555 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6556 {
6557 result = (int)(arg1)->GetHeight();
6558 if (PyErr_Occurred()) SWIG_fail;
6559 }
6560 resultobj = SWIG_From_int(static_cast< int >(result));
6561 return resultobj;
6562 fail:
6563 return NULL;
6564 }
6565
6566
6567 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6568 PyObject *resultobj = 0;
6569 wxBitmap *arg1 = (wxBitmap *) 0 ;
6570 int result;
6571 void *argp1 = 0 ;
6572 int res1 = 0 ;
6573 PyObject *swig_obj[1] ;
6574
6575 if (!args) SWIG_fail;
6576 swig_obj[0] = args;
6577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6578 if (!SWIG_IsOK(res1)) {
6579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6580 }
6581 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6582 {
6583 result = (int)(arg1)->GetDepth();
6584 if (PyErr_Occurred()) SWIG_fail;
6585 }
6586 resultobj = SWIG_From_int(static_cast< int >(result));
6587 return resultobj;
6588 fail:
6589 return NULL;
6590 }
6591
6592
6593 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6594 PyObject *resultobj = 0;
6595 wxBitmap *arg1 = (wxBitmap *) 0 ;
6596 wxSize result;
6597 void *argp1 = 0 ;
6598 int res1 = 0 ;
6599 PyObject *swig_obj[1] ;
6600
6601 if (!args) SWIG_fail;
6602 swig_obj[0] = args;
6603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6604 if (!SWIG_IsOK(res1)) {
6605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6606 }
6607 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6608 {
6609 result = wxBitmap_GetSize(arg1);
6610 if (PyErr_Occurred()) SWIG_fail;
6611 }
6612 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6613 return resultobj;
6614 fail:
6615 return NULL;
6616 }
6617
6618
6619 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6620 PyObject *resultobj = 0;
6621 wxBitmap *arg1 = (wxBitmap *) 0 ;
6622 SwigValueWrapper<wxImage > result;
6623 void *argp1 = 0 ;
6624 int res1 = 0 ;
6625 PyObject *swig_obj[1] ;
6626
6627 if (!args) SWIG_fail;
6628 swig_obj[0] = args;
6629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6630 if (!SWIG_IsOK(res1)) {
6631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6632 }
6633 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6634 {
6635 result = ((wxBitmap const *)arg1)->ConvertToImage();
6636 if (PyErr_Occurred()) SWIG_fail;
6637 }
6638 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6639 return resultobj;
6640 fail:
6641 return NULL;
6642 }
6643
6644
6645 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6646 PyObject *resultobj = 0;
6647 wxBitmap *arg1 = (wxBitmap *) 0 ;
6648 wxMask *result = 0 ;
6649 void *argp1 = 0 ;
6650 int res1 = 0 ;
6651 PyObject *swig_obj[1] ;
6652
6653 if (!args) SWIG_fail;
6654 swig_obj[0] = args;
6655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6656 if (!SWIG_IsOK(res1)) {
6657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6658 }
6659 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6660 {
6661 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6662 if (PyErr_Occurred()) SWIG_fail;
6663 }
6664 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6665 return resultobj;
6666 fail:
6667 return NULL;
6668 }
6669
6670
6671 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6672 PyObject *resultobj = 0;
6673 wxBitmap *arg1 = (wxBitmap *) 0 ;
6674 wxMask *arg2 = (wxMask *) 0 ;
6675 void *argp1 = 0 ;
6676 int res1 = 0 ;
6677 int res2 = 0 ;
6678 PyObject * obj0 = 0 ;
6679 PyObject * obj1 = 0 ;
6680 char * kwnames[] = {
6681 (char *) "self",(char *) "mask", NULL
6682 };
6683
6684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6686 if (!SWIG_IsOK(res1)) {
6687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6688 }
6689 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6690 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6691 if (!SWIG_IsOK(res2)) {
6692 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6693 }
6694 {
6695 (arg1)->SetMask(arg2);
6696 if (PyErr_Occurred()) SWIG_fail;
6697 }
6698 resultobj = SWIG_Py_Void();
6699 return resultobj;
6700 fail:
6701 return NULL;
6702 }
6703
6704
6705 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6706 PyObject *resultobj = 0;
6707 wxBitmap *arg1 = (wxBitmap *) 0 ;
6708 wxColour *arg2 = 0 ;
6709 void *argp1 = 0 ;
6710 int res1 = 0 ;
6711 wxColour temp2 ;
6712 PyObject * obj0 = 0 ;
6713 PyObject * obj1 = 0 ;
6714 char * kwnames[] = {
6715 (char *) "self",(char *) "colour", NULL
6716 };
6717
6718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6720 if (!SWIG_IsOK(res1)) {
6721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6722 }
6723 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6724 {
6725 arg2 = &temp2;
6726 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6727 }
6728 {
6729 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6730 if (PyErr_Occurred()) SWIG_fail;
6731 }
6732 resultobj = SWIG_Py_Void();
6733 return resultobj;
6734 fail:
6735 return NULL;
6736 }
6737
6738
6739 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6740 PyObject *resultobj = 0;
6741 wxBitmap *arg1 = (wxBitmap *) 0 ;
6742 wxRect *arg2 = 0 ;
6743 SwigValueWrapper<wxBitmap > result;
6744 void *argp1 = 0 ;
6745 int res1 = 0 ;
6746 wxRect temp2 ;
6747 PyObject * obj0 = 0 ;
6748 PyObject * obj1 = 0 ;
6749 char * kwnames[] = {
6750 (char *) "self",(char *) "rect", NULL
6751 };
6752
6753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6755 if (!SWIG_IsOK(res1)) {
6756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6757 }
6758 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6759 {
6760 arg2 = &temp2;
6761 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6762 }
6763 {
6764 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6765 if (PyErr_Occurred()) SWIG_fail;
6766 }
6767 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6768 return resultobj;
6769 fail:
6770 return NULL;
6771 }
6772
6773
6774 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6775 PyObject *resultobj = 0;
6776 wxBitmap *arg1 = (wxBitmap *) 0 ;
6777 wxString *arg2 = 0 ;
6778 wxBitmapType arg3 ;
6779 wxPalette *arg4 = (wxPalette *) NULL ;
6780 bool result;
6781 void *argp1 = 0 ;
6782 int res1 = 0 ;
6783 bool temp2 = false ;
6784 int val3 ;
6785 int ecode3 = 0 ;
6786 void *argp4 = 0 ;
6787 int res4 = 0 ;
6788 PyObject * obj0 = 0 ;
6789 PyObject * obj1 = 0 ;
6790 PyObject * obj2 = 0 ;
6791 PyObject * obj3 = 0 ;
6792 char * kwnames[] = {
6793 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6794 };
6795
6796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6798 if (!SWIG_IsOK(res1)) {
6799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6800 }
6801 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6802 {
6803 arg2 = wxString_in_helper(obj1);
6804 if (arg2 == NULL) SWIG_fail;
6805 temp2 = true;
6806 }
6807 ecode3 = SWIG_AsVal_int(obj2, &val3);
6808 if (!SWIG_IsOK(ecode3)) {
6809 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6810 }
6811 arg3 = static_cast< wxBitmapType >(val3);
6812 if (obj3) {
6813 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6814 if (!SWIG_IsOK(res4)) {
6815 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6816 }
6817 arg4 = reinterpret_cast< wxPalette * >(argp4);
6818 }
6819 {
6820 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6821 if (PyErr_Occurred()) SWIG_fail;
6822 }
6823 {
6824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6825 }
6826 {
6827 if (temp2)
6828 delete arg2;
6829 }
6830 return resultobj;
6831 fail:
6832 {
6833 if (temp2)
6834 delete arg2;
6835 }
6836 return NULL;
6837 }
6838
6839
6840 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6841 PyObject *resultobj = 0;
6842 wxBitmap *arg1 = (wxBitmap *) 0 ;
6843 wxString *arg2 = 0 ;
6844 wxBitmapType arg3 ;
6845 bool result;
6846 void *argp1 = 0 ;
6847 int res1 = 0 ;
6848 bool temp2 = false ;
6849 int val3 ;
6850 int ecode3 = 0 ;
6851 PyObject * obj0 = 0 ;
6852 PyObject * obj1 = 0 ;
6853 PyObject * obj2 = 0 ;
6854 char * kwnames[] = {
6855 (char *) "self",(char *) "name",(char *) "type", NULL
6856 };
6857
6858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6860 if (!SWIG_IsOK(res1)) {
6861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6862 }
6863 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6864 {
6865 arg2 = wxString_in_helper(obj1);
6866 if (arg2 == NULL) SWIG_fail;
6867 temp2 = true;
6868 }
6869 ecode3 = SWIG_AsVal_int(obj2, &val3);
6870 if (!SWIG_IsOK(ecode3)) {
6871 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6872 }
6873 arg3 = static_cast< wxBitmapType >(val3);
6874 {
6875 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6876 if (PyErr_Occurred()) SWIG_fail;
6877 }
6878 {
6879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6880 }
6881 {
6882 if (temp2)
6883 delete arg2;
6884 }
6885 return resultobj;
6886 fail:
6887 {
6888 if (temp2)
6889 delete arg2;
6890 }
6891 return NULL;
6892 }
6893
6894
6895 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6896 PyObject *resultobj = 0;
6897 wxBitmap *arg1 = (wxBitmap *) 0 ;
6898 wxPalette *result = 0 ;
6899 void *argp1 = 0 ;
6900 int res1 = 0 ;
6901 PyObject *swig_obj[1] ;
6902
6903 if (!args) SWIG_fail;
6904 swig_obj[0] = args;
6905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6906 if (!SWIG_IsOK(res1)) {
6907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6908 }
6909 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6910 {
6911 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6912 if (PyErr_Occurred()) SWIG_fail;
6913 }
6914 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6915 return resultobj;
6916 fail:
6917 return NULL;
6918 }
6919
6920
6921 SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6922 PyObject *resultobj = 0;
6923 wxBitmap *arg1 = (wxBitmap *) 0 ;
6924 wxPalette *arg2 = 0 ;
6925 void *argp1 = 0 ;
6926 int res1 = 0 ;
6927 void *argp2 = 0 ;
6928 int res2 = 0 ;
6929 PyObject * obj0 = 0 ;
6930 PyObject * obj1 = 0 ;
6931 char * kwnames[] = {
6932 (char *) "self",(char *) "palette", NULL
6933 };
6934
6935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6937 if (!SWIG_IsOK(res1)) {
6938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6939 }
6940 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6941 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6942 if (!SWIG_IsOK(res2)) {
6943 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6944 }
6945 if (!argp2) {
6946 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6947 }
6948 arg2 = reinterpret_cast< wxPalette * >(argp2);
6949 {
6950 (arg1)->SetPalette((wxPalette const &)*arg2);
6951 if (PyErr_Occurred()) SWIG_fail;
6952 }
6953 resultobj = SWIG_Py_Void();
6954 return resultobj;
6955 fail:
6956 return NULL;
6957 }
6958
6959
6960 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6961 PyObject *resultobj = 0;
6962 wxBitmap *arg1 = (wxBitmap *) 0 ;
6963 wxIcon *arg2 = 0 ;
6964 bool result;
6965 void *argp1 = 0 ;
6966 int res1 = 0 ;
6967 void *argp2 = 0 ;
6968 int res2 = 0 ;
6969 PyObject * obj0 = 0 ;
6970 PyObject * obj1 = 0 ;
6971 char * kwnames[] = {
6972 (char *) "self",(char *) "icon", NULL
6973 };
6974
6975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6977 if (!SWIG_IsOK(res1)) {
6978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6979 }
6980 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6981 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6982 if (!SWIG_IsOK(res2)) {
6983 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6984 }
6985 if (!argp2) {
6986 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6987 }
6988 arg2 = reinterpret_cast< wxIcon * >(argp2);
6989 {
6990 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6991 if (PyErr_Occurred()) SWIG_fail;
6992 }
6993 {
6994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6995 }
6996 return resultobj;
6997 fail:
6998 return NULL;
6999 }
7000
7001
7002 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7003 PyObject *resultobj = 0;
7004 wxBitmap *arg1 = (wxBitmap *) 0 ;
7005 int arg2 ;
7006 void *argp1 = 0 ;
7007 int res1 = 0 ;
7008 int val2 ;
7009 int ecode2 = 0 ;
7010 PyObject * obj0 = 0 ;
7011 PyObject * obj1 = 0 ;
7012 char * kwnames[] = {
7013 (char *) "self",(char *) "height", NULL
7014 };
7015
7016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
7017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7018 if (!SWIG_IsOK(res1)) {
7019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
7020 }
7021 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7022 ecode2 = SWIG_AsVal_int(obj1, &val2);
7023 if (!SWIG_IsOK(ecode2)) {
7024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
7025 }
7026 arg2 = static_cast< int >(val2);
7027 {
7028 (arg1)->SetHeight(arg2);
7029 if (PyErr_Occurred()) SWIG_fail;
7030 }
7031 resultobj = SWIG_Py_Void();
7032 return resultobj;
7033 fail:
7034 return NULL;
7035 }
7036
7037
7038 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7039 PyObject *resultobj = 0;
7040 wxBitmap *arg1 = (wxBitmap *) 0 ;
7041 int arg2 ;
7042 void *argp1 = 0 ;
7043 int res1 = 0 ;
7044 int val2 ;
7045 int ecode2 = 0 ;
7046 PyObject * obj0 = 0 ;
7047 PyObject * obj1 = 0 ;
7048 char * kwnames[] = {
7049 (char *) "self",(char *) "width", NULL
7050 };
7051
7052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7054 if (!SWIG_IsOK(res1)) {
7055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
7056 }
7057 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7058 ecode2 = SWIG_AsVal_int(obj1, &val2);
7059 if (!SWIG_IsOK(ecode2)) {
7060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
7061 }
7062 arg2 = static_cast< int >(val2);
7063 {
7064 (arg1)->SetWidth(arg2);
7065 if (PyErr_Occurred()) SWIG_fail;
7066 }
7067 resultobj = SWIG_Py_Void();
7068 return resultobj;
7069 fail:
7070 return NULL;
7071 }
7072
7073
7074 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7075 PyObject *resultobj = 0;
7076 wxBitmap *arg1 = (wxBitmap *) 0 ;
7077 int arg2 ;
7078 void *argp1 = 0 ;
7079 int res1 = 0 ;
7080 int val2 ;
7081 int ecode2 = 0 ;
7082 PyObject * obj0 = 0 ;
7083 PyObject * obj1 = 0 ;
7084 char * kwnames[] = {
7085 (char *) "self",(char *) "depth", NULL
7086 };
7087
7088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
7089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7090 if (!SWIG_IsOK(res1)) {
7091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
7092 }
7093 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7094 ecode2 = SWIG_AsVal_int(obj1, &val2);
7095 if (!SWIG_IsOK(ecode2)) {
7096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
7097 }
7098 arg2 = static_cast< int >(val2);
7099 {
7100 (arg1)->SetDepth(arg2);
7101 if (PyErr_Occurred()) SWIG_fail;
7102 }
7103 resultobj = SWIG_Py_Void();
7104 return resultobj;
7105 fail:
7106 return NULL;
7107 }
7108
7109
7110 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7111 PyObject *resultobj = 0;
7112 wxBitmap *arg1 = (wxBitmap *) 0 ;
7113 wxSize *arg2 = 0 ;
7114 void *argp1 = 0 ;
7115 int res1 = 0 ;
7116 wxSize temp2 ;
7117 PyObject * obj0 = 0 ;
7118 PyObject * obj1 = 0 ;
7119 char * kwnames[] = {
7120 (char *) "self",(char *) "size", NULL
7121 };
7122
7123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7125 if (!SWIG_IsOK(res1)) {
7126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
7127 }
7128 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7129 {
7130 arg2 = &temp2;
7131 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7132 }
7133 {
7134 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
7135 if (PyErr_Occurred()) SWIG_fail;
7136 }
7137 resultobj = SWIG_Py_Void();
7138 return resultobj;
7139 fail:
7140 return NULL;
7141 }
7142
7143
7144 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7145 PyObject *resultobj = 0;
7146 wxBitmap *arg1 = (wxBitmap *) 0 ;
7147 wxCursor *arg2 = 0 ;
7148 bool result;
7149 void *argp1 = 0 ;
7150 int res1 = 0 ;
7151 void *argp2 = 0 ;
7152 int res2 = 0 ;
7153 PyObject * obj0 = 0 ;
7154 PyObject * obj1 = 0 ;
7155 char * kwnames[] = {
7156 (char *) "self",(char *) "cursor", NULL
7157 };
7158
7159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
7160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7161 if (!SWIG_IsOK(res1)) {
7162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
7163 }
7164 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7165 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
7166 if (!SWIG_IsOK(res2)) {
7167 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
7168 }
7169 if (!argp2) {
7170 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
7171 }
7172 arg2 = reinterpret_cast< wxCursor * >(argp2);
7173 {
7174 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
7175 if (PyErr_Occurred()) SWIG_fail;
7176 }
7177 {
7178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7179 }
7180 return resultobj;
7181 fail:
7182 return NULL;
7183 }
7184
7185
7186 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7187 PyObject *resultobj = 0;
7188 wxBitmap *arg1 = (wxBitmap *) 0 ;
7189 buffer arg2 ;
7190 int arg3 ;
7191 void *argp1 = 0 ;
7192 int res1 = 0 ;
7193 Py_ssize_t temp2 ;
7194 PyObject * obj0 = 0 ;
7195 PyObject * obj1 = 0 ;
7196 char * kwnames[] = {
7197 (char *) "self",(char *) "data", NULL
7198 };
7199
7200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7202 if (!SWIG_IsOK(res1)) {
7203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7204 }
7205 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7206 {
7207 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7208 arg3 = (int)temp2;
7209 }
7210 {
7211 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7212 if (PyErr_Occurred()) SWIG_fail;
7213 }
7214 resultobj = SWIG_Py_Void();
7215 return resultobj;
7216 fail:
7217 return NULL;
7218 }
7219
7220
7221 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7222 PyObject *resultobj = 0;
7223 wxBitmap *arg1 = (wxBitmap *) 0 ;
7224 buffer arg2 ;
7225 int arg3 ;
7226 void *argp1 = 0 ;
7227 int res1 = 0 ;
7228 Py_ssize_t temp2 ;
7229 PyObject * obj0 = 0 ;
7230 PyObject * obj1 = 0 ;
7231 char * kwnames[] = {
7232 (char *) "self",(char *) "data", NULL
7233 };
7234
7235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7237 if (!SWIG_IsOK(res1)) {
7238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7239 }
7240 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7241 {
7242 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7243 arg3 = (int)temp2;
7244 }
7245 {
7246 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7247 if (PyErr_Occurred()) SWIG_fail;
7248 }
7249 resultobj = SWIG_Py_Void();
7250 return resultobj;
7251 fail:
7252 return NULL;
7253 }
7254
7255
7256 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7257 PyObject *resultobj = 0;
7258 wxBitmap *arg1 = (wxBitmap *) 0 ;
7259 wxBitmap *arg2 = (wxBitmap *) 0 ;
7260 bool result;
7261 void *argp1 = 0 ;
7262 int res1 = 0 ;
7263 void *argp2 = 0 ;
7264 int res2 = 0 ;
7265 PyObject * obj0 = 0 ;
7266 PyObject * obj1 = 0 ;
7267 char * kwnames[] = {
7268 (char *) "self",(char *) "other", NULL
7269 };
7270
7271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7273 if (!SWIG_IsOK(res1)) {
7274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7275 }
7276 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7277 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7278 if (!SWIG_IsOK(res2)) {
7279 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7280 }
7281 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7282 {
7283 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
7284 if (PyErr_Occurred()) SWIG_fail;
7285 }
7286 {
7287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7288 }
7289 return resultobj;
7290 fail:
7291 return NULL;
7292 }
7293
7294
7295 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7296 PyObject *resultobj = 0;
7297 wxBitmap *arg1 = (wxBitmap *) 0 ;
7298 wxBitmap *arg2 = (wxBitmap *) 0 ;
7299 bool result;
7300 void *argp1 = 0 ;
7301 int res1 = 0 ;
7302 void *argp2 = 0 ;
7303 int res2 = 0 ;
7304 PyObject * obj0 = 0 ;
7305 PyObject * obj1 = 0 ;
7306 char * kwnames[] = {
7307 (char *) "self",(char *) "other", NULL
7308 };
7309
7310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7312 if (!SWIG_IsOK(res1)) {
7313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7314 }
7315 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7316 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7317 if (!SWIG_IsOK(res2)) {
7318 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7319 }
7320 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7321 {
7322 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7323 if (PyErr_Occurred()) SWIG_fail;
7324 }
7325 {
7326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7327 }
7328 return resultobj;
7329 fail:
7330 return NULL;
7331 }
7332
7333
7334 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7335 PyObject *obj;
7336 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7337 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7338 return SWIG_Py_Void();
7339 }
7340
7341 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7342 return SWIG_Python_InitShadowInstance(args);
7343 }
7344
7345 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7346 PyObject *resultobj = 0;
7347 int arg1 ;
7348 int arg2 ;
7349 buffer arg3 ;
7350 int arg4 ;
7351 buffer arg5 ;
7352 int arg6 ;
7353 wxBitmap *result = 0 ;
7354 int val1 ;
7355 int ecode1 = 0 ;
7356 int val2 ;
7357 int ecode2 = 0 ;
7358 Py_ssize_t temp3 ;
7359 Py_ssize_t temp5 ;
7360 PyObject * obj0 = 0 ;
7361 PyObject * obj1 = 0 ;
7362 PyObject * obj2 = 0 ;
7363 PyObject * obj3 = 0 ;
7364 char * kwnames[] = {
7365 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7366 };
7367
7368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7369 ecode1 = SWIG_AsVal_int(obj0, &val1);
7370 if (!SWIG_IsOK(ecode1)) {
7371 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7372 }
7373 arg1 = static_cast< int >(val1);
7374 ecode2 = SWIG_AsVal_int(obj1, &val2);
7375 if (!SWIG_IsOK(ecode2)) {
7376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7377 }
7378 arg2 = static_cast< int >(val2);
7379 {
7380 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7381 arg4 = (int)temp3;
7382 }
7383 {
7384 if (obj3 != Py_None) {
7385 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7386 arg6 = (int)temp5;
7387 }
7388 }
7389 {
7390 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7391 if (PyErr_Occurred()) SWIG_fail;
7392 }
7393 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7394 return resultobj;
7395 fail:
7396 return NULL;
7397 }
7398
7399
7400 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7401 PyObject *resultobj = 0;
7402 int arg1 ;
7403 int arg2 ;
7404 buffer arg3 ;
7405 int arg4 ;
7406 wxBitmap *result = 0 ;
7407 int val1 ;
7408 int ecode1 = 0 ;
7409 int val2 ;
7410 int ecode2 = 0 ;
7411 Py_ssize_t temp3 ;
7412 PyObject * obj0 = 0 ;
7413 PyObject * obj1 = 0 ;
7414 PyObject * obj2 = 0 ;
7415 char * kwnames[] = {
7416 (char *) "width",(char *) "height",(char *) "data", NULL
7417 };
7418
7419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7420 ecode1 = SWIG_AsVal_int(obj0, &val1);
7421 if (!SWIG_IsOK(ecode1)) {
7422 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7423 }
7424 arg1 = static_cast< int >(val1);
7425 ecode2 = SWIG_AsVal_int(obj1, &val2);
7426 if (!SWIG_IsOK(ecode2)) {
7427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7428 }
7429 arg2 = static_cast< int >(val2);
7430 {
7431 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7432 arg4 = (int)temp3;
7433 }
7434 {
7435 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7436 if (PyErr_Occurred()) SWIG_fail;
7437 }
7438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7439 return resultobj;
7440 fail:
7441 return NULL;
7442 }
7443
7444
7445 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7446 PyObject *resultobj = 0;
7447 int arg1 ;
7448 int arg2 ;
7449 buffer arg3 ;
7450 int arg4 ;
7451 wxBitmap *result = 0 ;
7452 int val1 ;
7453 int ecode1 = 0 ;
7454 int val2 ;
7455 int ecode2 = 0 ;
7456 Py_ssize_t temp3 ;
7457 PyObject * obj0 = 0 ;
7458 PyObject * obj1 = 0 ;
7459 PyObject * obj2 = 0 ;
7460 char * kwnames[] = {
7461 (char *) "width",(char *) "height",(char *) "data", NULL
7462 };
7463
7464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7465 ecode1 = SWIG_AsVal_int(obj0, &val1);
7466 if (!SWIG_IsOK(ecode1)) {
7467 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7468 }
7469 arg1 = static_cast< int >(val1);
7470 ecode2 = SWIG_AsVal_int(obj1, &val2);
7471 if (!SWIG_IsOK(ecode2)) {
7472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7473 }
7474 arg2 = static_cast< int >(val2);
7475 {
7476 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7477 arg4 = (int)temp3;
7478 }
7479 {
7480 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7481 if (PyErr_Occurred()) SWIG_fail;
7482 }
7483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7484 return resultobj;
7485 fail:
7486 return NULL;
7487 }
7488
7489
7490 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7491 PyObject *resultobj = 0;
7492 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7493 wxPoint result;
7494 void *argp1 = 0 ;
7495 int res1 = 0 ;
7496 PyObject *swig_obj[1] ;
7497
7498 if (!args) SWIG_fail;
7499 swig_obj[0] = args;
7500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7501 if (!SWIG_IsOK(res1)) {
7502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7503 }
7504 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7505 {
7506 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7507 if (PyErr_Occurred()) SWIG_fail;
7508 }
7509 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7510 return resultobj;
7511 fail:
7512 return NULL;
7513 }
7514
7515
7516 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7517 PyObject *resultobj = 0;
7518 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7519 int result;
7520 void *argp1 = 0 ;
7521 int res1 = 0 ;
7522 PyObject *swig_obj[1] ;
7523
7524 if (!args) SWIG_fail;
7525 swig_obj[0] = args;
7526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7527 if (!SWIG_IsOK(res1)) {
7528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7529 }
7530 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7531 {
7532 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7533 if (PyErr_Occurred()) SWIG_fail;
7534 }
7535 resultobj = SWIG_From_int(static_cast< int >(result));
7536 return resultobj;
7537 fail:
7538 return NULL;
7539 }
7540
7541
7542 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7543 PyObject *resultobj = 0;
7544 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7545 int result;
7546 void *argp1 = 0 ;
7547 int res1 = 0 ;
7548 PyObject *swig_obj[1] ;
7549
7550 if (!args) SWIG_fail;
7551 swig_obj[0] = args;
7552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7553 if (!SWIG_IsOK(res1)) {
7554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7555 }
7556 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7557 {
7558 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7559 if (PyErr_Occurred()) SWIG_fail;
7560 }
7561 resultobj = SWIG_From_int(static_cast< int >(result));
7562 return resultobj;
7563 fail:
7564 return NULL;
7565 }
7566
7567
7568 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7569 PyObject *resultobj = 0;
7570 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7571 wxSize result;
7572 void *argp1 = 0 ;
7573 int res1 = 0 ;
7574 PyObject *swig_obj[1] ;
7575
7576 if (!args) SWIG_fail;
7577 swig_obj[0] = args;
7578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7579 if (!SWIG_IsOK(res1)) {
7580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7581 }
7582 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7583 {
7584 result = ((wxPixelDataBase const *)arg1)->GetSize();
7585 if (PyErr_Occurred()) SWIG_fail;
7586 }
7587 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7588 return resultobj;
7589 fail:
7590 return NULL;
7591 }
7592
7593
7594 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7595 PyObject *resultobj = 0;
7596 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7597 int result;
7598 void *argp1 = 0 ;
7599 int res1 = 0 ;
7600 PyObject *swig_obj[1] ;
7601
7602 if (!args) SWIG_fail;
7603 swig_obj[0] = args;
7604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7605 if (!SWIG_IsOK(res1)) {
7606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7607 }
7608 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7609 {
7610 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7611 if (PyErr_Occurred()) SWIG_fail;
7612 }
7613 resultobj = SWIG_From_int(static_cast< int >(result));
7614 return resultobj;
7615 fail:
7616 return NULL;
7617 }
7618
7619
7620 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7621 PyObject *obj;
7622 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7623 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7624 return SWIG_Py_Void();
7625 }
7626
7627 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7628 PyObject *resultobj = 0;
7629 wxBitmap *arg1 = 0 ;
7630 wxNativePixelData *result = 0 ;
7631 void *argp1 = 0 ;
7632 int res1 = 0 ;
7633
7634 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7636 if (!SWIG_IsOK(res1)) {
7637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7638 }
7639 if (!argp1) {
7640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7641 }
7642 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7643 {
7644 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7645 if (PyErr_Occurred()) SWIG_fail;
7646 }
7647 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7648 return resultobj;
7649 fail:
7650 return NULL;
7651 }
7652
7653
7654 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7655 PyObject *resultobj = 0;
7656 wxBitmap *arg1 = 0 ;
7657 wxRect *arg2 = 0 ;
7658 wxNativePixelData *result = 0 ;
7659 void *argp1 = 0 ;
7660 int res1 = 0 ;
7661 wxRect temp2 ;
7662
7663 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7665 if (!SWIG_IsOK(res1)) {
7666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7667 }
7668 if (!argp1) {
7669 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7670 }
7671 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7672 {
7673 arg2 = &temp2;
7674 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7675 }
7676 {
7677 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7678 if (PyErr_Occurred()) SWIG_fail;
7679 }
7680 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7681 return resultobj;
7682 fail:
7683 return NULL;
7684 }
7685
7686
7687 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7688 PyObject *resultobj = 0;
7689 wxBitmap *arg1 = 0 ;
7690 wxPoint *arg2 = 0 ;
7691 wxSize *arg3 = 0 ;
7692 wxNativePixelData *result = 0 ;
7693 void *argp1 = 0 ;
7694 int res1 = 0 ;
7695 wxPoint temp2 ;
7696 wxSize temp3 ;
7697
7698 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7700 if (!SWIG_IsOK(res1)) {
7701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7702 }
7703 if (!argp1) {
7704 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7705 }
7706 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7707 {
7708 arg2 = &temp2;
7709 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7710 }
7711 {
7712 arg3 = &temp3;
7713 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7714 }
7715 {
7716 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7717 if (PyErr_Occurred()) SWIG_fail;
7718 }
7719 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7720 return resultobj;
7721 fail:
7722 return NULL;
7723 }
7724
7725
7726 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7727 int argc;
7728 PyObject *argv[4];
7729
7730 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7731 --argc;
7732 if (argc == 1) {
7733 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7734 }
7735 if (argc == 2) {
7736 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7737 }
7738 if (argc == 3) {
7739 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7740 }
7741
7742 fail:
7743 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7744 return NULL;
7745 }
7746
7747
7748 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7749 PyObject *resultobj = 0;
7750 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7751 void *argp1 = 0 ;
7752 int res1 = 0 ;
7753 PyObject *swig_obj[1] ;
7754
7755 if (!args) SWIG_fail;
7756 swig_obj[0] = args;
7757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7758 if (!SWIG_IsOK(res1)) {
7759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7760 }
7761 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7762 {
7763 delete arg1;
7764
7765 if (PyErr_Occurred()) SWIG_fail;
7766 }
7767 resultobj = SWIG_Py_Void();
7768 return resultobj;
7769 fail:
7770 return NULL;
7771 }
7772
7773
7774 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7775 PyObject *resultobj = 0;
7776 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7777 wxNativePixelData_Accessor result;
7778 void *argp1 = 0 ;
7779 int res1 = 0 ;
7780 PyObject *swig_obj[1] ;
7781
7782 if (!args) SWIG_fail;
7783 swig_obj[0] = args;
7784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7785 if (!SWIG_IsOK(res1)) {
7786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7787 }
7788 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7789 {
7790 result = ((wxNativePixelData const *)arg1)->GetPixels();
7791 if (PyErr_Occurred()) SWIG_fail;
7792 }
7793 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7794 return resultobj;
7795 fail:
7796 return NULL;
7797 }
7798
7799
7800 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7801 PyObject *resultobj = 0;
7802 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7803 void *argp1 = 0 ;
7804 int res1 = 0 ;
7805 PyObject *swig_obj[1] ;
7806
7807 if (!args) SWIG_fail;
7808 swig_obj[0] = args;
7809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7810 if (!SWIG_IsOK(res1)) {
7811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7812 }
7813 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7814 {
7815 (arg1)->UseAlpha();
7816 if (PyErr_Occurred()) SWIG_fail;
7817 }
7818 resultobj = SWIG_Py_Void();
7819 return resultobj;
7820 fail:
7821 return NULL;
7822 }
7823
7824
7825 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7826 PyObject *resultobj = 0;
7827 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7828 bool result;
7829 void *argp1 = 0 ;
7830 int res1 = 0 ;
7831 PyObject *swig_obj[1] ;
7832
7833 if (!args) SWIG_fail;
7834 swig_obj[0] = args;
7835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7836 if (!SWIG_IsOK(res1)) {
7837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7838 }
7839 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7840 {
7841 result = (bool)wxNativePixelData___nonzero__(arg1);
7842 if (PyErr_Occurred()) SWIG_fail;
7843 }
7844 {
7845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7846 }
7847 return resultobj;
7848 fail:
7849 return NULL;
7850 }
7851
7852
7853 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7854 PyObject *obj;
7855 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7856 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7857 return SWIG_Py_Void();
7858 }
7859
7860 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7861 return SWIG_Python_InitShadowInstance(args);
7862 }
7863
7864 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7865 PyObject *resultobj = 0;
7866 wxNativePixelData *arg1 = 0 ;
7867 wxNativePixelData_Accessor *result = 0 ;
7868 void *argp1 = 0 ;
7869 int res1 = 0 ;
7870
7871 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7873 if (!SWIG_IsOK(res1)) {
7874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7875 }
7876 if (!argp1) {
7877 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7878 }
7879 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7880 {
7881 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7882 if (PyErr_Occurred()) SWIG_fail;
7883 }
7884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7885 return resultobj;
7886 fail:
7887 return NULL;
7888 }
7889
7890
7891 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7892 PyObject *resultobj = 0;
7893 wxBitmap *arg1 = 0 ;
7894 wxNativePixelData *arg2 = 0 ;
7895 wxNativePixelData_Accessor *result = 0 ;
7896 void *argp1 = 0 ;
7897 int res1 = 0 ;
7898 void *argp2 = 0 ;
7899 int res2 = 0 ;
7900
7901 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7903 if (!SWIG_IsOK(res1)) {
7904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7905 }
7906 if (!argp1) {
7907 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7908 }
7909 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7910 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7911 if (!SWIG_IsOK(res2)) {
7912 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7913 }
7914 if (!argp2) {
7915 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7916 }
7917 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7918 {
7919 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7920 if (PyErr_Occurred()) SWIG_fail;
7921 }
7922 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7923 return resultobj;
7924 fail:
7925 return NULL;
7926 }
7927
7928
7929 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7930 PyObject *resultobj = 0;
7931 wxNativePixelData_Accessor *result = 0 ;
7932
7933 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7934 {
7935 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7936 if (PyErr_Occurred()) SWIG_fail;
7937 }
7938 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7939 return resultobj;
7940 fail:
7941 return NULL;
7942 }
7943
7944
7945 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7946 int argc;
7947 PyObject *argv[3];
7948
7949 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7950 --argc;
7951 if (argc == 0) {
7952 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7953 }
7954 if (argc == 1) {
7955 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7956 }
7957 if (argc == 2) {
7958 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7959 }
7960
7961 fail:
7962 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7963 return NULL;
7964 }
7965
7966
7967 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7968 PyObject *resultobj = 0;
7969 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7970 void *argp1 = 0 ;
7971 int res1 = 0 ;
7972 PyObject *swig_obj[1] ;
7973
7974 if (!args) SWIG_fail;
7975 swig_obj[0] = args;
7976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7977 if (!SWIG_IsOK(res1)) {
7978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7979 }
7980 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7981 {
7982 delete arg1;
7983
7984 if (PyErr_Occurred()) SWIG_fail;
7985 }
7986 resultobj = SWIG_Py_Void();
7987 return resultobj;
7988 fail:
7989 return NULL;
7990 }
7991
7992
7993 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7994 PyObject *resultobj = 0;
7995 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7996 wxNativePixelData *arg2 = 0 ;
7997 void *argp1 = 0 ;
7998 int res1 = 0 ;
7999 void *argp2 = 0 ;
8000 int res2 = 0 ;
8001 PyObject * obj0 = 0 ;
8002 PyObject * obj1 = 0 ;
8003 char * kwnames[] = {
8004 (char *) "self",(char *) "data", NULL
8005 };
8006
8007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8009 if (!SWIG_IsOK(res1)) {
8010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8011 }
8012 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8013 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8014 if (!SWIG_IsOK(res2)) {
8015 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8016 }
8017 if (!argp2) {
8018 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8019 }
8020 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8021 {
8022 (arg1)->Reset((wxNativePixelData const &)*arg2);
8023 if (PyErr_Occurred()) SWIG_fail;
8024 }
8025 resultobj = SWIG_Py_Void();
8026 return resultobj;
8027 fail:
8028 return NULL;
8029 }
8030
8031
8032 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8033 PyObject *resultobj = 0;
8034 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8035 bool result;
8036 void *argp1 = 0 ;
8037 int res1 = 0 ;
8038 PyObject *swig_obj[1] ;
8039
8040 if (!args) SWIG_fail;
8041 swig_obj[0] = args;
8042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8043 if (!SWIG_IsOK(res1)) {
8044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
8045 }
8046 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8047 {
8048 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
8049 if (PyErr_Occurred()) SWIG_fail;
8050 }
8051 {
8052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8053 }
8054 return resultobj;
8055 fail:
8056 return NULL;
8057 }
8058
8059
8060 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8061 PyObject *resultobj = 0;
8062 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8063 void *argp1 = 0 ;
8064 int res1 = 0 ;
8065 PyObject *swig_obj[1] ;
8066
8067 if (!args) SWIG_fail;
8068 swig_obj[0] = args;
8069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8070 if (!SWIG_IsOK(res1)) {
8071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8072 }
8073 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8074 {
8075 wxNativePixelData_Accessor_nextPixel(arg1);
8076 if (PyErr_Occurred()) SWIG_fail;
8077 }
8078 resultobj = SWIG_Py_Void();
8079 return resultobj;
8080 fail:
8081 return NULL;
8082 }
8083
8084
8085 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8086 PyObject *resultobj = 0;
8087 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8088 wxNativePixelData *arg2 = 0 ;
8089 int arg3 ;
8090 int arg4 ;
8091 void *argp1 = 0 ;
8092 int res1 = 0 ;
8093 void *argp2 = 0 ;
8094 int res2 = 0 ;
8095 int val3 ;
8096 int ecode3 = 0 ;
8097 int val4 ;
8098 int ecode4 = 0 ;
8099 PyObject * obj0 = 0 ;
8100 PyObject * obj1 = 0 ;
8101 PyObject * obj2 = 0 ;
8102 PyObject * obj3 = 0 ;
8103 char * kwnames[] = {
8104 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8105 };
8106
8107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8109 if (!SWIG_IsOK(res1)) {
8110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8111 }
8112 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8113 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8114 if (!SWIG_IsOK(res2)) {
8115 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8116 }
8117 if (!argp2) {
8118 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8119 }
8120 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8121 ecode3 = SWIG_AsVal_int(obj2, &val3);
8122 if (!SWIG_IsOK(ecode3)) {
8123 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8124 }
8125 arg3 = static_cast< int >(val3);
8126 ecode4 = SWIG_AsVal_int(obj3, &val4);
8127 if (!SWIG_IsOK(ecode4)) {
8128 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8129 }
8130 arg4 = static_cast< int >(val4);
8131 {
8132 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
8133 if (PyErr_Occurred()) SWIG_fail;
8134 }
8135 resultobj = SWIG_Py_Void();
8136 return resultobj;
8137 fail:
8138 return NULL;
8139 }
8140
8141
8142 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8143 PyObject *resultobj = 0;
8144 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8145 wxNativePixelData *arg2 = 0 ;
8146 int arg3 ;
8147 void *argp1 = 0 ;
8148 int res1 = 0 ;
8149 void *argp2 = 0 ;
8150 int res2 = 0 ;
8151 int val3 ;
8152 int ecode3 = 0 ;
8153 PyObject * obj0 = 0 ;
8154 PyObject * obj1 = 0 ;
8155 PyObject * obj2 = 0 ;
8156 char * kwnames[] = {
8157 (char *) "self",(char *) "data",(char *) "x", NULL
8158 };
8159
8160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8162 if (!SWIG_IsOK(res1)) {
8163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8164 }
8165 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8166 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8167 if (!SWIG_IsOK(res2)) {
8168 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8169 }
8170 if (!argp2) {
8171 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8172 }
8173 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8174 ecode3 = SWIG_AsVal_int(obj2, &val3);
8175 if (!SWIG_IsOK(ecode3)) {
8176 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8177 }
8178 arg3 = static_cast< int >(val3);
8179 {
8180 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
8181 if (PyErr_Occurred()) SWIG_fail;
8182 }
8183 resultobj = SWIG_Py_Void();
8184 return resultobj;
8185 fail:
8186 return NULL;
8187 }
8188
8189
8190 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8191 PyObject *resultobj = 0;
8192 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8193 wxNativePixelData *arg2 = 0 ;
8194 int arg3 ;
8195 void *argp1 = 0 ;
8196 int res1 = 0 ;
8197 void *argp2 = 0 ;
8198 int res2 = 0 ;
8199 int val3 ;
8200 int ecode3 = 0 ;
8201 PyObject * obj0 = 0 ;
8202 PyObject * obj1 = 0 ;
8203 PyObject * obj2 = 0 ;
8204 char * kwnames[] = {
8205 (char *) "self",(char *) "data",(char *) "y", NULL
8206 };
8207
8208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8210 if (!SWIG_IsOK(res1)) {
8211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8212 }
8213 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8214 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8215 if (!SWIG_IsOK(res2)) {
8216 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8217 }
8218 if (!argp2) {
8219 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8220 }
8221 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8222 ecode3 = SWIG_AsVal_int(obj2, &val3);
8223 if (!SWIG_IsOK(ecode3)) {
8224 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8225 }
8226 arg3 = static_cast< int >(val3);
8227 {
8228 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8229 if (PyErr_Occurred()) SWIG_fail;
8230 }
8231 resultobj = SWIG_Py_Void();
8232 return resultobj;
8233 fail:
8234 return NULL;
8235 }
8236
8237
8238 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8239 PyObject *resultobj = 0;
8240 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8241 wxNativePixelData *arg2 = 0 ;
8242 int arg3 ;
8243 int arg4 ;
8244 void *argp1 = 0 ;
8245 int res1 = 0 ;
8246 void *argp2 = 0 ;
8247 int res2 = 0 ;
8248 int val3 ;
8249 int ecode3 = 0 ;
8250 int val4 ;
8251 int ecode4 = 0 ;
8252 PyObject * obj0 = 0 ;
8253 PyObject * obj1 = 0 ;
8254 PyObject * obj2 = 0 ;
8255 PyObject * obj3 = 0 ;
8256 char * kwnames[] = {
8257 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8258 };
8259
8260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8262 if (!SWIG_IsOK(res1)) {
8263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8264 }
8265 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8266 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8267 if (!SWIG_IsOK(res2)) {
8268 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8269 }
8270 if (!argp2) {
8271 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8272 }
8273 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8274 ecode3 = SWIG_AsVal_int(obj2, &val3);
8275 if (!SWIG_IsOK(ecode3)) {
8276 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8277 }
8278 arg3 = static_cast< int >(val3);
8279 ecode4 = SWIG_AsVal_int(obj3, &val4);
8280 if (!SWIG_IsOK(ecode4)) {
8281 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8282 }
8283 arg4 = static_cast< int >(val4);
8284 {
8285 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8286 if (PyErr_Occurred()) SWIG_fail;
8287 }
8288 resultobj = SWIG_Py_Void();
8289 return resultobj;
8290 fail:
8291 return NULL;
8292 }
8293
8294
8295 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8296 PyObject *resultobj = 0;
8297 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8298 byte arg2 ;
8299 byte arg3 ;
8300 byte arg4 ;
8301 void *argp1 = 0 ;
8302 int res1 = 0 ;
8303 unsigned char val2 ;
8304 int ecode2 = 0 ;
8305 unsigned char val3 ;
8306 int ecode3 = 0 ;
8307 unsigned char val4 ;
8308 int ecode4 = 0 ;
8309 PyObject * obj0 = 0 ;
8310 PyObject * obj1 = 0 ;
8311 PyObject * obj2 = 0 ;
8312 PyObject * obj3 = 0 ;
8313 char * kwnames[] = {
8314 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8315 };
8316
8317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8319 if (!SWIG_IsOK(res1)) {
8320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8321 }
8322 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8323 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8324 if (!SWIG_IsOK(ecode2)) {
8325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8326 }
8327 arg2 = static_cast< byte >(val2);
8328 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8329 if (!SWIG_IsOK(ecode3)) {
8330 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8331 }
8332 arg3 = static_cast< byte >(val3);
8333 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8334 if (!SWIG_IsOK(ecode4)) {
8335 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8336 }
8337 arg4 = static_cast< byte >(val4);
8338 {
8339 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8340 if (PyErr_Occurred()) SWIG_fail;
8341 }
8342 resultobj = SWIG_Py_Void();
8343 return resultobj;
8344 fail:
8345 return NULL;
8346 }
8347
8348
8349 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8350 PyObject *resultobj = 0;
8351 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8352 PyObject *result = 0 ;
8353 void *argp1 = 0 ;
8354 int res1 = 0 ;
8355 PyObject *swig_obj[1] ;
8356
8357 if (!args) SWIG_fail;
8358 swig_obj[0] = args;
8359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8360 if (!SWIG_IsOK(res1)) {
8361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8362 }
8363 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8364 {
8365 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8366 if (PyErr_Occurred()) SWIG_fail;
8367 }
8368 resultobj = result;
8369 return resultobj;
8370 fail:
8371 return NULL;
8372 }
8373
8374
8375 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8376 PyObject *obj;
8377 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8378 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8379 return SWIG_Py_Void();
8380 }
8381
8382 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8383 return SWIG_Python_InitShadowInstance(args);
8384 }
8385
8386 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8387 PyObject *resultobj = 0;
8388 wxBitmap *arg1 = 0 ;
8389 wxAlphaPixelData *result = 0 ;
8390 void *argp1 = 0 ;
8391 int res1 = 0 ;
8392
8393 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8395 if (!SWIG_IsOK(res1)) {
8396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8397 }
8398 if (!argp1) {
8399 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8400 }
8401 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8402 {
8403 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8404 if (PyErr_Occurred()) SWIG_fail;
8405 }
8406 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8407 return resultobj;
8408 fail:
8409 return NULL;
8410 }
8411
8412
8413 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8414 PyObject *resultobj = 0;
8415 wxBitmap *arg1 = 0 ;
8416 wxRect *arg2 = 0 ;
8417 wxAlphaPixelData *result = 0 ;
8418 void *argp1 = 0 ;
8419 int res1 = 0 ;
8420 wxRect temp2 ;
8421
8422 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8424 if (!SWIG_IsOK(res1)) {
8425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8426 }
8427 if (!argp1) {
8428 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8429 }
8430 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8431 {
8432 arg2 = &temp2;
8433 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8434 }
8435 {
8436 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8437 if (PyErr_Occurred()) SWIG_fail;
8438 }
8439 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8440 return resultobj;
8441 fail:
8442 return NULL;
8443 }
8444
8445
8446 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8447 PyObject *resultobj = 0;
8448 wxBitmap *arg1 = 0 ;
8449 wxPoint *arg2 = 0 ;
8450 wxSize *arg3 = 0 ;
8451 wxAlphaPixelData *result = 0 ;
8452 void *argp1 = 0 ;
8453 int res1 = 0 ;
8454 wxPoint temp2 ;
8455 wxSize temp3 ;
8456
8457 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8459 if (!SWIG_IsOK(res1)) {
8460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8461 }
8462 if (!argp1) {
8463 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8464 }
8465 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8466 {
8467 arg2 = &temp2;
8468 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8469 }
8470 {
8471 arg3 = &temp3;
8472 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8473 }
8474 {
8475 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8476 if (PyErr_Occurred()) SWIG_fail;
8477 }
8478 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8479 return resultobj;
8480 fail:
8481 return NULL;
8482 }
8483
8484
8485 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8486 int argc;
8487 PyObject *argv[4];
8488
8489 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8490 --argc;
8491 if (argc == 1) {
8492 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8493 }
8494 if (argc == 2) {
8495 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8496 }
8497 if (argc == 3) {
8498 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8499 }
8500
8501 fail:
8502 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8503 return NULL;
8504 }
8505
8506
8507 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8508 PyObject *resultobj = 0;
8509 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8510 void *argp1 = 0 ;
8511 int res1 = 0 ;
8512 PyObject *swig_obj[1] ;
8513
8514 if (!args) SWIG_fail;
8515 swig_obj[0] = args;
8516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8517 if (!SWIG_IsOK(res1)) {
8518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8519 }
8520 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8521 {
8522 delete arg1;
8523
8524 if (PyErr_Occurred()) SWIG_fail;
8525 }
8526 resultobj = SWIG_Py_Void();
8527 return resultobj;
8528 fail:
8529 return NULL;
8530 }
8531
8532
8533 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8534 PyObject *resultobj = 0;
8535 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8536 wxAlphaPixelData_Accessor result;
8537 void *argp1 = 0 ;
8538 int res1 = 0 ;
8539 PyObject *swig_obj[1] ;
8540
8541 if (!args) SWIG_fail;
8542 swig_obj[0] = args;
8543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8544 if (!SWIG_IsOK(res1)) {
8545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8546 }
8547 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8548 {
8549 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8550 if (PyErr_Occurred()) SWIG_fail;
8551 }
8552 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8553 return resultobj;
8554 fail:
8555 return NULL;
8556 }
8557
8558
8559 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8560 PyObject *resultobj = 0;
8561 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8562 void *argp1 = 0 ;
8563 int res1 = 0 ;
8564 PyObject *swig_obj[1] ;
8565
8566 if (!args) SWIG_fail;
8567 swig_obj[0] = args;
8568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8569 if (!SWIG_IsOK(res1)) {
8570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8571 }
8572 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8573 {
8574 (arg1)->UseAlpha();
8575 if (PyErr_Occurred()) SWIG_fail;
8576 }
8577 resultobj = SWIG_Py_Void();
8578 return resultobj;
8579 fail:
8580 return NULL;
8581 }
8582
8583
8584 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8585 PyObject *resultobj = 0;
8586 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8587 bool result;
8588 void *argp1 = 0 ;
8589 int res1 = 0 ;
8590 PyObject *swig_obj[1] ;
8591
8592 if (!args) SWIG_fail;
8593 swig_obj[0] = args;
8594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8595 if (!SWIG_IsOK(res1)) {
8596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8597 }
8598 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8599 {
8600 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8601 if (PyErr_Occurred()) SWIG_fail;
8602 }
8603 {
8604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8605 }
8606 return resultobj;
8607 fail:
8608 return NULL;
8609 }
8610
8611
8612 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8613 PyObject *obj;
8614 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8615 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8616 return SWIG_Py_Void();
8617 }
8618
8619 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8620 return SWIG_Python_InitShadowInstance(args);
8621 }
8622
8623 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8624 PyObject *resultobj = 0;
8625 wxAlphaPixelData *arg1 = 0 ;
8626 wxAlphaPixelData_Accessor *result = 0 ;
8627 void *argp1 = 0 ;
8628 int res1 = 0 ;
8629
8630 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8632 if (!SWIG_IsOK(res1)) {
8633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8634 }
8635 if (!argp1) {
8636 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8637 }
8638 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8639 {
8640 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8641 if (PyErr_Occurred()) SWIG_fail;
8642 }
8643 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8644 return resultobj;
8645 fail:
8646 return NULL;
8647 }
8648
8649
8650 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8651 PyObject *resultobj = 0;
8652 wxBitmap *arg1 = 0 ;
8653 wxAlphaPixelData *arg2 = 0 ;
8654 wxAlphaPixelData_Accessor *result = 0 ;
8655 void *argp1 = 0 ;
8656 int res1 = 0 ;
8657 void *argp2 = 0 ;
8658 int res2 = 0 ;
8659
8660 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8662 if (!SWIG_IsOK(res1)) {
8663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8664 }
8665 if (!argp1) {
8666 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8667 }
8668 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8669 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8670 if (!SWIG_IsOK(res2)) {
8671 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8672 }
8673 if (!argp2) {
8674 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8675 }
8676 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8677 {
8678 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8679 if (PyErr_Occurred()) SWIG_fail;
8680 }
8681 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8682 return resultobj;
8683 fail:
8684 return NULL;
8685 }
8686
8687
8688 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8689 PyObject *resultobj = 0;
8690 wxAlphaPixelData_Accessor *result = 0 ;
8691
8692 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8693 {
8694 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8695 if (PyErr_Occurred()) SWIG_fail;
8696 }
8697 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8698 return resultobj;
8699 fail:
8700 return NULL;
8701 }
8702
8703
8704 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8705 int argc;
8706 PyObject *argv[3];
8707
8708 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8709 --argc;
8710 if (argc == 0) {
8711 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8712 }
8713 if (argc == 1) {
8714 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8715 }
8716 if (argc == 2) {
8717 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8718 }
8719
8720 fail:
8721 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8722 return NULL;
8723 }
8724
8725
8726 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8727 PyObject *resultobj = 0;
8728 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8729 void *argp1 = 0 ;
8730 int res1 = 0 ;
8731 PyObject *swig_obj[1] ;
8732
8733 if (!args) SWIG_fail;
8734 swig_obj[0] = args;
8735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8736 if (!SWIG_IsOK(res1)) {
8737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8738 }
8739 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8740 {
8741 delete arg1;
8742
8743 if (PyErr_Occurred()) SWIG_fail;
8744 }
8745 resultobj = SWIG_Py_Void();
8746 return resultobj;
8747 fail:
8748 return NULL;
8749 }
8750
8751
8752 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8753 PyObject *resultobj = 0;
8754 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8755 wxAlphaPixelData *arg2 = 0 ;
8756 void *argp1 = 0 ;
8757 int res1 = 0 ;
8758 void *argp2 = 0 ;
8759 int res2 = 0 ;
8760 PyObject * obj0 = 0 ;
8761 PyObject * obj1 = 0 ;
8762 char * kwnames[] = {
8763 (char *) "self",(char *) "data", NULL
8764 };
8765
8766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8768 if (!SWIG_IsOK(res1)) {
8769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8770 }
8771 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8772 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8773 if (!SWIG_IsOK(res2)) {
8774 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8775 }
8776 if (!argp2) {
8777 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8778 }
8779 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8780 {
8781 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8782 if (PyErr_Occurred()) SWIG_fail;
8783 }
8784 resultobj = SWIG_Py_Void();
8785 return resultobj;
8786 fail:
8787 return NULL;
8788 }
8789
8790
8791 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8792 PyObject *resultobj = 0;
8793 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8794 bool result;
8795 void *argp1 = 0 ;
8796 int res1 = 0 ;
8797 PyObject *swig_obj[1] ;
8798
8799 if (!args) SWIG_fail;
8800 swig_obj[0] = args;
8801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8802 if (!SWIG_IsOK(res1)) {
8803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8804 }
8805 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8806 {
8807 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8808 if (PyErr_Occurred()) SWIG_fail;
8809 }
8810 {
8811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8812 }
8813 return resultobj;
8814 fail:
8815 return NULL;
8816 }
8817
8818
8819 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8820 PyObject *resultobj = 0;
8821 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8822 void *argp1 = 0 ;
8823 int res1 = 0 ;
8824 PyObject *swig_obj[1] ;
8825
8826 if (!args) SWIG_fail;
8827 swig_obj[0] = args;
8828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8829 if (!SWIG_IsOK(res1)) {
8830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8831 }
8832 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8833 {
8834 wxAlphaPixelData_Accessor_nextPixel(arg1);
8835 if (PyErr_Occurred()) SWIG_fail;
8836 }
8837 resultobj = SWIG_Py_Void();
8838 return resultobj;
8839 fail:
8840 return NULL;
8841 }
8842
8843
8844 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8845 PyObject *resultobj = 0;
8846 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8847 wxAlphaPixelData *arg2 = 0 ;
8848 int arg3 ;
8849 int arg4 ;
8850 void *argp1 = 0 ;
8851 int res1 = 0 ;
8852 void *argp2 = 0 ;
8853 int res2 = 0 ;
8854 int val3 ;
8855 int ecode3 = 0 ;
8856 int val4 ;
8857 int ecode4 = 0 ;
8858 PyObject * obj0 = 0 ;
8859 PyObject * obj1 = 0 ;
8860 PyObject * obj2 = 0 ;
8861 PyObject * obj3 = 0 ;
8862 char * kwnames[] = {
8863 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8864 };
8865
8866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8868 if (!SWIG_IsOK(res1)) {
8869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8870 }
8871 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8872 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8873 if (!SWIG_IsOK(res2)) {
8874 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8875 }
8876 if (!argp2) {
8877 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8878 }
8879 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8880 ecode3 = SWIG_AsVal_int(obj2, &val3);
8881 if (!SWIG_IsOK(ecode3)) {
8882 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8883 }
8884 arg3 = static_cast< int >(val3);
8885 ecode4 = SWIG_AsVal_int(obj3, &val4);
8886 if (!SWIG_IsOK(ecode4)) {
8887 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8888 }
8889 arg4 = static_cast< int >(val4);
8890 {
8891 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8892 if (PyErr_Occurred()) SWIG_fail;
8893 }
8894 resultobj = SWIG_Py_Void();
8895 return resultobj;
8896 fail:
8897 return NULL;
8898 }
8899
8900
8901 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8902 PyObject *resultobj = 0;
8903 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8904 wxAlphaPixelData *arg2 = 0 ;
8905 int arg3 ;
8906 void *argp1 = 0 ;
8907 int res1 = 0 ;
8908 void *argp2 = 0 ;
8909 int res2 = 0 ;
8910 int val3 ;
8911 int ecode3 = 0 ;
8912 PyObject * obj0 = 0 ;
8913 PyObject * obj1 = 0 ;
8914 PyObject * obj2 = 0 ;
8915 char * kwnames[] = {
8916 (char *) "self",(char *) "data",(char *) "x", NULL
8917 };
8918
8919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8921 if (!SWIG_IsOK(res1)) {
8922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8923 }
8924 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8925 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8926 if (!SWIG_IsOK(res2)) {
8927 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8928 }
8929 if (!argp2) {
8930 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8931 }
8932 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8933 ecode3 = SWIG_AsVal_int(obj2, &val3);
8934 if (!SWIG_IsOK(ecode3)) {
8935 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8936 }
8937 arg3 = static_cast< int >(val3);
8938 {
8939 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8940 if (PyErr_Occurred()) SWIG_fail;
8941 }
8942 resultobj = SWIG_Py_Void();
8943 return resultobj;
8944 fail:
8945 return NULL;
8946 }
8947
8948
8949 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8950 PyObject *resultobj = 0;
8951 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8952 wxAlphaPixelData *arg2 = 0 ;
8953 int arg3 ;
8954 void *argp1 = 0 ;
8955 int res1 = 0 ;
8956 void *argp2 = 0 ;
8957 int res2 = 0 ;
8958 int val3 ;
8959 int ecode3 = 0 ;
8960 PyObject * obj0 = 0 ;
8961 PyObject * obj1 = 0 ;
8962 PyObject * obj2 = 0 ;
8963 char * kwnames[] = {
8964 (char *) "self",(char *) "data",(char *) "y", NULL
8965 };
8966
8967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8969 if (!SWIG_IsOK(res1)) {
8970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8971 }
8972 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8973 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8974 if (!SWIG_IsOK(res2)) {
8975 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8976 }
8977 if (!argp2) {
8978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8979 }
8980 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8981 ecode3 = SWIG_AsVal_int(obj2, &val3);
8982 if (!SWIG_IsOK(ecode3)) {
8983 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8984 }
8985 arg3 = static_cast< int >(val3);
8986 {
8987 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8988 if (PyErr_Occurred()) SWIG_fail;
8989 }
8990 resultobj = SWIG_Py_Void();
8991 return resultobj;
8992 fail:
8993 return NULL;
8994 }
8995
8996
8997 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8998 PyObject *resultobj = 0;
8999 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9000 wxAlphaPixelData *arg2 = 0 ;
9001 int arg3 ;
9002 int arg4 ;
9003 void *argp1 = 0 ;
9004 int res1 = 0 ;
9005 void *argp2 = 0 ;
9006 int res2 = 0 ;
9007 int val3 ;
9008 int ecode3 = 0 ;
9009 int val4 ;
9010 int ecode4 = 0 ;
9011 PyObject * obj0 = 0 ;
9012 PyObject * obj1 = 0 ;
9013 PyObject * obj2 = 0 ;
9014 PyObject * obj3 = 0 ;
9015 char * kwnames[] = {
9016 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
9017 };
9018
9019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
9021 if (!SWIG_IsOK(res1)) {
9022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
9023 }
9024 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
9025 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
9026 if (!SWIG_IsOK(res2)) {
9027 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
9028 }
9029 if (!argp2) {
9030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
9031 }
9032 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
9033 ecode3 = SWIG_AsVal_int(obj2, &val3);
9034 if (!SWIG_IsOK(ecode3)) {
9035 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
9036 }
9037 arg3 = static_cast< int >(val3);
9038 ecode4 = SWIG_AsVal_int(obj3, &val4);
9039 if (!SWIG_IsOK(ecode4)) {
9040 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
9041 }
9042 arg4 = static_cast< int >(val4);
9043 {
9044 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
9045 if (PyErr_Occurred()) SWIG_fail;
9046 }
9047 resultobj = SWIG_Py_Void();
9048 return resultobj;
9049 fail:
9050 return NULL;
9051 }
9052
9053
9054 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9055 PyObject *resultobj = 0;
9056 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9057 byte arg2 ;
9058 byte arg3 ;
9059 byte arg4 ;
9060 byte arg5 ;
9061 void *argp1 = 0 ;
9062 int res1 = 0 ;
9063 unsigned char val2 ;
9064 int ecode2 = 0 ;
9065 unsigned char val3 ;
9066 int ecode3 = 0 ;
9067 unsigned char val4 ;
9068 int ecode4 = 0 ;
9069 unsigned char val5 ;
9070 int ecode5 = 0 ;
9071 PyObject * obj0 = 0 ;
9072 PyObject * obj1 = 0 ;
9073 PyObject * obj2 = 0 ;
9074 PyObject * obj3 = 0 ;
9075 PyObject * obj4 = 0 ;
9076 char * kwnames[] = {
9077 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
9078 };
9079
9080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
9082 if (!SWIG_IsOK(res1)) {
9083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
9084 }
9085 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
9086 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
9087 if (!SWIG_IsOK(ecode2)) {
9088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
9089 }
9090 arg2 = static_cast< byte >(val2);
9091 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
9092 if (!SWIG_IsOK(ecode3)) {
9093 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
9094 }
9095 arg3 = static_cast< byte >(val3);
9096 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
9097 if (!SWIG_IsOK(ecode4)) {
9098 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
9099 }
9100 arg4 = static_cast< byte >(val4);
9101 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
9102 if (!SWIG_IsOK(ecode5)) {
9103 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
9104 }
9105 arg5 = static_cast< byte >(val5);
9106 {
9107 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
9108 if (PyErr_Occurred()) SWIG_fail;
9109 }
9110 resultobj = SWIG_Py_Void();
9111 return resultobj;
9112 fail:
9113 return NULL;
9114 }
9115
9116
9117 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9118 PyObject *resultobj = 0;
9119 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9120 PyObject *result = 0 ;
9121 void *argp1 = 0 ;
9122 int res1 = 0 ;
9123 PyObject *swig_obj[1] ;
9124
9125 if (!args) SWIG_fail;
9126 swig_obj[0] = args;
9127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
9128 if (!SWIG_IsOK(res1)) {
9129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
9130 }
9131 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
9132 {
9133 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
9134 if (PyErr_Occurred()) SWIG_fail;
9135 }
9136 resultobj = result;
9137 return resultobj;
9138 fail:
9139 return NULL;
9140 }
9141
9142
9143 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9144 PyObject *obj;
9145 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9146 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
9147 return SWIG_Py_Void();
9148 }
9149
9150 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9151 return SWIG_Python_InitShadowInstance(args);
9152 }
9153
9154 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9155 PyObject *resultobj = 0;
9156 wxBitmap *arg1 = 0 ;
9157 wxColour const &arg2_defvalue = wxNullColour ;
9158 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
9159 wxMask *result = 0 ;
9160 void *argp1 = 0 ;
9161 int res1 = 0 ;
9162 wxColour temp2 ;
9163 PyObject * obj0 = 0 ;
9164 PyObject * obj1 = 0 ;
9165 char * kwnames[] = {
9166 (char *) "bitmap",(char *) "colour", NULL
9167 };
9168
9169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
9170 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9171 if (!SWIG_IsOK(res1)) {
9172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9173 }
9174 if (!argp1) {
9175 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9176 }
9177 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9178 if (obj1) {
9179 {
9180 arg2 = &temp2;
9181 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9182 }
9183 }
9184 {
9185 if (!wxPyCheckForApp()) SWIG_fail;
9186 PyThreadState* __tstate = wxPyBeginAllowThreads();
9187 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
9188 wxPyEndAllowThreads(__tstate);
9189 if (PyErr_Occurred()) SWIG_fail;
9190 }
9191 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9192 return resultobj;
9193 fail:
9194 return NULL;
9195 }
9196
9197
9198 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9199 PyObject *resultobj = 0;
9200 wxMask *arg1 = (wxMask *) 0 ;
9201 void *argp1 = 0 ;
9202 int res1 = 0 ;
9203 PyObject *swig_obj[1] ;
9204
9205 if (!args) SWIG_fail;
9206 swig_obj[0] = args;
9207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9208 if (!SWIG_IsOK(res1)) {
9209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9210 }
9211 arg1 = reinterpret_cast< wxMask * >(argp1);
9212 {
9213 delete arg1;
9214
9215 if (PyErr_Occurred()) SWIG_fail;
9216 }
9217 resultobj = SWIG_Py_Void();
9218 return resultobj;
9219 fail:
9220 return NULL;
9221 }
9222
9223
9224 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9225 PyObject *obj;
9226 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9227 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9228 return SWIG_Py_Void();
9229 }
9230
9231 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9232 return SWIG_Python_InitShadowInstance(args);
9233 }
9234
9235 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9236 PyObject *resultobj = 0;
9237 wxString *arg1 = 0 ;
9238 wxBitmapType arg2 ;
9239 int arg3 = (int) -1 ;
9240 int arg4 = (int) -1 ;
9241 wxIcon *result = 0 ;
9242 bool temp1 = false ;
9243 int val2 ;
9244 int ecode2 = 0 ;
9245 int val3 ;
9246 int ecode3 = 0 ;
9247 int val4 ;
9248 int ecode4 = 0 ;
9249 PyObject * obj0 = 0 ;
9250 PyObject * obj1 = 0 ;
9251 PyObject * obj2 = 0 ;
9252 PyObject * obj3 = 0 ;
9253 char * kwnames[] = {
9254 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9255 };
9256
9257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9258 {
9259 arg1 = wxString_in_helper(obj0);
9260 if (arg1 == NULL) SWIG_fail;
9261 temp1 = true;
9262 }
9263 ecode2 = SWIG_AsVal_int(obj1, &val2);
9264 if (!SWIG_IsOK(ecode2)) {
9265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9266 }
9267 arg2 = static_cast< wxBitmapType >(val2);
9268 if (obj2) {
9269 ecode3 = SWIG_AsVal_int(obj2, &val3);
9270 if (!SWIG_IsOK(ecode3)) {
9271 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9272 }
9273 arg3 = static_cast< int >(val3);
9274 }
9275 if (obj3) {
9276 ecode4 = SWIG_AsVal_int(obj3, &val4);
9277 if (!SWIG_IsOK(ecode4)) {
9278 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9279 }
9280 arg4 = static_cast< int >(val4);
9281 }
9282 {
9283 if (!wxPyCheckForApp()) SWIG_fail;
9284 PyThreadState* __tstate = wxPyBeginAllowThreads();
9285 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9286 wxPyEndAllowThreads(__tstate);
9287 if (PyErr_Occurred()) SWIG_fail;
9288 }
9289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9290 {
9291 if (temp1)
9292 delete arg1;
9293 }
9294 return resultobj;
9295 fail:
9296 {
9297 if (temp1)
9298 delete arg1;
9299 }
9300 return NULL;
9301 }
9302
9303
9304 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9305 PyObject *resultobj = 0;
9306 wxIcon *arg1 = (wxIcon *) 0 ;
9307 void *argp1 = 0 ;
9308 int res1 = 0 ;
9309 PyObject *swig_obj[1] ;
9310
9311 if (!args) SWIG_fail;
9312 swig_obj[0] = args;
9313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9314 if (!SWIG_IsOK(res1)) {
9315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9316 }
9317 arg1 = reinterpret_cast< wxIcon * >(argp1);
9318 {
9319 PyThreadState* __tstate = wxPyBeginAllowThreads();
9320 delete arg1;
9321
9322 wxPyEndAllowThreads(__tstate);
9323 if (PyErr_Occurred()) SWIG_fail;
9324 }
9325 resultobj = SWIG_Py_Void();
9326 return resultobj;
9327 fail:
9328 return NULL;
9329 }
9330
9331
9332 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9333 PyObject *resultobj = 0;
9334 wxIcon *result = 0 ;
9335
9336 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9337 {
9338 if (!wxPyCheckForApp()) SWIG_fail;
9339 PyThreadState* __tstate = wxPyBeginAllowThreads();
9340 result = (wxIcon *)new wxIcon();
9341 wxPyEndAllowThreads(__tstate);
9342 if (PyErr_Occurred()) SWIG_fail;
9343 }
9344 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9345 return resultobj;
9346 fail:
9347 return NULL;
9348 }
9349
9350
9351 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9352 PyObject *resultobj = 0;
9353 wxIconLocation *arg1 = 0 ;
9354 wxIcon *result = 0 ;
9355 void *argp1 = 0 ;
9356 int res1 = 0 ;
9357 PyObject * obj0 = 0 ;
9358 char * kwnames[] = {
9359 (char *) "loc", NULL
9360 };
9361
9362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9363 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9364 if (!SWIG_IsOK(res1)) {
9365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9366 }
9367 if (!argp1) {
9368 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9369 }
9370 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9371 {
9372 if (!wxPyCheckForApp()) SWIG_fail;
9373 PyThreadState* __tstate = wxPyBeginAllowThreads();
9374 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9375 wxPyEndAllowThreads(__tstate);
9376 if (PyErr_Occurred()) SWIG_fail;
9377 }
9378 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9379 return resultobj;
9380 fail:
9381 return NULL;
9382 }
9383
9384
9385 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9386 PyObject *resultobj = 0;
9387 wxBitmap *arg1 = 0 ;
9388 wxIcon *result = 0 ;
9389 void *argp1 = 0 ;
9390 int res1 = 0 ;
9391 PyObject * obj0 = 0 ;
9392 char * kwnames[] = {
9393 (char *) "bmp", NULL
9394 };
9395
9396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9397 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9398 if (!SWIG_IsOK(res1)) {
9399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9400 }
9401 if (!argp1) {
9402 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9403 }
9404 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9405 {
9406 if (!wxPyCheckForApp()) SWIG_fail;
9407 PyThreadState* __tstate = wxPyBeginAllowThreads();
9408 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9409 wxPyEndAllowThreads(__tstate);
9410 if (PyErr_Occurred()) SWIG_fail;
9411 }
9412 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9413 return resultobj;
9414 fail:
9415 return NULL;
9416 }
9417
9418
9419 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9420 PyObject *resultobj = 0;
9421 PyObject *arg1 = (PyObject *) 0 ;
9422 wxIcon *result = 0 ;
9423 PyObject * obj0 = 0 ;
9424 char * kwnames[] = {
9425 (char *) "listOfStrings", NULL
9426 };
9427
9428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9429 arg1 = obj0;
9430 {
9431 if (!wxPyCheckForApp()) SWIG_fail;
9432 PyThreadState* __tstate = wxPyBeginAllowThreads();
9433 result = (wxIcon *)new_wxIcon(arg1);
9434 wxPyEndAllowThreads(__tstate);
9435 if (PyErr_Occurred()) SWIG_fail;
9436 }
9437 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9438 return resultobj;
9439 fail:
9440 return NULL;
9441 }
9442
9443
9444 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9445 PyObject *resultobj = 0;
9446 wxIcon *arg1 = (wxIcon *) 0 ;
9447 wxString *arg2 = 0 ;
9448 wxBitmapType arg3 ;
9449 bool result;
9450 void *argp1 = 0 ;
9451 int res1 = 0 ;
9452 bool temp2 = false ;
9453 int val3 ;
9454 int ecode3 = 0 ;
9455 PyObject * obj0 = 0 ;
9456 PyObject * obj1 = 0 ;
9457 PyObject * obj2 = 0 ;
9458 char * kwnames[] = {
9459 (char *) "self",(char *) "name",(char *) "type", NULL
9460 };
9461
9462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9464 if (!SWIG_IsOK(res1)) {
9465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9466 }
9467 arg1 = reinterpret_cast< wxIcon * >(argp1);
9468 {
9469 arg2 = wxString_in_helper(obj1);
9470 if (arg2 == NULL) SWIG_fail;
9471 temp2 = true;
9472 }
9473 ecode3 = SWIG_AsVal_int(obj2, &val3);
9474 if (!SWIG_IsOK(ecode3)) {
9475 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9476 }
9477 arg3 = static_cast< wxBitmapType >(val3);
9478 {
9479 PyThreadState* __tstate = wxPyBeginAllowThreads();
9480 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9481 wxPyEndAllowThreads(__tstate);
9482 if (PyErr_Occurred()) SWIG_fail;
9483 }
9484 {
9485 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9486 }
9487 {
9488 if (temp2)
9489 delete arg2;
9490 }
9491 return resultobj;
9492 fail:
9493 {
9494 if (temp2)
9495 delete arg2;
9496 }
9497 return NULL;
9498 }
9499
9500
9501 SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9502 PyObject *resultobj = 0;
9503 wxIcon *arg1 = (wxIcon *) 0 ;
9504 long result;
9505 void *argp1 = 0 ;
9506 int res1 = 0 ;
9507 PyObject *swig_obj[1] ;
9508
9509 if (!args) SWIG_fail;
9510 swig_obj[0] = args;
9511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9512 if (!SWIG_IsOK(res1)) {
9513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9514 }
9515 arg1 = reinterpret_cast< wxIcon * >(argp1);
9516 {
9517 PyThreadState* __tstate = wxPyBeginAllowThreads();
9518 result = (long)(arg1)->GetHandle();
9519 wxPyEndAllowThreads(__tstate);
9520 if (PyErr_Occurred()) SWIG_fail;
9521 }
9522 resultobj = SWIG_From_long(static_cast< long >(result));
9523 return resultobj;
9524 fail:
9525 return NULL;
9526 }
9527
9528
9529 SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9530 PyObject *resultobj = 0;
9531 wxIcon *arg1 = (wxIcon *) 0 ;
9532 long arg2 ;
9533 void *argp1 = 0 ;
9534 int res1 = 0 ;
9535 long val2 ;
9536 int ecode2 = 0 ;
9537 PyObject * obj0 = 0 ;
9538 PyObject * obj1 = 0 ;
9539 char * kwnames[] = {
9540 (char *) "self",(char *) "handle", NULL
9541 };
9542
9543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
9544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9545 if (!SWIG_IsOK(res1)) {
9546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9547 }
9548 arg1 = reinterpret_cast< wxIcon * >(argp1);
9549 ecode2 = SWIG_AsVal_long(obj1, &val2);
9550 if (!SWIG_IsOK(ecode2)) {
9551 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
9552 }
9553 arg2 = static_cast< long >(val2);
9554 {
9555 PyThreadState* __tstate = wxPyBeginAllowThreads();
9556 wxIcon_SetHandle(arg1,arg2);
9557 wxPyEndAllowThreads(__tstate);
9558 if (PyErr_Occurred()) SWIG_fail;
9559 }
9560 resultobj = SWIG_Py_Void();
9561 return resultobj;
9562 fail:
9563 return NULL;
9564 }
9565
9566
9567 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9568 PyObject *resultobj = 0;
9569 wxIcon *arg1 = (wxIcon *) 0 ;
9570 bool result;
9571 void *argp1 = 0 ;
9572 int res1 = 0 ;
9573 PyObject *swig_obj[1] ;
9574
9575 if (!args) SWIG_fail;
9576 swig_obj[0] = args;
9577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9578 if (!SWIG_IsOK(res1)) {
9579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
9580 }
9581 arg1 = reinterpret_cast< wxIcon * >(argp1);
9582 {
9583 PyThreadState* __tstate = wxPyBeginAllowThreads();
9584 result = (bool)(arg1)->IsOk();
9585 wxPyEndAllowThreads(__tstate);
9586 if (PyErr_Occurred()) SWIG_fail;
9587 }
9588 {
9589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9590 }
9591 return resultobj;
9592 fail:
9593 return NULL;
9594 }
9595
9596
9597 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9598 PyObject *resultobj = 0;
9599 wxIcon *arg1 = (wxIcon *) 0 ;
9600 int result;
9601 void *argp1 = 0 ;
9602 int res1 = 0 ;
9603 PyObject *swig_obj[1] ;
9604
9605 if (!args) SWIG_fail;
9606 swig_obj[0] = args;
9607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9608 if (!SWIG_IsOK(res1)) {
9609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9610 }
9611 arg1 = reinterpret_cast< wxIcon * >(argp1);
9612 {
9613 PyThreadState* __tstate = wxPyBeginAllowThreads();
9614 result = (int)(arg1)->GetWidth();
9615 wxPyEndAllowThreads(__tstate);
9616 if (PyErr_Occurred()) SWIG_fail;
9617 }
9618 resultobj = SWIG_From_int(static_cast< int >(result));
9619 return resultobj;
9620 fail:
9621 return NULL;
9622 }
9623
9624
9625 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9626 PyObject *resultobj = 0;
9627 wxIcon *arg1 = (wxIcon *) 0 ;
9628 int result;
9629 void *argp1 = 0 ;
9630 int res1 = 0 ;
9631 PyObject *swig_obj[1] ;
9632
9633 if (!args) SWIG_fail;
9634 swig_obj[0] = args;
9635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9636 if (!SWIG_IsOK(res1)) {
9637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9638 }
9639 arg1 = reinterpret_cast< wxIcon * >(argp1);
9640 {
9641 PyThreadState* __tstate = wxPyBeginAllowThreads();
9642 result = (int)(arg1)->GetHeight();
9643 wxPyEndAllowThreads(__tstate);
9644 if (PyErr_Occurred()) SWIG_fail;
9645 }
9646 resultobj = SWIG_From_int(static_cast< int >(result));
9647 return resultobj;
9648 fail:
9649 return NULL;
9650 }
9651
9652
9653 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9654 PyObject *resultobj = 0;
9655 wxIcon *arg1 = (wxIcon *) 0 ;
9656 int result;
9657 void *argp1 = 0 ;
9658 int res1 = 0 ;
9659 PyObject *swig_obj[1] ;
9660
9661 if (!args) SWIG_fail;
9662 swig_obj[0] = args;
9663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9664 if (!SWIG_IsOK(res1)) {
9665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9666 }
9667 arg1 = reinterpret_cast< wxIcon * >(argp1);
9668 {
9669 PyThreadState* __tstate = wxPyBeginAllowThreads();
9670 result = (int)(arg1)->GetDepth();
9671 wxPyEndAllowThreads(__tstate);
9672 if (PyErr_Occurred()) SWIG_fail;
9673 }
9674 resultobj = SWIG_From_int(static_cast< int >(result));
9675 return resultobj;
9676 fail:
9677 return NULL;
9678 }
9679
9680
9681 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9682 PyObject *resultobj = 0;
9683 wxIcon *arg1 = (wxIcon *) 0 ;
9684 int arg2 ;
9685 void *argp1 = 0 ;
9686 int res1 = 0 ;
9687 int val2 ;
9688 int ecode2 = 0 ;
9689 PyObject * obj0 = 0 ;
9690 PyObject * obj1 = 0 ;
9691 char * kwnames[] = {
9692 (char *) "self",(char *) "w", NULL
9693 };
9694
9695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9697 if (!SWIG_IsOK(res1)) {
9698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9699 }
9700 arg1 = reinterpret_cast< wxIcon * >(argp1);
9701 ecode2 = SWIG_AsVal_int(obj1, &val2);
9702 if (!SWIG_IsOK(ecode2)) {
9703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9704 }
9705 arg2 = static_cast< int >(val2);
9706 {
9707 PyThreadState* __tstate = wxPyBeginAllowThreads();
9708 (arg1)->SetWidth(arg2);
9709 wxPyEndAllowThreads(__tstate);
9710 if (PyErr_Occurred()) SWIG_fail;
9711 }
9712 resultobj = SWIG_Py_Void();
9713 return resultobj;
9714 fail:
9715 return NULL;
9716 }
9717
9718
9719 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9720 PyObject *resultobj = 0;
9721 wxIcon *arg1 = (wxIcon *) 0 ;
9722 int arg2 ;
9723 void *argp1 = 0 ;
9724 int res1 = 0 ;
9725 int val2 ;
9726 int ecode2 = 0 ;
9727 PyObject * obj0 = 0 ;
9728 PyObject * obj1 = 0 ;
9729 char * kwnames[] = {
9730 (char *) "self",(char *) "h", NULL
9731 };
9732
9733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9735 if (!SWIG_IsOK(res1)) {
9736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9737 }
9738 arg1 = reinterpret_cast< wxIcon * >(argp1);
9739 ecode2 = SWIG_AsVal_int(obj1, &val2);
9740 if (!SWIG_IsOK(ecode2)) {
9741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9742 }
9743 arg2 = static_cast< int >(val2);
9744 {
9745 PyThreadState* __tstate = wxPyBeginAllowThreads();
9746 (arg1)->SetHeight(arg2);
9747 wxPyEndAllowThreads(__tstate);
9748 if (PyErr_Occurred()) SWIG_fail;
9749 }
9750 resultobj = SWIG_Py_Void();
9751 return resultobj;
9752 fail:
9753 return NULL;
9754 }
9755
9756
9757 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9758 PyObject *resultobj = 0;
9759 wxIcon *arg1 = (wxIcon *) 0 ;
9760 int arg2 ;
9761 void *argp1 = 0 ;
9762 int res1 = 0 ;
9763 int val2 ;
9764 int ecode2 = 0 ;
9765 PyObject * obj0 = 0 ;
9766 PyObject * obj1 = 0 ;
9767 char * kwnames[] = {
9768 (char *) "self",(char *) "d", NULL
9769 };
9770
9771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9773 if (!SWIG_IsOK(res1)) {
9774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9775 }
9776 arg1 = reinterpret_cast< wxIcon * >(argp1);
9777 ecode2 = SWIG_AsVal_int(obj1, &val2);
9778 if (!SWIG_IsOK(ecode2)) {
9779 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9780 }
9781 arg2 = static_cast< int >(val2);
9782 {
9783 PyThreadState* __tstate = wxPyBeginAllowThreads();
9784 (arg1)->SetDepth(arg2);
9785 wxPyEndAllowThreads(__tstate);
9786 if (PyErr_Occurred()) SWIG_fail;
9787 }
9788 resultobj = SWIG_Py_Void();
9789 return resultobj;
9790 fail:
9791 return NULL;
9792 }
9793
9794
9795 SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9796 PyObject *resultobj = 0;
9797 wxIcon *arg1 = (wxIcon *) 0 ;
9798 wxSize *arg2 = 0 ;
9799 void *argp1 = 0 ;
9800 int res1 = 0 ;
9801 wxSize temp2 ;
9802 PyObject * obj0 = 0 ;
9803 PyObject * obj1 = 0 ;
9804 char * kwnames[] = {
9805 (char *) "self",(char *) "size", NULL
9806 };
9807
9808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
9809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9810 if (!SWIG_IsOK(res1)) {
9811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
9812 }
9813 arg1 = reinterpret_cast< wxIcon * >(argp1);
9814 {
9815 arg2 = &temp2;
9816 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9817 }
9818 {
9819 PyThreadState* __tstate = wxPyBeginAllowThreads();
9820 (arg1)->SetSize((wxSize const &)*arg2);
9821 wxPyEndAllowThreads(__tstate);
9822 if (PyErr_Occurred()) SWIG_fail;
9823 }
9824 resultobj = SWIG_Py_Void();
9825 return resultobj;
9826 fail:
9827 return NULL;
9828 }
9829
9830
9831 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9832 PyObject *resultobj = 0;
9833 wxIcon *arg1 = (wxIcon *) 0 ;
9834 wxBitmap *arg2 = 0 ;
9835 void *argp1 = 0 ;
9836 int res1 = 0 ;
9837 void *argp2 = 0 ;
9838 int res2 = 0 ;
9839 PyObject * obj0 = 0 ;
9840 PyObject * obj1 = 0 ;
9841 char * kwnames[] = {
9842 (char *) "self",(char *) "bmp", NULL
9843 };
9844
9845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9847 if (!SWIG_IsOK(res1)) {
9848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9849 }
9850 arg1 = reinterpret_cast< wxIcon * >(argp1);
9851 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9852 if (!SWIG_IsOK(res2)) {
9853 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9854 }
9855 if (!argp2) {
9856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9857 }
9858 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9859 {
9860 PyThreadState* __tstate = wxPyBeginAllowThreads();
9861 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9862 wxPyEndAllowThreads(__tstate);
9863 if (PyErr_Occurred()) SWIG_fail;
9864 }
9865 resultobj = SWIG_Py_Void();
9866 return resultobj;
9867 fail:
9868 return NULL;
9869 }
9870
9871
9872 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9873 PyObject *obj;
9874 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9875 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9876 return SWIG_Py_Void();
9877 }
9878
9879 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9880 return SWIG_Python_InitShadowInstance(args);
9881 }
9882
9883 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9884 PyObject *resultobj = 0;
9885 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9886 int arg2 = (int) 0 ;
9887 wxIconLocation *result = 0 ;
9888 bool temp1 = false ;
9889 int val2 ;
9890 int ecode2 = 0 ;
9891 PyObject * obj0 = 0 ;
9892 PyObject * obj1 = 0 ;
9893 char * kwnames[] = {
9894 (char *) "filename",(char *) "num", NULL
9895 };
9896
9897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9898 if (obj0) {
9899 {
9900 arg1 = wxString_in_helper(obj0);
9901 if (arg1 == NULL) SWIG_fail;
9902 temp1 = true;
9903 }
9904 }
9905 if (obj1) {
9906 ecode2 = SWIG_AsVal_int(obj1, &val2);
9907 if (!SWIG_IsOK(ecode2)) {
9908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9909 }
9910 arg2 = static_cast< int >(val2);
9911 }
9912 {
9913 PyThreadState* __tstate = wxPyBeginAllowThreads();
9914 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9915 wxPyEndAllowThreads(__tstate);
9916 if (PyErr_Occurred()) SWIG_fail;
9917 }
9918 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9919 {
9920 if (temp1)
9921 delete arg1;
9922 }
9923 return resultobj;
9924 fail:
9925 {
9926 if (temp1)
9927 delete arg1;
9928 }
9929 return NULL;
9930 }
9931
9932
9933 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9934 PyObject *resultobj = 0;
9935 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9936 void *argp1 = 0 ;
9937 int res1 = 0 ;
9938 PyObject *swig_obj[1] ;
9939
9940 if (!args) SWIG_fail;
9941 swig_obj[0] = args;
9942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9943 if (!SWIG_IsOK(res1)) {
9944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9945 }
9946 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9947 {
9948 PyThreadState* __tstate = wxPyBeginAllowThreads();
9949 delete arg1;
9950
9951 wxPyEndAllowThreads(__tstate);
9952 if (PyErr_Occurred()) SWIG_fail;
9953 }
9954 resultobj = SWIG_Py_Void();
9955 return resultobj;
9956 fail:
9957 return NULL;
9958 }
9959
9960
9961 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9962 PyObject *resultobj = 0;
9963 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9964 bool result;
9965 void *argp1 = 0 ;
9966 int res1 = 0 ;
9967 PyObject *swig_obj[1] ;
9968
9969 if (!args) SWIG_fail;
9970 swig_obj[0] = args;
9971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9972 if (!SWIG_IsOK(res1)) {
9973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9974 }
9975 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9976 {
9977 PyThreadState* __tstate = wxPyBeginAllowThreads();
9978 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9979 wxPyEndAllowThreads(__tstate);
9980 if (PyErr_Occurred()) SWIG_fail;
9981 }
9982 {
9983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9984 }
9985 return resultobj;
9986 fail:
9987 return NULL;
9988 }
9989
9990
9991 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9992 PyObject *resultobj = 0;
9993 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9994 wxString *arg2 = 0 ;
9995 void *argp1 = 0 ;
9996 int res1 = 0 ;
9997 bool temp2 = false ;
9998 PyObject * obj0 = 0 ;
9999 PyObject * obj1 = 0 ;
10000 char * kwnames[] = {
10001 (char *) "self",(char *) "filename", NULL
10002 };
10003
10004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
10005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10006 if (!SWIG_IsOK(res1)) {
10007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10008 }
10009 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10010 {
10011 arg2 = wxString_in_helper(obj1);
10012 if (arg2 == NULL) SWIG_fail;
10013 temp2 = true;
10014 }
10015 {
10016 PyThreadState* __tstate = wxPyBeginAllowThreads();
10017 (arg1)->SetFileName((wxString const &)*arg2);
10018 wxPyEndAllowThreads(__tstate);
10019 if (PyErr_Occurred()) SWIG_fail;
10020 }
10021 resultobj = SWIG_Py_Void();
10022 {
10023 if (temp2)
10024 delete arg2;
10025 }
10026 return resultobj;
10027 fail:
10028 {
10029 if (temp2)
10030 delete arg2;
10031 }
10032 return NULL;
10033 }
10034
10035
10036 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10037 PyObject *resultobj = 0;
10038 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10039 wxString *result = 0 ;
10040 void *argp1 = 0 ;
10041 int res1 = 0 ;
10042 PyObject *swig_obj[1] ;
10043
10044 if (!args) SWIG_fail;
10045 swig_obj[0] = args;
10046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10047 if (!SWIG_IsOK(res1)) {
10048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
10049 }
10050 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10051 {
10052 PyThreadState* __tstate = wxPyBeginAllowThreads();
10053 {
10054 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
10055 result = (wxString *) &_result_ref;
10056 }
10057 wxPyEndAllowThreads(__tstate);
10058 if (PyErr_Occurred()) SWIG_fail;
10059 }
10060 {
10061 #if wxUSE_UNICODE
10062 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10063 #else
10064 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10065 #endif
10066 }
10067 return resultobj;
10068 fail:
10069 return NULL;
10070 }
10071
10072
10073 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10074 PyObject *resultobj = 0;
10075 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10076 int arg2 ;
10077 void *argp1 = 0 ;
10078 int res1 = 0 ;
10079 int val2 ;
10080 int ecode2 = 0 ;
10081 PyObject * obj0 = 0 ;
10082 PyObject * obj1 = 0 ;
10083 char * kwnames[] = {
10084 (char *) "self",(char *) "num", NULL
10085 };
10086
10087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
10088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10089 if (!SWIG_IsOK(res1)) {
10090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10091 }
10092 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10093 ecode2 = SWIG_AsVal_int(obj1, &val2);
10094 if (!SWIG_IsOK(ecode2)) {
10095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
10096 }
10097 arg2 = static_cast< int >(val2);
10098 {
10099 PyThreadState* __tstate = wxPyBeginAllowThreads();
10100 wxIconLocation_SetIndex(arg1,arg2);
10101 wxPyEndAllowThreads(__tstate);
10102 if (PyErr_Occurred()) SWIG_fail;
10103 }
10104 resultobj = SWIG_Py_Void();
10105 return resultobj;
10106 fail:
10107 return NULL;
10108 }
10109
10110
10111 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10112 PyObject *resultobj = 0;
10113 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10114 int result;
10115 void *argp1 = 0 ;
10116 int res1 = 0 ;
10117 PyObject *swig_obj[1] ;
10118
10119 if (!args) SWIG_fail;
10120 swig_obj[0] = args;
10121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10122 if (!SWIG_IsOK(res1)) {
10123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10124 }
10125 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10126 {
10127 PyThreadState* __tstate = wxPyBeginAllowThreads();
10128 result = (int)wxIconLocation_GetIndex(arg1);
10129 wxPyEndAllowThreads(__tstate);
10130 if (PyErr_Occurred()) SWIG_fail;
10131 }
10132 resultobj = SWIG_From_int(static_cast< int >(result));
10133 return resultobj;
10134 fail:
10135 return NULL;
10136 }
10137
10138
10139 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10140 PyObject *obj;
10141 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10142 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
10143 return SWIG_Py_Void();
10144 }
10145
10146 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10147 return SWIG_Python_InitShadowInstance(args);
10148 }
10149
10150 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10151 PyObject *resultobj = 0;
10152 wxIconBundle *result = 0 ;
10153
10154 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
10155 {
10156 PyThreadState* __tstate = wxPyBeginAllowThreads();
10157 result = (wxIconBundle *)new wxIconBundle();
10158 wxPyEndAllowThreads(__tstate);
10159 if (PyErr_Occurred()) SWIG_fail;
10160 }
10161 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
10162 return resultobj;
10163 fail:
10164 return NULL;
10165 }
10166
10167
10168 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10169 PyObject *resultobj = 0;
10170 wxString *arg1 = 0 ;
10171 long arg2 ;
10172 wxIconBundle *result = 0 ;
10173 bool temp1 = false ;
10174 long val2 ;
10175 int ecode2 = 0 ;
10176 PyObject * obj0 = 0 ;
10177 PyObject * obj1 = 0 ;
10178 char * kwnames[] = {
10179 (char *) "file",(char *) "type", NULL
10180 };
10181
10182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
10183 {
10184 arg1 = wxString_in_helper(obj0);
10185 if (arg1 == NULL) SWIG_fail;
10186 temp1 = true;
10187 }
10188 ecode2 = SWIG_AsVal_long(obj1, &val2);
10189 if (!SWIG_IsOK(ecode2)) {
10190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
10191 }
10192 arg2 = static_cast< long >(val2);
10193 {
10194 PyThreadState* __tstate = wxPyBeginAllowThreads();
10195 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
10196 wxPyEndAllowThreads(__tstate);
10197 if (PyErr_Occurred()) SWIG_fail;
10198 }
10199 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
10200 {
10201 if (temp1)
10202 delete arg1;
10203 }
10204 return resultobj;
10205 fail:
10206 {
10207 if (temp1)
10208 delete arg1;
10209 }
10210 return NULL;
10211 }
10212
10213
10214 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10215 PyObject *resultobj = 0;
10216 wxIcon *arg1 = 0 ;
10217 wxIconBundle *result = 0 ;
10218 void *argp1 = 0 ;
10219 int res1 = 0 ;
10220 PyObject * obj0 = 0 ;
10221 char * kwnames[] = {
10222 (char *) "icon", NULL
10223 };
10224
10225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
10226 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
10227 if (!SWIG_IsOK(res1)) {
10228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
10229 }
10230 if (!argp1) {
10231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
10232 }
10233 arg1 = reinterpret_cast< wxIcon * >(argp1);
10234 {
10235 PyThreadState* __tstate = wxPyBeginAllowThreads();
10236 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
10237 wxPyEndAllowThreads(__tstate);
10238 if (PyErr_Occurred()) SWIG_fail;
10239 }
10240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
10241 return resultobj;
10242 fail:
10243 return NULL;
10244 }
10245
10246
10247 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10248 PyObject *resultobj = 0;
10249 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10250 void *argp1 = 0 ;
10251 int res1 = 0 ;
10252 PyObject *swig_obj[1] ;
10253
10254 if (!args) SWIG_fail;
10255 swig_obj[0] = args;
10256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
10257 if (!SWIG_IsOK(res1)) {
10258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10259 }
10260 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10261 {
10262 PyThreadState* __tstate = wxPyBeginAllowThreads();
10263 delete arg1;
10264
10265 wxPyEndAllowThreads(__tstate);
10266 if (PyErr_Occurred()) SWIG_fail;
10267 }
10268 resultobj = SWIG_Py_Void();
10269 return resultobj;
10270 fail:
10271 return NULL;
10272 }
10273
10274
10275 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10276 PyObject *resultobj = 0;
10277 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10278 wxIcon *arg2 = 0 ;
10279 void *argp1 = 0 ;
10280 int res1 = 0 ;
10281 void *argp2 = 0 ;
10282 int res2 = 0 ;
10283 PyObject * obj0 = 0 ;
10284 PyObject * obj1 = 0 ;
10285 char * kwnames[] = {
10286 (char *) "self",(char *) "icon", NULL
10287 };
10288
10289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10291 if (!SWIG_IsOK(res1)) {
10292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10293 }
10294 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10295 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
10296 if (!SWIG_IsOK(res2)) {
10297 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10298 }
10299 if (!argp2) {
10300 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10301 }
10302 arg2 = reinterpret_cast< wxIcon * >(argp2);
10303 {
10304 PyThreadState* __tstate = wxPyBeginAllowThreads();
10305 (arg1)->AddIcon((wxIcon const &)*arg2);
10306 wxPyEndAllowThreads(__tstate);
10307 if (PyErr_Occurred()) SWIG_fail;
10308 }
10309 resultobj = SWIG_Py_Void();
10310 return resultobj;
10311 fail:
10312 return NULL;
10313 }
10314
10315
10316 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10317 PyObject *resultobj = 0;
10318 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10319 wxString *arg2 = 0 ;
10320 long arg3 ;
10321 void *argp1 = 0 ;
10322 int res1 = 0 ;
10323 bool temp2 = false ;
10324 long val3 ;
10325 int ecode3 = 0 ;
10326 PyObject * obj0 = 0 ;
10327 PyObject * obj1 = 0 ;
10328 PyObject * obj2 = 0 ;
10329 char * kwnames[] = {
10330 (char *) "self",(char *) "file",(char *) "type", NULL
10331 };
10332
10333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10335 if (!SWIG_IsOK(res1)) {
10336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10337 }
10338 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10339 {
10340 arg2 = wxString_in_helper(obj1);
10341 if (arg2 == NULL) SWIG_fail;
10342 temp2 = true;
10343 }
10344 ecode3 = SWIG_AsVal_long(obj2, &val3);
10345 if (!SWIG_IsOK(ecode3)) {
10346 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10347 }
10348 arg3 = static_cast< long >(val3);
10349 {
10350 PyThreadState* __tstate = wxPyBeginAllowThreads();
10351 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10352 wxPyEndAllowThreads(__tstate);
10353 if (PyErr_Occurred()) SWIG_fail;
10354 }
10355 resultobj = SWIG_Py_Void();
10356 {
10357 if (temp2)
10358 delete arg2;
10359 }
10360 return resultobj;
10361 fail:
10362 {
10363 if (temp2)
10364 delete arg2;
10365 }
10366 return NULL;
10367 }
10368
10369
10370 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10371 PyObject *resultobj = 0;
10372 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10373 wxSize *arg2 = 0 ;
10374 wxIcon *result = 0 ;
10375 void *argp1 = 0 ;
10376 int res1 = 0 ;
10377 wxSize temp2 ;
10378 PyObject * obj0 = 0 ;
10379 PyObject * obj1 = 0 ;
10380 char * kwnames[] = {
10381 (char *) "self",(char *) "size", NULL
10382 };
10383
10384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10386 if (!SWIG_IsOK(res1)) {
10387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10388 }
10389 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10390 {
10391 arg2 = &temp2;
10392 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10393 }
10394 {
10395 PyThreadState* __tstate = wxPyBeginAllowThreads();
10396 {
10397 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10398 result = (wxIcon *) &_result_ref;
10399 }
10400 wxPyEndAllowThreads(__tstate);
10401 if (PyErr_Occurred()) SWIG_fail;
10402 }
10403 {
10404 wxIcon* resultptr = new wxIcon(*result);
10405 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10406 }
10407 return resultobj;
10408 fail:
10409 return NULL;
10410 }
10411
10412
10413 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10414 PyObject *obj;
10415 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10416 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10417 return SWIG_Py_Void();
10418 }
10419
10420 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10421 return SWIG_Python_InitShadowInstance(args);
10422 }
10423
10424 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10425 PyObject *resultobj = 0;
10426 wxString *arg1 = 0 ;
10427 long arg2 ;
10428 int arg3 = (int) 0 ;
10429 int arg4 = (int) 0 ;
10430 wxCursor *result = 0 ;
10431 bool temp1 = false ;
10432 long val2 ;
10433 int ecode2 = 0 ;
10434 int val3 ;
10435 int ecode3 = 0 ;
10436 int val4 ;
10437 int ecode4 = 0 ;
10438 PyObject * obj0 = 0 ;
10439 PyObject * obj1 = 0 ;
10440 PyObject * obj2 = 0 ;
10441 PyObject * obj3 = 0 ;
10442 char * kwnames[] = {
10443 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10444 };
10445
10446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10447 {
10448 arg1 = wxString_in_helper(obj0);
10449 if (arg1 == NULL) SWIG_fail;
10450 temp1 = true;
10451 }
10452 ecode2 = SWIG_AsVal_long(obj1, &val2);
10453 if (!SWIG_IsOK(ecode2)) {
10454 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10455 }
10456 arg2 = static_cast< long >(val2);
10457 if (obj2) {
10458 ecode3 = SWIG_AsVal_int(obj2, &val3);
10459 if (!SWIG_IsOK(ecode3)) {
10460 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10461 }
10462 arg3 = static_cast< int >(val3);
10463 }
10464 if (obj3) {
10465 ecode4 = SWIG_AsVal_int(obj3, &val4);
10466 if (!SWIG_IsOK(ecode4)) {
10467 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10468 }
10469 arg4 = static_cast< int >(val4);
10470 }
10471 {
10472 if (!wxPyCheckForApp()) SWIG_fail;
10473 PyThreadState* __tstate = wxPyBeginAllowThreads();
10474 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10475 wxPyEndAllowThreads(__tstate);
10476 if (PyErr_Occurred()) SWIG_fail;
10477 }
10478 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10479 {
10480 if (temp1)
10481 delete arg1;
10482 }
10483 return resultobj;
10484 fail:
10485 {
10486 if (temp1)
10487 delete arg1;
10488 }
10489 return NULL;
10490 }
10491
10492
10493 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10494 PyObject *resultobj = 0;
10495 wxCursor *arg1 = (wxCursor *) 0 ;
10496 void *argp1 = 0 ;
10497 int res1 = 0 ;
10498 PyObject *swig_obj[1] ;
10499
10500 if (!args) SWIG_fail;
10501 swig_obj[0] = args;
10502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10503 if (!SWIG_IsOK(res1)) {
10504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10505 }
10506 arg1 = reinterpret_cast< wxCursor * >(argp1);
10507 {
10508 PyThreadState* __tstate = wxPyBeginAllowThreads();
10509 delete arg1;
10510
10511 wxPyEndAllowThreads(__tstate);
10512 if (PyErr_Occurred()) SWIG_fail;
10513 }
10514 resultobj = SWIG_Py_Void();
10515 return resultobj;
10516 fail:
10517 return NULL;
10518 }
10519
10520
10521 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10522 PyObject *resultobj = 0;
10523 int arg1 ;
10524 wxCursor *result = 0 ;
10525 int val1 ;
10526 int ecode1 = 0 ;
10527 PyObject * obj0 = 0 ;
10528 char * kwnames[] = {
10529 (char *) "id", NULL
10530 };
10531
10532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10533 ecode1 = SWIG_AsVal_int(obj0, &val1);
10534 if (!SWIG_IsOK(ecode1)) {
10535 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10536 }
10537 arg1 = static_cast< int >(val1);
10538 {
10539 if (!wxPyCheckForApp()) SWIG_fail;
10540 PyThreadState* __tstate = wxPyBeginAllowThreads();
10541 result = (wxCursor *)new wxCursor(arg1);
10542 wxPyEndAllowThreads(__tstate);
10543 if (PyErr_Occurred()) SWIG_fail;
10544 }
10545 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10546 return resultobj;
10547 fail:
10548 return NULL;
10549 }
10550
10551
10552 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10553 PyObject *resultobj = 0;
10554 wxImage *arg1 = 0 ;
10555 wxCursor *result = 0 ;
10556 void *argp1 = 0 ;
10557 int res1 = 0 ;
10558 PyObject * obj0 = 0 ;
10559 char * kwnames[] = {
10560 (char *) "image", NULL
10561 };
10562
10563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10564 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10565 if (!SWIG_IsOK(res1)) {
10566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10567 }
10568 if (!argp1) {
10569 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10570 }
10571 arg1 = reinterpret_cast< wxImage * >(argp1);
10572 {
10573 if (!wxPyCheckForApp()) SWIG_fail;
10574 PyThreadState* __tstate = wxPyBeginAllowThreads();
10575 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10576 wxPyEndAllowThreads(__tstate);
10577 if (PyErr_Occurred()) SWIG_fail;
10578 }
10579 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10580 return resultobj;
10581 fail:
10582 return NULL;
10583 }
10584
10585
10586 SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10587 PyObject *resultobj = 0;
10588 wxCursor *arg1 = (wxCursor *) 0 ;
10589 long result;
10590 void *argp1 = 0 ;
10591 int res1 = 0 ;
10592 PyObject *swig_obj[1] ;
10593
10594 if (!args) SWIG_fail;
10595 swig_obj[0] = args;
10596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10597 if (!SWIG_IsOK(res1)) {
10598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10599 }
10600 arg1 = reinterpret_cast< wxCursor * >(argp1);
10601 {
10602 PyThreadState* __tstate = wxPyBeginAllowThreads();
10603 result = (long)(arg1)->GetHandle();
10604 wxPyEndAllowThreads(__tstate);
10605 if (PyErr_Occurred()) SWIG_fail;
10606 }
10607 resultobj = SWIG_From_long(static_cast< long >(result));
10608 return resultobj;
10609 fail:
10610 return NULL;
10611 }
10612
10613
10614 SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10615 PyObject *resultobj = 0;
10616 wxCursor *arg1 = (wxCursor *) 0 ;
10617 long arg2 ;
10618 void *argp1 = 0 ;
10619 int res1 = 0 ;
10620 long val2 ;
10621 int ecode2 = 0 ;
10622 PyObject * obj0 = 0 ;
10623 PyObject * obj1 = 0 ;
10624 char * kwnames[] = {
10625 (char *) "self",(char *) "handle", NULL
10626 };
10627
10628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
10629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10630 if (!SWIG_IsOK(res1)) {
10631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10632 }
10633 arg1 = reinterpret_cast< wxCursor * >(argp1);
10634 ecode2 = SWIG_AsVal_long(obj1, &val2);
10635 if (!SWIG_IsOK(ecode2)) {
10636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
10637 }
10638 arg2 = static_cast< long >(val2);
10639 {
10640 PyThreadState* __tstate = wxPyBeginAllowThreads();
10641 wxCursor_SetHandle(arg1,arg2);
10642 wxPyEndAllowThreads(__tstate);
10643 if (PyErr_Occurred()) SWIG_fail;
10644 }
10645 resultobj = SWIG_Py_Void();
10646 return resultobj;
10647 fail:
10648 return NULL;
10649 }
10650
10651
10652 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10653 PyObject *resultobj = 0;
10654 wxCursor *arg1 = (wxCursor *) 0 ;
10655 bool result;
10656 void *argp1 = 0 ;
10657 int res1 = 0 ;
10658 PyObject *swig_obj[1] ;
10659
10660 if (!args) SWIG_fail;
10661 swig_obj[0] = args;
10662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10663 if (!SWIG_IsOK(res1)) {
10664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
10665 }
10666 arg1 = reinterpret_cast< wxCursor * >(argp1);
10667 {
10668 PyThreadState* __tstate = wxPyBeginAllowThreads();
10669 result = (bool)(arg1)->IsOk();
10670 wxPyEndAllowThreads(__tstate);
10671 if (PyErr_Occurred()) SWIG_fail;
10672 }
10673 {
10674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10675 }
10676 return resultobj;
10677 fail:
10678 return NULL;
10679 }
10680
10681
10682 SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10683 PyObject *resultobj = 0;
10684 wxCursor *arg1 = (wxCursor *) 0 ;
10685 int result;
10686 void *argp1 = 0 ;
10687 int res1 = 0 ;
10688 PyObject *swig_obj[1] ;
10689
10690 if (!args) SWIG_fail;
10691 swig_obj[0] = args;
10692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10693 if (!SWIG_IsOK(res1)) {
10694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10695 }
10696 arg1 = reinterpret_cast< wxCursor * >(argp1);
10697 {
10698 PyThreadState* __tstate = wxPyBeginAllowThreads();
10699 result = (int)(arg1)->GetWidth();
10700 wxPyEndAllowThreads(__tstate);
10701 if (PyErr_Occurred()) SWIG_fail;
10702 }
10703 resultobj = SWIG_From_int(static_cast< int >(result));
10704 return resultobj;
10705 fail:
10706 return NULL;
10707 }
10708
10709
10710 SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10711 PyObject *resultobj = 0;
10712 wxCursor *arg1 = (wxCursor *) 0 ;
10713 int result;
10714 void *argp1 = 0 ;
10715 int res1 = 0 ;
10716 PyObject *swig_obj[1] ;
10717
10718 if (!args) SWIG_fail;
10719 swig_obj[0] = args;
10720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10721 if (!SWIG_IsOK(res1)) {
10722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10723 }
10724 arg1 = reinterpret_cast< wxCursor * >(argp1);
10725 {
10726 PyThreadState* __tstate = wxPyBeginAllowThreads();
10727 result = (int)(arg1)->GetHeight();
10728 wxPyEndAllowThreads(__tstate);
10729 if (PyErr_Occurred()) SWIG_fail;
10730 }
10731 resultobj = SWIG_From_int(static_cast< int >(result));
10732 return resultobj;
10733 fail:
10734 return NULL;
10735 }
10736
10737
10738 SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10739 PyObject *resultobj = 0;
10740 wxCursor *arg1 = (wxCursor *) 0 ;
10741 int result;
10742 void *argp1 = 0 ;
10743 int res1 = 0 ;
10744 PyObject *swig_obj[1] ;
10745
10746 if (!args) SWIG_fail;
10747 swig_obj[0] = args;
10748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10749 if (!SWIG_IsOK(res1)) {
10750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10751 }
10752 arg1 = reinterpret_cast< wxCursor * >(argp1);
10753 {
10754 PyThreadState* __tstate = wxPyBeginAllowThreads();
10755 result = (int)(arg1)->GetDepth();
10756 wxPyEndAllowThreads(__tstate);
10757 if (PyErr_Occurred()) SWIG_fail;
10758 }
10759 resultobj = SWIG_From_int(static_cast< int >(result));
10760 return resultobj;
10761 fail:
10762 return NULL;
10763 }
10764
10765
10766 SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10767 PyObject *resultobj = 0;
10768 wxCursor *arg1 = (wxCursor *) 0 ;
10769 int arg2 ;
10770 void *argp1 = 0 ;
10771 int res1 = 0 ;
10772 int val2 ;
10773 int ecode2 = 0 ;
10774 PyObject * obj0 = 0 ;
10775 PyObject * obj1 = 0 ;
10776 char * kwnames[] = {
10777 (char *) "self",(char *) "w", NULL
10778 };
10779
10780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
10781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10782 if (!SWIG_IsOK(res1)) {
10783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10784 }
10785 arg1 = reinterpret_cast< wxCursor * >(argp1);
10786 ecode2 = SWIG_AsVal_int(obj1, &val2);
10787 if (!SWIG_IsOK(ecode2)) {
10788 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
10789 }
10790 arg2 = static_cast< int >(val2);
10791 {
10792 PyThreadState* __tstate = wxPyBeginAllowThreads();
10793 (arg1)->SetWidth(arg2);
10794 wxPyEndAllowThreads(__tstate);
10795 if (PyErr_Occurred()) SWIG_fail;
10796 }
10797 resultobj = SWIG_Py_Void();
10798 return resultobj;
10799 fail:
10800 return NULL;
10801 }
10802
10803
10804 SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10805 PyObject *resultobj = 0;
10806 wxCursor *arg1 = (wxCursor *) 0 ;
10807 int arg2 ;
10808 void *argp1 = 0 ;
10809 int res1 = 0 ;
10810 int val2 ;
10811 int ecode2 = 0 ;
10812 PyObject * obj0 = 0 ;
10813 PyObject * obj1 = 0 ;
10814 char * kwnames[] = {
10815 (char *) "self",(char *) "h", NULL
10816 };
10817
10818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
10819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10820 if (!SWIG_IsOK(res1)) {
10821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10822 }
10823 arg1 = reinterpret_cast< wxCursor * >(argp1);
10824 ecode2 = SWIG_AsVal_int(obj1, &val2);
10825 if (!SWIG_IsOK(ecode2)) {
10826 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
10827 }
10828 arg2 = static_cast< int >(val2);
10829 {
10830 PyThreadState* __tstate = wxPyBeginAllowThreads();
10831 (arg1)->SetHeight(arg2);
10832 wxPyEndAllowThreads(__tstate);
10833 if (PyErr_Occurred()) SWIG_fail;
10834 }
10835 resultobj = SWIG_Py_Void();
10836 return resultobj;
10837 fail:
10838 return NULL;
10839 }
10840
10841
10842 SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10843 PyObject *resultobj = 0;
10844 wxCursor *arg1 = (wxCursor *) 0 ;
10845 int arg2 ;
10846 void *argp1 = 0 ;
10847 int res1 = 0 ;
10848 int val2 ;
10849 int ecode2 = 0 ;
10850 PyObject * obj0 = 0 ;
10851 PyObject * obj1 = 0 ;
10852 char * kwnames[] = {
10853 (char *) "self",(char *) "d", NULL
10854 };
10855
10856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
10857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10858 if (!SWIG_IsOK(res1)) {
10859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10860 }
10861 arg1 = reinterpret_cast< wxCursor * >(argp1);
10862 ecode2 = SWIG_AsVal_int(obj1, &val2);
10863 if (!SWIG_IsOK(ecode2)) {
10864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
10865 }
10866 arg2 = static_cast< int >(val2);
10867 {
10868 PyThreadState* __tstate = wxPyBeginAllowThreads();
10869 (arg1)->SetDepth(arg2);
10870 wxPyEndAllowThreads(__tstate);
10871 if (PyErr_Occurred()) SWIG_fail;
10872 }
10873 resultobj = SWIG_Py_Void();
10874 return resultobj;
10875 fail:
10876 return NULL;
10877 }
10878
10879
10880 SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10881 PyObject *resultobj = 0;
10882 wxCursor *arg1 = (wxCursor *) 0 ;
10883 wxSize *arg2 = 0 ;
10884 void *argp1 = 0 ;
10885 int res1 = 0 ;
10886 wxSize temp2 ;
10887 PyObject * obj0 = 0 ;
10888 PyObject * obj1 = 0 ;
10889 char * kwnames[] = {
10890 (char *) "self",(char *) "size", NULL
10891 };
10892
10893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
10894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10895 if (!SWIG_IsOK(res1)) {
10896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
10897 }
10898 arg1 = reinterpret_cast< wxCursor * >(argp1);
10899 {
10900 arg2 = &temp2;
10901 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10902 }
10903 {
10904 PyThreadState* __tstate = wxPyBeginAllowThreads();
10905 (arg1)->SetSize((wxSize const &)*arg2);
10906 wxPyEndAllowThreads(__tstate);
10907 if (PyErr_Occurred()) SWIG_fail;
10908 }
10909 resultobj = SWIG_Py_Void();
10910 return resultobj;
10911 fail:
10912 return NULL;
10913 }
10914
10915
10916 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10917 PyObject *obj;
10918 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10919 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10920 return SWIG_Py_Void();
10921 }
10922
10923 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10924 return SWIG_Python_InitShadowInstance(args);
10925 }
10926
10927 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10928 PyObject *resultobj = 0;
10929 int arg1 = (int) 0 ;
10930 int arg2 = (int) 0 ;
10931 int arg3 = (int) 0 ;
10932 int arg4 = (int) 0 ;
10933 wxRegion *result = 0 ;
10934 int val1 ;
10935 int ecode1 = 0 ;
10936 int val2 ;
10937 int ecode2 = 0 ;
10938 int val3 ;
10939 int ecode3 = 0 ;
10940 int val4 ;
10941 int ecode4 = 0 ;
10942 PyObject * obj0 = 0 ;
10943 PyObject * obj1 = 0 ;
10944 PyObject * obj2 = 0 ;
10945 PyObject * obj3 = 0 ;
10946 char * kwnames[] = {
10947 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10948 };
10949
10950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10951 if (obj0) {
10952 ecode1 = SWIG_AsVal_int(obj0, &val1);
10953 if (!SWIG_IsOK(ecode1)) {
10954 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10955 }
10956 arg1 = static_cast< int >(val1);
10957 }
10958 if (obj1) {
10959 ecode2 = SWIG_AsVal_int(obj1, &val2);
10960 if (!SWIG_IsOK(ecode2)) {
10961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10962 }
10963 arg2 = static_cast< int >(val2);
10964 }
10965 if (obj2) {
10966 ecode3 = SWIG_AsVal_int(obj2, &val3);
10967 if (!SWIG_IsOK(ecode3)) {
10968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10969 }
10970 arg3 = static_cast< int >(val3);
10971 }
10972 if (obj3) {
10973 ecode4 = SWIG_AsVal_int(obj3, &val4);
10974 if (!SWIG_IsOK(ecode4)) {
10975 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10976 }
10977 arg4 = static_cast< int >(val4);
10978 }
10979 {
10980 if (!wxPyCheckForApp()) SWIG_fail;
10981 PyThreadState* __tstate = wxPyBeginAllowThreads();
10982 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10983 wxPyEndAllowThreads(__tstate);
10984 if (PyErr_Occurred()) SWIG_fail;
10985 }
10986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10987 return resultobj;
10988 fail:
10989 return NULL;
10990 }
10991
10992
10993 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10994 PyObject *resultobj = 0;
10995 wxBitmap *arg1 = 0 ;
10996 wxRegion *result = 0 ;
10997 void *argp1 = 0 ;
10998 int res1 = 0 ;
10999 PyObject * obj0 = 0 ;
11000 char * kwnames[] = {
11001 (char *) "bmp", NULL
11002 };
11003
11004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
11005 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
11006 if (!SWIG_IsOK(res1)) {
11007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11008 }
11009 if (!argp1) {
11010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11011 }
11012 arg1 = reinterpret_cast< wxBitmap * >(argp1);
11013 {
11014 if (!wxPyCheckForApp()) SWIG_fail;
11015 PyThreadState* __tstate = wxPyBeginAllowThreads();
11016 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
11017 wxPyEndAllowThreads(__tstate);
11018 if (PyErr_Occurred()) SWIG_fail;
11019 }
11020 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11021 return resultobj;
11022 fail:
11023 return NULL;
11024 }
11025
11026
11027 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11028 PyObject *resultobj = 0;
11029 wxBitmap *arg1 = 0 ;
11030 wxColour *arg2 = 0 ;
11031 int arg3 = (int) 0 ;
11032 wxRegion *result = 0 ;
11033 void *argp1 = 0 ;
11034 int res1 = 0 ;
11035 wxColour temp2 ;
11036 int val3 ;
11037 int ecode3 = 0 ;
11038 PyObject * obj0 = 0 ;
11039 PyObject * obj1 = 0 ;
11040 PyObject * obj2 = 0 ;
11041 char * kwnames[] = {
11042 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11043 };
11044
11045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11046 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
11047 if (!SWIG_IsOK(res1)) {
11048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11049 }
11050 if (!argp1) {
11051 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11052 }
11053 arg1 = reinterpret_cast< wxBitmap * >(argp1);
11054 {
11055 arg2 = &temp2;
11056 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
11057 }
11058 if (obj2) {
11059 ecode3 = SWIG_AsVal_int(obj2, &val3);
11060 if (!SWIG_IsOK(ecode3)) {
11061 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
11062 }
11063 arg3 = static_cast< int >(val3);
11064 }
11065 {
11066 if (!wxPyCheckForApp()) SWIG_fail;
11067 PyThreadState* __tstate = wxPyBeginAllowThreads();
11068 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
11069 wxPyEndAllowThreads(__tstate);
11070 if (PyErr_Occurred()) SWIG_fail;
11071 }
11072 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11073 return resultobj;
11074 fail:
11075 return NULL;
11076 }
11077
11078
11079 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11080 PyObject *resultobj = 0;
11081 int arg1 ;
11082 wxPoint *arg2 = (wxPoint *) 0 ;
11083 int arg3 = (int) wxWINDING_RULE ;
11084 wxRegion *result = 0 ;
11085 int val3 ;
11086 int ecode3 = 0 ;
11087 PyObject * obj0 = 0 ;
11088 PyObject * obj1 = 0 ;
11089 char * kwnames[] = {
11090 (char *) "points",(char *) "fillStyle", NULL
11091 };
11092
11093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
11094 {
11095 arg2 = wxPoint_LIST_helper(obj0, &arg1);
11096 if (arg2 == NULL) SWIG_fail;
11097 }
11098 if (obj1) {
11099 ecode3 = SWIG_AsVal_int(obj1, &val3);
11100 if (!SWIG_IsOK(ecode3)) {
11101 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
11102 }
11103 arg3 = static_cast< int >(val3);
11104 }
11105 {
11106 if (!wxPyCheckForApp()) SWIG_fail;
11107 PyThreadState* __tstate = wxPyBeginAllowThreads();
11108 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
11109 wxPyEndAllowThreads(__tstate);
11110 if (PyErr_Occurred()) SWIG_fail;
11111 }
11112 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11113 {
11114 if (arg2) delete [] arg2;
11115 }
11116 return resultobj;
11117 fail:
11118 {
11119 if (arg2) delete [] arg2;
11120 }
11121 return NULL;
11122 }
11123
11124
11125 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11126 PyObject *resultobj = 0;
11127 wxRegion *arg1 = (wxRegion *) 0 ;
11128 void *argp1 = 0 ;
11129 int res1 = 0 ;
11130 PyObject *swig_obj[1] ;
11131
11132 if (!args) SWIG_fail;
11133 swig_obj[0] = args;
11134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
11135 if (!SWIG_IsOK(res1)) {
11136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
11137 }
11138 arg1 = reinterpret_cast< wxRegion * >(argp1);
11139 {
11140 PyThreadState* __tstate = wxPyBeginAllowThreads();
11141 delete arg1;
11142
11143 wxPyEndAllowThreads(__tstate);
11144 if (PyErr_Occurred()) SWIG_fail;
11145 }
11146 resultobj = SWIG_Py_Void();
11147 return resultobj;
11148 fail:
11149 return NULL;
11150 }
11151
11152
11153 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11154 PyObject *resultobj = 0;
11155 wxRegion *arg1 = (wxRegion *) 0 ;
11156 void *argp1 = 0 ;
11157 int res1 = 0 ;
11158 PyObject *swig_obj[1] ;
11159
11160 if (!args) SWIG_fail;
11161 swig_obj[0] = args;
11162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11163 if (!SWIG_IsOK(res1)) {
11164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
11165 }
11166 arg1 = reinterpret_cast< wxRegion * >(argp1);
11167 {
11168 PyThreadState* __tstate = wxPyBeginAllowThreads();
11169 (arg1)->Clear();
11170 wxPyEndAllowThreads(__tstate);
11171 if (PyErr_Occurred()) SWIG_fail;
11172 }
11173 resultobj = SWIG_Py_Void();
11174 return resultobj;
11175 fail:
11176 return NULL;
11177 }
11178
11179
11180 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11181 PyObject *resultobj = 0;
11182 wxRegion *arg1 = (wxRegion *) 0 ;
11183 int arg2 ;
11184 int arg3 ;
11185 bool result;
11186 void *argp1 = 0 ;
11187 int res1 = 0 ;
11188 int val2 ;
11189 int ecode2 = 0 ;
11190 int val3 ;
11191 int ecode3 = 0 ;
11192 PyObject * obj0 = 0 ;
11193 PyObject * obj1 = 0 ;
11194 PyObject * obj2 = 0 ;
11195 char * kwnames[] = {
11196 (char *) "self",(char *) "x",(char *) "y", NULL
11197 };
11198
11199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11201 if (!SWIG_IsOK(res1)) {
11202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
11203 }
11204 arg1 = reinterpret_cast< wxRegion * >(argp1);
11205 ecode2 = SWIG_AsVal_int(obj1, &val2);
11206 if (!SWIG_IsOK(ecode2)) {
11207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
11208 }
11209 arg2 = static_cast< int >(val2);
11210 ecode3 = SWIG_AsVal_int(obj2, &val3);
11211 if (!SWIG_IsOK(ecode3)) {
11212 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
11213 }
11214 arg3 = static_cast< int >(val3);
11215 {
11216 PyThreadState* __tstate = wxPyBeginAllowThreads();
11217 result = (bool)(arg1)->Offset(arg2,arg3);
11218 wxPyEndAllowThreads(__tstate);
11219 if (PyErr_Occurred()) SWIG_fail;
11220 }
11221 {
11222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11223 }
11224 return resultobj;
11225 fail:
11226 return NULL;
11227 }
11228
11229
11230 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11231 PyObject *resultobj = 0;
11232 wxRegion *arg1 = (wxRegion *) 0 ;
11233 int arg2 ;
11234 int arg3 ;
11235 wxRegionContain result;
11236 void *argp1 = 0 ;
11237 int res1 = 0 ;
11238 int val2 ;
11239 int ecode2 = 0 ;
11240 int val3 ;
11241 int ecode3 = 0 ;
11242 PyObject * obj0 = 0 ;
11243 PyObject * obj1 = 0 ;
11244 PyObject * obj2 = 0 ;
11245 char * kwnames[] = {
11246 (char *) "self",(char *) "x",(char *) "y", NULL
11247 };
11248
11249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11251 if (!SWIG_IsOK(res1)) {
11252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
11253 }
11254 arg1 = reinterpret_cast< wxRegion * >(argp1);
11255 ecode2 = SWIG_AsVal_int(obj1, &val2);
11256 if (!SWIG_IsOK(ecode2)) {
11257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
11258 }
11259 arg2 = static_cast< int >(val2);
11260 ecode3 = SWIG_AsVal_int(obj2, &val3);
11261 if (!SWIG_IsOK(ecode3)) {
11262 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
11263 }
11264 arg3 = static_cast< int >(val3);
11265 {
11266 PyThreadState* __tstate = wxPyBeginAllowThreads();
11267 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
11268 wxPyEndAllowThreads(__tstate);
11269 if (PyErr_Occurred()) SWIG_fail;
11270 }
11271 resultobj = SWIG_From_int(static_cast< int >(result));
11272 return resultobj;
11273 fail:
11274 return NULL;
11275 }
11276
11277
11278 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11279 PyObject *resultobj = 0;
11280 wxRegion *arg1 = (wxRegion *) 0 ;
11281 wxPoint *arg2 = 0 ;
11282 wxRegionContain result;
11283 void *argp1 = 0 ;
11284 int res1 = 0 ;
11285 wxPoint temp2 ;
11286 PyObject * obj0 = 0 ;
11287 PyObject * obj1 = 0 ;
11288 char * kwnames[] = {
11289 (char *) "self",(char *) "pt", NULL
11290 };
11291
11292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
11293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11294 if (!SWIG_IsOK(res1)) {
11295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
11296 }
11297 arg1 = reinterpret_cast< wxRegion * >(argp1);
11298 {
11299 arg2 = &temp2;
11300 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11301 }
11302 {
11303 PyThreadState* __tstate = wxPyBeginAllowThreads();
11304 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
11305 wxPyEndAllowThreads(__tstate);
11306 if (PyErr_Occurred()) SWIG_fail;
11307 }
11308 resultobj = SWIG_From_int(static_cast< int >(result));
11309 return resultobj;
11310 fail:
11311 return NULL;
11312 }
11313
11314
11315 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11316 PyObject *resultobj = 0;
11317 wxRegion *arg1 = (wxRegion *) 0 ;
11318 wxRect *arg2 = 0 ;
11319 wxRegionContain result;
11320 void *argp1 = 0 ;
11321 int res1 = 0 ;
11322 wxRect temp2 ;
11323 PyObject * obj0 = 0 ;
11324 PyObject * obj1 = 0 ;
11325 char * kwnames[] = {
11326 (char *) "self",(char *) "rect", NULL
11327 };
11328
11329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
11330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11331 if (!SWIG_IsOK(res1)) {
11332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11333 }
11334 arg1 = reinterpret_cast< wxRegion * >(argp1);
11335 {
11336 arg2 = &temp2;
11337 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11338 }
11339 {
11340 PyThreadState* __tstate = wxPyBeginAllowThreads();
11341 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
11342 wxPyEndAllowThreads(__tstate);
11343 if (PyErr_Occurred()) SWIG_fail;
11344 }
11345 resultobj = SWIG_From_int(static_cast< int >(result));
11346 return resultobj;
11347 fail:
11348 return NULL;
11349 }
11350
11351
11352 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11353 PyObject *resultobj = 0;
11354 wxRegion *arg1 = (wxRegion *) 0 ;
11355 int arg2 ;
11356 int arg3 ;
11357 int arg4 ;
11358 int arg5 ;
11359 wxRegionContain result;
11360 void *argp1 = 0 ;
11361 int res1 = 0 ;
11362 int val2 ;
11363 int ecode2 = 0 ;
11364 int val3 ;
11365 int ecode3 = 0 ;
11366 int val4 ;
11367 int ecode4 = 0 ;
11368 int val5 ;
11369 int ecode5 = 0 ;
11370 PyObject * obj0 = 0 ;
11371 PyObject * obj1 = 0 ;
11372 PyObject * obj2 = 0 ;
11373 PyObject * obj3 = 0 ;
11374 PyObject * obj4 = 0 ;
11375 char * kwnames[] = {
11376 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
11377 };
11378
11379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11381 if (!SWIG_IsOK(res1)) {
11382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
11383 }
11384 arg1 = reinterpret_cast< wxRegion * >(argp1);
11385 ecode2 = SWIG_AsVal_int(obj1, &val2);
11386 if (!SWIG_IsOK(ecode2)) {
11387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
11388 }
11389 arg2 = static_cast< int >(val2);
11390 ecode3 = SWIG_AsVal_int(obj2, &val3);
11391 if (!SWIG_IsOK(ecode3)) {
11392 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
11393 }
11394 arg3 = static_cast< int >(val3);
11395 ecode4 = SWIG_AsVal_int(obj3, &val4);
11396 if (!SWIG_IsOK(ecode4)) {
11397 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
11398 }
11399 arg4 = static_cast< int >(val4);
11400 ecode5 = SWIG_AsVal_int(obj4, &val5);
11401 if (!SWIG_IsOK(ecode5)) {
11402 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
11403 }
11404 arg5 = static_cast< int >(val5);
11405 {
11406 PyThreadState* __tstate = wxPyBeginAllowThreads();
11407 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
11408 wxPyEndAllowThreads(__tstate);
11409 if (PyErr_Occurred()) SWIG_fail;
11410 }
11411 resultobj = SWIG_From_int(static_cast< int >(result));
11412 return resultobj;
11413 fail:
11414 return NULL;
11415 }
11416
11417
11418 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11419 PyObject *resultobj = 0;
11420 wxRegion *arg1 = (wxRegion *) 0 ;
11421 wxRect result;
11422 void *argp1 = 0 ;
11423 int res1 = 0 ;
11424 PyObject *swig_obj[1] ;
11425
11426 if (!args) SWIG_fail;
11427 swig_obj[0] = args;
11428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11429 if (!SWIG_IsOK(res1)) {
11430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
11431 }
11432 arg1 = reinterpret_cast< wxRegion * >(argp1);
11433 {
11434 PyThreadState* __tstate = wxPyBeginAllowThreads();
11435 result = (arg1)->GetBox();
11436 wxPyEndAllowThreads(__tstate);
11437 if (PyErr_Occurred()) SWIG_fail;
11438 }
11439 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11440 return resultobj;
11441 fail:
11442 return NULL;
11443 }
11444
11445
11446 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11447 PyObject *resultobj = 0;
11448 wxRegion *arg1 = (wxRegion *) 0 ;
11449 int arg2 ;
11450 int arg3 ;
11451 int arg4 ;
11452 int arg5 ;
11453 bool result;
11454 void *argp1 = 0 ;
11455 int res1 = 0 ;
11456 int val2 ;
11457 int ecode2 = 0 ;
11458 int val3 ;
11459 int ecode3 = 0 ;
11460 int val4 ;
11461 int ecode4 = 0 ;
11462 int val5 ;
11463 int ecode5 = 0 ;
11464 PyObject * obj0 = 0 ;
11465 PyObject * obj1 = 0 ;
11466 PyObject * obj2 = 0 ;
11467 PyObject * obj3 = 0 ;
11468 PyObject * obj4 = 0 ;
11469 char * kwnames[] = {
11470 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11471 };
11472
11473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11475 if (!SWIG_IsOK(res1)) {
11476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
11477 }
11478 arg1 = reinterpret_cast< wxRegion * >(argp1);
11479 ecode2 = SWIG_AsVal_int(obj1, &val2);
11480 if (!SWIG_IsOK(ecode2)) {
11481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
11482 }
11483 arg2 = static_cast< int >(val2);
11484 ecode3 = SWIG_AsVal_int(obj2, &val3);
11485 if (!SWIG_IsOK(ecode3)) {
11486 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
11487 }
11488 arg3 = static_cast< int >(val3);
11489 ecode4 = SWIG_AsVal_int(obj3, &val4);
11490 if (!SWIG_IsOK(ecode4)) {
11491 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
11492 }
11493 arg4 = static_cast< int >(val4);
11494 ecode5 = SWIG_AsVal_int(obj4, &val5);
11495 if (!SWIG_IsOK(ecode5)) {
11496 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
11497 }
11498 arg5 = static_cast< int >(val5);
11499 {
11500 PyThreadState* __tstate = wxPyBeginAllowThreads();
11501 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
11502 wxPyEndAllowThreads(__tstate);
11503 if (PyErr_Occurred()) SWIG_fail;
11504 }
11505 {
11506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11507 }
11508 return resultobj;
11509 fail:
11510 return NULL;
11511 }
11512
11513
11514 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11515 PyObject *resultobj = 0;
11516 wxRegion *arg1 = (wxRegion *) 0 ;
11517 wxRect *arg2 = 0 ;
11518 bool result;
11519 void *argp1 = 0 ;
11520 int res1 = 0 ;
11521 wxRect temp2 ;
11522 PyObject * obj0 = 0 ;
11523 PyObject * obj1 = 0 ;
11524 char * kwnames[] = {
11525 (char *) "self",(char *) "rect", NULL
11526 };
11527
11528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
11529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11530 if (!SWIG_IsOK(res1)) {
11531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11532 }
11533 arg1 = reinterpret_cast< wxRegion * >(argp1);
11534 {
11535 arg2 = &temp2;
11536 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11537 }
11538 {
11539 PyThreadState* __tstate = wxPyBeginAllowThreads();
11540 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
11541 wxPyEndAllowThreads(__tstate);
11542 if (PyErr_Occurred()) SWIG_fail;
11543 }
11544 {
11545 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11546 }
11547 return resultobj;
11548 fail:
11549 return NULL;
11550 }
11551
11552
11553 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11554 PyObject *resultobj = 0;
11555 wxRegion *arg1 = (wxRegion *) 0 ;
11556 wxRegion *arg2 = 0 ;
11557 bool result;
11558 void *argp1 = 0 ;
11559 int res1 = 0 ;
11560 void *argp2 = 0 ;
11561 int res2 = 0 ;
11562 PyObject * obj0 = 0 ;
11563 PyObject * obj1 = 0 ;
11564 char * kwnames[] = {
11565 (char *) "self",(char *) "region", NULL
11566 };
11567
11568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11570 if (!SWIG_IsOK(res1)) {
11571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11572 }
11573 arg1 = reinterpret_cast< wxRegion * >(argp1);
11574 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11575 if (!SWIG_IsOK(res2)) {
11576 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11577 }
11578 if (!argp2) {
11579 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11580 }
11581 arg2 = reinterpret_cast< wxRegion * >(argp2);
11582 {
11583 PyThreadState* __tstate = wxPyBeginAllowThreads();
11584 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
11585 wxPyEndAllowThreads(__tstate);
11586 if (PyErr_Occurred()) SWIG_fail;
11587 }
11588 {
11589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11590 }
11591 return resultobj;
11592 fail:
11593 return NULL;
11594 }
11595
11596
11597 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11598 PyObject *resultobj = 0;
11599 wxRegion *arg1 = (wxRegion *) 0 ;
11600 bool result;
11601 void *argp1 = 0 ;
11602 int res1 = 0 ;
11603 PyObject *swig_obj[1] ;
11604
11605 if (!args) SWIG_fail;
11606 swig_obj[0] = args;
11607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11608 if (!SWIG_IsOK(res1)) {
11609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11610 }
11611 arg1 = reinterpret_cast< wxRegion * >(argp1);
11612 {
11613 PyThreadState* __tstate = wxPyBeginAllowThreads();
11614 result = (bool)(arg1)->IsEmpty();
11615 wxPyEndAllowThreads(__tstate);
11616 if (PyErr_Occurred()) SWIG_fail;
11617 }
11618 {
11619 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11620 }
11621 return resultobj;
11622 fail:
11623 return NULL;
11624 }
11625
11626
11627 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11628 PyObject *resultobj = 0;
11629 wxRegion *arg1 = (wxRegion *) 0 ;
11630 wxRegion *arg2 = 0 ;
11631 bool result;
11632 void *argp1 = 0 ;
11633 int res1 = 0 ;
11634 void *argp2 = 0 ;
11635 int res2 = 0 ;
11636 PyObject * obj0 = 0 ;
11637 PyObject * obj1 = 0 ;
11638 char * kwnames[] = {
11639 (char *) "self",(char *) "region", NULL
11640 };
11641
11642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11644 if (!SWIG_IsOK(res1)) {
11645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11646 }
11647 arg1 = reinterpret_cast< wxRegion * >(argp1);
11648 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11649 if (!SWIG_IsOK(res2)) {
11650 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11651 }
11652 if (!argp2) {
11653 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11654 }
11655 arg2 = reinterpret_cast< wxRegion * >(argp2);
11656 {
11657 PyThreadState* __tstate = wxPyBeginAllowThreads();
11658 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11659 wxPyEndAllowThreads(__tstate);
11660 if (PyErr_Occurred()) SWIG_fail;
11661 }
11662 {
11663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11664 }
11665 return resultobj;
11666 fail:
11667 return NULL;
11668 }
11669
11670
11671 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11672 PyObject *resultobj = 0;
11673 wxRegion *arg1 = (wxRegion *) 0 ;
11674 int arg2 ;
11675 int arg3 ;
11676 int arg4 ;
11677 int arg5 ;
11678 bool result;
11679 void *argp1 = 0 ;
11680 int res1 = 0 ;
11681 int val2 ;
11682 int ecode2 = 0 ;
11683 int val3 ;
11684 int ecode3 = 0 ;
11685 int val4 ;
11686 int ecode4 = 0 ;
11687 int val5 ;
11688 int ecode5 = 0 ;
11689 PyObject * obj0 = 0 ;
11690 PyObject * obj1 = 0 ;
11691 PyObject * obj2 = 0 ;
11692 PyObject * obj3 = 0 ;
11693 PyObject * obj4 = 0 ;
11694 char * kwnames[] = {
11695 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11696 };
11697
11698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11700 if (!SWIG_IsOK(res1)) {
11701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11702 }
11703 arg1 = reinterpret_cast< wxRegion * >(argp1);
11704 ecode2 = SWIG_AsVal_int(obj1, &val2);
11705 if (!SWIG_IsOK(ecode2)) {
11706 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11707 }
11708 arg2 = static_cast< int >(val2);
11709 ecode3 = SWIG_AsVal_int(obj2, &val3);
11710 if (!SWIG_IsOK(ecode3)) {
11711 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11712 }
11713 arg3 = static_cast< int >(val3);
11714 ecode4 = SWIG_AsVal_int(obj3, &val4);
11715 if (!SWIG_IsOK(ecode4)) {
11716 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11717 }
11718 arg4 = static_cast< int >(val4);
11719 ecode5 = SWIG_AsVal_int(obj4, &val5);
11720 if (!SWIG_IsOK(ecode5)) {
11721 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11722 }
11723 arg5 = static_cast< int >(val5);
11724 {
11725 PyThreadState* __tstate = wxPyBeginAllowThreads();
11726 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11727 wxPyEndAllowThreads(__tstate);
11728 if (PyErr_Occurred()) SWIG_fail;
11729 }
11730 {
11731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11732 }
11733 return resultobj;
11734 fail:
11735 return NULL;
11736 }
11737
11738
11739 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11740 PyObject *resultobj = 0;
11741 wxRegion *arg1 = (wxRegion *) 0 ;
11742 wxRect *arg2 = 0 ;
11743 bool result;
11744 void *argp1 = 0 ;
11745 int res1 = 0 ;
11746 wxRect temp2 ;
11747 PyObject * obj0 = 0 ;
11748 PyObject * obj1 = 0 ;
11749 char * kwnames[] = {
11750 (char *) "self",(char *) "rect", NULL
11751 };
11752
11753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11755 if (!SWIG_IsOK(res1)) {
11756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11757 }
11758 arg1 = reinterpret_cast< wxRegion * >(argp1);
11759 {
11760 arg2 = &temp2;
11761 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11762 }
11763 {
11764 PyThreadState* __tstate = wxPyBeginAllowThreads();
11765 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11766 wxPyEndAllowThreads(__tstate);
11767 if (PyErr_Occurred()) SWIG_fail;
11768 }
11769 {
11770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11771 }
11772 return resultobj;
11773 fail:
11774 return NULL;
11775 }
11776
11777
11778 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11779 PyObject *resultobj = 0;
11780 wxRegion *arg1 = (wxRegion *) 0 ;
11781 wxRegion *arg2 = 0 ;
11782 bool result;
11783 void *argp1 = 0 ;
11784 int res1 = 0 ;
11785 void *argp2 = 0 ;
11786 int res2 = 0 ;
11787 PyObject * obj0 = 0 ;
11788 PyObject * obj1 = 0 ;
11789 char * kwnames[] = {
11790 (char *) "self",(char *) "region", NULL
11791 };
11792
11793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11795 if (!SWIG_IsOK(res1)) {
11796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11797 }
11798 arg1 = reinterpret_cast< wxRegion * >(argp1);
11799 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11800 if (!SWIG_IsOK(res2)) {
11801 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11802 }
11803 if (!argp2) {
11804 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11805 }
11806 arg2 = reinterpret_cast< wxRegion * >(argp2);
11807 {
11808 PyThreadState* __tstate = wxPyBeginAllowThreads();
11809 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11810 wxPyEndAllowThreads(__tstate);
11811 if (PyErr_Occurred()) SWIG_fail;
11812 }
11813 {
11814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11815 }
11816 return resultobj;
11817 fail:
11818 return NULL;
11819 }
11820
11821
11822 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11823 PyObject *resultobj = 0;
11824 wxRegion *arg1 = (wxRegion *) 0 ;
11825 int arg2 ;
11826 int arg3 ;
11827 int arg4 ;
11828 int arg5 ;
11829 bool result;
11830 void *argp1 = 0 ;
11831 int res1 = 0 ;
11832 int val2 ;
11833 int ecode2 = 0 ;
11834 int val3 ;
11835 int ecode3 = 0 ;
11836 int val4 ;
11837 int ecode4 = 0 ;
11838 int val5 ;
11839 int ecode5 = 0 ;
11840 PyObject * obj0 = 0 ;
11841 PyObject * obj1 = 0 ;
11842 PyObject * obj2 = 0 ;
11843 PyObject * obj3 = 0 ;
11844 PyObject * obj4 = 0 ;
11845 char * kwnames[] = {
11846 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11847 };
11848
11849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11851 if (!SWIG_IsOK(res1)) {
11852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11853 }
11854 arg1 = reinterpret_cast< wxRegion * >(argp1);
11855 ecode2 = SWIG_AsVal_int(obj1, &val2);
11856 if (!SWIG_IsOK(ecode2)) {
11857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11858 }
11859 arg2 = static_cast< int >(val2);
11860 ecode3 = SWIG_AsVal_int(obj2, &val3);
11861 if (!SWIG_IsOK(ecode3)) {
11862 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11863 }
11864 arg3 = static_cast< int >(val3);
11865 ecode4 = SWIG_AsVal_int(obj3, &val4);
11866 if (!SWIG_IsOK(ecode4)) {
11867 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11868 }
11869 arg4 = static_cast< int >(val4);
11870 ecode5 = SWIG_AsVal_int(obj4, &val5);
11871 if (!SWIG_IsOK(ecode5)) {
11872 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11873 }
11874 arg5 = static_cast< int >(val5);
11875 {
11876 PyThreadState* __tstate = wxPyBeginAllowThreads();
11877 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11878 wxPyEndAllowThreads(__tstate);
11879 if (PyErr_Occurred()) SWIG_fail;
11880 }
11881 {
11882 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11883 }
11884 return resultobj;
11885 fail:
11886 return NULL;
11887 }
11888
11889
11890 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11891 PyObject *resultobj = 0;
11892 wxRegion *arg1 = (wxRegion *) 0 ;
11893 wxRect *arg2 = 0 ;
11894 bool result;
11895 void *argp1 = 0 ;
11896 int res1 = 0 ;
11897 wxRect temp2 ;
11898 PyObject * obj0 = 0 ;
11899 PyObject * obj1 = 0 ;
11900 char * kwnames[] = {
11901 (char *) "self",(char *) "rect", NULL
11902 };
11903
11904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11906 if (!SWIG_IsOK(res1)) {
11907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11908 }
11909 arg1 = reinterpret_cast< wxRegion * >(argp1);
11910 {
11911 arg2 = &temp2;
11912 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11913 }
11914 {
11915 PyThreadState* __tstate = wxPyBeginAllowThreads();
11916 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11917 wxPyEndAllowThreads(__tstate);
11918 if (PyErr_Occurred()) SWIG_fail;
11919 }
11920 {
11921 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11922 }
11923 return resultobj;
11924 fail:
11925 return NULL;
11926 }
11927
11928
11929 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11930 PyObject *resultobj = 0;
11931 wxRegion *arg1 = (wxRegion *) 0 ;
11932 wxRegion *arg2 = 0 ;
11933 bool result;
11934 void *argp1 = 0 ;
11935 int res1 = 0 ;
11936 void *argp2 = 0 ;
11937 int res2 = 0 ;
11938 PyObject * obj0 = 0 ;
11939 PyObject * obj1 = 0 ;
11940 char * kwnames[] = {
11941 (char *) "self",(char *) "region", NULL
11942 };
11943
11944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11946 if (!SWIG_IsOK(res1)) {
11947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11948 }
11949 arg1 = reinterpret_cast< wxRegion * >(argp1);
11950 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11951 if (!SWIG_IsOK(res2)) {
11952 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11953 }
11954 if (!argp2) {
11955 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11956 }
11957 arg2 = reinterpret_cast< wxRegion * >(argp2);
11958 {
11959 PyThreadState* __tstate = wxPyBeginAllowThreads();
11960 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11961 wxPyEndAllowThreads(__tstate);
11962 if (PyErr_Occurred()) SWIG_fail;
11963 }
11964 {
11965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11966 }
11967 return resultobj;
11968 fail:
11969 return NULL;
11970 }
11971
11972
11973 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11974 PyObject *resultobj = 0;
11975 wxRegion *arg1 = (wxRegion *) 0 ;
11976 int arg2 ;
11977 int arg3 ;
11978 int arg4 ;
11979 int arg5 ;
11980 bool result;
11981 void *argp1 = 0 ;
11982 int res1 = 0 ;
11983 int val2 ;
11984 int ecode2 = 0 ;
11985 int val3 ;
11986 int ecode3 = 0 ;
11987 int val4 ;
11988 int ecode4 = 0 ;
11989 int val5 ;
11990 int ecode5 = 0 ;
11991 PyObject * obj0 = 0 ;
11992 PyObject * obj1 = 0 ;
11993 PyObject * obj2 = 0 ;
11994 PyObject * obj3 = 0 ;
11995 PyObject * obj4 = 0 ;
11996 char * kwnames[] = {
11997 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11998 };
11999
12000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
12001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12002 if (!SWIG_IsOK(res1)) {
12003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
12004 }
12005 arg1 = reinterpret_cast< wxRegion * >(argp1);
12006 ecode2 = SWIG_AsVal_int(obj1, &val2);
12007 if (!SWIG_IsOK(ecode2)) {
12008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
12009 }
12010 arg2 = static_cast< int >(val2);
12011 ecode3 = SWIG_AsVal_int(obj2, &val3);
12012 if (!SWIG_IsOK(ecode3)) {
12013 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
12014 }
12015 arg3 = static_cast< int >(val3);
12016 ecode4 = SWIG_AsVal_int(obj3, &val4);
12017 if (!SWIG_IsOK(ecode4)) {
12018 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
12019 }
12020 arg4 = static_cast< int >(val4);
12021 ecode5 = SWIG_AsVal_int(obj4, &val5);
12022 if (!SWIG_IsOK(ecode5)) {
12023 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
12024 }
12025 arg5 = static_cast< int >(val5);
12026 {
12027 PyThreadState* __tstate = wxPyBeginAllowThreads();
12028 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
12029 wxPyEndAllowThreads(__tstate);
12030 if (PyErr_Occurred()) SWIG_fail;
12031 }
12032 {
12033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12034 }
12035 return resultobj;
12036 fail:
12037 return NULL;
12038 }
12039
12040
12041 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12042 PyObject *resultobj = 0;
12043 wxRegion *arg1 = (wxRegion *) 0 ;
12044 wxRect *arg2 = 0 ;
12045 bool result;
12046 void *argp1 = 0 ;
12047 int res1 = 0 ;
12048 wxRect temp2 ;
12049 PyObject * obj0 = 0 ;
12050 PyObject * obj1 = 0 ;
12051 char * kwnames[] = {
12052 (char *) "self",(char *) "rect", NULL
12053 };
12054
12055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
12056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12057 if (!SWIG_IsOK(res1)) {
12058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
12059 }
12060 arg1 = reinterpret_cast< wxRegion * >(argp1);
12061 {
12062 arg2 = &temp2;
12063 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12064 }
12065 {
12066 PyThreadState* __tstate = wxPyBeginAllowThreads();
12067 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
12068 wxPyEndAllowThreads(__tstate);
12069 if (PyErr_Occurred()) SWIG_fail;
12070 }
12071 {
12072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12073 }
12074 return resultobj;
12075 fail:
12076 return NULL;
12077 }
12078
12079
12080 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12081 PyObject *resultobj = 0;
12082 wxRegion *arg1 = (wxRegion *) 0 ;
12083 wxRegion *arg2 = 0 ;
12084 bool result;
12085 void *argp1 = 0 ;
12086 int res1 = 0 ;
12087 void *argp2 = 0 ;
12088 int res2 = 0 ;
12089 PyObject * obj0 = 0 ;
12090 PyObject * obj1 = 0 ;
12091 char * kwnames[] = {
12092 (char *) "self",(char *) "region", NULL
12093 };
12094
12095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
12096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12097 if (!SWIG_IsOK(res1)) {
12098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
12099 }
12100 arg1 = reinterpret_cast< wxRegion * >(argp1);
12101 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
12102 if (!SWIG_IsOK(res2)) {
12103 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12104 }
12105 if (!argp2) {
12106 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12107 }
12108 arg2 = reinterpret_cast< wxRegion * >(argp2);
12109 {
12110 PyThreadState* __tstate = wxPyBeginAllowThreads();
12111 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
12112 wxPyEndAllowThreads(__tstate);
12113 if (PyErr_Occurred()) SWIG_fail;
12114 }
12115 {
12116 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12117 }
12118 return resultobj;
12119 fail:
12120 return NULL;
12121 }
12122
12123
12124 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12125 PyObject *resultobj = 0;
12126 wxRegion *arg1 = (wxRegion *) 0 ;
12127 SwigValueWrapper<wxBitmap > result;
12128 void *argp1 = 0 ;
12129 int res1 = 0 ;
12130 PyObject *swig_obj[1] ;
12131
12132 if (!args) SWIG_fail;
12133 swig_obj[0] = args;
12134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12135 if (!SWIG_IsOK(res1)) {
12136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
12137 }
12138 arg1 = reinterpret_cast< wxRegion * >(argp1);
12139 {
12140 PyThreadState* __tstate = wxPyBeginAllowThreads();
12141 result = (arg1)->ConvertToBitmap();
12142 wxPyEndAllowThreads(__tstate);
12143 if (PyErr_Occurred()) SWIG_fail;
12144 }
12145 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
12146 return resultobj;
12147 fail:
12148 return NULL;
12149 }
12150
12151
12152 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12153 PyObject *resultobj = 0;
12154 wxRegion *arg1 = (wxRegion *) 0 ;
12155 wxBitmap *arg2 = 0 ;
12156 bool result;
12157 void *argp1 = 0 ;
12158 int res1 = 0 ;
12159 void *argp2 = 0 ;
12160 int res2 = 0 ;
12161 PyObject * obj0 = 0 ;
12162 PyObject * obj1 = 0 ;
12163 char * kwnames[] = {
12164 (char *) "self",(char *) "bmp", NULL
12165 };
12166
12167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
12168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12169 if (!SWIG_IsOK(res1)) {
12170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
12171 }
12172 arg1 = reinterpret_cast< wxRegion * >(argp1);
12173 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12174 if (!SWIG_IsOK(res2)) {
12175 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12176 }
12177 if (!argp2) {
12178 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12179 }
12180 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12181 {
12182 PyThreadState* __tstate = wxPyBeginAllowThreads();
12183 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
12184 wxPyEndAllowThreads(__tstate);
12185 if (PyErr_Occurred()) SWIG_fail;
12186 }
12187 {
12188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12189 }
12190 return resultobj;
12191 fail:
12192 return NULL;
12193 }
12194
12195
12196 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12197 PyObject *resultobj = 0;
12198 wxRegion *arg1 = (wxRegion *) 0 ;
12199 wxBitmap *arg2 = 0 ;
12200 wxColour *arg3 = 0 ;
12201 int arg4 = (int) 0 ;
12202 bool result;
12203 void *argp1 = 0 ;
12204 int res1 = 0 ;
12205 void *argp2 = 0 ;
12206 int res2 = 0 ;
12207 wxColour temp3 ;
12208 int val4 ;
12209 int ecode4 = 0 ;
12210 PyObject * obj0 = 0 ;
12211 PyObject * obj1 = 0 ;
12212 PyObject * obj2 = 0 ;
12213 PyObject * obj3 = 0 ;
12214 char * kwnames[] = {
12215 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
12216 };
12217
12218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12220 if (!SWIG_IsOK(res1)) {
12221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
12222 }
12223 arg1 = reinterpret_cast< wxRegion * >(argp1);
12224 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12225 if (!SWIG_IsOK(res2)) {
12226 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12227 }
12228 if (!argp2) {
12229 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12230 }
12231 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12232 {
12233 arg3 = &temp3;
12234 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
12235 }
12236 if (obj3) {
12237 ecode4 = SWIG_AsVal_int(obj3, &val4);
12238 if (!SWIG_IsOK(ecode4)) {
12239 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
12240 }
12241 arg4 = static_cast< int >(val4);
12242 }
12243 {
12244 PyThreadState* __tstate = wxPyBeginAllowThreads();
12245 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
12246 wxPyEndAllowThreads(__tstate);
12247 if (PyErr_Occurred()) SWIG_fail;
12248 }
12249 {
12250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12251 }
12252 return resultobj;
12253 fail:
12254 return NULL;
12255 }
12256
12257
12258 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12259 PyObject *obj;
12260 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12261 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
12262 return SWIG_Py_Void();
12263 }
12264
12265 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12266 return SWIG_Python_InitShadowInstance(args);
12267 }
12268
12269 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12270 PyObject *resultobj = 0;
12271 wxRegion *arg1 = 0 ;
12272 wxRegionIterator *result = 0 ;
12273 void *argp1 = 0 ;
12274 int res1 = 0 ;
12275 PyObject * obj0 = 0 ;
12276 char * kwnames[] = {
12277 (char *) "region", NULL
12278 };
12279
12280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
12281 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
12282 if (!SWIG_IsOK(res1)) {
12283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12284 }
12285 if (!argp1) {
12286 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12287 }
12288 arg1 = reinterpret_cast< wxRegion * >(argp1);
12289 {
12290 if (!wxPyCheckForApp()) SWIG_fail;
12291 PyThreadState* __tstate = wxPyBeginAllowThreads();
12292 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
12293 wxPyEndAllowThreads(__tstate);
12294 if (PyErr_Occurred()) SWIG_fail;
12295 }
12296 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
12297 return resultobj;
12298 fail:
12299 return NULL;
12300 }
12301
12302
12303 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12304 PyObject *resultobj = 0;
12305 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12306 void *argp1 = 0 ;
12307 int res1 = 0 ;
12308 PyObject *swig_obj[1] ;
12309
12310 if (!args) SWIG_fail;
12311 swig_obj[0] = args;
12312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
12313 if (!SWIG_IsOK(res1)) {
12314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12315 }
12316 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12317 {
12318 PyThreadState* __tstate = wxPyBeginAllowThreads();
12319 delete arg1;
12320
12321 wxPyEndAllowThreads(__tstate);
12322 if (PyErr_Occurred()) SWIG_fail;
12323 }
12324 resultobj = SWIG_Py_Void();
12325 return resultobj;
12326 fail:
12327 return NULL;
12328 }
12329
12330
12331 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12332 PyObject *resultobj = 0;
12333 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12334 int result;
12335 void *argp1 = 0 ;
12336 int res1 = 0 ;
12337 PyObject *swig_obj[1] ;
12338
12339 if (!args) SWIG_fail;
12340 swig_obj[0] = args;
12341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12342 if (!SWIG_IsOK(res1)) {
12343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12344 }
12345 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12346 {
12347 PyThreadState* __tstate = wxPyBeginAllowThreads();
12348 result = (int)(arg1)->GetX();
12349 wxPyEndAllowThreads(__tstate);
12350 if (PyErr_Occurred()) SWIG_fail;
12351 }
12352 resultobj = SWIG_From_int(static_cast< int >(result));
12353 return resultobj;
12354 fail:
12355 return NULL;
12356 }
12357
12358
12359 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12360 PyObject *resultobj = 0;
12361 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12362 int result;
12363 void *argp1 = 0 ;
12364 int res1 = 0 ;
12365 PyObject *swig_obj[1] ;
12366
12367 if (!args) SWIG_fail;
12368 swig_obj[0] = args;
12369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12370 if (!SWIG_IsOK(res1)) {
12371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12372 }
12373 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12374 {
12375 PyThreadState* __tstate = wxPyBeginAllowThreads();
12376 result = (int)(arg1)->GetY();
12377 wxPyEndAllowThreads(__tstate);
12378 if (PyErr_Occurred()) SWIG_fail;
12379 }
12380 resultobj = SWIG_From_int(static_cast< int >(result));
12381 return resultobj;
12382 fail:
12383 return NULL;
12384 }
12385
12386
12387 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12388 PyObject *resultobj = 0;
12389 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12390 int result;
12391 void *argp1 = 0 ;
12392 int res1 = 0 ;
12393 PyObject *swig_obj[1] ;
12394
12395 if (!args) SWIG_fail;
12396 swig_obj[0] = args;
12397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12398 if (!SWIG_IsOK(res1)) {
12399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12400 }
12401 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12402 {
12403 PyThreadState* __tstate = wxPyBeginAllowThreads();
12404 result = (int)(arg1)->GetW();
12405 wxPyEndAllowThreads(__tstate);
12406 if (PyErr_Occurred()) SWIG_fail;
12407 }
12408 resultobj = SWIG_From_int(static_cast< int >(result));
12409 return resultobj;
12410 fail:
12411 return NULL;
12412 }
12413
12414
12415 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12416 PyObject *resultobj = 0;
12417 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12418 int result;
12419 void *argp1 = 0 ;
12420 int res1 = 0 ;
12421 PyObject *swig_obj[1] ;
12422
12423 if (!args) SWIG_fail;
12424 swig_obj[0] = args;
12425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12426 if (!SWIG_IsOK(res1)) {
12427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12428 }
12429 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12430 {
12431 PyThreadState* __tstate = wxPyBeginAllowThreads();
12432 result = (int)(arg1)->GetWidth();
12433 wxPyEndAllowThreads(__tstate);
12434 if (PyErr_Occurred()) SWIG_fail;
12435 }
12436 resultobj = SWIG_From_int(static_cast< int >(result));
12437 return resultobj;
12438 fail:
12439 return NULL;
12440 }
12441
12442
12443 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12444 PyObject *resultobj = 0;
12445 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12446 int result;
12447 void *argp1 = 0 ;
12448 int res1 = 0 ;
12449 PyObject *swig_obj[1] ;
12450
12451 if (!args) SWIG_fail;
12452 swig_obj[0] = args;
12453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12454 if (!SWIG_IsOK(res1)) {
12455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12456 }
12457 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12458 {
12459 PyThreadState* __tstate = wxPyBeginAllowThreads();
12460 result = (int)(arg1)->GetH();
12461 wxPyEndAllowThreads(__tstate);
12462 if (PyErr_Occurred()) SWIG_fail;
12463 }
12464 resultobj = SWIG_From_int(static_cast< int >(result));
12465 return resultobj;
12466 fail:
12467 return NULL;
12468 }
12469
12470
12471 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12472 PyObject *resultobj = 0;
12473 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12474 int result;
12475 void *argp1 = 0 ;
12476 int res1 = 0 ;
12477 PyObject *swig_obj[1] ;
12478
12479 if (!args) SWIG_fail;
12480 swig_obj[0] = args;
12481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12482 if (!SWIG_IsOK(res1)) {
12483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12484 }
12485 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12486 {
12487 PyThreadState* __tstate = wxPyBeginAllowThreads();
12488 result = (int)(arg1)->GetHeight();
12489 wxPyEndAllowThreads(__tstate);
12490 if (PyErr_Occurred()) SWIG_fail;
12491 }
12492 resultobj = SWIG_From_int(static_cast< int >(result));
12493 return resultobj;
12494 fail:
12495 return NULL;
12496 }
12497
12498
12499 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12500 PyObject *resultobj = 0;
12501 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12502 wxRect result;
12503 void *argp1 = 0 ;
12504 int res1 = 0 ;
12505 PyObject *swig_obj[1] ;
12506
12507 if (!args) SWIG_fail;
12508 swig_obj[0] = args;
12509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12510 if (!SWIG_IsOK(res1)) {
12511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12512 }
12513 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12514 {
12515 PyThreadState* __tstate = wxPyBeginAllowThreads();
12516 result = (arg1)->GetRect();
12517 wxPyEndAllowThreads(__tstate);
12518 if (PyErr_Occurred()) SWIG_fail;
12519 }
12520 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
12521 return resultobj;
12522 fail:
12523 return NULL;
12524 }
12525
12526
12527 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12528 PyObject *resultobj = 0;
12529 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12530 bool result;
12531 void *argp1 = 0 ;
12532 int res1 = 0 ;
12533 PyObject *swig_obj[1] ;
12534
12535 if (!args) SWIG_fail;
12536 swig_obj[0] = args;
12537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12538 if (!SWIG_IsOK(res1)) {
12539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12540 }
12541 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12542 {
12543 PyThreadState* __tstate = wxPyBeginAllowThreads();
12544 result = (bool)(arg1)->HaveRects();
12545 wxPyEndAllowThreads(__tstate);
12546 if (PyErr_Occurred()) SWIG_fail;
12547 }
12548 {
12549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12550 }
12551 return resultobj;
12552 fail:
12553 return NULL;
12554 }
12555
12556
12557 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12558 PyObject *resultobj = 0;
12559 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12560 void *argp1 = 0 ;
12561 int res1 = 0 ;
12562 PyObject *swig_obj[1] ;
12563
12564 if (!args) SWIG_fail;
12565 swig_obj[0] = args;
12566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12567 if (!SWIG_IsOK(res1)) {
12568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12569 }
12570 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12571 {
12572 PyThreadState* __tstate = wxPyBeginAllowThreads();
12573 (arg1)->Reset();
12574 wxPyEndAllowThreads(__tstate);
12575 if (PyErr_Occurred()) SWIG_fail;
12576 }
12577 resultobj = SWIG_Py_Void();
12578 return resultobj;
12579 fail:
12580 return NULL;
12581 }
12582
12583
12584 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12585 PyObject *resultobj = 0;
12586 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12587 void *argp1 = 0 ;
12588 int res1 = 0 ;
12589 PyObject *swig_obj[1] ;
12590
12591 if (!args) SWIG_fail;
12592 swig_obj[0] = args;
12593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12594 if (!SWIG_IsOK(res1)) {
12595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12596 }
12597 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12598 {
12599 PyThreadState* __tstate = wxPyBeginAllowThreads();
12600 wxRegionIterator_Next(arg1);
12601 wxPyEndAllowThreads(__tstate);
12602 if (PyErr_Occurred()) SWIG_fail;
12603 }
12604 resultobj = SWIG_Py_Void();
12605 return resultobj;
12606 fail:
12607 return NULL;
12608 }
12609
12610
12611 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12612 PyObject *resultobj = 0;
12613 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12614 bool result;
12615 void *argp1 = 0 ;
12616 int res1 = 0 ;
12617 PyObject *swig_obj[1] ;
12618
12619 if (!args) SWIG_fail;
12620 swig_obj[0] = args;
12621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12622 if (!SWIG_IsOK(res1)) {
12623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12624 }
12625 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12626 {
12627 PyThreadState* __tstate = wxPyBeginAllowThreads();
12628 result = (bool)wxRegionIterator___nonzero__(arg1);
12629 wxPyEndAllowThreads(__tstate);
12630 if (PyErr_Occurred()) SWIG_fail;
12631 }
12632 {
12633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12634 }
12635 return resultobj;
12636 fail:
12637 return NULL;
12638 }
12639
12640
12641 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12642 PyObject *obj;
12643 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12644 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12645 return SWIG_Py_Void();
12646 }
12647
12648 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12649 return SWIG_Python_InitShadowInstance(args);
12650 }
12651
12652 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12653 PyObject *resultobj = 0;
12654 wxNativeFontInfo *result = 0 ;
12655
12656 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12657 {
12658 PyThreadState* __tstate = wxPyBeginAllowThreads();
12659 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12660 wxPyEndAllowThreads(__tstate);
12661 if (PyErr_Occurred()) SWIG_fail;
12662 }
12663 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12664 return resultobj;
12665 fail:
12666 return NULL;
12667 }
12668
12669
12670 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12671 PyObject *resultobj = 0;
12672 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12673 void *argp1 = 0 ;
12674 int res1 = 0 ;
12675 PyObject *swig_obj[1] ;
12676
12677 if (!args) SWIG_fail;
12678 swig_obj[0] = args;
12679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12680 if (!SWIG_IsOK(res1)) {
12681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12682 }
12683 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12684 {
12685 PyThreadState* __tstate = wxPyBeginAllowThreads();
12686 delete arg1;
12687
12688 wxPyEndAllowThreads(__tstate);
12689 if (PyErr_Occurred()) SWIG_fail;
12690 }
12691 resultobj = SWIG_Py_Void();
12692 return resultobj;
12693 fail:
12694 return NULL;
12695 }
12696
12697
12698 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12699 PyObject *resultobj = 0;
12700 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12701 void *argp1 = 0 ;
12702 int res1 = 0 ;
12703 PyObject *swig_obj[1] ;
12704
12705 if (!args) SWIG_fail;
12706 swig_obj[0] = args;
12707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12708 if (!SWIG_IsOK(res1)) {
12709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12710 }
12711 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12712 {
12713 PyThreadState* __tstate = wxPyBeginAllowThreads();
12714 (arg1)->Init();
12715 wxPyEndAllowThreads(__tstate);
12716 if (PyErr_Occurred()) SWIG_fail;
12717 }
12718 resultobj = SWIG_Py_Void();
12719 return resultobj;
12720 fail:
12721 return NULL;
12722 }
12723
12724
12725 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12726 PyObject *resultobj = 0;
12727 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12728 wxFont *arg2 = 0 ;
12729 void *argp1 = 0 ;
12730 int res1 = 0 ;
12731 void *argp2 = 0 ;
12732 int res2 = 0 ;
12733 PyObject * obj0 = 0 ;
12734 PyObject * obj1 = 0 ;
12735 char * kwnames[] = {
12736 (char *) "self",(char *) "font", NULL
12737 };
12738
12739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12741 if (!SWIG_IsOK(res1)) {
12742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12743 }
12744 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12745 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12746 if (!SWIG_IsOK(res2)) {
12747 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12748 }
12749 if (!argp2) {
12750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12751 }
12752 arg2 = reinterpret_cast< wxFont * >(argp2);
12753 {
12754 PyThreadState* __tstate = wxPyBeginAllowThreads();
12755 (arg1)->InitFromFont((wxFont const &)*arg2);
12756 wxPyEndAllowThreads(__tstate);
12757 if (PyErr_Occurred()) SWIG_fail;
12758 }
12759 resultobj = SWIG_Py_Void();
12760 return resultobj;
12761 fail:
12762 return NULL;
12763 }
12764
12765
12766 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12767 PyObject *resultobj = 0;
12768 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12769 int result;
12770 void *argp1 = 0 ;
12771 int res1 = 0 ;
12772 PyObject *swig_obj[1] ;
12773
12774 if (!args) SWIG_fail;
12775 swig_obj[0] = args;
12776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12777 if (!SWIG_IsOK(res1)) {
12778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12779 }
12780 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12781 {
12782 PyThreadState* __tstate = wxPyBeginAllowThreads();
12783 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12784 wxPyEndAllowThreads(__tstate);
12785 if (PyErr_Occurred()) SWIG_fail;
12786 }
12787 resultobj = SWIG_From_int(static_cast< int >(result));
12788 return resultobj;
12789 fail:
12790 return NULL;
12791 }
12792
12793
12794 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12795 PyObject *resultobj = 0;
12796 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12797 wxSize result;
12798 void *argp1 = 0 ;
12799 int res1 = 0 ;
12800 PyObject *swig_obj[1] ;
12801
12802 if (!args) SWIG_fail;
12803 swig_obj[0] = args;
12804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12805 if (!SWIG_IsOK(res1)) {
12806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12807 }
12808 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12809 {
12810 PyThreadState* __tstate = wxPyBeginAllowThreads();
12811 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
12812 wxPyEndAllowThreads(__tstate);
12813 if (PyErr_Occurred()) SWIG_fail;
12814 }
12815 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12816 return resultobj;
12817 fail:
12818 return NULL;
12819 }
12820
12821
12822 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12823 PyObject *resultobj = 0;
12824 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12825 wxFontStyle result;
12826 void *argp1 = 0 ;
12827 int res1 = 0 ;
12828 PyObject *swig_obj[1] ;
12829
12830 if (!args) SWIG_fail;
12831 swig_obj[0] = args;
12832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12833 if (!SWIG_IsOK(res1)) {
12834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12835 }
12836 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12837 {
12838 PyThreadState* __tstate = wxPyBeginAllowThreads();
12839 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12840 wxPyEndAllowThreads(__tstate);
12841 if (PyErr_Occurred()) SWIG_fail;
12842 }
12843 resultobj = SWIG_From_int(static_cast< int >(result));
12844 return resultobj;
12845 fail:
12846 return NULL;
12847 }
12848
12849
12850 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12851 PyObject *resultobj = 0;
12852 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12853 wxFontWeight result;
12854 void *argp1 = 0 ;
12855 int res1 = 0 ;
12856 PyObject *swig_obj[1] ;
12857
12858 if (!args) SWIG_fail;
12859 swig_obj[0] = args;
12860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12861 if (!SWIG_IsOK(res1)) {
12862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12863 }
12864 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12865 {
12866 PyThreadState* __tstate = wxPyBeginAllowThreads();
12867 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12868 wxPyEndAllowThreads(__tstate);
12869 if (PyErr_Occurred()) SWIG_fail;
12870 }
12871 resultobj = SWIG_From_int(static_cast< int >(result));
12872 return resultobj;
12873 fail:
12874 return NULL;
12875 }
12876
12877
12878 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12879 PyObject *resultobj = 0;
12880 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12881 bool result;
12882 void *argp1 = 0 ;
12883 int res1 = 0 ;
12884 PyObject *swig_obj[1] ;
12885
12886 if (!args) SWIG_fail;
12887 swig_obj[0] = args;
12888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12889 if (!SWIG_IsOK(res1)) {
12890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12891 }
12892 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12893 {
12894 PyThreadState* __tstate = wxPyBeginAllowThreads();
12895 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12896 wxPyEndAllowThreads(__tstate);
12897 if (PyErr_Occurred()) SWIG_fail;
12898 }
12899 {
12900 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12901 }
12902 return resultobj;
12903 fail:
12904 return NULL;
12905 }
12906
12907
12908 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12909 PyObject *resultobj = 0;
12910 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12911 wxString result;
12912 void *argp1 = 0 ;
12913 int res1 = 0 ;
12914 PyObject *swig_obj[1] ;
12915
12916 if (!args) SWIG_fail;
12917 swig_obj[0] = args;
12918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12919 if (!SWIG_IsOK(res1)) {
12920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12921 }
12922 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12923 {
12924 PyThreadState* __tstate = wxPyBeginAllowThreads();
12925 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12926 wxPyEndAllowThreads(__tstate);
12927 if (PyErr_Occurred()) SWIG_fail;
12928 }
12929 {
12930 #if wxUSE_UNICODE
12931 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12932 #else
12933 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12934 #endif
12935 }
12936 return resultobj;
12937 fail:
12938 return NULL;
12939 }
12940
12941
12942 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12943 PyObject *resultobj = 0;
12944 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12945 wxFontFamily result;
12946 void *argp1 = 0 ;
12947 int res1 = 0 ;
12948 PyObject *swig_obj[1] ;
12949
12950 if (!args) SWIG_fail;
12951 swig_obj[0] = args;
12952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12953 if (!SWIG_IsOK(res1)) {
12954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12955 }
12956 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12957 {
12958 PyThreadState* __tstate = wxPyBeginAllowThreads();
12959 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12960 wxPyEndAllowThreads(__tstate);
12961 if (PyErr_Occurred()) SWIG_fail;
12962 }
12963 resultobj = SWIG_From_int(static_cast< int >(result));
12964 return resultobj;
12965 fail:
12966 return NULL;
12967 }
12968
12969
12970 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12971 PyObject *resultobj = 0;
12972 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12973 wxFontEncoding result;
12974 void *argp1 = 0 ;
12975 int res1 = 0 ;
12976 PyObject *swig_obj[1] ;
12977
12978 if (!args) SWIG_fail;
12979 swig_obj[0] = args;
12980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12981 if (!SWIG_IsOK(res1)) {
12982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12983 }
12984 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12985 {
12986 PyThreadState* __tstate = wxPyBeginAllowThreads();
12987 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12988 wxPyEndAllowThreads(__tstate);
12989 if (PyErr_Occurred()) SWIG_fail;
12990 }
12991 resultobj = SWIG_From_int(static_cast< int >(result));
12992 return resultobj;
12993 fail:
12994 return NULL;
12995 }
12996
12997
12998 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12999 PyObject *resultobj = 0;
13000 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13001 int arg2 ;
13002 void *argp1 = 0 ;
13003 int res1 = 0 ;
13004 int val2 ;
13005 int ecode2 = 0 ;
13006 PyObject * obj0 = 0 ;
13007 PyObject * obj1 = 0 ;
13008 char * kwnames[] = {
13009 (char *) "self",(char *) "pointsize", NULL
13010 };
13011
13012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
13013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13014 if (!SWIG_IsOK(res1)) {
13015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13016 }
13017 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13018 ecode2 = SWIG_AsVal_int(obj1, &val2);
13019 if (!SWIG_IsOK(ecode2)) {
13020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
13021 }
13022 arg2 = static_cast< int >(val2);
13023 {
13024 PyThreadState* __tstate = wxPyBeginAllowThreads();
13025 (arg1)->SetPointSize(arg2);
13026 wxPyEndAllowThreads(__tstate);
13027 if (PyErr_Occurred()) SWIG_fail;
13028 }
13029 resultobj = SWIG_Py_Void();
13030 return resultobj;
13031 fail:
13032 return NULL;
13033 }
13034
13035
13036 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13037 PyObject *resultobj = 0;
13038 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13039 wxSize *arg2 = 0 ;
13040 void *argp1 = 0 ;
13041 int res1 = 0 ;
13042 wxSize temp2 ;
13043 PyObject * obj0 = 0 ;
13044 PyObject * obj1 = 0 ;
13045 char * kwnames[] = {
13046 (char *) "self",(char *) "pixelSize", NULL
13047 };
13048
13049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
13050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13051 if (!SWIG_IsOK(res1)) {
13052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13053 }
13054 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13055 {
13056 arg2 = &temp2;
13057 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13058 }
13059 {
13060 PyThreadState* __tstate = wxPyBeginAllowThreads();
13061 (arg1)->SetPixelSize((wxSize const &)*arg2);
13062 wxPyEndAllowThreads(__tstate);
13063 if (PyErr_Occurred()) SWIG_fail;
13064 }
13065 resultobj = SWIG_Py_Void();
13066 return resultobj;
13067 fail:
13068 return NULL;
13069 }
13070
13071
13072 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13073 PyObject *resultobj = 0;
13074 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13075 wxFontStyle arg2 ;
13076 void *argp1 = 0 ;
13077 int res1 = 0 ;
13078 int val2 ;
13079 int ecode2 = 0 ;
13080 PyObject * obj0 = 0 ;
13081 PyObject * obj1 = 0 ;
13082 char * kwnames[] = {
13083 (char *) "self",(char *) "style", NULL
13084 };
13085
13086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13088 if (!SWIG_IsOK(res1)) {
13089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13090 }
13091 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13092 ecode2 = SWIG_AsVal_int(obj1, &val2);
13093 if (!SWIG_IsOK(ecode2)) {
13094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
13095 }
13096 arg2 = static_cast< wxFontStyle >(val2);
13097 {
13098 PyThreadState* __tstate = wxPyBeginAllowThreads();
13099 (arg1)->SetStyle(arg2);
13100 wxPyEndAllowThreads(__tstate);
13101 if (PyErr_Occurred()) SWIG_fail;
13102 }
13103 resultobj = SWIG_Py_Void();
13104 return resultobj;
13105 fail:
13106 return NULL;
13107 }
13108
13109
13110 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13111 PyObject *resultobj = 0;
13112 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13113 wxFontWeight arg2 ;
13114 void *argp1 = 0 ;
13115 int res1 = 0 ;
13116 int val2 ;
13117 int ecode2 = 0 ;
13118 PyObject * obj0 = 0 ;
13119 PyObject * obj1 = 0 ;
13120 char * kwnames[] = {
13121 (char *) "self",(char *) "weight", NULL
13122 };
13123
13124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
13125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13126 if (!SWIG_IsOK(res1)) {
13127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13128 }
13129 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13130 ecode2 = SWIG_AsVal_int(obj1, &val2);
13131 if (!SWIG_IsOK(ecode2)) {
13132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
13133 }
13134 arg2 = static_cast< wxFontWeight >(val2);
13135 {
13136 PyThreadState* __tstate = wxPyBeginAllowThreads();
13137 (arg1)->SetWeight(arg2);
13138 wxPyEndAllowThreads(__tstate);
13139 if (PyErr_Occurred()) SWIG_fail;
13140 }
13141 resultobj = SWIG_Py_Void();
13142 return resultobj;
13143 fail:
13144 return NULL;
13145 }
13146
13147
13148 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13149 PyObject *resultobj = 0;
13150 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13151 bool arg2 ;
13152 void *argp1 = 0 ;
13153 int res1 = 0 ;
13154 bool val2 ;
13155 int ecode2 = 0 ;
13156 PyObject * obj0 = 0 ;
13157 PyObject * obj1 = 0 ;
13158 char * kwnames[] = {
13159 (char *) "self",(char *) "underlined", NULL
13160 };
13161
13162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
13163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13164 if (!SWIG_IsOK(res1)) {
13165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13166 }
13167 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13168 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13169 if (!SWIG_IsOK(ecode2)) {
13170 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
13171 }
13172 arg2 = static_cast< bool >(val2);
13173 {
13174 PyThreadState* __tstate = wxPyBeginAllowThreads();
13175 (arg1)->SetUnderlined(arg2);
13176 wxPyEndAllowThreads(__tstate);
13177 if (PyErr_Occurred()) SWIG_fail;
13178 }
13179 resultobj = SWIG_Py_Void();
13180 return resultobj;
13181 fail:
13182 return NULL;
13183 }
13184
13185
13186 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13187 PyObject *resultobj = 0;
13188 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13189 wxString arg2 ;
13190 bool result;
13191 void *argp1 = 0 ;
13192 int res1 = 0 ;
13193 PyObject * obj0 = 0 ;
13194 PyObject * obj1 = 0 ;
13195 char * kwnames[] = {
13196 (char *) "self",(char *) "facename", NULL
13197 };
13198
13199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
13200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13201 if (!SWIG_IsOK(res1)) {
13202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13203 }
13204 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13205 {
13206 wxString* sptr = wxString_in_helper(obj1);
13207 if (sptr == NULL) SWIG_fail;
13208 arg2 = *sptr;
13209 delete sptr;
13210 }
13211 {
13212 PyThreadState* __tstate = wxPyBeginAllowThreads();
13213 result = (bool)(arg1)->SetFaceName(arg2);
13214 wxPyEndAllowThreads(__tstate);
13215 if (PyErr_Occurred()) SWIG_fail;
13216 }
13217 {
13218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13219 }
13220 return resultobj;
13221 fail:
13222 return NULL;
13223 }
13224
13225
13226 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13227 PyObject *resultobj = 0;
13228 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13229 wxFontFamily arg2 ;
13230 void *argp1 = 0 ;
13231 int res1 = 0 ;
13232 int val2 ;
13233 int ecode2 = 0 ;
13234 PyObject * obj0 = 0 ;
13235 PyObject * obj1 = 0 ;
13236 char * kwnames[] = {
13237 (char *) "self",(char *) "family", NULL
13238 };
13239
13240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
13241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13242 if (!SWIG_IsOK(res1)) {
13243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13244 }
13245 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13246 ecode2 = SWIG_AsVal_int(obj1, &val2);
13247 if (!SWIG_IsOK(ecode2)) {
13248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
13249 }
13250 arg2 = static_cast< wxFontFamily >(val2);
13251 {
13252 PyThreadState* __tstate = wxPyBeginAllowThreads();
13253 (arg1)->SetFamily(arg2);
13254 wxPyEndAllowThreads(__tstate);
13255 if (PyErr_Occurred()) SWIG_fail;
13256 }
13257 resultobj = SWIG_Py_Void();
13258 return resultobj;
13259 fail:
13260 return NULL;
13261 }
13262
13263
13264 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13265 PyObject *resultobj = 0;
13266 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13267 wxFontEncoding arg2 ;
13268 void *argp1 = 0 ;
13269 int res1 = 0 ;
13270 int val2 ;
13271 int ecode2 = 0 ;
13272 PyObject * obj0 = 0 ;
13273 PyObject * obj1 = 0 ;
13274 char * kwnames[] = {
13275 (char *) "self",(char *) "encoding", NULL
13276 };
13277
13278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
13279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13280 if (!SWIG_IsOK(res1)) {
13281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13282 }
13283 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13284 ecode2 = SWIG_AsVal_int(obj1, &val2);
13285 if (!SWIG_IsOK(ecode2)) {
13286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13287 }
13288 arg2 = static_cast< wxFontEncoding >(val2);
13289 {
13290 PyThreadState* __tstate = wxPyBeginAllowThreads();
13291 (arg1)->SetEncoding(arg2);
13292 wxPyEndAllowThreads(__tstate);
13293 if (PyErr_Occurred()) SWIG_fail;
13294 }
13295 resultobj = SWIG_Py_Void();
13296 return resultobj;
13297 fail:
13298 return NULL;
13299 }
13300
13301
13302 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13303 PyObject *resultobj = 0;
13304 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13305 wxString *arg2 = 0 ;
13306 bool result;
13307 void *argp1 = 0 ;
13308 int res1 = 0 ;
13309 bool temp2 = false ;
13310 PyObject * obj0 = 0 ;
13311 PyObject * obj1 = 0 ;
13312 char * kwnames[] = {
13313 (char *) "self",(char *) "s", NULL
13314 };
13315
13316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13318 if (!SWIG_IsOK(res1)) {
13319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13320 }
13321 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13322 {
13323 arg2 = wxString_in_helper(obj1);
13324 if (arg2 == NULL) SWIG_fail;
13325 temp2 = true;
13326 }
13327 {
13328 PyThreadState* __tstate = wxPyBeginAllowThreads();
13329 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13330 wxPyEndAllowThreads(__tstate);
13331 if (PyErr_Occurred()) SWIG_fail;
13332 }
13333 {
13334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13335 }
13336 {
13337 if (temp2)
13338 delete arg2;
13339 }
13340 return resultobj;
13341 fail:
13342 {
13343 if (temp2)
13344 delete arg2;
13345 }
13346 return NULL;
13347 }
13348
13349
13350 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13351 PyObject *resultobj = 0;
13352 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13353 wxString result;
13354 void *argp1 = 0 ;
13355 int res1 = 0 ;
13356 PyObject *swig_obj[1] ;
13357
13358 if (!args) SWIG_fail;
13359 swig_obj[0] = args;
13360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13361 if (!SWIG_IsOK(res1)) {
13362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13363 }
13364 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13365 {
13366 PyThreadState* __tstate = wxPyBeginAllowThreads();
13367 result = ((wxNativeFontInfo const *)arg1)->ToString();
13368 wxPyEndAllowThreads(__tstate);
13369 if (PyErr_Occurred()) SWIG_fail;
13370 }
13371 {
13372 #if wxUSE_UNICODE
13373 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13374 #else
13375 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13376 #endif
13377 }
13378 return resultobj;
13379 fail:
13380 return NULL;
13381 }
13382
13383
13384 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13385 PyObject *resultobj = 0;
13386 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13387 wxString result;
13388 void *argp1 = 0 ;
13389 int res1 = 0 ;
13390 PyObject *swig_obj[1] ;
13391
13392 if (!args) SWIG_fail;
13393 swig_obj[0] = args;
13394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13395 if (!SWIG_IsOK(res1)) {
13396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13397 }
13398 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13399 {
13400 PyThreadState* __tstate = wxPyBeginAllowThreads();
13401 result = wxNativeFontInfo___str__(arg1);
13402 wxPyEndAllowThreads(__tstate);
13403 if (PyErr_Occurred()) SWIG_fail;
13404 }
13405 {
13406 #if wxUSE_UNICODE
13407 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13408 #else
13409 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13410 #endif
13411 }
13412 return resultobj;
13413 fail:
13414 return NULL;
13415 }
13416
13417
13418 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13419 PyObject *resultobj = 0;
13420 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13421 wxString *arg2 = 0 ;
13422 bool result;
13423 void *argp1 = 0 ;
13424 int res1 = 0 ;
13425 bool temp2 = false ;
13426 PyObject * obj0 = 0 ;
13427 PyObject * obj1 = 0 ;
13428 char * kwnames[] = {
13429 (char *) "self",(char *) "s", NULL
13430 };
13431
13432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
13433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13434 if (!SWIG_IsOK(res1)) {
13435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13436 }
13437 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13438 {
13439 arg2 = wxString_in_helper(obj1);
13440 if (arg2 == NULL) SWIG_fail;
13441 temp2 = true;
13442 }
13443 {
13444 PyThreadState* __tstate = wxPyBeginAllowThreads();
13445 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
13446 wxPyEndAllowThreads(__tstate);
13447 if (PyErr_Occurred()) SWIG_fail;
13448 }
13449 {
13450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13451 }
13452 {
13453 if (temp2)
13454 delete arg2;
13455 }
13456 return resultobj;
13457 fail:
13458 {
13459 if (temp2)
13460 delete arg2;
13461 }
13462 return NULL;
13463 }
13464
13465
13466 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13467 PyObject *resultobj = 0;
13468 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13469 wxString result;
13470 void *argp1 = 0 ;
13471 int res1 = 0 ;
13472 PyObject *swig_obj[1] ;
13473
13474 if (!args) SWIG_fail;
13475 swig_obj[0] = args;
13476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13477 if (!SWIG_IsOK(res1)) {
13478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13479 }
13480 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13481 {
13482 PyThreadState* __tstate = wxPyBeginAllowThreads();
13483 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
13484 wxPyEndAllowThreads(__tstate);
13485 if (PyErr_Occurred()) SWIG_fail;
13486 }
13487 {
13488 #if wxUSE_UNICODE
13489 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13490 #else
13491 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13492 #endif
13493 }
13494 return resultobj;
13495 fail:
13496 return NULL;
13497 }
13498
13499
13500 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13501 PyObject *obj;
13502 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13503 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
13504 return SWIG_Py_Void();
13505 }
13506
13507 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13508 return SWIG_Python_InitShadowInstance(args);
13509 }
13510
13511 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13512 PyObject *resultobj = 0;
13513 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13514 wxString *arg2 = (wxString *) 0 ;
13515 void *argp1 = 0 ;
13516 int res1 = 0 ;
13517 bool temp2 = false ;
13518 PyObject *swig_obj[2] ;
13519
13520 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
13521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13522 if (!SWIG_IsOK(res1)) {
13523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13524 }
13525 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13526 {
13527 arg2 = wxString_in_helper(swig_obj[1]);
13528 if (arg2 == NULL) SWIG_fail;
13529 temp2 = true;
13530 }
13531 if (arg1) (arg1)->facename = *arg2;
13532
13533 resultobj = SWIG_Py_Void();
13534 {
13535 if (temp2)
13536 delete arg2;
13537 }
13538 return resultobj;
13539 fail:
13540 {
13541 if (temp2)
13542 delete arg2;
13543 }
13544 return NULL;
13545 }
13546
13547
13548 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13549 PyObject *resultobj = 0;
13550 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13551 wxString *result = 0 ;
13552 void *argp1 = 0 ;
13553 int res1 = 0 ;
13554 PyObject *swig_obj[1] ;
13555
13556 if (!args) SWIG_fail;
13557 swig_obj[0] = args;
13558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13559 if (!SWIG_IsOK(res1)) {
13560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13561 }
13562 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13563 result = (wxString *)& ((arg1)->facename);
13564 {
13565 #if wxUSE_UNICODE
13566 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13567 #else
13568 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13569 #endif
13570 }
13571 return resultobj;
13572 fail:
13573 return NULL;
13574 }
13575
13576
13577 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13578 PyObject *resultobj = 0;
13579 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13580 wxFontEncoding arg2 ;
13581 void *argp1 = 0 ;
13582 int res1 = 0 ;
13583 int val2 ;
13584 int ecode2 = 0 ;
13585 PyObject *swig_obj[2] ;
13586
13587 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13589 if (!SWIG_IsOK(res1)) {
13590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13591 }
13592 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13593 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13594 if (!SWIG_IsOK(ecode2)) {
13595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13596 }
13597 arg2 = static_cast< wxFontEncoding >(val2);
13598 if (arg1) (arg1)->encoding = arg2;
13599
13600 resultobj = SWIG_Py_Void();
13601 return resultobj;
13602 fail:
13603 return NULL;
13604 }
13605
13606
13607 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13608 PyObject *resultobj = 0;
13609 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13610 wxFontEncoding result;
13611 void *argp1 = 0 ;
13612 int res1 = 0 ;
13613 PyObject *swig_obj[1] ;
13614
13615 if (!args) SWIG_fail;
13616 swig_obj[0] = args;
13617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13618 if (!SWIG_IsOK(res1)) {
13619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13620 }
13621 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13622 result = (wxFontEncoding) ((arg1)->encoding);
13623 resultobj = SWIG_From_int(static_cast< int >(result));
13624 return resultobj;
13625 fail:
13626 return NULL;
13627 }
13628
13629
13630 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13631 PyObject *resultobj = 0;
13632 wxNativeEncodingInfo *result = 0 ;
13633
13634 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13635 {
13636 PyThreadState* __tstate = wxPyBeginAllowThreads();
13637 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13638 wxPyEndAllowThreads(__tstate);
13639 if (PyErr_Occurred()) SWIG_fail;
13640 }
13641 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13642 return resultobj;
13643 fail:
13644 return NULL;
13645 }
13646
13647
13648 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13649 PyObject *resultobj = 0;
13650 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13651 void *argp1 = 0 ;
13652 int res1 = 0 ;
13653 PyObject *swig_obj[1] ;
13654
13655 if (!args) SWIG_fail;
13656 swig_obj[0] = args;
13657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13658 if (!SWIG_IsOK(res1)) {
13659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13660 }
13661 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13662 {
13663 PyThreadState* __tstate = wxPyBeginAllowThreads();
13664 delete arg1;
13665
13666 wxPyEndAllowThreads(__tstate);
13667 if (PyErr_Occurred()) SWIG_fail;
13668 }
13669 resultobj = SWIG_Py_Void();
13670 return resultobj;
13671 fail:
13672 return NULL;
13673 }
13674
13675
13676 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13677 PyObject *resultobj = 0;
13678 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13679 wxString *arg2 = 0 ;
13680 bool result;
13681 void *argp1 = 0 ;
13682 int res1 = 0 ;
13683 bool temp2 = false ;
13684 PyObject * obj0 = 0 ;
13685 PyObject * obj1 = 0 ;
13686 char * kwnames[] = {
13687 (char *) "self",(char *) "s", NULL
13688 };
13689
13690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13692 if (!SWIG_IsOK(res1)) {
13693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13694 }
13695 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13696 {
13697 arg2 = wxString_in_helper(obj1);
13698 if (arg2 == NULL) SWIG_fail;
13699 temp2 = true;
13700 }
13701 {
13702 PyThreadState* __tstate = wxPyBeginAllowThreads();
13703 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13704 wxPyEndAllowThreads(__tstate);
13705 if (PyErr_Occurred()) SWIG_fail;
13706 }
13707 {
13708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13709 }
13710 {
13711 if (temp2)
13712 delete arg2;
13713 }
13714 return resultobj;
13715 fail:
13716 {
13717 if (temp2)
13718 delete arg2;
13719 }
13720 return NULL;
13721 }
13722
13723
13724 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13725 PyObject *resultobj = 0;
13726 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13727 wxString result;
13728 void *argp1 = 0 ;
13729 int res1 = 0 ;
13730 PyObject *swig_obj[1] ;
13731
13732 if (!args) SWIG_fail;
13733 swig_obj[0] = args;
13734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13735 if (!SWIG_IsOK(res1)) {
13736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13737 }
13738 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13739 {
13740 PyThreadState* __tstate = wxPyBeginAllowThreads();
13741 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13742 wxPyEndAllowThreads(__tstate);
13743 if (PyErr_Occurred()) SWIG_fail;
13744 }
13745 {
13746 #if wxUSE_UNICODE
13747 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13748 #else
13749 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13750 #endif
13751 }
13752 return resultobj;
13753 fail:
13754 return NULL;
13755 }
13756
13757
13758 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13759 PyObject *obj;
13760 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13761 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13762 return SWIG_Py_Void();
13763 }
13764
13765 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13766 return SWIG_Python_InitShadowInstance(args);
13767 }
13768
13769 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13770 PyObject *resultobj = 0;
13771 wxFontEncoding arg1 ;
13772 wxNativeEncodingInfo *result = 0 ;
13773 int val1 ;
13774 int ecode1 = 0 ;
13775 PyObject * obj0 = 0 ;
13776 char * kwnames[] = {
13777 (char *) "encoding", NULL
13778 };
13779
13780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13781 ecode1 = SWIG_AsVal_int(obj0, &val1);
13782 if (!SWIG_IsOK(ecode1)) {
13783 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13784 }
13785 arg1 = static_cast< wxFontEncoding >(val1);
13786 {
13787 PyThreadState* __tstate = wxPyBeginAllowThreads();
13788 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13789 wxPyEndAllowThreads(__tstate);
13790 if (PyErr_Occurred()) SWIG_fail;
13791 }
13792 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13793 return resultobj;
13794 fail:
13795 return NULL;
13796 }
13797
13798
13799 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13800 PyObject *resultobj = 0;
13801 wxNativeEncodingInfo *arg1 = 0 ;
13802 bool result;
13803 void *argp1 = 0 ;
13804 int res1 = 0 ;
13805 PyObject * obj0 = 0 ;
13806 char * kwnames[] = {
13807 (char *) "info", NULL
13808 };
13809
13810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13811 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13812 if (!SWIG_IsOK(res1)) {
13813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13814 }
13815 if (!argp1) {
13816 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13817 }
13818 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13819 {
13820 PyThreadState* __tstate = wxPyBeginAllowThreads();
13821 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13822 wxPyEndAllowThreads(__tstate);
13823 if (PyErr_Occurred()) SWIG_fail;
13824 }
13825 {
13826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13827 }
13828 return resultobj;
13829 fail:
13830 return NULL;
13831 }
13832
13833
13834 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13835 PyObject *resultobj = 0;
13836 wxFontMapper *result = 0 ;
13837
13838 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13839 {
13840 PyThreadState* __tstate = wxPyBeginAllowThreads();
13841 result = (wxFontMapper *)new wxFontMapper();
13842 wxPyEndAllowThreads(__tstate);
13843 if (PyErr_Occurred()) SWIG_fail;
13844 }
13845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13846 return resultobj;
13847 fail:
13848 return NULL;
13849 }
13850
13851
13852 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13853 PyObject *resultobj = 0;
13854 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13855 void *argp1 = 0 ;
13856 int res1 = 0 ;
13857 PyObject *swig_obj[1] ;
13858
13859 if (!args) SWIG_fail;
13860 swig_obj[0] = args;
13861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13862 if (!SWIG_IsOK(res1)) {
13863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13864 }
13865 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13866 {
13867 PyThreadState* __tstate = wxPyBeginAllowThreads();
13868 delete arg1;
13869
13870 wxPyEndAllowThreads(__tstate);
13871 if (PyErr_Occurred()) SWIG_fail;
13872 }
13873 resultobj = SWIG_Py_Void();
13874 return resultobj;
13875 fail:
13876 return NULL;
13877 }
13878
13879
13880 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13881 PyObject *resultobj = 0;
13882 wxFontMapper *result = 0 ;
13883
13884 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13885 {
13886 PyThreadState* __tstate = wxPyBeginAllowThreads();
13887 result = (wxFontMapper *)wxFontMapper::Get();
13888 wxPyEndAllowThreads(__tstate);
13889 if (PyErr_Occurred()) SWIG_fail;
13890 }
13891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13892 return resultobj;
13893 fail:
13894 return NULL;
13895 }
13896
13897
13898 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13899 PyObject *resultobj = 0;
13900 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13901 wxFontMapper *result = 0 ;
13902 void *argp1 = 0 ;
13903 int res1 = 0 ;
13904 PyObject * obj0 = 0 ;
13905 char * kwnames[] = {
13906 (char *) "mapper", NULL
13907 };
13908
13909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13911 if (!SWIG_IsOK(res1)) {
13912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13913 }
13914 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13915 {
13916 PyThreadState* __tstate = wxPyBeginAllowThreads();
13917 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13918 wxPyEndAllowThreads(__tstate);
13919 if (PyErr_Occurred()) SWIG_fail;
13920 }
13921 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13922 return resultobj;
13923 fail:
13924 return NULL;
13925 }
13926
13927
13928 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13929 PyObject *resultobj = 0;
13930 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13931 wxString *arg2 = 0 ;
13932 bool arg3 = (bool) true ;
13933 wxFontEncoding result;
13934 void *argp1 = 0 ;
13935 int res1 = 0 ;
13936 bool temp2 = false ;
13937 bool val3 ;
13938 int ecode3 = 0 ;
13939 PyObject * obj0 = 0 ;
13940 PyObject * obj1 = 0 ;
13941 PyObject * obj2 = 0 ;
13942 char * kwnames[] = {
13943 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13944 };
13945
13946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13948 if (!SWIG_IsOK(res1)) {
13949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13950 }
13951 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13952 {
13953 arg2 = wxString_in_helper(obj1);
13954 if (arg2 == NULL) SWIG_fail;
13955 temp2 = true;
13956 }
13957 if (obj2) {
13958 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13959 if (!SWIG_IsOK(ecode3)) {
13960 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13961 }
13962 arg3 = static_cast< bool >(val3);
13963 }
13964 {
13965 PyThreadState* __tstate = wxPyBeginAllowThreads();
13966 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13967 wxPyEndAllowThreads(__tstate);
13968 if (PyErr_Occurred()) SWIG_fail;
13969 }
13970 resultobj = SWIG_From_int(static_cast< int >(result));
13971 {
13972 if (temp2)
13973 delete arg2;
13974 }
13975 return resultobj;
13976 fail:
13977 {
13978 if (temp2)
13979 delete arg2;
13980 }
13981 return NULL;
13982 }
13983
13984
13985 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13986 PyObject *resultobj = 0;
13987 size_t result;
13988
13989 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13990 {
13991 PyThreadState* __tstate = wxPyBeginAllowThreads();
13992 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13993 wxPyEndAllowThreads(__tstate);
13994 if (PyErr_Occurred()) SWIG_fail;
13995 }
13996 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13997 return resultobj;
13998 fail:
13999 return NULL;
14000 }
14001
14002
14003 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14004 PyObject *resultobj = 0;
14005 size_t arg1 ;
14006 wxFontEncoding result;
14007 size_t val1 ;
14008 int ecode1 = 0 ;
14009 PyObject * obj0 = 0 ;
14010 char * kwnames[] = {
14011 (char *) "n", NULL
14012 };
14013
14014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
14015 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
14016 if (!SWIG_IsOK(ecode1)) {
14017 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
14018 }
14019 arg1 = static_cast< size_t >(val1);
14020 {
14021 PyThreadState* __tstate = wxPyBeginAllowThreads();
14022 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
14023 wxPyEndAllowThreads(__tstate);
14024 if (PyErr_Occurred()) SWIG_fail;
14025 }
14026 resultobj = SWIG_From_int(static_cast< int >(result));
14027 return resultobj;
14028 fail:
14029 return NULL;
14030 }
14031
14032
14033 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14034 PyObject *resultobj = 0;
14035 wxFontEncoding arg1 ;
14036 wxString result;
14037 int val1 ;
14038 int ecode1 = 0 ;
14039 PyObject * obj0 = 0 ;
14040 char * kwnames[] = {
14041 (char *) "encoding", NULL
14042 };
14043
14044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
14045 ecode1 = SWIG_AsVal_int(obj0, &val1);
14046 if (!SWIG_IsOK(ecode1)) {
14047 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14048 }
14049 arg1 = static_cast< wxFontEncoding >(val1);
14050 {
14051 PyThreadState* __tstate = wxPyBeginAllowThreads();
14052 result = wxFontMapper::GetEncodingName(arg1);
14053 wxPyEndAllowThreads(__tstate);
14054 if (PyErr_Occurred()) SWIG_fail;
14055 }
14056 {
14057 #if wxUSE_UNICODE
14058 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14059 #else
14060 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14061 #endif
14062 }
14063 return resultobj;
14064 fail:
14065 return NULL;
14066 }
14067
14068
14069 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14070 PyObject *resultobj = 0;
14071 wxFontEncoding arg1 ;
14072 wxString result;
14073 int val1 ;
14074 int ecode1 = 0 ;
14075 PyObject * obj0 = 0 ;
14076 char * kwnames[] = {
14077 (char *) "encoding", NULL
14078 };
14079
14080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
14081 ecode1 = SWIG_AsVal_int(obj0, &val1);
14082 if (!SWIG_IsOK(ecode1)) {
14083 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14084 }
14085 arg1 = static_cast< wxFontEncoding >(val1);
14086 {
14087 PyThreadState* __tstate = wxPyBeginAllowThreads();
14088 result = wxFontMapper::GetEncodingDescription(arg1);
14089 wxPyEndAllowThreads(__tstate);
14090 if (PyErr_Occurred()) SWIG_fail;
14091 }
14092 {
14093 #if wxUSE_UNICODE
14094 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14095 #else
14096 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14097 #endif
14098 }
14099 return resultobj;
14100 fail:
14101 return NULL;
14102 }
14103
14104
14105 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14106 PyObject *resultobj = 0;
14107 wxString *arg1 = 0 ;
14108 wxFontEncoding result;
14109 bool temp1 = false ;
14110 PyObject * obj0 = 0 ;
14111 char * kwnames[] = {
14112 (char *) "name", NULL
14113 };
14114
14115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
14116 {
14117 arg1 = wxString_in_helper(obj0);
14118 if (arg1 == NULL) SWIG_fail;
14119 temp1 = true;
14120 }
14121 {
14122 PyThreadState* __tstate = wxPyBeginAllowThreads();
14123 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
14124 wxPyEndAllowThreads(__tstate);
14125 if (PyErr_Occurred()) SWIG_fail;
14126 }
14127 resultobj = SWIG_From_int(static_cast< int >(result));
14128 {
14129 if (temp1)
14130 delete arg1;
14131 }
14132 return resultobj;
14133 fail:
14134 {
14135 if (temp1)
14136 delete arg1;
14137 }
14138 return NULL;
14139 }
14140
14141
14142 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14143 PyObject *resultobj = 0;
14144 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14145 wxString *arg2 = 0 ;
14146 void *argp1 = 0 ;
14147 int res1 = 0 ;
14148 bool temp2 = false ;
14149 PyObject * obj0 = 0 ;
14150 PyObject * obj1 = 0 ;
14151 char * kwnames[] = {
14152 (char *) "self",(char *) "prefix", NULL
14153 };
14154
14155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
14156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14157 if (!SWIG_IsOK(res1)) {
14158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14159 }
14160 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14161 {
14162 arg2 = wxString_in_helper(obj1);
14163 if (arg2 == NULL) SWIG_fail;
14164 temp2 = true;
14165 }
14166 {
14167 PyThreadState* __tstate = wxPyBeginAllowThreads();
14168 (arg1)->SetConfigPath((wxString const &)*arg2);
14169 wxPyEndAllowThreads(__tstate);
14170 if (PyErr_Occurred()) SWIG_fail;
14171 }
14172 resultobj = SWIG_Py_Void();
14173 {
14174 if (temp2)
14175 delete arg2;
14176 }
14177 return resultobj;
14178 fail:
14179 {
14180 if (temp2)
14181 delete arg2;
14182 }
14183 return NULL;
14184 }
14185
14186
14187 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14188 PyObject *resultobj = 0;
14189 wxString result;
14190
14191 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
14192 {
14193 PyThreadState* __tstate = wxPyBeginAllowThreads();
14194 result = wxFontMapper::GetDefaultConfigPath();
14195 wxPyEndAllowThreads(__tstate);
14196 if (PyErr_Occurred()) SWIG_fail;
14197 }
14198 {
14199 #if wxUSE_UNICODE
14200 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14201 #else
14202 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14203 #endif
14204 }
14205 return resultobj;
14206 fail:
14207 return NULL;
14208 }
14209
14210
14211 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14212 PyObject *resultobj = 0;
14213 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14214 wxFontEncoding arg2 ;
14215 wxString const &arg3_defvalue = wxPyEmptyString ;
14216 wxString *arg3 = (wxString *) &arg3_defvalue ;
14217 bool arg4 = (bool) true ;
14218 PyObject *result = 0 ;
14219 void *argp1 = 0 ;
14220 int res1 = 0 ;
14221 int val2 ;
14222 int ecode2 = 0 ;
14223 bool temp3 = false ;
14224 bool val4 ;
14225 int ecode4 = 0 ;
14226 PyObject * obj0 = 0 ;
14227 PyObject * obj1 = 0 ;
14228 PyObject * obj2 = 0 ;
14229 PyObject * obj3 = 0 ;
14230 char * kwnames[] = {
14231 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
14232 };
14233
14234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14236 if (!SWIG_IsOK(res1)) {
14237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14238 }
14239 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14240 ecode2 = SWIG_AsVal_int(obj1, &val2);
14241 if (!SWIG_IsOK(ecode2)) {
14242 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14243 }
14244 arg2 = static_cast< wxFontEncoding >(val2);
14245 if (obj2) {
14246 {
14247 arg3 = wxString_in_helper(obj2);
14248 if (arg3 == NULL) SWIG_fail;
14249 temp3 = true;
14250 }
14251 }
14252 if (obj3) {
14253 ecode4 = SWIG_AsVal_bool(obj3, &val4);
14254 if (!SWIG_IsOK(ecode4)) {
14255 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
14256 }
14257 arg4 = static_cast< bool >(val4);
14258 }
14259 {
14260 PyThreadState* __tstate = wxPyBeginAllowThreads();
14261 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
14262 wxPyEndAllowThreads(__tstate);
14263 if (PyErr_Occurred()) SWIG_fail;
14264 }
14265 resultobj = result;
14266 {
14267 if (temp3)
14268 delete arg3;
14269 }
14270 return resultobj;
14271 fail:
14272 {
14273 if (temp3)
14274 delete arg3;
14275 }
14276 return NULL;
14277 }
14278
14279
14280 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14281 PyObject *resultobj = 0;
14282 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14283 wxFontEncoding arg2 ;
14284 wxString const &arg3_defvalue = wxPyEmptyString ;
14285 wxString *arg3 = (wxString *) &arg3_defvalue ;
14286 bool result;
14287 void *argp1 = 0 ;
14288 int res1 = 0 ;
14289 int val2 ;
14290 int ecode2 = 0 ;
14291 bool temp3 = false ;
14292 PyObject * obj0 = 0 ;
14293 PyObject * obj1 = 0 ;
14294 PyObject * obj2 = 0 ;
14295 char * kwnames[] = {
14296 (char *) "self",(char *) "encoding",(char *) "facename", NULL
14297 };
14298
14299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14301 if (!SWIG_IsOK(res1)) {
14302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14303 }
14304 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14305 ecode2 = SWIG_AsVal_int(obj1, &val2);
14306 if (!SWIG_IsOK(ecode2)) {
14307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14308 }
14309 arg2 = static_cast< wxFontEncoding >(val2);
14310 if (obj2) {
14311 {
14312 arg3 = wxString_in_helper(obj2);
14313 if (arg3 == NULL) SWIG_fail;
14314 temp3 = true;
14315 }
14316 }
14317 {
14318 PyThreadState* __tstate = wxPyBeginAllowThreads();
14319 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
14320 wxPyEndAllowThreads(__tstate);
14321 if (PyErr_Occurred()) SWIG_fail;
14322 }
14323 {
14324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14325 }
14326 {
14327 if (temp3)
14328 delete arg3;
14329 }
14330 return resultobj;
14331 fail:
14332 {
14333 if (temp3)
14334 delete arg3;
14335 }
14336 return NULL;
14337 }
14338
14339
14340 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14341 PyObject *resultobj = 0;
14342 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14343 wxWindow *arg2 = (wxWindow *) 0 ;
14344 void *argp1 = 0 ;
14345 int res1 = 0 ;
14346 void *argp2 = 0 ;
14347 int res2 = 0 ;
14348 PyObject * obj0 = 0 ;
14349 PyObject * obj1 = 0 ;
14350 char * kwnames[] = {
14351 (char *) "self",(char *) "parent", NULL
14352 };
14353
14354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
14355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14356 if (!SWIG_IsOK(res1)) {
14357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14358 }
14359 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14360 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14361 if (!SWIG_IsOK(res2)) {
14362 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
14363 }
14364 arg2 = reinterpret_cast< wxWindow * >(argp2);
14365 {
14366 PyThreadState* __tstate = wxPyBeginAllowThreads();
14367 (arg1)->SetDialogParent(arg2);
14368 wxPyEndAllowThreads(__tstate);
14369 if (PyErr_Occurred()) SWIG_fail;
14370 }
14371 resultobj = SWIG_Py_Void();
14372 return resultobj;
14373 fail:
14374 return NULL;
14375 }
14376
14377
14378 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14379 PyObject *resultobj = 0;
14380 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14381 wxString *arg2 = 0 ;
14382 void *argp1 = 0 ;
14383 int res1 = 0 ;
14384 bool temp2 = false ;
14385 PyObject * obj0 = 0 ;
14386 PyObject * obj1 = 0 ;
14387 char * kwnames[] = {
14388 (char *) "self",(char *) "title", NULL
14389 };
14390
14391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
14392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14393 if (!SWIG_IsOK(res1)) {
14394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14395 }
14396 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14397 {
14398 arg2 = wxString_in_helper(obj1);
14399 if (arg2 == NULL) SWIG_fail;
14400 temp2 = true;
14401 }
14402 {
14403 PyThreadState* __tstate = wxPyBeginAllowThreads();
14404 (arg1)->SetDialogTitle((wxString const &)*arg2);
14405 wxPyEndAllowThreads(__tstate);
14406 if (PyErr_Occurred()) SWIG_fail;
14407 }
14408 resultobj = SWIG_Py_Void();
14409 {
14410 if (temp2)
14411 delete arg2;
14412 }
14413 return resultobj;
14414 fail:
14415 {
14416 if (temp2)
14417 delete arg2;
14418 }
14419 return NULL;
14420 }
14421
14422
14423 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14424 PyObject *obj;
14425 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14426 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
14427 return SWIG_Py_Void();
14428 }
14429
14430 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14431 return SWIG_Python_InitShadowInstance(args);
14432 }
14433
14434 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14435 PyObject *resultobj = 0;
14436 int arg1 ;
14437 int arg2 ;
14438 int arg3 ;
14439 int arg4 ;
14440 bool arg5 = (bool) false ;
14441 wxString const &arg6_defvalue = wxPyEmptyString ;
14442 wxString *arg6 = (wxString *) &arg6_defvalue ;
14443 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14444 wxFont *result = 0 ;
14445 int val1 ;
14446 int ecode1 = 0 ;
14447 int val2 ;
14448 int ecode2 = 0 ;
14449 int val3 ;
14450 int ecode3 = 0 ;
14451 int val4 ;
14452 int ecode4 = 0 ;
14453 bool val5 ;
14454 int ecode5 = 0 ;
14455 bool temp6 = false ;
14456 int val7 ;
14457 int ecode7 = 0 ;
14458 PyObject * obj0 = 0 ;
14459 PyObject * obj1 = 0 ;
14460 PyObject * obj2 = 0 ;
14461 PyObject * obj3 = 0 ;
14462 PyObject * obj4 = 0 ;
14463 PyObject * obj5 = 0 ;
14464 PyObject * obj6 = 0 ;
14465 char * kwnames[] = {
14466 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
14467 };
14468
14469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14470 ecode1 = SWIG_AsVal_int(obj0, &val1);
14471 if (!SWIG_IsOK(ecode1)) {
14472 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
14473 }
14474 arg1 = static_cast< int >(val1);
14475 ecode2 = SWIG_AsVal_int(obj1, &val2);
14476 if (!SWIG_IsOK(ecode2)) {
14477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
14478 }
14479 arg2 = static_cast< int >(val2);
14480 ecode3 = SWIG_AsVal_int(obj2, &val3);
14481 if (!SWIG_IsOK(ecode3)) {
14482 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
14483 }
14484 arg3 = static_cast< int >(val3);
14485 ecode4 = SWIG_AsVal_int(obj3, &val4);
14486 if (!SWIG_IsOK(ecode4)) {
14487 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
14488 }
14489 arg4 = static_cast< int >(val4);
14490 if (obj4) {
14491 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14492 if (!SWIG_IsOK(ecode5)) {
14493 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
14494 }
14495 arg5 = static_cast< bool >(val5);
14496 }
14497 if (obj5) {
14498 {
14499 arg6 = wxString_in_helper(obj5);
14500 if (arg6 == NULL) SWIG_fail;
14501 temp6 = true;
14502 }
14503 }
14504 if (obj6) {
14505 ecode7 = SWIG_AsVal_int(obj6, &val7);
14506 if (!SWIG_IsOK(ecode7)) {
14507 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14508 }
14509 arg7 = static_cast< wxFontEncoding >(val7);
14510 }
14511 {
14512 if (!wxPyCheckForApp()) SWIG_fail;
14513 PyThreadState* __tstate = wxPyBeginAllowThreads();
14514 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14515 wxPyEndAllowThreads(__tstate);
14516 if (PyErr_Occurred()) SWIG_fail;
14517 }
14518 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
14519 {
14520 if (temp6)
14521 delete arg6;
14522 }
14523 return resultobj;
14524 fail:
14525 {
14526 if (temp6)
14527 delete arg6;
14528 }
14529 return NULL;
14530 }
14531
14532
14533 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14534 PyObject *resultobj = 0;
14535 wxFont *arg1 = (wxFont *) 0 ;
14536 void *argp1 = 0 ;
14537 int res1 = 0 ;
14538 PyObject *swig_obj[1] ;
14539
14540 if (!args) SWIG_fail;
14541 swig_obj[0] = args;
14542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
14543 if (!SWIG_IsOK(res1)) {
14544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14545 }
14546 arg1 = reinterpret_cast< wxFont * >(argp1);
14547 {
14548 PyThreadState* __tstate = wxPyBeginAllowThreads();
14549 delete arg1;
14550
14551 wxPyEndAllowThreads(__tstate);
14552 if (PyErr_Occurred()) SWIG_fail;
14553 }
14554 resultobj = SWIG_Py_Void();
14555 return resultobj;
14556 fail:
14557 return NULL;
14558 }
14559
14560
14561 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14562 PyObject *resultobj = 0;
14563 wxNativeFontInfo *arg1 = 0 ;
14564 wxFont *result = 0 ;
14565 void *argp1 = 0 ;
14566 int res1 = 0 ;
14567 PyObject * obj0 = 0 ;
14568 char * kwnames[] = {
14569 (char *) "info", NULL
14570 };
14571
14572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14573 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14574 if (!SWIG_IsOK(res1)) {
14575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14576 }
14577 if (!argp1) {
14578 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14579 }
14580 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14581 {
14582 if (!wxPyCheckForApp()) SWIG_fail;
14583 PyThreadState* __tstate = wxPyBeginAllowThreads();
14584 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14585 wxPyEndAllowThreads(__tstate);
14586 if (PyErr_Occurred()) SWIG_fail;
14587 }
14588 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14589 return resultobj;
14590 fail:
14591 return NULL;
14592 }
14593
14594
14595 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14596 PyObject *resultobj = 0;
14597 wxString *arg1 = 0 ;
14598 wxFont *result = 0 ;
14599 bool temp1 = false ;
14600 PyObject * obj0 = 0 ;
14601 char * kwnames[] = {
14602 (char *) "info", NULL
14603 };
14604
14605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14606 {
14607 arg1 = wxString_in_helper(obj0);
14608 if (arg1 == NULL) SWIG_fail;
14609 temp1 = true;
14610 }
14611 {
14612 if (!wxPyCheckForApp()) SWIG_fail;
14613 PyThreadState* __tstate = wxPyBeginAllowThreads();
14614 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14615 wxPyEndAllowThreads(__tstate);
14616 if (PyErr_Occurred()) SWIG_fail;
14617 }
14618 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14619 {
14620 if (temp1)
14621 delete arg1;
14622 }
14623 return resultobj;
14624 fail:
14625 {
14626 if (temp1)
14627 delete arg1;
14628 }
14629 return NULL;
14630 }
14631
14632
14633 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14634 PyObject *resultobj = 0;
14635 int arg1 ;
14636 wxFontFamily arg2 ;
14637 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14638 wxString const &arg4_defvalue = wxPyEmptyString ;
14639 wxString *arg4 = (wxString *) &arg4_defvalue ;
14640 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14641 wxFont *result = 0 ;
14642 int val1 ;
14643 int ecode1 = 0 ;
14644 int val2 ;
14645 int ecode2 = 0 ;
14646 int val3 ;
14647 int ecode3 = 0 ;
14648 bool temp4 = false ;
14649 int val5 ;
14650 int ecode5 = 0 ;
14651 PyObject * obj0 = 0 ;
14652 PyObject * obj1 = 0 ;
14653 PyObject * obj2 = 0 ;
14654 PyObject * obj3 = 0 ;
14655 PyObject * obj4 = 0 ;
14656 char * kwnames[] = {
14657 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14658 };
14659
14660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14661 ecode1 = SWIG_AsVal_int(obj0, &val1);
14662 if (!SWIG_IsOK(ecode1)) {
14663 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14664 }
14665 arg1 = static_cast< int >(val1);
14666 ecode2 = SWIG_AsVal_int(obj1, &val2);
14667 if (!SWIG_IsOK(ecode2)) {
14668 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14669 }
14670 arg2 = static_cast< wxFontFamily >(val2);
14671 if (obj2) {
14672 ecode3 = SWIG_AsVal_int(obj2, &val3);
14673 if (!SWIG_IsOK(ecode3)) {
14674 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14675 }
14676 arg3 = static_cast< int >(val3);
14677 }
14678 if (obj3) {
14679 {
14680 arg4 = wxString_in_helper(obj3);
14681 if (arg4 == NULL) SWIG_fail;
14682 temp4 = true;
14683 }
14684 }
14685 if (obj4) {
14686 ecode5 = SWIG_AsVal_int(obj4, &val5);
14687 if (!SWIG_IsOK(ecode5)) {
14688 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14689 }
14690 arg5 = static_cast< wxFontEncoding >(val5);
14691 }
14692 {
14693 if (!wxPyCheckForApp()) SWIG_fail;
14694 PyThreadState* __tstate = wxPyBeginAllowThreads();
14695 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14696 wxPyEndAllowThreads(__tstate);
14697 if (PyErr_Occurred()) SWIG_fail;
14698 }
14699 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14700 {
14701 if (temp4)
14702 delete arg4;
14703 }
14704 return resultobj;
14705 fail:
14706 {
14707 if (temp4)
14708 delete arg4;
14709 }
14710 return NULL;
14711 }
14712
14713
14714 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14715 PyObject *resultobj = 0;
14716 wxSize *arg1 = 0 ;
14717 int arg2 ;
14718 int arg3 ;
14719 int arg4 ;
14720 bool arg5 = (bool) false ;
14721 wxString const &arg6_defvalue = wxEmptyString ;
14722 wxString *arg6 = (wxString *) &arg6_defvalue ;
14723 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14724 wxFont *result = 0 ;
14725 wxSize temp1 ;
14726 int val2 ;
14727 int ecode2 = 0 ;
14728 int val3 ;
14729 int ecode3 = 0 ;
14730 int val4 ;
14731 int ecode4 = 0 ;
14732 bool val5 ;
14733 int ecode5 = 0 ;
14734 bool temp6 = false ;
14735 int val7 ;
14736 int ecode7 = 0 ;
14737 PyObject * obj0 = 0 ;
14738 PyObject * obj1 = 0 ;
14739 PyObject * obj2 = 0 ;
14740 PyObject * obj3 = 0 ;
14741 PyObject * obj4 = 0 ;
14742 PyObject * obj5 = 0 ;
14743 PyObject * obj6 = 0 ;
14744 char * kwnames[] = {
14745 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14746 };
14747
14748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14749 {
14750 arg1 = &temp1;
14751 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14752 }
14753 ecode2 = SWIG_AsVal_int(obj1, &val2);
14754 if (!SWIG_IsOK(ecode2)) {
14755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14756 }
14757 arg2 = static_cast< int >(val2);
14758 ecode3 = SWIG_AsVal_int(obj2, &val3);
14759 if (!SWIG_IsOK(ecode3)) {
14760 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14761 }
14762 arg3 = static_cast< int >(val3);
14763 ecode4 = SWIG_AsVal_int(obj3, &val4);
14764 if (!SWIG_IsOK(ecode4)) {
14765 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14766 }
14767 arg4 = static_cast< int >(val4);
14768 if (obj4) {
14769 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14770 if (!SWIG_IsOK(ecode5)) {
14771 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14772 }
14773 arg5 = static_cast< bool >(val5);
14774 }
14775 if (obj5) {
14776 {
14777 arg6 = wxString_in_helper(obj5);
14778 if (arg6 == NULL) SWIG_fail;
14779 temp6 = true;
14780 }
14781 }
14782 if (obj6) {
14783 ecode7 = SWIG_AsVal_int(obj6, &val7);
14784 if (!SWIG_IsOK(ecode7)) {
14785 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14786 }
14787 arg7 = static_cast< wxFontEncoding >(val7);
14788 }
14789 {
14790 if (!wxPyCheckForApp()) SWIG_fail;
14791 PyThreadState* __tstate = wxPyBeginAllowThreads();
14792 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14793 wxPyEndAllowThreads(__tstate);
14794 if (PyErr_Occurred()) SWIG_fail;
14795 }
14796 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14797 {
14798 if (temp6)
14799 delete arg6;
14800 }
14801 return resultobj;
14802 fail:
14803 {
14804 if (temp6)
14805 delete arg6;
14806 }
14807 return NULL;
14808 }
14809
14810
14811 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14812 PyObject *resultobj = 0;
14813 wxSize *arg1 = 0 ;
14814 wxFontFamily arg2 ;
14815 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14816 wxString const &arg4_defvalue = wxEmptyString ;
14817 wxString *arg4 = (wxString *) &arg4_defvalue ;
14818 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14819 wxFont *result = 0 ;
14820 wxSize temp1 ;
14821 int val2 ;
14822 int ecode2 = 0 ;
14823 int val3 ;
14824 int ecode3 = 0 ;
14825 bool temp4 = false ;
14826 int val5 ;
14827 int ecode5 = 0 ;
14828 PyObject * obj0 = 0 ;
14829 PyObject * obj1 = 0 ;
14830 PyObject * obj2 = 0 ;
14831 PyObject * obj3 = 0 ;
14832 PyObject * obj4 = 0 ;
14833 char * kwnames[] = {
14834 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14835 };
14836
14837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14838 {
14839 arg1 = &temp1;
14840 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14841 }
14842 ecode2 = SWIG_AsVal_int(obj1, &val2);
14843 if (!SWIG_IsOK(ecode2)) {
14844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14845 }
14846 arg2 = static_cast< wxFontFamily >(val2);
14847 if (obj2) {
14848 ecode3 = SWIG_AsVal_int(obj2, &val3);
14849 if (!SWIG_IsOK(ecode3)) {
14850 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14851 }
14852 arg3 = static_cast< int >(val3);
14853 }
14854 if (obj3) {
14855 {
14856 arg4 = wxString_in_helper(obj3);
14857 if (arg4 == NULL) SWIG_fail;
14858 temp4 = true;
14859 }
14860 }
14861 if (obj4) {
14862 ecode5 = SWIG_AsVal_int(obj4, &val5);
14863 if (!SWIG_IsOK(ecode5)) {
14864 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14865 }
14866 arg5 = static_cast< wxFontEncoding >(val5);
14867 }
14868 {
14869 if (!wxPyCheckForApp()) SWIG_fail;
14870 PyThreadState* __tstate = wxPyBeginAllowThreads();
14871 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14872 wxPyEndAllowThreads(__tstate);
14873 if (PyErr_Occurred()) SWIG_fail;
14874 }
14875 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14876 {
14877 if (temp4)
14878 delete arg4;
14879 }
14880 return resultobj;
14881 fail:
14882 {
14883 if (temp4)
14884 delete arg4;
14885 }
14886 return NULL;
14887 }
14888
14889
14890 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14891 PyObject *resultobj = 0;
14892 wxFont *arg1 = (wxFont *) 0 ;
14893 bool result;
14894 void *argp1 = 0 ;
14895 int res1 = 0 ;
14896 PyObject *swig_obj[1] ;
14897
14898 if (!args) SWIG_fail;
14899 swig_obj[0] = args;
14900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14901 if (!SWIG_IsOK(res1)) {
14902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
14903 }
14904 arg1 = reinterpret_cast< wxFont * >(argp1);
14905 {
14906 PyThreadState* __tstate = wxPyBeginAllowThreads();
14907 result = (bool)((wxFont const *)arg1)->IsOk();
14908 wxPyEndAllowThreads(__tstate);
14909 if (PyErr_Occurred()) SWIG_fail;
14910 }
14911 {
14912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14913 }
14914 return resultobj;
14915 fail:
14916 return NULL;
14917 }
14918
14919
14920 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14921 PyObject *resultobj = 0;
14922 wxFont *arg1 = (wxFont *) 0 ;
14923 wxFont *arg2 = (wxFont *) 0 ;
14924 bool result;
14925 void *argp1 = 0 ;
14926 int res1 = 0 ;
14927 void *argp2 = 0 ;
14928 int res2 = 0 ;
14929 PyObject * obj0 = 0 ;
14930 PyObject * obj1 = 0 ;
14931 char * kwnames[] = {
14932 (char *) "self",(char *) "other", NULL
14933 };
14934
14935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14937 if (!SWIG_IsOK(res1)) {
14938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14939 }
14940 arg1 = reinterpret_cast< wxFont * >(argp1);
14941 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14942 if (!SWIG_IsOK(res2)) {
14943 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14944 }
14945 arg2 = reinterpret_cast< wxFont * >(argp2);
14946 {
14947 PyThreadState* __tstate = wxPyBeginAllowThreads();
14948 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14949 wxPyEndAllowThreads(__tstate);
14950 if (PyErr_Occurred()) SWIG_fail;
14951 }
14952 {
14953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14954 }
14955 return resultobj;
14956 fail:
14957 return NULL;
14958 }
14959
14960
14961 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14962 PyObject *resultobj = 0;
14963 wxFont *arg1 = (wxFont *) 0 ;
14964 wxFont *arg2 = (wxFont *) 0 ;
14965 bool result;
14966 void *argp1 = 0 ;
14967 int res1 = 0 ;
14968 void *argp2 = 0 ;
14969 int res2 = 0 ;
14970 PyObject * obj0 = 0 ;
14971 PyObject * obj1 = 0 ;
14972 char * kwnames[] = {
14973 (char *) "self",(char *) "other", NULL
14974 };
14975
14976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14978 if (!SWIG_IsOK(res1)) {
14979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14980 }
14981 arg1 = reinterpret_cast< wxFont * >(argp1);
14982 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14983 if (!SWIG_IsOK(res2)) {
14984 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14985 }
14986 arg2 = reinterpret_cast< wxFont * >(argp2);
14987 {
14988 PyThreadState* __tstate = wxPyBeginAllowThreads();
14989 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14990 wxPyEndAllowThreads(__tstate);
14991 if (PyErr_Occurred()) SWIG_fail;
14992 }
14993 {
14994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14995 }
14996 return resultobj;
14997 fail:
14998 return NULL;
14999 }
15000
15001
15002 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15003 PyObject *resultobj = 0;
15004 wxFont *arg1 = (wxFont *) 0 ;
15005 int result;
15006 void *argp1 = 0 ;
15007 int res1 = 0 ;
15008 PyObject *swig_obj[1] ;
15009
15010 if (!args) SWIG_fail;
15011 swig_obj[0] = args;
15012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15013 if (!SWIG_IsOK(res1)) {
15014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
15015 }
15016 arg1 = reinterpret_cast< wxFont * >(argp1);
15017 {
15018 PyThreadState* __tstate = wxPyBeginAllowThreads();
15019 result = (int)((wxFont const *)arg1)->GetPointSize();
15020 wxPyEndAllowThreads(__tstate);
15021 if (PyErr_Occurred()) SWIG_fail;
15022 }
15023 resultobj = SWIG_From_int(static_cast< int >(result));
15024 return resultobj;
15025 fail:
15026 return NULL;
15027 }
15028
15029
15030 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15031 PyObject *resultobj = 0;
15032 wxFont *arg1 = (wxFont *) 0 ;
15033 wxSize result;
15034 void *argp1 = 0 ;
15035 int res1 = 0 ;
15036 PyObject *swig_obj[1] ;
15037
15038 if (!args) SWIG_fail;
15039 swig_obj[0] = args;
15040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15041 if (!SWIG_IsOK(res1)) {
15042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
15043 }
15044 arg1 = reinterpret_cast< wxFont * >(argp1);
15045 {
15046 PyThreadState* __tstate = wxPyBeginAllowThreads();
15047 result = ((wxFont const *)arg1)->GetPixelSize();
15048 wxPyEndAllowThreads(__tstate);
15049 if (PyErr_Occurred()) SWIG_fail;
15050 }
15051 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
15052 return resultobj;
15053 fail:
15054 return NULL;
15055 }
15056
15057
15058 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15059 PyObject *resultobj = 0;
15060 wxFont *arg1 = (wxFont *) 0 ;
15061 bool result;
15062 void *argp1 = 0 ;
15063 int res1 = 0 ;
15064 PyObject *swig_obj[1] ;
15065
15066 if (!args) SWIG_fail;
15067 swig_obj[0] = args;
15068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15069 if (!SWIG_IsOK(res1)) {
15070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
15071 }
15072 arg1 = reinterpret_cast< wxFont * >(argp1);
15073 {
15074 PyThreadState* __tstate = wxPyBeginAllowThreads();
15075 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
15076 wxPyEndAllowThreads(__tstate);
15077 if (PyErr_Occurred()) SWIG_fail;
15078 }
15079 {
15080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15081 }
15082 return resultobj;
15083 fail:
15084 return NULL;
15085 }
15086
15087
15088 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15089 PyObject *resultobj = 0;
15090 wxFont *arg1 = (wxFont *) 0 ;
15091 int result;
15092 void *argp1 = 0 ;
15093 int res1 = 0 ;
15094 PyObject *swig_obj[1] ;
15095
15096 if (!args) SWIG_fail;
15097 swig_obj[0] = args;
15098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15099 if (!SWIG_IsOK(res1)) {
15100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
15101 }
15102 arg1 = reinterpret_cast< wxFont * >(argp1);
15103 {
15104 PyThreadState* __tstate = wxPyBeginAllowThreads();
15105 result = (int)((wxFont const *)arg1)->GetFamily();
15106 wxPyEndAllowThreads(__tstate);
15107 if (PyErr_Occurred()) SWIG_fail;
15108 }
15109 resultobj = SWIG_From_int(static_cast< int >(result));
15110 return resultobj;
15111 fail:
15112 return NULL;
15113 }
15114
15115
15116 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15117 PyObject *resultobj = 0;
15118 wxFont *arg1 = (wxFont *) 0 ;
15119 int result;
15120 void *argp1 = 0 ;
15121 int res1 = 0 ;
15122 PyObject *swig_obj[1] ;
15123
15124 if (!args) SWIG_fail;
15125 swig_obj[0] = args;
15126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15127 if (!SWIG_IsOK(res1)) {
15128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
15129 }
15130 arg1 = reinterpret_cast< wxFont * >(argp1);
15131 {
15132 PyThreadState* __tstate = wxPyBeginAllowThreads();
15133 result = (int)((wxFont const *)arg1)->GetStyle();
15134 wxPyEndAllowThreads(__tstate);
15135 if (PyErr_Occurred()) SWIG_fail;
15136 }
15137 resultobj = SWIG_From_int(static_cast< int >(result));
15138 return resultobj;
15139 fail:
15140 return NULL;
15141 }
15142
15143
15144 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15145 PyObject *resultobj = 0;
15146 wxFont *arg1 = (wxFont *) 0 ;
15147 int result;
15148 void *argp1 = 0 ;
15149 int res1 = 0 ;
15150 PyObject *swig_obj[1] ;
15151
15152 if (!args) SWIG_fail;
15153 swig_obj[0] = args;
15154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15155 if (!SWIG_IsOK(res1)) {
15156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
15157 }
15158 arg1 = reinterpret_cast< wxFont * >(argp1);
15159 {
15160 PyThreadState* __tstate = wxPyBeginAllowThreads();
15161 result = (int)((wxFont const *)arg1)->GetWeight();
15162 wxPyEndAllowThreads(__tstate);
15163 if (PyErr_Occurred()) SWIG_fail;
15164 }
15165 resultobj = SWIG_From_int(static_cast< int >(result));
15166 return resultobj;
15167 fail:
15168 return NULL;
15169 }
15170
15171
15172 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15173 PyObject *resultobj = 0;
15174 wxFont *arg1 = (wxFont *) 0 ;
15175 bool result;
15176 void *argp1 = 0 ;
15177 int res1 = 0 ;
15178 PyObject *swig_obj[1] ;
15179
15180 if (!args) SWIG_fail;
15181 swig_obj[0] = args;
15182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15183 if (!SWIG_IsOK(res1)) {
15184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
15185 }
15186 arg1 = reinterpret_cast< wxFont * >(argp1);
15187 {
15188 PyThreadState* __tstate = wxPyBeginAllowThreads();
15189 result = (bool)((wxFont const *)arg1)->GetUnderlined();
15190 wxPyEndAllowThreads(__tstate);
15191 if (PyErr_Occurred()) SWIG_fail;
15192 }
15193 {
15194 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15195 }
15196 return resultobj;
15197 fail:
15198 return NULL;
15199 }
15200
15201
15202 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15203 PyObject *resultobj = 0;
15204 wxFont *arg1 = (wxFont *) 0 ;
15205 wxString result;
15206 void *argp1 = 0 ;
15207 int res1 = 0 ;
15208 PyObject *swig_obj[1] ;
15209
15210 if (!args) SWIG_fail;
15211 swig_obj[0] = args;
15212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15213 if (!SWIG_IsOK(res1)) {
15214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
15215 }
15216 arg1 = reinterpret_cast< wxFont * >(argp1);
15217 {
15218 PyThreadState* __tstate = wxPyBeginAllowThreads();
15219 result = ((wxFont const *)arg1)->GetFaceName();
15220 wxPyEndAllowThreads(__tstate);
15221 if (PyErr_Occurred()) SWIG_fail;
15222 }
15223 {
15224 #if wxUSE_UNICODE
15225 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15226 #else
15227 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15228 #endif
15229 }
15230 return resultobj;
15231 fail:
15232 return NULL;
15233 }
15234
15235
15236 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15237 PyObject *resultobj = 0;
15238 wxFont *arg1 = (wxFont *) 0 ;
15239 wxFontEncoding result;
15240 void *argp1 = 0 ;
15241 int res1 = 0 ;
15242 PyObject *swig_obj[1] ;
15243
15244 if (!args) SWIG_fail;
15245 swig_obj[0] = args;
15246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15247 if (!SWIG_IsOK(res1)) {
15248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
15249 }
15250 arg1 = reinterpret_cast< wxFont * >(argp1);
15251 {
15252 PyThreadState* __tstate = wxPyBeginAllowThreads();
15253 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
15254 wxPyEndAllowThreads(__tstate);
15255 if (PyErr_Occurred()) SWIG_fail;
15256 }
15257 resultobj = SWIG_From_int(static_cast< int >(result));
15258 return resultobj;
15259 fail:
15260 return NULL;
15261 }
15262
15263
15264 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15265 PyObject *resultobj = 0;
15266 wxFont *arg1 = (wxFont *) 0 ;
15267 wxNativeFontInfo *result = 0 ;
15268 void *argp1 = 0 ;
15269 int res1 = 0 ;
15270 PyObject *swig_obj[1] ;
15271
15272 if (!args) SWIG_fail;
15273 swig_obj[0] = args;
15274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15275 if (!SWIG_IsOK(res1)) {
15276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
15277 }
15278 arg1 = reinterpret_cast< wxFont * >(argp1);
15279 {
15280 PyThreadState* __tstate = wxPyBeginAllowThreads();
15281 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
15282 wxPyEndAllowThreads(__tstate);
15283 if (PyErr_Occurred()) SWIG_fail;
15284 }
15285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
15286 return resultobj;
15287 fail:
15288 return NULL;
15289 }
15290
15291
15292 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15293 PyObject *resultobj = 0;
15294 wxFont *arg1 = (wxFont *) 0 ;
15295 bool result;
15296 void *argp1 = 0 ;
15297 int res1 = 0 ;
15298 PyObject *swig_obj[1] ;
15299
15300 if (!args) SWIG_fail;
15301 swig_obj[0] = args;
15302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15303 if (!SWIG_IsOK(res1)) {
15304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
15305 }
15306 arg1 = reinterpret_cast< wxFont * >(argp1);
15307 {
15308 PyThreadState* __tstate = wxPyBeginAllowThreads();
15309 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
15310 wxPyEndAllowThreads(__tstate);
15311 if (PyErr_Occurred()) SWIG_fail;
15312 }
15313 {
15314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15315 }
15316 return resultobj;
15317 fail:
15318 return NULL;
15319 }
15320
15321
15322 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15323 PyObject *resultobj = 0;
15324 wxFont *arg1 = (wxFont *) 0 ;
15325 wxString result;
15326 void *argp1 = 0 ;
15327 int res1 = 0 ;
15328 PyObject *swig_obj[1] ;
15329
15330 if (!args) SWIG_fail;
15331 swig_obj[0] = args;
15332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15333 if (!SWIG_IsOK(res1)) {
15334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15335 }
15336 arg1 = reinterpret_cast< wxFont * >(argp1);
15337 {
15338 PyThreadState* __tstate = wxPyBeginAllowThreads();
15339 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
15340 wxPyEndAllowThreads(__tstate);
15341 if (PyErr_Occurred()) SWIG_fail;
15342 }
15343 {
15344 #if wxUSE_UNICODE
15345 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15346 #else
15347 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15348 #endif
15349 }
15350 return resultobj;
15351 fail:
15352 return NULL;
15353 }
15354
15355
15356 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15357 PyObject *resultobj = 0;
15358 wxFont *arg1 = (wxFont *) 0 ;
15359 wxString result;
15360 void *argp1 = 0 ;
15361 int res1 = 0 ;
15362 PyObject *swig_obj[1] ;
15363
15364 if (!args) SWIG_fail;
15365 swig_obj[0] = args;
15366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15367 if (!SWIG_IsOK(res1)) {
15368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15369 }
15370 arg1 = reinterpret_cast< wxFont * >(argp1);
15371 {
15372 PyThreadState* __tstate = wxPyBeginAllowThreads();
15373 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
15374 wxPyEndAllowThreads(__tstate);
15375 if (PyErr_Occurred()) SWIG_fail;
15376 }
15377 {
15378 #if wxUSE_UNICODE
15379 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15380 #else
15381 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15382 #endif
15383 }
15384 return resultobj;
15385 fail:
15386 return NULL;
15387 }
15388
15389
15390 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15391 PyObject *resultobj = 0;
15392 wxFont *arg1 = (wxFont *) 0 ;
15393 int arg2 ;
15394 void *argp1 = 0 ;
15395 int res1 = 0 ;
15396 int val2 ;
15397 int ecode2 = 0 ;
15398 PyObject * obj0 = 0 ;
15399 PyObject * obj1 = 0 ;
15400 char * kwnames[] = {
15401 (char *) "self",(char *) "pointSize", NULL
15402 };
15403
15404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
15405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15406 if (!SWIG_IsOK(res1)) {
15407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
15408 }
15409 arg1 = reinterpret_cast< wxFont * >(argp1);
15410 ecode2 = SWIG_AsVal_int(obj1, &val2);
15411 if (!SWIG_IsOK(ecode2)) {
15412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
15413 }
15414 arg2 = static_cast< int >(val2);
15415 {
15416 PyThreadState* __tstate = wxPyBeginAllowThreads();
15417 (arg1)->SetPointSize(arg2);
15418 wxPyEndAllowThreads(__tstate);
15419 if (PyErr_Occurred()) SWIG_fail;
15420 }
15421 resultobj = SWIG_Py_Void();
15422 return resultobj;
15423 fail:
15424 return NULL;
15425 }
15426
15427
15428 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15429 PyObject *resultobj = 0;
15430 wxFont *arg1 = (wxFont *) 0 ;
15431 wxSize *arg2 = 0 ;
15432 void *argp1 = 0 ;
15433 int res1 = 0 ;
15434 wxSize temp2 ;
15435 PyObject * obj0 = 0 ;
15436 PyObject * obj1 = 0 ;
15437 char * kwnames[] = {
15438 (char *) "self",(char *) "pixelSize", NULL
15439 };
15440
15441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
15442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15443 if (!SWIG_IsOK(res1)) {
15444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
15445 }
15446 arg1 = reinterpret_cast< wxFont * >(argp1);
15447 {
15448 arg2 = &temp2;
15449 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15450 }
15451 {
15452 PyThreadState* __tstate = wxPyBeginAllowThreads();
15453 (arg1)->SetPixelSize((wxSize const &)*arg2);
15454 wxPyEndAllowThreads(__tstate);
15455 if (PyErr_Occurred()) SWIG_fail;
15456 }
15457 resultobj = SWIG_Py_Void();
15458 return resultobj;
15459 fail:
15460 return NULL;
15461 }
15462
15463
15464 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15465 PyObject *resultobj = 0;
15466 wxFont *arg1 = (wxFont *) 0 ;
15467 int arg2 ;
15468 void *argp1 = 0 ;
15469 int res1 = 0 ;
15470 int val2 ;
15471 int ecode2 = 0 ;
15472 PyObject * obj0 = 0 ;
15473 PyObject * obj1 = 0 ;
15474 char * kwnames[] = {
15475 (char *) "self",(char *) "family", NULL
15476 };
15477
15478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
15479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15480 if (!SWIG_IsOK(res1)) {
15481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
15482 }
15483 arg1 = reinterpret_cast< wxFont * >(argp1);
15484 ecode2 = SWIG_AsVal_int(obj1, &val2);
15485 if (!SWIG_IsOK(ecode2)) {
15486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
15487 }
15488 arg2 = static_cast< int >(val2);
15489 {
15490 PyThreadState* __tstate = wxPyBeginAllowThreads();
15491 (arg1)->SetFamily(arg2);
15492 wxPyEndAllowThreads(__tstate);
15493 if (PyErr_Occurred()) SWIG_fail;
15494 }
15495 resultobj = SWIG_Py_Void();
15496 return resultobj;
15497 fail:
15498 return NULL;
15499 }
15500
15501
15502 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15503 PyObject *resultobj = 0;
15504 wxFont *arg1 = (wxFont *) 0 ;
15505 int arg2 ;
15506 void *argp1 = 0 ;
15507 int res1 = 0 ;
15508 int val2 ;
15509 int ecode2 = 0 ;
15510 PyObject * obj0 = 0 ;
15511 PyObject * obj1 = 0 ;
15512 char * kwnames[] = {
15513 (char *) "self",(char *) "style", NULL
15514 };
15515
15516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
15517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15518 if (!SWIG_IsOK(res1)) {
15519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
15520 }
15521 arg1 = reinterpret_cast< wxFont * >(argp1);
15522 ecode2 = SWIG_AsVal_int(obj1, &val2);
15523 if (!SWIG_IsOK(ecode2)) {
15524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
15525 }
15526 arg2 = static_cast< int >(val2);
15527 {
15528 PyThreadState* __tstate = wxPyBeginAllowThreads();
15529 (arg1)->SetStyle(arg2);
15530 wxPyEndAllowThreads(__tstate);
15531 if (PyErr_Occurred()) SWIG_fail;
15532 }
15533 resultobj = SWIG_Py_Void();
15534 return resultobj;
15535 fail:
15536 return NULL;
15537 }
15538
15539
15540 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15541 PyObject *resultobj = 0;
15542 wxFont *arg1 = (wxFont *) 0 ;
15543 int arg2 ;
15544 void *argp1 = 0 ;
15545 int res1 = 0 ;
15546 int val2 ;
15547 int ecode2 = 0 ;
15548 PyObject * obj0 = 0 ;
15549 PyObject * obj1 = 0 ;
15550 char * kwnames[] = {
15551 (char *) "self",(char *) "weight", NULL
15552 };
15553
15554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15556 if (!SWIG_IsOK(res1)) {
15557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15558 }
15559 arg1 = reinterpret_cast< wxFont * >(argp1);
15560 ecode2 = SWIG_AsVal_int(obj1, &val2);
15561 if (!SWIG_IsOK(ecode2)) {
15562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15563 }
15564 arg2 = static_cast< int >(val2);
15565 {
15566 PyThreadState* __tstate = wxPyBeginAllowThreads();
15567 (arg1)->SetWeight(arg2);
15568 wxPyEndAllowThreads(__tstate);
15569 if (PyErr_Occurred()) SWIG_fail;
15570 }
15571 resultobj = SWIG_Py_Void();
15572 return resultobj;
15573 fail:
15574 return NULL;
15575 }
15576
15577
15578 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15579 PyObject *resultobj = 0;
15580 wxFont *arg1 = (wxFont *) 0 ;
15581 wxString *arg2 = 0 ;
15582 bool result;
15583 void *argp1 = 0 ;
15584 int res1 = 0 ;
15585 bool temp2 = false ;
15586 PyObject * obj0 = 0 ;
15587 PyObject * obj1 = 0 ;
15588 char * kwnames[] = {
15589 (char *) "self",(char *) "faceName", NULL
15590 };
15591
15592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15594 if (!SWIG_IsOK(res1)) {
15595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15596 }
15597 arg1 = reinterpret_cast< wxFont * >(argp1);
15598 {
15599 arg2 = wxString_in_helper(obj1);
15600 if (arg2 == NULL) SWIG_fail;
15601 temp2 = true;
15602 }
15603 {
15604 PyThreadState* __tstate = wxPyBeginAllowThreads();
15605 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
15606 wxPyEndAllowThreads(__tstate);
15607 if (PyErr_Occurred()) SWIG_fail;
15608 }
15609 {
15610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15611 }
15612 {
15613 if (temp2)
15614 delete arg2;
15615 }
15616 return resultobj;
15617 fail:
15618 {
15619 if (temp2)
15620 delete arg2;
15621 }
15622 return NULL;
15623 }
15624
15625
15626 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15627 PyObject *resultobj = 0;
15628 wxFont *arg1 = (wxFont *) 0 ;
15629 bool arg2 ;
15630 void *argp1 = 0 ;
15631 int res1 = 0 ;
15632 bool val2 ;
15633 int ecode2 = 0 ;
15634 PyObject * obj0 = 0 ;
15635 PyObject * obj1 = 0 ;
15636 char * kwnames[] = {
15637 (char *) "self",(char *) "underlined", NULL
15638 };
15639
15640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15642 if (!SWIG_IsOK(res1)) {
15643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15644 }
15645 arg1 = reinterpret_cast< wxFont * >(argp1);
15646 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15647 if (!SWIG_IsOK(ecode2)) {
15648 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15649 }
15650 arg2 = static_cast< bool >(val2);
15651 {
15652 PyThreadState* __tstate = wxPyBeginAllowThreads();
15653 (arg1)->SetUnderlined(arg2);
15654 wxPyEndAllowThreads(__tstate);
15655 if (PyErr_Occurred()) SWIG_fail;
15656 }
15657 resultobj = SWIG_Py_Void();
15658 return resultobj;
15659 fail:
15660 return NULL;
15661 }
15662
15663
15664 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15665 PyObject *resultobj = 0;
15666 wxFont *arg1 = (wxFont *) 0 ;
15667 wxFontEncoding arg2 ;
15668 void *argp1 = 0 ;
15669 int res1 = 0 ;
15670 int val2 ;
15671 int ecode2 = 0 ;
15672 PyObject * obj0 = 0 ;
15673 PyObject * obj1 = 0 ;
15674 char * kwnames[] = {
15675 (char *) "self",(char *) "encoding", NULL
15676 };
15677
15678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15680 if (!SWIG_IsOK(res1)) {
15681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15682 }
15683 arg1 = reinterpret_cast< wxFont * >(argp1);
15684 ecode2 = SWIG_AsVal_int(obj1, &val2);
15685 if (!SWIG_IsOK(ecode2)) {
15686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15687 }
15688 arg2 = static_cast< wxFontEncoding >(val2);
15689 {
15690 PyThreadState* __tstate = wxPyBeginAllowThreads();
15691 (arg1)->SetEncoding(arg2);
15692 wxPyEndAllowThreads(__tstate);
15693 if (PyErr_Occurred()) SWIG_fail;
15694 }
15695 resultobj = SWIG_Py_Void();
15696 return resultobj;
15697 fail:
15698 return NULL;
15699 }
15700
15701
15702 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15703 PyObject *resultobj = 0;
15704 wxFont *arg1 = (wxFont *) 0 ;
15705 wxNativeFontInfo *arg2 = 0 ;
15706 void *argp1 = 0 ;
15707 int res1 = 0 ;
15708 void *argp2 = 0 ;
15709 int res2 = 0 ;
15710 PyObject * obj0 = 0 ;
15711 PyObject * obj1 = 0 ;
15712 char * kwnames[] = {
15713 (char *) "self",(char *) "info", NULL
15714 };
15715
15716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15718 if (!SWIG_IsOK(res1)) {
15719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15720 }
15721 arg1 = reinterpret_cast< wxFont * >(argp1);
15722 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15723 if (!SWIG_IsOK(res2)) {
15724 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15725 }
15726 if (!argp2) {
15727 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15728 }
15729 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15730 {
15731 PyThreadState* __tstate = wxPyBeginAllowThreads();
15732 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15733 wxPyEndAllowThreads(__tstate);
15734 if (PyErr_Occurred()) SWIG_fail;
15735 }
15736 resultobj = SWIG_Py_Void();
15737 return resultobj;
15738 fail:
15739 return NULL;
15740 }
15741
15742
15743 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15744 PyObject *resultobj = 0;
15745 wxFont *arg1 = (wxFont *) 0 ;
15746 wxString *arg2 = 0 ;
15747 bool result;
15748 void *argp1 = 0 ;
15749 int res1 = 0 ;
15750 bool temp2 = false ;
15751 PyObject * obj0 = 0 ;
15752 PyObject * obj1 = 0 ;
15753 char * kwnames[] = {
15754 (char *) "self",(char *) "info", NULL
15755 };
15756
15757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15759 if (!SWIG_IsOK(res1)) {
15760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15761 }
15762 arg1 = reinterpret_cast< wxFont * >(argp1);
15763 {
15764 arg2 = wxString_in_helper(obj1);
15765 if (arg2 == NULL) SWIG_fail;
15766 temp2 = true;
15767 }
15768 {
15769 PyThreadState* __tstate = wxPyBeginAllowThreads();
15770 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15771 wxPyEndAllowThreads(__tstate);
15772 if (PyErr_Occurred()) SWIG_fail;
15773 }
15774 {
15775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15776 }
15777 {
15778 if (temp2)
15779 delete arg2;
15780 }
15781 return resultobj;
15782 fail:
15783 {
15784 if (temp2)
15785 delete arg2;
15786 }
15787 return NULL;
15788 }
15789
15790
15791 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15792 PyObject *resultobj = 0;
15793 wxFont *arg1 = (wxFont *) 0 ;
15794 wxString *arg2 = 0 ;
15795 bool result;
15796 void *argp1 = 0 ;
15797 int res1 = 0 ;
15798 bool temp2 = false ;
15799 PyObject * obj0 = 0 ;
15800 PyObject * obj1 = 0 ;
15801 char * kwnames[] = {
15802 (char *) "self",(char *) "info", NULL
15803 };
15804
15805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15807 if (!SWIG_IsOK(res1)) {
15808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15809 }
15810 arg1 = reinterpret_cast< wxFont * >(argp1);
15811 {
15812 arg2 = wxString_in_helper(obj1);
15813 if (arg2 == NULL) SWIG_fail;
15814 temp2 = true;
15815 }
15816 {
15817 PyThreadState* __tstate = wxPyBeginAllowThreads();
15818 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15819 wxPyEndAllowThreads(__tstate);
15820 if (PyErr_Occurred()) SWIG_fail;
15821 }
15822 {
15823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15824 }
15825 {
15826 if (temp2)
15827 delete arg2;
15828 }
15829 return resultobj;
15830 fail:
15831 {
15832 if (temp2)
15833 delete arg2;
15834 }
15835 return NULL;
15836 }
15837
15838
15839 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15840 PyObject *resultobj = 0;
15841 wxFont *arg1 = (wxFont *) 0 ;
15842 wxString result;
15843 void *argp1 = 0 ;
15844 int res1 = 0 ;
15845 PyObject *swig_obj[1] ;
15846
15847 if (!args) SWIG_fail;
15848 swig_obj[0] = args;
15849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15850 if (!SWIG_IsOK(res1)) {
15851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15852 }
15853 arg1 = reinterpret_cast< wxFont * >(argp1);
15854 {
15855 PyThreadState* __tstate = wxPyBeginAllowThreads();
15856 result = ((wxFont const *)arg1)->GetFamilyString();
15857 wxPyEndAllowThreads(__tstate);
15858 if (PyErr_Occurred()) SWIG_fail;
15859 }
15860 {
15861 #if wxUSE_UNICODE
15862 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15863 #else
15864 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15865 #endif
15866 }
15867 return resultobj;
15868 fail:
15869 return NULL;
15870 }
15871
15872
15873 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15874 PyObject *resultobj = 0;
15875 wxFont *arg1 = (wxFont *) 0 ;
15876 wxString result;
15877 void *argp1 = 0 ;
15878 int res1 = 0 ;
15879 PyObject *swig_obj[1] ;
15880
15881 if (!args) SWIG_fail;
15882 swig_obj[0] = args;
15883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15884 if (!SWIG_IsOK(res1)) {
15885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15886 }
15887 arg1 = reinterpret_cast< wxFont * >(argp1);
15888 {
15889 PyThreadState* __tstate = wxPyBeginAllowThreads();
15890 result = ((wxFont const *)arg1)->GetStyleString();
15891 wxPyEndAllowThreads(__tstate);
15892 if (PyErr_Occurred()) SWIG_fail;
15893 }
15894 {
15895 #if wxUSE_UNICODE
15896 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15897 #else
15898 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15899 #endif
15900 }
15901 return resultobj;
15902 fail:
15903 return NULL;
15904 }
15905
15906
15907 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15908 PyObject *resultobj = 0;
15909 wxFont *arg1 = (wxFont *) 0 ;
15910 wxString result;
15911 void *argp1 = 0 ;
15912 int res1 = 0 ;
15913 PyObject *swig_obj[1] ;
15914
15915 if (!args) SWIG_fail;
15916 swig_obj[0] = args;
15917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15918 if (!SWIG_IsOK(res1)) {
15919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15920 }
15921 arg1 = reinterpret_cast< wxFont * >(argp1);
15922 {
15923 PyThreadState* __tstate = wxPyBeginAllowThreads();
15924 result = ((wxFont const *)arg1)->GetWeightString();
15925 wxPyEndAllowThreads(__tstate);
15926 if (PyErr_Occurred()) SWIG_fail;
15927 }
15928 {
15929 #if wxUSE_UNICODE
15930 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15931 #else
15932 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15933 #endif
15934 }
15935 return resultobj;
15936 fail:
15937 return NULL;
15938 }
15939
15940
15941 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15942 PyObject *resultobj = 0;
15943 wxFont *arg1 = (wxFont *) 0 ;
15944 bool arg2 = (bool) true ;
15945 void *argp1 = 0 ;
15946 int res1 = 0 ;
15947 bool val2 ;
15948 int ecode2 = 0 ;
15949 PyObject * obj0 = 0 ;
15950 PyObject * obj1 = 0 ;
15951 char * kwnames[] = {
15952 (char *) "self",(char *) "no", NULL
15953 };
15954
15955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15957 if (!SWIG_IsOK(res1)) {
15958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15959 }
15960 arg1 = reinterpret_cast< wxFont * >(argp1);
15961 if (obj1) {
15962 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15963 if (!SWIG_IsOK(ecode2)) {
15964 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15965 }
15966 arg2 = static_cast< bool >(val2);
15967 }
15968 {
15969 PyThreadState* __tstate = wxPyBeginAllowThreads();
15970 (arg1)->SetNoAntiAliasing(arg2);
15971 wxPyEndAllowThreads(__tstate);
15972 if (PyErr_Occurred()) SWIG_fail;
15973 }
15974 resultobj = SWIG_Py_Void();
15975 return resultobj;
15976 fail:
15977 return NULL;
15978 }
15979
15980
15981 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15982 PyObject *resultobj = 0;
15983 wxFont *arg1 = (wxFont *) 0 ;
15984 bool result;
15985 void *argp1 = 0 ;
15986 int res1 = 0 ;
15987 PyObject *swig_obj[1] ;
15988
15989 if (!args) SWIG_fail;
15990 swig_obj[0] = args;
15991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15992 if (!SWIG_IsOK(res1)) {
15993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15994 }
15995 arg1 = reinterpret_cast< wxFont * >(argp1);
15996 {
15997 PyThreadState* __tstate = wxPyBeginAllowThreads();
15998 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15999 wxPyEndAllowThreads(__tstate);
16000 if (PyErr_Occurred()) SWIG_fail;
16001 }
16002 {
16003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16004 }
16005 return resultobj;
16006 fail:
16007 return NULL;
16008 }
16009
16010
16011 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16012 PyObject *resultobj = 0;
16013 wxFontEncoding result;
16014
16015 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
16016 {
16017 if (!wxPyCheckForApp()) SWIG_fail;
16018 PyThreadState* __tstate = wxPyBeginAllowThreads();
16019 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
16020 wxPyEndAllowThreads(__tstate);
16021 if (PyErr_Occurred()) SWIG_fail;
16022 }
16023 resultobj = SWIG_From_int(static_cast< int >(result));
16024 return resultobj;
16025 fail:
16026 return NULL;
16027 }
16028
16029
16030 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16031 PyObject *resultobj = 0;
16032 wxFontEncoding arg1 ;
16033 int val1 ;
16034 int ecode1 = 0 ;
16035 PyObject * obj0 = 0 ;
16036 char * kwnames[] = {
16037 (char *) "encoding", NULL
16038 };
16039
16040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
16041 ecode1 = SWIG_AsVal_int(obj0, &val1);
16042 if (!SWIG_IsOK(ecode1)) {
16043 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16044 }
16045 arg1 = static_cast< wxFontEncoding >(val1);
16046 {
16047 if (!wxPyCheckForApp()) SWIG_fail;
16048 PyThreadState* __tstate = wxPyBeginAllowThreads();
16049 wxFont::SetDefaultEncoding(arg1);
16050 wxPyEndAllowThreads(__tstate);
16051 if (PyErr_Occurred()) SWIG_fail;
16052 }
16053 resultobj = SWIG_Py_Void();
16054 return resultobj;
16055 fail:
16056 return NULL;
16057 }
16058
16059
16060 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16061 PyObject *obj;
16062 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16063 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
16064 return SWIG_Py_Void();
16065 }
16066
16067 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16068 return SWIG_Python_InitShadowInstance(args);
16069 }
16070
16071 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16072 PyObject *resultobj = 0;
16073 wxPyFontEnumerator *result = 0 ;
16074
16075 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
16076 {
16077 if (!wxPyCheckForApp()) SWIG_fail;
16078 PyThreadState* __tstate = wxPyBeginAllowThreads();
16079 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
16080 wxPyEndAllowThreads(__tstate);
16081 if (PyErr_Occurred()) SWIG_fail;
16082 }
16083 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
16084 return resultobj;
16085 fail:
16086 return NULL;
16087 }
16088
16089
16090 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16091 PyObject *resultobj = 0;
16092 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16093 void *argp1 = 0 ;
16094 int res1 = 0 ;
16095 PyObject *swig_obj[1] ;
16096
16097 if (!args) SWIG_fail;
16098 swig_obj[0] = args;
16099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
16100 if (!SWIG_IsOK(res1)) {
16101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16102 }
16103 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16104 {
16105 PyThreadState* __tstate = wxPyBeginAllowThreads();
16106 delete arg1;
16107
16108 wxPyEndAllowThreads(__tstate);
16109 if (PyErr_Occurred()) SWIG_fail;
16110 }
16111 resultobj = SWIG_Py_Void();
16112 return resultobj;
16113 fail:
16114 return NULL;
16115 }
16116
16117
16118 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16119 PyObject *resultobj = 0;
16120 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16121 PyObject *arg2 = (PyObject *) 0 ;
16122 PyObject *arg3 = (PyObject *) 0 ;
16123 bool arg4 ;
16124 void *argp1 = 0 ;
16125 int res1 = 0 ;
16126 bool val4 ;
16127 int ecode4 = 0 ;
16128 PyObject * obj0 = 0 ;
16129 PyObject * obj1 = 0 ;
16130 PyObject * obj2 = 0 ;
16131 PyObject * obj3 = 0 ;
16132 char * kwnames[] = {
16133 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
16134 };
16135
16136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16138 if (!SWIG_IsOK(res1)) {
16139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16140 }
16141 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16142 arg2 = obj1;
16143 arg3 = obj2;
16144 ecode4 = SWIG_AsVal_bool(obj3, &val4);
16145 if (!SWIG_IsOK(ecode4)) {
16146 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
16147 }
16148 arg4 = static_cast< bool >(val4);
16149 {
16150 PyThreadState* __tstate = wxPyBeginAllowThreads();
16151 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
16152 wxPyEndAllowThreads(__tstate);
16153 if (PyErr_Occurred()) SWIG_fail;
16154 }
16155 resultobj = SWIG_Py_Void();
16156 return resultobj;
16157 fail:
16158 return NULL;
16159 }
16160
16161
16162 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16163 PyObject *resultobj = 0;
16164 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16165 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
16166 bool arg3 = (bool) false ;
16167 bool result;
16168 void *argp1 = 0 ;
16169 int res1 = 0 ;
16170 int val2 ;
16171 int ecode2 = 0 ;
16172 bool val3 ;
16173 int ecode3 = 0 ;
16174 PyObject * obj0 = 0 ;
16175 PyObject * obj1 = 0 ;
16176 PyObject * obj2 = 0 ;
16177 char * kwnames[] = {
16178 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
16179 };
16180
16181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16183 if (!SWIG_IsOK(res1)) {
16184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16185 }
16186 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16187 if (obj1) {
16188 ecode2 = SWIG_AsVal_int(obj1, &val2);
16189 if (!SWIG_IsOK(ecode2)) {
16190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16191 }
16192 arg2 = static_cast< wxFontEncoding >(val2);
16193 }
16194 if (obj2) {
16195 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16196 if (!SWIG_IsOK(ecode3)) {
16197 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
16198 }
16199 arg3 = static_cast< bool >(val3);
16200 }
16201 {
16202 PyThreadState* __tstate = wxPyBeginAllowThreads();
16203 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
16204 wxPyEndAllowThreads(__tstate);
16205 if (PyErr_Occurred()) SWIG_fail;
16206 }
16207 {
16208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16209 }
16210 return resultobj;
16211 fail:
16212 return NULL;
16213 }
16214
16215
16216 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16217 PyObject *resultobj = 0;
16218 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16219 wxString const &arg2_defvalue = wxPyEmptyString ;
16220 wxString *arg2 = (wxString *) &arg2_defvalue ;
16221 bool result;
16222 void *argp1 = 0 ;
16223 int res1 = 0 ;
16224 bool temp2 = false ;
16225 PyObject * obj0 = 0 ;
16226 PyObject * obj1 = 0 ;
16227 char * kwnames[] = {
16228 (char *) "self",(char *) "facename", NULL
16229 };
16230
16231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
16232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16233 if (!SWIG_IsOK(res1)) {
16234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16235 }
16236 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16237 if (obj1) {
16238 {
16239 arg2 = wxString_in_helper(obj1);
16240 if (arg2 == NULL) SWIG_fail;
16241 temp2 = true;
16242 }
16243 }
16244 {
16245 PyThreadState* __tstate = wxPyBeginAllowThreads();
16246 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
16247 wxPyEndAllowThreads(__tstate);
16248 if (PyErr_Occurred()) SWIG_fail;
16249 }
16250 {
16251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16252 }
16253 {
16254 if (temp2)
16255 delete arg2;
16256 }
16257 return resultobj;
16258 fail:
16259 {
16260 if (temp2)
16261 delete arg2;
16262 }
16263 return NULL;
16264 }
16265
16266
16267 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16268 PyObject *resultobj = 0;
16269 PyObject *result = 0 ;
16270
16271 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
16272 {
16273 PyThreadState* __tstate = wxPyBeginAllowThreads();
16274 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
16275 wxPyEndAllowThreads(__tstate);
16276 if (PyErr_Occurred()) SWIG_fail;
16277 }
16278 resultobj = result;
16279 return resultobj;
16280 fail:
16281 return NULL;
16282 }
16283
16284
16285 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16286 PyObject *resultobj = 0;
16287 PyObject *result = 0 ;
16288
16289 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
16290 {
16291 PyThreadState* __tstate = wxPyBeginAllowThreads();
16292 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
16293 wxPyEndAllowThreads(__tstate);
16294 if (PyErr_Occurred()) SWIG_fail;
16295 }
16296 resultobj = result;
16297 return resultobj;
16298 fail:
16299 return NULL;
16300 }
16301
16302
16303 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16304 PyObject *resultobj = 0;
16305 wxString *arg1 = 0 ;
16306 bool result;
16307 bool temp1 = false ;
16308 PyObject * obj0 = 0 ;
16309 char * kwnames[] = {
16310 (char *) "str", NULL
16311 };
16312
16313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
16314 {
16315 arg1 = wxString_in_helper(obj0);
16316 if (arg1 == NULL) SWIG_fail;
16317 temp1 = true;
16318 }
16319 {
16320 PyThreadState* __tstate = wxPyBeginAllowThreads();
16321 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
16322 wxPyEndAllowThreads(__tstate);
16323 if (PyErr_Occurred()) SWIG_fail;
16324 }
16325 {
16326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16327 }
16328 {
16329 if (temp1)
16330 delete arg1;
16331 }
16332 return resultobj;
16333 fail:
16334 {
16335 if (temp1)
16336 delete arg1;
16337 }
16338 return NULL;
16339 }
16340
16341
16342 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16343 PyObject *obj;
16344 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16345 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
16346 return SWIG_Py_Void();
16347 }
16348
16349 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16350 return SWIG_Python_InitShadowInstance(args);
16351 }
16352
16353 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16354 PyObject *resultobj = 0;
16355 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16356 int arg2 ;
16357 void *argp1 = 0 ;
16358 int res1 = 0 ;
16359 int val2 ;
16360 int ecode2 = 0 ;
16361 PyObject *swig_obj[2] ;
16362
16363 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
16364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16365 if (!SWIG_IsOK(res1)) {
16366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16367 }
16368 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16369 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16370 if (!SWIG_IsOK(ecode2)) {
16371 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
16372 }
16373 arg2 = static_cast< int >(val2);
16374 if (arg1) (arg1)->Language = arg2;
16375
16376 resultobj = SWIG_Py_Void();
16377 return resultobj;
16378 fail:
16379 return NULL;
16380 }
16381
16382
16383 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16384 PyObject *resultobj = 0;
16385 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16386 int result;
16387 void *argp1 = 0 ;
16388 int res1 = 0 ;
16389 PyObject *swig_obj[1] ;
16390
16391 if (!args) SWIG_fail;
16392 swig_obj[0] = args;
16393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16394 if (!SWIG_IsOK(res1)) {
16395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16396 }
16397 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16398 result = (int) ((arg1)->Language);
16399 resultobj = SWIG_From_int(static_cast< int >(result));
16400 return resultobj;
16401 fail:
16402 return NULL;
16403 }
16404
16405
16406 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16407 PyObject *resultobj = 0;
16408 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16409 wxString *arg2 = (wxString *) 0 ;
16410 void *argp1 = 0 ;
16411 int res1 = 0 ;
16412 bool temp2 = false ;
16413 PyObject *swig_obj[2] ;
16414
16415 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
16416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16417 if (!SWIG_IsOK(res1)) {
16418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16419 }
16420 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16421 {
16422 arg2 = wxString_in_helper(swig_obj[1]);
16423 if (arg2 == NULL) SWIG_fail;
16424 temp2 = true;
16425 }
16426 if (arg1) (arg1)->CanonicalName = *arg2;
16427
16428 resultobj = SWIG_Py_Void();
16429 {
16430 if (temp2)
16431 delete arg2;
16432 }
16433 return resultobj;
16434 fail:
16435 {
16436 if (temp2)
16437 delete arg2;
16438 }
16439 return NULL;
16440 }
16441
16442
16443 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16444 PyObject *resultobj = 0;
16445 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16446 wxString *result = 0 ;
16447 void *argp1 = 0 ;
16448 int res1 = 0 ;
16449 PyObject *swig_obj[1] ;
16450
16451 if (!args) SWIG_fail;
16452 swig_obj[0] = args;
16453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16454 if (!SWIG_IsOK(res1)) {
16455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16456 }
16457 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16458 result = (wxString *)& ((arg1)->CanonicalName);
16459 {
16460 #if wxUSE_UNICODE
16461 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16462 #else
16463 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16464 #endif
16465 }
16466 return resultobj;
16467 fail:
16468 return NULL;
16469 }
16470
16471
16472 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16473 PyObject *resultobj = 0;
16474 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16475 wxString *arg2 = (wxString *) 0 ;
16476 void *argp1 = 0 ;
16477 int res1 = 0 ;
16478 bool temp2 = false ;
16479 PyObject *swig_obj[2] ;
16480
16481 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
16482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16483 if (!SWIG_IsOK(res1)) {
16484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16485 }
16486 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16487 {
16488 arg2 = wxString_in_helper(swig_obj[1]);
16489 if (arg2 == NULL) SWIG_fail;
16490 temp2 = true;
16491 }
16492 if (arg1) (arg1)->Description = *arg2;
16493
16494 resultobj = SWIG_Py_Void();
16495 {
16496 if (temp2)
16497 delete arg2;
16498 }
16499 return resultobj;
16500 fail:
16501 {
16502 if (temp2)
16503 delete arg2;
16504 }
16505 return NULL;
16506 }
16507
16508
16509 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16510 PyObject *resultobj = 0;
16511 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16512 wxString *result = 0 ;
16513 void *argp1 = 0 ;
16514 int res1 = 0 ;
16515 PyObject *swig_obj[1] ;
16516
16517 if (!args) SWIG_fail;
16518 swig_obj[0] = args;
16519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16520 if (!SWIG_IsOK(res1)) {
16521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16522 }
16523 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16524 result = (wxString *)& ((arg1)->Description);
16525 {
16526 #if wxUSE_UNICODE
16527 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16528 #else
16529 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16530 #endif
16531 }
16532 return resultobj;
16533 fail:
16534 return NULL;
16535 }
16536
16537
16538 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16539 PyObject *obj;
16540 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16541 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
16542 return SWIG_Py_Void();
16543 }
16544
16545 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16546 PyObject *resultobj = 0;
16547 int arg1 = (int) -1 ;
16548 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16549 wxLocale *result = 0 ;
16550 int val1 ;
16551 int ecode1 = 0 ;
16552 int val2 ;
16553 int ecode2 = 0 ;
16554 PyObject * obj0 = 0 ;
16555 PyObject * obj1 = 0 ;
16556 char * kwnames[] = {
16557 (char *) "language",(char *) "flags", NULL
16558 };
16559
16560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16561 if (obj0) {
16562 ecode1 = SWIG_AsVal_int(obj0, &val1);
16563 if (!SWIG_IsOK(ecode1)) {
16564 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16565 }
16566 arg1 = static_cast< int >(val1);
16567 }
16568 if (obj1) {
16569 ecode2 = SWIG_AsVal_int(obj1, &val2);
16570 if (!SWIG_IsOK(ecode2)) {
16571 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16572 }
16573 arg2 = static_cast< int >(val2);
16574 }
16575 {
16576 PyThreadState* __tstate = wxPyBeginAllowThreads();
16577 result = (wxLocale *)new_wxLocale(arg1,arg2);
16578 wxPyEndAllowThreads(__tstate);
16579 if (PyErr_Occurred()) SWIG_fail;
16580 }
16581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16582 return resultobj;
16583 fail:
16584 return NULL;
16585 }
16586
16587
16588 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16589 PyObject *resultobj = 0;
16590 wxLocale *arg1 = (wxLocale *) 0 ;
16591 void *argp1 = 0 ;
16592 int res1 = 0 ;
16593 PyObject *swig_obj[1] ;
16594
16595 if (!args) SWIG_fail;
16596 swig_obj[0] = args;
16597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16598 if (!SWIG_IsOK(res1)) {
16599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16600 }
16601 arg1 = reinterpret_cast< wxLocale * >(argp1);
16602 {
16603 PyThreadState* __tstate = wxPyBeginAllowThreads();
16604 delete arg1;
16605
16606 wxPyEndAllowThreads(__tstate);
16607 if (PyErr_Occurred()) SWIG_fail;
16608 }
16609 resultobj = SWIG_Py_Void();
16610 return resultobj;
16611 fail:
16612 return NULL;
16613 }
16614
16615
16616 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16617 PyObject *resultobj = 0;
16618 wxLocale *arg1 = (wxLocale *) 0 ;
16619 wxString *arg2 = 0 ;
16620 wxString const &arg3_defvalue = wxPyEmptyString ;
16621 wxString *arg3 = (wxString *) &arg3_defvalue ;
16622 wxString const &arg4_defvalue = wxPyEmptyString ;
16623 wxString *arg4 = (wxString *) &arg4_defvalue ;
16624 bool arg5 = (bool) true ;
16625 bool arg6 = (bool) false ;
16626 bool result;
16627 void *argp1 = 0 ;
16628 int res1 = 0 ;
16629 bool temp2 = false ;
16630 bool temp3 = false ;
16631 bool temp4 = false ;
16632 bool val5 ;
16633 int ecode5 = 0 ;
16634 bool val6 ;
16635 int ecode6 = 0 ;
16636 PyObject * obj0 = 0 ;
16637 PyObject * obj1 = 0 ;
16638 PyObject * obj2 = 0 ;
16639 PyObject * obj3 = 0 ;
16640 PyObject * obj4 = 0 ;
16641 PyObject * obj5 = 0 ;
16642 char * kwnames[] = {
16643 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
16644 };
16645
16646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16648 if (!SWIG_IsOK(res1)) {
16649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16650 }
16651 arg1 = reinterpret_cast< wxLocale * >(argp1);
16652 {
16653 arg2 = wxString_in_helper(obj1);
16654 if (arg2 == NULL) SWIG_fail;
16655 temp2 = true;
16656 }
16657 if (obj2) {
16658 {
16659 arg3 = wxString_in_helper(obj2);
16660 if (arg3 == NULL) SWIG_fail;
16661 temp3 = true;
16662 }
16663 }
16664 if (obj3) {
16665 {
16666 arg4 = wxString_in_helper(obj3);
16667 if (arg4 == NULL) SWIG_fail;
16668 temp4 = true;
16669 }
16670 }
16671 if (obj4) {
16672 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16673 if (!SWIG_IsOK(ecode5)) {
16674 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16675 }
16676 arg5 = static_cast< bool >(val5);
16677 }
16678 if (obj5) {
16679 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16680 if (!SWIG_IsOK(ecode6)) {
16681 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16682 }
16683 arg6 = static_cast< bool >(val6);
16684 }
16685 {
16686 PyThreadState* __tstate = wxPyBeginAllowThreads();
16687 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16688 wxPyEndAllowThreads(__tstate);
16689 if (PyErr_Occurred()) SWIG_fail;
16690 }
16691 {
16692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16693 }
16694 {
16695 if (temp2)
16696 delete arg2;
16697 }
16698 {
16699 if (temp3)
16700 delete arg3;
16701 }
16702 {
16703 if (temp4)
16704 delete arg4;
16705 }
16706 return resultobj;
16707 fail:
16708 {
16709 if (temp2)
16710 delete arg2;
16711 }
16712 {
16713 if (temp3)
16714 delete arg3;
16715 }
16716 {
16717 if (temp4)
16718 delete arg4;
16719 }
16720 return NULL;
16721 }
16722
16723
16724 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16725 PyObject *resultobj = 0;
16726 wxLocale *arg1 = (wxLocale *) 0 ;
16727 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16728 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16729 bool result;
16730 void *argp1 = 0 ;
16731 int res1 = 0 ;
16732 int val2 ;
16733 int ecode2 = 0 ;
16734 int val3 ;
16735 int ecode3 = 0 ;
16736 PyObject * obj0 = 0 ;
16737 PyObject * obj1 = 0 ;
16738 PyObject * obj2 = 0 ;
16739 char * kwnames[] = {
16740 (char *) "self",(char *) "language",(char *) "flags", NULL
16741 };
16742
16743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16745 if (!SWIG_IsOK(res1)) {
16746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16747 }
16748 arg1 = reinterpret_cast< wxLocale * >(argp1);
16749 if (obj1) {
16750 ecode2 = SWIG_AsVal_int(obj1, &val2);
16751 if (!SWIG_IsOK(ecode2)) {
16752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16753 }
16754 arg2 = static_cast< int >(val2);
16755 }
16756 if (obj2) {
16757 ecode3 = SWIG_AsVal_int(obj2, &val3);
16758 if (!SWIG_IsOK(ecode3)) {
16759 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16760 }
16761 arg3 = static_cast< int >(val3);
16762 }
16763 {
16764 PyThreadState* __tstate = wxPyBeginAllowThreads();
16765 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16766 wxPyEndAllowThreads(__tstate);
16767 if (PyErr_Occurred()) SWIG_fail;
16768 }
16769 {
16770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16771 }
16772 return resultobj;
16773 fail:
16774 return NULL;
16775 }
16776
16777
16778 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16779 PyObject *resultobj = 0;
16780 int result;
16781
16782 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16783 {
16784 PyThreadState* __tstate = wxPyBeginAllowThreads();
16785 result = (int)wxLocale::GetSystemLanguage();
16786 wxPyEndAllowThreads(__tstate);
16787 if (PyErr_Occurred()) SWIG_fail;
16788 }
16789 resultobj = SWIG_From_int(static_cast< int >(result));
16790 return resultobj;
16791 fail:
16792 return NULL;
16793 }
16794
16795
16796 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16797 PyObject *resultobj = 0;
16798 wxFontEncoding result;
16799
16800 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16801 {
16802 PyThreadState* __tstate = wxPyBeginAllowThreads();
16803 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16804 wxPyEndAllowThreads(__tstate);
16805 if (PyErr_Occurred()) SWIG_fail;
16806 }
16807 resultobj = SWIG_From_int(static_cast< int >(result));
16808 return resultobj;
16809 fail:
16810 return NULL;
16811 }
16812
16813
16814 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16815 PyObject *resultobj = 0;
16816 wxString result;
16817
16818 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16819 {
16820 PyThreadState* __tstate = wxPyBeginAllowThreads();
16821 result = wxLocale::GetSystemEncodingName();
16822 wxPyEndAllowThreads(__tstate);
16823 if (PyErr_Occurred()) SWIG_fail;
16824 }
16825 {
16826 #if wxUSE_UNICODE
16827 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16828 #else
16829 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16830 #endif
16831 }
16832 return resultobj;
16833 fail:
16834 return NULL;
16835 }
16836
16837
16838 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16839 PyObject *resultobj = 0;
16840 wxLocale *arg1 = (wxLocale *) 0 ;
16841 bool result;
16842 void *argp1 = 0 ;
16843 int res1 = 0 ;
16844 PyObject *swig_obj[1] ;
16845
16846 if (!args) SWIG_fail;
16847 swig_obj[0] = args;
16848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16849 if (!SWIG_IsOK(res1)) {
16850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16851 }
16852 arg1 = reinterpret_cast< wxLocale * >(argp1);
16853 {
16854 PyThreadState* __tstate = wxPyBeginAllowThreads();
16855 result = (bool)((wxLocale const *)arg1)->IsOk();
16856 wxPyEndAllowThreads(__tstate);
16857 if (PyErr_Occurred()) SWIG_fail;
16858 }
16859 {
16860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16861 }
16862 return resultobj;
16863 fail:
16864 return NULL;
16865 }
16866
16867
16868 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16869 PyObject *resultobj = 0;
16870 wxLocale *arg1 = (wxLocale *) 0 ;
16871 wxString result;
16872 void *argp1 = 0 ;
16873 int res1 = 0 ;
16874 PyObject *swig_obj[1] ;
16875
16876 if (!args) SWIG_fail;
16877 swig_obj[0] = args;
16878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16879 if (!SWIG_IsOK(res1)) {
16880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16881 }
16882 arg1 = reinterpret_cast< wxLocale * >(argp1);
16883 {
16884 PyThreadState* __tstate = wxPyBeginAllowThreads();
16885 result = ((wxLocale const *)arg1)->GetLocale();
16886 wxPyEndAllowThreads(__tstate);
16887 if (PyErr_Occurred()) SWIG_fail;
16888 }
16889 {
16890 #if wxUSE_UNICODE
16891 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16892 #else
16893 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16894 #endif
16895 }
16896 return resultobj;
16897 fail:
16898 return NULL;
16899 }
16900
16901
16902 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16903 PyObject *resultobj = 0;
16904 wxLocale *arg1 = (wxLocale *) 0 ;
16905 int result;
16906 void *argp1 = 0 ;
16907 int res1 = 0 ;
16908 PyObject *swig_obj[1] ;
16909
16910 if (!args) SWIG_fail;
16911 swig_obj[0] = args;
16912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16913 if (!SWIG_IsOK(res1)) {
16914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16915 }
16916 arg1 = reinterpret_cast< wxLocale * >(argp1);
16917 {
16918 PyThreadState* __tstate = wxPyBeginAllowThreads();
16919 result = (int)((wxLocale const *)arg1)->GetLanguage();
16920 wxPyEndAllowThreads(__tstate);
16921 if (PyErr_Occurred()) SWIG_fail;
16922 }
16923 resultobj = SWIG_From_int(static_cast< int >(result));
16924 return resultobj;
16925 fail:
16926 return NULL;
16927 }
16928
16929
16930 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16931 PyObject *resultobj = 0;
16932 wxLocale *arg1 = (wxLocale *) 0 ;
16933 wxString result;
16934 void *argp1 = 0 ;
16935 int res1 = 0 ;
16936 PyObject *swig_obj[1] ;
16937
16938 if (!args) SWIG_fail;
16939 swig_obj[0] = args;
16940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16941 if (!SWIG_IsOK(res1)) {
16942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16943 }
16944 arg1 = reinterpret_cast< wxLocale * >(argp1);
16945 {
16946 PyThreadState* __tstate = wxPyBeginAllowThreads();
16947 result = ((wxLocale const *)arg1)->GetSysName();
16948 wxPyEndAllowThreads(__tstate);
16949 if (PyErr_Occurred()) SWIG_fail;
16950 }
16951 {
16952 #if wxUSE_UNICODE
16953 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16954 #else
16955 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16956 #endif
16957 }
16958 return resultobj;
16959 fail:
16960 return NULL;
16961 }
16962
16963
16964 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16965 PyObject *resultobj = 0;
16966 wxLocale *arg1 = (wxLocale *) 0 ;
16967 wxString result;
16968 void *argp1 = 0 ;
16969 int res1 = 0 ;
16970 PyObject *swig_obj[1] ;
16971
16972 if (!args) SWIG_fail;
16973 swig_obj[0] = args;
16974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16975 if (!SWIG_IsOK(res1)) {
16976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16977 }
16978 arg1 = reinterpret_cast< wxLocale * >(argp1);
16979 {
16980 PyThreadState* __tstate = wxPyBeginAllowThreads();
16981 result = ((wxLocale const *)arg1)->GetCanonicalName();
16982 wxPyEndAllowThreads(__tstate);
16983 if (PyErr_Occurred()) SWIG_fail;
16984 }
16985 {
16986 #if wxUSE_UNICODE
16987 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16988 #else
16989 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16990 #endif
16991 }
16992 return resultobj;
16993 fail:
16994 return NULL;
16995 }
16996
16997
16998 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16999 PyObject *resultobj = 0;
17000 wxString *arg1 = 0 ;
17001 bool temp1 = false ;
17002 PyObject * obj0 = 0 ;
17003 char * kwnames[] = {
17004 (char *) "prefix", NULL
17005 };
17006
17007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
17008 {
17009 arg1 = wxString_in_helper(obj0);
17010 if (arg1 == NULL) SWIG_fail;
17011 temp1 = true;
17012 }
17013 {
17014 PyThreadState* __tstate = wxPyBeginAllowThreads();
17015 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
17016 wxPyEndAllowThreads(__tstate);
17017 if (PyErr_Occurred()) SWIG_fail;
17018 }
17019 resultobj = SWIG_Py_Void();
17020 {
17021 if (temp1)
17022 delete arg1;
17023 }
17024 return resultobj;
17025 fail:
17026 {
17027 if (temp1)
17028 delete arg1;
17029 }
17030 return NULL;
17031 }
17032
17033
17034 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17035 PyObject *resultobj = 0;
17036 wxLocale *arg1 = (wxLocale *) 0 ;
17037 wxString *arg2 = 0 ;
17038 bool result;
17039 void *argp1 = 0 ;
17040 int res1 = 0 ;
17041 bool temp2 = false ;
17042 PyObject * obj0 = 0 ;
17043 PyObject * obj1 = 0 ;
17044 char * kwnames[] = {
17045 (char *) "self",(char *) "szDomain", NULL
17046 };
17047
17048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
17049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17050 if (!SWIG_IsOK(res1)) {
17051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
17052 }
17053 arg1 = reinterpret_cast< wxLocale * >(argp1);
17054 {
17055 arg2 = wxString_in_helper(obj1);
17056 if (arg2 == NULL) SWIG_fail;
17057 temp2 = true;
17058 }
17059 {
17060 PyThreadState* __tstate = wxPyBeginAllowThreads();
17061 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
17062 wxPyEndAllowThreads(__tstate);
17063 if (PyErr_Occurred()) SWIG_fail;
17064 }
17065 {
17066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17067 }
17068 {
17069 if (temp2)
17070 delete arg2;
17071 }
17072 return resultobj;
17073 fail:
17074 {
17075 if (temp2)
17076 delete arg2;
17077 }
17078 return NULL;
17079 }
17080
17081
17082 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17083 PyObject *resultobj = 0;
17084 int arg1 ;
17085 bool result;
17086 int val1 ;
17087 int ecode1 = 0 ;
17088 PyObject * obj0 = 0 ;
17089 char * kwnames[] = {
17090 (char *) "lang", NULL
17091 };
17092
17093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
17094 ecode1 = SWIG_AsVal_int(obj0, &val1);
17095 if (!SWIG_IsOK(ecode1)) {
17096 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
17097 }
17098 arg1 = static_cast< int >(val1);
17099 {
17100 PyThreadState* __tstate = wxPyBeginAllowThreads();
17101 result = (bool)wxLocale::IsAvailable(arg1);
17102 wxPyEndAllowThreads(__tstate);
17103 if (PyErr_Occurred()) SWIG_fail;
17104 }
17105 {
17106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17107 }
17108 return resultobj;
17109 fail:
17110 return NULL;
17111 }
17112
17113
17114 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17115 PyObject *resultobj = 0;
17116 wxLocale *arg1 = (wxLocale *) 0 ;
17117 wxString *arg2 = 0 ;
17118 bool result;
17119 void *argp1 = 0 ;
17120 int res1 = 0 ;
17121 bool temp2 = false ;
17122 PyObject * obj0 = 0 ;
17123 PyObject * obj1 = 0 ;
17124 char * kwnames[] = {
17125 (char *) "self",(char *) "szDomain", NULL
17126 };
17127
17128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
17129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17130 if (!SWIG_IsOK(res1)) {
17131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
17132 }
17133 arg1 = reinterpret_cast< wxLocale * >(argp1);
17134 {
17135 arg2 = wxString_in_helper(obj1);
17136 if (arg2 == NULL) SWIG_fail;
17137 temp2 = true;
17138 }
17139 {
17140 PyThreadState* __tstate = wxPyBeginAllowThreads();
17141 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
17142 wxPyEndAllowThreads(__tstate);
17143 if (PyErr_Occurred()) SWIG_fail;
17144 }
17145 {
17146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17147 }
17148 {
17149 if (temp2)
17150 delete arg2;
17151 }
17152 return resultobj;
17153 fail:
17154 {
17155 if (temp2)
17156 delete arg2;
17157 }
17158 return NULL;
17159 }
17160
17161
17162 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17163 PyObject *resultobj = 0;
17164 int arg1 ;
17165 wxLanguageInfo *result = 0 ;
17166 int val1 ;
17167 int ecode1 = 0 ;
17168 PyObject * obj0 = 0 ;
17169 char * kwnames[] = {
17170 (char *) "lang", NULL
17171 };
17172
17173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
17174 ecode1 = SWIG_AsVal_int(obj0, &val1);
17175 if (!SWIG_IsOK(ecode1)) {
17176 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
17177 }
17178 arg1 = static_cast< int >(val1);
17179 {
17180 PyThreadState* __tstate = wxPyBeginAllowThreads();
17181 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
17182 wxPyEndAllowThreads(__tstate);
17183 if (PyErr_Occurred()) SWIG_fail;
17184 }
17185 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17186 return resultobj;
17187 fail:
17188 return NULL;
17189 }
17190
17191
17192 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17193 PyObject *resultobj = 0;
17194 int arg1 ;
17195 wxString result;
17196 int val1 ;
17197 int ecode1 = 0 ;
17198 PyObject * obj0 = 0 ;
17199 char * kwnames[] = {
17200 (char *) "lang", NULL
17201 };
17202
17203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
17204 ecode1 = SWIG_AsVal_int(obj0, &val1);
17205 if (!SWIG_IsOK(ecode1)) {
17206 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
17207 }
17208 arg1 = static_cast< int >(val1);
17209 {
17210 PyThreadState* __tstate = wxPyBeginAllowThreads();
17211 result = wxLocale::GetLanguageName(arg1);
17212 wxPyEndAllowThreads(__tstate);
17213 if (PyErr_Occurred()) SWIG_fail;
17214 }
17215 {
17216 #if wxUSE_UNICODE
17217 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17218 #else
17219 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17220 #endif
17221 }
17222 return resultobj;
17223 fail:
17224 return NULL;
17225 }
17226
17227
17228 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17229 PyObject *resultobj = 0;
17230 wxString *arg1 = 0 ;
17231 wxLanguageInfo *result = 0 ;
17232 bool temp1 = false ;
17233 PyObject * obj0 = 0 ;
17234 char * kwnames[] = {
17235 (char *) "locale", NULL
17236 };
17237
17238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
17239 {
17240 arg1 = wxString_in_helper(obj0);
17241 if (arg1 == NULL) SWIG_fail;
17242 temp1 = true;
17243 }
17244 {
17245 PyThreadState* __tstate = wxPyBeginAllowThreads();
17246 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
17247 wxPyEndAllowThreads(__tstate);
17248 if (PyErr_Occurred()) SWIG_fail;
17249 }
17250 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17251 {
17252 if (temp1)
17253 delete arg1;
17254 }
17255 return resultobj;
17256 fail:
17257 {
17258 if (temp1)
17259 delete arg1;
17260 }
17261 return NULL;
17262 }
17263
17264
17265 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17266 PyObject *resultobj = 0;
17267 wxLanguageInfo *arg1 = 0 ;
17268 void *argp1 = 0 ;
17269 int res1 = 0 ;
17270 PyObject * obj0 = 0 ;
17271 char * kwnames[] = {
17272 (char *) "info", NULL
17273 };
17274
17275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
17276 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
17277 if (!SWIG_IsOK(res1)) {
17278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17279 }
17280 if (!argp1) {
17281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17282 }
17283 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
17284 {
17285 PyThreadState* __tstate = wxPyBeginAllowThreads();
17286 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
17287 wxPyEndAllowThreads(__tstate);
17288 if (PyErr_Occurred()) SWIG_fail;
17289 }
17290 resultobj = SWIG_Py_Void();
17291 return resultobj;
17292 fail:
17293 return NULL;
17294 }
17295
17296
17297 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17298 PyObject *resultobj = 0;
17299 wxLocale *arg1 = (wxLocale *) 0 ;
17300 wxString *arg2 = 0 ;
17301 wxString const &arg3_defvalue = wxPyEmptyString ;
17302 wxString *arg3 = (wxString *) &arg3_defvalue ;
17303 wxString result;
17304 void *argp1 = 0 ;
17305 int res1 = 0 ;
17306 bool temp2 = false ;
17307 bool temp3 = false ;
17308 PyObject * obj0 = 0 ;
17309 PyObject * obj1 = 0 ;
17310 PyObject * obj2 = 0 ;
17311 char * kwnames[] = {
17312 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17313 };
17314
17315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17317 if (!SWIG_IsOK(res1)) {
17318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
17319 }
17320 arg1 = reinterpret_cast< wxLocale * >(argp1);
17321 {
17322 arg2 = wxString_in_helper(obj1);
17323 if (arg2 == NULL) SWIG_fail;
17324 temp2 = true;
17325 }
17326 if (obj2) {
17327 {
17328 arg3 = wxString_in_helper(obj2);
17329 if (arg3 == NULL) SWIG_fail;
17330 temp3 = true;
17331 }
17332 }
17333 {
17334 PyThreadState* __tstate = wxPyBeginAllowThreads();
17335 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
17336 wxPyEndAllowThreads(__tstate);
17337 if (PyErr_Occurred()) SWIG_fail;
17338 }
17339 {
17340 #if wxUSE_UNICODE
17341 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17342 #else
17343 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17344 #endif
17345 }
17346 {
17347 if (temp2)
17348 delete arg2;
17349 }
17350 {
17351 if (temp3)
17352 delete arg3;
17353 }
17354 return resultobj;
17355 fail:
17356 {
17357 if (temp2)
17358 delete arg2;
17359 }
17360 {
17361 if (temp3)
17362 delete arg3;
17363 }
17364 return NULL;
17365 }
17366
17367
17368 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17369 PyObject *resultobj = 0;
17370 wxLocale *arg1 = (wxLocale *) 0 ;
17371 wxString *result = 0 ;
17372 void *argp1 = 0 ;
17373 int res1 = 0 ;
17374 PyObject *swig_obj[1] ;
17375
17376 if (!args) SWIG_fail;
17377 swig_obj[0] = args;
17378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17379 if (!SWIG_IsOK(res1)) {
17380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
17381 }
17382 arg1 = reinterpret_cast< wxLocale * >(argp1);
17383 {
17384 PyThreadState* __tstate = wxPyBeginAllowThreads();
17385 {
17386 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
17387 result = (wxString *) &_result_ref;
17388 }
17389 wxPyEndAllowThreads(__tstate);
17390 if (PyErr_Occurred()) SWIG_fail;
17391 }
17392 {
17393 #if wxUSE_UNICODE
17394 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17395 #else
17396 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17397 #endif
17398 }
17399 return resultobj;
17400 fail:
17401 return NULL;
17402 }
17403
17404
17405 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17406 PyObject *obj;
17407 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17408 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
17409 return SWIG_Py_Void();
17410 }
17411
17412 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17413 return SWIG_Python_InitShadowInstance(args);
17414 }
17415
17416 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17417 PyObject *resultobj = 0;
17418 int arg1 = (int) -1 ;
17419 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
17420 wxPyLocale *result = 0 ;
17421 int val1 ;
17422 int ecode1 = 0 ;
17423 int val2 ;
17424 int ecode2 = 0 ;
17425 PyObject * obj0 = 0 ;
17426 PyObject * obj1 = 0 ;
17427 char * kwnames[] = {
17428 (char *) "language",(char *) "flags", NULL
17429 };
17430
17431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
17432 if (obj0) {
17433 ecode1 = SWIG_AsVal_int(obj0, &val1);
17434 if (!SWIG_IsOK(ecode1)) {
17435 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
17436 }
17437 arg1 = static_cast< int >(val1);
17438 }
17439 if (obj1) {
17440 ecode2 = SWIG_AsVal_int(obj1, &val2);
17441 if (!SWIG_IsOK(ecode2)) {
17442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
17443 }
17444 arg2 = static_cast< int >(val2);
17445 }
17446 {
17447 PyThreadState* __tstate = wxPyBeginAllowThreads();
17448 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
17449 wxPyEndAllowThreads(__tstate);
17450 if (PyErr_Occurred()) SWIG_fail;
17451 }
17452 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
17453 return resultobj;
17454 fail:
17455 return NULL;
17456 }
17457
17458
17459 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17460 PyObject *resultobj = 0;
17461 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17462 void *argp1 = 0 ;
17463 int res1 = 0 ;
17464 PyObject *swig_obj[1] ;
17465
17466 if (!args) SWIG_fail;
17467 swig_obj[0] = args;
17468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
17469 if (!SWIG_IsOK(res1)) {
17470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17471 }
17472 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17473 {
17474 PyThreadState* __tstate = wxPyBeginAllowThreads();
17475 delete arg1;
17476
17477 wxPyEndAllowThreads(__tstate);
17478 if (PyErr_Occurred()) SWIG_fail;
17479 }
17480 resultobj = SWIG_Py_Void();
17481 return resultobj;
17482 fail:
17483 return NULL;
17484 }
17485
17486
17487 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17488 PyObject *resultobj = 0;
17489 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17490 PyObject *arg2 = (PyObject *) 0 ;
17491 PyObject *arg3 = (PyObject *) 0 ;
17492 void *argp1 = 0 ;
17493 int res1 = 0 ;
17494 PyObject * obj0 = 0 ;
17495 PyObject * obj1 = 0 ;
17496 PyObject * obj2 = 0 ;
17497 char * kwnames[] = {
17498 (char *) "self",(char *) "self",(char *) "_class", NULL
17499 };
17500
17501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17503 if (!SWIG_IsOK(res1)) {
17504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17505 }
17506 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17507 arg2 = obj1;
17508 arg3 = obj2;
17509 {
17510 PyThreadState* __tstate = wxPyBeginAllowThreads();
17511 (arg1)->_setCallbackInfo(arg2,arg3);
17512 wxPyEndAllowThreads(__tstate);
17513 if (PyErr_Occurred()) SWIG_fail;
17514 }
17515 resultobj = SWIG_Py_Void();
17516 return resultobj;
17517 fail:
17518 return NULL;
17519 }
17520
17521
17522 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17523 PyObject *resultobj = 0;
17524 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17525 wxChar *arg2 = (wxChar *) 0 ;
17526 wxChar *arg3 = (wxChar *) NULL ;
17527 wxChar *result = 0 ;
17528 void *argp1 = 0 ;
17529 int res1 = 0 ;
17530 void *argp2 = 0 ;
17531 int res2 = 0 ;
17532 void *argp3 = 0 ;
17533 int res3 = 0 ;
17534 PyObject * obj0 = 0 ;
17535 PyObject * obj1 = 0 ;
17536 PyObject * obj2 = 0 ;
17537 char * kwnames[] = {
17538 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17539 };
17540
17541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17543 if (!SWIG_IsOK(res1)) {
17544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17545 }
17546 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17547 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17548 if (!SWIG_IsOK(res2)) {
17549 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
17550 }
17551 arg2 = reinterpret_cast< wxChar * >(argp2);
17552 if (obj2) {
17553 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17554 if (!SWIG_IsOK(res3)) {
17555 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
17556 }
17557 arg3 = reinterpret_cast< wxChar * >(argp3);
17558 }
17559 {
17560 PyThreadState* __tstate = wxPyBeginAllowThreads();
17561 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
17562 wxPyEndAllowThreads(__tstate);
17563 if (PyErr_Occurred()) SWIG_fail;
17564 }
17565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17566 return resultobj;
17567 fail:
17568 return NULL;
17569 }
17570
17571
17572 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17573 PyObject *resultobj = 0;
17574 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17575 wxChar *arg2 = (wxChar *) 0 ;
17576 wxChar *arg3 = (wxChar *) 0 ;
17577 size_t arg4 ;
17578 wxChar *arg5 = (wxChar *) NULL ;
17579 wxChar *result = 0 ;
17580 void *argp1 = 0 ;
17581 int res1 = 0 ;
17582 void *argp2 = 0 ;
17583 int res2 = 0 ;
17584 void *argp3 = 0 ;
17585 int res3 = 0 ;
17586 size_t val4 ;
17587 int ecode4 = 0 ;
17588 void *argp5 = 0 ;
17589 int res5 = 0 ;
17590 PyObject * obj0 = 0 ;
17591 PyObject * obj1 = 0 ;
17592 PyObject * obj2 = 0 ;
17593 PyObject * obj3 = 0 ;
17594 PyObject * obj4 = 0 ;
17595 char * kwnames[] = {
17596 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
17597 };
17598
17599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17601 if (!SWIG_IsOK(res1)) {
17602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17603 }
17604 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17605 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17606 if (!SWIG_IsOK(res2)) {
17607 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
17608 }
17609 arg2 = reinterpret_cast< wxChar * >(argp2);
17610 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17611 if (!SWIG_IsOK(res3)) {
17612 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
17613 }
17614 arg3 = reinterpret_cast< wxChar * >(argp3);
17615 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17616 if (!SWIG_IsOK(ecode4)) {
17617 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17618 }
17619 arg4 = static_cast< size_t >(val4);
17620 if (obj4) {
17621 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
17622 if (!SWIG_IsOK(res5)) {
17623 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
17624 }
17625 arg5 = reinterpret_cast< wxChar * >(argp5);
17626 }
17627 {
17628 PyThreadState* __tstate = wxPyBeginAllowThreads();
17629 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
17630 wxPyEndAllowThreads(__tstate);
17631 if (PyErr_Occurred()) SWIG_fail;
17632 }
17633 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17634 return resultobj;
17635 fail:
17636 return NULL;
17637 }
17638
17639
17640 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17641 PyObject *obj;
17642 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17643 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
17644 return SWIG_Py_Void();
17645 }
17646
17647 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17648 return SWIG_Python_InitShadowInstance(args);
17649 }
17650
17651 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17652 PyObject *resultobj = 0;
17653 wxLocale *result = 0 ;
17654
17655 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17656 {
17657 PyThreadState* __tstate = wxPyBeginAllowThreads();
17658 result = (wxLocale *)wxGetLocale();
17659 wxPyEndAllowThreads(__tstate);
17660 if (PyErr_Occurred()) SWIG_fail;
17661 }
17662 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17663 return resultobj;
17664 fail:
17665 return NULL;
17666 }
17667
17668
17669 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17670 PyObject *resultobj = 0;
17671 wxString *arg1 = 0 ;
17672 wxString result;
17673 bool temp1 = false ;
17674
17675 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17676 {
17677 arg1 = wxString_in_helper(swig_obj[0]);
17678 if (arg1 == NULL) SWIG_fail;
17679 temp1 = true;
17680 }
17681 {
17682 PyThreadState* __tstate = wxPyBeginAllowThreads();
17683 result = wxGetTranslation((wxString const &)*arg1);
17684 wxPyEndAllowThreads(__tstate);
17685 if (PyErr_Occurred()) SWIG_fail;
17686 }
17687 {
17688 #if wxUSE_UNICODE
17689 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17690 #else
17691 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17692 #endif
17693 }
17694 {
17695 if (temp1)
17696 delete arg1;
17697 }
17698 return resultobj;
17699 fail:
17700 {
17701 if (temp1)
17702 delete arg1;
17703 }
17704 return NULL;
17705 }
17706
17707
17708 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17709 PyObject *resultobj = 0;
17710 wxString *arg1 = 0 ;
17711 wxString *arg2 = 0 ;
17712 wxString result;
17713 bool temp1 = false ;
17714 bool temp2 = false ;
17715
17716 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17717 {
17718 arg1 = wxString_in_helper(swig_obj[0]);
17719 if (arg1 == NULL) SWIG_fail;
17720 temp1 = true;
17721 }
17722 {
17723 arg2 = wxString_in_helper(swig_obj[1]);
17724 if (arg2 == NULL) SWIG_fail;
17725 temp2 = true;
17726 }
17727 {
17728 PyThreadState* __tstate = wxPyBeginAllowThreads();
17729 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17730 wxPyEndAllowThreads(__tstate);
17731 if (PyErr_Occurred()) SWIG_fail;
17732 }
17733 {
17734 #if wxUSE_UNICODE
17735 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17736 #else
17737 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17738 #endif
17739 }
17740 {
17741 if (temp1)
17742 delete arg1;
17743 }
17744 {
17745 if (temp2)
17746 delete arg2;
17747 }
17748 return resultobj;
17749 fail:
17750 {
17751 if (temp1)
17752 delete arg1;
17753 }
17754 {
17755 if (temp2)
17756 delete arg2;
17757 }
17758 return NULL;
17759 }
17760
17761
17762 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17763 PyObject *resultobj = 0;
17764 wxString *arg1 = 0 ;
17765 wxString *arg2 = 0 ;
17766 size_t arg3 ;
17767 wxString result;
17768 bool temp1 = false ;
17769 bool temp2 = false ;
17770 size_t val3 ;
17771 int ecode3 = 0 ;
17772
17773 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17774 {
17775 arg1 = wxString_in_helper(swig_obj[0]);
17776 if (arg1 == NULL) SWIG_fail;
17777 temp1 = true;
17778 }
17779 {
17780 arg2 = wxString_in_helper(swig_obj[1]);
17781 if (arg2 == NULL) SWIG_fail;
17782 temp2 = true;
17783 }
17784 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17785 if (!SWIG_IsOK(ecode3)) {
17786 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17787 }
17788 arg3 = static_cast< size_t >(val3);
17789 {
17790 PyThreadState* __tstate = wxPyBeginAllowThreads();
17791 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17792 wxPyEndAllowThreads(__tstate);
17793 if (PyErr_Occurred()) SWIG_fail;
17794 }
17795 {
17796 #if wxUSE_UNICODE
17797 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17798 #else
17799 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17800 #endif
17801 }
17802 {
17803 if (temp1)
17804 delete arg1;
17805 }
17806 {
17807 if (temp2)
17808 delete arg2;
17809 }
17810 return resultobj;
17811 fail:
17812 {
17813 if (temp1)
17814 delete arg1;
17815 }
17816 {
17817 if (temp2)
17818 delete arg2;
17819 }
17820 return NULL;
17821 }
17822
17823
17824 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17825 PyObject *resultobj = 0;
17826 wxString *arg1 = 0 ;
17827 wxString *arg2 = 0 ;
17828 size_t arg3 ;
17829 wxString *arg4 = 0 ;
17830 wxString result;
17831 bool temp1 = false ;
17832 bool temp2 = false ;
17833 size_t val3 ;
17834 int ecode3 = 0 ;
17835 bool temp4 = false ;
17836
17837 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17838 {
17839 arg1 = wxString_in_helper(swig_obj[0]);
17840 if (arg1 == NULL) SWIG_fail;
17841 temp1 = true;
17842 }
17843 {
17844 arg2 = wxString_in_helper(swig_obj[1]);
17845 if (arg2 == NULL) SWIG_fail;
17846 temp2 = true;
17847 }
17848 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17849 if (!SWIG_IsOK(ecode3)) {
17850 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17851 }
17852 arg3 = static_cast< size_t >(val3);
17853 {
17854 arg4 = wxString_in_helper(swig_obj[3]);
17855 if (arg4 == NULL) SWIG_fail;
17856 temp4 = true;
17857 }
17858 {
17859 PyThreadState* __tstate = wxPyBeginAllowThreads();
17860 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17861 wxPyEndAllowThreads(__tstate);
17862 if (PyErr_Occurred()) SWIG_fail;
17863 }
17864 {
17865 #if wxUSE_UNICODE
17866 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17867 #else
17868 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17869 #endif
17870 }
17871 {
17872 if (temp1)
17873 delete arg1;
17874 }
17875 {
17876 if (temp2)
17877 delete arg2;
17878 }
17879 {
17880 if (temp4)
17881 delete arg4;
17882 }
17883 return resultobj;
17884 fail:
17885 {
17886 if (temp1)
17887 delete arg1;
17888 }
17889 {
17890 if (temp2)
17891 delete arg2;
17892 }
17893 {
17894 if (temp4)
17895 delete arg4;
17896 }
17897 return NULL;
17898 }
17899
17900
17901 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17902 int argc;
17903 PyObject *argv[5];
17904
17905 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
17906 --argc;
17907 if (argc == 1) {
17908 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17909 }
17910 if (argc == 2) {
17911 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17912 }
17913 if (argc == 3) {
17914 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17915 }
17916 if (argc == 4) {
17917 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17918 }
17919
17920 fail:
17921 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17922 return NULL;
17923 }
17924
17925
17926 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17927 PyObject *resultobj = 0;
17928 wxEncodingConverter *result = 0 ;
17929
17930 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17931 {
17932 PyThreadState* __tstate = wxPyBeginAllowThreads();
17933 result = (wxEncodingConverter *)new wxEncodingConverter();
17934 wxPyEndAllowThreads(__tstate);
17935 if (PyErr_Occurred()) SWIG_fail;
17936 }
17937 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17938 return resultobj;
17939 fail:
17940 return NULL;
17941 }
17942
17943
17944 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17945 PyObject *resultobj = 0;
17946 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17947 void *argp1 = 0 ;
17948 int res1 = 0 ;
17949 PyObject *swig_obj[1] ;
17950
17951 if (!args) SWIG_fail;
17952 swig_obj[0] = args;
17953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17954 if (!SWIG_IsOK(res1)) {
17955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17956 }
17957 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17958 {
17959 PyThreadState* __tstate = wxPyBeginAllowThreads();
17960 delete arg1;
17961
17962 wxPyEndAllowThreads(__tstate);
17963 if (PyErr_Occurred()) SWIG_fail;
17964 }
17965 resultobj = SWIG_Py_Void();
17966 return resultobj;
17967 fail:
17968 return NULL;
17969 }
17970
17971
17972 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17973 PyObject *resultobj = 0;
17974 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17975 wxFontEncoding arg2 ;
17976 wxFontEncoding arg3 ;
17977 int arg4 = (int) wxCONVERT_STRICT ;
17978 bool result;
17979 void *argp1 = 0 ;
17980 int res1 = 0 ;
17981 int val2 ;
17982 int ecode2 = 0 ;
17983 int val3 ;
17984 int ecode3 = 0 ;
17985 int val4 ;
17986 int ecode4 = 0 ;
17987 PyObject * obj0 = 0 ;
17988 PyObject * obj1 = 0 ;
17989 PyObject * obj2 = 0 ;
17990 PyObject * obj3 = 0 ;
17991 char * kwnames[] = {
17992 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17993 };
17994
17995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17997 if (!SWIG_IsOK(res1)) {
17998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17999 }
18000 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
18001 ecode2 = SWIG_AsVal_int(obj1, &val2);
18002 if (!SWIG_IsOK(ecode2)) {
18003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
18004 }
18005 arg2 = static_cast< wxFontEncoding >(val2);
18006 ecode3 = SWIG_AsVal_int(obj2, &val3);
18007 if (!SWIG_IsOK(ecode3)) {
18008 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
18009 }
18010 arg3 = static_cast< wxFontEncoding >(val3);
18011 if (obj3) {
18012 ecode4 = SWIG_AsVal_int(obj3, &val4);
18013 if (!SWIG_IsOK(ecode4)) {
18014 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
18015 }
18016 arg4 = static_cast< int >(val4);
18017 }
18018 {
18019 PyThreadState* __tstate = wxPyBeginAllowThreads();
18020 result = (bool)(arg1)->Init(arg2,arg3,arg4);
18021 wxPyEndAllowThreads(__tstate);
18022 if (PyErr_Occurred()) SWIG_fail;
18023 }
18024 {
18025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18026 }
18027 return resultobj;
18028 fail:
18029 return NULL;
18030 }
18031
18032
18033 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18034 PyObject *resultobj = 0;
18035 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
18036 wxString *arg2 = 0 ;
18037 wxString result;
18038 void *argp1 = 0 ;
18039 int res1 = 0 ;
18040 bool temp2 = false ;
18041 PyObject * obj0 = 0 ;
18042 PyObject * obj1 = 0 ;
18043 char * kwnames[] = {
18044 (char *) "self",(char *) "input", NULL
18045 };
18046
18047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
18048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
18049 if (!SWIG_IsOK(res1)) {
18050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
18051 }
18052 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
18053 {
18054 arg2 = wxString_in_helper(obj1);
18055 if (arg2 == NULL) SWIG_fail;
18056 temp2 = true;
18057 }
18058 {
18059 PyThreadState* __tstate = wxPyBeginAllowThreads();
18060 result = (arg1)->Convert((wxString const &)*arg2);
18061 wxPyEndAllowThreads(__tstate);
18062 if (PyErr_Occurred()) SWIG_fail;
18063 }
18064 {
18065 #if wxUSE_UNICODE
18066 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18067 #else
18068 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18069 #endif
18070 }
18071 {
18072 if (temp2)
18073 delete arg2;
18074 }
18075 return resultobj;
18076 fail:
18077 {
18078 if (temp2)
18079 delete arg2;
18080 }
18081 return NULL;
18082 }
18083
18084
18085 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18086 PyObject *resultobj = 0;
18087 wxFontEncoding arg1 ;
18088 int arg2 = (int) wxPLATFORM_CURRENT ;
18089 wxFontEncodingArray result;
18090 int val1 ;
18091 int ecode1 = 0 ;
18092 int val2 ;
18093 int ecode2 = 0 ;
18094 PyObject * obj0 = 0 ;
18095 PyObject * obj1 = 0 ;
18096 char * kwnames[] = {
18097 (char *) "enc",(char *) "platform", NULL
18098 };
18099
18100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
18101 ecode1 = SWIG_AsVal_int(obj0, &val1);
18102 if (!SWIG_IsOK(ecode1)) {
18103 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18104 }
18105 arg1 = static_cast< wxFontEncoding >(val1);
18106 if (obj1) {
18107 ecode2 = SWIG_AsVal_int(obj1, &val2);
18108 if (!SWIG_IsOK(ecode2)) {
18109 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
18110 }
18111 arg2 = static_cast< int >(val2);
18112 }
18113 {
18114 PyThreadState* __tstate = wxPyBeginAllowThreads();
18115 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
18116 wxPyEndAllowThreads(__tstate);
18117 if (PyErr_Occurred()) SWIG_fail;
18118 }
18119 {
18120 resultobj = PyList_New(0);
18121 for (size_t i=0; i < (&result)->GetCount(); i++) {
18122 PyObject* number = PyInt_FromLong((&result)->Item(i));
18123 PyList_Append(resultobj, number);
18124 Py_DECREF(number);
18125 }
18126 }
18127 return resultobj;
18128 fail:
18129 return NULL;
18130 }
18131
18132
18133 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18134 PyObject *resultobj = 0;
18135 wxFontEncoding arg1 ;
18136 wxFontEncodingArray result;
18137 int val1 ;
18138 int ecode1 = 0 ;
18139 PyObject * obj0 = 0 ;
18140 char * kwnames[] = {
18141 (char *) "enc", NULL
18142 };
18143
18144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
18145 ecode1 = SWIG_AsVal_int(obj0, &val1);
18146 if (!SWIG_IsOK(ecode1)) {
18147 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18148 }
18149 arg1 = static_cast< wxFontEncoding >(val1);
18150 {
18151 PyThreadState* __tstate = wxPyBeginAllowThreads();
18152 result = wxEncodingConverter::GetAllEquivalents(arg1);
18153 wxPyEndAllowThreads(__tstate);
18154 if (PyErr_Occurred()) SWIG_fail;
18155 }
18156 {
18157 resultobj = PyList_New(0);
18158 for (size_t i=0; i < (&result)->GetCount(); i++) {
18159 PyObject* number = PyInt_FromLong((&result)->Item(i));
18160 PyList_Append(resultobj, number);
18161 Py_DECREF(number);
18162 }
18163 }
18164 return resultobj;
18165 fail:
18166 return NULL;
18167 }
18168
18169
18170 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18171 PyObject *resultobj = 0;
18172 wxFontEncoding arg1 ;
18173 wxFontEncoding arg2 ;
18174 bool result;
18175 int val1 ;
18176 int ecode1 = 0 ;
18177 int val2 ;
18178 int ecode2 = 0 ;
18179 PyObject * obj0 = 0 ;
18180 PyObject * obj1 = 0 ;
18181 char * kwnames[] = {
18182 (char *) "encIn",(char *) "encOut", NULL
18183 };
18184
18185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
18186 ecode1 = SWIG_AsVal_int(obj0, &val1);
18187 if (!SWIG_IsOK(ecode1)) {
18188 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18189 }
18190 arg1 = static_cast< wxFontEncoding >(val1);
18191 ecode2 = SWIG_AsVal_int(obj1, &val2);
18192 if (!SWIG_IsOK(ecode2)) {
18193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
18194 }
18195 arg2 = static_cast< wxFontEncoding >(val2);
18196 {
18197 PyThreadState* __tstate = wxPyBeginAllowThreads();
18198 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
18199 wxPyEndAllowThreads(__tstate);
18200 if (PyErr_Occurred()) SWIG_fail;
18201 }
18202 {
18203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18204 }
18205 return resultobj;
18206 fail:
18207 return NULL;
18208 }
18209
18210
18211 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18212 PyObject *obj;
18213 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18214 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
18215 return SWIG_Py_Void();
18216 }
18217
18218 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18219 return SWIG_Python_InitShadowInstance(args);
18220 }
18221
18222 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18223 PyObject *resultobj = 0;
18224 wxDC *arg1 = (wxDC *) 0 ;
18225 void *argp1 = 0 ;
18226 int res1 = 0 ;
18227 PyObject *swig_obj[1] ;
18228
18229 if (!args) SWIG_fail;
18230 swig_obj[0] = args;
18231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
18232 if (!SWIG_IsOK(res1)) {
18233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
18234 }
18235 arg1 = reinterpret_cast< wxDC * >(argp1);
18236 {
18237 PyThreadState* __tstate = wxPyBeginAllowThreads();
18238 delete arg1;
18239
18240 wxPyEndAllowThreads(__tstate);
18241 if (PyErr_Occurred()) SWIG_fail;
18242 }
18243 resultobj = SWIG_Py_Void();
18244 return resultobj;
18245 fail:
18246 return NULL;
18247 }
18248
18249
18250 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18251 PyObject *resultobj = 0;
18252 wxDC *arg1 = (wxDC *) 0 ;
18253 int arg2 ;
18254 int arg3 ;
18255 wxColour *arg4 = 0 ;
18256 int arg5 = (int) wxFLOOD_SURFACE ;
18257 bool result;
18258 void *argp1 = 0 ;
18259 int res1 = 0 ;
18260 int val2 ;
18261 int ecode2 = 0 ;
18262 int val3 ;
18263 int ecode3 = 0 ;
18264 wxColour temp4 ;
18265 int val5 ;
18266 int ecode5 = 0 ;
18267 PyObject * obj0 = 0 ;
18268 PyObject * obj1 = 0 ;
18269 PyObject * obj2 = 0 ;
18270 PyObject * obj3 = 0 ;
18271 PyObject * obj4 = 0 ;
18272 char * kwnames[] = {
18273 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
18274 };
18275
18276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18278 if (!SWIG_IsOK(res1)) {
18279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
18280 }
18281 arg1 = reinterpret_cast< wxDC * >(argp1);
18282 ecode2 = SWIG_AsVal_int(obj1, &val2);
18283 if (!SWIG_IsOK(ecode2)) {
18284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
18285 }
18286 arg2 = static_cast< int >(val2);
18287 ecode3 = SWIG_AsVal_int(obj2, &val3);
18288 if (!SWIG_IsOK(ecode3)) {
18289 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
18290 }
18291 arg3 = static_cast< int >(val3);
18292 {
18293 arg4 = &temp4;
18294 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18295 }
18296 if (obj4) {
18297 ecode5 = SWIG_AsVal_int(obj4, &val5);
18298 if (!SWIG_IsOK(ecode5)) {
18299 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
18300 }
18301 arg5 = static_cast< int >(val5);
18302 }
18303 {
18304 PyThreadState* __tstate = wxPyBeginAllowThreads();
18305 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
18306 wxPyEndAllowThreads(__tstate);
18307 if (PyErr_Occurred()) SWIG_fail;
18308 }
18309 {
18310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18311 }
18312 return resultobj;
18313 fail:
18314 return NULL;
18315 }
18316
18317
18318 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18319 PyObject *resultobj = 0;
18320 wxDC *arg1 = (wxDC *) 0 ;
18321 wxPoint *arg2 = 0 ;
18322 wxColour *arg3 = 0 ;
18323 int arg4 = (int) wxFLOOD_SURFACE ;
18324 bool result;
18325 void *argp1 = 0 ;
18326 int res1 = 0 ;
18327 wxPoint temp2 ;
18328 wxColour temp3 ;
18329 int val4 ;
18330 int ecode4 = 0 ;
18331 PyObject * obj0 = 0 ;
18332 PyObject * obj1 = 0 ;
18333 PyObject * obj2 = 0 ;
18334 PyObject * obj3 = 0 ;
18335 char * kwnames[] = {
18336 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
18337 };
18338
18339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18341 if (!SWIG_IsOK(res1)) {
18342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18343 }
18344 arg1 = reinterpret_cast< wxDC * >(argp1);
18345 {
18346 arg2 = &temp2;
18347 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18348 }
18349 {
18350 arg3 = &temp3;
18351 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18352 }
18353 if (obj3) {
18354 ecode4 = SWIG_AsVal_int(obj3, &val4);
18355 if (!SWIG_IsOK(ecode4)) {
18356 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
18357 }
18358 arg4 = static_cast< int >(val4);
18359 }
18360 {
18361 PyThreadState* __tstate = wxPyBeginAllowThreads();
18362 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
18363 wxPyEndAllowThreads(__tstate);
18364 if (PyErr_Occurred()) SWIG_fail;
18365 }
18366 {
18367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18368 }
18369 return resultobj;
18370 fail:
18371 return NULL;
18372 }
18373
18374
18375 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18376 PyObject *resultobj = 0;
18377 wxDC *arg1 = (wxDC *) 0 ;
18378 wxRect *arg2 = 0 ;
18379 wxColour *arg3 = 0 ;
18380 wxColour *arg4 = 0 ;
18381 wxPoint *arg5 = 0 ;
18382 void *argp1 = 0 ;
18383 int res1 = 0 ;
18384 wxRect temp2 ;
18385 wxColour temp3 ;
18386 wxColour temp4 ;
18387 wxPoint temp5 ;
18388 PyObject * obj0 = 0 ;
18389 PyObject * obj1 = 0 ;
18390 PyObject * obj2 = 0 ;
18391 PyObject * obj3 = 0 ;
18392 PyObject * obj4 = 0 ;
18393 char * kwnames[] = {
18394 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
18395 };
18396
18397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18399 if (!SWIG_IsOK(res1)) {
18400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
18401 }
18402 arg1 = reinterpret_cast< wxDC * >(argp1);
18403 {
18404 arg2 = &temp2;
18405 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18406 }
18407 {
18408 arg3 = &temp3;
18409 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18410 }
18411 {
18412 arg4 = &temp4;
18413 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18414 }
18415 {
18416 arg5 = &temp5;
18417 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18418 }
18419 {
18420 PyThreadState* __tstate = wxPyBeginAllowThreads();
18421 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
18422 wxPyEndAllowThreads(__tstate);
18423 if (PyErr_Occurred()) SWIG_fail;
18424 }
18425 resultobj = SWIG_Py_Void();
18426 return resultobj;
18427 fail:
18428 return NULL;
18429 }
18430
18431
18432 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18433 PyObject *resultobj = 0;
18434 wxDC *arg1 = (wxDC *) 0 ;
18435 wxRect *arg2 = 0 ;
18436 wxColour *arg3 = 0 ;
18437 wxColour *arg4 = 0 ;
18438 wxDirection arg5 = (wxDirection) wxEAST ;
18439 void *argp1 = 0 ;
18440 int res1 = 0 ;
18441 wxRect temp2 ;
18442 wxColour temp3 ;
18443 wxColour temp4 ;
18444 int val5 ;
18445 int ecode5 = 0 ;
18446 PyObject * obj0 = 0 ;
18447 PyObject * obj1 = 0 ;
18448 PyObject * obj2 = 0 ;
18449 PyObject * obj3 = 0 ;
18450 PyObject * obj4 = 0 ;
18451 char * kwnames[] = {
18452 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
18453 };
18454
18455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18457 if (!SWIG_IsOK(res1)) {
18458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
18459 }
18460 arg1 = reinterpret_cast< wxDC * >(argp1);
18461 {
18462 arg2 = &temp2;
18463 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18464 }
18465 {
18466 arg3 = &temp3;
18467 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18468 }
18469 {
18470 arg4 = &temp4;
18471 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18472 }
18473 if (obj4) {
18474 ecode5 = SWIG_AsVal_int(obj4, &val5);
18475 if (!SWIG_IsOK(ecode5)) {
18476 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
18477 }
18478 arg5 = static_cast< wxDirection >(val5);
18479 }
18480 {
18481 PyThreadState* __tstate = wxPyBeginAllowThreads();
18482 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
18483 wxPyEndAllowThreads(__tstate);
18484 if (PyErr_Occurred()) SWIG_fail;
18485 }
18486 resultobj = SWIG_Py_Void();
18487 return resultobj;
18488 fail:
18489 return NULL;
18490 }
18491
18492
18493 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18494 PyObject *resultobj = 0;
18495 wxDC *arg1 = (wxDC *) 0 ;
18496 int arg2 ;
18497 int arg3 ;
18498 wxColour result;
18499 void *argp1 = 0 ;
18500 int res1 = 0 ;
18501 int val2 ;
18502 int ecode2 = 0 ;
18503 int val3 ;
18504 int ecode3 = 0 ;
18505 PyObject * obj0 = 0 ;
18506 PyObject * obj1 = 0 ;
18507 PyObject * obj2 = 0 ;
18508 char * kwnames[] = {
18509 (char *) "self",(char *) "x",(char *) "y", NULL
18510 };
18511
18512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18514 if (!SWIG_IsOK(res1)) {
18515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
18516 }
18517 arg1 = reinterpret_cast< wxDC * >(argp1);
18518 ecode2 = SWIG_AsVal_int(obj1, &val2);
18519 if (!SWIG_IsOK(ecode2)) {
18520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
18521 }
18522 arg2 = static_cast< int >(val2);
18523 ecode3 = SWIG_AsVal_int(obj2, &val3);
18524 if (!SWIG_IsOK(ecode3)) {
18525 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
18526 }
18527 arg3 = static_cast< int >(val3);
18528 {
18529 PyThreadState* __tstate = wxPyBeginAllowThreads();
18530 result = wxDC_GetPixel(arg1,arg2,arg3);
18531 wxPyEndAllowThreads(__tstate);
18532 if (PyErr_Occurred()) SWIG_fail;
18533 }
18534 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18535 return resultobj;
18536 fail:
18537 return NULL;
18538 }
18539
18540
18541 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18542 PyObject *resultobj = 0;
18543 wxDC *arg1 = (wxDC *) 0 ;
18544 wxPoint *arg2 = 0 ;
18545 wxColour result;
18546 void *argp1 = 0 ;
18547 int res1 = 0 ;
18548 wxPoint temp2 ;
18549 PyObject * obj0 = 0 ;
18550 PyObject * obj1 = 0 ;
18551 char * kwnames[] = {
18552 (char *) "self",(char *) "pt", NULL
18553 };
18554
18555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18557 if (!SWIG_IsOK(res1)) {
18558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18559 }
18560 arg1 = reinterpret_cast< wxDC * >(argp1);
18561 {
18562 arg2 = &temp2;
18563 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18564 }
18565 {
18566 PyThreadState* __tstate = wxPyBeginAllowThreads();
18567 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
18568 wxPyEndAllowThreads(__tstate);
18569 if (PyErr_Occurred()) SWIG_fail;
18570 }
18571 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18572 return resultobj;
18573 fail:
18574 return NULL;
18575 }
18576
18577
18578 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18579 PyObject *resultobj = 0;
18580 wxDC *arg1 = (wxDC *) 0 ;
18581 int arg2 ;
18582 int arg3 ;
18583 int arg4 ;
18584 int arg5 ;
18585 void *argp1 = 0 ;
18586 int res1 = 0 ;
18587 int val2 ;
18588 int ecode2 = 0 ;
18589 int val3 ;
18590 int ecode3 = 0 ;
18591 int val4 ;
18592 int ecode4 = 0 ;
18593 int val5 ;
18594 int ecode5 = 0 ;
18595 PyObject * obj0 = 0 ;
18596 PyObject * obj1 = 0 ;
18597 PyObject * obj2 = 0 ;
18598 PyObject * obj3 = 0 ;
18599 PyObject * obj4 = 0 ;
18600 char * kwnames[] = {
18601 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18602 };
18603
18604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18606 if (!SWIG_IsOK(res1)) {
18607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18608 }
18609 arg1 = reinterpret_cast< wxDC * >(argp1);
18610 ecode2 = SWIG_AsVal_int(obj1, &val2);
18611 if (!SWIG_IsOK(ecode2)) {
18612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18613 }
18614 arg2 = static_cast< int >(val2);
18615 ecode3 = SWIG_AsVal_int(obj2, &val3);
18616 if (!SWIG_IsOK(ecode3)) {
18617 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18618 }
18619 arg3 = static_cast< int >(val3);
18620 ecode4 = SWIG_AsVal_int(obj3, &val4);
18621 if (!SWIG_IsOK(ecode4)) {
18622 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18623 }
18624 arg4 = static_cast< int >(val4);
18625 ecode5 = SWIG_AsVal_int(obj4, &val5);
18626 if (!SWIG_IsOK(ecode5)) {
18627 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18628 }
18629 arg5 = static_cast< int >(val5);
18630 {
18631 PyThreadState* __tstate = wxPyBeginAllowThreads();
18632 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18633 wxPyEndAllowThreads(__tstate);
18634 if (PyErr_Occurred()) SWIG_fail;
18635 }
18636 resultobj = SWIG_Py_Void();
18637 return resultobj;
18638 fail:
18639 return NULL;
18640 }
18641
18642
18643 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18644 PyObject *resultobj = 0;
18645 wxDC *arg1 = (wxDC *) 0 ;
18646 wxPoint *arg2 = 0 ;
18647 wxPoint *arg3 = 0 ;
18648 void *argp1 = 0 ;
18649 int res1 = 0 ;
18650 wxPoint temp2 ;
18651 wxPoint temp3 ;
18652 PyObject * obj0 = 0 ;
18653 PyObject * obj1 = 0 ;
18654 PyObject * obj2 = 0 ;
18655 char * kwnames[] = {
18656 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18657 };
18658
18659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18661 if (!SWIG_IsOK(res1)) {
18662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18663 }
18664 arg1 = reinterpret_cast< wxDC * >(argp1);
18665 {
18666 arg2 = &temp2;
18667 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18668 }
18669 {
18670 arg3 = &temp3;
18671 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18672 }
18673 {
18674 PyThreadState* __tstate = wxPyBeginAllowThreads();
18675 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18676 wxPyEndAllowThreads(__tstate);
18677 if (PyErr_Occurred()) SWIG_fail;
18678 }
18679 resultobj = SWIG_Py_Void();
18680 return resultobj;
18681 fail:
18682 return NULL;
18683 }
18684
18685
18686 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18687 PyObject *resultobj = 0;
18688 wxDC *arg1 = (wxDC *) 0 ;
18689 int arg2 ;
18690 int arg3 ;
18691 void *argp1 = 0 ;
18692 int res1 = 0 ;
18693 int val2 ;
18694 int ecode2 = 0 ;
18695 int val3 ;
18696 int ecode3 = 0 ;
18697 PyObject * obj0 = 0 ;
18698 PyObject * obj1 = 0 ;
18699 PyObject * obj2 = 0 ;
18700 char * kwnames[] = {
18701 (char *) "self",(char *) "x",(char *) "y", NULL
18702 };
18703
18704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18706 if (!SWIG_IsOK(res1)) {
18707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18708 }
18709 arg1 = reinterpret_cast< wxDC * >(argp1);
18710 ecode2 = SWIG_AsVal_int(obj1, &val2);
18711 if (!SWIG_IsOK(ecode2)) {
18712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18713 }
18714 arg2 = static_cast< int >(val2);
18715 ecode3 = SWIG_AsVal_int(obj2, &val3);
18716 if (!SWIG_IsOK(ecode3)) {
18717 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18718 }
18719 arg3 = static_cast< int >(val3);
18720 {
18721 PyThreadState* __tstate = wxPyBeginAllowThreads();
18722 (arg1)->CrossHair(arg2,arg3);
18723 wxPyEndAllowThreads(__tstate);
18724 if (PyErr_Occurred()) SWIG_fail;
18725 }
18726 resultobj = SWIG_Py_Void();
18727 return resultobj;
18728 fail:
18729 return NULL;
18730 }
18731
18732
18733 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18734 PyObject *resultobj = 0;
18735 wxDC *arg1 = (wxDC *) 0 ;
18736 wxPoint *arg2 = 0 ;
18737 void *argp1 = 0 ;
18738 int res1 = 0 ;
18739 wxPoint temp2 ;
18740 PyObject * obj0 = 0 ;
18741 PyObject * obj1 = 0 ;
18742 char * kwnames[] = {
18743 (char *) "self",(char *) "pt", NULL
18744 };
18745
18746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18748 if (!SWIG_IsOK(res1)) {
18749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18750 }
18751 arg1 = reinterpret_cast< wxDC * >(argp1);
18752 {
18753 arg2 = &temp2;
18754 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18755 }
18756 {
18757 PyThreadState* __tstate = wxPyBeginAllowThreads();
18758 (arg1)->CrossHair((wxPoint const &)*arg2);
18759 wxPyEndAllowThreads(__tstate);
18760 if (PyErr_Occurred()) SWIG_fail;
18761 }
18762 resultobj = SWIG_Py_Void();
18763 return resultobj;
18764 fail:
18765 return NULL;
18766 }
18767
18768
18769 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18770 PyObject *resultobj = 0;
18771 wxDC *arg1 = (wxDC *) 0 ;
18772 int arg2 ;
18773 int arg3 ;
18774 int arg4 ;
18775 int arg5 ;
18776 int arg6 ;
18777 int arg7 ;
18778 void *argp1 = 0 ;
18779 int res1 = 0 ;
18780 int val2 ;
18781 int ecode2 = 0 ;
18782 int val3 ;
18783 int ecode3 = 0 ;
18784 int val4 ;
18785 int ecode4 = 0 ;
18786 int val5 ;
18787 int ecode5 = 0 ;
18788 int val6 ;
18789 int ecode6 = 0 ;
18790 int val7 ;
18791 int ecode7 = 0 ;
18792 PyObject * obj0 = 0 ;
18793 PyObject * obj1 = 0 ;
18794 PyObject * obj2 = 0 ;
18795 PyObject * obj3 = 0 ;
18796 PyObject * obj4 = 0 ;
18797 PyObject * obj5 = 0 ;
18798 PyObject * obj6 = 0 ;
18799 char * kwnames[] = {
18800 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18801 };
18802
18803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18805 if (!SWIG_IsOK(res1)) {
18806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18807 }
18808 arg1 = reinterpret_cast< wxDC * >(argp1);
18809 ecode2 = SWIG_AsVal_int(obj1, &val2);
18810 if (!SWIG_IsOK(ecode2)) {
18811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18812 }
18813 arg2 = static_cast< int >(val2);
18814 ecode3 = SWIG_AsVal_int(obj2, &val3);
18815 if (!SWIG_IsOK(ecode3)) {
18816 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18817 }
18818 arg3 = static_cast< int >(val3);
18819 ecode4 = SWIG_AsVal_int(obj3, &val4);
18820 if (!SWIG_IsOK(ecode4)) {
18821 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18822 }
18823 arg4 = static_cast< int >(val4);
18824 ecode5 = SWIG_AsVal_int(obj4, &val5);
18825 if (!SWIG_IsOK(ecode5)) {
18826 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18827 }
18828 arg5 = static_cast< int >(val5);
18829 ecode6 = SWIG_AsVal_int(obj5, &val6);
18830 if (!SWIG_IsOK(ecode6)) {
18831 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18832 }
18833 arg6 = static_cast< int >(val6);
18834 ecode7 = SWIG_AsVal_int(obj6, &val7);
18835 if (!SWIG_IsOK(ecode7)) {
18836 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18837 }
18838 arg7 = static_cast< int >(val7);
18839 {
18840 PyThreadState* __tstate = wxPyBeginAllowThreads();
18841 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18842 wxPyEndAllowThreads(__tstate);
18843 if (PyErr_Occurred()) SWIG_fail;
18844 }
18845 resultobj = SWIG_Py_Void();
18846 return resultobj;
18847 fail:
18848 return NULL;
18849 }
18850
18851
18852 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18853 PyObject *resultobj = 0;
18854 wxDC *arg1 = (wxDC *) 0 ;
18855 wxPoint *arg2 = 0 ;
18856 wxPoint *arg3 = 0 ;
18857 wxPoint *arg4 = 0 ;
18858 void *argp1 = 0 ;
18859 int res1 = 0 ;
18860 wxPoint temp2 ;
18861 wxPoint temp3 ;
18862 wxPoint temp4 ;
18863 PyObject * obj0 = 0 ;
18864 PyObject * obj1 = 0 ;
18865 PyObject * obj2 = 0 ;
18866 PyObject * obj3 = 0 ;
18867 char * kwnames[] = {
18868 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18869 };
18870
18871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18873 if (!SWIG_IsOK(res1)) {
18874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18875 }
18876 arg1 = reinterpret_cast< wxDC * >(argp1);
18877 {
18878 arg2 = &temp2;
18879 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18880 }
18881 {
18882 arg3 = &temp3;
18883 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18884 }
18885 {
18886 arg4 = &temp4;
18887 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18888 }
18889 {
18890 PyThreadState* __tstate = wxPyBeginAllowThreads();
18891 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18892 wxPyEndAllowThreads(__tstate);
18893 if (PyErr_Occurred()) SWIG_fail;
18894 }
18895 resultobj = SWIG_Py_Void();
18896 return resultobj;
18897 fail:
18898 return NULL;
18899 }
18900
18901
18902 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18903 PyObject *resultobj = 0;
18904 wxDC *arg1 = (wxDC *) 0 ;
18905 int arg2 ;
18906 int arg3 ;
18907 int arg4 ;
18908 int arg5 ;
18909 void *argp1 = 0 ;
18910 int res1 = 0 ;
18911 int val2 ;
18912 int ecode2 = 0 ;
18913 int val3 ;
18914 int ecode3 = 0 ;
18915 int val4 ;
18916 int ecode4 = 0 ;
18917 int val5 ;
18918 int ecode5 = 0 ;
18919 PyObject * obj0 = 0 ;
18920 PyObject * obj1 = 0 ;
18921 PyObject * obj2 = 0 ;
18922 PyObject * obj3 = 0 ;
18923 PyObject * obj4 = 0 ;
18924 char * kwnames[] = {
18925 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18926 };
18927
18928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18930 if (!SWIG_IsOK(res1)) {
18931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18932 }
18933 arg1 = reinterpret_cast< wxDC * >(argp1);
18934 ecode2 = SWIG_AsVal_int(obj1, &val2);
18935 if (!SWIG_IsOK(ecode2)) {
18936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18937 }
18938 arg2 = static_cast< int >(val2);
18939 ecode3 = SWIG_AsVal_int(obj2, &val3);
18940 if (!SWIG_IsOK(ecode3)) {
18941 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18942 }
18943 arg3 = static_cast< int >(val3);
18944 ecode4 = SWIG_AsVal_int(obj3, &val4);
18945 if (!SWIG_IsOK(ecode4)) {
18946 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18947 }
18948 arg4 = static_cast< int >(val4);
18949 ecode5 = SWIG_AsVal_int(obj4, &val5);
18950 if (!SWIG_IsOK(ecode5)) {
18951 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18952 }
18953 arg5 = static_cast< int >(val5);
18954 {
18955 PyThreadState* __tstate = wxPyBeginAllowThreads();
18956 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18957 wxPyEndAllowThreads(__tstate);
18958 if (PyErr_Occurred()) SWIG_fail;
18959 }
18960 resultobj = SWIG_Py_Void();
18961 return resultobj;
18962 fail:
18963 return NULL;
18964 }
18965
18966
18967 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18968 PyObject *resultobj = 0;
18969 wxDC *arg1 = (wxDC *) 0 ;
18970 wxRect *arg2 = 0 ;
18971 void *argp1 = 0 ;
18972 int res1 = 0 ;
18973 wxRect temp2 ;
18974 PyObject * obj0 = 0 ;
18975 PyObject * obj1 = 0 ;
18976 char * kwnames[] = {
18977 (char *) "self",(char *) "rect", NULL
18978 };
18979
18980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18982 if (!SWIG_IsOK(res1)) {
18983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18984 }
18985 arg1 = reinterpret_cast< wxDC * >(argp1);
18986 {
18987 arg2 = &temp2;
18988 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18989 }
18990 {
18991 PyThreadState* __tstate = wxPyBeginAllowThreads();
18992 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18993 wxPyEndAllowThreads(__tstate);
18994 if (PyErr_Occurred()) SWIG_fail;
18995 }
18996 resultobj = SWIG_Py_Void();
18997 return resultobj;
18998 fail:
18999 return NULL;
19000 }
19001
19002
19003 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19004 PyObject *resultobj = 0;
19005 wxDC *arg1 = (wxDC *) 0 ;
19006 int arg2 ;
19007 int arg3 ;
19008 int arg4 ;
19009 int arg5 ;
19010 double arg6 ;
19011 double arg7 ;
19012 void *argp1 = 0 ;
19013 int res1 = 0 ;
19014 int val2 ;
19015 int ecode2 = 0 ;
19016 int val3 ;
19017 int ecode3 = 0 ;
19018 int val4 ;
19019 int ecode4 = 0 ;
19020 int val5 ;
19021 int ecode5 = 0 ;
19022 double val6 ;
19023 int ecode6 = 0 ;
19024 double val7 ;
19025 int ecode7 = 0 ;
19026 PyObject * obj0 = 0 ;
19027 PyObject * obj1 = 0 ;
19028 PyObject * obj2 = 0 ;
19029 PyObject * obj3 = 0 ;
19030 PyObject * obj4 = 0 ;
19031 PyObject * obj5 = 0 ;
19032 PyObject * obj6 = 0 ;
19033 char * kwnames[] = {
19034 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
19035 };
19036
19037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
19038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19039 if (!SWIG_IsOK(res1)) {
19040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
19041 }
19042 arg1 = reinterpret_cast< wxDC * >(argp1);
19043 ecode2 = SWIG_AsVal_int(obj1, &val2);
19044 if (!SWIG_IsOK(ecode2)) {
19045 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
19046 }
19047 arg2 = static_cast< int >(val2);
19048 ecode3 = SWIG_AsVal_int(obj2, &val3);
19049 if (!SWIG_IsOK(ecode3)) {
19050 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
19051 }
19052 arg3 = static_cast< int >(val3);
19053 ecode4 = SWIG_AsVal_int(obj3, &val4);
19054 if (!SWIG_IsOK(ecode4)) {
19055 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
19056 }
19057 arg4 = static_cast< int >(val4);
19058 ecode5 = SWIG_AsVal_int(obj4, &val5);
19059 if (!SWIG_IsOK(ecode5)) {
19060 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
19061 }
19062 arg5 = static_cast< int >(val5);
19063 ecode6 = SWIG_AsVal_double(obj5, &val6);
19064 if (!SWIG_IsOK(ecode6)) {
19065 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
19066 }
19067 arg6 = static_cast< double >(val6);
19068 ecode7 = SWIG_AsVal_double(obj6, &val7);
19069 if (!SWIG_IsOK(ecode7)) {
19070 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
19071 }
19072 arg7 = static_cast< double >(val7);
19073 {
19074 PyThreadState* __tstate = wxPyBeginAllowThreads();
19075 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
19076 wxPyEndAllowThreads(__tstate);
19077 if (PyErr_Occurred()) SWIG_fail;
19078 }
19079 resultobj = SWIG_Py_Void();
19080 return resultobj;
19081 fail:
19082 return NULL;
19083 }
19084
19085
19086 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19087 PyObject *resultobj = 0;
19088 wxDC *arg1 = (wxDC *) 0 ;
19089 wxPoint *arg2 = 0 ;
19090 wxSize *arg3 = 0 ;
19091 double arg4 ;
19092 double arg5 ;
19093 void *argp1 = 0 ;
19094 int res1 = 0 ;
19095 wxPoint temp2 ;
19096 wxSize temp3 ;
19097 double val4 ;
19098 int ecode4 = 0 ;
19099 double val5 ;
19100 int ecode5 = 0 ;
19101 PyObject * obj0 = 0 ;
19102 PyObject * obj1 = 0 ;
19103 PyObject * obj2 = 0 ;
19104 PyObject * obj3 = 0 ;
19105 PyObject * obj4 = 0 ;
19106 char * kwnames[] = {
19107 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
19108 };
19109
19110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19112 if (!SWIG_IsOK(res1)) {
19113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19114 }
19115 arg1 = reinterpret_cast< wxDC * >(argp1);
19116 {
19117 arg2 = &temp2;
19118 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19119 }
19120 {
19121 arg3 = &temp3;
19122 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19123 }
19124 ecode4 = SWIG_AsVal_double(obj3, &val4);
19125 if (!SWIG_IsOK(ecode4)) {
19126 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
19127 }
19128 arg4 = static_cast< double >(val4);
19129 ecode5 = SWIG_AsVal_double(obj4, &val5);
19130 if (!SWIG_IsOK(ecode5)) {
19131 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
19132 }
19133 arg5 = static_cast< double >(val5);
19134 {
19135 PyThreadState* __tstate = wxPyBeginAllowThreads();
19136 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
19137 wxPyEndAllowThreads(__tstate);
19138 if (PyErr_Occurred()) SWIG_fail;
19139 }
19140 resultobj = SWIG_Py_Void();
19141 return resultobj;
19142 fail:
19143 return NULL;
19144 }
19145
19146
19147 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19148 PyObject *resultobj = 0;
19149 wxDC *arg1 = (wxDC *) 0 ;
19150 int arg2 ;
19151 int arg3 ;
19152 void *argp1 = 0 ;
19153 int res1 = 0 ;
19154 int val2 ;
19155 int ecode2 = 0 ;
19156 int val3 ;
19157 int ecode3 = 0 ;
19158 PyObject * obj0 = 0 ;
19159 PyObject * obj1 = 0 ;
19160 PyObject * obj2 = 0 ;
19161 char * kwnames[] = {
19162 (char *) "self",(char *) "x",(char *) "y", NULL
19163 };
19164
19165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19167 if (!SWIG_IsOK(res1)) {
19168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19169 }
19170 arg1 = reinterpret_cast< wxDC * >(argp1);
19171 ecode2 = SWIG_AsVal_int(obj1, &val2);
19172 if (!SWIG_IsOK(ecode2)) {
19173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
19174 }
19175 arg2 = static_cast< int >(val2);
19176 ecode3 = SWIG_AsVal_int(obj2, &val3);
19177 if (!SWIG_IsOK(ecode3)) {
19178 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
19179 }
19180 arg3 = static_cast< int >(val3);
19181 {
19182 PyThreadState* __tstate = wxPyBeginAllowThreads();
19183 (arg1)->DrawPoint(arg2,arg3);
19184 wxPyEndAllowThreads(__tstate);
19185 if (PyErr_Occurred()) SWIG_fail;
19186 }
19187 resultobj = SWIG_Py_Void();
19188 return resultobj;
19189 fail:
19190 return NULL;
19191 }
19192
19193
19194 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19195 PyObject *resultobj = 0;
19196 wxDC *arg1 = (wxDC *) 0 ;
19197 wxPoint *arg2 = 0 ;
19198 void *argp1 = 0 ;
19199 int res1 = 0 ;
19200 wxPoint temp2 ;
19201 PyObject * obj0 = 0 ;
19202 PyObject * obj1 = 0 ;
19203 char * kwnames[] = {
19204 (char *) "self",(char *) "pt", NULL
19205 };
19206
19207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19209 if (!SWIG_IsOK(res1)) {
19210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19211 }
19212 arg1 = reinterpret_cast< wxDC * >(argp1);
19213 {
19214 arg2 = &temp2;
19215 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19216 }
19217 {
19218 PyThreadState* __tstate = wxPyBeginAllowThreads();
19219 (arg1)->DrawPoint((wxPoint const &)*arg2);
19220 wxPyEndAllowThreads(__tstate);
19221 if (PyErr_Occurred()) SWIG_fail;
19222 }
19223 resultobj = SWIG_Py_Void();
19224 return resultobj;
19225 fail:
19226 return NULL;
19227 }
19228
19229
19230 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19231 PyObject *resultobj = 0;
19232 wxDC *arg1 = (wxDC *) 0 ;
19233 int arg2 ;
19234 int arg3 ;
19235 int arg4 ;
19236 int arg5 ;
19237 void *argp1 = 0 ;
19238 int res1 = 0 ;
19239 int val2 ;
19240 int ecode2 = 0 ;
19241 int val3 ;
19242 int ecode3 = 0 ;
19243 int val4 ;
19244 int ecode4 = 0 ;
19245 int val5 ;
19246 int ecode5 = 0 ;
19247 PyObject * obj0 = 0 ;
19248 PyObject * obj1 = 0 ;
19249 PyObject * obj2 = 0 ;
19250 PyObject * obj3 = 0 ;
19251 PyObject * obj4 = 0 ;
19252 char * kwnames[] = {
19253 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19254 };
19255
19256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19258 if (!SWIG_IsOK(res1)) {
19259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19260 }
19261 arg1 = reinterpret_cast< wxDC * >(argp1);
19262 ecode2 = SWIG_AsVal_int(obj1, &val2);
19263 if (!SWIG_IsOK(ecode2)) {
19264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
19265 }
19266 arg2 = static_cast< int >(val2);
19267 ecode3 = SWIG_AsVal_int(obj2, &val3);
19268 if (!SWIG_IsOK(ecode3)) {
19269 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
19270 }
19271 arg3 = static_cast< int >(val3);
19272 ecode4 = SWIG_AsVal_int(obj3, &val4);
19273 if (!SWIG_IsOK(ecode4)) {
19274 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
19275 }
19276 arg4 = static_cast< int >(val4);
19277 ecode5 = SWIG_AsVal_int(obj4, &val5);
19278 if (!SWIG_IsOK(ecode5)) {
19279 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
19280 }
19281 arg5 = static_cast< int >(val5);
19282 {
19283 PyThreadState* __tstate = wxPyBeginAllowThreads();
19284 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
19285 wxPyEndAllowThreads(__tstate);
19286 if (PyErr_Occurred()) SWIG_fail;
19287 }
19288 resultobj = SWIG_Py_Void();
19289 return resultobj;
19290 fail:
19291 return NULL;
19292 }
19293
19294
19295 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19296 PyObject *resultobj = 0;
19297 wxDC *arg1 = (wxDC *) 0 ;
19298 wxRect *arg2 = 0 ;
19299 void *argp1 = 0 ;
19300 int res1 = 0 ;
19301 wxRect temp2 ;
19302 PyObject * obj0 = 0 ;
19303 PyObject * obj1 = 0 ;
19304 char * kwnames[] = {
19305 (char *) "self",(char *) "rect", NULL
19306 };
19307
19308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
19309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19310 if (!SWIG_IsOK(res1)) {
19311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19312 }
19313 arg1 = reinterpret_cast< wxDC * >(argp1);
19314 {
19315 arg2 = &temp2;
19316 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19317 }
19318 {
19319 PyThreadState* __tstate = wxPyBeginAllowThreads();
19320 (arg1)->DrawRectangle((wxRect const &)*arg2);
19321 wxPyEndAllowThreads(__tstate);
19322 if (PyErr_Occurred()) SWIG_fail;
19323 }
19324 resultobj = SWIG_Py_Void();
19325 return resultobj;
19326 fail:
19327 return NULL;
19328 }
19329
19330
19331 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19332 PyObject *resultobj = 0;
19333 wxDC *arg1 = (wxDC *) 0 ;
19334 wxPoint *arg2 = 0 ;
19335 wxSize *arg3 = 0 ;
19336 void *argp1 = 0 ;
19337 int res1 = 0 ;
19338 wxPoint temp2 ;
19339 wxSize temp3 ;
19340 PyObject * obj0 = 0 ;
19341 PyObject * obj1 = 0 ;
19342 PyObject * obj2 = 0 ;
19343 char * kwnames[] = {
19344 (char *) "self",(char *) "pt",(char *) "sz", NULL
19345 };
19346
19347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19349 if (!SWIG_IsOK(res1)) {
19350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19351 }
19352 arg1 = reinterpret_cast< wxDC * >(argp1);
19353 {
19354 arg2 = &temp2;
19355 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19356 }
19357 {
19358 arg3 = &temp3;
19359 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19360 }
19361 {
19362 PyThreadState* __tstate = wxPyBeginAllowThreads();
19363 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
19364 wxPyEndAllowThreads(__tstate);
19365 if (PyErr_Occurred()) SWIG_fail;
19366 }
19367 resultobj = SWIG_Py_Void();
19368 return resultobj;
19369 fail:
19370 return NULL;
19371 }
19372
19373
19374 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19375 PyObject *resultobj = 0;
19376 wxDC *arg1 = (wxDC *) 0 ;
19377 int arg2 ;
19378 int arg3 ;
19379 int arg4 ;
19380 int arg5 ;
19381 double arg6 ;
19382 void *argp1 = 0 ;
19383 int res1 = 0 ;
19384 int val2 ;
19385 int ecode2 = 0 ;
19386 int val3 ;
19387 int ecode3 = 0 ;
19388 int val4 ;
19389 int ecode4 = 0 ;
19390 int val5 ;
19391 int ecode5 = 0 ;
19392 double val6 ;
19393 int ecode6 = 0 ;
19394 PyObject * obj0 = 0 ;
19395 PyObject * obj1 = 0 ;
19396 PyObject * obj2 = 0 ;
19397 PyObject * obj3 = 0 ;
19398 PyObject * obj4 = 0 ;
19399 PyObject * obj5 = 0 ;
19400 char * kwnames[] = {
19401 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
19402 };
19403
19404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19406 if (!SWIG_IsOK(res1)) {
19407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19408 }
19409 arg1 = reinterpret_cast< wxDC * >(argp1);
19410 ecode2 = SWIG_AsVal_int(obj1, &val2);
19411 if (!SWIG_IsOK(ecode2)) {
19412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
19413 }
19414 arg2 = static_cast< int >(val2);
19415 ecode3 = SWIG_AsVal_int(obj2, &val3);
19416 if (!SWIG_IsOK(ecode3)) {
19417 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
19418 }
19419 arg3 = static_cast< int >(val3);
19420 ecode4 = SWIG_AsVal_int(obj3, &val4);
19421 if (!SWIG_IsOK(ecode4)) {
19422 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
19423 }
19424 arg4 = static_cast< int >(val4);
19425 ecode5 = SWIG_AsVal_int(obj4, &val5);
19426 if (!SWIG_IsOK(ecode5)) {
19427 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
19428 }
19429 arg5 = static_cast< int >(val5);
19430 ecode6 = SWIG_AsVal_double(obj5, &val6);
19431 if (!SWIG_IsOK(ecode6)) {
19432 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
19433 }
19434 arg6 = static_cast< double >(val6);
19435 {
19436 PyThreadState* __tstate = wxPyBeginAllowThreads();
19437 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
19438 wxPyEndAllowThreads(__tstate);
19439 if (PyErr_Occurred()) SWIG_fail;
19440 }
19441 resultobj = SWIG_Py_Void();
19442 return resultobj;
19443 fail:
19444 return NULL;
19445 }
19446
19447
19448 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19449 PyObject *resultobj = 0;
19450 wxDC *arg1 = (wxDC *) 0 ;
19451 wxRect *arg2 = 0 ;
19452 double arg3 ;
19453 void *argp1 = 0 ;
19454 int res1 = 0 ;
19455 wxRect temp2 ;
19456 double val3 ;
19457 int ecode3 = 0 ;
19458 PyObject * obj0 = 0 ;
19459 PyObject * obj1 = 0 ;
19460 PyObject * obj2 = 0 ;
19461 char * kwnames[] = {
19462 (char *) "self",(char *) "r",(char *) "radius", NULL
19463 };
19464
19465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19467 if (!SWIG_IsOK(res1)) {
19468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19469 }
19470 arg1 = reinterpret_cast< wxDC * >(argp1);
19471 {
19472 arg2 = &temp2;
19473 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19474 }
19475 ecode3 = SWIG_AsVal_double(obj2, &val3);
19476 if (!SWIG_IsOK(ecode3)) {
19477 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
19478 }
19479 arg3 = static_cast< double >(val3);
19480 {
19481 PyThreadState* __tstate = wxPyBeginAllowThreads();
19482 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
19483 wxPyEndAllowThreads(__tstate);
19484 if (PyErr_Occurred()) SWIG_fail;
19485 }
19486 resultobj = SWIG_Py_Void();
19487 return resultobj;
19488 fail:
19489 return NULL;
19490 }
19491
19492
19493 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19494 PyObject *resultobj = 0;
19495 wxDC *arg1 = (wxDC *) 0 ;
19496 wxPoint *arg2 = 0 ;
19497 wxSize *arg3 = 0 ;
19498 double arg4 ;
19499 void *argp1 = 0 ;
19500 int res1 = 0 ;
19501 wxPoint temp2 ;
19502 wxSize temp3 ;
19503 double val4 ;
19504 int ecode4 = 0 ;
19505 PyObject * obj0 = 0 ;
19506 PyObject * obj1 = 0 ;
19507 PyObject * obj2 = 0 ;
19508 PyObject * obj3 = 0 ;
19509 char * kwnames[] = {
19510 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
19511 };
19512
19513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19515 if (!SWIG_IsOK(res1)) {
19516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19517 }
19518 arg1 = reinterpret_cast< wxDC * >(argp1);
19519 {
19520 arg2 = &temp2;
19521 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19522 }
19523 {
19524 arg3 = &temp3;
19525 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19526 }
19527 ecode4 = SWIG_AsVal_double(obj3, &val4);
19528 if (!SWIG_IsOK(ecode4)) {
19529 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
19530 }
19531 arg4 = static_cast< double >(val4);
19532 {
19533 PyThreadState* __tstate = wxPyBeginAllowThreads();
19534 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
19535 wxPyEndAllowThreads(__tstate);
19536 if (PyErr_Occurred()) SWIG_fail;
19537 }
19538 resultobj = SWIG_Py_Void();
19539 return resultobj;
19540 fail:
19541 return NULL;
19542 }
19543
19544
19545 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19546 PyObject *resultobj = 0;
19547 wxDC *arg1 = (wxDC *) 0 ;
19548 int arg2 ;
19549 int arg3 ;
19550 int arg4 ;
19551 void *argp1 = 0 ;
19552 int res1 = 0 ;
19553 int val2 ;
19554 int ecode2 = 0 ;
19555 int val3 ;
19556 int ecode3 = 0 ;
19557 int val4 ;
19558 int ecode4 = 0 ;
19559 PyObject * obj0 = 0 ;
19560 PyObject * obj1 = 0 ;
19561 PyObject * obj2 = 0 ;
19562 PyObject * obj3 = 0 ;
19563 char * kwnames[] = {
19564 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
19565 };
19566
19567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19569 if (!SWIG_IsOK(res1)) {
19570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
19571 }
19572 arg1 = reinterpret_cast< wxDC * >(argp1);
19573 ecode2 = SWIG_AsVal_int(obj1, &val2);
19574 if (!SWIG_IsOK(ecode2)) {
19575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
19576 }
19577 arg2 = static_cast< int >(val2);
19578 ecode3 = SWIG_AsVal_int(obj2, &val3);
19579 if (!SWIG_IsOK(ecode3)) {
19580 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19581 }
19582 arg3 = static_cast< int >(val3);
19583 ecode4 = SWIG_AsVal_int(obj3, &val4);
19584 if (!SWIG_IsOK(ecode4)) {
19585 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19586 }
19587 arg4 = static_cast< int >(val4);
19588 {
19589 PyThreadState* __tstate = wxPyBeginAllowThreads();
19590 (arg1)->DrawCircle(arg2,arg3,arg4);
19591 wxPyEndAllowThreads(__tstate);
19592 if (PyErr_Occurred()) SWIG_fail;
19593 }
19594 resultobj = SWIG_Py_Void();
19595 return resultobj;
19596 fail:
19597 return NULL;
19598 }
19599
19600
19601 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19602 PyObject *resultobj = 0;
19603 wxDC *arg1 = (wxDC *) 0 ;
19604 wxPoint *arg2 = 0 ;
19605 int arg3 ;
19606 void *argp1 = 0 ;
19607 int res1 = 0 ;
19608 wxPoint temp2 ;
19609 int val3 ;
19610 int ecode3 = 0 ;
19611 PyObject * obj0 = 0 ;
19612 PyObject * obj1 = 0 ;
19613 PyObject * obj2 = 0 ;
19614 char * kwnames[] = {
19615 (char *) "self",(char *) "pt",(char *) "radius", NULL
19616 };
19617
19618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19620 if (!SWIG_IsOK(res1)) {
19621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19622 }
19623 arg1 = reinterpret_cast< wxDC * >(argp1);
19624 {
19625 arg2 = &temp2;
19626 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19627 }
19628 ecode3 = SWIG_AsVal_int(obj2, &val3);
19629 if (!SWIG_IsOK(ecode3)) {
19630 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19631 }
19632 arg3 = static_cast< int >(val3);
19633 {
19634 PyThreadState* __tstate = wxPyBeginAllowThreads();
19635 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19636 wxPyEndAllowThreads(__tstate);
19637 if (PyErr_Occurred()) SWIG_fail;
19638 }
19639 resultobj = SWIG_Py_Void();
19640 return resultobj;
19641 fail:
19642 return NULL;
19643 }
19644
19645
19646 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19647 PyObject *resultobj = 0;
19648 wxDC *arg1 = (wxDC *) 0 ;
19649 int arg2 ;
19650 int arg3 ;
19651 int arg4 ;
19652 int arg5 ;
19653 void *argp1 = 0 ;
19654 int res1 = 0 ;
19655 int val2 ;
19656 int ecode2 = 0 ;
19657 int val3 ;
19658 int ecode3 = 0 ;
19659 int val4 ;
19660 int ecode4 = 0 ;
19661 int val5 ;
19662 int ecode5 = 0 ;
19663 PyObject * obj0 = 0 ;
19664 PyObject * obj1 = 0 ;
19665 PyObject * obj2 = 0 ;
19666 PyObject * obj3 = 0 ;
19667 PyObject * obj4 = 0 ;
19668 char * kwnames[] = {
19669 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19670 };
19671
19672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19674 if (!SWIG_IsOK(res1)) {
19675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19676 }
19677 arg1 = reinterpret_cast< wxDC * >(argp1);
19678 ecode2 = SWIG_AsVal_int(obj1, &val2);
19679 if (!SWIG_IsOK(ecode2)) {
19680 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19681 }
19682 arg2 = static_cast< int >(val2);
19683 ecode3 = SWIG_AsVal_int(obj2, &val3);
19684 if (!SWIG_IsOK(ecode3)) {
19685 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19686 }
19687 arg3 = static_cast< int >(val3);
19688 ecode4 = SWIG_AsVal_int(obj3, &val4);
19689 if (!SWIG_IsOK(ecode4)) {
19690 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19691 }
19692 arg4 = static_cast< int >(val4);
19693 ecode5 = SWIG_AsVal_int(obj4, &val5);
19694 if (!SWIG_IsOK(ecode5)) {
19695 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19696 }
19697 arg5 = static_cast< int >(val5);
19698 {
19699 PyThreadState* __tstate = wxPyBeginAllowThreads();
19700 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19701 wxPyEndAllowThreads(__tstate);
19702 if (PyErr_Occurred()) SWIG_fail;
19703 }
19704 resultobj = SWIG_Py_Void();
19705 return resultobj;
19706 fail:
19707 return NULL;
19708 }
19709
19710
19711 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19712 PyObject *resultobj = 0;
19713 wxDC *arg1 = (wxDC *) 0 ;
19714 wxRect *arg2 = 0 ;
19715 void *argp1 = 0 ;
19716 int res1 = 0 ;
19717 wxRect temp2 ;
19718 PyObject * obj0 = 0 ;
19719 PyObject * obj1 = 0 ;
19720 char * kwnames[] = {
19721 (char *) "self",(char *) "rect", NULL
19722 };
19723
19724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19726 if (!SWIG_IsOK(res1)) {
19727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19728 }
19729 arg1 = reinterpret_cast< wxDC * >(argp1);
19730 {
19731 arg2 = &temp2;
19732 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19733 }
19734 {
19735 PyThreadState* __tstate = wxPyBeginAllowThreads();
19736 (arg1)->DrawEllipse((wxRect const &)*arg2);
19737 wxPyEndAllowThreads(__tstate);
19738 if (PyErr_Occurred()) SWIG_fail;
19739 }
19740 resultobj = SWIG_Py_Void();
19741 return resultobj;
19742 fail:
19743 return NULL;
19744 }
19745
19746
19747 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19748 PyObject *resultobj = 0;
19749 wxDC *arg1 = (wxDC *) 0 ;
19750 wxPoint *arg2 = 0 ;
19751 wxSize *arg3 = 0 ;
19752 void *argp1 = 0 ;
19753 int res1 = 0 ;
19754 wxPoint temp2 ;
19755 wxSize temp3 ;
19756 PyObject * obj0 = 0 ;
19757 PyObject * obj1 = 0 ;
19758 PyObject * obj2 = 0 ;
19759 char * kwnames[] = {
19760 (char *) "self",(char *) "pt",(char *) "sz", NULL
19761 };
19762
19763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19765 if (!SWIG_IsOK(res1)) {
19766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19767 }
19768 arg1 = reinterpret_cast< wxDC * >(argp1);
19769 {
19770 arg2 = &temp2;
19771 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19772 }
19773 {
19774 arg3 = &temp3;
19775 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19776 }
19777 {
19778 PyThreadState* __tstate = wxPyBeginAllowThreads();
19779 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19780 wxPyEndAllowThreads(__tstate);
19781 if (PyErr_Occurred()) SWIG_fail;
19782 }
19783 resultobj = SWIG_Py_Void();
19784 return resultobj;
19785 fail:
19786 return NULL;
19787 }
19788
19789
19790 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19791 PyObject *resultobj = 0;
19792 wxDC *arg1 = (wxDC *) 0 ;
19793 wxIcon *arg2 = 0 ;
19794 int arg3 ;
19795 int arg4 ;
19796 void *argp1 = 0 ;
19797 int res1 = 0 ;
19798 void *argp2 = 0 ;
19799 int res2 = 0 ;
19800 int val3 ;
19801 int ecode3 = 0 ;
19802 int val4 ;
19803 int ecode4 = 0 ;
19804 PyObject * obj0 = 0 ;
19805 PyObject * obj1 = 0 ;
19806 PyObject * obj2 = 0 ;
19807 PyObject * obj3 = 0 ;
19808 char * kwnames[] = {
19809 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19810 };
19811
19812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19814 if (!SWIG_IsOK(res1)) {
19815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19816 }
19817 arg1 = reinterpret_cast< wxDC * >(argp1);
19818 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19819 if (!SWIG_IsOK(res2)) {
19820 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19821 }
19822 if (!argp2) {
19823 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19824 }
19825 arg2 = reinterpret_cast< wxIcon * >(argp2);
19826 ecode3 = SWIG_AsVal_int(obj2, &val3);
19827 if (!SWIG_IsOK(ecode3)) {
19828 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19829 }
19830 arg3 = static_cast< int >(val3);
19831 ecode4 = SWIG_AsVal_int(obj3, &val4);
19832 if (!SWIG_IsOK(ecode4)) {
19833 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19834 }
19835 arg4 = static_cast< int >(val4);
19836 {
19837 PyThreadState* __tstate = wxPyBeginAllowThreads();
19838 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19839 wxPyEndAllowThreads(__tstate);
19840 if (PyErr_Occurred()) SWIG_fail;
19841 }
19842 resultobj = SWIG_Py_Void();
19843 return resultobj;
19844 fail:
19845 return NULL;
19846 }
19847
19848
19849 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19850 PyObject *resultobj = 0;
19851 wxDC *arg1 = (wxDC *) 0 ;
19852 wxIcon *arg2 = 0 ;
19853 wxPoint *arg3 = 0 ;
19854 void *argp1 = 0 ;
19855 int res1 = 0 ;
19856 void *argp2 = 0 ;
19857 int res2 = 0 ;
19858 wxPoint temp3 ;
19859 PyObject * obj0 = 0 ;
19860 PyObject * obj1 = 0 ;
19861 PyObject * obj2 = 0 ;
19862 char * kwnames[] = {
19863 (char *) "self",(char *) "icon",(char *) "pt", NULL
19864 };
19865
19866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19868 if (!SWIG_IsOK(res1)) {
19869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19870 }
19871 arg1 = reinterpret_cast< wxDC * >(argp1);
19872 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19873 if (!SWIG_IsOK(res2)) {
19874 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19875 }
19876 if (!argp2) {
19877 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19878 }
19879 arg2 = reinterpret_cast< wxIcon * >(argp2);
19880 {
19881 arg3 = &temp3;
19882 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19883 }
19884 {
19885 PyThreadState* __tstate = wxPyBeginAllowThreads();
19886 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19887 wxPyEndAllowThreads(__tstate);
19888 if (PyErr_Occurred()) SWIG_fail;
19889 }
19890 resultobj = SWIG_Py_Void();
19891 return resultobj;
19892 fail:
19893 return NULL;
19894 }
19895
19896
19897 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19898 PyObject *resultobj = 0;
19899 wxDC *arg1 = (wxDC *) 0 ;
19900 wxBitmap *arg2 = 0 ;
19901 int arg3 ;
19902 int arg4 ;
19903 bool arg5 = (bool) false ;
19904 void *argp1 = 0 ;
19905 int res1 = 0 ;
19906 void *argp2 = 0 ;
19907 int res2 = 0 ;
19908 int val3 ;
19909 int ecode3 = 0 ;
19910 int val4 ;
19911 int ecode4 = 0 ;
19912 bool val5 ;
19913 int ecode5 = 0 ;
19914 PyObject * obj0 = 0 ;
19915 PyObject * obj1 = 0 ;
19916 PyObject * obj2 = 0 ;
19917 PyObject * obj3 = 0 ;
19918 PyObject * obj4 = 0 ;
19919 char * kwnames[] = {
19920 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19921 };
19922
19923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19925 if (!SWIG_IsOK(res1)) {
19926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19927 }
19928 arg1 = reinterpret_cast< wxDC * >(argp1);
19929 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19930 if (!SWIG_IsOK(res2)) {
19931 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19932 }
19933 if (!argp2) {
19934 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19935 }
19936 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19937 ecode3 = SWIG_AsVal_int(obj2, &val3);
19938 if (!SWIG_IsOK(ecode3)) {
19939 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19940 }
19941 arg3 = static_cast< int >(val3);
19942 ecode4 = SWIG_AsVal_int(obj3, &val4);
19943 if (!SWIG_IsOK(ecode4)) {
19944 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19945 }
19946 arg4 = static_cast< int >(val4);
19947 if (obj4) {
19948 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19949 if (!SWIG_IsOK(ecode5)) {
19950 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19951 }
19952 arg5 = static_cast< bool >(val5);
19953 }
19954 {
19955 PyThreadState* __tstate = wxPyBeginAllowThreads();
19956 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19957 wxPyEndAllowThreads(__tstate);
19958 if (PyErr_Occurred()) SWIG_fail;
19959 }
19960 resultobj = SWIG_Py_Void();
19961 return resultobj;
19962 fail:
19963 return NULL;
19964 }
19965
19966
19967 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19968 PyObject *resultobj = 0;
19969 wxDC *arg1 = (wxDC *) 0 ;
19970 wxBitmap *arg2 = 0 ;
19971 wxPoint *arg3 = 0 ;
19972 bool arg4 = (bool) false ;
19973 void *argp1 = 0 ;
19974 int res1 = 0 ;
19975 void *argp2 = 0 ;
19976 int res2 = 0 ;
19977 wxPoint temp3 ;
19978 bool val4 ;
19979 int ecode4 = 0 ;
19980 PyObject * obj0 = 0 ;
19981 PyObject * obj1 = 0 ;
19982 PyObject * obj2 = 0 ;
19983 PyObject * obj3 = 0 ;
19984 char * kwnames[] = {
19985 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19986 };
19987
19988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19990 if (!SWIG_IsOK(res1)) {
19991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19992 }
19993 arg1 = reinterpret_cast< wxDC * >(argp1);
19994 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19995 if (!SWIG_IsOK(res2)) {
19996 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19997 }
19998 if (!argp2) {
19999 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20000 }
20001 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20002 {
20003 arg3 = &temp3;
20004 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20005 }
20006 if (obj3) {
20007 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20008 if (!SWIG_IsOK(ecode4)) {
20009 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
20010 }
20011 arg4 = static_cast< bool >(val4);
20012 }
20013 {
20014 PyThreadState* __tstate = wxPyBeginAllowThreads();
20015 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
20016 wxPyEndAllowThreads(__tstate);
20017 if (PyErr_Occurred()) SWIG_fail;
20018 }
20019 resultobj = SWIG_Py_Void();
20020 return resultobj;
20021 fail:
20022 return NULL;
20023 }
20024
20025
20026 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20027 PyObject *resultobj = 0;
20028 wxDC *arg1 = (wxDC *) 0 ;
20029 wxString *arg2 = 0 ;
20030 int arg3 ;
20031 int arg4 ;
20032 void *argp1 = 0 ;
20033 int res1 = 0 ;
20034 bool temp2 = false ;
20035 int val3 ;
20036 int ecode3 = 0 ;
20037 int val4 ;
20038 int ecode4 = 0 ;
20039 PyObject * obj0 = 0 ;
20040 PyObject * obj1 = 0 ;
20041 PyObject * obj2 = 0 ;
20042 PyObject * obj3 = 0 ;
20043 char * kwnames[] = {
20044 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
20045 };
20046
20047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20049 if (!SWIG_IsOK(res1)) {
20050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
20051 }
20052 arg1 = reinterpret_cast< wxDC * >(argp1);
20053 {
20054 arg2 = wxString_in_helper(obj1);
20055 if (arg2 == NULL) SWIG_fail;
20056 temp2 = true;
20057 }
20058 ecode3 = SWIG_AsVal_int(obj2, &val3);
20059 if (!SWIG_IsOK(ecode3)) {
20060 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
20061 }
20062 arg3 = static_cast< int >(val3);
20063 ecode4 = SWIG_AsVal_int(obj3, &val4);
20064 if (!SWIG_IsOK(ecode4)) {
20065 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
20066 }
20067 arg4 = static_cast< int >(val4);
20068 {
20069 PyThreadState* __tstate = wxPyBeginAllowThreads();
20070 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
20071 wxPyEndAllowThreads(__tstate);
20072 if (PyErr_Occurred()) SWIG_fail;
20073 }
20074 resultobj = SWIG_Py_Void();
20075 {
20076 if (temp2)
20077 delete arg2;
20078 }
20079 return resultobj;
20080 fail:
20081 {
20082 if (temp2)
20083 delete arg2;
20084 }
20085 return NULL;
20086 }
20087
20088
20089 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20090 PyObject *resultobj = 0;
20091 wxDC *arg1 = (wxDC *) 0 ;
20092 wxString *arg2 = 0 ;
20093 wxPoint *arg3 = 0 ;
20094 void *argp1 = 0 ;
20095 int res1 = 0 ;
20096 bool temp2 = false ;
20097 wxPoint temp3 ;
20098 PyObject * obj0 = 0 ;
20099 PyObject * obj1 = 0 ;
20100 PyObject * obj2 = 0 ;
20101 char * kwnames[] = {
20102 (char *) "self",(char *) "text",(char *) "pt", NULL
20103 };
20104
20105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20107 if (!SWIG_IsOK(res1)) {
20108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20109 }
20110 arg1 = reinterpret_cast< wxDC * >(argp1);
20111 {
20112 arg2 = wxString_in_helper(obj1);
20113 if (arg2 == NULL) SWIG_fail;
20114 temp2 = true;
20115 }
20116 {
20117 arg3 = &temp3;
20118 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20119 }
20120 {
20121 PyThreadState* __tstate = wxPyBeginAllowThreads();
20122 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
20123 wxPyEndAllowThreads(__tstate);
20124 if (PyErr_Occurred()) SWIG_fail;
20125 }
20126 resultobj = SWIG_Py_Void();
20127 {
20128 if (temp2)
20129 delete arg2;
20130 }
20131 return resultobj;
20132 fail:
20133 {
20134 if (temp2)
20135 delete arg2;
20136 }
20137 return NULL;
20138 }
20139
20140
20141 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20142 PyObject *resultobj = 0;
20143 wxDC *arg1 = (wxDC *) 0 ;
20144 wxString *arg2 = 0 ;
20145 int arg3 ;
20146 int arg4 ;
20147 double arg5 ;
20148 void *argp1 = 0 ;
20149 int res1 = 0 ;
20150 bool temp2 = false ;
20151 int val3 ;
20152 int ecode3 = 0 ;
20153 int val4 ;
20154 int ecode4 = 0 ;
20155 double val5 ;
20156 int ecode5 = 0 ;
20157 PyObject * obj0 = 0 ;
20158 PyObject * obj1 = 0 ;
20159 PyObject * obj2 = 0 ;
20160 PyObject * obj3 = 0 ;
20161 PyObject * obj4 = 0 ;
20162 char * kwnames[] = {
20163 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
20164 };
20165
20166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20168 if (!SWIG_IsOK(res1)) {
20169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
20170 }
20171 arg1 = reinterpret_cast< wxDC * >(argp1);
20172 {
20173 arg2 = wxString_in_helper(obj1);
20174 if (arg2 == NULL) SWIG_fail;
20175 temp2 = true;
20176 }
20177 ecode3 = SWIG_AsVal_int(obj2, &val3);
20178 if (!SWIG_IsOK(ecode3)) {
20179 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
20180 }
20181 arg3 = static_cast< int >(val3);
20182 ecode4 = SWIG_AsVal_int(obj3, &val4);
20183 if (!SWIG_IsOK(ecode4)) {
20184 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
20185 }
20186 arg4 = static_cast< int >(val4);
20187 ecode5 = SWIG_AsVal_double(obj4, &val5);
20188 if (!SWIG_IsOK(ecode5)) {
20189 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
20190 }
20191 arg5 = static_cast< double >(val5);
20192 {
20193 PyThreadState* __tstate = wxPyBeginAllowThreads();
20194 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
20195 wxPyEndAllowThreads(__tstate);
20196 if (PyErr_Occurred()) SWIG_fail;
20197 }
20198 resultobj = SWIG_Py_Void();
20199 {
20200 if (temp2)
20201 delete arg2;
20202 }
20203 return resultobj;
20204 fail:
20205 {
20206 if (temp2)
20207 delete arg2;
20208 }
20209 return NULL;
20210 }
20211
20212
20213 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20214 PyObject *resultobj = 0;
20215 wxDC *arg1 = (wxDC *) 0 ;
20216 wxString *arg2 = 0 ;
20217 wxPoint *arg3 = 0 ;
20218 double arg4 ;
20219 void *argp1 = 0 ;
20220 int res1 = 0 ;
20221 bool temp2 = false ;
20222 wxPoint temp3 ;
20223 double val4 ;
20224 int ecode4 = 0 ;
20225 PyObject * obj0 = 0 ;
20226 PyObject * obj1 = 0 ;
20227 PyObject * obj2 = 0 ;
20228 PyObject * obj3 = 0 ;
20229 char * kwnames[] = {
20230 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
20231 };
20232
20233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20235 if (!SWIG_IsOK(res1)) {
20236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20237 }
20238 arg1 = reinterpret_cast< wxDC * >(argp1);
20239 {
20240 arg2 = wxString_in_helper(obj1);
20241 if (arg2 == NULL) SWIG_fail;
20242 temp2 = true;
20243 }
20244 {
20245 arg3 = &temp3;
20246 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20247 }
20248 ecode4 = SWIG_AsVal_double(obj3, &val4);
20249 if (!SWIG_IsOK(ecode4)) {
20250 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
20251 }
20252 arg4 = static_cast< double >(val4);
20253 {
20254 PyThreadState* __tstate = wxPyBeginAllowThreads();
20255 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
20256 wxPyEndAllowThreads(__tstate);
20257 if (PyErr_Occurred()) SWIG_fail;
20258 }
20259 resultobj = SWIG_Py_Void();
20260 {
20261 if (temp2)
20262 delete arg2;
20263 }
20264 return resultobj;
20265 fail:
20266 {
20267 if (temp2)
20268 delete arg2;
20269 }
20270 return NULL;
20271 }
20272
20273
20274 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20275 PyObject *resultobj = 0;
20276 wxDC *arg1 = (wxDC *) 0 ;
20277 int arg2 ;
20278 int arg3 ;
20279 int arg4 ;
20280 int arg5 ;
20281 wxDC *arg6 = (wxDC *) 0 ;
20282 int arg7 ;
20283 int arg8 ;
20284 int arg9 = (int) wxCOPY ;
20285 bool arg10 = (bool) false ;
20286 int arg11 = (int) -1 ;
20287 int arg12 = (int) -1 ;
20288 bool result;
20289 void *argp1 = 0 ;
20290 int res1 = 0 ;
20291 int val2 ;
20292 int ecode2 = 0 ;
20293 int val3 ;
20294 int ecode3 = 0 ;
20295 int val4 ;
20296 int ecode4 = 0 ;
20297 int val5 ;
20298 int ecode5 = 0 ;
20299 void *argp6 = 0 ;
20300 int res6 = 0 ;
20301 int val7 ;
20302 int ecode7 = 0 ;
20303 int val8 ;
20304 int ecode8 = 0 ;
20305 int val9 ;
20306 int ecode9 = 0 ;
20307 bool val10 ;
20308 int ecode10 = 0 ;
20309 int val11 ;
20310 int ecode11 = 0 ;
20311 int val12 ;
20312 int ecode12 = 0 ;
20313 PyObject * obj0 = 0 ;
20314 PyObject * obj1 = 0 ;
20315 PyObject * obj2 = 0 ;
20316 PyObject * obj3 = 0 ;
20317 PyObject * obj4 = 0 ;
20318 PyObject * obj5 = 0 ;
20319 PyObject * obj6 = 0 ;
20320 PyObject * obj7 = 0 ;
20321 PyObject * obj8 = 0 ;
20322 PyObject * obj9 = 0 ;
20323 PyObject * obj10 = 0 ;
20324 PyObject * obj11 = 0 ;
20325 char * kwnames[] = {
20326 (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
20327 };
20328
20329 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;
20330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20331 if (!SWIG_IsOK(res1)) {
20332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
20333 }
20334 arg1 = reinterpret_cast< wxDC * >(argp1);
20335 ecode2 = SWIG_AsVal_int(obj1, &val2);
20336 if (!SWIG_IsOK(ecode2)) {
20337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
20338 }
20339 arg2 = static_cast< int >(val2);
20340 ecode3 = SWIG_AsVal_int(obj2, &val3);
20341 if (!SWIG_IsOK(ecode3)) {
20342 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
20343 }
20344 arg3 = static_cast< int >(val3);
20345 ecode4 = SWIG_AsVal_int(obj3, &val4);
20346 if (!SWIG_IsOK(ecode4)) {
20347 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
20348 }
20349 arg4 = static_cast< int >(val4);
20350 ecode5 = SWIG_AsVal_int(obj4, &val5);
20351 if (!SWIG_IsOK(ecode5)) {
20352 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
20353 }
20354 arg5 = static_cast< int >(val5);
20355 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
20356 if (!SWIG_IsOK(res6)) {
20357 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
20358 }
20359 arg6 = reinterpret_cast< wxDC * >(argp6);
20360 ecode7 = SWIG_AsVal_int(obj6, &val7);
20361 if (!SWIG_IsOK(ecode7)) {
20362 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
20363 }
20364 arg7 = static_cast< int >(val7);
20365 ecode8 = SWIG_AsVal_int(obj7, &val8);
20366 if (!SWIG_IsOK(ecode8)) {
20367 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
20368 }
20369 arg8 = static_cast< int >(val8);
20370 if (obj8) {
20371 ecode9 = SWIG_AsVal_int(obj8, &val9);
20372 if (!SWIG_IsOK(ecode9)) {
20373 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
20374 }
20375 arg9 = static_cast< int >(val9);
20376 }
20377 if (obj9) {
20378 ecode10 = SWIG_AsVal_bool(obj9, &val10);
20379 if (!SWIG_IsOK(ecode10)) {
20380 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
20381 }
20382 arg10 = static_cast< bool >(val10);
20383 }
20384 if (obj10) {
20385 ecode11 = SWIG_AsVal_int(obj10, &val11);
20386 if (!SWIG_IsOK(ecode11)) {
20387 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
20388 }
20389 arg11 = static_cast< int >(val11);
20390 }
20391 if (obj11) {
20392 ecode12 = SWIG_AsVal_int(obj11, &val12);
20393 if (!SWIG_IsOK(ecode12)) {
20394 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
20395 }
20396 arg12 = static_cast< int >(val12);
20397 }
20398 {
20399 PyThreadState* __tstate = wxPyBeginAllowThreads();
20400 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
20401 wxPyEndAllowThreads(__tstate);
20402 if (PyErr_Occurred()) SWIG_fail;
20403 }
20404 {
20405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20406 }
20407 return resultobj;
20408 fail:
20409 return NULL;
20410 }
20411
20412
20413 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20414 PyObject *resultobj = 0;
20415 wxDC *arg1 = (wxDC *) 0 ;
20416 wxPoint *arg2 = 0 ;
20417 wxSize *arg3 = 0 ;
20418 wxDC *arg4 = (wxDC *) 0 ;
20419 wxPoint *arg5 = 0 ;
20420 int arg6 = (int) wxCOPY ;
20421 bool arg7 = (bool) false ;
20422 wxPoint const &arg8_defvalue = wxDefaultPosition ;
20423 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
20424 bool result;
20425 void *argp1 = 0 ;
20426 int res1 = 0 ;
20427 wxPoint temp2 ;
20428 wxSize temp3 ;
20429 void *argp4 = 0 ;
20430 int res4 = 0 ;
20431 wxPoint temp5 ;
20432 int val6 ;
20433 int ecode6 = 0 ;
20434 bool val7 ;
20435 int ecode7 = 0 ;
20436 wxPoint temp8 ;
20437 PyObject * obj0 = 0 ;
20438 PyObject * obj1 = 0 ;
20439 PyObject * obj2 = 0 ;
20440 PyObject * obj3 = 0 ;
20441 PyObject * obj4 = 0 ;
20442 PyObject * obj5 = 0 ;
20443 PyObject * obj6 = 0 ;
20444 PyObject * obj7 = 0 ;
20445 char * kwnames[] = {
20446 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
20447 };
20448
20449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
20450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20451 if (!SWIG_IsOK(res1)) {
20452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20453 }
20454 arg1 = reinterpret_cast< wxDC * >(argp1);
20455 {
20456 arg2 = &temp2;
20457 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20458 }
20459 {
20460 arg3 = &temp3;
20461 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20462 }
20463 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20464 if (!SWIG_IsOK(res4)) {
20465 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20466 }
20467 arg4 = reinterpret_cast< wxDC * >(argp4);
20468 {
20469 arg5 = &temp5;
20470 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20471 }
20472 if (obj5) {
20473 ecode6 = SWIG_AsVal_int(obj5, &val6);
20474 if (!SWIG_IsOK(ecode6)) {
20475 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
20476 }
20477 arg6 = static_cast< int >(val6);
20478 }
20479 if (obj6) {
20480 ecode7 = SWIG_AsVal_bool(obj6, &val7);
20481 if (!SWIG_IsOK(ecode7)) {
20482 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
20483 }
20484 arg7 = static_cast< bool >(val7);
20485 }
20486 if (obj7) {
20487 {
20488 arg8 = &temp8;
20489 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
20490 }
20491 }
20492 {
20493 PyThreadState* __tstate = wxPyBeginAllowThreads();
20494 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
20495 wxPyEndAllowThreads(__tstate);
20496 if (PyErr_Occurred()) SWIG_fail;
20497 }
20498 {
20499 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20500 }
20501 return resultobj;
20502 fail:
20503 return NULL;
20504 }
20505
20506
20507 SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20508 PyObject *resultobj = 0;
20509 wxDC *arg1 = (wxDC *) 0 ;
20510 wxRect *arg2 = (wxRect *) NULL ;
20511 SwigValueWrapper<wxBitmap > result;
20512 void *argp1 = 0 ;
20513 int res1 = 0 ;
20514 void *argp2 = 0 ;
20515 int res2 = 0 ;
20516 PyObject * obj0 = 0 ;
20517 PyObject * obj1 = 0 ;
20518 char * kwnames[] = {
20519 (char *) "self",(char *) "subrect", NULL
20520 };
20521
20522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",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_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
20526 }
20527 arg1 = reinterpret_cast< wxDC * >(argp1);
20528 if (obj1) {
20529 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
20530 if (!SWIG_IsOK(res2)) {
20531 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
20532 }
20533 arg2 = reinterpret_cast< wxRect * >(argp2);
20534 }
20535 {
20536 PyThreadState* __tstate = wxPyBeginAllowThreads();
20537 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
20538 wxPyEndAllowThreads(__tstate);
20539 if (PyErr_Occurred()) SWIG_fail;
20540 }
20541 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
20542 return resultobj;
20543 fail:
20544 return NULL;
20545 }
20546
20547
20548 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20549 PyObject *resultobj = 0;
20550 wxDC *arg1 = (wxDC *) 0 ;
20551 int arg2 ;
20552 int arg3 ;
20553 int arg4 ;
20554 int arg5 ;
20555 void *argp1 = 0 ;
20556 int res1 = 0 ;
20557 int val2 ;
20558 int ecode2 = 0 ;
20559 int val3 ;
20560 int ecode3 = 0 ;
20561 int val4 ;
20562 int ecode4 = 0 ;
20563 int val5 ;
20564 int ecode5 = 0 ;
20565 PyObject * obj0 = 0 ;
20566 PyObject * obj1 = 0 ;
20567 PyObject * obj2 = 0 ;
20568 PyObject * obj3 = 0 ;
20569 PyObject * obj4 = 0 ;
20570 char * kwnames[] = {
20571 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
20572 };
20573
20574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20576 if (!SWIG_IsOK(res1)) {
20577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20578 }
20579 arg1 = reinterpret_cast< wxDC * >(argp1);
20580 ecode2 = SWIG_AsVal_int(obj1, &val2);
20581 if (!SWIG_IsOK(ecode2)) {
20582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
20583 }
20584 arg2 = static_cast< int >(val2);
20585 ecode3 = SWIG_AsVal_int(obj2, &val3);
20586 if (!SWIG_IsOK(ecode3)) {
20587 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
20588 }
20589 arg3 = static_cast< int >(val3);
20590 ecode4 = SWIG_AsVal_int(obj3, &val4);
20591 if (!SWIG_IsOK(ecode4)) {
20592 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
20593 }
20594 arg4 = static_cast< int >(val4);
20595 ecode5 = SWIG_AsVal_int(obj4, &val5);
20596 if (!SWIG_IsOK(ecode5)) {
20597 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
20598 }
20599 arg5 = static_cast< int >(val5);
20600 {
20601 PyThreadState* __tstate = wxPyBeginAllowThreads();
20602 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
20603 wxPyEndAllowThreads(__tstate);
20604 if (PyErr_Occurred()) SWIG_fail;
20605 }
20606 resultobj = SWIG_Py_Void();
20607 return resultobj;
20608 fail:
20609 return NULL;
20610 }
20611
20612
20613 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20614 PyObject *resultobj = 0;
20615 wxDC *arg1 = (wxDC *) 0 ;
20616 wxPoint *arg2 = 0 ;
20617 wxSize *arg3 = 0 ;
20618 void *argp1 = 0 ;
20619 int res1 = 0 ;
20620 wxPoint temp2 ;
20621 wxSize temp3 ;
20622 PyObject * obj0 = 0 ;
20623 PyObject * obj1 = 0 ;
20624 PyObject * obj2 = 0 ;
20625 char * kwnames[] = {
20626 (char *) "self",(char *) "pt",(char *) "sz", NULL
20627 };
20628
20629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20631 if (!SWIG_IsOK(res1)) {
20632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20633 }
20634 arg1 = reinterpret_cast< wxDC * >(argp1);
20635 {
20636 arg2 = &temp2;
20637 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20638 }
20639 {
20640 arg3 = &temp3;
20641 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20642 }
20643 {
20644 PyThreadState* __tstate = wxPyBeginAllowThreads();
20645 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20646 wxPyEndAllowThreads(__tstate);
20647 if (PyErr_Occurred()) SWIG_fail;
20648 }
20649 resultobj = SWIG_Py_Void();
20650 return resultobj;
20651 fail:
20652 return NULL;
20653 }
20654
20655
20656 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20657 PyObject *resultobj = 0;
20658 wxDC *arg1 = (wxDC *) 0 ;
20659 wxRegion *arg2 = 0 ;
20660 void *argp1 = 0 ;
20661 int res1 = 0 ;
20662 void *argp2 = 0 ;
20663 int res2 = 0 ;
20664 PyObject * obj0 = 0 ;
20665 PyObject * obj1 = 0 ;
20666 char * kwnames[] = {
20667 (char *) "self",(char *) "region", NULL
20668 };
20669
20670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20672 if (!SWIG_IsOK(res1)) {
20673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20674 }
20675 arg1 = reinterpret_cast< wxDC * >(argp1);
20676 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20677 if (!SWIG_IsOK(res2)) {
20678 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20679 }
20680 if (!argp2) {
20681 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20682 }
20683 arg2 = reinterpret_cast< wxRegion * >(argp2);
20684 {
20685 PyThreadState* __tstate = wxPyBeginAllowThreads();
20686 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20687 wxPyEndAllowThreads(__tstate);
20688 if (PyErr_Occurred()) SWIG_fail;
20689 }
20690 resultobj = SWIG_Py_Void();
20691 return resultobj;
20692 fail:
20693 return NULL;
20694 }
20695
20696
20697 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20698 PyObject *resultobj = 0;
20699 wxDC *arg1 = (wxDC *) 0 ;
20700 wxRect *arg2 = 0 ;
20701 void *argp1 = 0 ;
20702 int res1 = 0 ;
20703 wxRect temp2 ;
20704 PyObject * obj0 = 0 ;
20705 PyObject * obj1 = 0 ;
20706 char * kwnames[] = {
20707 (char *) "self",(char *) "rect", NULL
20708 };
20709
20710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20712 if (!SWIG_IsOK(res1)) {
20713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20714 }
20715 arg1 = reinterpret_cast< wxDC * >(argp1);
20716 {
20717 arg2 = &temp2;
20718 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20719 }
20720 {
20721 PyThreadState* __tstate = wxPyBeginAllowThreads();
20722 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20723 wxPyEndAllowThreads(__tstate);
20724 if (PyErr_Occurred()) SWIG_fail;
20725 }
20726 resultobj = SWIG_Py_Void();
20727 return resultobj;
20728 fail:
20729 return NULL;
20730 }
20731
20732
20733 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20734 PyObject *resultobj = 0;
20735 wxDC *arg1 = (wxDC *) 0 ;
20736 int arg2 ;
20737 wxPoint *arg3 = (wxPoint *) 0 ;
20738 int arg4 = (int) 0 ;
20739 int arg5 = (int) 0 ;
20740 void *argp1 = 0 ;
20741 int res1 = 0 ;
20742 int val4 ;
20743 int ecode4 = 0 ;
20744 int val5 ;
20745 int ecode5 = 0 ;
20746 PyObject * obj0 = 0 ;
20747 PyObject * obj1 = 0 ;
20748 PyObject * obj2 = 0 ;
20749 PyObject * obj3 = 0 ;
20750 char * kwnames[] = {
20751 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20752 };
20753
20754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20756 if (!SWIG_IsOK(res1)) {
20757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20758 }
20759 arg1 = reinterpret_cast< wxDC * >(argp1);
20760 {
20761 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20762 if (arg3 == NULL) SWIG_fail;
20763 }
20764 if (obj2) {
20765 ecode4 = SWIG_AsVal_int(obj2, &val4);
20766 if (!SWIG_IsOK(ecode4)) {
20767 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20768 }
20769 arg4 = static_cast< int >(val4);
20770 }
20771 if (obj3) {
20772 ecode5 = SWIG_AsVal_int(obj3, &val5);
20773 if (!SWIG_IsOK(ecode5)) {
20774 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20775 }
20776 arg5 = static_cast< int >(val5);
20777 }
20778 {
20779 PyThreadState* __tstate = wxPyBeginAllowThreads();
20780 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20781 wxPyEndAllowThreads(__tstate);
20782 if (PyErr_Occurred()) SWIG_fail;
20783 }
20784 resultobj = SWIG_Py_Void();
20785 {
20786 if (arg3) delete [] arg3;
20787 }
20788 return resultobj;
20789 fail:
20790 {
20791 if (arg3) delete [] arg3;
20792 }
20793 return NULL;
20794 }
20795
20796
20797 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20798 PyObject *resultobj = 0;
20799 wxDC *arg1 = (wxDC *) 0 ;
20800 int arg2 ;
20801 wxPoint *arg3 = (wxPoint *) 0 ;
20802 int arg4 = (int) 0 ;
20803 int arg5 = (int) 0 ;
20804 int arg6 = (int) wxODDEVEN_RULE ;
20805 void *argp1 = 0 ;
20806 int res1 = 0 ;
20807 int val4 ;
20808 int ecode4 = 0 ;
20809 int val5 ;
20810 int ecode5 = 0 ;
20811 int val6 ;
20812 int ecode6 = 0 ;
20813 PyObject * obj0 = 0 ;
20814 PyObject * obj1 = 0 ;
20815 PyObject * obj2 = 0 ;
20816 PyObject * obj3 = 0 ;
20817 PyObject * obj4 = 0 ;
20818 char * kwnames[] = {
20819 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20820 };
20821
20822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20824 if (!SWIG_IsOK(res1)) {
20825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20826 }
20827 arg1 = reinterpret_cast< wxDC * >(argp1);
20828 {
20829 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20830 if (arg3 == NULL) SWIG_fail;
20831 }
20832 if (obj2) {
20833 ecode4 = SWIG_AsVal_int(obj2, &val4);
20834 if (!SWIG_IsOK(ecode4)) {
20835 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20836 }
20837 arg4 = static_cast< int >(val4);
20838 }
20839 if (obj3) {
20840 ecode5 = SWIG_AsVal_int(obj3, &val5);
20841 if (!SWIG_IsOK(ecode5)) {
20842 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20843 }
20844 arg5 = static_cast< int >(val5);
20845 }
20846 if (obj4) {
20847 ecode6 = SWIG_AsVal_int(obj4, &val6);
20848 if (!SWIG_IsOK(ecode6)) {
20849 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20850 }
20851 arg6 = static_cast< int >(val6);
20852 }
20853 {
20854 PyThreadState* __tstate = wxPyBeginAllowThreads();
20855 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20856 wxPyEndAllowThreads(__tstate);
20857 if (PyErr_Occurred()) SWIG_fail;
20858 }
20859 resultobj = SWIG_Py_Void();
20860 {
20861 if (arg3) delete [] arg3;
20862 }
20863 return resultobj;
20864 fail:
20865 {
20866 if (arg3) delete [] arg3;
20867 }
20868 return NULL;
20869 }
20870
20871
20872 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20873 PyObject *resultobj = 0;
20874 wxDC *arg1 = (wxDC *) 0 ;
20875 wxString *arg2 = 0 ;
20876 wxRect *arg3 = 0 ;
20877 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20878 int arg5 = (int) -1 ;
20879 void *argp1 = 0 ;
20880 int res1 = 0 ;
20881 bool temp2 = false ;
20882 wxRect temp3 ;
20883 int val4 ;
20884 int ecode4 = 0 ;
20885 int val5 ;
20886 int ecode5 = 0 ;
20887 PyObject * obj0 = 0 ;
20888 PyObject * obj1 = 0 ;
20889 PyObject * obj2 = 0 ;
20890 PyObject * obj3 = 0 ;
20891 PyObject * obj4 = 0 ;
20892 char * kwnames[] = {
20893 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20894 };
20895
20896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20898 if (!SWIG_IsOK(res1)) {
20899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20900 }
20901 arg1 = reinterpret_cast< wxDC * >(argp1);
20902 {
20903 arg2 = wxString_in_helper(obj1);
20904 if (arg2 == NULL) SWIG_fail;
20905 temp2 = true;
20906 }
20907 {
20908 arg3 = &temp3;
20909 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20910 }
20911 if (obj3) {
20912 ecode4 = SWIG_AsVal_int(obj3, &val4);
20913 if (!SWIG_IsOK(ecode4)) {
20914 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20915 }
20916 arg4 = static_cast< int >(val4);
20917 }
20918 if (obj4) {
20919 ecode5 = SWIG_AsVal_int(obj4, &val5);
20920 if (!SWIG_IsOK(ecode5)) {
20921 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20922 }
20923 arg5 = static_cast< int >(val5);
20924 }
20925 {
20926 PyThreadState* __tstate = wxPyBeginAllowThreads();
20927 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20928 wxPyEndAllowThreads(__tstate);
20929 if (PyErr_Occurred()) SWIG_fail;
20930 }
20931 resultobj = SWIG_Py_Void();
20932 {
20933 if (temp2)
20934 delete arg2;
20935 }
20936 return resultobj;
20937 fail:
20938 {
20939 if (temp2)
20940 delete arg2;
20941 }
20942 return NULL;
20943 }
20944
20945
20946 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20947 PyObject *resultobj = 0;
20948 wxDC *arg1 = (wxDC *) 0 ;
20949 wxString *arg2 = 0 ;
20950 wxBitmap *arg3 = 0 ;
20951 wxRect *arg4 = 0 ;
20952 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20953 int arg6 = (int) -1 ;
20954 wxRect result;
20955 void *argp1 = 0 ;
20956 int res1 = 0 ;
20957 bool temp2 = false ;
20958 void *argp3 = 0 ;
20959 int res3 = 0 ;
20960 wxRect temp4 ;
20961 int val5 ;
20962 int ecode5 = 0 ;
20963 int val6 ;
20964 int ecode6 = 0 ;
20965 PyObject * obj0 = 0 ;
20966 PyObject * obj1 = 0 ;
20967 PyObject * obj2 = 0 ;
20968 PyObject * obj3 = 0 ;
20969 PyObject * obj4 = 0 ;
20970 PyObject * obj5 = 0 ;
20971 char * kwnames[] = {
20972 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20973 };
20974
20975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20977 if (!SWIG_IsOK(res1)) {
20978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20979 }
20980 arg1 = reinterpret_cast< wxDC * >(argp1);
20981 {
20982 arg2 = wxString_in_helper(obj1);
20983 if (arg2 == NULL) SWIG_fail;
20984 temp2 = true;
20985 }
20986 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20987 if (!SWIG_IsOK(res3)) {
20988 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20989 }
20990 if (!argp3) {
20991 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20992 }
20993 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20994 {
20995 arg4 = &temp4;
20996 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20997 }
20998 if (obj4) {
20999 ecode5 = SWIG_AsVal_int(obj4, &val5);
21000 if (!SWIG_IsOK(ecode5)) {
21001 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
21002 }
21003 arg5 = static_cast< int >(val5);
21004 }
21005 if (obj5) {
21006 ecode6 = SWIG_AsVal_int(obj5, &val6);
21007 if (!SWIG_IsOK(ecode6)) {
21008 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
21009 }
21010 arg6 = static_cast< int >(val6);
21011 }
21012 {
21013 PyThreadState* __tstate = wxPyBeginAllowThreads();
21014 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
21015 wxPyEndAllowThreads(__tstate);
21016 if (PyErr_Occurred()) SWIG_fail;
21017 }
21018 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21019 {
21020 if (temp2)
21021 delete arg2;
21022 }
21023 return resultobj;
21024 fail:
21025 {
21026 if (temp2)
21027 delete arg2;
21028 }
21029 return NULL;
21030 }
21031
21032
21033 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21034 PyObject *resultobj = 0;
21035 wxDC *arg1 = (wxDC *) 0 ;
21036 int arg2 ;
21037 wxPoint *arg3 = (wxPoint *) 0 ;
21038 void *argp1 = 0 ;
21039 int res1 = 0 ;
21040 PyObject * obj0 = 0 ;
21041 PyObject * obj1 = 0 ;
21042 char * kwnames[] = {
21043 (char *) "self",(char *) "points", NULL
21044 };
21045
21046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
21047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21048 if (!SWIG_IsOK(res1)) {
21049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
21050 }
21051 arg1 = reinterpret_cast< wxDC * >(argp1);
21052 {
21053 arg3 = wxPoint_LIST_helper(obj1, &arg2);
21054 if (arg3 == NULL) SWIG_fail;
21055 }
21056 {
21057 PyThreadState* __tstate = wxPyBeginAllowThreads();
21058 (arg1)->DrawSpline(arg2,arg3);
21059 wxPyEndAllowThreads(__tstate);
21060 if (PyErr_Occurred()) SWIG_fail;
21061 }
21062 resultobj = SWIG_Py_Void();
21063 {
21064 if (arg3) delete [] arg3;
21065 }
21066 return resultobj;
21067 fail:
21068 {
21069 if (arg3) delete [] arg3;
21070 }
21071 return NULL;
21072 }
21073
21074
21075 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21076 PyObject *resultobj = 0;
21077 wxDC *arg1 = (wxDC *) 0 ;
21078 void *argp1 = 0 ;
21079 int res1 = 0 ;
21080 PyObject *swig_obj[1] ;
21081
21082 if (!args) SWIG_fail;
21083 swig_obj[0] = args;
21084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21085 if (!SWIG_IsOK(res1)) {
21086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
21087 }
21088 arg1 = reinterpret_cast< wxDC * >(argp1);
21089 {
21090 PyThreadState* __tstate = wxPyBeginAllowThreads();
21091 (arg1)->Clear();
21092 wxPyEndAllowThreads(__tstate);
21093 if (PyErr_Occurred()) SWIG_fail;
21094 }
21095 resultobj = SWIG_Py_Void();
21096 return resultobj;
21097 fail:
21098 return NULL;
21099 }
21100
21101
21102 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21103 PyObject *resultobj = 0;
21104 wxDC *arg1 = (wxDC *) 0 ;
21105 wxString *arg2 = 0 ;
21106 bool result;
21107 void *argp1 = 0 ;
21108 int res1 = 0 ;
21109 bool temp2 = false ;
21110 PyObject * obj0 = 0 ;
21111 PyObject * obj1 = 0 ;
21112 char * kwnames[] = {
21113 (char *) "self",(char *) "message", NULL
21114 };
21115
21116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
21117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21118 if (!SWIG_IsOK(res1)) {
21119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
21120 }
21121 arg1 = reinterpret_cast< wxDC * >(argp1);
21122 {
21123 arg2 = wxString_in_helper(obj1);
21124 if (arg2 == NULL) SWIG_fail;
21125 temp2 = true;
21126 }
21127 {
21128 PyThreadState* __tstate = wxPyBeginAllowThreads();
21129 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
21130 wxPyEndAllowThreads(__tstate);
21131 if (PyErr_Occurred()) SWIG_fail;
21132 }
21133 {
21134 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21135 }
21136 {
21137 if (temp2)
21138 delete arg2;
21139 }
21140 return resultobj;
21141 fail:
21142 {
21143 if (temp2)
21144 delete arg2;
21145 }
21146 return NULL;
21147 }
21148
21149
21150 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21151 PyObject *resultobj = 0;
21152 wxDC *arg1 = (wxDC *) 0 ;
21153 void *argp1 = 0 ;
21154 int res1 = 0 ;
21155 PyObject *swig_obj[1] ;
21156
21157 if (!args) SWIG_fail;
21158 swig_obj[0] = args;
21159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21160 if (!SWIG_IsOK(res1)) {
21161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
21162 }
21163 arg1 = reinterpret_cast< wxDC * >(argp1);
21164 {
21165 PyThreadState* __tstate = wxPyBeginAllowThreads();
21166 (arg1)->EndDoc();
21167 wxPyEndAllowThreads(__tstate);
21168 if (PyErr_Occurred()) SWIG_fail;
21169 }
21170 resultobj = SWIG_Py_Void();
21171 return resultobj;
21172 fail:
21173 return NULL;
21174 }
21175
21176
21177 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21178 PyObject *resultobj = 0;
21179 wxDC *arg1 = (wxDC *) 0 ;
21180 void *argp1 = 0 ;
21181 int res1 = 0 ;
21182 PyObject *swig_obj[1] ;
21183
21184 if (!args) SWIG_fail;
21185 swig_obj[0] = args;
21186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21187 if (!SWIG_IsOK(res1)) {
21188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
21189 }
21190 arg1 = reinterpret_cast< wxDC * >(argp1);
21191 {
21192 PyThreadState* __tstate = wxPyBeginAllowThreads();
21193 (arg1)->StartPage();
21194 wxPyEndAllowThreads(__tstate);
21195 if (PyErr_Occurred()) SWIG_fail;
21196 }
21197 resultobj = SWIG_Py_Void();
21198 return resultobj;
21199 fail:
21200 return NULL;
21201 }
21202
21203
21204 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21205 PyObject *resultobj = 0;
21206 wxDC *arg1 = (wxDC *) 0 ;
21207 void *argp1 = 0 ;
21208 int res1 = 0 ;
21209 PyObject *swig_obj[1] ;
21210
21211 if (!args) SWIG_fail;
21212 swig_obj[0] = args;
21213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21214 if (!SWIG_IsOK(res1)) {
21215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
21216 }
21217 arg1 = reinterpret_cast< wxDC * >(argp1);
21218 {
21219 PyThreadState* __tstate = wxPyBeginAllowThreads();
21220 (arg1)->EndPage();
21221 wxPyEndAllowThreads(__tstate);
21222 if (PyErr_Occurred()) SWIG_fail;
21223 }
21224 resultobj = SWIG_Py_Void();
21225 return resultobj;
21226 fail:
21227 return NULL;
21228 }
21229
21230
21231 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21232 PyObject *resultobj = 0;
21233 wxDC *arg1 = (wxDC *) 0 ;
21234 wxFont *arg2 = 0 ;
21235 void *argp1 = 0 ;
21236 int res1 = 0 ;
21237 void *argp2 = 0 ;
21238 int res2 = 0 ;
21239 PyObject * obj0 = 0 ;
21240 PyObject * obj1 = 0 ;
21241 char * kwnames[] = {
21242 (char *) "self",(char *) "font", NULL
21243 };
21244
21245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
21246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21247 if (!SWIG_IsOK(res1)) {
21248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
21249 }
21250 arg1 = reinterpret_cast< wxDC * >(argp1);
21251 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
21252 if (!SWIG_IsOK(res2)) {
21253 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21254 }
21255 if (!argp2) {
21256 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21257 }
21258 arg2 = reinterpret_cast< wxFont * >(argp2);
21259 {
21260 PyThreadState* __tstate = wxPyBeginAllowThreads();
21261 (arg1)->SetFont((wxFont const &)*arg2);
21262 wxPyEndAllowThreads(__tstate);
21263 if (PyErr_Occurred()) SWIG_fail;
21264 }
21265 resultobj = SWIG_Py_Void();
21266 return resultobj;
21267 fail:
21268 return NULL;
21269 }
21270
21271
21272 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21273 PyObject *resultobj = 0;
21274 wxDC *arg1 = (wxDC *) 0 ;
21275 wxPen *arg2 = 0 ;
21276 void *argp1 = 0 ;
21277 int res1 = 0 ;
21278 void *argp2 = 0 ;
21279 int res2 = 0 ;
21280 PyObject * obj0 = 0 ;
21281 PyObject * obj1 = 0 ;
21282 char * kwnames[] = {
21283 (char *) "self",(char *) "pen", NULL
21284 };
21285
21286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
21287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21288 if (!SWIG_IsOK(res1)) {
21289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
21290 }
21291 arg1 = reinterpret_cast< wxDC * >(argp1);
21292 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
21293 if (!SWIG_IsOK(res2)) {
21294 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21295 }
21296 if (!argp2) {
21297 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21298 }
21299 arg2 = reinterpret_cast< wxPen * >(argp2);
21300 {
21301 PyThreadState* __tstate = wxPyBeginAllowThreads();
21302 (arg1)->SetPen((wxPen const &)*arg2);
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_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21314 PyObject *resultobj = 0;
21315 wxDC *arg1 = (wxDC *) 0 ;
21316 wxBrush *arg2 = 0 ;
21317 void *argp1 = 0 ;
21318 int res1 = 0 ;
21319 void *argp2 = 0 ;
21320 int res2 = 0 ;
21321 PyObject * obj0 = 0 ;
21322 PyObject * obj1 = 0 ;
21323 char * kwnames[] = {
21324 (char *) "self",(char *) "brush", NULL
21325 };
21326
21327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
21328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21329 if (!SWIG_IsOK(res1)) {
21330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
21331 }
21332 arg1 = reinterpret_cast< wxDC * >(argp1);
21333 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21334 if (!SWIG_IsOK(res2)) {
21335 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21336 }
21337 if (!argp2) {
21338 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21339 }
21340 arg2 = reinterpret_cast< wxBrush * >(argp2);
21341 {
21342 PyThreadState* __tstate = wxPyBeginAllowThreads();
21343 (arg1)->SetBrush((wxBrush const &)*arg2);
21344 wxPyEndAllowThreads(__tstate);
21345 if (PyErr_Occurred()) SWIG_fail;
21346 }
21347 resultobj = SWIG_Py_Void();
21348 return resultobj;
21349 fail:
21350 return NULL;
21351 }
21352
21353
21354 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21355 PyObject *resultobj = 0;
21356 wxDC *arg1 = (wxDC *) 0 ;
21357 wxBrush *arg2 = 0 ;
21358 void *argp1 = 0 ;
21359 int res1 = 0 ;
21360 void *argp2 = 0 ;
21361 int res2 = 0 ;
21362 PyObject * obj0 = 0 ;
21363 PyObject * obj1 = 0 ;
21364 char * kwnames[] = {
21365 (char *) "self",(char *) "brush", NULL
21366 };
21367
21368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21370 if (!SWIG_IsOK(res1)) {
21371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21372 }
21373 arg1 = reinterpret_cast< wxDC * >(argp1);
21374 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21375 if (!SWIG_IsOK(res2)) {
21376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21377 }
21378 if (!argp2) {
21379 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21380 }
21381 arg2 = reinterpret_cast< wxBrush * >(argp2);
21382 {
21383 PyThreadState* __tstate = wxPyBeginAllowThreads();
21384 (arg1)->SetBackground((wxBrush const &)*arg2);
21385 wxPyEndAllowThreads(__tstate);
21386 if (PyErr_Occurred()) SWIG_fail;
21387 }
21388 resultobj = SWIG_Py_Void();
21389 return resultobj;
21390 fail:
21391 return NULL;
21392 }
21393
21394
21395 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21396 PyObject *resultobj = 0;
21397 wxDC *arg1 = (wxDC *) 0 ;
21398 int arg2 ;
21399 void *argp1 = 0 ;
21400 int res1 = 0 ;
21401 int val2 ;
21402 int ecode2 = 0 ;
21403 PyObject * obj0 = 0 ;
21404 PyObject * obj1 = 0 ;
21405 char * kwnames[] = {
21406 (char *) "self",(char *) "mode", NULL
21407 };
21408
21409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
21410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21411 if (!SWIG_IsOK(res1)) {
21412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
21413 }
21414 arg1 = reinterpret_cast< wxDC * >(argp1);
21415 ecode2 = SWIG_AsVal_int(obj1, &val2);
21416 if (!SWIG_IsOK(ecode2)) {
21417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
21418 }
21419 arg2 = static_cast< int >(val2);
21420 {
21421 PyThreadState* __tstate = wxPyBeginAllowThreads();
21422 (arg1)->SetBackgroundMode(arg2);
21423 wxPyEndAllowThreads(__tstate);
21424 if (PyErr_Occurred()) SWIG_fail;
21425 }
21426 resultobj = SWIG_Py_Void();
21427 return resultobj;
21428 fail:
21429 return NULL;
21430 }
21431
21432
21433 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21434 PyObject *resultobj = 0;
21435 wxDC *arg1 = (wxDC *) 0 ;
21436 wxPalette *arg2 = 0 ;
21437 void *argp1 = 0 ;
21438 int res1 = 0 ;
21439 void *argp2 = 0 ;
21440 int res2 = 0 ;
21441 PyObject * obj0 = 0 ;
21442 PyObject * obj1 = 0 ;
21443 char * kwnames[] = {
21444 (char *) "self",(char *) "palette", NULL
21445 };
21446
21447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
21448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21449 if (!SWIG_IsOK(res1)) {
21450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
21451 }
21452 arg1 = reinterpret_cast< wxDC * >(argp1);
21453 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
21454 if (!SWIG_IsOK(res2)) {
21455 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21456 }
21457 if (!argp2) {
21458 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21459 }
21460 arg2 = reinterpret_cast< wxPalette * >(argp2);
21461 {
21462 PyThreadState* __tstate = wxPyBeginAllowThreads();
21463 (arg1)->SetPalette((wxPalette const &)*arg2);
21464 wxPyEndAllowThreads(__tstate);
21465 if (PyErr_Occurred()) SWIG_fail;
21466 }
21467 resultobj = SWIG_Py_Void();
21468 return resultobj;
21469 fail:
21470 return NULL;
21471 }
21472
21473
21474 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21475 PyObject *resultobj = 0;
21476 wxDC *arg1 = (wxDC *) 0 ;
21477 void *argp1 = 0 ;
21478 int res1 = 0 ;
21479 PyObject *swig_obj[1] ;
21480
21481 if (!args) SWIG_fail;
21482 swig_obj[0] = args;
21483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21484 if (!SWIG_IsOK(res1)) {
21485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21486 }
21487 arg1 = reinterpret_cast< wxDC * >(argp1);
21488 {
21489 PyThreadState* __tstate = wxPyBeginAllowThreads();
21490 (arg1)->DestroyClippingRegion();
21491 wxPyEndAllowThreads(__tstate);
21492 if (PyErr_Occurred()) SWIG_fail;
21493 }
21494 resultobj = SWIG_Py_Void();
21495 return resultobj;
21496 fail:
21497 return NULL;
21498 }
21499
21500
21501 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21502 PyObject *resultobj = 0;
21503 wxDC *arg1 = (wxDC *) 0 ;
21504 int *arg2 = (int *) 0 ;
21505 int *arg3 = (int *) 0 ;
21506 int *arg4 = (int *) 0 ;
21507 int *arg5 = (int *) 0 ;
21508 void *argp1 = 0 ;
21509 int res1 = 0 ;
21510 int temp2 ;
21511 int res2 = SWIG_TMPOBJ ;
21512 int temp3 ;
21513 int res3 = SWIG_TMPOBJ ;
21514 int temp4 ;
21515 int res4 = SWIG_TMPOBJ ;
21516 int temp5 ;
21517 int res5 = SWIG_TMPOBJ ;
21518 PyObject *swig_obj[1] ;
21519
21520 arg2 = &temp2;
21521 arg3 = &temp3;
21522 arg4 = &temp4;
21523 arg5 = &temp5;
21524 if (!args) SWIG_fail;
21525 swig_obj[0] = args;
21526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21527 if (!SWIG_IsOK(res1)) {
21528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
21529 }
21530 arg1 = reinterpret_cast< wxDC * >(argp1);
21531 {
21532 PyThreadState* __tstate = wxPyBeginAllowThreads();
21533 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
21534 wxPyEndAllowThreads(__tstate);
21535 if (PyErr_Occurred()) SWIG_fail;
21536 }
21537 resultobj = SWIG_Py_Void();
21538 if (SWIG_IsTmpObj(res2)) {
21539 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21540 } else {
21541 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21542 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21543 }
21544 if (SWIG_IsTmpObj(res3)) {
21545 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21546 } else {
21547 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21548 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21549 }
21550 if (SWIG_IsTmpObj(res4)) {
21551 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21552 } else {
21553 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21554 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21555 }
21556 if (SWIG_IsTmpObj(res5)) {
21557 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21558 } else {
21559 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21560 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21561 }
21562 return resultobj;
21563 fail:
21564 return NULL;
21565 }
21566
21567
21568 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21569 PyObject *resultobj = 0;
21570 wxDC *arg1 = (wxDC *) 0 ;
21571 wxRect result;
21572 void *argp1 = 0 ;
21573 int res1 = 0 ;
21574 PyObject *swig_obj[1] ;
21575
21576 if (!args) SWIG_fail;
21577 swig_obj[0] = args;
21578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21579 if (!SWIG_IsOK(res1)) {
21580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21581 }
21582 arg1 = reinterpret_cast< wxDC * >(argp1);
21583 {
21584 PyThreadState* __tstate = wxPyBeginAllowThreads();
21585 result = wxDC_GetClippingRect(arg1);
21586 wxPyEndAllowThreads(__tstate);
21587 if (PyErr_Occurred()) SWIG_fail;
21588 }
21589 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21590 return resultobj;
21591 fail:
21592 return NULL;
21593 }
21594
21595
21596 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21597 PyObject *resultobj = 0;
21598 wxDC *arg1 = (wxDC *) 0 ;
21599 int result;
21600 void *argp1 = 0 ;
21601 int res1 = 0 ;
21602 PyObject *swig_obj[1] ;
21603
21604 if (!args) SWIG_fail;
21605 swig_obj[0] = args;
21606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21607 if (!SWIG_IsOK(res1)) {
21608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
21609 }
21610 arg1 = reinterpret_cast< wxDC * >(argp1);
21611 {
21612 PyThreadState* __tstate = wxPyBeginAllowThreads();
21613 result = (int)((wxDC const *)arg1)->GetCharHeight();
21614 wxPyEndAllowThreads(__tstate);
21615 if (PyErr_Occurred()) SWIG_fail;
21616 }
21617 resultobj = SWIG_From_int(static_cast< int >(result));
21618 return resultobj;
21619 fail:
21620 return NULL;
21621 }
21622
21623
21624 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21625 PyObject *resultobj = 0;
21626 wxDC *arg1 = (wxDC *) 0 ;
21627 int result;
21628 void *argp1 = 0 ;
21629 int res1 = 0 ;
21630 PyObject *swig_obj[1] ;
21631
21632 if (!args) SWIG_fail;
21633 swig_obj[0] = args;
21634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21635 if (!SWIG_IsOK(res1)) {
21636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21637 }
21638 arg1 = reinterpret_cast< wxDC * >(argp1);
21639 {
21640 PyThreadState* __tstate = wxPyBeginAllowThreads();
21641 result = (int)((wxDC const *)arg1)->GetCharWidth();
21642 wxPyEndAllowThreads(__tstate);
21643 if (PyErr_Occurred()) SWIG_fail;
21644 }
21645 resultobj = SWIG_From_int(static_cast< int >(result));
21646 return resultobj;
21647 fail:
21648 return NULL;
21649 }
21650
21651
21652 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21653 PyObject *resultobj = 0;
21654 wxDC *arg1 = (wxDC *) 0 ;
21655 wxString *arg2 = 0 ;
21656 int *arg3 = (int *) 0 ;
21657 int *arg4 = (int *) 0 ;
21658 void *argp1 = 0 ;
21659 int res1 = 0 ;
21660 bool temp2 = false ;
21661 int temp3 ;
21662 int res3 = SWIG_TMPOBJ ;
21663 int temp4 ;
21664 int res4 = SWIG_TMPOBJ ;
21665 PyObject * obj0 = 0 ;
21666 PyObject * obj1 = 0 ;
21667 char * kwnames[] = {
21668 (char *) "self",(char *) "string", NULL
21669 };
21670
21671 arg3 = &temp3;
21672 arg4 = &temp4;
21673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21675 if (!SWIG_IsOK(res1)) {
21676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21677 }
21678 arg1 = reinterpret_cast< wxDC * >(argp1);
21679 {
21680 arg2 = wxString_in_helper(obj1);
21681 if (arg2 == NULL) SWIG_fail;
21682 temp2 = true;
21683 }
21684 {
21685 PyThreadState* __tstate = wxPyBeginAllowThreads();
21686 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21687 wxPyEndAllowThreads(__tstate);
21688 if (PyErr_Occurred()) SWIG_fail;
21689 }
21690 resultobj = SWIG_Py_Void();
21691 if (SWIG_IsTmpObj(res3)) {
21692 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21693 } else {
21694 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21695 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21696 }
21697 if (SWIG_IsTmpObj(res4)) {
21698 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21699 } else {
21700 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21701 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21702 }
21703 {
21704 if (temp2)
21705 delete arg2;
21706 }
21707 return resultobj;
21708 fail:
21709 {
21710 if (temp2)
21711 delete arg2;
21712 }
21713 return NULL;
21714 }
21715
21716
21717 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21718 PyObject *resultobj = 0;
21719 wxDC *arg1 = (wxDC *) 0 ;
21720 wxString *arg2 = 0 ;
21721 int *arg3 = (int *) 0 ;
21722 int *arg4 = (int *) 0 ;
21723 int *arg5 = (int *) 0 ;
21724 int *arg6 = (int *) 0 ;
21725 wxFont *arg7 = (wxFont *) NULL ;
21726 void *argp1 = 0 ;
21727 int res1 = 0 ;
21728 bool temp2 = false ;
21729 int temp3 ;
21730 int res3 = SWIG_TMPOBJ ;
21731 int temp4 ;
21732 int res4 = SWIG_TMPOBJ ;
21733 int temp5 ;
21734 int res5 = SWIG_TMPOBJ ;
21735 int temp6 ;
21736 int res6 = SWIG_TMPOBJ ;
21737 void *argp7 = 0 ;
21738 int res7 = 0 ;
21739 PyObject * obj0 = 0 ;
21740 PyObject * obj1 = 0 ;
21741 PyObject * obj2 = 0 ;
21742 char * kwnames[] = {
21743 (char *) "self",(char *) "string",(char *) "font", NULL
21744 };
21745
21746 arg3 = &temp3;
21747 arg4 = &temp4;
21748 arg5 = &temp5;
21749 arg6 = &temp6;
21750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21752 if (!SWIG_IsOK(res1)) {
21753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21754 }
21755 arg1 = reinterpret_cast< wxDC * >(argp1);
21756 {
21757 arg2 = wxString_in_helper(obj1);
21758 if (arg2 == NULL) SWIG_fail;
21759 temp2 = true;
21760 }
21761 if (obj2) {
21762 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21763 if (!SWIG_IsOK(res7)) {
21764 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
21765 }
21766 arg7 = reinterpret_cast< wxFont * >(argp7);
21767 }
21768 {
21769 PyThreadState* __tstate = wxPyBeginAllowThreads();
21770 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21771 wxPyEndAllowThreads(__tstate);
21772 if (PyErr_Occurred()) SWIG_fail;
21773 }
21774 resultobj = SWIG_Py_Void();
21775 if (SWIG_IsTmpObj(res3)) {
21776 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21777 } else {
21778 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21779 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21780 }
21781 if (SWIG_IsTmpObj(res4)) {
21782 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21783 } else {
21784 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21785 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21786 }
21787 if (SWIG_IsTmpObj(res5)) {
21788 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21789 } else {
21790 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21791 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21792 }
21793 if (SWIG_IsTmpObj(res6)) {
21794 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21795 } else {
21796 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21797 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21798 }
21799 {
21800 if (temp2)
21801 delete arg2;
21802 }
21803 return resultobj;
21804 fail:
21805 {
21806 if (temp2)
21807 delete arg2;
21808 }
21809 return NULL;
21810 }
21811
21812
21813 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21814 PyObject *resultobj = 0;
21815 wxDC *arg1 = (wxDC *) 0 ;
21816 wxString *arg2 = 0 ;
21817 int *arg3 = (int *) 0 ;
21818 int *arg4 = (int *) 0 ;
21819 int *arg5 = (int *) 0 ;
21820 wxFont *arg6 = (wxFont *) NULL ;
21821 void *argp1 = 0 ;
21822 int res1 = 0 ;
21823 bool temp2 = false ;
21824 int temp3 ;
21825 int res3 = SWIG_TMPOBJ ;
21826 int temp4 ;
21827 int res4 = SWIG_TMPOBJ ;
21828 int temp5 ;
21829 int res5 = SWIG_TMPOBJ ;
21830 void *argp6 = 0 ;
21831 int res6 = 0 ;
21832 PyObject * obj0 = 0 ;
21833 PyObject * obj1 = 0 ;
21834 PyObject * obj2 = 0 ;
21835 char * kwnames[] = {
21836 (char *) "self",(char *) "text",(char *) "font", NULL
21837 };
21838
21839 arg3 = &temp3;
21840 arg4 = &temp4;
21841 arg5 = &temp5;
21842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21844 if (!SWIG_IsOK(res1)) {
21845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21846 }
21847 arg1 = reinterpret_cast< wxDC * >(argp1);
21848 {
21849 arg2 = wxString_in_helper(obj1);
21850 if (arg2 == NULL) SWIG_fail;
21851 temp2 = true;
21852 }
21853 if (obj2) {
21854 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21855 if (!SWIG_IsOK(res6)) {
21856 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
21857 }
21858 arg6 = reinterpret_cast< wxFont * >(argp6);
21859 }
21860 {
21861 PyThreadState* __tstate = wxPyBeginAllowThreads();
21862 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21863 wxPyEndAllowThreads(__tstate);
21864 if (PyErr_Occurred()) SWIG_fail;
21865 }
21866 resultobj = SWIG_Py_Void();
21867 if (SWIG_IsTmpObj(res3)) {
21868 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21869 } else {
21870 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21871 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21872 }
21873 if (SWIG_IsTmpObj(res4)) {
21874 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21875 } else {
21876 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21877 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21878 }
21879 if (SWIG_IsTmpObj(res5)) {
21880 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21881 } else {
21882 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21883 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21884 }
21885 {
21886 if (temp2)
21887 delete arg2;
21888 }
21889 return resultobj;
21890 fail:
21891 {
21892 if (temp2)
21893 delete arg2;
21894 }
21895 return NULL;
21896 }
21897
21898
21899 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21900 PyObject *resultobj = 0;
21901 wxDC *arg1 = (wxDC *) 0 ;
21902 wxString *arg2 = 0 ;
21903 wxArrayInt result;
21904 void *argp1 = 0 ;
21905 int res1 = 0 ;
21906 bool temp2 = false ;
21907 PyObject * obj0 = 0 ;
21908 PyObject * obj1 = 0 ;
21909 char * kwnames[] = {
21910 (char *) "self",(char *) "text", NULL
21911 };
21912
21913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21915 if (!SWIG_IsOK(res1)) {
21916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21917 }
21918 arg1 = reinterpret_cast< wxDC * >(argp1);
21919 {
21920 arg2 = wxString_in_helper(obj1);
21921 if (arg2 == NULL) SWIG_fail;
21922 temp2 = true;
21923 }
21924 {
21925 PyThreadState* __tstate = wxPyBeginAllowThreads();
21926 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21927 wxPyEndAllowThreads(__tstate);
21928 if (PyErr_Occurred()) SWIG_fail;
21929 }
21930 {
21931 resultobj = wxArrayInt2PyList_helper(result);
21932 }
21933 {
21934 if (temp2)
21935 delete arg2;
21936 }
21937 return resultobj;
21938 fail:
21939 {
21940 if (temp2)
21941 delete arg2;
21942 }
21943 return NULL;
21944 }
21945
21946
21947 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21948 PyObject *resultobj = 0;
21949 wxDC *arg1 = (wxDC *) 0 ;
21950 wxSize result;
21951 void *argp1 = 0 ;
21952 int res1 = 0 ;
21953 PyObject *swig_obj[1] ;
21954
21955 if (!args) SWIG_fail;
21956 swig_obj[0] = args;
21957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21958 if (!SWIG_IsOK(res1)) {
21959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21960 }
21961 arg1 = reinterpret_cast< wxDC * >(argp1);
21962 {
21963 PyThreadState* __tstate = wxPyBeginAllowThreads();
21964 result = (arg1)->GetSize();
21965 wxPyEndAllowThreads(__tstate);
21966 if (PyErr_Occurred()) SWIG_fail;
21967 }
21968 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21969 return resultobj;
21970 fail:
21971 return NULL;
21972 }
21973
21974
21975 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21976 PyObject *resultobj = 0;
21977 wxDC *arg1 = (wxDC *) 0 ;
21978 int *arg2 = (int *) 0 ;
21979 int *arg3 = (int *) 0 ;
21980 void *argp1 = 0 ;
21981 int res1 = 0 ;
21982 int temp2 ;
21983 int res2 = SWIG_TMPOBJ ;
21984 int temp3 ;
21985 int res3 = SWIG_TMPOBJ ;
21986 PyObject *swig_obj[1] ;
21987
21988 arg2 = &temp2;
21989 arg3 = &temp3;
21990 if (!args) SWIG_fail;
21991 swig_obj[0] = args;
21992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21993 if (!SWIG_IsOK(res1)) {
21994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21995 }
21996 arg1 = reinterpret_cast< wxDC * >(argp1);
21997 {
21998 PyThreadState* __tstate = wxPyBeginAllowThreads();
21999 (arg1)->GetSize(arg2,arg3);
22000 wxPyEndAllowThreads(__tstate);
22001 if (PyErr_Occurred()) SWIG_fail;
22002 }
22003 resultobj = SWIG_Py_Void();
22004 if (SWIG_IsTmpObj(res2)) {
22005 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22006 } else {
22007 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22008 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22009 }
22010 if (SWIG_IsTmpObj(res3)) {
22011 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22012 } else {
22013 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22014 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22015 }
22016 return resultobj;
22017 fail:
22018 return NULL;
22019 }
22020
22021
22022 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22023 PyObject *resultobj = 0;
22024 wxDC *arg1 = (wxDC *) 0 ;
22025 wxSize result;
22026 void *argp1 = 0 ;
22027 int res1 = 0 ;
22028 PyObject *swig_obj[1] ;
22029
22030 if (!args) SWIG_fail;
22031 swig_obj[0] = args;
22032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22033 if (!SWIG_IsOK(res1)) {
22034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
22035 }
22036 arg1 = reinterpret_cast< wxDC * >(argp1);
22037 {
22038 PyThreadState* __tstate = wxPyBeginAllowThreads();
22039 result = ((wxDC const *)arg1)->GetSizeMM();
22040 wxPyEndAllowThreads(__tstate);
22041 if (PyErr_Occurred()) SWIG_fail;
22042 }
22043 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22044 return resultobj;
22045 fail:
22046 return NULL;
22047 }
22048
22049
22050 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22051 PyObject *resultobj = 0;
22052 wxDC *arg1 = (wxDC *) 0 ;
22053 int *arg2 = (int *) 0 ;
22054 int *arg3 = (int *) 0 ;
22055 void *argp1 = 0 ;
22056 int res1 = 0 ;
22057 int temp2 ;
22058 int res2 = SWIG_TMPOBJ ;
22059 int temp3 ;
22060 int res3 = SWIG_TMPOBJ ;
22061 PyObject *swig_obj[1] ;
22062
22063 arg2 = &temp2;
22064 arg3 = &temp3;
22065 if (!args) SWIG_fail;
22066 swig_obj[0] = args;
22067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22068 if (!SWIG_IsOK(res1)) {
22069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22070 }
22071 arg1 = reinterpret_cast< wxDC * >(argp1);
22072 {
22073 PyThreadState* __tstate = wxPyBeginAllowThreads();
22074 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
22075 wxPyEndAllowThreads(__tstate);
22076 if (PyErr_Occurred()) SWIG_fail;
22077 }
22078 resultobj = SWIG_Py_Void();
22079 if (SWIG_IsTmpObj(res2)) {
22080 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22081 } else {
22082 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22083 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22084 }
22085 if (SWIG_IsTmpObj(res3)) {
22086 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22087 } else {
22088 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22089 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22090 }
22091 return resultobj;
22092 fail:
22093 return NULL;
22094 }
22095
22096
22097 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22098 PyObject *resultobj = 0;
22099 wxDC *arg1 = (wxDC *) 0 ;
22100 int arg2 ;
22101 int result;
22102 void *argp1 = 0 ;
22103 int res1 = 0 ;
22104 int val2 ;
22105 int ecode2 = 0 ;
22106 PyObject * obj0 = 0 ;
22107 PyObject * obj1 = 0 ;
22108 char * kwnames[] = {
22109 (char *) "self",(char *) "x", NULL
22110 };
22111
22112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
22113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22114 if (!SWIG_IsOK(res1)) {
22115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
22116 }
22117 arg1 = reinterpret_cast< wxDC * >(argp1);
22118 ecode2 = SWIG_AsVal_int(obj1, &val2);
22119 if (!SWIG_IsOK(ecode2)) {
22120 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
22121 }
22122 arg2 = static_cast< int >(val2);
22123 {
22124 PyThreadState* __tstate = wxPyBeginAllowThreads();
22125 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
22126 wxPyEndAllowThreads(__tstate);
22127 if (PyErr_Occurred()) SWIG_fail;
22128 }
22129 resultobj = SWIG_From_int(static_cast< int >(result));
22130 return resultobj;
22131 fail:
22132 return NULL;
22133 }
22134
22135
22136 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22137 PyObject *resultobj = 0;
22138 wxDC *arg1 = (wxDC *) 0 ;
22139 int arg2 ;
22140 int result;
22141 void *argp1 = 0 ;
22142 int res1 = 0 ;
22143 int val2 ;
22144 int ecode2 = 0 ;
22145 PyObject * obj0 = 0 ;
22146 PyObject * obj1 = 0 ;
22147 char * kwnames[] = {
22148 (char *) "self",(char *) "y", NULL
22149 };
22150
22151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
22152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22153 if (!SWIG_IsOK(res1)) {
22154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
22155 }
22156 arg1 = reinterpret_cast< wxDC * >(argp1);
22157 ecode2 = SWIG_AsVal_int(obj1, &val2);
22158 if (!SWIG_IsOK(ecode2)) {
22159 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
22160 }
22161 arg2 = static_cast< int >(val2);
22162 {
22163 PyThreadState* __tstate = wxPyBeginAllowThreads();
22164 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
22165 wxPyEndAllowThreads(__tstate);
22166 if (PyErr_Occurred()) SWIG_fail;
22167 }
22168 resultobj = SWIG_From_int(static_cast< int >(result));
22169 return resultobj;
22170 fail:
22171 return NULL;
22172 }
22173
22174
22175 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22176 PyObject *resultobj = 0;
22177 wxDC *arg1 = (wxDC *) 0 ;
22178 int arg2 ;
22179 int result;
22180 void *argp1 = 0 ;
22181 int res1 = 0 ;
22182 int val2 ;
22183 int ecode2 = 0 ;
22184 PyObject * obj0 = 0 ;
22185 PyObject * obj1 = 0 ;
22186 char * kwnames[] = {
22187 (char *) "self",(char *) "x", NULL
22188 };
22189
22190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22192 if (!SWIG_IsOK(res1)) {
22193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22194 }
22195 arg1 = reinterpret_cast< wxDC * >(argp1);
22196 ecode2 = SWIG_AsVal_int(obj1, &val2);
22197 if (!SWIG_IsOK(ecode2)) {
22198 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
22199 }
22200 arg2 = static_cast< int >(val2);
22201 {
22202 PyThreadState* __tstate = wxPyBeginAllowThreads();
22203 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
22204 wxPyEndAllowThreads(__tstate);
22205 if (PyErr_Occurred()) SWIG_fail;
22206 }
22207 resultobj = SWIG_From_int(static_cast< int >(result));
22208 return resultobj;
22209 fail:
22210 return NULL;
22211 }
22212
22213
22214 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22215 PyObject *resultobj = 0;
22216 wxDC *arg1 = (wxDC *) 0 ;
22217 int arg2 ;
22218 int result;
22219 void *argp1 = 0 ;
22220 int res1 = 0 ;
22221 int val2 ;
22222 int ecode2 = 0 ;
22223 PyObject * obj0 = 0 ;
22224 PyObject * obj1 = 0 ;
22225 char * kwnames[] = {
22226 (char *) "self",(char *) "y", NULL
22227 };
22228
22229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22231 if (!SWIG_IsOK(res1)) {
22232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22233 }
22234 arg1 = reinterpret_cast< wxDC * >(argp1);
22235 ecode2 = SWIG_AsVal_int(obj1, &val2);
22236 if (!SWIG_IsOK(ecode2)) {
22237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
22238 }
22239 arg2 = static_cast< int >(val2);
22240 {
22241 PyThreadState* __tstate = wxPyBeginAllowThreads();
22242 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
22243 wxPyEndAllowThreads(__tstate);
22244 if (PyErr_Occurred()) SWIG_fail;
22245 }
22246 resultobj = SWIG_From_int(static_cast< int >(result));
22247 return resultobj;
22248 fail:
22249 return NULL;
22250 }
22251
22252
22253 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22254 PyObject *resultobj = 0;
22255 wxDC *arg1 = (wxDC *) 0 ;
22256 int arg2 ;
22257 int result;
22258 void *argp1 = 0 ;
22259 int res1 = 0 ;
22260 int val2 ;
22261 int ecode2 = 0 ;
22262 PyObject * obj0 = 0 ;
22263 PyObject * obj1 = 0 ;
22264 char * kwnames[] = {
22265 (char *) "self",(char *) "x", NULL
22266 };
22267
22268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
22269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22270 if (!SWIG_IsOK(res1)) {
22271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
22272 }
22273 arg1 = reinterpret_cast< wxDC * >(argp1);
22274 ecode2 = SWIG_AsVal_int(obj1, &val2);
22275 if (!SWIG_IsOK(ecode2)) {
22276 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
22277 }
22278 arg2 = static_cast< int >(val2);
22279 {
22280 PyThreadState* __tstate = wxPyBeginAllowThreads();
22281 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
22282 wxPyEndAllowThreads(__tstate);
22283 if (PyErr_Occurred()) SWIG_fail;
22284 }
22285 resultobj = SWIG_From_int(static_cast< int >(result));
22286 return resultobj;
22287 fail:
22288 return NULL;
22289 }
22290
22291
22292 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22293 PyObject *resultobj = 0;
22294 wxDC *arg1 = (wxDC *) 0 ;
22295 int arg2 ;
22296 int result;
22297 void *argp1 = 0 ;
22298 int res1 = 0 ;
22299 int val2 ;
22300 int ecode2 = 0 ;
22301 PyObject * obj0 = 0 ;
22302 PyObject * obj1 = 0 ;
22303 char * kwnames[] = {
22304 (char *) "self",(char *) "y", NULL
22305 };
22306
22307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
22308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22309 if (!SWIG_IsOK(res1)) {
22310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
22311 }
22312 arg1 = reinterpret_cast< wxDC * >(argp1);
22313 ecode2 = SWIG_AsVal_int(obj1, &val2);
22314 if (!SWIG_IsOK(ecode2)) {
22315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
22316 }
22317 arg2 = static_cast< int >(val2);
22318 {
22319 PyThreadState* __tstate = wxPyBeginAllowThreads();
22320 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
22321 wxPyEndAllowThreads(__tstate);
22322 if (PyErr_Occurred()) SWIG_fail;
22323 }
22324 resultobj = SWIG_From_int(static_cast< int >(result));
22325 return resultobj;
22326 fail:
22327 return NULL;
22328 }
22329
22330
22331 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22332 PyObject *resultobj = 0;
22333 wxDC *arg1 = (wxDC *) 0 ;
22334 int arg2 ;
22335 int result;
22336 void *argp1 = 0 ;
22337 int res1 = 0 ;
22338 int val2 ;
22339 int ecode2 = 0 ;
22340 PyObject * obj0 = 0 ;
22341 PyObject * obj1 = 0 ;
22342 char * kwnames[] = {
22343 (char *) "self",(char *) "x", NULL
22344 };
22345
22346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22348 if (!SWIG_IsOK(res1)) {
22349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22350 }
22351 arg1 = reinterpret_cast< wxDC * >(argp1);
22352 ecode2 = SWIG_AsVal_int(obj1, &val2);
22353 if (!SWIG_IsOK(ecode2)) {
22354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
22355 }
22356 arg2 = static_cast< int >(val2);
22357 {
22358 PyThreadState* __tstate = wxPyBeginAllowThreads();
22359 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
22360 wxPyEndAllowThreads(__tstate);
22361 if (PyErr_Occurred()) SWIG_fail;
22362 }
22363 resultobj = SWIG_From_int(static_cast< int >(result));
22364 return resultobj;
22365 fail:
22366 return NULL;
22367 }
22368
22369
22370 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22371 PyObject *resultobj = 0;
22372 wxDC *arg1 = (wxDC *) 0 ;
22373 int arg2 ;
22374 int result;
22375 void *argp1 = 0 ;
22376 int res1 = 0 ;
22377 int val2 ;
22378 int ecode2 = 0 ;
22379 PyObject * obj0 = 0 ;
22380 PyObject * obj1 = 0 ;
22381 char * kwnames[] = {
22382 (char *) "self",(char *) "y", NULL
22383 };
22384
22385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22387 if (!SWIG_IsOK(res1)) {
22388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22389 }
22390 arg1 = reinterpret_cast< wxDC * >(argp1);
22391 ecode2 = SWIG_AsVal_int(obj1, &val2);
22392 if (!SWIG_IsOK(ecode2)) {
22393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
22394 }
22395 arg2 = static_cast< int >(val2);
22396 {
22397 PyThreadState* __tstate = wxPyBeginAllowThreads();
22398 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
22399 wxPyEndAllowThreads(__tstate);
22400 if (PyErr_Occurred()) SWIG_fail;
22401 }
22402 resultobj = SWIG_From_int(static_cast< int >(result));
22403 return resultobj;
22404 fail:
22405 return NULL;
22406 }
22407
22408
22409 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22410 PyObject *resultobj = 0;
22411 wxDC *arg1 = (wxDC *) 0 ;
22412 bool result;
22413 void *argp1 = 0 ;
22414 int res1 = 0 ;
22415 PyObject *swig_obj[1] ;
22416
22417 if (!args) SWIG_fail;
22418 swig_obj[0] = args;
22419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22420 if (!SWIG_IsOK(res1)) {
22421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
22422 }
22423 arg1 = reinterpret_cast< wxDC * >(argp1);
22424 {
22425 PyThreadState* __tstate = wxPyBeginAllowThreads();
22426 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
22427 wxPyEndAllowThreads(__tstate);
22428 if (PyErr_Occurred()) SWIG_fail;
22429 }
22430 {
22431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22432 }
22433 return resultobj;
22434 fail:
22435 return NULL;
22436 }
22437
22438
22439 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22440 PyObject *resultobj = 0;
22441 wxDC *arg1 = (wxDC *) 0 ;
22442 bool result;
22443 void *argp1 = 0 ;
22444 int res1 = 0 ;
22445 PyObject *swig_obj[1] ;
22446
22447 if (!args) SWIG_fail;
22448 swig_obj[0] = args;
22449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22450 if (!SWIG_IsOK(res1)) {
22451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
22452 }
22453 arg1 = reinterpret_cast< wxDC * >(argp1);
22454 {
22455 PyThreadState* __tstate = wxPyBeginAllowThreads();
22456 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
22457 wxPyEndAllowThreads(__tstate);
22458 if (PyErr_Occurred()) SWIG_fail;
22459 }
22460 {
22461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22462 }
22463 return resultobj;
22464 fail:
22465 return NULL;
22466 }
22467
22468
22469 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22470 PyObject *resultobj = 0;
22471 wxDC *arg1 = (wxDC *) 0 ;
22472 int result;
22473 void *argp1 = 0 ;
22474 int res1 = 0 ;
22475 PyObject *swig_obj[1] ;
22476
22477 if (!args) SWIG_fail;
22478 swig_obj[0] = args;
22479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22480 if (!SWIG_IsOK(res1)) {
22481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
22482 }
22483 arg1 = reinterpret_cast< wxDC * >(argp1);
22484 {
22485 PyThreadState* __tstate = wxPyBeginAllowThreads();
22486 result = (int)((wxDC const *)arg1)->GetDepth();
22487 wxPyEndAllowThreads(__tstate);
22488 if (PyErr_Occurred()) SWIG_fail;
22489 }
22490 resultobj = SWIG_From_int(static_cast< int >(result));
22491 return resultobj;
22492 fail:
22493 return NULL;
22494 }
22495
22496
22497 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22498 PyObject *resultobj = 0;
22499 wxDC *arg1 = (wxDC *) 0 ;
22500 wxSize result;
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_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
22510 }
22511 arg1 = reinterpret_cast< wxDC * >(argp1);
22512 {
22513 PyThreadState* __tstate = wxPyBeginAllowThreads();
22514 result = ((wxDC const *)arg1)->GetPPI();
22515 wxPyEndAllowThreads(__tstate);
22516 if (PyErr_Occurred()) SWIG_fail;
22517 }
22518 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22519 return resultobj;
22520 fail:
22521 return NULL;
22522 }
22523
22524
22525 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22526 PyObject *resultobj = 0;
22527 wxDC *arg1 = (wxDC *) 0 ;
22528 bool result;
22529 void *argp1 = 0 ;
22530 int res1 = 0 ;
22531 PyObject *swig_obj[1] ;
22532
22533 if (!args) SWIG_fail;
22534 swig_obj[0] = args;
22535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22536 if (!SWIG_IsOK(res1)) {
22537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
22538 }
22539 arg1 = reinterpret_cast< wxDC * >(argp1);
22540 {
22541 PyThreadState* __tstate = wxPyBeginAllowThreads();
22542 result = (bool)((wxDC const *)arg1)->IsOk();
22543 wxPyEndAllowThreads(__tstate);
22544 if (PyErr_Occurred()) SWIG_fail;
22545 }
22546 {
22547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22548 }
22549 return resultobj;
22550 fail:
22551 return NULL;
22552 }
22553
22554
22555 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22556 PyObject *resultobj = 0;
22557 wxDC *arg1 = (wxDC *) 0 ;
22558 int result;
22559 void *argp1 = 0 ;
22560 int res1 = 0 ;
22561 PyObject *swig_obj[1] ;
22562
22563 if (!args) SWIG_fail;
22564 swig_obj[0] = args;
22565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22566 if (!SWIG_IsOK(res1)) {
22567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22568 }
22569 arg1 = reinterpret_cast< wxDC * >(argp1);
22570 {
22571 PyThreadState* __tstate = wxPyBeginAllowThreads();
22572 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
22573 wxPyEndAllowThreads(__tstate);
22574 if (PyErr_Occurred()) SWIG_fail;
22575 }
22576 resultobj = SWIG_From_int(static_cast< int >(result));
22577 return resultobj;
22578 fail:
22579 return NULL;
22580 }
22581
22582
22583 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22584 PyObject *resultobj = 0;
22585 wxDC *arg1 = (wxDC *) 0 ;
22586 wxBrush *result = 0 ;
22587 void *argp1 = 0 ;
22588 int res1 = 0 ;
22589 PyObject *swig_obj[1] ;
22590
22591 if (!args) SWIG_fail;
22592 swig_obj[0] = args;
22593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22594 if (!SWIG_IsOK(res1)) {
22595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22596 }
22597 arg1 = reinterpret_cast< wxDC * >(argp1);
22598 {
22599 PyThreadState* __tstate = wxPyBeginAllowThreads();
22600 {
22601 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
22602 result = (wxBrush *) &_result_ref;
22603 }
22604 wxPyEndAllowThreads(__tstate);
22605 if (PyErr_Occurred()) SWIG_fail;
22606 }
22607 {
22608 wxBrush* resultptr = new wxBrush(*result);
22609 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22610 }
22611 return resultobj;
22612 fail:
22613 return NULL;
22614 }
22615
22616
22617 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22618 PyObject *resultobj = 0;
22619 wxDC *arg1 = (wxDC *) 0 ;
22620 wxBrush *result = 0 ;
22621 void *argp1 = 0 ;
22622 int res1 = 0 ;
22623 PyObject *swig_obj[1] ;
22624
22625 if (!args) SWIG_fail;
22626 swig_obj[0] = args;
22627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22628 if (!SWIG_IsOK(res1)) {
22629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22630 }
22631 arg1 = reinterpret_cast< wxDC * >(argp1);
22632 {
22633 PyThreadState* __tstate = wxPyBeginAllowThreads();
22634 {
22635 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22636 result = (wxBrush *) &_result_ref;
22637 }
22638 wxPyEndAllowThreads(__tstate);
22639 if (PyErr_Occurred()) SWIG_fail;
22640 }
22641 {
22642 wxBrush* resultptr = new wxBrush(*result);
22643 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22644 }
22645 return resultobj;
22646 fail:
22647 return NULL;
22648 }
22649
22650
22651 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22652 PyObject *resultobj = 0;
22653 wxDC *arg1 = (wxDC *) 0 ;
22654 wxFont *result = 0 ;
22655 void *argp1 = 0 ;
22656 int res1 = 0 ;
22657 PyObject *swig_obj[1] ;
22658
22659 if (!args) SWIG_fail;
22660 swig_obj[0] = args;
22661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22662 if (!SWIG_IsOK(res1)) {
22663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22664 }
22665 arg1 = reinterpret_cast< wxDC * >(argp1);
22666 {
22667 PyThreadState* __tstate = wxPyBeginAllowThreads();
22668 {
22669 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22670 result = (wxFont *) &_result_ref;
22671 }
22672 wxPyEndAllowThreads(__tstate);
22673 if (PyErr_Occurred()) SWIG_fail;
22674 }
22675 {
22676 wxFont* resultptr = new wxFont(*result);
22677 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22678 }
22679 return resultobj;
22680 fail:
22681 return NULL;
22682 }
22683
22684
22685 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22686 PyObject *resultobj = 0;
22687 wxDC *arg1 = (wxDC *) 0 ;
22688 wxPen *result = 0 ;
22689 void *argp1 = 0 ;
22690 int res1 = 0 ;
22691 PyObject *swig_obj[1] ;
22692
22693 if (!args) SWIG_fail;
22694 swig_obj[0] = args;
22695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22696 if (!SWIG_IsOK(res1)) {
22697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22698 }
22699 arg1 = reinterpret_cast< wxDC * >(argp1);
22700 {
22701 PyThreadState* __tstate = wxPyBeginAllowThreads();
22702 {
22703 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22704 result = (wxPen *) &_result_ref;
22705 }
22706 wxPyEndAllowThreads(__tstate);
22707 if (PyErr_Occurred()) SWIG_fail;
22708 }
22709 {
22710 wxPen* resultptr = new wxPen(*result);
22711 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22712 }
22713 return resultobj;
22714 fail:
22715 return NULL;
22716 }
22717
22718
22719 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22720 PyObject *resultobj = 0;
22721 wxDC *arg1 = (wxDC *) 0 ;
22722 wxColour *result = 0 ;
22723 void *argp1 = 0 ;
22724 int res1 = 0 ;
22725 PyObject *swig_obj[1] ;
22726
22727 if (!args) SWIG_fail;
22728 swig_obj[0] = args;
22729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22730 if (!SWIG_IsOK(res1)) {
22731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22732 }
22733 arg1 = reinterpret_cast< wxDC * >(argp1);
22734 {
22735 PyThreadState* __tstate = wxPyBeginAllowThreads();
22736 {
22737 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22738 result = (wxColour *) &_result_ref;
22739 }
22740 wxPyEndAllowThreads(__tstate);
22741 if (PyErr_Occurred()) SWIG_fail;
22742 }
22743 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22744 return resultobj;
22745 fail:
22746 return NULL;
22747 }
22748
22749
22750 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22751 PyObject *resultobj = 0;
22752 wxDC *arg1 = (wxDC *) 0 ;
22753 wxColour *result = 0 ;
22754 void *argp1 = 0 ;
22755 int res1 = 0 ;
22756 PyObject *swig_obj[1] ;
22757
22758 if (!args) SWIG_fail;
22759 swig_obj[0] = args;
22760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22761 if (!SWIG_IsOK(res1)) {
22762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22763 }
22764 arg1 = reinterpret_cast< wxDC * >(argp1);
22765 {
22766 PyThreadState* __tstate = wxPyBeginAllowThreads();
22767 {
22768 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22769 result = (wxColour *) &_result_ref;
22770 }
22771 wxPyEndAllowThreads(__tstate);
22772 if (PyErr_Occurred()) SWIG_fail;
22773 }
22774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22775 return resultobj;
22776 fail:
22777 return NULL;
22778 }
22779
22780
22781 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22782 PyObject *resultobj = 0;
22783 wxDC *arg1 = (wxDC *) 0 ;
22784 wxColour *arg2 = 0 ;
22785 void *argp1 = 0 ;
22786 int res1 = 0 ;
22787 wxColour temp2 ;
22788 PyObject * obj0 = 0 ;
22789 PyObject * obj1 = 0 ;
22790 char * kwnames[] = {
22791 (char *) "self",(char *) "colour", NULL
22792 };
22793
22794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22796 if (!SWIG_IsOK(res1)) {
22797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22798 }
22799 arg1 = reinterpret_cast< wxDC * >(argp1);
22800 {
22801 arg2 = &temp2;
22802 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22803 }
22804 {
22805 PyThreadState* __tstate = wxPyBeginAllowThreads();
22806 (arg1)->SetTextForeground((wxColour const &)*arg2);
22807 wxPyEndAllowThreads(__tstate);
22808 if (PyErr_Occurred()) SWIG_fail;
22809 }
22810 resultobj = SWIG_Py_Void();
22811 return resultobj;
22812 fail:
22813 return NULL;
22814 }
22815
22816
22817 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22818 PyObject *resultobj = 0;
22819 wxDC *arg1 = (wxDC *) 0 ;
22820 wxColour *arg2 = 0 ;
22821 void *argp1 = 0 ;
22822 int res1 = 0 ;
22823 wxColour temp2 ;
22824 PyObject * obj0 = 0 ;
22825 PyObject * obj1 = 0 ;
22826 char * kwnames[] = {
22827 (char *) "self",(char *) "colour", NULL
22828 };
22829
22830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22832 if (!SWIG_IsOK(res1)) {
22833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22834 }
22835 arg1 = reinterpret_cast< wxDC * >(argp1);
22836 {
22837 arg2 = &temp2;
22838 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22839 }
22840 {
22841 PyThreadState* __tstate = wxPyBeginAllowThreads();
22842 (arg1)->SetTextBackground((wxColour const &)*arg2);
22843 wxPyEndAllowThreads(__tstate);
22844 if (PyErr_Occurred()) SWIG_fail;
22845 }
22846 resultobj = SWIG_Py_Void();
22847 return resultobj;
22848 fail:
22849 return NULL;
22850 }
22851
22852
22853 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22854 PyObject *resultobj = 0;
22855 wxDC *arg1 = (wxDC *) 0 ;
22856 int result;
22857 void *argp1 = 0 ;
22858 int res1 = 0 ;
22859 PyObject *swig_obj[1] ;
22860
22861 if (!args) SWIG_fail;
22862 swig_obj[0] = args;
22863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22864 if (!SWIG_IsOK(res1)) {
22865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22866 }
22867 arg1 = reinterpret_cast< wxDC * >(argp1);
22868 {
22869 PyThreadState* __tstate = wxPyBeginAllowThreads();
22870 result = (int)((wxDC const *)arg1)->GetMapMode();
22871 wxPyEndAllowThreads(__tstate);
22872 if (PyErr_Occurred()) SWIG_fail;
22873 }
22874 resultobj = SWIG_From_int(static_cast< int >(result));
22875 return resultobj;
22876 fail:
22877 return NULL;
22878 }
22879
22880
22881 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22882 PyObject *resultobj = 0;
22883 wxDC *arg1 = (wxDC *) 0 ;
22884 int arg2 ;
22885 void *argp1 = 0 ;
22886 int res1 = 0 ;
22887 int val2 ;
22888 int ecode2 = 0 ;
22889 PyObject * obj0 = 0 ;
22890 PyObject * obj1 = 0 ;
22891 char * kwnames[] = {
22892 (char *) "self",(char *) "mode", NULL
22893 };
22894
22895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22897 if (!SWIG_IsOK(res1)) {
22898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22899 }
22900 arg1 = reinterpret_cast< wxDC * >(argp1);
22901 ecode2 = SWIG_AsVal_int(obj1, &val2);
22902 if (!SWIG_IsOK(ecode2)) {
22903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22904 }
22905 arg2 = static_cast< int >(val2);
22906 {
22907 PyThreadState* __tstate = wxPyBeginAllowThreads();
22908 (arg1)->SetMapMode(arg2);
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_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22920 PyObject *resultobj = 0;
22921 wxDC *arg1 = (wxDC *) 0 ;
22922 double *arg2 = (double *) 0 ;
22923 double *arg3 = (double *) 0 ;
22924 void *argp1 = 0 ;
22925 int res1 = 0 ;
22926 double temp2 ;
22927 int res2 = SWIG_TMPOBJ ;
22928 double temp3 ;
22929 int res3 = SWIG_TMPOBJ ;
22930 PyObject *swig_obj[1] ;
22931
22932 arg2 = &temp2;
22933 arg3 = &temp3;
22934 if (!args) SWIG_fail;
22935 swig_obj[0] = args;
22936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22937 if (!SWIG_IsOK(res1)) {
22938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22939 }
22940 arg1 = reinterpret_cast< wxDC * >(argp1);
22941 {
22942 PyThreadState* __tstate = wxPyBeginAllowThreads();
22943 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22944 wxPyEndAllowThreads(__tstate);
22945 if (PyErr_Occurred()) SWIG_fail;
22946 }
22947 resultobj = SWIG_Py_Void();
22948 if (SWIG_IsTmpObj(res2)) {
22949 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22950 } else {
22951 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22952 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22953 }
22954 if (SWIG_IsTmpObj(res3)) {
22955 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22956 } else {
22957 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22958 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22959 }
22960 return resultobj;
22961 fail:
22962 return NULL;
22963 }
22964
22965
22966 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22967 PyObject *resultobj = 0;
22968 wxDC *arg1 = (wxDC *) 0 ;
22969 double arg2 ;
22970 double arg3 ;
22971 void *argp1 = 0 ;
22972 int res1 = 0 ;
22973 double val2 ;
22974 int ecode2 = 0 ;
22975 double val3 ;
22976 int ecode3 = 0 ;
22977 PyObject * obj0 = 0 ;
22978 PyObject * obj1 = 0 ;
22979 PyObject * obj2 = 0 ;
22980 char * kwnames[] = {
22981 (char *) "self",(char *) "x",(char *) "y", NULL
22982 };
22983
22984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22986 if (!SWIG_IsOK(res1)) {
22987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22988 }
22989 arg1 = reinterpret_cast< wxDC * >(argp1);
22990 ecode2 = SWIG_AsVal_double(obj1, &val2);
22991 if (!SWIG_IsOK(ecode2)) {
22992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22993 }
22994 arg2 = static_cast< double >(val2);
22995 ecode3 = SWIG_AsVal_double(obj2, &val3);
22996 if (!SWIG_IsOK(ecode3)) {
22997 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22998 }
22999 arg3 = static_cast< double >(val3);
23000 {
23001 PyThreadState* __tstate = wxPyBeginAllowThreads();
23002 (arg1)->SetUserScale(arg2,arg3);
23003 wxPyEndAllowThreads(__tstate);
23004 if (PyErr_Occurred()) SWIG_fail;
23005 }
23006 resultobj = SWIG_Py_Void();
23007 return resultobj;
23008 fail:
23009 return NULL;
23010 }
23011
23012
23013 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23014 PyObject *resultobj = 0;
23015 wxDC *arg1 = (wxDC *) 0 ;
23016 double *arg2 = (double *) 0 ;
23017 double *arg3 = (double *) 0 ;
23018 void *argp1 = 0 ;
23019 int res1 = 0 ;
23020 double temp2 ;
23021 int res2 = SWIG_TMPOBJ ;
23022 double temp3 ;
23023 int res3 = SWIG_TMPOBJ ;
23024 PyObject *swig_obj[1] ;
23025
23026 arg2 = &temp2;
23027 arg3 = &temp3;
23028 if (!args) SWIG_fail;
23029 swig_obj[0] = args;
23030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23031 if (!SWIG_IsOK(res1)) {
23032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
23033 }
23034 arg1 = reinterpret_cast< wxDC * >(argp1);
23035 {
23036 PyThreadState* __tstate = wxPyBeginAllowThreads();
23037 (arg1)->GetLogicalScale(arg2,arg3);
23038 wxPyEndAllowThreads(__tstate);
23039 if (PyErr_Occurred()) SWIG_fail;
23040 }
23041 resultobj = SWIG_Py_Void();
23042 if (SWIG_IsTmpObj(res2)) {
23043 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
23044 } else {
23045 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23046 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
23047 }
23048 if (SWIG_IsTmpObj(res3)) {
23049 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
23050 } else {
23051 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23052 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
23053 }
23054 return resultobj;
23055 fail:
23056 return NULL;
23057 }
23058
23059
23060 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23061 PyObject *resultobj = 0;
23062 wxDC *arg1 = (wxDC *) 0 ;
23063 double arg2 ;
23064 double arg3 ;
23065 void *argp1 = 0 ;
23066 int res1 = 0 ;
23067 double val2 ;
23068 int ecode2 = 0 ;
23069 double val3 ;
23070 int ecode3 = 0 ;
23071 PyObject * obj0 = 0 ;
23072 PyObject * obj1 = 0 ;
23073 PyObject * obj2 = 0 ;
23074 char * kwnames[] = {
23075 (char *) "self",(char *) "x",(char *) "y", NULL
23076 };
23077
23078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23080 if (!SWIG_IsOK(res1)) {
23081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
23082 }
23083 arg1 = reinterpret_cast< wxDC * >(argp1);
23084 ecode2 = SWIG_AsVal_double(obj1, &val2);
23085 if (!SWIG_IsOK(ecode2)) {
23086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
23087 }
23088 arg2 = static_cast< double >(val2);
23089 ecode3 = SWIG_AsVal_double(obj2, &val3);
23090 if (!SWIG_IsOK(ecode3)) {
23091 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
23092 }
23093 arg3 = static_cast< double >(val3);
23094 {
23095 PyThreadState* __tstate = wxPyBeginAllowThreads();
23096 (arg1)->SetLogicalScale(arg2,arg3);
23097 wxPyEndAllowThreads(__tstate);
23098 if (PyErr_Occurred()) SWIG_fail;
23099 }
23100 resultobj = SWIG_Py_Void();
23101 return resultobj;
23102 fail:
23103 return NULL;
23104 }
23105
23106
23107 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23108 PyObject *resultobj = 0;
23109 wxDC *arg1 = (wxDC *) 0 ;
23110 wxPoint result;
23111 void *argp1 = 0 ;
23112 int res1 = 0 ;
23113 PyObject *swig_obj[1] ;
23114
23115 if (!args) SWIG_fail;
23116 swig_obj[0] = args;
23117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23118 if (!SWIG_IsOK(res1)) {
23119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23120 }
23121 arg1 = reinterpret_cast< wxDC * >(argp1);
23122 {
23123 PyThreadState* __tstate = wxPyBeginAllowThreads();
23124 result = ((wxDC const *)arg1)->GetLogicalOrigin();
23125 wxPyEndAllowThreads(__tstate);
23126 if (PyErr_Occurred()) SWIG_fail;
23127 }
23128 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23129 return resultobj;
23130 fail:
23131 return NULL;
23132 }
23133
23134
23135 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23136 PyObject *resultobj = 0;
23137 wxDC *arg1 = (wxDC *) 0 ;
23138 int *arg2 = (int *) 0 ;
23139 int *arg3 = (int *) 0 ;
23140 void *argp1 = 0 ;
23141 int res1 = 0 ;
23142 int temp2 ;
23143 int res2 = SWIG_TMPOBJ ;
23144 int temp3 ;
23145 int res3 = SWIG_TMPOBJ ;
23146 PyObject *swig_obj[1] ;
23147
23148 arg2 = &temp2;
23149 arg3 = &temp3;
23150 if (!args) SWIG_fail;
23151 swig_obj[0] = args;
23152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23153 if (!SWIG_IsOK(res1)) {
23154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23155 }
23156 arg1 = reinterpret_cast< wxDC * >(argp1);
23157 {
23158 PyThreadState* __tstate = wxPyBeginAllowThreads();
23159 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
23160 wxPyEndAllowThreads(__tstate);
23161 if (PyErr_Occurred()) SWIG_fail;
23162 }
23163 resultobj = SWIG_Py_Void();
23164 if (SWIG_IsTmpObj(res2)) {
23165 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23166 } else {
23167 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23168 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23169 }
23170 if (SWIG_IsTmpObj(res3)) {
23171 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23172 } else {
23173 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23174 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23175 }
23176 return resultobj;
23177 fail:
23178 return NULL;
23179 }
23180
23181
23182 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23183 PyObject *resultobj = 0;
23184 wxDC *arg1 = (wxDC *) 0 ;
23185 int arg2 ;
23186 int arg3 ;
23187 void *argp1 = 0 ;
23188 int res1 = 0 ;
23189 int val2 ;
23190 int ecode2 = 0 ;
23191 int val3 ;
23192 int ecode3 = 0 ;
23193 PyObject * obj0 = 0 ;
23194 PyObject * obj1 = 0 ;
23195 PyObject * obj2 = 0 ;
23196 char * kwnames[] = {
23197 (char *) "self",(char *) "x",(char *) "y", NULL
23198 };
23199
23200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23202 if (!SWIG_IsOK(res1)) {
23203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23204 }
23205 arg1 = reinterpret_cast< wxDC * >(argp1);
23206 ecode2 = SWIG_AsVal_int(obj1, &val2);
23207 if (!SWIG_IsOK(ecode2)) {
23208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
23209 }
23210 arg2 = static_cast< int >(val2);
23211 ecode3 = SWIG_AsVal_int(obj2, &val3);
23212 if (!SWIG_IsOK(ecode3)) {
23213 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
23214 }
23215 arg3 = static_cast< int >(val3);
23216 {
23217 PyThreadState* __tstate = wxPyBeginAllowThreads();
23218 (arg1)->SetLogicalOrigin(arg2,arg3);
23219 wxPyEndAllowThreads(__tstate);
23220 if (PyErr_Occurred()) SWIG_fail;
23221 }
23222 resultobj = SWIG_Py_Void();
23223 return resultobj;
23224 fail:
23225 return NULL;
23226 }
23227
23228
23229 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23230 PyObject *resultobj = 0;
23231 wxDC *arg1 = (wxDC *) 0 ;
23232 wxPoint *arg2 = 0 ;
23233 void *argp1 = 0 ;
23234 int res1 = 0 ;
23235 wxPoint temp2 ;
23236 PyObject * obj0 = 0 ;
23237 PyObject * obj1 = 0 ;
23238 char * kwnames[] = {
23239 (char *) "self",(char *) "point", NULL
23240 };
23241
23242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23244 if (!SWIG_IsOK(res1)) {
23245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23246 }
23247 arg1 = reinterpret_cast< wxDC * >(argp1);
23248 {
23249 arg2 = &temp2;
23250 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23251 }
23252 {
23253 PyThreadState* __tstate = wxPyBeginAllowThreads();
23254 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
23255 wxPyEndAllowThreads(__tstate);
23256 if (PyErr_Occurred()) SWIG_fail;
23257 }
23258 resultobj = SWIG_Py_Void();
23259 return resultobj;
23260 fail:
23261 return NULL;
23262 }
23263
23264
23265 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23266 PyObject *resultobj = 0;
23267 wxDC *arg1 = (wxDC *) 0 ;
23268 wxPoint result;
23269 void *argp1 = 0 ;
23270 int res1 = 0 ;
23271 PyObject *swig_obj[1] ;
23272
23273 if (!args) SWIG_fail;
23274 swig_obj[0] = args;
23275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23276 if (!SWIG_IsOK(res1)) {
23277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23278 }
23279 arg1 = reinterpret_cast< wxDC * >(argp1);
23280 {
23281 PyThreadState* __tstate = wxPyBeginAllowThreads();
23282 result = ((wxDC const *)arg1)->GetDeviceOrigin();
23283 wxPyEndAllowThreads(__tstate);
23284 if (PyErr_Occurred()) SWIG_fail;
23285 }
23286 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23287 return resultobj;
23288 fail:
23289 return NULL;
23290 }
23291
23292
23293 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23294 PyObject *resultobj = 0;
23295 wxDC *arg1 = (wxDC *) 0 ;
23296 int *arg2 = (int *) 0 ;
23297 int *arg3 = (int *) 0 ;
23298 void *argp1 = 0 ;
23299 int res1 = 0 ;
23300 int temp2 ;
23301 int res2 = SWIG_TMPOBJ ;
23302 int temp3 ;
23303 int res3 = SWIG_TMPOBJ ;
23304 PyObject *swig_obj[1] ;
23305
23306 arg2 = &temp2;
23307 arg3 = &temp3;
23308 if (!args) SWIG_fail;
23309 swig_obj[0] = args;
23310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23311 if (!SWIG_IsOK(res1)) {
23312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23313 }
23314 arg1 = reinterpret_cast< wxDC * >(argp1);
23315 {
23316 PyThreadState* __tstate = wxPyBeginAllowThreads();
23317 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
23318 wxPyEndAllowThreads(__tstate);
23319 if (PyErr_Occurred()) SWIG_fail;
23320 }
23321 resultobj = SWIG_Py_Void();
23322 if (SWIG_IsTmpObj(res2)) {
23323 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23324 } else {
23325 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23326 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23327 }
23328 if (SWIG_IsTmpObj(res3)) {
23329 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23330 } else {
23331 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23332 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23333 }
23334 return resultobj;
23335 fail:
23336 return NULL;
23337 }
23338
23339
23340 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23341 PyObject *resultobj = 0;
23342 wxDC *arg1 = (wxDC *) 0 ;
23343 int arg2 ;
23344 int arg3 ;
23345 void *argp1 = 0 ;
23346 int res1 = 0 ;
23347 int val2 ;
23348 int ecode2 = 0 ;
23349 int val3 ;
23350 int ecode3 = 0 ;
23351 PyObject * obj0 = 0 ;
23352 PyObject * obj1 = 0 ;
23353 PyObject * obj2 = 0 ;
23354 char * kwnames[] = {
23355 (char *) "self",(char *) "x",(char *) "y", NULL
23356 };
23357
23358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23360 if (!SWIG_IsOK(res1)) {
23361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23362 }
23363 arg1 = reinterpret_cast< wxDC * >(argp1);
23364 ecode2 = SWIG_AsVal_int(obj1, &val2);
23365 if (!SWIG_IsOK(ecode2)) {
23366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
23367 }
23368 arg2 = static_cast< int >(val2);
23369 ecode3 = SWIG_AsVal_int(obj2, &val3);
23370 if (!SWIG_IsOK(ecode3)) {
23371 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
23372 }
23373 arg3 = static_cast< int >(val3);
23374 {
23375 PyThreadState* __tstate = wxPyBeginAllowThreads();
23376 (arg1)->SetDeviceOrigin(arg2,arg3);
23377 wxPyEndAllowThreads(__tstate);
23378 if (PyErr_Occurred()) SWIG_fail;
23379 }
23380 resultobj = SWIG_Py_Void();
23381 return resultobj;
23382 fail:
23383 return NULL;
23384 }
23385
23386
23387 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23388 PyObject *resultobj = 0;
23389 wxDC *arg1 = (wxDC *) 0 ;
23390 wxPoint *arg2 = 0 ;
23391 void *argp1 = 0 ;
23392 int res1 = 0 ;
23393 wxPoint temp2 ;
23394 PyObject * obj0 = 0 ;
23395 PyObject * obj1 = 0 ;
23396 char * kwnames[] = {
23397 (char *) "self",(char *) "point", NULL
23398 };
23399
23400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23402 if (!SWIG_IsOK(res1)) {
23403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23404 }
23405 arg1 = reinterpret_cast< wxDC * >(argp1);
23406 {
23407 arg2 = &temp2;
23408 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23409 }
23410 {
23411 PyThreadState* __tstate = wxPyBeginAllowThreads();
23412 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
23413 wxPyEndAllowThreads(__tstate);
23414 if (PyErr_Occurred()) SWIG_fail;
23415 }
23416 resultobj = SWIG_Py_Void();
23417 return resultobj;
23418 fail:
23419 return NULL;
23420 }
23421
23422
23423 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23424 PyObject *resultobj = 0;
23425 wxDC *arg1 = (wxDC *) 0 ;
23426 bool arg2 ;
23427 bool arg3 ;
23428 void *argp1 = 0 ;
23429 int res1 = 0 ;
23430 bool val2 ;
23431 int ecode2 = 0 ;
23432 bool val3 ;
23433 int ecode3 = 0 ;
23434 PyObject * obj0 = 0 ;
23435 PyObject * obj1 = 0 ;
23436 PyObject * obj2 = 0 ;
23437 char * kwnames[] = {
23438 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
23439 };
23440
23441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23443 if (!SWIG_IsOK(res1)) {
23444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
23445 }
23446 arg1 = reinterpret_cast< wxDC * >(argp1);
23447 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23448 if (!SWIG_IsOK(ecode2)) {
23449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
23450 }
23451 arg2 = static_cast< bool >(val2);
23452 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23453 if (!SWIG_IsOK(ecode3)) {
23454 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
23455 }
23456 arg3 = static_cast< bool >(val3);
23457 {
23458 PyThreadState* __tstate = wxPyBeginAllowThreads();
23459 (arg1)->SetAxisOrientation(arg2,arg3);
23460 wxPyEndAllowThreads(__tstate);
23461 if (PyErr_Occurred()) SWIG_fail;
23462 }
23463 resultobj = SWIG_Py_Void();
23464 return resultobj;
23465 fail:
23466 return NULL;
23467 }
23468
23469
23470 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23471 PyObject *resultobj = 0;
23472 wxDC *arg1 = (wxDC *) 0 ;
23473 int result;
23474 void *argp1 = 0 ;
23475 int res1 = 0 ;
23476 PyObject *swig_obj[1] ;
23477
23478 if (!args) SWIG_fail;
23479 swig_obj[0] = args;
23480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23481 if (!SWIG_IsOK(res1)) {
23482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
23483 }
23484 arg1 = reinterpret_cast< wxDC * >(argp1);
23485 {
23486 PyThreadState* __tstate = wxPyBeginAllowThreads();
23487 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
23488 wxPyEndAllowThreads(__tstate);
23489 if (PyErr_Occurred()) SWIG_fail;
23490 }
23491 resultobj = SWIG_From_int(static_cast< int >(result));
23492 return resultobj;
23493 fail:
23494 return NULL;
23495 }
23496
23497
23498 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23499 PyObject *resultobj = 0;
23500 wxDC *arg1 = (wxDC *) 0 ;
23501 int arg2 ;
23502 void *argp1 = 0 ;
23503 int res1 = 0 ;
23504 int val2 ;
23505 int ecode2 = 0 ;
23506 PyObject * obj0 = 0 ;
23507 PyObject * obj1 = 0 ;
23508 char * kwnames[] = {
23509 (char *) "self",(char *) "function", NULL
23510 };
23511
23512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
23513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23514 if (!SWIG_IsOK(res1)) {
23515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
23516 }
23517 arg1 = reinterpret_cast< wxDC * >(argp1);
23518 ecode2 = SWIG_AsVal_int(obj1, &val2);
23519 if (!SWIG_IsOK(ecode2)) {
23520 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
23521 }
23522 arg2 = static_cast< int >(val2);
23523 {
23524 PyThreadState* __tstate = wxPyBeginAllowThreads();
23525 (arg1)->SetLogicalFunction(arg2);
23526 wxPyEndAllowThreads(__tstate);
23527 if (PyErr_Occurred()) SWIG_fail;
23528 }
23529 resultobj = SWIG_Py_Void();
23530 return resultobj;
23531 fail:
23532 return NULL;
23533 }
23534
23535
23536 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23537 PyObject *resultobj = 0;
23538 wxDC *arg1 = (wxDC *) 0 ;
23539 void *argp1 = 0 ;
23540 int res1 = 0 ;
23541 PyObject *swig_obj[1] ;
23542
23543 if (!args) SWIG_fail;
23544 swig_obj[0] = args;
23545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23546 if (!SWIG_IsOK(res1)) {
23547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23548 }
23549 arg1 = reinterpret_cast< wxDC * >(argp1);
23550 {
23551 PyThreadState* __tstate = wxPyBeginAllowThreads();
23552 (arg1)->ComputeScaleAndOrigin();
23553 wxPyEndAllowThreads(__tstate);
23554 if (PyErr_Occurred()) SWIG_fail;
23555 }
23556 resultobj = SWIG_Py_Void();
23557 return resultobj;
23558 fail:
23559 return NULL;
23560 }
23561
23562
23563 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23564 PyObject *resultobj = 0;
23565 wxDC *arg1 = (wxDC *) 0 ;
23566 int arg2 ;
23567 int arg3 ;
23568 void *argp1 = 0 ;
23569 int res1 = 0 ;
23570 int val2 ;
23571 int ecode2 = 0 ;
23572 int val3 ;
23573 int ecode3 = 0 ;
23574 PyObject * obj0 = 0 ;
23575 PyObject * obj1 = 0 ;
23576 PyObject * obj2 = 0 ;
23577 char * kwnames[] = {
23578 (char *) "self",(char *) "x",(char *) "y", NULL
23579 };
23580
23581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23583 if (!SWIG_IsOK(res1)) {
23584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23585 }
23586 arg1 = reinterpret_cast< wxDC * >(argp1);
23587 ecode2 = SWIG_AsVal_int(obj1, &val2);
23588 if (!SWIG_IsOK(ecode2)) {
23589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
23590 }
23591 arg2 = static_cast< int >(val2);
23592 ecode3 = SWIG_AsVal_int(obj2, &val3);
23593 if (!SWIG_IsOK(ecode3)) {
23594 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
23595 }
23596 arg3 = static_cast< int >(val3);
23597 {
23598 PyThreadState* __tstate = wxPyBeginAllowThreads();
23599 (arg1)->CalcBoundingBox(arg2,arg3);
23600 wxPyEndAllowThreads(__tstate);
23601 if (PyErr_Occurred()) SWIG_fail;
23602 }
23603 resultobj = SWIG_Py_Void();
23604 return resultobj;
23605 fail:
23606 return NULL;
23607 }
23608
23609
23610 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23611 PyObject *resultobj = 0;
23612 wxDC *arg1 = (wxDC *) 0 ;
23613 wxPoint *arg2 = 0 ;
23614 void *argp1 = 0 ;
23615 int res1 = 0 ;
23616 wxPoint temp2 ;
23617 PyObject * obj0 = 0 ;
23618 PyObject * obj1 = 0 ;
23619 char * kwnames[] = {
23620 (char *) "self",(char *) "point", NULL
23621 };
23622
23623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23625 if (!SWIG_IsOK(res1)) {
23626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23627 }
23628 arg1 = reinterpret_cast< wxDC * >(argp1);
23629 {
23630 arg2 = &temp2;
23631 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23632 }
23633 {
23634 PyThreadState* __tstate = wxPyBeginAllowThreads();
23635 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23636 wxPyEndAllowThreads(__tstate);
23637 if (PyErr_Occurred()) SWIG_fail;
23638 }
23639 resultobj = SWIG_Py_Void();
23640 return resultobj;
23641 fail:
23642 return NULL;
23643 }
23644
23645
23646 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23647 PyObject *resultobj = 0;
23648 wxDC *arg1 = (wxDC *) 0 ;
23649 void *argp1 = 0 ;
23650 int res1 = 0 ;
23651 PyObject *swig_obj[1] ;
23652
23653 if (!args) SWIG_fail;
23654 swig_obj[0] = args;
23655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23656 if (!SWIG_IsOK(res1)) {
23657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23658 }
23659 arg1 = reinterpret_cast< wxDC * >(argp1);
23660 {
23661 PyThreadState* __tstate = wxPyBeginAllowThreads();
23662 (arg1)->ResetBoundingBox();
23663 wxPyEndAllowThreads(__tstate);
23664 if (PyErr_Occurred()) SWIG_fail;
23665 }
23666 resultobj = SWIG_Py_Void();
23667 return resultobj;
23668 fail:
23669 return NULL;
23670 }
23671
23672
23673 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23674 PyObject *resultobj = 0;
23675 wxDC *arg1 = (wxDC *) 0 ;
23676 int result;
23677 void *argp1 = 0 ;
23678 int res1 = 0 ;
23679 PyObject *swig_obj[1] ;
23680
23681 if (!args) SWIG_fail;
23682 swig_obj[0] = args;
23683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23684 if (!SWIG_IsOK(res1)) {
23685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23686 }
23687 arg1 = reinterpret_cast< wxDC * >(argp1);
23688 {
23689 PyThreadState* __tstate = wxPyBeginAllowThreads();
23690 result = (int)((wxDC const *)arg1)->MinX();
23691 wxPyEndAllowThreads(__tstate);
23692 if (PyErr_Occurred()) SWIG_fail;
23693 }
23694 resultobj = SWIG_From_int(static_cast< int >(result));
23695 return resultobj;
23696 fail:
23697 return NULL;
23698 }
23699
23700
23701 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23702 PyObject *resultobj = 0;
23703 wxDC *arg1 = (wxDC *) 0 ;
23704 int result;
23705 void *argp1 = 0 ;
23706 int res1 = 0 ;
23707 PyObject *swig_obj[1] ;
23708
23709 if (!args) SWIG_fail;
23710 swig_obj[0] = args;
23711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23712 if (!SWIG_IsOK(res1)) {
23713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23714 }
23715 arg1 = reinterpret_cast< wxDC * >(argp1);
23716 {
23717 PyThreadState* __tstate = wxPyBeginAllowThreads();
23718 result = (int)((wxDC const *)arg1)->MaxX();
23719 wxPyEndAllowThreads(__tstate);
23720 if (PyErr_Occurred()) SWIG_fail;
23721 }
23722 resultobj = SWIG_From_int(static_cast< int >(result));
23723 return resultobj;
23724 fail:
23725 return NULL;
23726 }
23727
23728
23729 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23730 PyObject *resultobj = 0;
23731 wxDC *arg1 = (wxDC *) 0 ;
23732 int result;
23733 void *argp1 = 0 ;
23734 int res1 = 0 ;
23735 PyObject *swig_obj[1] ;
23736
23737 if (!args) SWIG_fail;
23738 swig_obj[0] = args;
23739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23740 if (!SWIG_IsOK(res1)) {
23741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23742 }
23743 arg1 = reinterpret_cast< wxDC * >(argp1);
23744 {
23745 PyThreadState* __tstate = wxPyBeginAllowThreads();
23746 result = (int)((wxDC const *)arg1)->MinY();
23747 wxPyEndAllowThreads(__tstate);
23748 if (PyErr_Occurred()) SWIG_fail;
23749 }
23750 resultobj = SWIG_From_int(static_cast< int >(result));
23751 return resultobj;
23752 fail:
23753 return NULL;
23754 }
23755
23756
23757 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23758 PyObject *resultobj = 0;
23759 wxDC *arg1 = (wxDC *) 0 ;
23760 int result;
23761 void *argp1 = 0 ;
23762 int res1 = 0 ;
23763 PyObject *swig_obj[1] ;
23764
23765 if (!args) SWIG_fail;
23766 swig_obj[0] = args;
23767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23768 if (!SWIG_IsOK(res1)) {
23769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23770 }
23771 arg1 = reinterpret_cast< wxDC * >(argp1);
23772 {
23773 PyThreadState* __tstate = wxPyBeginAllowThreads();
23774 result = (int)((wxDC const *)arg1)->MaxY();
23775 wxPyEndAllowThreads(__tstate);
23776 if (PyErr_Occurred()) SWIG_fail;
23777 }
23778 resultobj = SWIG_From_int(static_cast< int >(result));
23779 return resultobj;
23780 fail:
23781 return NULL;
23782 }
23783
23784
23785 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23786 PyObject *resultobj = 0;
23787 wxDC *arg1 = (wxDC *) 0 ;
23788 int *arg2 = (int *) 0 ;
23789 int *arg3 = (int *) 0 ;
23790 int *arg4 = (int *) 0 ;
23791 int *arg5 = (int *) 0 ;
23792 void *argp1 = 0 ;
23793 int res1 = 0 ;
23794 int temp2 ;
23795 int res2 = SWIG_TMPOBJ ;
23796 int temp3 ;
23797 int res3 = SWIG_TMPOBJ ;
23798 int temp4 ;
23799 int res4 = SWIG_TMPOBJ ;
23800 int temp5 ;
23801 int res5 = SWIG_TMPOBJ ;
23802 PyObject *swig_obj[1] ;
23803
23804 arg2 = &temp2;
23805 arg3 = &temp3;
23806 arg4 = &temp4;
23807 arg5 = &temp5;
23808 if (!args) SWIG_fail;
23809 swig_obj[0] = args;
23810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23811 if (!SWIG_IsOK(res1)) {
23812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23813 }
23814 arg1 = reinterpret_cast< wxDC * >(argp1);
23815 {
23816 PyThreadState* __tstate = wxPyBeginAllowThreads();
23817 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23818 wxPyEndAllowThreads(__tstate);
23819 if (PyErr_Occurred()) SWIG_fail;
23820 }
23821 resultobj = SWIG_Py_Void();
23822 if (SWIG_IsTmpObj(res2)) {
23823 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23824 } else {
23825 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23826 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23827 }
23828 if (SWIG_IsTmpObj(res3)) {
23829 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23830 } else {
23831 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23832 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23833 }
23834 if (SWIG_IsTmpObj(res4)) {
23835 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23836 } else {
23837 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23838 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23839 }
23840 if (SWIG_IsTmpObj(res5)) {
23841 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23842 } else {
23843 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23844 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23845 }
23846 return resultobj;
23847 fail:
23848 return NULL;
23849 }
23850
23851
23852 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23853 PyObject *resultobj = 0;
23854 wxDC *arg1 = (wxDC *) 0 ;
23855 wxLayoutDirection result;
23856 void *argp1 = 0 ;
23857 int res1 = 0 ;
23858 PyObject *swig_obj[1] ;
23859
23860 if (!args) SWIG_fail;
23861 swig_obj[0] = args;
23862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23863 if (!SWIG_IsOK(res1)) {
23864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23865 }
23866 arg1 = reinterpret_cast< wxDC * >(argp1);
23867 {
23868 PyThreadState* __tstate = wxPyBeginAllowThreads();
23869 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23870 wxPyEndAllowThreads(__tstate);
23871 if (PyErr_Occurred()) SWIG_fail;
23872 }
23873 resultobj = SWIG_From_int(static_cast< int >(result));
23874 return resultobj;
23875 fail:
23876 return NULL;
23877 }
23878
23879
23880 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23881 PyObject *resultobj = 0;
23882 wxDC *arg1 = (wxDC *) 0 ;
23883 wxLayoutDirection arg2 ;
23884 void *argp1 = 0 ;
23885 int res1 = 0 ;
23886 int val2 ;
23887 int ecode2 = 0 ;
23888 PyObject * obj0 = 0 ;
23889 PyObject * obj1 = 0 ;
23890 char * kwnames[] = {
23891 (char *) "self",(char *) "dir", NULL
23892 };
23893
23894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23896 if (!SWIG_IsOK(res1)) {
23897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23898 }
23899 arg1 = reinterpret_cast< wxDC * >(argp1);
23900 ecode2 = SWIG_AsVal_int(obj1, &val2);
23901 if (!SWIG_IsOK(ecode2)) {
23902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23903 }
23904 arg2 = static_cast< wxLayoutDirection >(val2);
23905 {
23906 PyThreadState* __tstate = wxPyBeginAllowThreads();
23907 (arg1)->SetLayoutDirection(arg2);
23908 wxPyEndAllowThreads(__tstate);
23909 if (PyErr_Occurred()) SWIG_fail;
23910 }
23911 resultobj = SWIG_Py_Void();
23912 return resultobj;
23913 fail:
23914 return NULL;
23915 }
23916
23917
23918 SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23919 PyObject *resultobj = 0;
23920 wxDC *arg1 = (wxDC *) 0 ;
23921 long result;
23922 void *argp1 = 0 ;
23923 int res1 = 0 ;
23924 PyObject *swig_obj[1] ;
23925
23926 if (!args) SWIG_fail;
23927 swig_obj[0] = args;
23928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23929 if (!SWIG_IsOK(res1)) {
23930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
23931 }
23932 arg1 = reinterpret_cast< wxDC * >(argp1);
23933 {
23934 PyThreadState* __tstate = wxPyBeginAllowThreads();
23935 result = (long)(arg1)->GetHDC();
23936 wxPyEndAllowThreads(__tstate);
23937 if (PyErr_Occurred()) SWIG_fail;
23938 }
23939 resultobj = SWIG_From_long(static_cast< long >(result));
23940 return resultobj;
23941 fail:
23942 return NULL;
23943 }
23944
23945
23946 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23947 PyObject *resultobj = 0;
23948 wxDC *arg1 = (wxDC *) 0 ;
23949 PyObject *arg2 = (PyObject *) 0 ;
23950 PyObject *arg3 = (PyObject *) 0 ;
23951 PyObject *arg4 = (PyObject *) 0 ;
23952 PyObject *result = 0 ;
23953 void *argp1 = 0 ;
23954 int res1 = 0 ;
23955 PyObject * obj0 = 0 ;
23956 PyObject * obj1 = 0 ;
23957 PyObject * obj2 = 0 ;
23958 PyObject * obj3 = 0 ;
23959 char * kwnames[] = {
23960 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23961 };
23962
23963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23965 if (!SWIG_IsOK(res1)) {
23966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23967 }
23968 arg1 = reinterpret_cast< wxDC * >(argp1);
23969 arg2 = obj1;
23970 arg3 = obj2;
23971 arg4 = obj3;
23972 {
23973 PyThreadState* __tstate = wxPyBeginAllowThreads();
23974 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23975 wxPyEndAllowThreads(__tstate);
23976 if (PyErr_Occurred()) SWIG_fail;
23977 }
23978 resultobj = result;
23979 return resultobj;
23980 fail:
23981 return NULL;
23982 }
23983
23984
23985 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23986 PyObject *resultobj = 0;
23987 wxDC *arg1 = (wxDC *) 0 ;
23988 PyObject *arg2 = (PyObject *) 0 ;
23989 PyObject *arg3 = (PyObject *) 0 ;
23990 PyObject *arg4 = (PyObject *) 0 ;
23991 PyObject *result = 0 ;
23992 void *argp1 = 0 ;
23993 int res1 = 0 ;
23994 PyObject * obj0 = 0 ;
23995 PyObject * obj1 = 0 ;
23996 PyObject * obj2 = 0 ;
23997 PyObject * obj3 = 0 ;
23998 char * kwnames[] = {
23999 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24000 };
24001
24002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24004 if (!SWIG_IsOK(res1)) {
24005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
24006 }
24007 arg1 = reinterpret_cast< wxDC * >(argp1);
24008 arg2 = obj1;
24009 arg3 = obj2;
24010 arg4 = obj3;
24011 {
24012 PyThreadState* __tstate = wxPyBeginAllowThreads();
24013 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
24014 wxPyEndAllowThreads(__tstate);
24015 if (PyErr_Occurred()) SWIG_fail;
24016 }
24017 resultobj = result;
24018 return resultobj;
24019 fail:
24020 return NULL;
24021 }
24022
24023
24024 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24025 PyObject *resultobj = 0;
24026 wxDC *arg1 = (wxDC *) 0 ;
24027 PyObject *arg2 = (PyObject *) 0 ;
24028 PyObject *arg3 = (PyObject *) 0 ;
24029 PyObject *arg4 = (PyObject *) 0 ;
24030 PyObject *result = 0 ;
24031 void *argp1 = 0 ;
24032 int res1 = 0 ;
24033 PyObject * obj0 = 0 ;
24034 PyObject * obj1 = 0 ;
24035 PyObject * obj2 = 0 ;
24036 PyObject * obj3 = 0 ;
24037 char * kwnames[] = {
24038 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24039 };
24040
24041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24043 if (!SWIG_IsOK(res1)) {
24044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
24045 }
24046 arg1 = reinterpret_cast< wxDC * >(argp1);
24047 arg2 = obj1;
24048 arg3 = obj2;
24049 arg4 = obj3;
24050 {
24051 PyThreadState* __tstate = wxPyBeginAllowThreads();
24052 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
24053 wxPyEndAllowThreads(__tstate);
24054 if (PyErr_Occurred()) SWIG_fail;
24055 }
24056 resultobj = result;
24057 return resultobj;
24058 fail:
24059 return NULL;
24060 }
24061
24062
24063 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24064 PyObject *resultobj = 0;
24065 wxDC *arg1 = (wxDC *) 0 ;
24066 PyObject *arg2 = (PyObject *) 0 ;
24067 PyObject *arg3 = (PyObject *) 0 ;
24068 PyObject *arg4 = (PyObject *) 0 ;
24069 PyObject *result = 0 ;
24070 void *argp1 = 0 ;
24071 int res1 = 0 ;
24072 PyObject * obj0 = 0 ;
24073 PyObject * obj1 = 0 ;
24074 PyObject * obj2 = 0 ;
24075 PyObject * obj3 = 0 ;
24076 char * kwnames[] = {
24077 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24078 };
24079
24080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24082 if (!SWIG_IsOK(res1)) {
24083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
24084 }
24085 arg1 = reinterpret_cast< wxDC * >(argp1);
24086 arg2 = obj1;
24087 arg3 = obj2;
24088 arg4 = obj3;
24089 {
24090 PyThreadState* __tstate = wxPyBeginAllowThreads();
24091 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
24092 wxPyEndAllowThreads(__tstate);
24093 if (PyErr_Occurred()) SWIG_fail;
24094 }
24095 resultobj = result;
24096 return resultobj;
24097 fail:
24098 return NULL;
24099 }
24100
24101
24102 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24103 PyObject *resultobj = 0;
24104 wxDC *arg1 = (wxDC *) 0 ;
24105 PyObject *arg2 = (PyObject *) 0 ;
24106 PyObject *arg3 = (PyObject *) 0 ;
24107 PyObject *arg4 = (PyObject *) 0 ;
24108 PyObject *result = 0 ;
24109 void *argp1 = 0 ;
24110 int res1 = 0 ;
24111 PyObject * obj0 = 0 ;
24112 PyObject * obj1 = 0 ;
24113 PyObject * obj2 = 0 ;
24114 PyObject * obj3 = 0 ;
24115 char * kwnames[] = {
24116 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24117 };
24118
24119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24121 if (!SWIG_IsOK(res1)) {
24122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
24123 }
24124 arg1 = reinterpret_cast< wxDC * >(argp1);
24125 arg2 = obj1;
24126 arg3 = obj2;
24127 arg4 = obj3;
24128 {
24129 PyThreadState* __tstate = wxPyBeginAllowThreads();
24130 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
24131 wxPyEndAllowThreads(__tstate);
24132 if (PyErr_Occurred()) SWIG_fail;
24133 }
24134 resultobj = result;
24135 return resultobj;
24136 fail:
24137 return NULL;
24138 }
24139
24140
24141 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24142 PyObject *resultobj = 0;
24143 wxDC *arg1 = (wxDC *) 0 ;
24144 PyObject *arg2 = (PyObject *) 0 ;
24145 PyObject *arg3 = (PyObject *) 0 ;
24146 PyObject *arg4 = (PyObject *) 0 ;
24147 PyObject *arg5 = (PyObject *) 0 ;
24148 PyObject *result = 0 ;
24149 void *argp1 = 0 ;
24150 int res1 = 0 ;
24151 PyObject * obj0 = 0 ;
24152 PyObject * obj1 = 0 ;
24153 PyObject * obj2 = 0 ;
24154 PyObject * obj3 = 0 ;
24155 PyObject * obj4 = 0 ;
24156 char * kwnames[] = {
24157 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
24158 };
24159
24160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24162 if (!SWIG_IsOK(res1)) {
24163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
24164 }
24165 arg1 = reinterpret_cast< wxDC * >(argp1);
24166 arg2 = obj1;
24167 arg3 = obj2;
24168 arg4 = obj3;
24169 arg5 = obj4;
24170 {
24171 PyThreadState* __tstate = wxPyBeginAllowThreads();
24172 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
24173 wxPyEndAllowThreads(__tstate);
24174 if (PyErr_Occurred()) SWIG_fail;
24175 }
24176 resultobj = result;
24177 return resultobj;
24178 fail:
24179 return NULL;
24180 }
24181
24182
24183 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24184 PyObject *obj;
24185 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24186 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
24187 return SWIG_Py_Void();
24188 }
24189
24190 SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24191 PyObject *resultobj = 0;
24192 wxDC *arg1 = 0 ;
24193 wxColour *arg2 = 0 ;
24194 wxDCTextColourChanger *result = 0 ;
24195 void *argp1 = 0 ;
24196 int res1 = 0 ;
24197 wxColour temp2 ;
24198 PyObject * obj0 = 0 ;
24199 PyObject * obj1 = 0 ;
24200 char * kwnames[] = {
24201 (char *) "dc",(char *) "col", NULL
24202 };
24203
24204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24205 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24206 if (!SWIG_IsOK(res1)) {
24207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24208 }
24209 if (!argp1) {
24210 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24211 }
24212 arg1 = reinterpret_cast< wxDC * >(argp1);
24213 {
24214 arg2 = &temp2;
24215 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24216 }
24217 {
24218 PyThreadState* __tstate = wxPyBeginAllowThreads();
24219 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
24220 wxPyEndAllowThreads(__tstate);
24221 if (PyErr_Occurred()) SWIG_fail;
24222 }
24223 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
24224 return resultobj;
24225 fail:
24226 return NULL;
24227 }
24228
24229
24230 SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24231 PyObject *resultobj = 0;
24232 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
24233 void *argp1 = 0 ;
24234 int res1 = 0 ;
24235 PyObject *swig_obj[1] ;
24236
24237 if (!args) SWIG_fail;
24238 swig_obj[0] = args;
24239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
24240 if (!SWIG_IsOK(res1)) {
24241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
24242 }
24243 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
24244 {
24245 PyThreadState* __tstate = wxPyBeginAllowThreads();
24246 delete arg1;
24247
24248 wxPyEndAllowThreads(__tstate);
24249 if (PyErr_Occurred()) SWIG_fail;
24250 }
24251 resultobj = SWIG_Py_Void();
24252 return resultobj;
24253 fail:
24254 return NULL;
24255 }
24256
24257
24258 SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24259 PyObject *obj;
24260 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24261 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
24262 return SWIG_Py_Void();
24263 }
24264
24265 SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24266 return SWIG_Python_InitShadowInstance(args);
24267 }
24268
24269 SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24270 PyObject *resultobj = 0;
24271 wxDC *arg1 = 0 ;
24272 wxPen *arg2 = 0 ;
24273 wxDCPenChanger *result = 0 ;
24274 void *argp1 = 0 ;
24275 int res1 = 0 ;
24276 void *argp2 = 0 ;
24277 int res2 = 0 ;
24278 PyObject * obj0 = 0 ;
24279 PyObject * obj1 = 0 ;
24280 char * kwnames[] = {
24281 (char *) "dc",(char *) "pen", NULL
24282 };
24283
24284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24285 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24286 if (!SWIG_IsOK(res1)) {
24287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24288 }
24289 if (!argp1) {
24290 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24291 }
24292 arg1 = reinterpret_cast< wxDC * >(argp1);
24293 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
24294 if (!SWIG_IsOK(res2)) {
24295 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24296 }
24297 if (!argp2) {
24298 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24299 }
24300 arg2 = reinterpret_cast< wxPen * >(argp2);
24301 {
24302 PyThreadState* __tstate = wxPyBeginAllowThreads();
24303 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
24304 wxPyEndAllowThreads(__tstate);
24305 if (PyErr_Occurred()) SWIG_fail;
24306 }
24307 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
24308 return resultobj;
24309 fail:
24310 return NULL;
24311 }
24312
24313
24314 SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24315 PyObject *resultobj = 0;
24316 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
24317 void *argp1 = 0 ;
24318 int res1 = 0 ;
24319 PyObject *swig_obj[1] ;
24320
24321 if (!args) SWIG_fail;
24322 swig_obj[0] = args;
24323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
24324 if (!SWIG_IsOK(res1)) {
24325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
24326 }
24327 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
24328 {
24329 PyThreadState* __tstate = wxPyBeginAllowThreads();
24330 delete arg1;
24331
24332 wxPyEndAllowThreads(__tstate);
24333 if (PyErr_Occurred()) SWIG_fail;
24334 }
24335 resultobj = SWIG_Py_Void();
24336 return resultobj;
24337 fail:
24338 return NULL;
24339 }
24340
24341
24342 SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24343 PyObject *obj;
24344 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24345 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
24346 return SWIG_Py_Void();
24347 }
24348
24349 SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24350 return SWIG_Python_InitShadowInstance(args);
24351 }
24352
24353 SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24354 PyObject *resultobj = 0;
24355 wxDC *arg1 = 0 ;
24356 wxBrush *arg2 = 0 ;
24357 wxDCBrushChanger *result = 0 ;
24358 void *argp1 = 0 ;
24359 int res1 = 0 ;
24360 void *argp2 = 0 ;
24361 int res2 = 0 ;
24362 PyObject * obj0 = 0 ;
24363 PyObject * obj1 = 0 ;
24364 char * kwnames[] = {
24365 (char *) "dc",(char *) "brush", NULL
24366 };
24367
24368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24369 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24370 if (!SWIG_IsOK(res1)) {
24371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24372 }
24373 if (!argp1) {
24374 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24375 }
24376 arg1 = reinterpret_cast< wxDC * >(argp1);
24377 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
24378 if (!SWIG_IsOK(res2)) {
24379 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24380 }
24381 if (!argp2) {
24382 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24383 }
24384 arg2 = reinterpret_cast< wxBrush * >(argp2);
24385 {
24386 PyThreadState* __tstate = wxPyBeginAllowThreads();
24387 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
24388 wxPyEndAllowThreads(__tstate);
24389 if (PyErr_Occurred()) SWIG_fail;
24390 }
24391 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
24392 return resultobj;
24393 fail:
24394 return NULL;
24395 }
24396
24397
24398 SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24399 PyObject *resultobj = 0;
24400 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
24401 void *argp1 = 0 ;
24402 int res1 = 0 ;
24403 PyObject *swig_obj[1] ;
24404
24405 if (!args) SWIG_fail;
24406 swig_obj[0] = args;
24407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
24408 if (!SWIG_IsOK(res1)) {
24409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
24410 }
24411 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
24412 {
24413 PyThreadState* __tstate = wxPyBeginAllowThreads();
24414 delete arg1;
24415
24416 wxPyEndAllowThreads(__tstate);
24417 if (PyErr_Occurred()) SWIG_fail;
24418 }
24419 resultobj = SWIG_Py_Void();
24420 return resultobj;
24421 fail:
24422 return NULL;
24423 }
24424
24425
24426 SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24427 PyObject *obj;
24428 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24429 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
24430 return SWIG_Py_Void();
24431 }
24432
24433 SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24434 return SWIG_Python_InitShadowInstance(args);
24435 }
24436
24437 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24438 PyObject *resultobj = 0;
24439 wxDC *arg1 = 0 ;
24440 wxRegion *arg2 = 0 ;
24441 wxDCClipper *result = 0 ;
24442 void *argp1 = 0 ;
24443 int res1 = 0 ;
24444 void *argp2 = 0 ;
24445 int res2 = 0 ;
24446
24447 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24449 if (!SWIG_IsOK(res1)) {
24450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24451 }
24452 if (!argp1) {
24453 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24454 }
24455 arg1 = reinterpret_cast< wxDC * >(argp1);
24456 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
24457 if (!SWIG_IsOK(res2)) {
24458 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24459 }
24460 if (!argp2) {
24461 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24462 }
24463 arg2 = reinterpret_cast< wxRegion * >(argp2);
24464 {
24465 PyThreadState* __tstate = wxPyBeginAllowThreads();
24466 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
24467 wxPyEndAllowThreads(__tstate);
24468 if (PyErr_Occurred()) SWIG_fail;
24469 }
24470 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24471 return resultobj;
24472 fail:
24473 return NULL;
24474 }
24475
24476
24477 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24478 PyObject *resultobj = 0;
24479 wxDC *arg1 = 0 ;
24480 wxRect *arg2 = 0 ;
24481 wxDCClipper *result = 0 ;
24482 void *argp1 = 0 ;
24483 int res1 = 0 ;
24484 wxRect temp2 ;
24485
24486 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24488 if (!SWIG_IsOK(res1)) {
24489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24490 }
24491 if (!argp1) {
24492 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24493 }
24494 arg1 = reinterpret_cast< wxDC * >(argp1);
24495 {
24496 arg2 = &temp2;
24497 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
24498 }
24499 {
24500 PyThreadState* __tstate = wxPyBeginAllowThreads();
24501 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
24502 wxPyEndAllowThreads(__tstate);
24503 if (PyErr_Occurred()) SWIG_fail;
24504 }
24505 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24506 return resultobj;
24507 fail:
24508 return NULL;
24509 }
24510
24511
24512 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24513 PyObject *resultobj = 0;
24514 wxDC *arg1 = 0 ;
24515 int arg2 ;
24516 int arg3 ;
24517 int arg4 ;
24518 int arg5 ;
24519 wxDCClipper *result = 0 ;
24520 void *argp1 = 0 ;
24521 int res1 = 0 ;
24522 int val2 ;
24523 int ecode2 = 0 ;
24524 int val3 ;
24525 int ecode3 = 0 ;
24526 int val4 ;
24527 int ecode4 = 0 ;
24528 int val5 ;
24529 int ecode5 = 0 ;
24530
24531 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
24532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24533 if (!SWIG_IsOK(res1)) {
24534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24535 }
24536 if (!argp1) {
24537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24538 }
24539 arg1 = reinterpret_cast< wxDC * >(argp1);
24540 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24541 if (!SWIG_IsOK(ecode2)) {
24542 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
24543 }
24544 arg2 = static_cast< int >(val2);
24545 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24546 if (!SWIG_IsOK(ecode3)) {
24547 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
24548 }
24549 arg3 = static_cast< int >(val3);
24550 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
24551 if (!SWIG_IsOK(ecode4)) {
24552 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
24553 }
24554 arg4 = static_cast< int >(val4);
24555 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
24556 if (!SWIG_IsOK(ecode5)) {
24557 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
24558 }
24559 arg5 = static_cast< int >(val5);
24560 {
24561 PyThreadState* __tstate = wxPyBeginAllowThreads();
24562 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
24563 wxPyEndAllowThreads(__tstate);
24564 if (PyErr_Occurred()) SWIG_fail;
24565 }
24566 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24567 return resultobj;
24568 fail:
24569 return NULL;
24570 }
24571
24572
24573 SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
24574 int argc;
24575 PyObject *argv[6];
24576
24577 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
24578 --argc;
24579 if (argc == 2) {
24580 int _v = 0;
24581 {
24582 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
24583 _v = SWIG_CheckState(res);
24584 }
24585 if (!_v) goto check_1;
24586 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
24587 }
24588 check_1:
24589
24590 if (argc == 2) {
24591 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
24592 }
24593 if (argc == 5) {
24594 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
24595 }
24596
24597 fail:
24598 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
24599 return NULL;
24600 }
24601
24602
24603 SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24604 PyObject *resultobj = 0;
24605 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
24606 void *argp1 = 0 ;
24607 int res1 = 0 ;
24608 PyObject *swig_obj[1] ;
24609
24610 if (!args) SWIG_fail;
24611 swig_obj[0] = args;
24612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
24613 if (!SWIG_IsOK(res1)) {
24614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
24615 }
24616 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
24617 {
24618 PyThreadState* __tstate = wxPyBeginAllowThreads();
24619 delete arg1;
24620
24621 wxPyEndAllowThreads(__tstate);
24622 if (PyErr_Occurred()) SWIG_fail;
24623 }
24624 resultobj = SWIG_Py_Void();
24625 return resultobj;
24626 fail:
24627 return NULL;
24628 }
24629
24630
24631 SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24632 PyObject *obj;
24633 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24634 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
24635 return SWIG_Py_Void();
24636 }
24637
24638 SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24639 return SWIG_Python_InitShadowInstance(args);
24640 }
24641
24642 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24643 PyObject *resultobj = 0;
24644 wxScreenDC *result = 0 ;
24645
24646 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
24647 {
24648 if (!wxPyCheckForApp()) SWIG_fail;
24649 PyThreadState* __tstate = wxPyBeginAllowThreads();
24650 result = (wxScreenDC *)new wxScreenDC();
24651 wxPyEndAllowThreads(__tstate);
24652 if (PyErr_Occurred()) SWIG_fail;
24653 }
24654 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
24655 return resultobj;
24656 fail:
24657 return NULL;
24658 }
24659
24660
24661 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24662 PyObject *resultobj = 0;
24663 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24664 wxWindow *arg2 = (wxWindow *) 0 ;
24665 bool result;
24666 void *argp1 = 0 ;
24667 int res1 = 0 ;
24668 void *argp2 = 0 ;
24669 int res2 = 0 ;
24670 PyObject * obj0 = 0 ;
24671 PyObject * obj1 = 0 ;
24672 char * kwnames[] = {
24673 (char *) "self",(char *) "window", NULL
24674 };
24675
24676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
24677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24678 if (!SWIG_IsOK(res1)) {
24679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24680 }
24681 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24682 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24683 if (!SWIG_IsOK(res2)) {
24684 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
24685 }
24686 arg2 = reinterpret_cast< wxWindow * >(argp2);
24687 {
24688 PyThreadState* __tstate = wxPyBeginAllowThreads();
24689 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24690 wxPyEndAllowThreads(__tstate);
24691 if (PyErr_Occurred()) SWIG_fail;
24692 }
24693 {
24694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24695 }
24696 return resultobj;
24697 fail:
24698 return NULL;
24699 }
24700
24701
24702 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24703 PyObject *resultobj = 0;
24704 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24705 wxRect *arg2 = (wxRect *) NULL ;
24706 bool result;
24707 void *argp1 = 0 ;
24708 int res1 = 0 ;
24709 void *argp2 = 0 ;
24710 int res2 = 0 ;
24711 PyObject * obj0 = 0 ;
24712 PyObject * obj1 = 0 ;
24713 char * kwnames[] = {
24714 (char *) "self",(char *) "rect", NULL
24715 };
24716
24717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24719 if (!SWIG_IsOK(res1)) {
24720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24721 }
24722 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24723 if (obj1) {
24724 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24725 if (!SWIG_IsOK(res2)) {
24726 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24727 }
24728 arg2 = reinterpret_cast< wxRect * >(argp2);
24729 }
24730 {
24731 PyThreadState* __tstate = wxPyBeginAllowThreads();
24732 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24733 wxPyEndAllowThreads(__tstate);
24734 if (PyErr_Occurred()) SWIG_fail;
24735 }
24736 {
24737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24738 }
24739 return resultobj;
24740 fail:
24741 return NULL;
24742 }
24743
24744
24745 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24746 PyObject *resultobj = 0;
24747 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24748 bool result;
24749 void *argp1 = 0 ;
24750 int res1 = 0 ;
24751 PyObject *swig_obj[1] ;
24752
24753 if (!args) SWIG_fail;
24754 swig_obj[0] = args;
24755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24756 if (!SWIG_IsOK(res1)) {
24757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24758 }
24759 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24760 {
24761 PyThreadState* __tstate = wxPyBeginAllowThreads();
24762 result = (bool)(arg1)->EndDrawingOnTop();
24763 wxPyEndAllowThreads(__tstate);
24764 if (PyErr_Occurred()) SWIG_fail;
24765 }
24766 {
24767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24768 }
24769 return resultobj;
24770 fail:
24771 return NULL;
24772 }
24773
24774
24775 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24776 PyObject *obj;
24777 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24778 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24779 return SWIG_Py_Void();
24780 }
24781
24782 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24783 return SWIG_Python_InitShadowInstance(args);
24784 }
24785
24786 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24787 PyObject *resultobj = 0;
24788 wxWindow *arg1 = (wxWindow *) 0 ;
24789 wxWindowDC *result = 0 ;
24790 void *argp1 = 0 ;
24791 int res1 = 0 ;
24792 PyObject * obj0 = 0 ;
24793 char * kwnames[] = {
24794 (char *) "win", NULL
24795 };
24796
24797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24799 if (!SWIG_IsOK(res1)) {
24800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24801 }
24802 arg1 = reinterpret_cast< wxWindow * >(argp1);
24803 {
24804 if (!wxPyCheckForApp()) SWIG_fail;
24805 PyThreadState* __tstate = wxPyBeginAllowThreads();
24806 result = (wxWindowDC *)new wxWindowDC(arg1);
24807 wxPyEndAllowThreads(__tstate);
24808 if (PyErr_Occurred()) SWIG_fail;
24809 }
24810 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24811 return resultobj;
24812 fail:
24813 return NULL;
24814 }
24815
24816
24817 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24818 PyObject *obj;
24819 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24820 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24821 return SWIG_Py_Void();
24822 }
24823
24824 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24825 return SWIG_Python_InitShadowInstance(args);
24826 }
24827
24828 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24829 PyObject *resultobj = 0;
24830 wxWindow *arg1 = (wxWindow *) 0 ;
24831 wxClientDC *result = 0 ;
24832 void *argp1 = 0 ;
24833 int res1 = 0 ;
24834 PyObject * obj0 = 0 ;
24835 char * kwnames[] = {
24836 (char *) "win", NULL
24837 };
24838
24839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24841 if (!SWIG_IsOK(res1)) {
24842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24843 }
24844 arg1 = reinterpret_cast< wxWindow * >(argp1);
24845 {
24846 if (!wxPyCheckForApp()) SWIG_fail;
24847 PyThreadState* __tstate = wxPyBeginAllowThreads();
24848 result = (wxClientDC *)new wxClientDC(arg1);
24849 wxPyEndAllowThreads(__tstate);
24850 if (PyErr_Occurred()) SWIG_fail;
24851 }
24852 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24853 return resultobj;
24854 fail:
24855 return NULL;
24856 }
24857
24858
24859 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24860 PyObject *obj;
24861 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24862 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24863 return SWIG_Py_Void();
24864 }
24865
24866 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24867 return SWIG_Python_InitShadowInstance(args);
24868 }
24869
24870 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24871 PyObject *resultobj = 0;
24872 wxWindow *arg1 = (wxWindow *) 0 ;
24873 wxPaintDC *result = 0 ;
24874 void *argp1 = 0 ;
24875 int res1 = 0 ;
24876 PyObject * obj0 = 0 ;
24877 char * kwnames[] = {
24878 (char *) "win", NULL
24879 };
24880
24881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24883 if (!SWIG_IsOK(res1)) {
24884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24885 }
24886 arg1 = reinterpret_cast< wxWindow * >(argp1);
24887 {
24888 if (!wxPyCheckForApp()) SWIG_fail;
24889 PyThreadState* __tstate = wxPyBeginAllowThreads();
24890 result = (wxPaintDC *)new wxPaintDC(arg1);
24891 wxPyEndAllowThreads(__tstate);
24892 if (PyErr_Occurred()) SWIG_fail;
24893 }
24894 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24895 return resultobj;
24896 fail:
24897 return NULL;
24898 }
24899
24900
24901 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24902 PyObject *obj;
24903 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24904 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24905 return SWIG_Py_Void();
24906 }
24907
24908 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24909 return SWIG_Python_InitShadowInstance(args);
24910 }
24911
24912 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24913 PyObject *resultobj = 0;
24914 wxBitmap &arg1_defvalue = wxNullBitmap ;
24915 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24916 wxMemoryDC *result = 0 ;
24917 void *argp1 = 0 ;
24918 int res1 = 0 ;
24919 PyObject * obj0 = 0 ;
24920 char * kwnames[] = {
24921 (char *) "bitmap", NULL
24922 };
24923
24924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24925 if (obj0) {
24926 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
24927 if (!SWIG_IsOK(res1)) {
24928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24929 }
24930 if (!argp1) {
24931 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24932 }
24933 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24934 }
24935 {
24936 if (!wxPyCheckForApp()) SWIG_fail;
24937 PyThreadState* __tstate = wxPyBeginAllowThreads();
24938 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
24939 wxPyEndAllowThreads(__tstate);
24940 if (PyErr_Occurred()) SWIG_fail;
24941 }
24942 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24943 return resultobj;
24944 fail:
24945 return NULL;
24946 }
24947
24948
24949 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24950 PyObject *resultobj = 0;
24951 wxDC *arg1 = (wxDC *) 0 ;
24952 wxMemoryDC *result = 0 ;
24953 void *argp1 = 0 ;
24954 int res1 = 0 ;
24955 PyObject * obj0 = 0 ;
24956 char * kwnames[] = {
24957 (char *) "oldDC", NULL
24958 };
24959
24960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24962 if (!SWIG_IsOK(res1)) {
24963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24964 }
24965 arg1 = reinterpret_cast< wxDC * >(argp1);
24966 {
24967 if (!wxPyCheckForApp()) SWIG_fail;
24968 PyThreadState* __tstate = wxPyBeginAllowThreads();
24969 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24970 wxPyEndAllowThreads(__tstate);
24971 if (PyErr_Occurred()) SWIG_fail;
24972 }
24973 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24974 return resultobj;
24975 fail:
24976 return NULL;
24977 }
24978
24979
24980 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24981 PyObject *resultobj = 0;
24982 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24983 wxBitmap *arg2 = 0 ;
24984 void *argp1 = 0 ;
24985 int res1 = 0 ;
24986 void *argp2 = 0 ;
24987 int res2 = 0 ;
24988 PyObject * obj0 = 0 ;
24989 PyObject * obj1 = 0 ;
24990 char * kwnames[] = {
24991 (char *) "self",(char *) "bitmap", NULL
24992 };
24993
24994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24996 if (!SWIG_IsOK(res1)) {
24997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24998 }
24999 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
25000 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
25001 if (!SWIG_IsOK(res2)) {
25002 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
25003 }
25004 if (!argp2) {
25005 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
25006 }
25007 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25008 {
25009 PyThreadState* __tstate = wxPyBeginAllowThreads();
25010 (arg1)->SelectObject(*arg2);
25011 wxPyEndAllowThreads(__tstate);
25012 if (PyErr_Occurred()) SWIG_fail;
25013 }
25014 resultobj = SWIG_Py_Void();
25015 return resultobj;
25016 fail:
25017 return NULL;
25018 }
25019
25020
25021 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25022 PyObject *resultobj = 0;
25023 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
25024 wxBitmap *arg2 = 0 ;
25025 void *argp1 = 0 ;
25026 int res1 = 0 ;
25027 void *argp2 = 0 ;
25028 int res2 = 0 ;
25029 PyObject * obj0 = 0 ;
25030 PyObject * obj1 = 0 ;
25031 char * kwnames[] = {
25032 (char *) "self",(char *) "bmp", NULL
25033 };
25034
25035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
25036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
25037 if (!SWIG_IsOK(res1)) {
25038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
25039 }
25040 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
25041 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
25042 if (!SWIG_IsOK(res2)) {
25043 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25044 }
25045 if (!argp2) {
25046 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25047 }
25048 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25049 {
25050 PyThreadState* __tstate = wxPyBeginAllowThreads();
25051 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
25052 wxPyEndAllowThreads(__tstate);
25053 if (PyErr_Occurred()) SWIG_fail;
25054 }
25055 resultobj = SWIG_Py_Void();
25056 return resultobj;
25057 fail:
25058 return NULL;
25059 }
25060
25061
25062 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25063 PyObject *obj;
25064 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25065 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
25066 return SWIG_Py_Void();
25067 }
25068
25069 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25070 return SWIG_Python_InitShadowInstance(args);
25071 }
25072
25073 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25074 PyObject *resultobj = 0;
25075 wxDC *arg1 = (wxDC *) 0 ;
25076 wxBitmap &arg2_defvalue = wxNullBitmap ;
25077 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25078 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25079 wxBufferedDC *result = 0 ;
25080 void *argp1 = 0 ;
25081 int res1 = 0 ;
25082 void *argp2 = 0 ;
25083 int res2 = 0 ;
25084 int val3 ;
25085 int ecode3 = 0 ;
25086
25087 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
25088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
25089 if (!SWIG_IsOK(res1)) {
25090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
25091 }
25092 arg1 = reinterpret_cast< wxDC * >(argp1);
25093 if (swig_obj[1]) {
25094 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
25095 if (!SWIG_IsOK(res2)) {
25096 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25097 }
25098 if (!argp2) {
25099 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25100 }
25101 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25102 }
25103 if (swig_obj[2]) {
25104 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
25105 if (!SWIG_IsOK(ecode3)) {
25106 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
25107 }
25108 arg3 = static_cast< int >(val3);
25109 }
25110 {
25111 if (!wxPyCheckForApp()) SWIG_fail;
25112 PyThreadState* __tstate = wxPyBeginAllowThreads();
25113 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
25114 wxPyEndAllowThreads(__tstate);
25115 if (PyErr_Occurred()) SWIG_fail;
25116 }
25117 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
25118 return resultobj;
25119 fail:
25120 return NULL;
25121 }
25122
25123
25124 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25125 PyObject *resultobj = 0;
25126 wxDC *arg1 = (wxDC *) 0 ;
25127 wxSize *arg2 = 0 ;
25128 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25129 wxBufferedDC *result = 0 ;
25130 void *argp1 = 0 ;
25131 int res1 = 0 ;
25132 wxSize temp2 ;
25133 int val3 ;
25134 int ecode3 = 0 ;
25135
25136 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
25137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
25138 if (!SWIG_IsOK(res1)) {
25139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
25140 }
25141 arg1 = reinterpret_cast< wxDC * >(argp1);
25142 {
25143 arg2 = &temp2;
25144 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
25145 }
25146 if (swig_obj[2]) {
25147 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
25148 if (!SWIG_IsOK(ecode3)) {
25149 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
25150 }
25151 arg3 = static_cast< int >(val3);
25152 }
25153 {
25154 if (!wxPyCheckForApp()) SWIG_fail;
25155 PyThreadState* __tstate = wxPyBeginAllowThreads();
25156 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
25157 wxPyEndAllowThreads(__tstate);
25158 if (PyErr_Occurred()) SWIG_fail;
25159 }
25160 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
25161 return resultobj;
25162 fail:
25163 return NULL;
25164 }
25165
25166
25167 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
25168 int argc;
25169 PyObject *argv[4];
25170
25171 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
25172 --argc;
25173 if ((argc >= 1) && (argc <= 3)) {
25174 int _v = 0;
25175 if (argc > 1) {
25176 {
25177 void *vptr = 0;
25178 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
25179 _v = SWIG_CheckState(res);
25180 }
25181 if (!_v) goto check_1;
25182 }
25183 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
25184 }
25185 check_1:
25186
25187 if ((argc >= 2) && (argc <= 3)) {
25188 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
25189 }
25190
25191 fail:
25192 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
25193 return NULL;
25194 }
25195
25196
25197 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25198 PyObject *resultobj = 0;
25199 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25200 void *argp1 = 0 ;
25201 int res1 = 0 ;
25202 PyObject *swig_obj[1] ;
25203
25204 if (!args) SWIG_fail;
25205 swig_obj[0] = args;
25206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
25207 if (!SWIG_IsOK(res1)) {
25208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25209 }
25210 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25211 {
25212 PyThreadState* __tstate = wxPyBeginAllowThreads();
25213 delete arg1;
25214
25215 wxPyEndAllowThreads(__tstate);
25216 if (PyErr_Occurred()) SWIG_fail;
25217 }
25218 resultobj = SWIG_Py_Void();
25219 return resultobj;
25220 fail:
25221 return NULL;
25222 }
25223
25224
25225 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25226 PyObject *resultobj = 0;
25227 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25228 void *argp1 = 0 ;
25229 int res1 = 0 ;
25230 PyObject *swig_obj[1] ;
25231
25232 if (!args) SWIG_fail;
25233 swig_obj[0] = args;
25234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25235 if (!SWIG_IsOK(res1)) {
25236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25237 }
25238 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25239 {
25240 PyThreadState* __tstate = wxPyBeginAllowThreads();
25241 (arg1)->UnMask();
25242 wxPyEndAllowThreads(__tstate);
25243 if (PyErr_Occurred()) SWIG_fail;
25244 }
25245 resultobj = SWIG_Py_Void();
25246 return resultobj;
25247 fail:
25248 return NULL;
25249 }
25250
25251
25252 SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25253 PyObject *resultobj = 0;
25254 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25255 int arg2 ;
25256 void *argp1 = 0 ;
25257 int res1 = 0 ;
25258 int val2 ;
25259 int ecode2 = 0 ;
25260 PyObject * obj0 = 0 ;
25261 PyObject * obj1 = 0 ;
25262 char * kwnames[] = {
25263 (char *) "self",(char *) "style", NULL
25264 };
25265
25266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
25267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25268 if (!SWIG_IsOK(res1)) {
25269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25270 }
25271 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25272 ecode2 = SWIG_AsVal_int(obj1, &val2);
25273 if (!SWIG_IsOK(ecode2)) {
25274 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
25275 }
25276 arg2 = static_cast< int >(val2);
25277 {
25278 PyThreadState* __tstate = wxPyBeginAllowThreads();
25279 (arg1)->SetStyle(arg2);
25280 wxPyEndAllowThreads(__tstate);
25281 if (PyErr_Occurred()) SWIG_fail;
25282 }
25283 resultobj = SWIG_Py_Void();
25284 return resultobj;
25285 fail:
25286 return NULL;
25287 }
25288
25289
25290 SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25291 PyObject *resultobj = 0;
25292 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25293 int result;
25294 void *argp1 = 0 ;
25295 int res1 = 0 ;
25296 PyObject *swig_obj[1] ;
25297
25298 if (!args) SWIG_fail;
25299 swig_obj[0] = args;
25300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25301 if (!SWIG_IsOK(res1)) {
25302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
25303 }
25304 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25305 {
25306 PyThreadState* __tstate = wxPyBeginAllowThreads();
25307 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
25308 wxPyEndAllowThreads(__tstate);
25309 if (PyErr_Occurred()) SWIG_fail;
25310 }
25311 resultobj = SWIG_From_int(static_cast< int >(result));
25312 return resultobj;
25313 fail:
25314 return NULL;
25315 }
25316
25317
25318 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25319 PyObject *obj;
25320 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25321 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
25322 return SWIG_Py_Void();
25323 }
25324
25325 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25326 return SWIG_Python_InitShadowInstance(args);
25327 }
25328
25329 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25330 PyObject *resultobj = 0;
25331 wxWindow *arg1 = (wxWindow *) 0 ;
25332 wxBitmap &arg2_defvalue = wxNullBitmap ;
25333 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25334 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25335 wxBufferedPaintDC *result = 0 ;
25336 void *argp1 = 0 ;
25337 int res1 = 0 ;
25338 void *argp2 = 0 ;
25339 int res2 = 0 ;
25340 int val3 ;
25341 int ecode3 = 0 ;
25342 PyObject * obj0 = 0 ;
25343 PyObject * obj1 = 0 ;
25344 PyObject * obj2 = 0 ;
25345 char * kwnames[] = {
25346 (char *) "window",(char *) "buffer",(char *) "style", NULL
25347 };
25348
25349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25351 if (!SWIG_IsOK(res1)) {
25352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25353 }
25354 arg1 = reinterpret_cast< wxWindow * >(argp1);
25355 if (obj1) {
25356 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
25357 if (!SWIG_IsOK(res2)) {
25358 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25359 }
25360 if (!argp2) {
25361 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25362 }
25363 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25364 }
25365 if (obj2) {
25366 ecode3 = SWIG_AsVal_int(obj2, &val3);
25367 if (!SWIG_IsOK(ecode3)) {
25368 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
25369 }
25370 arg3 = static_cast< int >(val3);
25371 }
25372 {
25373 if (!wxPyCheckForApp()) SWIG_fail;
25374 PyThreadState* __tstate = wxPyBeginAllowThreads();
25375 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
25376 wxPyEndAllowThreads(__tstate);
25377 if (PyErr_Occurred()) SWIG_fail;
25378 }
25379 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25380 return resultobj;
25381 fail:
25382 return NULL;
25383 }
25384
25385
25386 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25387 PyObject *obj;
25388 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25389 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
25390 return SWIG_Py_Void();
25391 }
25392
25393 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25394 return SWIG_Python_InitShadowInstance(args);
25395 }
25396
25397 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25398 PyObject *resultobj = 0;
25399 wxWindow *arg1 = (wxWindow *) 0 ;
25400 wxAutoBufferedPaintDC *result = 0 ;
25401 void *argp1 = 0 ;
25402 int res1 = 0 ;
25403 PyObject * obj0 = 0 ;
25404 char * kwnames[] = {
25405 (char *) "win", NULL
25406 };
25407
25408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
25409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25410 if (!SWIG_IsOK(res1)) {
25411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25412 }
25413 arg1 = reinterpret_cast< wxWindow * >(argp1);
25414 {
25415 PyThreadState* __tstate = wxPyBeginAllowThreads();
25416 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
25417 wxPyEndAllowThreads(__tstate);
25418 if (PyErr_Occurred()) SWIG_fail;
25419 }
25420 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25421 return resultobj;
25422 fail:
25423 return NULL;
25424 }
25425
25426
25427 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25428 PyObject *obj;
25429 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25430 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
25431 return SWIG_Py_Void();
25432 }
25433
25434 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25435 return SWIG_Python_InitShadowInstance(args);
25436 }
25437
25438 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25439 PyObject *resultobj = 0;
25440 wxWindow *arg1 = (wxWindow *) 0 ;
25441 wxDC *result = 0 ;
25442 void *argp1 = 0 ;
25443 int res1 = 0 ;
25444 PyObject * obj0 = 0 ;
25445 char * kwnames[] = {
25446 (char *) "window", NULL
25447 };
25448
25449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
25450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25451 if (!SWIG_IsOK(res1)) {
25452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
25453 }
25454 arg1 = reinterpret_cast< wxWindow * >(argp1);
25455 {
25456 PyThreadState* __tstate = wxPyBeginAllowThreads();
25457 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
25458 wxPyEndAllowThreads(__tstate);
25459 if (PyErr_Occurred()) SWIG_fail;
25460 }
25461 {
25462 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
25463 }
25464 return resultobj;
25465 fail:
25466 return NULL;
25467 }
25468
25469
25470 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25471 PyObject *resultobj = 0;
25472 wxDC *arg1 = 0 ;
25473 bool arg2 ;
25474 wxMirrorDC *result = 0 ;
25475 void *argp1 = 0 ;
25476 int res1 = 0 ;
25477 bool val2 ;
25478 int ecode2 = 0 ;
25479 PyObject * obj0 = 0 ;
25480 PyObject * obj1 = 0 ;
25481 char * kwnames[] = {
25482 (char *) "dc",(char *) "mirror", NULL
25483 };
25484
25485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
25486 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
25487 if (!SWIG_IsOK(res1)) {
25488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25489 }
25490 if (!argp1) {
25491 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25492 }
25493 arg1 = reinterpret_cast< wxDC * >(argp1);
25494 ecode2 = SWIG_AsVal_bool(obj1, &val2);
25495 if (!SWIG_IsOK(ecode2)) {
25496 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
25497 }
25498 arg2 = static_cast< bool >(val2);
25499 {
25500 if (!wxPyCheckForApp()) SWIG_fail;
25501 PyThreadState* __tstate = wxPyBeginAllowThreads();
25502 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
25503 wxPyEndAllowThreads(__tstate);
25504 if (PyErr_Occurred()) SWIG_fail;
25505 }
25506 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
25507 return resultobj;
25508 fail:
25509 return NULL;
25510 }
25511
25512
25513 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25514 PyObject *obj;
25515 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25516 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
25517 return SWIG_Py_Void();
25518 }
25519
25520 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25521 return SWIG_Python_InitShadowInstance(args);
25522 }
25523
25524 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25525 PyObject *resultobj = 0;
25526 wxPrintData *arg1 = 0 ;
25527 wxPostScriptDC *result = 0 ;
25528 void *argp1 = 0 ;
25529 int res1 = 0 ;
25530 PyObject * obj0 = 0 ;
25531 char * kwnames[] = {
25532 (char *) "printData", NULL
25533 };
25534
25535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
25536 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25537 if (!SWIG_IsOK(res1)) {
25538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25539 }
25540 if (!argp1) {
25541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25542 }
25543 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25544 {
25545 if (!wxPyCheckForApp()) SWIG_fail;
25546 PyThreadState* __tstate = wxPyBeginAllowThreads();
25547 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
25548 wxPyEndAllowThreads(__tstate);
25549 if (PyErr_Occurred()) SWIG_fail;
25550 }
25551 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
25552 return resultobj;
25553 fail:
25554 return NULL;
25555 }
25556
25557
25558 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25559 PyObject *resultobj = 0;
25560 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25561 wxPrintData *result = 0 ;
25562 void *argp1 = 0 ;
25563 int res1 = 0 ;
25564 PyObject *swig_obj[1] ;
25565
25566 if (!args) SWIG_fail;
25567 swig_obj[0] = args;
25568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25569 if (!SWIG_IsOK(res1)) {
25570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25571 }
25572 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25573 {
25574 PyThreadState* __tstate = wxPyBeginAllowThreads();
25575 {
25576 wxPrintData &_result_ref = (arg1)->GetPrintData();
25577 result = (wxPrintData *) &_result_ref;
25578 }
25579 wxPyEndAllowThreads(__tstate);
25580 if (PyErr_Occurred()) SWIG_fail;
25581 }
25582 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
25583 return resultobj;
25584 fail:
25585 return NULL;
25586 }
25587
25588
25589 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25590 PyObject *resultobj = 0;
25591 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25592 wxPrintData *arg2 = 0 ;
25593 void *argp1 = 0 ;
25594 int res1 = 0 ;
25595 void *argp2 = 0 ;
25596 int res2 = 0 ;
25597 PyObject * obj0 = 0 ;
25598 PyObject * obj1 = 0 ;
25599 char * kwnames[] = {
25600 (char *) "self",(char *) "data", NULL
25601 };
25602
25603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
25604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25605 if (!SWIG_IsOK(res1)) {
25606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25607 }
25608 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25609 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
25610 if (!SWIG_IsOK(res2)) {
25611 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25612 }
25613 if (!argp2) {
25614 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25615 }
25616 arg2 = reinterpret_cast< wxPrintData * >(argp2);
25617 {
25618 PyThreadState* __tstate = wxPyBeginAllowThreads();
25619 (arg1)->SetPrintData((wxPrintData const &)*arg2);
25620 wxPyEndAllowThreads(__tstate);
25621 if (PyErr_Occurred()) SWIG_fail;
25622 }
25623 resultobj = SWIG_Py_Void();
25624 return resultobj;
25625 fail:
25626 return NULL;
25627 }
25628
25629
25630 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25631 PyObject *resultobj = 0;
25632 int arg1 ;
25633 int val1 ;
25634 int ecode1 = 0 ;
25635 PyObject * obj0 = 0 ;
25636 char * kwnames[] = {
25637 (char *) "ppi", NULL
25638 };
25639
25640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
25641 ecode1 = SWIG_AsVal_int(obj0, &val1);
25642 if (!SWIG_IsOK(ecode1)) {
25643 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
25644 }
25645 arg1 = static_cast< int >(val1);
25646 {
25647 PyThreadState* __tstate = wxPyBeginAllowThreads();
25648 wxPostScriptDC::SetResolution(arg1);
25649 wxPyEndAllowThreads(__tstate);
25650 if (PyErr_Occurred()) SWIG_fail;
25651 }
25652 resultobj = SWIG_Py_Void();
25653 return resultobj;
25654 fail:
25655 return NULL;
25656 }
25657
25658
25659 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25660 PyObject *resultobj = 0;
25661 int result;
25662
25663 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
25664 {
25665 PyThreadState* __tstate = wxPyBeginAllowThreads();
25666 result = (int)wxPostScriptDC::GetResolution();
25667 wxPyEndAllowThreads(__tstate);
25668 if (PyErr_Occurred()) SWIG_fail;
25669 }
25670 resultobj = SWIG_From_int(static_cast< int >(result));
25671 return resultobj;
25672 fail:
25673 return NULL;
25674 }
25675
25676
25677 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25678 PyObject *obj;
25679 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25680 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
25681 return SWIG_Py_Void();
25682 }
25683
25684 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25685 return SWIG_Python_InitShadowInstance(args);
25686 }
25687
25688 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25689 PyObject *resultobj = 0;
25690 wxString const &arg1_defvalue = wxPyEmptyString ;
25691 wxString *arg1 = (wxString *) &arg1_defvalue ;
25692 wxMetaFile *result = 0 ;
25693 bool temp1 = false ;
25694 PyObject * obj0 = 0 ;
25695 char * kwnames[] = {
25696 (char *) "filename", NULL
25697 };
25698
25699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
25700 if (obj0) {
25701 {
25702 arg1 = wxString_in_helper(obj0);
25703 if (arg1 == NULL) SWIG_fail;
25704 temp1 = true;
25705 }
25706 }
25707 {
25708 if (!wxPyCheckForApp()) SWIG_fail;
25709 PyThreadState* __tstate = wxPyBeginAllowThreads();
25710 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
25711 wxPyEndAllowThreads(__tstate);
25712 if (PyErr_Occurred()) SWIG_fail;
25713 }
25714 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
25715 {
25716 if (temp1)
25717 delete arg1;
25718 }
25719 return resultobj;
25720 fail:
25721 {
25722 if (temp1)
25723 delete arg1;
25724 }
25725 return NULL;
25726 }
25727
25728
25729 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25730 PyObject *resultobj = 0;
25731 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25732 void *argp1 = 0 ;
25733 int res1 = 0 ;
25734 PyObject *swig_obj[1] ;
25735
25736 if (!args) SWIG_fail;
25737 swig_obj[0] = args;
25738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
25739 if (!SWIG_IsOK(res1)) {
25740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25741 }
25742 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25743 {
25744 PyThreadState* __tstate = wxPyBeginAllowThreads();
25745 delete arg1;
25746
25747 wxPyEndAllowThreads(__tstate);
25748 if (PyErr_Occurred()) SWIG_fail;
25749 }
25750 resultobj = SWIG_Py_Void();
25751 return resultobj;
25752 fail:
25753 return NULL;
25754 }
25755
25756
25757 SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25758 PyObject *resultobj = 0;
25759 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25760 bool result;
25761 void *argp1 = 0 ;
25762 int res1 = 0 ;
25763 PyObject *swig_obj[1] ;
25764
25765 if (!args) SWIG_fail;
25766 swig_obj[0] = args;
25767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25768 if (!SWIG_IsOK(res1)) {
25769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25770 }
25771 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25772 {
25773 PyThreadState* __tstate = wxPyBeginAllowThreads();
25774 result = (bool)(arg1)->IsOk();
25775 wxPyEndAllowThreads(__tstate);
25776 if (PyErr_Occurred()) SWIG_fail;
25777 }
25778 {
25779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25780 }
25781 return resultobj;
25782 fail:
25783 return NULL;
25784 }
25785
25786
25787 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25788 PyObject *resultobj = 0;
25789 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25790 int arg2 = (int) 0 ;
25791 int arg3 = (int) 0 ;
25792 bool result;
25793 void *argp1 = 0 ;
25794 int res1 = 0 ;
25795 int val2 ;
25796 int ecode2 = 0 ;
25797 int val3 ;
25798 int ecode3 = 0 ;
25799 PyObject * obj0 = 0 ;
25800 PyObject * obj1 = 0 ;
25801 PyObject * obj2 = 0 ;
25802 char * kwnames[] = {
25803 (char *) "self",(char *) "width",(char *) "height", NULL
25804 };
25805
25806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25808 if (!SWIG_IsOK(res1)) {
25809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25810 }
25811 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25812 if (obj1) {
25813 ecode2 = SWIG_AsVal_int(obj1, &val2);
25814 if (!SWIG_IsOK(ecode2)) {
25815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
25816 }
25817 arg2 = static_cast< int >(val2);
25818 }
25819 if (obj2) {
25820 ecode3 = SWIG_AsVal_int(obj2, &val3);
25821 if (!SWIG_IsOK(ecode3)) {
25822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
25823 }
25824 arg3 = static_cast< int >(val3);
25825 }
25826 {
25827 PyThreadState* __tstate = wxPyBeginAllowThreads();
25828 result = (bool)(arg1)->SetClipboard(arg2,arg3);
25829 wxPyEndAllowThreads(__tstate);
25830 if (PyErr_Occurred()) SWIG_fail;
25831 }
25832 {
25833 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25834 }
25835 return resultobj;
25836 fail:
25837 return NULL;
25838 }
25839
25840
25841 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25842 PyObject *resultobj = 0;
25843 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25844 wxSize result;
25845 void *argp1 = 0 ;
25846 int res1 = 0 ;
25847 PyObject *swig_obj[1] ;
25848
25849 if (!args) SWIG_fail;
25850 swig_obj[0] = args;
25851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25852 if (!SWIG_IsOK(res1)) {
25853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25854 }
25855 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25856 {
25857 PyThreadState* __tstate = wxPyBeginAllowThreads();
25858 result = (arg1)->GetSize();
25859 wxPyEndAllowThreads(__tstate);
25860 if (PyErr_Occurred()) SWIG_fail;
25861 }
25862 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25863 return resultobj;
25864 fail:
25865 return NULL;
25866 }
25867
25868
25869 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25870 PyObject *resultobj = 0;
25871 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25872 int result;
25873 void *argp1 = 0 ;
25874 int res1 = 0 ;
25875 PyObject *swig_obj[1] ;
25876
25877 if (!args) SWIG_fail;
25878 swig_obj[0] = args;
25879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25880 if (!SWIG_IsOK(res1)) {
25881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25882 }
25883 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25884 {
25885 PyThreadState* __tstate = wxPyBeginAllowThreads();
25886 result = (int)(arg1)->GetWidth();
25887 wxPyEndAllowThreads(__tstate);
25888 if (PyErr_Occurred()) SWIG_fail;
25889 }
25890 resultobj = SWIG_From_int(static_cast< int >(result));
25891 return resultobj;
25892 fail:
25893 return NULL;
25894 }
25895
25896
25897 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25898 PyObject *resultobj = 0;
25899 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25900 int result;
25901 void *argp1 = 0 ;
25902 int res1 = 0 ;
25903 PyObject *swig_obj[1] ;
25904
25905 if (!args) SWIG_fail;
25906 swig_obj[0] = args;
25907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25908 if (!SWIG_IsOK(res1)) {
25909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25910 }
25911 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25912 {
25913 PyThreadState* __tstate = wxPyBeginAllowThreads();
25914 result = (int)(arg1)->GetHeight();
25915 wxPyEndAllowThreads(__tstate);
25916 if (PyErr_Occurred()) SWIG_fail;
25917 }
25918 resultobj = SWIG_From_int(static_cast< int >(result));
25919 return resultobj;
25920 fail:
25921 return NULL;
25922 }
25923
25924
25925 SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25926 PyObject *resultobj = 0;
25927 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25928 wxString *result = 0 ;
25929 void *argp1 = 0 ;
25930 int res1 = 0 ;
25931 PyObject *swig_obj[1] ;
25932
25933 if (!args) SWIG_fail;
25934 swig_obj[0] = args;
25935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25936 if (!SWIG_IsOK(res1)) {
25937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
25938 }
25939 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25940 {
25941 PyThreadState* __tstate = wxPyBeginAllowThreads();
25942 {
25943 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
25944 result = (wxString *) &_result_ref;
25945 }
25946 wxPyEndAllowThreads(__tstate);
25947 if (PyErr_Occurred()) SWIG_fail;
25948 }
25949 {
25950 #if wxUSE_UNICODE
25951 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
25952 #else
25953 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
25954 #endif
25955 }
25956 return resultobj;
25957 fail:
25958 return NULL;
25959 }
25960
25961
25962 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25963 PyObject *obj;
25964 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25965 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25966 return SWIG_Py_Void();
25967 }
25968
25969 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25970 return SWIG_Python_InitShadowInstance(args);
25971 }
25972
25973 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25974 PyObject *resultobj = 0;
25975 wxString const &arg1_defvalue = wxPyEmptyString ;
25976 wxString *arg1 = (wxString *) &arg1_defvalue ;
25977 int arg2 = (int) 0 ;
25978 int arg3 = (int) 0 ;
25979 wxString const &arg4_defvalue = wxPyEmptyString ;
25980 wxString *arg4 = (wxString *) &arg4_defvalue ;
25981 wxMetaFileDC *result = 0 ;
25982 bool temp1 = false ;
25983 int val2 ;
25984 int ecode2 = 0 ;
25985 int val3 ;
25986 int ecode3 = 0 ;
25987 bool temp4 = false ;
25988 PyObject * obj0 = 0 ;
25989 PyObject * obj1 = 0 ;
25990 PyObject * obj2 = 0 ;
25991 PyObject * obj3 = 0 ;
25992 char * kwnames[] = {
25993 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25994 };
25995
25996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25997 if (obj0) {
25998 {
25999 arg1 = wxString_in_helper(obj0);
26000 if (arg1 == NULL) SWIG_fail;
26001 temp1 = true;
26002 }
26003 }
26004 if (obj1) {
26005 ecode2 = SWIG_AsVal_int(obj1, &val2);
26006 if (!SWIG_IsOK(ecode2)) {
26007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
26008 }
26009 arg2 = static_cast< int >(val2);
26010 }
26011 if (obj2) {
26012 ecode3 = SWIG_AsVal_int(obj2, &val3);
26013 if (!SWIG_IsOK(ecode3)) {
26014 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
26015 }
26016 arg3 = static_cast< int >(val3);
26017 }
26018 if (obj3) {
26019 {
26020 arg4 = wxString_in_helper(obj3);
26021 if (arg4 == NULL) SWIG_fail;
26022 temp4 = true;
26023 }
26024 }
26025 {
26026 if (!wxPyCheckForApp()) SWIG_fail;
26027 PyThreadState* __tstate = wxPyBeginAllowThreads();
26028 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
26029 wxPyEndAllowThreads(__tstate);
26030 if (PyErr_Occurred()) SWIG_fail;
26031 }
26032 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
26033 {
26034 if (temp1)
26035 delete arg1;
26036 }
26037 {
26038 if (temp4)
26039 delete arg4;
26040 }
26041 return resultobj;
26042 fail:
26043 {
26044 if (temp1)
26045 delete arg1;
26046 }
26047 {
26048 if (temp4)
26049 delete arg4;
26050 }
26051 return NULL;
26052 }
26053
26054
26055 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26056 PyObject *resultobj = 0;
26057 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
26058 wxMetaFile *result = 0 ;
26059 void *argp1 = 0 ;
26060 int res1 = 0 ;
26061 PyObject *swig_obj[1] ;
26062
26063 if (!args) SWIG_fail;
26064 swig_obj[0] = args;
26065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
26066 if (!SWIG_IsOK(res1)) {
26067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
26068 }
26069 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
26070 {
26071 PyThreadState* __tstate = wxPyBeginAllowThreads();
26072 result = (wxMetaFile *)(arg1)->Close();
26073 wxPyEndAllowThreads(__tstate);
26074 if (PyErr_Occurred()) SWIG_fail;
26075 }
26076 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
26077 return resultobj;
26078 fail:
26079 return NULL;
26080 }
26081
26082
26083 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26084 PyObject *obj;
26085 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26086 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
26087 return SWIG_Py_Void();
26088 }
26089
26090 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26091 return SWIG_Python_InitShadowInstance(args);
26092 }
26093
26094 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26095 PyObject *resultobj = 0;
26096 wxPrintData *arg1 = 0 ;
26097 wxPrinterDC *result = 0 ;
26098 void *argp1 = 0 ;
26099 int res1 = 0 ;
26100 PyObject * obj0 = 0 ;
26101 char * kwnames[] = {
26102 (char *) "printData", NULL
26103 };
26104
26105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
26106 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
26107 if (!SWIG_IsOK(res1)) {
26108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26109 }
26110 if (!argp1) {
26111 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26112 }
26113 arg1 = reinterpret_cast< wxPrintData * >(argp1);
26114 {
26115 if (!wxPyCheckForApp()) SWIG_fail;
26116 PyThreadState* __tstate = wxPyBeginAllowThreads();
26117 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
26118 wxPyEndAllowThreads(__tstate);
26119 if (PyErr_Occurred()) SWIG_fail;
26120 }
26121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
26122 return resultobj;
26123 fail:
26124 return NULL;
26125 }
26126
26127
26128 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26129 PyObject *obj;
26130 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26131 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
26132 return SWIG_Py_Void();
26133 }
26134
26135 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26136 return SWIG_Python_InitShadowInstance(args);
26137 }
26138
26139 SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26140 PyObject *resultobj = 0;
26141 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
26142 wxGraphicsObject *result = 0 ;
26143 void *argp1 = 0 ;
26144 int res1 = 0 ;
26145 PyObject * obj0 = 0 ;
26146 char * kwnames[] = {
26147 (char *) "renderer", NULL
26148 };
26149
26150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
26151 if (obj0) {
26152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
26153 if (!SWIG_IsOK(res1)) {
26154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
26155 }
26156 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
26157 }
26158 {
26159 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
26160 if (PyErr_Occurred()) SWIG_fail;
26161 }
26162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
26163 return resultobj;
26164 fail:
26165 return NULL;
26166 }
26167
26168
26169 SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26170 PyObject *resultobj = 0;
26171 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26172 void *argp1 = 0 ;
26173 int res1 = 0 ;
26174 PyObject *swig_obj[1] ;
26175
26176 if (!args) SWIG_fail;
26177 swig_obj[0] = args;
26178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
26179 if (!SWIG_IsOK(res1)) {
26180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
26181 }
26182 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26183 {
26184 delete arg1;
26185
26186 if (PyErr_Occurred()) SWIG_fail;
26187 }
26188 resultobj = SWIG_Py_Void();
26189 return resultobj;
26190 fail:
26191 return NULL;
26192 }
26193
26194
26195 SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26196 PyObject *resultobj = 0;
26197 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26198 bool result;
26199 void *argp1 = 0 ;
26200 int res1 = 0 ;
26201 PyObject *swig_obj[1] ;
26202
26203 if (!args) SWIG_fail;
26204 swig_obj[0] = args;
26205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
26206 if (!SWIG_IsOK(res1)) {
26207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
26208 }
26209 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26210 {
26211 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
26212 if (PyErr_Occurred()) SWIG_fail;
26213 }
26214 {
26215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26216 }
26217 return resultobj;
26218 fail:
26219 return NULL;
26220 }
26221
26222
26223 SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26224 PyObject *resultobj = 0;
26225 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26226 wxGraphicsRenderer *result = 0 ;
26227 void *argp1 = 0 ;
26228 int res1 = 0 ;
26229 PyObject *swig_obj[1] ;
26230
26231 if (!args) SWIG_fail;
26232 swig_obj[0] = args;
26233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
26234 if (!SWIG_IsOK(res1)) {
26235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
26236 }
26237 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26238 {
26239 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
26240 if (PyErr_Occurred()) SWIG_fail;
26241 }
26242 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
26243 return resultobj;
26244 fail:
26245 return NULL;
26246 }
26247
26248
26249 SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26250 PyObject *obj;
26251 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26252 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
26253 return SWIG_Py_Void();
26254 }
26255
26256 SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26257 return SWIG_Python_InitShadowInstance(args);
26258 }
26259
26260 SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26261 PyObject *resultobj = 0;
26262 wxGraphicsPen *result = 0 ;
26263
26264 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
26265 {
26266 result = (wxGraphicsPen *)new wxGraphicsPen();
26267 if (PyErr_Occurred()) SWIG_fail;
26268 }
26269 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
26270 return resultobj;
26271 fail:
26272 return NULL;
26273 }
26274
26275
26276 SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26277 PyObject *resultobj = 0;
26278 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
26279 void *argp1 = 0 ;
26280 int res1 = 0 ;
26281 PyObject *swig_obj[1] ;
26282
26283 if (!args) SWIG_fail;
26284 swig_obj[0] = args;
26285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
26286 if (!SWIG_IsOK(res1)) {
26287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
26288 }
26289 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
26290 {
26291 delete arg1;
26292
26293 if (PyErr_Occurred()) SWIG_fail;
26294 }
26295 resultobj = SWIG_Py_Void();
26296 return resultobj;
26297 fail:
26298 return NULL;
26299 }
26300
26301
26302 SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26303 PyObject *obj;
26304 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26305 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
26306 return SWIG_Py_Void();
26307 }
26308
26309 SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26310 return SWIG_Python_InitShadowInstance(args);
26311 }
26312
26313 SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26314 PyObject *resultobj = 0;
26315 wxGraphicsBrush *result = 0 ;
26316
26317 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
26318 {
26319 result = (wxGraphicsBrush *)new wxGraphicsBrush();
26320 if (PyErr_Occurred()) SWIG_fail;
26321 }
26322 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
26323 return resultobj;
26324 fail:
26325 return NULL;
26326 }
26327
26328
26329 SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26330 PyObject *resultobj = 0;
26331 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
26332 void *argp1 = 0 ;
26333 int res1 = 0 ;
26334 PyObject *swig_obj[1] ;
26335
26336 if (!args) SWIG_fail;
26337 swig_obj[0] = args;
26338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
26339 if (!SWIG_IsOK(res1)) {
26340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
26341 }
26342 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
26343 {
26344 delete arg1;
26345
26346 if (PyErr_Occurred()) SWIG_fail;
26347 }
26348 resultobj = SWIG_Py_Void();
26349 return resultobj;
26350 fail:
26351 return NULL;
26352 }
26353
26354
26355 SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26356 PyObject *obj;
26357 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26358 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
26359 return SWIG_Py_Void();
26360 }
26361
26362 SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26363 return SWIG_Python_InitShadowInstance(args);
26364 }
26365
26366 SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26367 PyObject *resultobj = 0;
26368 wxGraphicsFont *result = 0 ;
26369
26370 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
26371 {
26372 result = (wxGraphicsFont *)new wxGraphicsFont();
26373 if (PyErr_Occurred()) SWIG_fail;
26374 }
26375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
26376 return resultobj;
26377 fail:
26378 return NULL;
26379 }
26380
26381
26382 SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26383 PyObject *resultobj = 0;
26384 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
26385 void *argp1 = 0 ;
26386 int res1 = 0 ;
26387 PyObject *swig_obj[1] ;
26388
26389 if (!args) SWIG_fail;
26390 swig_obj[0] = args;
26391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
26392 if (!SWIG_IsOK(res1)) {
26393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
26394 }
26395 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
26396 {
26397 delete arg1;
26398
26399 if (PyErr_Occurred()) SWIG_fail;
26400 }
26401 resultobj = SWIG_Py_Void();
26402 return resultobj;
26403 fail:
26404 return NULL;
26405 }
26406
26407
26408 SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26409 PyObject *obj;
26410 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26411 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
26412 return SWIG_Py_Void();
26413 }
26414
26415 SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26416 return SWIG_Python_InitShadowInstance(args);
26417 }
26418
26419 SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26420 PyObject *resultobj = 0;
26421 wxGraphicsMatrix *result = 0 ;
26422
26423 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
26424 {
26425 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
26426 if (PyErr_Occurred()) SWIG_fail;
26427 }
26428 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
26429 return resultobj;
26430 fail:
26431 return NULL;
26432 }
26433
26434
26435 SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26436 PyObject *resultobj = 0;
26437 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26438 void *argp1 = 0 ;
26439 int res1 = 0 ;
26440 PyObject *swig_obj[1] ;
26441
26442 if (!args) SWIG_fail;
26443 swig_obj[0] = args;
26444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
26445 if (!SWIG_IsOK(res1)) {
26446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26447 }
26448 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26449 {
26450 delete arg1;
26451
26452 if (PyErr_Occurred()) SWIG_fail;
26453 }
26454 resultobj = SWIG_Py_Void();
26455 return resultobj;
26456 fail:
26457 return NULL;
26458 }
26459
26460
26461 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26462 PyObject *resultobj = 0;
26463 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26464 wxGraphicsMatrix *arg2 = 0 ;
26465 void *argp1 = 0 ;
26466 int res1 = 0 ;
26467 void *argp2 = 0 ;
26468 int res2 = 0 ;
26469 PyObject * obj0 = 0 ;
26470 PyObject * obj1 = 0 ;
26471 char * kwnames[] = {
26472 (char *) "self",(char *) "t", NULL
26473 };
26474
26475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
26476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26477 if (!SWIG_IsOK(res1)) {
26478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26479 }
26480 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26481 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26482 if (!SWIG_IsOK(res2)) {
26483 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26484 }
26485 if (!argp2) {
26486 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26487 }
26488 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26489 {
26490 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
26491 if (PyErr_Occurred()) SWIG_fail;
26492 }
26493 resultobj = SWIG_Py_Void();
26494 return resultobj;
26495 fail:
26496 return NULL;
26497 }
26498
26499
26500 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26501 PyObject *resultobj = 0;
26502 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26503 wxDouble arg2 = (wxDouble) 1.0 ;
26504 wxDouble arg3 = (wxDouble) 0.0 ;
26505 wxDouble arg4 = (wxDouble) 0.0 ;
26506 wxDouble arg5 = (wxDouble) 1.0 ;
26507 wxDouble arg6 = (wxDouble) 0.0 ;
26508 wxDouble arg7 = (wxDouble) 0.0 ;
26509 void *argp1 = 0 ;
26510 int res1 = 0 ;
26511 double val2 ;
26512 int ecode2 = 0 ;
26513 double val3 ;
26514 int ecode3 = 0 ;
26515 double val4 ;
26516 int ecode4 = 0 ;
26517 double val5 ;
26518 int ecode5 = 0 ;
26519 double val6 ;
26520 int ecode6 = 0 ;
26521 double val7 ;
26522 int ecode7 = 0 ;
26523 PyObject * obj0 = 0 ;
26524 PyObject * obj1 = 0 ;
26525 PyObject * obj2 = 0 ;
26526 PyObject * obj3 = 0 ;
26527 PyObject * obj4 = 0 ;
26528 PyObject * obj5 = 0 ;
26529 PyObject * obj6 = 0 ;
26530 char * kwnames[] = {
26531 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
26532 };
26533
26534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26536 if (!SWIG_IsOK(res1)) {
26537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26538 }
26539 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26540 if (obj1) {
26541 ecode2 = SWIG_AsVal_double(obj1, &val2);
26542 if (!SWIG_IsOK(ecode2)) {
26543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
26544 }
26545 arg2 = static_cast< wxDouble >(val2);
26546 }
26547 if (obj2) {
26548 ecode3 = SWIG_AsVal_double(obj2, &val3);
26549 if (!SWIG_IsOK(ecode3)) {
26550 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
26551 }
26552 arg3 = static_cast< wxDouble >(val3);
26553 }
26554 if (obj3) {
26555 ecode4 = SWIG_AsVal_double(obj3, &val4);
26556 if (!SWIG_IsOK(ecode4)) {
26557 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
26558 }
26559 arg4 = static_cast< wxDouble >(val4);
26560 }
26561 if (obj4) {
26562 ecode5 = SWIG_AsVal_double(obj4, &val5);
26563 if (!SWIG_IsOK(ecode5)) {
26564 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
26565 }
26566 arg5 = static_cast< wxDouble >(val5);
26567 }
26568 if (obj5) {
26569 ecode6 = SWIG_AsVal_double(obj5, &val6);
26570 if (!SWIG_IsOK(ecode6)) {
26571 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
26572 }
26573 arg6 = static_cast< wxDouble >(val6);
26574 }
26575 if (obj6) {
26576 ecode7 = SWIG_AsVal_double(obj6, &val7);
26577 if (!SWIG_IsOK(ecode7)) {
26578 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
26579 }
26580 arg7 = static_cast< wxDouble >(val7);
26581 }
26582 {
26583 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
26584 if (PyErr_Occurred()) SWIG_fail;
26585 }
26586 resultobj = SWIG_Py_Void();
26587 return resultobj;
26588 fail:
26589 return NULL;
26590 }
26591
26592
26593 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26594 PyObject *resultobj = 0;
26595 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26596 void *argp1 = 0 ;
26597 int res1 = 0 ;
26598 PyObject *swig_obj[1] ;
26599
26600 if (!args) SWIG_fail;
26601 swig_obj[0] = args;
26602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26603 if (!SWIG_IsOK(res1)) {
26604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26605 }
26606 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26607 {
26608 (arg1)->Invert();
26609 if (PyErr_Occurred()) SWIG_fail;
26610 }
26611 resultobj = SWIG_Py_Void();
26612 return resultobj;
26613 fail:
26614 return NULL;
26615 }
26616
26617
26618 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26619 PyObject *resultobj = 0;
26620 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26621 wxGraphicsMatrix *arg2 = 0 ;
26622 bool result;
26623 void *argp1 = 0 ;
26624 int res1 = 0 ;
26625 void *argp2 = 0 ;
26626 int res2 = 0 ;
26627 PyObject * obj0 = 0 ;
26628 PyObject * obj1 = 0 ;
26629 char * kwnames[] = {
26630 (char *) "self",(char *) "t", NULL
26631 };
26632
26633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
26634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26635 if (!SWIG_IsOK(res1)) {
26636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26637 }
26638 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26639 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26640 if (!SWIG_IsOK(res2)) {
26641 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26642 }
26643 if (!argp2) {
26644 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26645 }
26646 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26647 {
26648 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
26649 if (PyErr_Occurred()) SWIG_fail;
26650 }
26651 {
26652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26653 }
26654 return resultobj;
26655 fail:
26656 return NULL;
26657 }
26658
26659
26660 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26661 PyObject *resultobj = 0;
26662 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26663 bool result;
26664 void *argp1 = 0 ;
26665 int res1 = 0 ;
26666 PyObject *swig_obj[1] ;
26667
26668 if (!args) SWIG_fail;
26669 swig_obj[0] = args;
26670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26671 if (!SWIG_IsOK(res1)) {
26672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26673 }
26674 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26675 {
26676 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
26677 if (PyErr_Occurred()) SWIG_fail;
26678 }
26679 {
26680 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26681 }
26682 return resultobj;
26683 fail:
26684 return NULL;
26685 }
26686
26687
26688 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26689 PyObject *resultobj = 0;
26690 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26691 wxDouble arg2 ;
26692 wxDouble arg3 ;
26693 void *argp1 = 0 ;
26694 int res1 = 0 ;
26695 double val2 ;
26696 int ecode2 = 0 ;
26697 double val3 ;
26698 int ecode3 = 0 ;
26699 PyObject * obj0 = 0 ;
26700 PyObject * obj1 = 0 ;
26701 PyObject * obj2 = 0 ;
26702 char * kwnames[] = {
26703 (char *) "self",(char *) "dx",(char *) "dy", NULL
26704 };
26705
26706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26708 if (!SWIG_IsOK(res1)) {
26709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26710 }
26711 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26712 ecode2 = SWIG_AsVal_double(obj1, &val2);
26713 if (!SWIG_IsOK(ecode2)) {
26714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
26715 }
26716 arg2 = static_cast< wxDouble >(val2);
26717 ecode3 = SWIG_AsVal_double(obj2, &val3);
26718 if (!SWIG_IsOK(ecode3)) {
26719 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
26720 }
26721 arg3 = static_cast< wxDouble >(val3);
26722 {
26723 (arg1)->Translate(arg2,arg3);
26724 if (PyErr_Occurred()) SWIG_fail;
26725 }
26726 resultobj = SWIG_Py_Void();
26727 return resultobj;
26728 fail:
26729 return NULL;
26730 }
26731
26732
26733 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26734 PyObject *resultobj = 0;
26735 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26736 wxDouble arg2 ;
26737 wxDouble arg3 ;
26738 void *argp1 = 0 ;
26739 int res1 = 0 ;
26740 double val2 ;
26741 int ecode2 = 0 ;
26742 double val3 ;
26743 int ecode3 = 0 ;
26744 PyObject * obj0 = 0 ;
26745 PyObject * obj1 = 0 ;
26746 PyObject * obj2 = 0 ;
26747 char * kwnames[] = {
26748 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26749 };
26750
26751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26753 if (!SWIG_IsOK(res1)) {
26754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26755 }
26756 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26757 ecode2 = SWIG_AsVal_double(obj1, &val2);
26758 if (!SWIG_IsOK(ecode2)) {
26759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26760 }
26761 arg2 = static_cast< wxDouble >(val2);
26762 ecode3 = SWIG_AsVal_double(obj2, &val3);
26763 if (!SWIG_IsOK(ecode3)) {
26764 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26765 }
26766 arg3 = static_cast< wxDouble >(val3);
26767 {
26768 (arg1)->Scale(arg2,arg3);
26769 if (PyErr_Occurred()) SWIG_fail;
26770 }
26771 resultobj = SWIG_Py_Void();
26772 return resultobj;
26773 fail:
26774 return NULL;
26775 }
26776
26777
26778 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26779 PyObject *resultobj = 0;
26780 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26781 wxDouble arg2 ;
26782 void *argp1 = 0 ;
26783 int res1 = 0 ;
26784 double val2 ;
26785 int ecode2 = 0 ;
26786 PyObject * obj0 = 0 ;
26787 PyObject * obj1 = 0 ;
26788 char * kwnames[] = {
26789 (char *) "self",(char *) "angle", NULL
26790 };
26791
26792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26794 if (!SWIG_IsOK(res1)) {
26795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26796 }
26797 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26798 ecode2 = SWIG_AsVal_double(obj1, &val2);
26799 if (!SWIG_IsOK(ecode2)) {
26800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26801 }
26802 arg2 = static_cast< wxDouble >(val2);
26803 {
26804 (arg1)->Rotate(arg2);
26805 if (PyErr_Occurred()) SWIG_fail;
26806 }
26807 resultobj = SWIG_Py_Void();
26808 return resultobj;
26809 fail:
26810 return NULL;
26811 }
26812
26813
26814 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26815 PyObject *resultobj = 0;
26816 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26817 wxDouble *arg2 = (wxDouble *) 0 ;
26818 wxDouble *arg3 = (wxDouble *) 0 ;
26819 void *argp1 = 0 ;
26820 int res1 = 0 ;
26821 wxDouble temp2 ;
26822 int res2 = 0 ;
26823 wxDouble temp3 ;
26824 int res3 = 0 ;
26825 PyObject * obj0 = 0 ;
26826 PyObject * obj1 = 0 ;
26827 PyObject * obj2 = 0 ;
26828 char * kwnames[] = {
26829 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26830 };
26831
26832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26834 if (!SWIG_IsOK(res1)) {
26835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26836 }
26837 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26838 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26839 double val;
26840 int ecode = SWIG_AsVal_double(obj1, &val);
26841 if (!SWIG_IsOK(ecode)) {
26842 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26843 }
26844 temp2 = static_cast< wxDouble >(val);
26845 arg2 = &temp2;
26846 res2 = SWIG_AddTmpMask(ecode);
26847 }
26848 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26849 double val;
26850 int ecode = SWIG_AsVal_double(obj2, &val);
26851 if (!SWIG_IsOK(ecode)) {
26852 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26853 }
26854 temp3 = static_cast< wxDouble >(val);
26855 arg3 = &temp3;
26856 res3 = SWIG_AddTmpMask(ecode);
26857 }
26858 {
26859 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
26860 if (PyErr_Occurred()) SWIG_fail;
26861 }
26862 resultobj = SWIG_Py_Void();
26863 if (SWIG_IsTmpObj(res2)) {
26864 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26865 } else {
26866 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26867 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26868 }
26869 if (SWIG_IsTmpObj(res3)) {
26870 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26871 } else {
26872 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26873 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26874 }
26875 return resultobj;
26876 fail:
26877 return NULL;
26878 }
26879
26880
26881 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26882 PyObject *resultobj = 0;
26883 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26884 wxDouble *arg2 = (wxDouble *) 0 ;
26885 wxDouble *arg3 = (wxDouble *) 0 ;
26886 void *argp1 = 0 ;
26887 int res1 = 0 ;
26888 wxDouble temp2 ;
26889 int res2 = 0 ;
26890 wxDouble temp3 ;
26891 int res3 = 0 ;
26892 PyObject * obj0 = 0 ;
26893 PyObject * obj1 = 0 ;
26894 PyObject * obj2 = 0 ;
26895 char * kwnames[] = {
26896 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26897 };
26898
26899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26901 if (!SWIG_IsOK(res1)) {
26902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26903 }
26904 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26905 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26906 double val;
26907 int ecode = SWIG_AsVal_double(obj1, &val);
26908 if (!SWIG_IsOK(ecode)) {
26909 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26910 }
26911 temp2 = static_cast< wxDouble >(val);
26912 arg2 = &temp2;
26913 res2 = SWIG_AddTmpMask(ecode);
26914 }
26915 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26916 double val;
26917 int ecode = SWIG_AsVal_double(obj2, &val);
26918 if (!SWIG_IsOK(ecode)) {
26919 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
26920 }
26921 temp3 = static_cast< wxDouble >(val);
26922 arg3 = &temp3;
26923 res3 = SWIG_AddTmpMask(ecode);
26924 }
26925 {
26926 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
26927 if (PyErr_Occurred()) SWIG_fail;
26928 }
26929 resultobj = SWIG_Py_Void();
26930 if (SWIG_IsTmpObj(res2)) {
26931 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26932 } else {
26933 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26934 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26935 }
26936 if (SWIG_IsTmpObj(res3)) {
26937 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26938 } else {
26939 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26940 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26941 }
26942 return resultobj;
26943 fail:
26944 return NULL;
26945 }
26946
26947
26948 SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26949 PyObject *resultobj = 0;
26950 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26951 void *result = 0 ;
26952 void *argp1 = 0 ;
26953 int res1 = 0 ;
26954 PyObject *swig_obj[1] ;
26955
26956 if (!args) SWIG_fail;
26957 swig_obj[0] = args;
26958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26959 if (!SWIG_IsOK(res1)) {
26960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26961 }
26962 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26963 {
26964 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26965 if (PyErr_Occurred()) SWIG_fail;
26966 }
26967 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26968 return resultobj;
26969 fail:
26970 return NULL;
26971 }
26972
26973
26974 SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26975 PyObject *obj;
26976 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26977 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26978 return SWIG_Py_Void();
26979 }
26980
26981 SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26982 return SWIG_Python_InitShadowInstance(args);
26983 }
26984
26985 SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26986 PyObject *resultobj = 0;
26987 wxGraphicsPath *result = 0 ;
26988
26989 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
26990 {
26991 if (!wxPyCheckForApp()) SWIG_fail;
26992 PyThreadState* __tstate = wxPyBeginAllowThreads();
26993 result = (wxGraphicsPath *)new wxGraphicsPath();
26994 wxPyEndAllowThreads(__tstate);
26995 if (PyErr_Occurred()) SWIG_fail;
26996 }
26997 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
26998 return resultobj;
26999 fail:
27000 return NULL;
27001 }
27002
27003
27004 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27005 PyObject *resultobj = 0;
27006 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27007 void *argp1 = 0 ;
27008 int res1 = 0 ;
27009 PyObject *swig_obj[1] ;
27010
27011 if (!args) SWIG_fail;
27012 swig_obj[0] = args;
27013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
27014 if (!SWIG_IsOK(res1)) {
27015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27016 }
27017 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27018 {
27019 delete arg1;
27020
27021 if (PyErr_Occurred()) SWIG_fail;
27022 }
27023 resultobj = SWIG_Py_Void();
27024 return resultobj;
27025 fail:
27026 return NULL;
27027 }
27028
27029
27030 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27031 PyObject *resultobj = 0;
27032 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27033 wxDouble arg2 ;
27034 wxDouble arg3 ;
27035 void *argp1 = 0 ;
27036 int res1 = 0 ;
27037 double val2 ;
27038 int ecode2 = 0 ;
27039 double val3 ;
27040 int ecode3 = 0 ;
27041
27042 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
27043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27044 if (!SWIG_IsOK(res1)) {
27045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27046 }
27047 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27048 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27049 if (!SWIG_IsOK(ecode2)) {
27050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27051 }
27052 arg2 = static_cast< wxDouble >(val2);
27053 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27054 if (!SWIG_IsOK(ecode3)) {
27055 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27056 }
27057 arg3 = static_cast< wxDouble >(val3);
27058 {
27059 (arg1)->MoveToPoint(arg2,arg3);
27060 if (PyErr_Occurred()) SWIG_fail;
27061 }
27062 resultobj = SWIG_Py_Void();
27063 return resultobj;
27064 fail:
27065 return NULL;
27066 }
27067
27068
27069 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27070 PyObject *resultobj = 0;
27071 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27072 wxPoint2D *arg2 = 0 ;
27073 void *argp1 = 0 ;
27074 int res1 = 0 ;
27075 wxPoint2D temp2 ;
27076
27077 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27079 if (!SWIG_IsOK(res1)) {
27080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27081 }
27082 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27083 {
27084 arg2 = &temp2;
27085 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27086 }
27087 {
27088 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
27089 if (PyErr_Occurred()) SWIG_fail;
27090 }
27091 resultobj = SWIG_Py_Void();
27092 return resultobj;
27093 fail:
27094 return NULL;
27095 }
27096
27097
27098 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
27099 int argc;
27100 PyObject *argv[4];
27101
27102 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
27103 --argc;
27104 if (argc == 2) {
27105 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
27106 }
27107 if (argc == 3) {
27108 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
27109 }
27110
27111 fail:
27112 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
27113 return NULL;
27114 }
27115
27116
27117 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27118 PyObject *resultobj = 0;
27119 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27120 wxDouble arg2 ;
27121 wxDouble arg3 ;
27122 void *argp1 = 0 ;
27123 int res1 = 0 ;
27124 double val2 ;
27125 int ecode2 = 0 ;
27126 double val3 ;
27127 int ecode3 = 0 ;
27128
27129 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
27130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27131 if (!SWIG_IsOK(res1)) {
27132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27133 }
27134 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27135 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27136 if (!SWIG_IsOK(ecode2)) {
27137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27138 }
27139 arg2 = static_cast< wxDouble >(val2);
27140 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27141 if (!SWIG_IsOK(ecode3)) {
27142 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27143 }
27144 arg3 = static_cast< wxDouble >(val3);
27145 {
27146 (arg1)->AddLineToPoint(arg2,arg3);
27147 if (PyErr_Occurred()) SWIG_fail;
27148 }
27149 resultobj = SWIG_Py_Void();
27150 return resultobj;
27151 fail:
27152 return NULL;
27153 }
27154
27155
27156 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27157 PyObject *resultobj = 0;
27158 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27159 wxPoint2D *arg2 = 0 ;
27160 void *argp1 = 0 ;
27161 int res1 = 0 ;
27162 wxPoint2D temp2 ;
27163
27164 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27166 if (!SWIG_IsOK(res1)) {
27167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27168 }
27169 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27170 {
27171 arg2 = &temp2;
27172 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27173 }
27174 {
27175 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
27176 if (PyErr_Occurred()) SWIG_fail;
27177 }
27178 resultobj = SWIG_Py_Void();
27179 return resultobj;
27180 fail:
27181 return NULL;
27182 }
27183
27184
27185 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
27186 int argc;
27187 PyObject *argv[4];
27188
27189 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
27190 --argc;
27191 if (argc == 2) {
27192 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
27193 }
27194 if (argc == 3) {
27195 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
27196 }
27197
27198 fail:
27199 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
27200 return NULL;
27201 }
27202
27203
27204 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27205 PyObject *resultobj = 0;
27206 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27207 wxDouble arg2 ;
27208 wxDouble arg3 ;
27209 wxDouble arg4 ;
27210 wxDouble arg5 ;
27211 wxDouble arg6 ;
27212 wxDouble arg7 ;
27213 void *argp1 = 0 ;
27214 int res1 = 0 ;
27215 double val2 ;
27216 int ecode2 = 0 ;
27217 double val3 ;
27218 int ecode3 = 0 ;
27219 double val4 ;
27220 int ecode4 = 0 ;
27221 double val5 ;
27222 int ecode5 = 0 ;
27223 double val6 ;
27224 int ecode6 = 0 ;
27225 double val7 ;
27226 int ecode7 = 0 ;
27227
27228 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
27229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27230 if (!SWIG_IsOK(res1)) {
27231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27232 }
27233 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27234 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27235 if (!SWIG_IsOK(ecode2)) {
27236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27237 }
27238 arg2 = static_cast< wxDouble >(val2);
27239 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27240 if (!SWIG_IsOK(ecode3)) {
27241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27242 }
27243 arg3 = static_cast< wxDouble >(val3);
27244 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27245 if (!SWIG_IsOK(ecode4)) {
27246 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27247 }
27248 arg4 = static_cast< wxDouble >(val4);
27249 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27250 if (!SWIG_IsOK(ecode5)) {
27251 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27252 }
27253 arg5 = static_cast< wxDouble >(val5);
27254 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
27255 if (!SWIG_IsOK(ecode6)) {
27256 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27257 }
27258 arg6 = static_cast< wxDouble >(val6);
27259 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
27260 if (!SWIG_IsOK(ecode7)) {
27261 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
27262 }
27263 arg7 = static_cast< wxDouble >(val7);
27264 {
27265 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
27266 if (PyErr_Occurred()) SWIG_fail;
27267 }
27268 resultobj = SWIG_Py_Void();
27269 return resultobj;
27270 fail:
27271 return NULL;
27272 }
27273
27274
27275 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27276 PyObject *resultobj = 0;
27277 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27278 wxPoint2D *arg2 = 0 ;
27279 wxPoint2D *arg3 = 0 ;
27280 wxPoint2D *arg4 = 0 ;
27281 void *argp1 = 0 ;
27282 int res1 = 0 ;
27283 wxPoint2D temp2 ;
27284 wxPoint2D temp3 ;
27285 wxPoint2D temp4 ;
27286
27287 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
27288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27289 if (!SWIG_IsOK(res1)) {
27290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27291 }
27292 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27293 {
27294 arg2 = &temp2;
27295 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27296 }
27297 {
27298 arg3 = &temp3;
27299 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
27300 }
27301 {
27302 arg4 = &temp4;
27303 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
27304 }
27305 {
27306 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
27307 if (PyErr_Occurred()) SWIG_fail;
27308 }
27309 resultobj = SWIG_Py_Void();
27310 return resultobj;
27311 fail:
27312 return NULL;
27313 }
27314
27315
27316 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
27317 int argc;
27318 PyObject *argv[8];
27319
27320 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
27321 --argc;
27322 if (argc == 4) {
27323 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
27324 }
27325 if (argc == 7) {
27326 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
27327 }
27328
27329 fail:
27330 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
27331 return NULL;
27332 }
27333
27334
27335 SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27336 PyObject *resultobj = 0;
27337 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27338 wxGraphicsPath *arg2 = 0 ;
27339 void *argp1 = 0 ;
27340 int res1 = 0 ;
27341 void *argp2 = 0 ;
27342 int res2 = 0 ;
27343 PyObject * obj0 = 0 ;
27344 PyObject * obj1 = 0 ;
27345 char * kwnames[] = {
27346 (char *) "self",(char *) "path", NULL
27347 };
27348
27349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
27350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27351 if (!SWIG_IsOK(res1)) {
27352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27353 }
27354 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27355 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
27356 if (!SWIG_IsOK(res2)) {
27357 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
27358 }
27359 if (!argp2) {
27360 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
27361 }
27362 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
27363 {
27364 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
27365 if (PyErr_Occurred()) SWIG_fail;
27366 }
27367 resultobj = SWIG_Py_Void();
27368 return resultobj;
27369 fail:
27370 return NULL;
27371 }
27372
27373
27374 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27375 PyObject *resultobj = 0;
27376 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27377 void *argp1 = 0 ;
27378 int res1 = 0 ;
27379 PyObject *swig_obj[1] ;
27380
27381 if (!args) SWIG_fail;
27382 swig_obj[0] = args;
27383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27384 if (!SWIG_IsOK(res1)) {
27385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27386 }
27387 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27388 {
27389 (arg1)->CloseSubpath();
27390 if (PyErr_Occurred()) SWIG_fail;
27391 }
27392 resultobj = SWIG_Py_Void();
27393 return resultobj;
27394 fail:
27395 return NULL;
27396 }
27397
27398
27399 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27400 PyObject *resultobj = 0;
27401 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27402 wxPoint2D result;
27403 void *argp1 = 0 ;
27404 int res1 = 0 ;
27405 PyObject *swig_obj[1] ;
27406
27407 if (!args) SWIG_fail;
27408 swig_obj[0] = args;
27409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27410 if (!SWIG_IsOK(res1)) {
27411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27412 }
27413 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27414 {
27415 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
27416 if (PyErr_Occurred()) SWIG_fail;
27417 }
27418 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
27419 return resultobj;
27420 fail:
27421 return NULL;
27422 }
27423
27424
27425 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27426 PyObject *resultobj = 0;
27427 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27428 wxDouble arg2 ;
27429 wxDouble arg3 ;
27430 wxDouble arg4 ;
27431 wxDouble arg5 ;
27432 wxDouble arg6 ;
27433 bool arg7 ;
27434 void *argp1 = 0 ;
27435 int res1 = 0 ;
27436 double val2 ;
27437 int ecode2 = 0 ;
27438 double val3 ;
27439 int ecode3 = 0 ;
27440 double val4 ;
27441 int ecode4 = 0 ;
27442 double val5 ;
27443 int ecode5 = 0 ;
27444 double val6 ;
27445 int ecode6 = 0 ;
27446 bool val7 ;
27447 int ecode7 = 0 ;
27448
27449 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
27450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27451 if (!SWIG_IsOK(res1)) {
27452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27453 }
27454 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27455 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27456 if (!SWIG_IsOK(ecode2)) {
27457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
27458 }
27459 arg2 = static_cast< wxDouble >(val2);
27460 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27461 if (!SWIG_IsOK(ecode3)) {
27462 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
27463 }
27464 arg3 = static_cast< wxDouble >(val3);
27465 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27466 if (!SWIG_IsOK(ecode4)) {
27467 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27468 }
27469 arg4 = static_cast< wxDouble >(val4);
27470 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27471 if (!SWIG_IsOK(ecode5)) {
27472 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27473 }
27474 arg5 = static_cast< wxDouble >(val5);
27475 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
27476 if (!SWIG_IsOK(ecode6)) {
27477 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
27478 }
27479 arg6 = static_cast< wxDouble >(val6);
27480 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
27481 if (!SWIG_IsOK(ecode7)) {
27482 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
27483 }
27484 arg7 = static_cast< bool >(val7);
27485 {
27486 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
27487 if (PyErr_Occurred()) SWIG_fail;
27488 }
27489 resultobj = SWIG_Py_Void();
27490 return resultobj;
27491 fail:
27492 return NULL;
27493 }
27494
27495
27496 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27497 PyObject *resultobj = 0;
27498 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27499 wxPoint2D *arg2 = 0 ;
27500 wxDouble arg3 ;
27501 wxDouble arg4 ;
27502 wxDouble arg5 ;
27503 bool arg6 ;
27504 void *argp1 = 0 ;
27505 int res1 = 0 ;
27506 wxPoint2D temp2 ;
27507 double val3 ;
27508 int ecode3 = 0 ;
27509 double val4 ;
27510 int ecode4 = 0 ;
27511 double val5 ;
27512 int ecode5 = 0 ;
27513 bool val6 ;
27514 int ecode6 = 0 ;
27515
27516 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
27517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27518 if (!SWIG_IsOK(res1)) {
27519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27520 }
27521 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27522 {
27523 arg2 = &temp2;
27524 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27525 }
27526 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27527 if (!SWIG_IsOK(ecode3)) {
27528 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
27529 }
27530 arg3 = static_cast< wxDouble >(val3);
27531 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27532 if (!SWIG_IsOK(ecode4)) {
27533 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27534 }
27535 arg4 = static_cast< wxDouble >(val4);
27536 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27537 if (!SWIG_IsOK(ecode5)) {
27538 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27539 }
27540 arg5 = static_cast< wxDouble >(val5);
27541 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
27542 if (!SWIG_IsOK(ecode6)) {
27543 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
27544 }
27545 arg6 = static_cast< bool >(val6);
27546 {
27547 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
27548 if (PyErr_Occurred()) SWIG_fail;
27549 }
27550 resultobj = SWIG_Py_Void();
27551 return resultobj;
27552 fail:
27553 return NULL;
27554 }
27555
27556
27557 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
27558 int argc;
27559 PyObject *argv[8];
27560
27561 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
27562 --argc;
27563 if (argc == 6) {
27564 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
27565 }
27566 if (argc == 7) {
27567 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
27568 }
27569
27570 fail:
27571 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
27572 return NULL;
27573 }
27574
27575
27576 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27577 PyObject *resultobj = 0;
27578 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27579 wxDouble arg2 ;
27580 wxDouble arg3 ;
27581 wxDouble arg4 ;
27582 wxDouble arg5 ;
27583 void *argp1 = 0 ;
27584 int res1 = 0 ;
27585 double val2 ;
27586 int ecode2 = 0 ;
27587 double val3 ;
27588 int ecode3 = 0 ;
27589 double val4 ;
27590 int ecode4 = 0 ;
27591 double val5 ;
27592 int ecode5 = 0 ;
27593 PyObject * obj0 = 0 ;
27594 PyObject * obj1 = 0 ;
27595 PyObject * obj2 = 0 ;
27596 PyObject * obj3 = 0 ;
27597 PyObject * obj4 = 0 ;
27598 char * kwnames[] = {
27599 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
27600 };
27601
27602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27604 if (!SWIG_IsOK(res1)) {
27605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27606 }
27607 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27608 ecode2 = SWIG_AsVal_double(obj1, &val2);
27609 if (!SWIG_IsOK(ecode2)) {
27610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27611 }
27612 arg2 = static_cast< wxDouble >(val2);
27613 ecode3 = SWIG_AsVal_double(obj2, &val3);
27614 if (!SWIG_IsOK(ecode3)) {
27615 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27616 }
27617 arg3 = static_cast< wxDouble >(val3);
27618 ecode4 = SWIG_AsVal_double(obj3, &val4);
27619 if (!SWIG_IsOK(ecode4)) {
27620 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27621 }
27622 arg4 = static_cast< wxDouble >(val4);
27623 ecode5 = SWIG_AsVal_double(obj4, &val5);
27624 if (!SWIG_IsOK(ecode5)) {
27625 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27626 }
27627 arg5 = static_cast< wxDouble >(val5);
27628 {
27629 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
27630 if (PyErr_Occurred()) SWIG_fail;
27631 }
27632 resultobj = SWIG_Py_Void();
27633 return resultobj;
27634 fail:
27635 return NULL;
27636 }
27637
27638
27639 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27640 PyObject *resultobj = 0;
27641 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27642 wxDouble arg2 ;
27643 wxDouble arg3 ;
27644 wxDouble arg4 ;
27645 wxDouble arg5 ;
27646 void *argp1 = 0 ;
27647 int res1 = 0 ;
27648 double val2 ;
27649 int ecode2 = 0 ;
27650 double val3 ;
27651 int ecode3 = 0 ;
27652 double val4 ;
27653 int ecode4 = 0 ;
27654 double val5 ;
27655 int ecode5 = 0 ;
27656 PyObject * obj0 = 0 ;
27657 PyObject * obj1 = 0 ;
27658 PyObject * obj2 = 0 ;
27659 PyObject * obj3 = 0 ;
27660 PyObject * obj4 = 0 ;
27661 char * kwnames[] = {
27662 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27663 };
27664
27665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27667 if (!SWIG_IsOK(res1)) {
27668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27669 }
27670 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27671 ecode2 = SWIG_AsVal_double(obj1, &val2);
27672 if (!SWIG_IsOK(ecode2)) {
27673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27674 }
27675 arg2 = static_cast< wxDouble >(val2);
27676 ecode3 = SWIG_AsVal_double(obj2, &val3);
27677 if (!SWIG_IsOK(ecode3)) {
27678 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27679 }
27680 arg3 = static_cast< wxDouble >(val3);
27681 ecode4 = SWIG_AsVal_double(obj3, &val4);
27682 if (!SWIG_IsOK(ecode4)) {
27683 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27684 }
27685 arg4 = static_cast< wxDouble >(val4);
27686 ecode5 = SWIG_AsVal_double(obj4, &val5);
27687 if (!SWIG_IsOK(ecode5)) {
27688 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27689 }
27690 arg5 = static_cast< wxDouble >(val5);
27691 {
27692 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
27693 if (PyErr_Occurred()) SWIG_fail;
27694 }
27695 resultobj = SWIG_Py_Void();
27696 return resultobj;
27697 fail:
27698 return NULL;
27699 }
27700
27701
27702 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27703 PyObject *resultobj = 0;
27704 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27705 wxDouble arg2 ;
27706 wxDouble arg3 ;
27707 wxDouble arg4 ;
27708 void *argp1 = 0 ;
27709 int res1 = 0 ;
27710 double val2 ;
27711 int ecode2 = 0 ;
27712 double val3 ;
27713 int ecode3 = 0 ;
27714 double val4 ;
27715 int ecode4 = 0 ;
27716 PyObject * obj0 = 0 ;
27717 PyObject * obj1 = 0 ;
27718 PyObject * obj2 = 0 ;
27719 PyObject * obj3 = 0 ;
27720 char * kwnames[] = {
27721 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
27722 };
27723
27724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27726 if (!SWIG_IsOK(res1)) {
27727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27728 }
27729 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27730 ecode2 = SWIG_AsVal_double(obj1, &val2);
27731 if (!SWIG_IsOK(ecode2)) {
27732 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
27733 }
27734 arg2 = static_cast< wxDouble >(val2);
27735 ecode3 = SWIG_AsVal_double(obj2, &val3);
27736 if (!SWIG_IsOK(ecode3)) {
27737 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
27738 }
27739 arg3 = static_cast< wxDouble >(val3);
27740 ecode4 = SWIG_AsVal_double(obj3, &val4);
27741 if (!SWIG_IsOK(ecode4)) {
27742 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
27743 }
27744 arg4 = static_cast< wxDouble >(val4);
27745 {
27746 (arg1)->AddCircle(arg2,arg3,arg4);
27747 if (PyErr_Occurred()) SWIG_fail;
27748 }
27749 resultobj = SWIG_Py_Void();
27750 return resultobj;
27751 fail:
27752 return NULL;
27753 }
27754
27755
27756 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27757 PyObject *resultobj = 0;
27758 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27759 wxDouble arg2 ;
27760 wxDouble arg3 ;
27761 wxDouble arg4 ;
27762 wxDouble arg5 ;
27763 wxDouble arg6 ;
27764 void *argp1 = 0 ;
27765 int res1 = 0 ;
27766 double val2 ;
27767 int ecode2 = 0 ;
27768 double val3 ;
27769 int ecode3 = 0 ;
27770 double val4 ;
27771 int ecode4 = 0 ;
27772 double val5 ;
27773 int ecode5 = 0 ;
27774 double val6 ;
27775 int ecode6 = 0 ;
27776 PyObject * obj0 = 0 ;
27777 PyObject * obj1 = 0 ;
27778 PyObject * obj2 = 0 ;
27779 PyObject * obj3 = 0 ;
27780 PyObject * obj4 = 0 ;
27781 PyObject * obj5 = 0 ;
27782 char * kwnames[] = {
27783 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
27784 };
27785
27786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27788 if (!SWIG_IsOK(res1)) {
27789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27790 }
27791 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27792 ecode2 = SWIG_AsVal_double(obj1, &val2);
27793 if (!SWIG_IsOK(ecode2)) {
27794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27795 }
27796 arg2 = static_cast< wxDouble >(val2);
27797 ecode3 = SWIG_AsVal_double(obj2, &val3);
27798 if (!SWIG_IsOK(ecode3)) {
27799 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27800 }
27801 arg3 = static_cast< wxDouble >(val3);
27802 ecode4 = SWIG_AsVal_double(obj3, &val4);
27803 if (!SWIG_IsOK(ecode4)) {
27804 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27805 }
27806 arg4 = static_cast< wxDouble >(val4);
27807 ecode5 = SWIG_AsVal_double(obj4, &val5);
27808 if (!SWIG_IsOK(ecode5)) {
27809 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27810 }
27811 arg5 = static_cast< wxDouble >(val5);
27812 ecode6 = SWIG_AsVal_double(obj5, &val6);
27813 if (!SWIG_IsOK(ecode6)) {
27814 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27815 }
27816 arg6 = static_cast< wxDouble >(val6);
27817 {
27818 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
27819 if (PyErr_Occurred()) SWIG_fail;
27820 }
27821 resultobj = SWIG_Py_Void();
27822 return resultobj;
27823 fail:
27824 return NULL;
27825 }
27826
27827
27828 SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27829 PyObject *resultobj = 0;
27830 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27831 wxDouble arg2 ;
27832 wxDouble arg3 ;
27833 wxDouble arg4 ;
27834 wxDouble arg5 ;
27835 void *argp1 = 0 ;
27836 int res1 = 0 ;
27837 double val2 ;
27838 int ecode2 = 0 ;
27839 double val3 ;
27840 int ecode3 = 0 ;
27841 double val4 ;
27842 int ecode4 = 0 ;
27843 double val5 ;
27844 int ecode5 = 0 ;
27845 PyObject * obj0 = 0 ;
27846 PyObject * obj1 = 0 ;
27847 PyObject * obj2 = 0 ;
27848 PyObject * obj3 = 0 ;
27849 PyObject * obj4 = 0 ;
27850 char * kwnames[] = {
27851 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27852 };
27853
27854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27856 if (!SWIG_IsOK(res1)) {
27857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27858 }
27859 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27860 ecode2 = SWIG_AsVal_double(obj1, &val2);
27861 if (!SWIG_IsOK(ecode2)) {
27862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27863 }
27864 arg2 = static_cast< wxDouble >(val2);
27865 ecode3 = SWIG_AsVal_double(obj2, &val3);
27866 if (!SWIG_IsOK(ecode3)) {
27867 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27868 }
27869 arg3 = static_cast< wxDouble >(val3);
27870 ecode4 = SWIG_AsVal_double(obj3, &val4);
27871 if (!SWIG_IsOK(ecode4)) {
27872 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27873 }
27874 arg4 = static_cast< wxDouble >(val4);
27875 ecode5 = SWIG_AsVal_double(obj4, &val5);
27876 if (!SWIG_IsOK(ecode5)) {
27877 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27878 }
27879 arg5 = static_cast< wxDouble >(val5);
27880 {
27881 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
27882 if (PyErr_Occurred()) SWIG_fail;
27883 }
27884 resultobj = SWIG_Py_Void();
27885 return resultobj;
27886 fail:
27887 return NULL;
27888 }
27889
27890
27891 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27892 PyObject *resultobj = 0;
27893 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27894 wxDouble arg2 ;
27895 wxDouble arg3 ;
27896 wxDouble arg4 ;
27897 wxDouble arg5 ;
27898 wxDouble arg6 ;
27899 void *argp1 = 0 ;
27900 int res1 = 0 ;
27901 double val2 ;
27902 int ecode2 = 0 ;
27903 double val3 ;
27904 int ecode3 = 0 ;
27905 double val4 ;
27906 int ecode4 = 0 ;
27907 double val5 ;
27908 int ecode5 = 0 ;
27909 double val6 ;
27910 int ecode6 = 0 ;
27911 PyObject * obj0 = 0 ;
27912 PyObject * obj1 = 0 ;
27913 PyObject * obj2 = 0 ;
27914 PyObject * obj3 = 0 ;
27915 PyObject * obj4 = 0 ;
27916 PyObject * obj5 = 0 ;
27917 char * kwnames[] = {
27918 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
27919 };
27920
27921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27923 if (!SWIG_IsOK(res1)) {
27924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27925 }
27926 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27927 ecode2 = SWIG_AsVal_double(obj1, &val2);
27928 if (!SWIG_IsOK(ecode2)) {
27929 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27930 }
27931 arg2 = static_cast< wxDouble >(val2);
27932 ecode3 = SWIG_AsVal_double(obj2, &val3);
27933 if (!SWIG_IsOK(ecode3)) {
27934 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27935 }
27936 arg3 = static_cast< wxDouble >(val3);
27937 ecode4 = SWIG_AsVal_double(obj3, &val4);
27938 if (!SWIG_IsOK(ecode4)) {
27939 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27940 }
27941 arg4 = static_cast< wxDouble >(val4);
27942 ecode5 = SWIG_AsVal_double(obj4, &val5);
27943 if (!SWIG_IsOK(ecode5)) {
27944 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27945 }
27946 arg5 = static_cast< wxDouble >(val5);
27947 ecode6 = SWIG_AsVal_double(obj5, &val6);
27948 if (!SWIG_IsOK(ecode6)) {
27949 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27950 }
27951 arg6 = static_cast< wxDouble >(val6);
27952 {
27953 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
27954 if (PyErr_Occurred()) SWIG_fail;
27955 }
27956 resultobj = SWIG_Py_Void();
27957 return resultobj;
27958 fail:
27959 return NULL;
27960 }
27961
27962
27963 SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27964 PyObject *resultobj = 0;
27965 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27966 void *result = 0 ;
27967 void *argp1 = 0 ;
27968 int res1 = 0 ;
27969 PyObject *swig_obj[1] ;
27970
27971 if (!args) SWIG_fail;
27972 swig_obj[0] = args;
27973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27974 if (!SWIG_IsOK(res1)) {
27975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27976 }
27977 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27978 {
27979 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
27980 if (PyErr_Occurred()) SWIG_fail;
27981 }
27982 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
27983 return resultobj;
27984 fail:
27985 return NULL;
27986 }
27987
27988
27989 SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27990 PyObject *resultobj = 0;
27991 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27992 void *arg2 = (void *) 0 ;
27993 void *argp1 = 0 ;
27994 int res1 = 0 ;
27995 int res2 ;
27996 PyObject * obj0 = 0 ;
27997 PyObject * obj1 = 0 ;
27998 char * kwnames[] = {
27999 (char *) "self",(char *) "p", NULL
28000 };
28001
28002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
28003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28004 if (!SWIG_IsOK(res1)) {
28005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28006 }
28007 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28008 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
28009 if (!SWIG_IsOK(res2)) {
28010 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
28011 }
28012 {
28013 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
28014 if (PyErr_Occurred()) SWIG_fail;
28015 }
28016 resultobj = SWIG_Py_Void();
28017 return resultobj;
28018 fail:
28019 return NULL;
28020 }
28021
28022
28023 SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28024 PyObject *resultobj = 0;
28025 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28026 wxGraphicsMatrix *arg2 = 0 ;
28027 void *argp1 = 0 ;
28028 int res1 = 0 ;
28029 void *argp2 = 0 ;
28030 int res2 = 0 ;
28031 PyObject * obj0 = 0 ;
28032 PyObject * obj1 = 0 ;
28033 char * kwnames[] = {
28034 (char *) "self",(char *) "matrix", NULL
28035 };
28036
28037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
28038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28039 if (!SWIG_IsOK(res1)) {
28040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
28041 }
28042 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28043 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28044 if (!SWIG_IsOK(res2)) {
28045 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28046 }
28047 if (!argp2) {
28048 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28049 }
28050 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28051 {
28052 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
28053 if (PyErr_Occurred()) SWIG_fail;
28054 }
28055 resultobj = SWIG_Py_Void();
28056 return resultobj;
28057 fail:
28058 return NULL;
28059 }
28060
28061
28062 SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28063 PyObject *resultobj = 0;
28064 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28065 wxRect2DDouble result;
28066 void *argp1 = 0 ;
28067 int res1 = 0 ;
28068 PyObject *swig_obj[1] ;
28069
28070 if (!args) SWIG_fail;
28071 swig_obj[0] = args;
28072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28073 if (!SWIG_IsOK(res1)) {
28074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28075 }
28076 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28077 {
28078 result = ((wxGraphicsPath const *)arg1)->GetBox();
28079 if (PyErr_Occurred()) SWIG_fail;
28080 }
28081 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
28082 return resultobj;
28083 fail:
28084 return NULL;
28085 }
28086
28087
28088 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28089 PyObject *resultobj = 0;
28090 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28091 wxDouble arg2 ;
28092 wxDouble arg3 ;
28093 int arg4 = (int) wxODDEVEN_RULE ;
28094 bool result;
28095 void *argp1 = 0 ;
28096 int res1 = 0 ;
28097 double val2 ;
28098 int ecode2 = 0 ;
28099 double val3 ;
28100 int ecode3 = 0 ;
28101 int val4 ;
28102 int ecode4 = 0 ;
28103
28104 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
28105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28106 if (!SWIG_IsOK(res1)) {
28107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28108 }
28109 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28110 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
28111 if (!SWIG_IsOK(ecode2)) {
28112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
28113 }
28114 arg2 = static_cast< wxDouble >(val2);
28115 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28116 if (!SWIG_IsOK(ecode3)) {
28117 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
28118 }
28119 arg3 = static_cast< wxDouble >(val3);
28120 if (swig_obj[3]) {
28121 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
28122 if (!SWIG_IsOK(ecode4)) {
28123 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
28124 }
28125 arg4 = static_cast< int >(val4);
28126 }
28127 {
28128 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
28129 if (PyErr_Occurred()) SWIG_fail;
28130 }
28131 {
28132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28133 }
28134 return resultobj;
28135 fail:
28136 return NULL;
28137 }
28138
28139
28140 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28141 PyObject *resultobj = 0;
28142 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28143 wxPoint2DDouble *arg2 = 0 ;
28144 int arg3 = (int) wxODDEVEN_RULE ;
28145 bool result;
28146 void *argp1 = 0 ;
28147 int res1 = 0 ;
28148 void *argp2 = 0 ;
28149 int res2 = 0 ;
28150 int val3 ;
28151 int ecode3 = 0 ;
28152
28153 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28155 if (!SWIG_IsOK(res1)) {
28156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28157 }
28158 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28159 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
28160 if (!SWIG_IsOK(res2)) {
28161 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
28162 }
28163 if (!argp2) {
28164 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
28165 }
28166 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
28167 if (swig_obj[2]) {
28168 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
28169 if (!SWIG_IsOK(ecode3)) {
28170 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
28171 }
28172 arg3 = static_cast< int >(val3);
28173 }
28174 {
28175 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
28176 if (PyErr_Occurred()) SWIG_fail;
28177 }
28178 {
28179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28180 }
28181 return resultobj;
28182 fail:
28183 return NULL;
28184 }
28185
28186
28187 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
28188 int argc;
28189 PyObject *argv[5];
28190
28191 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
28192 --argc;
28193 if ((argc >= 2) && (argc <= 3)) {
28194 int _v = 0;
28195 {
28196 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
28197 _v = SWIG_CheckState(res);
28198 }
28199 if (!_v) goto check_1;
28200 if (argc > 2) {
28201 {
28202 {
28203 int res = SWIG_AsVal_int(argv[2], NULL);
28204 _v = SWIG_CheckState(res);
28205 }
28206 }
28207 if (!_v) goto check_1;
28208 }
28209 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
28210 }
28211 check_1:
28212
28213 if ((argc >= 3) && (argc <= 4)) {
28214 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
28215 }
28216
28217 fail:
28218 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
28219 return NULL;
28220 }
28221
28222
28223 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28224 PyObject *obj;
28225 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28226 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
28227 return SWIG_Py_Void();
28228 }
28229
28230 SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28231 return SWIG_Python_InitShadowInstance(args);
28232 }
28233
28234 SWIGINTERN int NullGraphicsPen_set(PyObject *) {
28235 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
28236 return 1;
28237 }
28238
28239
28240 SWIGINTERN PyObject *NullGraphicsPen_get(void) {
28241 PyObject *pyobj = 0;
28242
28243 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
28244 return pyobj;
28245 }
28246
28247
28248 SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
28249 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
28250 return 1;
28251 }
28252
28253
28254 SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
28255 PyObject *pyobj = 0;
28256
28257 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
28258 return pyobj;
28259 }
28260
28261
28262 SWIGINTERN int NullGraphicsFont_set(PyObject *) {
28263 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
28264 return 1;
28265 }
28266
28267
28268 SWIGINTERN PyObject *NullGraphicsFont_get(void) {
28269 PyObject *pyobj = 0;
28270
28271 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
28272 return pyobj;
28273 }
28274
28275
28276 SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
28277 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
28278 return 1;
28279 }
28280
28281
28282 SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
28283 PyObject *pyobj = 0;
28284
28285 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
28286 return pyobj;
28287 }
28288
28289
28290 SWIGINTERN int NullGraphicsPath_set(PyObject *) {
28291 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
28292 return 1;
28293 }
28294
28295
28296 SWIGINTERN PyObject *NullGraphicsPath_get(void) {
28297 PyObject *pyobj = 0;
28298
28299 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
28300 return pyobj;
28301 }
28302
28303
28304 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28305 PyObject *resultobj = 0;
28306 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28307 void *argp1 = 0 ;
28308 int res1 = 0 ;
28309 PyObject *swig_obj[1] ;
28310
28311 if (!args) SWIG_fail;
28312 swig_obj[0] = args;
28313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
28314 if (!SWIG_IsOK(res1)) {
28315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28316 }
28317 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28318 {
28319 delete arg1;
28320
28321 if (PyErr_Occurred()) SWIG_fail;
28322 }
28323 resultobj = SWIG_Py_Void();
28324 return resultobj;
28325 fail:
28326 return NULL;
28327 }
28328
28329
28330 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28331 PyObject *resultobj = 0;
28332 wxWindowDC *arg1 = 0 ;
28333 wxGraphicsContext *result = 0 ;
28334 void *argp1 = 0 ;
28335 int res1 = 0 ;
28336
28337 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
28339 if (!SWIG_IsOK(res1)) {
28340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28341 }
28342 if (!argp1) {
28343 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28344 }
28345 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
28346 {
28347 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
28348 if (PyErr_Occurred()) SWIG_fail;
28349 }
28350 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28351 return resultobj;
28352 fail:
28353 return NULL;
28354 }
28355
28356
28357 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28358 PyObject *resultobj = 0;
28359 wxWindow *arg1 = (wxWindow *) 0 ;
28360 wxGraphicsContext *result = 0 ;
28361 void *argp1 = 0 ;
28362 int res1 = 0 ;
28363
28364 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28366 if (!SWIG_IsOK(res1)) {
28367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
28368 }
28369 arg1 = reinterpret_cast< wxWindow * >(argp1);
28370 {
28371 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
28372 if (PyErr_Occurred()) SWIG_fail;
28373 }
28374 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28375 return resultobj;
28376 fail:
28377 return NULL;
28378 }
28379
28380
28381 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
28382 int argc;
28383 PyObject *argv[2];
28384
28385 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
28386 --argc;
28387 if (argc == 1) {
28388 int _v = 0;
28389 {
28390 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
28391 _v = SWIG_CheckState(res);
28392 }
28393 if (!_v) goto check_1;
28394 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
28395 }
28396 check_1:
28397
28398 if (argc == 1) {
28399 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
28400 }
28401
28402 fail:
28403 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
28404 return NULL;
28405 }
28406
28407
28408 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28409 PyObject *resultobj = 0;
28410 wxGraphicsContext *result = 0 ;
28411
28412 if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail;
28413 {
28414 result = (wxGraphicsContext *)wxGraphicsContext::Create();
28415 if (PyErr_Occurred()) SWIG_fail;
28416 }
28417 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28418 return resultobj;
28419 fail:
28420 return NULL;
28421 }
28422
28423
28424 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28425 PyObject *resultobj = 0;
28426 void *arg1 = (void *) 0 ;
28427 wxGraphicsContext *result = 0 ;
28428 int res1 ;
28429 PyObject * obj0 = 0 ;
28430 char * kwnames[] = {
28431 (char *) "context", NULL
28432 };
28433
28434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
28435 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28436 if (!SWIG_IsOK(res1)) {
28437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
28438 }
28439 {
28440 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
28441 if (PyErr_Occurred()) SWIG_fail;
28442 }
28443 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28444 return resultobj;
28445 fail:
28446 return NULL;
28447 }
28448
28449
28450 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28451 PyObject *resultobj = 0;
28452 void *arg1 = (void *) 0 ;
28453 wxGraphicsContext *result = 0 ;
28454 int res1 ;
28455 PyObject * obj0 = 0 ;
28456 char * kwnames[] = {
28457 (char *) "window", NULL
28458 };
28459
28460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
28461 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28462 if (!SWIG_IsOK(res1)) {
28463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
28464 }
28465 {
28466 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
28467 if (PyErr_Occurred()) SWIG_fail;
28468 }
28469 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28470 return resultobj;
28471 fail:
28472 return NULL;
28473 }
28474
28475
28476 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28477 PyObject *resultobj = 0;
28478 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28479 wxGraphicsPath result;
28480 void *argp1 = 0 ;
28481 int res1 = 0 ;
28482 PyObject *swig_obj[1] ;
28483
28484 if (!args) SWIG_fail;
28485 swig_obj[0] = args;
28486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28487 if (!SWIG_IsOK(res1)) {
28488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28489 }
28490 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28491 {
28492 result = (arg1)->CreatePath();
28493 if (PyErr_Occurred()) SWIG_fail;
28494 }
28495 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
28496 return resultobj;
28497 fail:
28498 return NULL;
28499 }
28500
28501
28502 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28503 PyObject *resultobj = 0;
28504 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28505 wxPen *arg2 = 0 ;
28506 wxGraphicsPen result;
28507 void *argp1 = 0 ;
28508 int res1 = 0 ;
28509 void *argp2 = 0 ;
28510 int res2 = 0 ;
28511 PyObject * obj0 = 0 ;
28512 PyObject * obj1 = 0 ;
28513 char * kwnames[] = {
28514 (char *) "self",(char *) "pen", NULL
28515 };
28516
28517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
28518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28519 if (!SWIG_IsOK(res1)) {
28520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28521 }
28522 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28523 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
28524 if (!SWIG_IsOK(res2)) {
28525 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28526 }
28527 if (!argp2) {
28528 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28529 }
28530 arg2 = reinterpret_cast< wxPen * >(argp2);
28531 {
28532 result = (arg1)->CreatePen((wxPen const &)*arg2);
28533 if (PyErr_Occurred()) SWIG_fail;
28534 }
28535 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
28536 return resultobj;
28537 fail:
28538 return NULL;
28539 }
28540
28541
28542 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28543 PyObject *resultobj = 0;
28544 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28545 wxBrush *arg2 = 0 ;
28546 wxGraphicsBrush result;
28547 void *argp1 = 0 ;
28548 int res1 = 0 ;
28549 void *argp2 = 0 ;
28550 int res2 = 0 ;
28551 PyObject * obj0 = 0 ;
28552 PyObject * obj1 = 0 ;
28553 char * kwnames[] = {
28554 (char *) "self",(char *) "brush", NULL
28555 };
28556
28557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28559 if (!SWIG_IsOK(res1)) {
28560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28561 }
28562 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28563 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28564 if (!SWIG_IsOK(res2)) {
28565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28566 }
28567 if (!argp2) {
28568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28569 }
28570 arg2 = reinterpret_cast< wxBrush * >(argp2);
28571 {
28572 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
28573 if (PyErr_Occurred()) SWIG_fail;
28574 }
28575 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28576 return resultobj;
28577 fail:
28578 return NULL;
28579 }
28580
28581
28582 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28583 PyObject *resultobj = 0;
28584 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28585 wxDouble arg2 ;
28586 wxDouble arg3 ;
28587 wxDouble arg4 ;
28588 wxDouble arg5 ;
28589 wxColour *arg6 = 0 ;
28590 wxColour *arg7 = 0 ;
28591 wxGraphicsBrush result;
28592 void *argp1 = 0 ;
28593 int res1 = 0 ;
28594 double val2 ;
28595 int ecode2 = 0 ;
28596 double val3 ;
28597 int ecode3 = 0 ;
28598 double val4 ;
28599 int ecode4 = 0 ;
28600 double val5 ;
28601 int ecode5 = 0 ;
28602 wxColour temp6 ;
28603 wxColour temp7 ;
28604 PyObject * obj0 = 0 ;
28605 PyObject * obj1 = 0 ;
28606 PyObject * obj2 = 0 ;
28607 PyObject * obj3 = 0 ;
28608 PyObject * obj4 = 0 ;
28609 PyObject * obj5 = 0 ;
28610 PyObject * obj6 = 0 ;
28611 char * kwnames[] = {
28612 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
28613 };
28614
28615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28617 if (!SWIG_IsOK(res1)) {
28618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28619 }
28620 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28621 ecode2 = SWIG_AsVal_double(obj1, &val2);
28622 if (!SWIG_IsOK(ecode2)) {
28623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
28624 }
28625 arg2 = static_cast< wxDouble >(val2);
28626 ecode3 = SWIG_AsVal_double(obj2, &val3);
28627 if (!SWIG_IsOK(ecode3)) {
28628 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
28629 }
28630 arg3 = static_cast< wxDouble >(val3);
28631 ecode4 = SWIG_AsVal_double(obj3, &val4);
28632 if (!SWIG_IsOK(ecode4)) {
28633 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
28634 }
28635 arg4 = static_cast< wxDouble >(val4);
28636 ecode5 = SWIG_AsVal_double(obj4, &val5);
28637 if (!SWIG_IsOK(ecode5)) {
28638 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
28639 }
28640 arg5 = static_cast< wxDouble >(val5);
28641 {
28642 arg6 = &temp6;
28643 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
28644 }
28645 {
28646 arg7 = &temp7;
28647 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28648 }
28649 {
28650 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
28651 if (PyErr_Occurred()) SWIG_fail;
28652 }
28653 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28654 return resultobj;
28655 fail:
28656 return NULL;
28657 }
28658
28659
28660 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28661 PyObject *resultobj = 0;
28662 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28663 wxDouble arg2 ;
28664 wxDouble arg3 ;
28665 wxDouble arg4 ;
28666 wxDouble arg5 ;
28667 wxDouble arg6 ;
28668 wxColour *arg7 = 0 ;
28669 wxColour *arg8 = 0 ;
28670 wxGraphicsBrush result;
28671 void *argp1 = 0 ;
28672 int res1 = 0 ;
28673 double val2 ;
28674 int ecode2 = 0 ;
28675 double val3 ;
28676 int ecode3 = 0 ;
28677 double val4 ;
28678 int ecode4 = 0 ;
28679 double val5 ;
28680 int ecode5 = 0 ;
28681 double val6 ;
28682 int ecode6 = 0 ;
28683 wxColour temp7 ;
28684 wxColour temp8 ;
28685 PyObject * obj0 = 0 ;
28686 PyObject * obj1 = 0 ;
28687 PyObject * obj2 = 0 ;
28688 PyObject * obj3 = 0 ;
28689 PyObject * obj4 = 0 ;
28690 PyObject * obj5 = 0 ;
28691 PyObject * obj6 = 0 ;
28692 PyObject * obj7 = 0 ;
28693 char * kwnames[] = {
28694 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
28695 };
28696
28697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28699 if (!SWIG_IsOK(res1)) {
28700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28701 }
28702 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28703 ecode2 = SWIG_AsVal_double(obj1, &val2);
28704 if (!SWIG_IsOK(ecode2)) {
28705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
28706 }
28707 arg2 = static_cast< wxDouble >(val2);
28708 ecode3 = SWIG_AsVal_double(obj2, &val3);
28709 if (!SWIG_IsOK(ecode3)) {
28710 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
28711 }
28712 arg3 = static_cast< wxDouble >(val3);
28713 ecode4 = SWIG_AsVal_double(obj3, &val4);
28714 if (!SWIG_IsOK(ecode4)) {
28715 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
28716 }
28717 arg4 = static_cast< wxDouble >(val4);
28718 ecode5 = SWIG_AsVal_double(obj4, &val5);
28719 if (!SWIG_IsOK(ecode5)) {
28720 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
28721 }
28722 arg5 = static_cast< wxDouble >(val5);
28723 ecode6 = SWIG_AsVal_double(obj5, &val6);
28724 if (!SWIG_IsOK(ecode6)) {
28725 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
28726 }
28727 arg6 = static_cast< wxDouble >(val6);
28728 {
28729 arg7 = &temp7;
28730 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28731 }
28732 {
28733 arg8 = &temp8;
28734 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
28735 }
28736 {
28737 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
28738 if (PyErr_Occurred()) SWIG_fail;
28739 }
28740 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28741 return resultobj;
28742 fail:
28743 return NULL;
28744 }
28745
28746
28747 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28748 PyObject *resultobj = 0;
28749 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28750 wxFont *arg2 = 0 ;
28751 wxColour const &arg3_defvalue = *wxBLACK ;
28752 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28753 wxGraphicsFont result;
28754 void *argp1 = 0 ;
28755 int res1 = 0 ;
28756 void *argp2 = 0 ;
28757 int res2 = 0 ;
28758 wxColour temp3 ;
28759 PyObject * obj0 = 0 ;
28760 PyObject * obj1 = 0 ;
28761 PyObject * obj2 = 0 ;
28762 char * kwnames[] = {
28763 (char *) "self",(char *) "font",(char *) "col", NULL
28764 };
28765
28766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28768 if (!SWIG_IsOK(res1)) {
28769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28770 }
28771 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28772 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28773 if (!SWIG_IsOK(res2)) {
28774 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28775 }
28776 if (!argp2) {
28777 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28778 }
28779 arg2 = reinterpret_cast< wxFont * >(argp2);
28780 if (obj2) {
28781 {
28782 arg3 = &temp3;
28783 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28784 }
28785 }
28786 {
28787 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
28788 if (PyErr_Occurred()) SWIG_fail;
28789 }
28790 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
28791 return resultobj;
28792 fail:
28793 return NULL;
28794 }
28795
28796
28797 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28798 PyObject *resultobj = 0;
28799 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28800 wxDouble arg2 = (wxDouble) 1.0 ;
28801 wxDouble arg3 = (wxDouble) 0.0 ;
28802 wxDouble arg4 = (wxDouble) 0.0 ;
28803 wxDouble arg5 = (wxDouble) 1.0 ;
28804 wxDouble arg6 = (wxDouble) 0.0 ;
28805 wxDouble arg7 = (wxDouble) 0.0 ;
28806 wxGraphicsMatrix result;
28807 void *argp1 = 0 ;
28808 int res1 = 0 ;
28809 double val2 ;
28810 int ecode2 = 0 ;
28811 double val3 ;
28812 int ecode3 = 0 ;
28813 double val4 ;
28814 int ecode4 = 0 ;
28815 double val5 ;
28816 int ecode5 = 0 ;
28817 double val6 ;
28818 int ecode6 = 0 ;
28819 double val7 ;
28820 int ecode7 = 0 ;
28821 PyObject * obj0 = 0 ;
28822 PyObject * obj1 = 0 ;
28823 PyObject * obj2 = 0 ;
28824 PyObject * obj3 = 0 ;
28825 PyObject * obj4 = 0 ;
28826 PyObject * obj5 = 0 ;
28827 PyObject * obj6 = 0 ;
28828 char * kwnames[] = {
28829 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28830 };
28831
28832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28834 if (!SWIG_IsOK(res1)) {
28835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28836 }
28837 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28838 if (obj1) {
28839 ecode2 = SWIG_AsVal_double(obj1, &val2);
28840 if (!SWIG_IsOK(ecode2)) {
28841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28842 }
28843 arg2 = static_cast< wxDouble >(val2);
28844 }
28845 if (obj2) {
28846 ecode3 = SWIG_AsVal_double(obj2, &val3);
28847 if (!SWIG_IsOK(ecode3)) {
28848 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28849 }
28850 arg3 = static_cast< wxDouble >(val3);
28851 }
28852 if (obj3) {
28853 ecode4 = SWIG_AsVal_double(obj3, &val4);
28854 if (!SWIG_IsOK(ecode4)) {
28855 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28856 }
28857 arg4 = static_cast< wxDouble >(val4);
28858 }
28859 if (obj4) {
28860 ecode5 = SWIG_AsVal_double(obj4, &val5);
28861 if (!SWIG_IsOK(ecode5)) {
28862 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28863 }
28864 arg5 = static_cast< wxDouble >(val5);
28865 }
28866 if (obj5) {
28867 ecode6 = SWIG_AsVal_double(obj5, &val6);
28868 if (!SWIG_IsOK(ecode6)) {
28869 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28870 }
28871 arg6 = static_cast< wxDouble >(val6);
28872 }
28873 if (obj6) {
28874 ecode7 = SWIG_AsVal_double(obj6, &val7);
28875 if (!SWIG_IsOK(ecode7)) {
28876 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28877 }
28878 arg7 = static_cast< wxDouble >(val7);
28879 }
28880 {
28881 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
28882 if (PyErr_Occurred()) SWIG_fail;
28883 }
28884 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28885 return resultobj;
28886 fail:
28887 return NULL;
28888 }
28889
28890
28891 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28892 PyObject *resultobj = 0;
28893 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28894 void *argp1 = 0 ;
28895 int res1 = 0 ;
28896 PyObject *swig_obj[1] ;
28897
28898 if (!args) SWIG_fail;
28899 swig_obj[0] = args;
28900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28901 if (!SWIG_IsOK(res1)) {
28902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28903 }
28904 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28905 {
28906 (arg1)->PushState();
28907 if (PyErr_Occurred()) SWIG_fail;
28908 }
28909 resultobj = SWIG_Py_Void();
28910 return resultobj;
28911 fail:
28912 return NULL;
28913 }
28914
28915
28916 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28917 PyObject *resultobj = 0;
28918 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28919 void *argp1 = 0 ;
28920 int res1 = 0 ;
28921 PyObject *swig_obj[1] ;
28922
28923 if (!args) SWIG_fail;
28924 swig_obj[0] = args;
28925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28926 if (!SWIG_IsOK(res1)) {
28927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28928 }
28929 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28930 {
28931 (arg1)->PopState();
28932 if (PyErr_Occurred()) SWIG_fail;
28933 }
28934 resultobj = SWIG_Py_Void();
28935 return resultobj;
28936 fail:
28937 return NULL;
28938 }
28939
28940
28941 SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28942 PyObject *resultobj = 0;
28943 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28944 wxRegion *arg2 = 0 ;
28945 void *argp1 = 0 ;
28946 int res1 = 0 ;
28947 void *argp2 = 0 ;
28948 int res2 = 0 ;
28949 PyObject * obj0 = 0 ;
28950 PyObject * obj1 = 0 ;
28951 char * kwnames[] = {
28952 (char *) "self",(char *) "region", NULL
28953 };
28954
28955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
28956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28957 if (!SWIG_IsOK(res1)) {
28958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28959 }
28960 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28961 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28962 if (!SWIG_IsOK(res2)) {
28963 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
28964 }
28965 if (!argp2) {
28966 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
28967 }
28968 arg2 = reinterpret_cast< wxRegion * >(argp2);
28969 {
28970 (arg1)->Clip((wxRegion const &)*arg2);
28971 if (PyErr_Occurred()) SWIG_fail;
28972 }
28973 resultobj = SWIG_Py_Void();
28974 return resultobj;
28975 fail:
28976 return NULL;
28977 }
28978
28979
28980 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28981 PyObject *resultobj = 0;
28982 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28983 wxDouble arg2 ;
28984 wxDouble arg3 ;
28985 wxDouble arg4 ;
28986 wxDouble arg5 ;
28987 void *argp1 = 0 ;
28988 int res1 = 0 ;
28989 double val2 ;
28990 int ecode2 = 0 ;
28991 double val3 ;
28992 int ecode3 = 0 ;
28993 double val4 ;
28994 int ecode4 = 0 ;
28995 double val5 ;
28996 int ecode5 = 0 ;
28997 PyObject * obj0 = 0 ;
28998 PyObject * obj1 = 0 ;
28999 PyObject * obj2 = 0 ;
29000 PyObject * obj3 = 0 ;
29001 PyObject * obj4 = 0 ;
29002 char * kwnames[] = {
29003 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29004 };
29005
29006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29008 if (!SWIG_IsOK(res1)) {
29009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29010 }
29011 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29012 ecode2 = SWIG_AsVal_double(obj1, &val2);
29013 if (!SWIG_IsOK(ecode2)) {
29014 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
29015 }
29016 arg2 = static_cast< wxDouble >(val2);
29017 ecode3 = SWIG_AsVal_double(obj2, &val3);
29018 if (!SWIG_IsOK(ecode3)) {
29019 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
29020 }
29021 arg3 = static_cast< wxDouble >(val3);
29022 ecode4 = SWIG_AsVal_double(obj3, &val4);
29023 if (!SWIG_IsOK(ecode4)) {
29024 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
29025 }
29026 arg4 = static_cast< wxDouble >(val4);
29027 ecode5 = SWIG_AsVal_double(obj4, &val5);
29028 if (!SWIG_IsOK(ecode5)) {
29029 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
29030 }
29031 arg5 = static_cast< wxDouble >(val5);
29032 {
29033 (arg1)->Clip(arg2,arg3,arg4,arg5);
29034 if (PyErr_Occurred()) SWIG_fail;
29035 }
29036 resultobj = SWIG_Py_Void();
29037 return resultobj;
29038 fail:
29039 return NULL;
29040 }
29041
29042
29043 SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29044 PyObject *resultobj = 0;
29045 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29046 void *argp1 = 0 ;
29047 int res1 = 0 ;
29048 PyObject *swig_obj[1] ;
29049
29050 if (!args) SWIG_fail;
29051 swig_obj[0] = args;
29052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29053 if (!SWIG_IsOK(res1)) {
29054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29055 }
29056 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29057 {
29058 (arg1)->ResetClip();
29059 if (PyErr_Occurred()) SWIG_fail;
29060 }
29061 resultobj = SWIG_Py_Void();
29062 return resultobj;
29063 fail:
29064 return NULL;
29065 }
29066
29067
29068 SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29069 PyObject *resultobj = 0;
29070 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29071 void *result = 0 ;
29072 void *argp1 = 0 ;
29073 int res1 = 0 ;
29074 PyObject *swig_obj[1] ;
29075
29076 if (!args) SWIG_fail;
29077 swig_obj[0] = args;
29078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29079 if (!SWIG_IsOK(res1)) {
29080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29081 }
29082 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29083 {
29084 result = (void *)(arg1)->GetNativeContext();
29085 if (PyErr_Occurred()) SWIG_fail;
29086 }
29087 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
29088 return resultobj;
29089 fail:
29090 return NULL;
29091 }
29092
29093
29094 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29095 PyObject *resultobj = 0;
29096 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29097 wxDouble arg2 ;
29098 wxDouble arg3 ;
29099 void *argp1 = 0 ;
29100 int res1 = 0 ;
29101 double val2 ;
29102 int ecode2 = 0 ;
29103 double val3 ;
29104 int ecode3 = 0 ;
29105 PyObject * obj0 = 0 ;
29106 PyObject * obj1 = 0 ;
29107 PyObject * obj2 = 0 ;
29108 char * kwnames[] = {
29109 (char *) "self",(char *) "dx",(char *) "dy", NULL
29110 };
29111
29112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29114 if (!SWIG_IsOK(res1)) {
29115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29116 }
29117 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29118 ecode2 = SWIG_AsVal_double(obj1, &val2);
29119 if (!SWIG_IsOK(ecode2)) {
29120 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
29121 }
29122 arg2 = static_cast< wxDouble >(val2);
29123 ecode3 = SWIG_AsVal_double(obj2, &val3);
29124 if (!SWIG_IsOK(ecode3)) {
29125 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
29126 }
29127 arg3 = static_cast< wxDouble >(val3);
29128 {
29129 (arg1)->Translate(arg2,arg3);
29130 if (PyErr_Occurred()) SWIG_fail;
29131 }
29132 resultobj = SWIG_Py_Void();
29133 return resultobj;
29134 fail:
29135 return NULL;
29136 }
29137
29138
29139 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29140 PyObject *resultobj = 0;
29141 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29142 wxDouble arg2 ;
29143 wxDouble arg3 ;
29144 void *argp1 = 0 ;
29145 int res1 = 0 ;
29146 double val2 ;
29147 int ecode2 = 0 ;
29148 double val3 ;
29149 int ecode3 = 0 ;
29150 PyObject * obj0 = 0 ;
29151 PyObject * obj1 = 0 ;
29152 PyObject * obj2 = 0 ;
29153 char * kwnames[] = {
29154 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
29155 };
29156
29157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29159 if (!SWIG_IsOK(res1)) {
29160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29161 }
29162 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29163 ecode2 = SWIG_AsVal_double(obj1, &val2);
29164 if (!SWIG_IsOK(ecode2)) {
29165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
29166 }
29167 arg2 = static_cast< wxDouble >(val2);
29168 ecode3 = SWIG_AsVal_double(obj2, &val3);
29169 if (!SWIG_IsOK(ecode3)) {
29170 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
29171 }
29172 arg3 = static_cast< wxDouble >(val3);
29173 {
29174 (arg1)->Scale(arg2,arg3);
29175 if (PyErr_Occurred()) SWIG_fail;
29176 }
29177 resultobj = SWIG_Py_Void();
29178 return resultobj;
29179 fail:
29180 return NULL;
29181 }
29182
29183
29184 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29185 PyObject *resultobj = 0;
29186 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29187 wxDouble arg2 ;
29188 void *argp1 = 0 ;
29189 int res1 = 0 ;
29190 double val2 ;
29191 int ecode2 = 0 ;
29192 PyObject * obj0 = 0 ;
29193 PyObject * obj1 = 0 ;
29194 char * kwnames[] = {
29195 (char *) "self",(char *) "angle", NULL
29196 };
29197
29198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
29199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29200 if (!SWIG_IsOK(res1)) {
29201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29202 }
29203 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29204 ecode2 = SWIG_AsVal_double(obj1, &val2);
29205 if (!SWIG_IsOK(ecode2)) {
29206 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
29207 }
29208 arg2 = static_cast< wxDouble >(val2);
29209 {
29210 (arg1)->Rotate(arg2);
29211 if (PyErr_Occurred()) SWIG_fail;
29212 }
29213 resultobj = SWIG_Py_Void();
29214 return resultobj;
29215 fail:
29216 return NULL;
29217 }
29218
29219
29220 SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29221 PyObject *resultobj = 0;
29222 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29223 wxGraphicsMatrix *arg2 = 0 ;
29224 void *argp1 = 0 ;
29225 int res1 = 0 ;
29226 void *argp2 = 0 ;
29227 int res2 = 0 ;
29228 PyObject * obj0 = 0 ;
29229 PyObject * obj1 = 0 ;
29230 char * kwnames[] = {
29231 (char *) "self",(char *) "matrix", NULL
29232 };
29233
29234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
29235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29236 if (!SWIG_IsOK(res1)) {
29237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29238 }
29239 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29240 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29241 if (!SWIG_IsOK(res2)) {
29242 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29243 }
29244 if (!argp2) {
29245 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29246 }
29247 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29248 {
29249 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
29250 if (PyErr_Occurred()) SWIG_fail;
29251 }
29252 resultobj = SWIG_Py_Void();
29253 return resultobj;
29254 fail:
29255 return NULL;
29256 }
29257
29258
29259 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29260 PyObject *resultobj = 0;
29261 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29262 wxGraphicsMatrix *arg2 = 0 ;
29263 void *argp1 = 0 ;
29264 int res1 = 0 ;
29265 void *argp2 = 0 ;
29266 int res2 = 0 ;
29267 PyObject * obj0 = 0 ;
29268 PyObject * obj1 = 0 ;
29269 char * kwnames[] = {
29270 (char *) "self",(char *) "matrix", NULL
29271 };
29272
29273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
29274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29275 if (!SWIG_IsOK(res1)) {
29276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29277 }
29278 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29279 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29280 if (!SWIG_IsOK(res2)) {
29281 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29282 }
29283 if (!argp2) {
29284 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29285 }
29286 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29287 {
29288 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
29289 if (PyErr_Occurred()) SWIG_fail;
29290 }
29291 resultobj = SWIG_Py_Void();
29292 return resultobj;
29293 fail:
29294 return NULL;
29295 }
29296
29297
29298 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29299 PyObject *resultobj = 0;
29300 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29301 wxGraphicsMatrix result;
29302 void *argp1 = 0 ;
29303 int res1 = 0 ;
29304 PyObject *swig_obj[1] ;
29305
29306 if (!args) SWIG_fail;
29307 swig_obj[0] = args;
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_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29311 }
29312 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29313 {
29314 result = ((wxGraphicsContext const *)arg1)->GetTransform();
29315 if (PyErr_Occurred()) SWIG_fail;
29316 }
29317 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
29318 return resultobj;
29319 fail:
29320 return NULL;
29321 }
29322
29323
29324 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29325 PyObject *resultobj = 0;
29326 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29327 wxGraphicsPen *arg2 = 0 ;
29328 void *argp1 = 0 ;
29329 int res1 = 0 ;
29330 void *argp2 = 0 ;
29331 int res2 = 0 ;
29332
29333 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29335 if (!SWIG_IsOK(res1)) {
29336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29337 }
29338 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29339 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
29340 if (!SWIG_IsOK(res2)) {
29341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29342 }
29343 if (!argp2) {
29344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29345 }
29346 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
29347 {
29348 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
29349 if (PyErr_Occurred()) SWIG_fail;
29350 }
29351 resultobj = SWIG_Py_Void();
29352 return resultobj;
29353 fail:
29354 return NULL;
29355 }
29356
29357
29358 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29359 PyObject *resultobj = 0;
29360 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29361 wxPen *arg2 = 0 ;
29362 void *argp1 = 0 ;
29363 int res1 = 0 ;
29364 void *argp2 = 0 ;
29365 int res2 = 0 ;
29366
29367 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29369 if (!SWIG_IsOK(res1)) {
29370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29371 }
29372 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29373 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
29374 if (!SWIG_IsOK(res2)) {
29375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29376 }
29377 if (!argp2) {
29378 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29379 }
29380 arg2 = reinterpret_cast< wxPen * >(argp2);
29381 {
29382 (arg1)->SetPen((wxPen const &)*arg2);
29383 if (PyErr_Occurred()) SWIG_fail;
29384 }
29385 resultobj = SWIG_Py_Void();
29386 return resultobj;
29387 fail:
29388 return NULL;
29389 }
29390
29391
29392 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
29393 int argc;
29394 PyObject *argv[3];
29395
29396 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
29397 --argc;
29398 if (argc == 2) {
29399 int _v = 0;
29400 {
29401 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
29402 _v = SWIG_CheckState(res);
29403 }
29404 if (!_v) goto check_1;
29405 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
29406 }
29407 check_1:
29408
29409 if (argc == 2) {
29410 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
29411 }
29412
29413 fail:
29414 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
29415 return NULL;
29416 }
29417
29418
29419 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29420 PyObject *resultobj = 0;
29421 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29422 wxGraphicsBrush *arg2 = 0 ;
29423 void *argp1 = 0 ;
29424 int res1 = 0 ;
29425 void *argp2 = 0 ;
29426 int res2 = 0 ;
29427
29428 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29430 if (!SWIG_IsOK(res1)) {
29431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29432 }
29433 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29434 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29435 if (!SWIG_IsOK(res2)) {
29436 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29437 }
29438 if (!argp2) {
29439 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29440 }
29441 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
29442 {
29443 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
29444 if (PyErr_Occurred()) SWIG_fail;
29445 }
29446 resultobj = SWIG_Py_Void();
29447 return resultobj;
29448 fail:
29449 return NULL;
29450 }
29451
29452
29453 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29454 PyObject *resultobj = 0;
29455 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29456 wxBrush *arg2 = 0 ;
29457 void *argp1 = 0 ;
29458 int res1 = 0 ;
29459 void *argp2 = 0 ;
29460 int res2 = 0 ;
29461
29462 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29464 if (!SWIG_IsOK(res1)) {
29465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29466 }
29467 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29468 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
29469 if (!SWIG_IsOK(res2)) {
29470 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29471 }
29472 if (!argp2) {
29473 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29474 }
29475 arg2 = reinterpret_cast< wxBrush * >(argp2);
29476 {
29477 (arg1)->SetBrush((wxBrush const &)*arg2);
29478 if (PyErr_Occurred()) SWIG_fail;
29479 }
29480 resultobj = SWIG_Py_Void();
29481 return resultobj;
29482 fail:
29483 return NULL;
29484 }
29485
29486
29487 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
29488 int argc;
29489 PyObject *argv[3];
29490
29491 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
29492 --argc;
29493 if (argc == 2) {
29494 int _v = 0;
29495 {
29496 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
29497 _v = SWIG_CheckState(res);
29498 }
29499 if (!_v) goto check_1;
29500 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
29501 }
29502 check_1:
29503
29504 if (argc == 2) {
29505 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
29506 }
29507
29508 fail:
29509 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
29510 return NULL;
29511 }
29512
29513
29514 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29515 PyObject *resultobj = 0;
29516 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29517 wxGraphicsFont *arg2 = 0 ;
29518 void *argp1 = 0 ;
29519 int res1 = 0 ;
29520 void *argp2 = 0 ;
29521 int res2 = 0 ;
29522
29523 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29525 if (!SWIG_IsOK(res1)) {
29526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29527 }
29528 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29529 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
29530 if (!SWIG_IsOK(res2)) {
29531 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
29532 }
29533 if (!argp2) {
29534 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
29535 }
29536 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
29537 {
29538 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
29539 if (PyErr_Occurred()) SWIG_fail;
29540 }
29541 resultobj = SWIG_Py_Void();
29542 return resultobj;
29543 fail:
29544 return NULL;
29545 }
29546
29547
29548 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29549 PyObject *resultobj = 0;
29550 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29551 wxFont *arg2 = 0 ;
29552 wxColour const &arg3_defvalue = *wxBLACK ;
29553 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
29554 void *argp1 = 0 ;
29555 int res1 = 0 ;
29556 void *argp2 = 0 ;
29557 int res2 = 0 ;
29558 wxColour temp3 ;
29559
29560 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
29561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29562 if (!SWIG_IsOK(res1)) {
29563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29564 }
29565 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29566 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
29567 if (!SWIG_IsOK(res2)) {
29568 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29569 }
29570 if (!argp2) {
29571 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29572 }
29573 arg2 = reinterpret_cast< wxFont * >(argp2);
29574 if (swig_obj[2]) {
29575 {
29576 arg3 = &temp3;
29577 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
29578 }
29579 }
29580 {
29581 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
29582 if (PyErr_Occurred()) SWIG_fail;
29583 }
29584 resultobj = SWIG_Py_Void();
29585 return resultobj;
29586 fail:
29587 return NULL;
29588 }
29589
29590
29591 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
29592 int argc;
29593 PyObject *argv[4];
29594
29595 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
29596 --argc;
29597 if (argc == 2) {
29598 int _v = 0;
29599 {
29600 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
29601 _v = SWIG_CheckState(res);
29602 }
29603 if (!_v) goto check_1;
29604 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
29605 }
29606 check_1:
29607
29608 if ((argc >= 2) && (argc <= 3)) {
29609 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
29610 }
29611
29612 fail:
29613 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
29614 return NULL;
29615 }
29616
29617
29618 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29619 PyObject *resultobj = 0;
29620 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29621 wxGraphicsPath *arg2 = 0 ;
29622 void *argp1 = 0 ;
29623 int res1 = 0 ;
29624 void *argp2 = 0 ;
29625 int res2 = 0 ;
29626 PyObject * obj0 = 0 ;
29627 PyObject * obj1 = 0 ;
29628 char * kwnames[] = {
29629 (char *) "self",(char *) "path", NULL
29630 };
29631
29632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
29633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29634 if (!SWIG_IsOK(res1)) {
29635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29636 }
29637 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29638 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29639 if (!SWIG_IsOK(res2)) {
29640 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29641 }
29642 if (!argp2) {
29643 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29644 }
29645 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29646 {
29647 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
29648 if (PyErr_Occurred()) SWIG_fail;
29649 }
29650 resultobj = SWIG_Py_Void();
29651 return resultobj;
29652 fail:
29653 return NULL;
29654 }
29655
29656
29657 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29658 PyObject *resultobj = 0;
29659 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29660 wxGraphicsPath *arg2 = 0 ;
29661 int arg3 = (int) wxODDEVEN_RULE ;
29662 void *argp1 = 0 ;
29663 int res1 = 0 ;
29664 void *argp2 = 0 ;
29665 int res2 = 0 ;
29666 int val3 ;
29667 int ecode3 = 0 ;
29668 PyObject * obj0 = 0 ;
29669 PyObject * obj1 = 0 ;
29670 PyObject * obj2 = 0 ;
29671 char * kwnames[] = {
29672 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29673 };
29674
29675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29677 if (!SWIG_IsOK(res1)) {
29678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29679 }
29680 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29681 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29682 if (!SWIG_IsOK(res2)) {
29683 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29684 }
29685 if (!argp2) {
29686 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29687 }
29688 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29689 if (obj2) {
29690 ecode3 = SWIG_AsVal_int(obj2, &val3);
29691 if (!SWIG_IsOK(ecode3)) {
29692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
29693 }
29694 arg3 = static_cast< int >(val3);
29695 }
29696 {
29697 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
29698 if (PyErr_Occurred()) SWIG_fail;
29699 }
29700 resultobj = SWIG_Py_Void();
29701 return resultobj;
29702 fail:
29703 return NULL;
29704 }
29705
29706
29707 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29708 PyObject *resultobj = 0;
29709 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29710 wxGraphicsPath *arg2 = 0 ;
29711 int arg3 = (int) wxODDEVEN_RULE ;
29712 void *argp1 = 0 ;
29713 int res1 = 0 ;
29714 void *argp2 = 0 ;
29715 int res2 = 0 ;
29716 int val3 ;
29717 int ecode3 = 0 ;
29718 PyObject * obj0 = 0 ;
29719 PyObject * obj1 = 0 ;
29720 PyObject * obj2 = 0 ;
29721 char * kwnames[] = {
29722 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29723 };
29724
29725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29727 if (!SWIG_IsOK(res1)) {
29728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29729 }
29730 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29731 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29732 if (!SWIG_IsOK(res2)) {
29733 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29734 }
29735 if (!argp2) {
29736 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29737 }
29738 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29739 if (obj2) {
29740 ecode3 = SWIG_AsVal_int(obj2, &val3);
29741 if (!SWIG_IsOK(ecode3)) {
29742 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
29743 }
29744 arg3 = static_cast< int >(val3);
29745 }
29746 {
29747 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
29748 if (PyErr_Occurred()) SWIG_fail;
29749 }
29750 resultobj = SWIG_Py_Void();
29751 return resultobj;
29752 fail:
29753 return NULL;
29754 }
29755
29756
29757 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29758 PyObject *resultobj = 0;
29759 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29760 wxString *arg2 = 0 ;
29761 wxDouble arg3 ;
29762 wxDouble arg4 ;
29763 wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ;
29764 wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ;
29765 void *argp1 = 0 ;
29766 int res1 = 0 ;
29767 bool temp2 = false ;
29768 double val3 ;
29769 int ecode3 = 0 ;
29770 double val4 ;
29771 int ecode4 = 0 ;
29772 void *argp5 = 0 ;
29773 int res5 = 0 ;
29774 PyObject * obj0 = 0 ;
29775 PyObject * obj1 = 0 ;
29776 PyObject * obj2 = 0 ;
29777 PyObject * obj3 = 0 ;
29778 PyObject * obj4 = 0 ;
29779 char * kwnames[] = {
29780 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL
29781 };
29782
29783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29785 if (!SWIG_IsOK(res1)) {
29786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29787 }
29788 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29789 {
29790 arg2 = wxString_in_helper(obj1);
29791 if (arg2 == NULL) SWIG_fail;
29792 temp2 = true;
29793 }
29794 ecode3 = SWIG_AsVal_double(obj2, &val3);
29795 if (!SWIG_IsOK(ecode3)) {
29796 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
29797 }
29798 arg3 = static_cast< wxDouble >(val3);
29799 ecode4 = SWIG_AsVal_double(obj3, &val4);
29800 if (!SWIG_IsOK(ecode4)) {
29801 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
29802 }
29803 arg4 = static_cast< wxDouble >(val4);
29804 if (obj4) {
29805 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29806 if (!SWIG_IsOK(res5)) {
29807 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29808 }
29809 if (!argp5) {
29810 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29811 }
29812 arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5);
29813 }
29814 {
29815 wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5);
29816 if (PyErr_Occurred()) SWIG_fail;
29817 }
29818 resultobj = SWIG_Py_Void();
29819 {
29820 if (temp2)
29821 delete arg2;
29822 }
29823 return resultobj;
29824 fail:
29825 {
29826 if (temp2)
29827 delete arg2;
29828 }
29829 return NULL;
29830 }
29831
29832
29833 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29834 PyObject *resultobj = 0;
29835 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29836 wxString *arg2 = 0 ;
29837 wxDouble arg3 ;
29838 wxDouble arg4 ;
29839 wxDouble arg5 ;
29840 wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ;
29841 wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ;
29842 void *argp1 = 0 ;
29843 int res1 = 0 ;
29844 bool temp2 = false ;
29845 double val3 ;
29846 int ecode3 = 0 ;
29847 double val4 ;
29848 int ecode4 = 0 ;
29849 double val5 ;
29850 int ecode5 = 0 ;
29851 void *argp6 = 0 ;
29852 int res6 = 0 ;
29853 PyObject * obj0 = 0 ;
29854 PyObject * obj1 = 0 ;
29855 PyObject * obj2 = 0 ;
29856 PyObject * obj3 = 0 ;
29857 PyObject * obj4 = 0 ;
29858 PyObject * obj5 = 0 ;
29859 char * kwnames[] = {
29860 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL
29861 };
29862
29863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29865 if (!SWIG_IsOK(res1)) {
29866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29867 }
29868 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29869 {
29870 arg2 = wxString_in_helper(obj1);
29871 if (arg2 == NULL) SWIG_fail;
29872 temp2 = true;
29873 }
29874 ecode3 = SWIG_AsVal_double(obj2, &val3);
29875 if (!SWIG_IsOK(ecode3)) {
29876 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
29877 }
29878 arg3 = static_cast< wxDouble >(val3);
29879 ecode4 = SWIG_AsVal_double(obj3, &val4);
29880 if (!SWIG_IsOK(ecode4)) {
29881 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
29882 }
29883 arg4 = static_cast< wxDouble >(val4);
29884 ecode5 = SWIG_AsVal_double(obj4, &val5);
29885 if (!SWIG_IsOK(ecode5)) {
29886 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
29887 }
29888 arg5 = static_cast< wxDouble >(val5);
29889 if (obj5) {
29890 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29891 if (!SWIG_IsOK(res6)) {
29892 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29893 }
29894 if (!argp6) {
29895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29896 }
29897 arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6);
29898 }
29899 {
29900 wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6);
29901 if (PyErr_Occurred()) SWIG_fail;
29902 }
29903 resultobj = SWIG_Py_Void();
29904 {
29905 if (temp2)
29906 delete arg2;
29907 }
29908 return resultobj;
29909 fail:
29910 {
29911 if (temp2)
29912 delete arg2;
29913 }
29914 return NULL;
29915 }
29916
29917
29918 SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29919 PyObject *resultobj = 0;
29920 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29921 wxString *arg2 = 0 ;
29922 wxDouble *arg3 = (wxDouble *) 0 ;
29923 wxDouble *arg4 = (wxDouble *) 0 ;
29924 wxDouble *arg5 = (wxDouble *) 0 ;
29925 wxDouble *arg6 = (wxDouble *) 0 ;
29926 void *argp1 = 0 ;
29927 int res1 = 0 ;
29928 bool temp2 = false ;
29929 wxDouble temp3 ;
29930 int res3 = SWIG_TMPOBJ ;
29931 wxDouble temp4 ;
29932 int res4 = SWIG_TMPOBJ ;
29933 wxDouble temp5 ;
29934 int res5 = SWIG_TMPOBJ ;
29935 wxDouble temp6 ;
29936 int res6 = SWIG_TMPOBJ ;
29937 PyObject * obj0 = 0 ;
29938 PyObject * obj1 = 0 ;
29939 char * kwnames[] = {
29940 (char *) "self",(char *) "text", NULL
29941 };
29942
29943 arg3 = &temp3;
29944 arg4 = &temp4;
29945 arg5 = &temp5;
29946 arg6 = &temp6;
29947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29949 if (!SWIG_IsOK(res1)) {
29950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29951 }
29952 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29953 {
29954 arg2 = wxString_in_helper(obj1);
29955 if (arg2 == NULL) SWIG_fail;
29956 temp2 = true;
29957 }
29958 {
29959 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
29960 if (PyErr_Occurred()) SWIG_fail;
29961 }
29962 resultobj = SWIG_Py_Void();
29963 if (SWIG_IsTmpObj(res3)) {
29964 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29965 } else {
29966 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29967 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29968 }
29969 if (SWIG_IsTmpObj(res4)) {
29970 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29971 } else {
29972 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29973 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29974 }
29975 if (SWIG_IsTmpObj(res5)) {
29976 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29977 } else {
29978 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29979 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29980 }
29981 if (SWIG_IsTmpObj(res6)) {
29982 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29983 } else {
29984 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29985 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29986 }
29987 {
29988 if (temp2)
29989 delete arg2;
29990 }
29991 return resultobj;
29992 fail:
29993 {
29994 if (temp2)
29995 delete arg2;
29996 }
29997 return NULL;
29998 }
29999
30000
30001 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30002 PyObject *resultobj = 0;
30003 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30004 wxString *arg2 = 0 ;
30005 PyObject *result = 0 ;
30006 void *argp1 = 0 ;
30007 int res1 = 0 ;
30008 bool temp2 = false ;
30009 PyObject * obj0 = 0 ;
30010 PyObject * obj1 = 0 ;
30011 char * kwnames[] = {
30012 (char *) "self",(char *) "text", NULL
30013 };
30014
30015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
30016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30017 if (!SWIG_IsOK(res1)) {
30018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30019 }
30020 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30021 {
30022 arg2 = wxString_in_helper(obj1);
30023 if (arg2 == NULL) SWIG_fail;
30024 temp2 = true;
30025 }
30026 {
30027 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
30028 if (PyErr_Occurred()) SWIG_fail;
30029 }
30030 resultobj = result;
30031 {
30032 if (temp2)
30033 delete arg2;
30034 }
30035 return resultobj;
30036 fail:
30037 {
30038 if (temp2)
30039 delete arg2;
30040 }
30041 return NULL;
30042 }
30043
30044
30045 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30046 PyObject *resultobj = 0;
30047 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30048 wxString *arg2 = 0 ;
30049 wxArrayDouble result;
30050 void *argp1 = 0 ;
30051 int res1 = 0 ;
30052 bool temp2 = false ;
30053 PyObject * obj0 = 0 ;
30054 PyObject * obj1 = 0 ;
30055 char * kwnames[] = {
30056 (char *) "self",(char *) "text", NULL
30057 };
30058
30059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
30060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30061 if (!SWIG_IsOK(res1)) {
30062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30063 }
30064 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30065 {
30066 arg2 = wxString_in_helper(obj1);
30067 if (arg2 == NULL) SWIG_fail;
30068 temp2 = true;
30069 }
30070 {
30071 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
30072 if (PyErr_Occurred()) SWIG_fail;
30073 }
30074 {
30075 resultobj = wxArrayDouble2PyList_helper(result);
30076 }
30077 {
30078 if (temp2)
30079 delete arg2;
30080 }
30081 return resultobj;
30082 fail:
30083 {
30084 if (temp2)
30085 delete arg2;
30086 }
30087 return NULL;
30088 }
30089
30090
30091 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30092 PyObject *resultobj = 0;
30093 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30094 wxBitmap *arg2 = 0 ;
30095 wxDouble arg3 ;
30096 wxDouble arg4 ;
30097 wxDouble arg5 ;
30098 wxDouble arg6 ;
30099 void *argp1 = 0 ;
30100 int res1 = 0 ;
30101 void *argp2 = 0 ;
30102 int res2 = 0 ;
30103 double val3 ;
30104 int ecode3 = 0 ;
30105 double val4 ;
30106 int ecode4 = 0 ;
30107 double val5 ;
30108 int ecode5 = 0 ;
30109 double val6 ;
30110 int ecode6 = 0 ;
30111 PyObject * obj0 = 0 ;
30112 PyObject * obj1 = 0 ;
30113 PyObject * obj2 = 0 ;
30114 PyObject * obj3 = 0 ;
30115 PyObject * obj4 = 0 ;
30116 PyObject * obj5 = 0 ;
30117 char * kwnames[] = {
30118 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30119 };
30120
30121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30123 if (!SWIG_IsOK(res1)) {
30124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30125 }
30126 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30127 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30128 if (!SWIG_IsOK(res2)) {
30129 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30130 }
30131 if (!argp2) {
30132 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30133 }
30134 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30135 ecode3 = SWIG_AsVal_double(obj2, &val3);
30136 if (!SWIG_IsOK(ecode3)) {
30137 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
30138 }
30139 arg3 = static_cast< wxDouble >(val3);
30140 ecode4 = SWIG_AsVal_double(obj3, &val4);
30141 if (!SWIG_IsOK(ecode4)) {
30142 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
30143 }
30144 arg4 = static_cast< wxDouble >(val4);
30145 ecode5 = SWIG_AsVal_double(obj4, &val5);
30146 if (!SWIG_IsOK(ecode5)) {
30147 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
30148 }
30149 arg5 = static_cast< wxDouble >(val5);
30150 ecode6 = SWIG_AsVal_double(obj5, &val6);
30151 if (!SWIG_IsOK(ecode6)) {
30152 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
30153 }
30154 arg6 = static_cast< wxDouble >(val6);
30155 {
30156 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
30157 if (PyErr_Occurred()) SWIG_fail;
30158 }
30159 resultobj = SWIG_Py_Void();
30160 return resultobj;
30161 fail:
30162 return NULL;
30163 }
30164
30165
30166 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30167 PyObject *resultobj = 0;
30168 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30169 wxIcon *arg2 = 0 ;
30170 wxDouble arg3 ;
30171 wxDouble arg4 ;
30172 wxDouble arg5 ;
30173 wxDouble arg6 ;
30174 void *argp1 = 0 ;
30175 int res1 = 0 ;
30176 void *argp2 = 0 ;
30177 int res2 = 0 ;
30178 double val3 ;
30179 int ecode3 = 0 ;
30180 double val4 ;
30181 int ecode4 = 0 ;
30182 double val5 ;
30183 int ecode5 = 0 ;
30184 double val6 ;
30185 int ecode6 = 0 ;
30186 PyObject * obj0 = 0 ;
30187 PyObject * obj1 = 0 ;
30188 PyObject * obj2 = 0 ;
30189 PyObject * obj3 = 0 ;
30190 PyObject * obj4 = 0 ;
30191 PyObject * obj5 = 0 ;
30192 char * kwnames[] = {
30193 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30194 };
30195
30196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) 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_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30200 }
30201 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30202 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30203 if (!SWIG_IsOK(res2)) {
30204 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30205 }
30206 if (!argp2) {
30207 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30208 }
30209 arg2 = reinterpret_cast< wxIcon * >(argp2);
30210 ecode3 = SWIG_AsVal_double(obj2, &val3);
30211 if (!SWIG_IsOK(ecode3)) {
30212 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
30213 }
30214 arg3 = static_cast< wxDouble >(val3);
30215 ecode4 = SWIG_AsVal_double(obj3, &val4);
30216 if (!SWIG_IsOK(ecode4)) {
30217 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
30218 }
30219 arg4 = static_cast< wxDouble >(val4);
30220 ecode5 = SWIG_AsVal_double(obj4, &val5);
30221 if (!SWIG_IsOK(ecode5)) {
30222 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
30223 }
30224 arg5 = static_cast< wxDouble >(val5);
30225 ecode6 = SWIG_AsVal_double(obj5, &val6);
30226 if (!SWIG_IsOK(ecode6)) {
30227 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
30228 }
30229 arg6 = static_cast< wxDouble >(val6);
30230 {
30231 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
30232 if (PyErr_Occurred()) SWIG_fail;
30233 }
30234 resultobj = SWIG_Py_Void();
30235 return resultobj;
30236 fail:
30237 return NULL;
30238 }
30239
30240
30241 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30242 PyObject *resultobj = 0;
30243 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30244 wxDouble arg2 ;
30245 wxDouble arg3 ;
30246 wxDouble arg4 ;
30247 wxDouble arg5 ;
30248 void *argp1 = 0 ;
30249 int res1 = 0 ;
30250 double val2 ;
30251 int ecode2 = 0 ;
30252 double val3 ;
30253 int ecode3 = 0 ;
30254 double val4 ;
30255 int ecode4 = 0 ;
30256 double val5 ;
30257 int ecode5 = 0 ;
30258 PyObject * obj0 = 0 ;
30259 PyObject * obj1 = 0 ;
30260 PyObject * obj2 = 0 ;
30261 PyObject * obj3 = 0 ;
30262 PyObject * obj4 = 0 ;
30263 char * kwnames[] = {
30264 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
30265 };
30266
30267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30269 if (!SWIG_IsOK(res1)) {
30270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30271 }
30272 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30273 ecode2 = SWIG_AsVal_double(obj1, &val2);
30274 if (!SWIG_IsOK(ecode2)) {
30275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
30276 }
30277 arg2 = static_cast< wxDouble >(val2);
30278 ecode3 = SWIG_AsVal_double(obj2, &val3);
30279 if (!SWIG_IsOK(ecode3)) {
30280 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
30281 }
30282 arg3 = static_cast< wxDouble >(val3);
30283 ecode4 = SWIG_AsVal_double(obj3, &val4);
30284 if (!SWIG_IsOK(ecode4)) {
30285 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
30286 }
30287 arg4 = static_cast< wxDouble >(val4);
30288 ecode5 = SWIG_AsVal_double(obj4, &val5);
30289 if (!SWIG_IsOK(ecode5)) {
30290 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
30291 }
30292 arg5 = static_cast< wxDouble >(val5);
30293 {
30294 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
30295 if (PyErr_Occurred()) SWIG_fail;
30296 }
30297 resultobj = SWIG_Py_Void();
30298 return resultobj;
30299 fail:
30300 return NULL;
30301 }
30302
30303
30304 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30305 PyObject *resultobj = 0;
30306 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30307 size_t arg2 ;
30308 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
30309 void *argp1 = 0 ;
30310 int res1 = 0 ;
30311 PyObject * obj0 = 0 ;
30312 PyObject * obj1 = 0 ;
30313 char * kwnames[] = {
30314 (char *) "self",(char *) "points", NULL
30315 };
30316
30317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
30318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30319 if (!SWIG_IsOK(res1)) {
30320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30321 }
30322 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30323 {
30324 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30325 if (arg3 == NULL) SWIG_fail;
30326 }
30327 {
30328 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
30329 if (PyErr_Occurred()) SWIG_fail;
30330 }
30331 resultobj = SWIG_Py_Void();
30332 {
30333 if (arg3) delete [] arg3;
30334 }
30335 return resultobj;
30336 fail:
30337 {
30338 if (arg3) delete [] arg3;
30339 }
30340 return NULL;
30341 }
30342
30343
30344 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30345 PyObject *resultobj = 0;
30346 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30347 PyObject *arg2 = (PyObject *) 0 ;
30348 PyObject *arg3 = (PyObject *) 0 ;
30349 void *argp1 = 0 ;
30350 int res1 = 0 ;
30351 PyObject * obj0 = 0 ;
30352 PyObject * obj1 = 0 ;
30353 PyObject * obj2 = 0 ;
30354 char * kwnames[] = {
30355 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
30356 };
30357
30358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30360 if (!SWIG_IsOK(res1)) {
30361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30362 }
30363 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30364 arg2 = obj1;
30365 arg3 = obj2;
30366 {
30367 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
30368 if (PyErr_Occurred()) SWIG_fail;
30369 }
30370 resultobj = SWIG_Py_Void();
30371 return resultobj;
30372 fail:
30373 return NULL;
30374 }
30375
30376
30377 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30378 PyObject *resultobj = 0;
30379 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30380 size_t arg2 ;
30381 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
30382 int arg4 = (int) wxODDEVEN_RULE ;
30383 void *argp1 = 0 ;
30384 int res1 = 0 ;
30385 int val4 ;
30386 int ecode4 = 0 ;
30387 PyObject * obj0 = 0 ;
30388 PyObject * obj1 = 0 ;
30389 PyObject * obj2 = 0 ;
30390 char * kwnames[] = {
30391 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
30392 };
30393
30394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30396 if (!SWIG_IsOK(res1)) {
30397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30398 }
30399 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30400 {
30401 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30402 if (arg3 == NULL) SWIG_fail;
30403 }
30404 if (obj2) {
30405 ecode4 = SWIG_AsVal_int(obj2, &val4);
30406 if (!SWIG_IsOK(ecode4)) {
30407 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
30408 }
30409 arg4 = static_cast< int >(val4);
30410 }
30411 {
30412 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
30413 if (PyErr_Occurred()) SWIG_fail;
30414 }
30415 resultobj = SWIG_Py_Void();
30416 {
30417 if (arg3) delete [] arg3;
30418 }
30419 return resultobj;
30420 fail:
30421 {
30422 if (arg3) delete [] arg3;
30423 }
30424 return NULL;
30425 }
30426
30427
30428 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30429 PyObject *resultobj = 0;
30430 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30431 wxDouble arg2 ;
30432 wxDouble arg3 ;
30433 wxDouble arg4 ;
30434 wxDouble arg5 ;
30435 void *argp1 = 0 ;
30436 int res1 = 0 ;
30437 double val2 ;
30438 int ecode2 = 0 ;
30439 double val3 ;
30440 int ecode3 = 0 ;
30441 double val4 ;
30442 int ecode4 = 0 ;
30443 double val5 ;
30444 int ecode5 = 0 ;
30445 PyObject * obj0 = 0 ;
30446 PyObject * obj1 = 0 ;
30447 PyObject * obj2 = 0 ;
30448 PyObject * obj3 = 0 ;
30449 PyObject * obj4 = 0 ;
30450 char * kwnames[] = {
30451 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30452 };
30453
30454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30456 if (!SWIG_IsOK(res1)) {
30457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30458 }
30459 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30460 ecode2 = SWIG_AsVal_double(obj1, &val2);
30461 if (!SWIG_IsOK(ecode2)) {
30462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
30463 }
30464 arg2 = static_cast< wxDouble >(val2);
30465 ecode3 = SWIG_AsVal_double(obj2, &val3);
30466 if (!SWIG_IsOK(ecode3)) {
30467 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
30468 }
30469 arg3 = static_cast< wxDouble >(val3);
30470 ecode4 = SWIG_AsVal_double(obj3, &val4);
30471 if (!SWIG_IsOK(ecode4)) {
30472 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
30473 }
30474 arg4 = static_cast< wxDouble >(val4);
30475 ecode5 = SWIG_AsVal_double(obj4, &val5);
30476 if (!SWIG_IsOK(ecode5)) {
30477 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
30478 }
30479 arg5 = static_cast< wxDouble >(val5);
30480 {
30481 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
30482 if (PyErr_Occurred()) SWIG_fail;
30483 }
30484 resultobj = SWIG_Py_Void();
30485 return resultobj;
30486 fail:
30487 return NULL;
30488 }
30489
30490
30491 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30492 PyObject *resultobj = 0;
30493 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30494 wxDouble arg2 ;
30495 wxDouble arg3 ;
30496 wxDouble arg4 ;
30497 wxDouble arg5 ;
30498 void *argp1 = 0 ;
30499 int res1 = 0 ;
30500 double val2 ;
30501 int ecode2 = 0 ;
30502 double val3 ;
30503 int ecode3 = 0 ;
30504 double val4 ;
30505 int ecode4 = 0 ;
30506 double val5 ;
30507 int ecode5 = 0 ;
30508 PyObject * obj0 = 0 ;
30509 PyObject * obj1 = 0 ;
30510 PyObject * obj2 = 0 ;
30511 PyObject * obj3 = 0 ;
30512 PyObject * obj4 = 0 ;
30513 char * kwnames[] = {
30514 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30515 };
30516
30517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30519 if (!SWIG_IsOK(res1)) {
30520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30521 }
30522 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30523 ecode2 = SWIG_AsVal_double(obj1, &val2);
30524 if (!SWIG_IsOK(ecode2)) {
30525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
30526 }
30527 arg2 = static_cast< wxDouble >(val2);
30528 ecode3 = SWIG_AsVal_double(obj2, &val3);
30529 if (!SWIG_IsOK(ecode3)) {
30530 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
30531 }
30532 arg3 = static_cast< wxDouble >(val3);
30533 ecode4 = SWIG_AsVal_double(obj3, &val4);
30534 if (!SWIG_IsOK(ecode4)) {
30535 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
30536 }
30537 arg4 = static_cast< wxDouble >(val4);
30538 ecode5 = SWIG_AsVal_double(obj4, &val5);
30539 if (!SWIG_IsOK(ecode5)) {
30540 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
30541 }
30542 arg5 = static_cast< wxDouble >(val5);
30543 {
30544 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
30545 if (PyErr_Occurred()) SWIG_fail;
30546 }
30547 resultobj = SWIG_Py_Void();
30548 return resultobj;
30549 fail:
30550 return NULL;
30551 }
30552
30553
30554 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30555 PyObject *resultobj = 0;
30556 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30557 wxDouble arg2 ;
30558 wxDouble arg3 ;
30559 wxDouble arg4 ;
30560 wxDouble arg5 ;
30561 wxDouble arg6 ;
30562 void *argp1 = 0 ;
30563 int res1 = 0 ;
30564 double val2 ;
30565 int ecode2 = 0 ;
30566 double val3 ;
30567 int ecode3 = 0 ;
30568 double val4 ;
30569 int ecode4 = 0 ;
30570 double val5 ;
30571 int ecode5 = 0 ;
30572 double val6 ;
30573 int ecode6 = 0 ;
30574 PyObject * obj0 = 0 ;
30575 PyObject * obj1 = 0 ;
30576 PyObject * obj2 = 0 ;
30577 PyObject * obj3 = 0 ;
30578 PyObject * obj4 = 0 ;
30579 PyObject * obj5 = 0 ;
30580 char * kwnames[] = {
30581 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
30582 };
30583
30584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30586 if (!SWIG_IsOK(res1)) {
30587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30588 }
30589 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30590 ecode2 = SWIG_AsVal_double(obj1, &val2);
30591 if (!SWIG_IsOK(ecode2)) {
30592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
30593 }
30594 arg2 = static_cast< wxDouble >(val2);
30595 ecode3 = SWIG_AsVal_double(obj2, &val3);
30596 if (!SWIG_IsOK(ecode3)) {
30597 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
30598 }
30599 arg3 = static_cast< wxDouble >(val3);
30600 ecode4 = SWIG_AsVal_double(obj3, &val4);
30601 if (!SWIG_IsOK(ecode4)) {
30602 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
30603 }
30604 arg4 = static_cast< wxDouble >(val4);
30605 ecode5 = SWIG_AsVal_double(obj4, &val5);
30606 if (!SWIG_IsOK(ecode5)) {
30607 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
30608 }
30609 arg5 = static_cast< wxDouble >(val5);
30610 ecode6 = SWIG_AsVal_double(obj5, &val6);
30611 if (!SWIG_IsOK(ecode6)) {
30612 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
30613 }
30614 arg6 = static_cast< wxDouble >(val6);
30615 {
30616 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
30617 if (PyErr_Occurred()) SWIG_fail;
30618 }
30619 resultobj = SWIG_Py_Void();
30620 return resultobj;
30621 fail:
30622 return NULL;
30623 }
30624
30625
30626 SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30627 PyObject *resultobj = 0;
30628 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30629 bool result;
30630 void *argp1 = 0 ;
30631 int res1 = 0 ;
30632 PyObject *swig_obj[1] ;
30633
30634 if (!args) SWIG_fail;
30635 swig_obj[0] = args;
30636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30637 if (!SWIG_IsOK(res1)) {
30638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
30639 }
30640 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30641 {
30642 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
30643 if (PyErr_Occurred()) SWIG_fail;
30644 }
30645 {
30646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30647 }
30648 return resultobj;
30649 fail:
30650 return NULL;
30651 }
30652
30653
30654 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30655 PyObject *obj;
30656 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30657 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
30658 return SWIG_Py_Void();
30659 }
30660
30661 SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30662 PyObject *resultobj = 0;
30663 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30664 void *argp1 = 0 ;
30665 int res1 = 0 ;
30666 PyObject *swig_obj[1] ;
30667
30668 if (!args) SWIG_fail;
30669 swig_obj[0] = args;
30670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
30671 if (!SWIG_IsOK(res1)) {
30672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30673 }
30674 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30675 {
30676 delete arg1;
30677
30678 if (PyErr_Occurred()) SWIG_fail;
30679 }
30680 resultobj = SWIG_Py_Void();
30681 return resultobj;
30682 fail:
30683 return NULL;
30684 }
30685
30686
30687 SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30688 PyObject *resultobj = 0;
30689 wxGraphicsRenderer *result = 0 ;
30690
30691 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
30692 {
30693 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
30694 if (PyErr_Occurred()) SWIG_fail;
30695 }
30696 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30697 return resultobj;
30698 fail:
30699 return NULL;
30700 }
30701
30702
30703 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30704 PyObject *resultobj = 0;
30705 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30706 wxWindowDC *arg2 = 0 ;
30707 wxGraphicsContext *result = 0 ;
30708 void *argp1 = 0 ;
30709 int res1 = 0 ;
30710 void *argp2 = 0 ;
30711 int res2 = 0 ;
30712
30713 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30715 if (!SWIG_IsOK(res1)) {
30716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30717 }
30718 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30719 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
30720 if (!SWIG_IsOK(res2)) {
30721 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30722 }
30723 if (!argp2) {
30724 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30725 }
30726 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30727 {
30728 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
30729 if (PyErr_Occurred()) SWIG_fail;
30730 }
30731 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30732 return resultobj;
30733 fail:
30734 return NULL;
30735 }
30736
30737
30738 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30739 PyObject *resultobj = 0;
30740 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30741 wxWindow *arg2 = (wxWindow *) 0 ;
30742 wxGraphicsContext *result = 0 ;
30743 void *argp1 = 0 ;
30744 int res1 = 0 ;
30745 void *argp2 = 0 ;
30746 int res2 = 0 ;
30747
30748 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30750 if (!SWIG_IsOK(res1)) {
30751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30752 }
30753 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30754 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30755 if (!SWIG_IsOK(res2)) {
30756 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
30757 }
30758 arg2 = reinterpret_cast< wxWindow * >(argp2);
30759 {
30760 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
30761 if (PyErr_Occurred()) SWIG_fail;
30762 }
30763 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30764 return resultobj;
30765 fail:
30766 return NULL;
30767 }
30768
30769
30770 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
30771 int argc;
30772 PyObject *argv[3];
30773
30774 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
30775 --argc;
30776 if (argc == 2) {
30777 int _v = 0;
30778 {
30779 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
30780 _v = SWIG_CheckState(res);
30781 }
30782 if (!_v) goto check_1;
30783 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
30784 }
30785 check_1:
30786
30787 if (argc == 2) {
30788 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
30789 }
30790
30791 fail:
30792 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
30793 return NULL;
30794 }
30795
30796
30797 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30798 PyObject *resultobj = 0;
30799 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30800 wxGraphicsContext *result = 0 ;
30801 void *argp1 = 0 ;
30802 int res1 = 0 ;
30803 PyObject *swig_obj[1] ;
30804
30805 if (!args) SWIG_fail;
30806 swig_obj[0] = args;
30807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30808 if (!SWIG_IsOK(res1)) {
30809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30810 }
30811 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30812 {
30813 result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext();
30814 if (PyErr_Occurred()) SWIG_fail;
30815 }
30816 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30817 return resultobj;
30818 fail:
30819 return NULL;
30820 }
30821
30822
30823 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30824 PyObject *resultobj = 0;
30825 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30826 void *arg2 = (void *) 0 ;
30827 wxGraphicsContext *result = 0 ;
30828 void *argp1 = 0 ;
30829 int res1 = 0 ;
30830 int res2 ;
30831 PyObject * obj0 = 0 ;
30832 PyObject * obj1 = 0 ;
30833 char * kwnames[] = {
30834 (char *) "self",(char *) "context", NULL
30835 };
30836
30837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
30838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30839 if (!SWIG_IsOK(res1)) {
30840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30841 }
30842 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30843 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30844 if (!SWIG_IsOK(res2)) {
30845 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
30846 }
30847 {
30848 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
30849 if (PyErr_Occurred()) SWIG_fail;
30850 }
30851 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30852 return resultobj;
30853 fail:
30854 return NULL;
30855 }
30856
30857
30858 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30859 PyObject *resultobj = 0;
30860 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30861 void *arg2 = (void *) 0 ;
30862 wxGraphicsContext *result = 0 ;
30863 void *argp1 = 0 ;
30864 int res1 = 0 ;
30865 int res2 ;
30866 PyObject * obj0 = 0 ;
30867 PyObject * obj1 = 0 ;
30868 char * kwnames[] = {
30869 (char *) "self",(char *) "window", NULL
30870 };
30871
30872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
30873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30874 if (!SWIG_IsOK(res1)) {
30875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30876 }
30877 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30878 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30879 if (!SWIG_IsOK(res2)) {
30880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
30881 }
30882 {
30883 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
30884 if (PyErr_Occurred()) SWIG_fail;
30885 }
30886 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30887 return resultobj;
30888 fail:
30889 return NULL;
30890 }
30891
30892
30893 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30894 PyObject *resultobj = 0;
30895 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30896 wxGraphicsPath result;
30897 void *argp1 = 0 ;
30898 int res1 = 0 ;
30899 PyObject *swig_obj[1] ;
30900
30901 if (!args) SWIG_fail;
30902 swig_obj[0] = args;
30903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30904 if (!SWIG_IsOK(res1)) {
30905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30906 }
30907 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30908 {
30909 result = (arg1)->CreatePath();
30910 if (PyErr_Occurred()) SWIG_fail;
30911 }
30912 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
30913 return resultobj;
30914 fail:
30915 return NULL;
30916 }
30917
30918
30919 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30920 PyObject *resultobj = 0;
30921 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30922 wxDouble arg2 = (wxDouble) 1.0 ;
30923 wxDouble arg3 = (wxDouble) 0.0 ;
30924 wxDouble arg4 = (wxDouble) 0.0 ;
30925 wxDouble arg5 = (wxDouble) 1.0 ;
30926 wxDouble arg6 = (wxDouble) 0.0 ;
30927 wxDouble arg7 = (wxDouble) 0.0 ;
30928 wxGraphicsMatrix result;
30929 void *argp1 = 0 ;
30930 int res1 = 0 ;
30931 double val2 ;
30932 int ecode2 = 0 ;
30933 double val3 ;
30934 int ecode3 = 0 ;
30935 double val4 ;
30936 int ecode4 = 0 ;
30937 double val5 ;
30938 int ecode5 = 0 ;
30939 double val6 ;
30940 int ecode6 = 0 ;
30941 double val7 ;
30942 int ecode7 = 0 ;
30943 PyObject * obj0 = 0 ;
30944 PyObject * obj1 = 0 ;
30945 PyObject * obj2 = 0 ;
30946 PyObject * obj3 = 0 ;
30947 PyObject * obj4 = 0 ;
30948 PyObject * obj5 = 0 ;
30949 PyObject * obj6 = 0 ;
30950 char * kwnames[] = {
30951 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
30952 };
30953
30954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30956 if (!SWIG_IsOK(res1)) {
30957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30958 }
30959 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30960 if (obj1) {
30961 ecode2 = SWIG_AsVal_double(obj1, &val2);
30962 if (!SWIG_IsOK(ecode2)) {
30963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30964 }
30965 arg2 = static_cast< wxDouble >(val2);
30966 }
30967 if (obj2) {
30968 ecode3 = SWIG_AsVal_double(obj2, &val3);
30969 if (!SWIG_IsOK(ecode3)) {
30970 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30971 }
30972 arg3 = static_cast< wxDouble >(val3);
30973 }
30974 if (obj3) {
30975 ecode4 = SWIG_AsVal_double(obj3, &val4);
30976 if (!SWIG_IsOK(ecode4)) {
30977 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30978 }
30979 arg4 = static_cast< wxDouble >(val4);
30980 }
30981 if (obj4) {
30982 ecode5 = SWIG_AsVal_double(obj4, &val5);
30983 if (!SWIG_IsOK(ecode5)) {
30984 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30985 }
30986 arg5 = static_cast< wxDouble >(val5);
30987 }
30988 if (obj5) {
30989 ecode6 = SWIG_AsVal_double(obj5, &val6);
30990 if (!SWIG_IsOK(ecode6)) {
30991 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30992 }
30993 arg6 = static_cast< wxDouble >(val6);
30994 }
30995 if (obj6) {
30996 ecode7 = SWIG_AsVal_double(obj6, &val7);
30997 if (!SWIG_IsOK(ecode7)) {
30998 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30999 }
31000 arg7 = static_cast< wxDouble >(val7);
31001 }
31002 {
31003 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
31004 if (PyErr_Occurred()) SWIG_fail;
31005 }
31006 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
31007 return resultobj;
31008 fail:
31009 return NULL;
31010 }
31011
31012
31013 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31014 PyObject *resultobj = 0;
31015 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31016 wxPen *arg2 = 0 ;
31017 wxGraphicsPen result;
31018 void *argp1 = 0 ;
31019 int res1 = 0 ;
31020 void *argp2 = 0 ;
31021 int res2 = 0 ;
31022 PyObject * obj0 = 0 ;
31023 PyObject * obj1 = 0 ;
31024 char * kwnames[] = {
31025 (char *) "self",(char *) "pen", NULL
31026 };
31027
31028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
31029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31030 if (!SWIG_IsOK(res1)) {
31031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31032 }
31033 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31034 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
31035 if (!SWIG_IsOK(res2)) {
31036 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
31037 }
31038 if (!argp2) {
31039 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
31040 }
31041 arg2 = reinterpret_cast< wxPen * >(argp2);
31042 {
31043 result = (arg1)->CreatePen((wxPen const &)*arg2);
31044 if (PyErr_Occurred()) SWIG_fail;
31045 }
31046 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
31047 return resultobj;
31048 fail:
31049 return NULL;
31050 }
31051
31052
31053 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31054 PyObject *resultobj = 0;
31055 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31056 wxBrush *arg2 = 0 ;
31057 wxGraphicsBrush result;
31058 void *argp1 = 0 ;
31059 int res1 = 0 ;
31060 void *argp2 = 0 ;
31061 int res2 = 0 ;
31062 PyObject * obj0 = 0 ;
31063 PyObject * obj1 = 0 ;
31064 char * kwnames[] = {
31065 (char *) "self",(char *) "brush", NULL
31066 };
31067
31068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
31069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31070 if (!SWIG_IsOK(res1)) {
31071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31072 }
31073 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31074 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
31075 if (!SWIG_IsOK(res2)) {
31076 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31077 }
31078 if (!argp2) {
31079 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31080 }
31081 arg2 = reinterpret_cast< wxBrush * >(argp2);
31082 {
31083 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
31084 if (PyErr_Occurred()) SWIG_fail;
31085 }
31086 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
31087 return resultobj;
31088 fail:
31089 return NULL;
31090 }
31091
31092
31093 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31094 PyObject *resultobj = 0;
31095 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31096 wxDouble arg2 ;
31097 wxDouble arg3 ;
31098 wxDouble arg4 ;
31099 wxDouble arg5 ;
31100 wxColour *arg6 = 0 ;
31101 wxColour *arg7 = 0 ;
31102 wxGraphicsBrush result;
31103 void *argp1 = 0 ;
31104 int res1 = 0 ;
31105 double val2 ;
31106 int ecode2 = 0 ;
31107 double val3 ;
31108 int ecode3 = 0 ;
31109 double val4 ;
31110 int ecode4 = 0 ;
31111 double val5 ;
31112 int ecode5 = 0 ;
31113 wxColour temp6 ;
31114 wxColour temp7 ;
31115 PyObject * obj0 = 0 ;
31116 PyObject * obj1 = 0 ;
31117 PyObject * obj2 = 0 ;
31118 PyObject * obj3 = 0 ;
31119 PyObject * obj4 = 0 ;
31120 PyObject * obj5 = 0 ;
31121 PyObject * obj6 = 0 ;
31122 char * kwnames[] = {
31123 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
31124 };
31125
31126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31128 if (!SWIG_IsOK(res1)) {
31129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31130 }
31131 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31132 ecode2 = SWIG_AsVal_double(obj1, &val2);
31133 if (!SWIG_IsOK(ecode2)) {
31134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
31135 }
31136 arg2 = static_cast< wxDouble >(val2);
31137 ecode3 = SWIG_AsVal_double(obj2, &val3);
31138 if (!SWIG_IsOK(ecode3)) {
31139 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
31140 }
31141 arg3 = static_cast< wxDouble >(val3);
31142 ecode4 = SWIG_AsVal_double(obj3, &val4);
31143 if (!SWIG_IsOK(ecode4)) {
31144 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
31145 }
31146 arg4 = static_cast< wxDouble >(val4);
31147 ecode5 = SWIG_AsVal_double(obj4, &val5);
31148 if (!SWIG_IsOK(ecode5)) {
31149 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
31150 }
31151 arg5 = static_cast< wxDouble >(val5);
31152 {
31153 arg6 = &temp6;
31154 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
31155 }
31156 {
31157 arg7 = &temp7;
31158 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31159 }
31160 {
31161 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
31162 if (PyErr_Occurred()) SWIG_fail;
31163 }
31164 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
31165 return resultobj;
31166 fail:
31167 return NULL;
31168 }
31169
31170
31171 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31172 PyObject *resultobj = 0;
31173 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31174 wxDouble arg2 ;
31175 wxDouble arg3 ;
31176 wxDouble arg4 ;
31177 wxDouble arg5 ;
31178 wxDouble arg6 ;
31179 wxColour *arg7 = 0 ;
31180 wxColour *arg8 = 0 ;
31181 wxGraphicsBrush result;
31182 void *argp1 = 0 ;
31183 int res1 = 0 ;
31184 double val2 ;
31185 int ecode2 = 0 ;
31186 double val3 ;
31187 int ecode3 = 0 ;
31188 double val4 ;
31189 int ecode4 = 0 ;
31190 double val5 ;
31191 int ecode5 = 0 ;
31192 double val6 ;
31193 int ecode6 = 0 ;
31194 wxColour temp7 ;
31195 wxColour temp8 ;
31196 PyObject * obj0 = 0 ;
31197 PyObject * obj1 = 0 ;
31198 PyObject * obj2 = 0 ;
31199 PyObject * obj3 = 0 ;
31200 PyObject * obj4 = 0 ;
31201 PyObject * obj5 = 0 ;
31202 PyObject * obj6 = 0 ;
31203 PyObject * obj7 = 0 ;
31204 char * kwnames[] = {
31205 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
31206 };
31207
31208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31210 if (!SWIG_IsOK(res1)) {
31211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31212 }
31213 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31214 ecode2 = SWIG_AsVal_double(obj1, &val2);
31215 if (!SWIG_IsOK(ecode2)) {
31216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
31217 }
31218 arg2 = static_cast< wxDouble >(val2);
31219 ecode3 = SWIG_AsVal_double(obj2, &val3);
31220 if (!SWIG_IsOK(ecode3)) {
31221 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
31222 }
31223 arg3 = static_cast< wxDouble >(val3);
31224 ecode4 = SWIG_AsVal_double(obj3, &val4);
31225 if (!SWIG_IsOK(ecode4)) {
31226 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
31227 }
31228 arg4 = static_cast< wxDouble >(val4);
31229 ecode5 = SWIG_AsVal_double(obj4, &val5);
31230 if (!SWIG_IsOK(ecode5)) {
31231 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
31232 }
31233 arg5 = static_cast< wxDouble >(val5);
31234 ecode6 = SWIG_AsVal_double(obj5, &val6);
31235 if (!SWIG_IsOK(ecode6)) {
31236 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
31237 }
31238 arg6 = static_cast< wxDouble >(val6);
31239 {
31240 arg7 = &temp7;
31241 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31242 }
31243 {
31244 arg8 = &temp8;
31245 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
31246 }
31247 {
31248 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
31249 if (PyErr_Occurred()) SWIG_fail;
31250 }
31251 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
31252 return resultobj;
31253 fail:
31254 return NULL;
31255 }
31256
31257
31258 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31259 PyObject *resultobj = 0;
31260 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31261 wxFont *arg2 = 0 ;
31262 wxColour const &arg3_defvalue = *wxBLACK ;
31263 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
31264 wxGraphicsFont result;
31265 void *argp1 = 0 ;
31266 int res1 = 0 ;
31267 void *argp2 = 0 ;
31268 int res2 = 0 ;
31269 wxColour temp3 ;
31270 PyObject * obj0 = 0 ;
31271 PyObject * obj1 = 0 ;
31272 PyObject * obj2 = 0 ;
31273 char * kwnames[] = {
31274 (char *) "self",(char *) "font",(char *) "col", NULL
31275 };
31276
31277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31279 if (!SWIG_IsOK(res1)) {
31280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31281 }
31282 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31283 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
31284 if (!SWIG_IsOK(res2)) {
31285 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31286 }
31287 if (!argp2) {
31288 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31289 }
31290 arg2 = reinterpret_cast< wxFont * >(argp2);
31291 if (obj2) {
31292 {
31293 arg3 = &temp3;
31294 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31295 }
31296 }
31297 {
31298 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
31299 if (PyErr_Occurred()) SWIG_fail;
31300 }
31301 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
31302 return resultobj;
31303 fail:
31304 return NULL;
31305 }
31306
31307
31308 SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31309 PyObject *obj;
31310 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31311 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
31312 return SWIG_Py_Void();
31313 }
31314
31315 SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31316 PyObject *resultobj = 0;
31317 wxWindowDC *arg1 = 0 ;
31318 wxGCDC *result = 0 ;
31319 void *argp1 = 0 ;
31320 int res1 = 0 ;
31321
31322 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
31324 if (!SWIG_IsOK(res1)) {
31325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31326 }
31327 if (!argp1) {
31328 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31329 }
31330 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
31331 {
31332 if (!wxPyCheckForApp()) SWIG_fail;
31333 PyThreadState* __tstate = wxPyBeginAllowThreads();
31334 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
31335 wxPyEndAllowThreads(__tstate);
31336 if (PyErr_Occurred()) SWIG_fail;
31337 }
31338 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
31339 return resultobj;
31340 fail:
31341 return NULL;
31342 }
31343
31344
31345 SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31346 PyObject *resultobj = 0;
31347 wxWindow *arg1 = (wxWindow *) 0 ;
31348 wxGCDC *result = 0 ;
31349 void *argp1 = 0 ;
31350 int res1 = 0 ;
31351
31352 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31354 if (!SWIG_IsOK(res1)) {
31355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'");
31356 }
31357 arg1 = reinterpret_cast< wxWindow * >(argp1);
31358 {
31359 if (!wxPyCheckForApp()) SWIG_fail;
31360 PyThreadState* __tstate = wxPyBeginAllowThreads();
31361 result = (wxGCDC *)new wxGCDC(arg1);
31362 wxPyEndAllowThreads(__tstate);
31363 if (PyErr_Occurred()) SWIG_fail;
31364 }
31365 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
31366 return resultobj;
31367 fail:
31368 return NULL;
31369 }
31370
31371
31372 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) {
31373 int argc;
31374 PyObject *argv[2];
31375
31376 if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail;
31377 --argc;
31378 if (argc == 1) {
31379 int _v = 0;
31380 {
31381 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
31382 _v = SWIG_CheckState(res);
31383 }
31384 if (!_v) goto check_1;
31385 return _wrap_new_GCDC__SWIG_0(self, argc, argv);
31386 }
31387 check_1:
31388
31389 if (argc == 1) {
31390 return _wrap_new_GCDC__SWIG_1(self, argc, argv);
31391 }
31392
31393 fail:
31394 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'");
31395 return NULL;
31396 }
31397
31398
31399 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31400 PyObject *resultobj = 0;
31401 wxGCDC *arg1 = (wxGCDC *) 0 ;
31402 void *argp1 = 0 ;
31403 int res1 = 0 ;
31404 PyObject *swig_obj[1] ;
31405
31406 if (!args) SWIG_fail;
31407 swig_obj[0] = args;
31408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
31409 if (!SWIG_IsOK(res1)) {
31410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
31411 }
31412 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31413 {
31414 delete arg1;
31415
31416 if (PyErr_Occurred()) SWIG_fail;
31417 }
31418 resultobj = SWIG_Py_Void();
31419 return resultobj;
31420 fail:
31421 return NULL;
31422 }
31423
31424
31425 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31426 PyObject *resultobj = 0;
31427 wxGCDC *arg1 = (wxGCDC *) 0 ;
31428 wxGraphicsContext *result = 0 ;
31429 void *argp1 = 0 ;
31430 int res1 = 0 ;
31431 PyObject *swig_obj[1] ;
31432
31433 if (!args) SWIG_fail;
31434 swig_obj[0] = args;
31435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31436 if (!SWIG_IsOK(res1)) {
31437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
31438 }
31439 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31440 {
31441 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
31442 if (PyErr_Occurred()) SWIG_fail;
31443 }
31444 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31445 return resultobj;
31446 fail:
31447 return NULL;
31448 }
31449
31450
31451 SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31452 PyObject *resultobj = 0;
31453 wxGCDC *arg1 = (wxGCDC *) 0 ;
31454 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
31455 void *argp1 = 0 ;
31456 int res1 = 0 ;
31457 void *argp2 = 0 ;
31458 int res2 = 0 ;
31459 PyObject * obj0 = 0 ;
31460 PyObject * obj1 = 0 ;
31461 char * kwnames[] = {
31462 (char *) "self",(char *) "ctx", NULL
31463 };
31464
31465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
31466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31467 if (!SWIG_IsOK(res1)) {
31468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
31469 }
31470 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31471 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31472 if (!SWIG_IsOK(res2)) {
31473 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
31474 }
31475 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
31476 {
31477 (arg1)->SetGraphicsContext(arg2);
31478 if (PyErr_Occurred()) SWIG_fail;
31479 }
31480 resultobj = SWIG_Py_Void();
31481 return resultobj;
31482 fail:
31483 return NULL;
31484 }
31485
31486
31487 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31488 PyObject *obj;
31489 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31490 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
31491 return SWIG_Py_Void();
31492 }
31493
31494 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31495 return SWIG_Python_InitShadowInstance(args);
31496 }
31497
31498 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31499 PyObject *resultobj = 0;
31500 wxOverlay *result = 0 ;
31501
31502 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
31503 {
31504 PyThreadState* __tstate = wxPyBeginAllowThreads();
31505 result = (wxOverlay *)new wxOverlay();
31506 wxPyEndAllowThreads(__tstate);
31507 if (PyErr_Occurred()) SWIG_fail;
31508 }
31509 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
31510 return resultobj;
31511 fail:
31512 return NULL;
31513 }
31514
31515
31516 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31517 PyObject *resultobj = 0;
31518 wxOverlay *arg1 = (wxOverlay *) 0 ;
31519 void *argp1 = 0 ;
31520 int res1 = 0 ;
31521 PyObject *swig_obj[1] ;
31522
31523 if (!args) SWIG_fail;
31524 swig_obj[0] = args;
31525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
31526 if (!SWIG_IsOK(res1)) {
31527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
31528 }
31529 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31530 {
31531 PyThreadState* __tstate = wxPyBeginAllowThreads();
31532 delete arg1;
31533
31534 wxPyEndAllowThreads(__tstate);
31535 if (PyErr_Occurred()) SWIG_fail;
31536 }
31537 resultobj = SWIG_Py_Void();
31538 return resultobj;
31539 fail:
31540 return NULL;
31541 }
31542
31543
31544 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31545 PyObject *resultobj = 0;
31546 wxOverlay *arg1 = (wxOverlay *) 0 ;
31547 void *argp1 = 0 ;
31548 int res1 = 0 ;
31549 PyObject *swig_obj[1] ;
31550
31551 if (!args) SWIG_fail;
31552 swig_obj[0] = args;
31553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
31554 if (!SWIG_IsOK(res1)) {
31555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
31556 }
31557 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31558 {
31559 PyThreadState* __tstate = wxPyBeginAllowThreads();
31560 (arg1)->Reset();
31561 wxPyEndAllowThreads(__tstate);
31562 if (PyErr_Occurred()) SWIG_fail;
31563 }
31564 resultobj = SWIG_Py_Void();
31565 return resultobj;
31566 fail:
31567 return NULL;
31568 }
31569
31570
31571 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31572 PyObject *obj;
31573 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31574 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
31575 return SWIG_Py_Void();
31576 }
31577
31578 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31579 return SWIG_Python_InitShadowInstance(args);
31580 }
31581
31582 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31583 PyObject *resultobj = 0;
31584 wxOverlay *arg1 = 0 ;
31585 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31586 int arg3 ;
31587 int arg4 ;
31588 int arg5 ;
31589 int arg6 ;
31590 wxDCOverlay *result = 0 ;
31591 void *argp1 = 0 ;
31592 int res1 = 0 ;
31593 void *argp2 = 0 ;
31594 int res2 = 0 ;
31595 int val3 ;
31596 int ecode3 = 0 ;
31597 int val4 ;
31598 int ecode4 = 0 ;
31599 int val5 ;
31600 int ecode5 = 0 ;
31601 int val6 ;
31602 int ecode6 = 0 ;
31603
31604 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
31605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31606 if (!SWIG_IsOK(res1)) {
31607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31608 }
31609 if (!argp1) {
31610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31611 }
31612 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31613 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31614 if (!SWIG_IsOK(res2)) {
31615 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31616 }
31617 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31618 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
31619 if (!SWIG_IsOK(ecode3)) {
31620 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
31621 }
31622 arg3 = static_cast< int >(val3);
31623 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
31624 if (!SWIG_IsOK(ecode4)) {
31625 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
31626 }
31627 arg4 = static_cast< int >(val4);
31628 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
31629 if (!SWIG_IsOK(ecode5)) {
31630 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
31631 }
31632 arg5 = static_cast< int >(val5);
31633 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
31634 if (!SWIG_IsOK(ecode6)) {
31635 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
31636 }
31637 arg6 = static_cast< int >(val6);
31638 {
31639 PyThreadState* __tstate = wxPyBeginAllowThreads();
31640 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
31641 wxPyEndAllowThreads(__tstate);
31642 if (PyErr_Occurred()) SWIG_fail;
31643 }
31644 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31645 return resultobj;
31646 fail:
31647 return NULL;
31648 }
31649
31650
31651 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31652 PyObject *resultobj = 0;
31653 wxOverlay *arg1 = 0 ;
31654 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31655 wxDCOverlay *result = 0 ;
31656 void *argp1 = 0 ;
31657 int res1 = 0 ;
31658 void *argp2 = 0 ;
31659 int res2 = 0 ;
31660
31661 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31663 if (!SWIG_IsOK(res1)) {
31664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31665 }
31666 if (!argp1) {
31667 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31668 }
31669 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31670 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31671 if (!SWIG_IsOK(res2)) {
31672 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31673 }
31674 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31675 {
31676 PyThreadState* __tstate = wxPyBeginAllowThreads();
31677 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
31678 wxPyEndAllowThreads(__tstate);
31679 if (PyErr_Occurred()) SWIG_fail;
31680 }
31681 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31682 return resultobj;
31683 fail:
31684 return NULL;
31685 }
31686
31687
31688 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
31689 int argc;
31690 PyObject *argv[7];
31691
31692 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
31693 --argc;
31694 if (argc == 2) {
31695 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
31696 }
31697 if (argc == 6) {
31698 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
31699 }
31700
31701 fail:
31702 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
31703 return NULL;
31704 }
31705
31706
31707 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31708 PyObject *resultobj = 0;
31709 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31710 void *argp1 = 0 ;
31711 int res1 = 0 ;
31712 PyObject *swig_obj[1] ;
31713
31714 if (!args) SWIG_fail;
31715 swig_obj[0] = args;
31716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
31717 if (!SWIG_IsOK(res1)) {
31718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31719 }
31720 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31721 {
31722 PyThreadState* __tstate = wxPyBeginAllowThreads();
31723 delete arg1;
31724
31725 wxPyEndAllowThreads(__tstate);
31726 if (PyErr_Occurred()) SWIG_fail;
31727 }
31728 resultobj = SWIG_Py_Void();
31729 return resultobj;
31730 fail:
31731 return NULL;
31732 }
31733
31734
31735 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31736 PyObject *resultobj = 0;
31737 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31738 void *argp1 = 0 ;
31739 int res1 = 0 ;
31740 PyObject *swig_obj[1] ;
31741
31742 if (!args) SWIG_fail;
31743 swig_obj[0] = args;
31744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
31745 if (!SWIG_IsOK(res1)) {
31746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31747 }
31748 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31749 {
31750 PyThreadState* __tstate = wxPyBeginAllowThreads();
31751 (arg1)->Clear();
31752 wxPyEndAllowThreads(__tstate);
31753 if (PyErr_Occurred()) SWIG_fail;
31754 }
31755 resultobj = SWIG_Py_Void();
31756 return resultobj;
31757 fail:
31758 return NULL;
31759 }
31760
31761
31762 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31763 PyObject *obj;
31764 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31765 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
31766 return SWIG_Py_Void();
31767 }
31768
31769 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31770 return SWIG_Python_InitShadowInstance(args);
31771 }
31772
31773 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31774 PyObject *resultobj = 0;
31775 int arg1 ;
31776 int arg2 ;
31777 int arg3 = (int) true ;
31778 int arg4 = (int) 1 ;
31779 wxImageList *result = 0 ;
31780 int val1 ;
31781 int ecode1 = 0 ;
31782 int val2 ;
31783 int ecode2 = 0 ;
31784 int val3 ;
31785 int ecode3 = 0 ;
31786 int val4 ;
31787 int ecode4 = 0 ;
31788 PyObject * obj0 = 0 ;
31789 PyObject * obj1 = 0 ;
31790 PyObject * obj2 = 0 ;
31791 PyObject * obj3 = 0 ;
31792 char * kwnames[] = {
31793 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
31794 };
31795
31796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31797 ecode1 = SWIG_AsVal_int(obj0, &val1);
31798 if (!SWIG_IsOK(ecode1)) {
31799 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
31800 }
31801 arg1 = static_cast< int >(val1);
31802 ecode2 = SWIG_AsVal_int(obj1, &val2);
31803 if (!SWIG_IsOK(ecode2)) {
31804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
31805 }
31806 arg2 = static_cast< int >(val2);
31807 if (obj2) {
31808 ecode3 = SWIG_AsVal_int(obj2, &val3);
31809 if (!SWIG_IsOK(ecode3)) {
31810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
31811 }
31812 arg3 = static_cast< int >(val3);
31813 }
31814 if (obj3) {
31815 ecode4 = SWIG_AsVal_int(obj3, &val4);
31816 if (!SWIG_IsOK(ecode4)) {
31817 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
31818 }
31819 arg4 = static_cast< int >(val4);
31820 }
31821 {
31822 if (!wxPyCheckForApp()) SWIG_fail;
31823 PyThreadState* __tstate = wxPyBeginAllowThreads();
31824 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
31825 wxPyEndAllowThreads(__tstate);
31826 if (PyErr_Occurred()) SWIG_fail;
31827 }
31828 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
31829 return resultobj;
31830 fail:
31831 return NULL;
31832 }
31833
31834
31835 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31836 PyObject *resultobj = 0;
31837 wxImageList *arg1 = (wxImageList *) 0 ;
31838 void *argp1 = 0 ;
31839 int res1 = 0 ;
31840 PyObject *swig_obj[1] ;
31841
31842 if (!args) SWIG_fail;
31843 swig_obj[0] = args;
31844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
31845 if (!SWIG_IsOK(res1)) {
31846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
31847 }
31848 arg1 = reinterpret_cast< wxImageList * >(argp1);
31849 {
31850 PyThreadState* __tstate = wxPyBeginAllowThreads();
31851 delete arg1;
31852
31853 wxPyEndAllowThreads(__tstate);
31854 if (PyErr_Occurred()) SWIG_fail;
31855 }
31856 resultobj = SWIG_Py_Void();
31857 return resultobj;
31858 fail:
31859 return NULL;
31860 }
31861
31862
31863 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31864 PyObject *resultobj = 0;
31865 wxImageList *arg1 = (wxImageList *) 0 ;
31866 wxBitmap *arg2 = 0 ;
31867 wxBitmap const &arg3_defvalue = wxNullBitmap ;
31868 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
31869 int result;
31870 void *argp1 = 0 ;
31871 int res1 = 0 ;
31872 void *argp2 = 0 ;
31873 int res2 = 0 ;
31874 void *argp3 = 0 ;
31875 int res3 = 0 ;
31876 PyObject * obj0 = 0 ;
31877 PyObject * obj1 = 0 ;
31878 PyObject * obj2 = 0 ;
31879 char * kwnames[] = {
31880 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
31881 };
31882
31883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31885 if (!SWIG_IsOK(res1)) {
31886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
31887 }
31888 arg1 = reinterpret_cast< wxImageList * >(argp1);
31889 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31890 if (!SWIG_IsOK(res2)) {
31891 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31892 }
31893 if (!argp2) {
31894 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31895 }
31896 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31897 if (obj2) {
31898 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31899 if (!SWIG_IsOK(res3)) {
31900 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31901 }
31902 if (!argp3) {
31903 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31904 }
31905 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31906 }
31907 {
31908 PyThreadState* __tstate = wxPyBeginAllowThreads();
31909 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
31910 wxPyEndAllowThreads(__tstate);
31911 if (PyErr_Occurred()) SWIG_fail;
31912 }
31913 resultobj = SWIG_From_int(static_cast< int >(result));
31914 return resultobj;
31915 fail:
31916 return NULL;
31917 }
31918
31919
31920 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31921 PyObject *resultobj = 0;
31922 wxImageList *arg1 = (wxImageList *) 0 ;
31923 wxBitmap *arg2 = 0 ;
31924 wxColour *arg3 = 0 ;
31925 int result;
31926 void *argp1 = 0 ;
31927 int res1 = 0 ;
31928 void *argp2 = 0 ;
31929 int res2 = 0 ;
31930 wxColour temp3 ;
31931 PyObject * obj0 = 0 ;
31932 PyObject * obj1 = 0 ;
31933 PyObject * obj2 = 0 ;
31934 char * kwnames[] = {
31935 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
31936 };
31937
31938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31940 if (!SWIG_IsOK(res1)) {
31941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
31942 }
31943 arg1 = reinterpret_cast< wxImageList * >(argp1);
31944 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31945 if (!SWIG_IsOK(res2)) {
31946 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31947 }
31948 if (!argp2) {
31949 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31950 }
31951 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31952 {
31953 arg3 = &temp3;
31954 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31955 }
31956 {
31957 PyThreadState* __tstate = wxPyBeginAllowThreads();
31958 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31959 wxPyEndAllowThreads(__tstate);
31960 if (PyErr_Occurred()) SWIG_fail;
31961 }
31962 resultobj = SWIG_From_int(static_cast< int >(result));
31963 return resultobj;
31964 fail:
31965 return NULL;
31966 }
31967
31968
31969 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31970 PyObject *resultobj = 0;
31971 wxImageList *arg1 = (wxImageList *) 0 ;
31972 wxIcon *arg2 = 0 ;
31973 int result;
31974 void *argp1 = 0 ;
31975 int res1 = 0 ;
31976 void *argp2 = 0 ;
31977 int res2 = 0 ;
31978 PyObject * obj0 = 0 ;
31979 PyObject * obj1 = 0 ;
31980 char * kwnames[] = {
31981 (char *) "self",(char *) "icon", NULL
31982 };
31983
31984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31986 if (!SWIG_IsOK(res1)) {
31987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31988 }
31989 arg1 = reinterpret_cast< wxImageList * >(argp1);
31990 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31991 if (!SWIG_IsOK(res2)) {
31992 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31993 }
31994 if (!argp2) {
31995 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31996 }
31997 arg2 = reinterpret_cast< wxIcon * >(argp2);
31998 {
31999 PyThreadState* __tstate = wxPyBeginAllowThreads();
32000 result = (int)(arg1)->Add((wxIcon const &)*arg2);
32001 wxPyEndAllowThreads(__tstate);
32002 if (PyErr_Occurred()) SWIG_fail;
32003 }
32004 resultobj = SWIG_From_int(static_cast< int >(result));
32005 return resultobj;
32006 fail:
32007 return NULL;
32008 }
32009
32010
32011 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32012 PyObject *resultobj = 0;
32013 wxImageList *arg1 = (wxImageList *) 0 ;
32014 int arg2 ;
32015 SwigValueWrapper<wxBitmap > result;
32016 void *argp1 = 0 ;
32017 int res1 = 0 ;
32018 int val2 ;
32019 int ecode2 = 0 ;
32020 PyObject * obj0 = 0 ;
32021 PyObject * obj1 = 0 ;
32022 char * kwnames[] = {
32023 (char *) "self",(char *) "index", NULL
32024 };
32025
32026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
32027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32028 if (!SWIG_IsOK(res1)) {
32029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
32030 }
32031 arg1 = reinterpret_cast< wxImageList * >(argp1);
32032 ecode2 = SWIG_AsVal_int(obj1, &val2);
32033 if (!SWIG_IsOK(ecode2)) {
32034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
32035 }
32036 arg2 = static_cast< int >(val2);
32037 {
32038 PyThreadState* __tstate = wxPyBeginAllowThreads();
32039 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
32040 wxPyEndAllowThreads(__tstate);
32041 if (PyErr_Occurred()) SWIG_fail;
32042 }
32043 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
32044 return resultobj;
32045 fail:
32046 return NULL;
32047 }
32048
32049
32050 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32051 PyObject *resultobj = 0;
32052 wxImageList *arg1 = (wxImageList *) 0 ;
32053 int arg2 ;
32054 wxIcon result;
32055 void *argp1 = 0 ;
32056 int res1 = 0 ;
32057 int val2 ;
32058 int ecode2 = 0 ;
32059 PyObject * obj0 = 0 ;
32060 PyObject * obj1 = 0 ;
32061 char * kwnames[] = {
32062 (char *) "self",(char *) "index", NULL
32063 };
32064
32065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
32066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32067 if (!SWIG_IsOK(res1)) {
32068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
32069 }
32070 arg1 = reinterpret_cast< wxImageList * >(argp1);
32071 ecode2 = SWIG_AsVal_int(obj1, &val2);
32072 if (!SWIG_IsOK(ecode2)) {
32073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
32074 }
32075 arg2 = static_cast< int >(val2);
32076 {
32077 PyThreadState* __tstate = wxPyBeginAllowThreads();
32078 result = ((wxImageList const *)arg1)->GetIcon(arg2);
32079 wxPyEndAllowThreads(__tstate);
32080 if (PyErr_Occurred()) SWIG_fail;
32081 }
32082 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
32083 return resultobj;
32084 fail:
32085 return NULL;
32086 }
32087
32088
32089 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32090 PyObject *resultobj = 0;
32091 wxImageList *arg1 = (wxImageList *) 0 ;
32092 int arg2 ;
32093 wxBitmap *arg3 = 0 ;
32094 wxBitmap const &arg4_defvalue = wxNullBitmap ;
32095 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
32096 bool result;
32097 void *argp1 = 0 ;
32098 int res1 = 0 ;
32099 int val2 ;
32100 int ecode2 = 0 ;
32101 void *argp3 = 0 ;
32102 int res3 = 0 ;
32103 void *argp4 = 0 ;
32104 int res4 = 0 ;
32105 PyObject * obj0 = 0 ;
32106 PyObject * obj1 = 0 ;
32107 PyObject * obj2 = 0 ;
32108 PyObject * obj3 = 0 ;
32109 char * kwnames[] = {
32110 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
32111 };
32112
32113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32115 if (!SWIG_IsOK(res1)) {
32116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
32117 }
32118 arg1 = reinterpret_cast< wxImageList * >(argp1);
32119 ecode2 = SWIG_AsVal_int(obj1, &val2);
32120 if (!SWIG_IsOK(ecode2)) {
32121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
32122 }
32123 arg2 = static_cast< int >(val2);
32124 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
32125 if (!SWIG_IsOK(res3)) {
32126 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32127 }
32128 if (!argp3) {
32129 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32130 }
32131 arg3 = reinterpret_cast< wxBitmap * >(argp3);
32132 if (obj3) {
32133 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
32134 if (!SWIG_IsOK(res4)) {
32135 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
32136 }
32137 if (!argp4) {
32138 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
32139 }
32140 arg4 = reinterpret_cast< wxBitmap * >(argp4);
32141 }
32142 {
32143 PyThreadState* __tstate = wxPyBeginAllowThreads();
32144 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
32145 wxPyEndAllowThreads(__tstate);
32146 if (PyErr_Occurred()) SWIG_fail;
32147 }
32148 {
32149 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32150 }
32151 return resultobj;
32152 fail:
32153 return NULL;
32154 }
32155
32156
32157 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32158 PyObject *resultobj = 0;
32159 wxImageList *arg1 = (wxImageList *) 0 ;
32160 int arg2 ;
32161 wxDC *arg3 = 0 ;
32162 int arg4 ;
32163 int arg5 ;
32164 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
32165 bool arg7 = (bool) (bool)false ;
32166 bool result;
32167 void *argp1 = 0 ;
32168 int res1 = 0 ;
32169 int val2 ;
32170 int ecode2 = 0 ;
32171 void *argp3 = 0 ;
32172 int res3 = 0 ;
32173 int val4 ;
32174 int ecode4 = 0 ;
32175 int val5 ;
32176 int ecode5 = 0 ;
32177 int val6 ;
32178 int ecode6 = 0 ;
32179 bool val7 ;
32180 int ecode7 = 0 ;
32181 PyObject * obj0 = 0 ;
32182 PyObject * obj1 = 0 ;
32183 PyObject * obj2 = 0 ;
32184 PyObject * obj3 = 0 ;
32185 PyObject * obj4 = 0 ;
32186 PyObject * obj5 = 0 ;
32187 PyObject * obj6 = 0 ;
32188 char * kwnames[] = {
32189 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
32190 };
32191
32192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32194 if (!SWIG_IsOK(res1)) {
32195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
32196 }
32197 arg1 = reinterpret_cast< wxImageList * >(argp1);
32198 ecode2 = SWIG_AsVal_int(obj1, &val2);
32199 if (!SWIG_IsOK(ecode2)) {
32200 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
32201 }
32202 arg2 = static_cast< int >(val2);
32203 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
32204 if (!SWIG_IsOK(res3)) {
32205 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32206 }
32207 if (!argp3) {
32208 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32209 }
32210 arg3 = reinterpret_cast< wxDC * >(argp3);
32211 ecode4 = SWIG_AsVal_int(obj3, &val4);
32212 if (!SWIG_IsOK(ecode4)) {
32213 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
32214 }
32215 arg4 = static_cast< int >(val4);
32216 ecode5 = SWIG_AsVal_int(obj4, &val5);
32217 if (!SWIG_IsOK(ecode5)) {
32218 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
32219 }
32220 arg5 = static_cast< int >(val5);
32221 if (obj5) {
32222 ecode6 = SWIG_AsVal_int(obj5, &val6);
32223 if (!SWIG_IsOK(ecode6)) {
32224 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
32225 }
32226 arg6 = static_cast< int >(val6);
32227 }
32228 if (obj6) {
32229 ecode7 = SWIG_AsVal_bool(obj6, &val7);
32230 if (!SWIG_IsOK(ecode7)) {
32231 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
32232 }
32233 arg7 = static_cast< bool >(val7);
32234 }
32235 {
32236 PyThreadState* __tstate = wxPyBeginAllowThreads();
32237 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
32238 wxPyEndAllowThreads(__tstate);
32239 if (PyErr_Occurred()) SWIG_fail;
32240 }
32241 {
32242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32243 }
32244 return resultobj;
32245 fail:
32246 return NULL;
32247 }
32248
32249
32250 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32251 PyObject *resultobj = 0;
32252 wxImageList *arg1 = (wxImageList *) 0 ;
32253 int result;
32254 void *argp1 = 0 ;
32255 int res1 = 0 ;
32256 PyObject *swig_obj[1] ;
32257
32258 if (!args) SWIG_fail;
32259 swig_obj[0] = args;
32260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32261 if (!SWIG_IsOK(res1)) {
32262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
32263 }
32264 arg1 = reinterpret_cast< wxImageList * >(argp1);
32265 {
32266 PyThreadState* __tstate = wxPyBeginAllowThreads();
32267 result = (int)(arg1)->GetImageCount();
32268 wxPyEndAllowThreads(__tstate);
32269 if (PyErr_Occurred()) SWIG_fail;
32270 }
32271 resultobj = SWIG_From_int(static_cast< int >(result));
32272 return resultobj;
32273 fail:
32274 return NULL;
32275 }
32276
32277
32278 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32279 PyObject *resultobj = 0;
32280 wxImageList *arg1 = (wxImageList *) 0 ;
32281 int arg2 ;
32282 bool result;
32283 void *argp1 = 0 ;
32284 int res1 = 0 ;
32285 int val2 ;
32286 int ecode2 = 0 ;
32287 PyObject * obj0 = 0 ;
32288 PyObject * obj1 = 0 ;
32289 char * kwnames[] = {
32290 (char *) "self",(char *) "index", NULL
32291 };
32292
32293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
32294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32295 if (!SWIG_IsOK(res1)) {
32296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
32297 }
32298 arg1 = reinterpret_cast< wxImageList * >(argp1);
32299 ecode2 = SWIG_AsVal_int(obj1, &val2);
32300 if (!SWIG_IsOK(ecode2)) {
32301 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
32302 }
32303 arg2 = static_cast< int >(val2);
32304 {
32305 PyThreadState* __tstate = wxPyBeginAllowThreads();
32306 result = (bool)(arg1)->Remove(arg2);
32307 wxPyEndAllowThreads(__tstate);
32308 if (PyErr_Occurred()) SWIG_fail;
32309 }
32310 {
32311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32312 }
32313 return resultobj;
32314 fail:
32315 return NULL;
32316 }
32317
32318
32319 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32320 PyObject *resultobj = 0;
32321 wxImageList *arg1 = (wxImageList *) 0 ;
32322 bool result;
32323 void *argp1 = 0 ;
32324 int res1 = 0 ;
32325 PyObject *swig_obj[1] ;
32326
32327 if (!args) SWIG_fail;
32328 swig_obj[0] = args;
32329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32330 if (!SWIG_IsOK(res1)) {
32331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
32332 }
32333 arg1 = reinterpret_cast< wxImageList * >(argp1);
32334 {
32335 PyThreadState* __tstate = wxPyBeginAllowThreads();
32336 result = (bool)(arg1)->RemoveAll();
32337 wxPyEndAllowThreads(__tstate);
32338 if (PyErr_Occurred()) SWIG_fail;
32339 }
32340 {
32341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32342 }
32343 return resultobj;
32344 fail:
32345 return NULL;
32346 }
32347
32348
32349 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32350 PyObject *resultobj = 0;
32351 wxImageList *arg1 = (wxImageList *) 0 ;
32352 int arg2 ;
32353 int *arg3 = 0 ;
32354 int *arg4 = 0 ;
32355 void *argp1 = 0 ;
32356 int res1 = 0 ;
32357 int val2 ;
32358 int ecode2 = 0 ;
32359 int temp3 ;
32360 int res3 = SWIG_TMPOBJ ;
32361 int temp4 ;
32362 int res4 = SWIG_TMPOBJ ;
32363 PyObject * obj0 = 0 ;
32364 PyObject * obj1 = 0 ;
32365 char * kwnames[] = {
32366 (char *) "self",(char *) "index", NULL
32367 };
32368
32369 arg3 = &temp3;
32370 arg4 = &temp4;
32371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
32372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32373 if (!SWIG_IsOK(res1)) {
32374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
32375 }
32376 arg1 = reinterpret_cast< wxImageList * >(argp1);
32377 ecode2 = SWIG_AsVal_int(obj1, &val2);
32378 if (!SWIG_IsOK(ecode2)) {
32379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
32380 }
32381 arg2 = static_cast< int >(val2);
32382 {
32383 PyThreadState* __tstate = wxPyBeginAllowThreads();
32384 (arg1)->GetSize(arg2,*arg3,*arg4);
32385 wxPyEndAllowThreads(__tstate);
32386 if (PyErr_Occurred()) SWIG_fail;
32387 }
32388 resultobj = SWIG_Py_Void();
32389 if (SWIG_IsTmpObj(res3)) {
32390 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
32391 } else {
32392 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32393 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
32394 }
32395 if (SWIG_IsTmpObj(res4)) {
32396 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
32397 } else {
32398 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32399 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
32400 }
32401 return resultobj;
32402 fail:
32403 return NULL;
32404 }
32405
32406
32407 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32408 PyObject *obj;
32409 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32410 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
32411 return SWIG_Py_Void();
32412 }
32413
32414 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32415 return SWIG_Python_InitShadowInstance(args);
32416 }
32417
32418 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32419 PyObject *resultobj = 0;
32420 wxStockGDI *result = 0 ;
32421
32422 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
32423 {
32424 PyThreadState* __tstate = wxPyBeginAllowThreads();
32425 result = (wxStockGDI *)new wxStockGDI();
32426 wxPyEndAllowThreads(__tstate);
32427 if (PyErr_Occurred()) SWIG_fail;
32428 }
32429 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
32430 return resultobj;
32431 fail:
32432 return NULL;
32433 }
32434
32435
32436 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32437 PyObject *resultobj = 0;
32438 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32439 void *argp1 = 0 ;
32440 int res1 = 0 ;
32441 PyObject *swig_obj[1] ;
32442
32443 if (!args) SWIG_fail;
32444 swig_obj[0] = args;
32445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
32446 if (!SWIG_IsOK(res1)) {
32447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32448 }
32449 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32450 {
32451 PyThreadState* __tstate = wxPyBeginAllowThreads();
32452 delete arg1;
32453
32454 wxPyEndAllowThreads(__tstate);
32455 if (PyErr_Occurred()) SWIG_fail;
32456 }
32457 resultobj = SWIG_Py_Void();
32458 return resultobj;
32459 fail:
32460 return NULL;
32461 }
32462
32463
32464 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32465 PyObject *resultobj = 0;
32466
32467 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
32468 {
32469 PyThreadState* __tstate = wxPyBeginAllowThreads();
32470 wxStockGDI::DeleteAll();
32471 wxPyEndAllowThreads(__tstate);
32472 if (PyErr_Occurred()) SWIG_fail;
32473 }
32474 resultobj = SWIG_Py_Void();
32475 return resultobj;
32476 fail:
32477 return NULL;
32478 }
32479
32480
32481 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32482 PyObject *resultobj = 0;
32483 wxStockGDI *result = 0 ;
32484
32485 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
32486 {
32487 PyThreadState* __tstate = wxPyBeginAllowThreads();
32488 {
32489 wxStockGDI &_result_ref = wxStockGDI::instance();
32490 result = (wxStockGDI *) &_result_ref;
32491 }
32492 wxPyEndAllowThreads(__tstate);
32493 if (PyErr_Occurred()) SWIG_fail;
32494 }
32495 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
32496 return resultobj;
32497 fail:
32498 return NULL;
32499 }
32500
32501
32502 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32503 PyObject *resultobj = 0;
32504 wxStockGDI::Item arg1 ;
32505 wxBrush *result = 0 ;
32506 int val1 ;
32507 int ecode1 = 0 ;
32508 PyObject * obj0 = 0 ;
32509 char * kwnames[] = {
32510 (char *) "item", NULL
32511 };
32512
32513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
32514 ecode1 = SWIG_AsVal_int(obj0, &val1);
32515 if (!SWIG_IsOK(ecode1)) {
32516 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32517 }
32518 arg1 = static_cast< wxStockGDI::Item >(val1);
32519 {
32520 PyThreadState* __tstate = wxPyBeginAllowThreads();
32521 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
32522 wxPyEndAllowThreads(__tstate);
32523 if (PyErr_Occurred()) SWIG_fail;
32524 }
32525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32526 return resultobj;
32527 fail:
32528 return NULL;
32529 }
32530
32531
32532 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32533 PyObject *resultobj = 0;
32534 wxStockGDI::Item arg1 ;
32535 wxColour *result = 0 ;
32536 int val1 ;
32537 int ecode1 = 0 ;
32538 PyObject * obj0 = 0 ;
32539 char * kwnames[] = {
32540 (char *) "item", NULL
32541 };
32542
32543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
32544 ecode1 = SWIG_AsVal_int(obj0, &val1);
32545 if (!SWIG_IsOK(ecode1)) {
32546 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32547 }
32548 arg1 = static_cast< wxStockGDI::Item >(val1);
32549 {
32550 PyThreadState* __tstate = wxPyBeginAllowThreads();
32551 result = (wxColour *)wxStockGDI::GetColour(arg1);
32552 wxPyEndAllowThreads(__tstate);
32553 if (PyErr_Occurred()) SWIG_fail;
32554 }
32555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
32556 return resultobj;
32557 fail:
32558 return NULL;
32559 }
32560
32561
32562 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32563 PyObject *resultobj = 0;
32564 wxStockGDI::Item arg1 ;
32565 wxCursor *result = 0 ;
32566 int val1 ;
32567 int ecode1 = 0 ;
32568 PyObject * obj0 = 0 ;
32569 char * kwnames[] = {
32570 (char *) "item", NULL
32571 };
32572
32573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
32574 ecode1 = SWIG_AsVal_int(obj0, &val1);
32575 if (!SWIG_IsOK(ecode1)) {
32576 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32577 }
32578 arg1 = static_cast< wxStockGDI::Item >(val1);
32579 {
32580 PyThreadState* __tstate = wxPyBeginAllowThreads();
32581 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
32582 wxPyEndAllowThreads(__tstate);
32583 if (PyErr_Occurred()) SWIG_fail;
32584 }
32585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
32586 return resultobj;
32587 fail:
32588 return NULL;
32589 }
32590
32591
32592 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32593 PyObject *resultobj = 0;
32594 wxStockGDI::Item arg1 ;
32595 wxPen *result = 0 ;
32596 int val1 ;
32597 int ecode1 = 0 ;
32598 PyObject * obj0 = 0 ;
32599 char * kwnames[] = {
32600 (char *) "item", NULL
32601 };
32602
32603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
32604 ecode1 = SWIG_AsVal_int(obj0, &val1);
32605 if (!SWIG_IsOK(ecode1)) {
32606 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32607 }
32608 arg1 = static_cast< wxStockGDI::Item >(val1);
32609 {
32610 PyThreadState* __tstate = wxPyBeginAllowThreads();
32611 result = (wxPen *)wxStockGDI::GetPen(arg1);
32612 wxPyEndAllowThreads(__tstate);
32613 if (PyErr_Occurred()) SWIG_fail;
32614 }
32615 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32616 return resultobj;
32617 fail:
32618 return NULL;
32619 }
32620
32621
32622 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32623 PyObject *resultobj = 0;
32624 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32625 wxStockGDI::Item arg2 ;
32626 wxFont *result = 0 ;
32627 void *argp1 = 0 ;
32628 int res1 = 0 ;
32629 int val2 ;
32630 int ecode2 = 0 ;
32631 PyObject * obj0 = 0 ;
32632 PyObject * obj1 = 0 ;
32633 char * kwnames[] = {
32634 (char *) "self",(char *) "item", NULL
32635 };
32636
32637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
32638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
32639 if (!SWIG_IsOK(res1)) {
32640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32641 }
32642 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32643 ecode2 = SWIG_AsVal_int(obj1, &val2);
32644 if (!SWIG_IsOK(ecode2)) {
32645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
32646 }
32647 arg2 = static_cast< wxStockGDI::Item >(val2);
32648 {
32649 PyThreadState* __tstate = wxPyBeginAllowThreads();
32650 result = (wxFont *)(arg1)->GetFont(arg2);
32651 wxPyEndAllowThreads(__tstate);
32652 if (PyErr_Occurred()) SWIG_fail;
32653 }
32654 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32655 return resultobj;
32656 fail:
32657 return NULL;
32658 }
32659
32660
32661 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32662 PyObject *obj;
32663 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32664 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
32665 return SWIG_Py_Void();
32666 }
32667
32668 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32669 return SWIG_Python_InitShadowInstance(args);
32670 }
32671
32672 SWIGINTERN int NullBitmap_set(PyObject *) {
32673 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
32674 return 1;
32675 }
32676
32677
32678 SWIGINTERN PyObject *NullBitmap_get(void) {
32679 PyObject *pyobj = 0;
32680
32681 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
32682 return pyobj;
32683 }
32684
32685
32686 SWIGINTERN int NullIcon_set(PyObject *) {
32687 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
32688 return 1;
32689 }
32690
32691
32692 SWIGINTERN PyObject *NullIcon_get(void) {
32693 PyObject *pyobj = 0;
32694
32695 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
32696 return pyobj;
32697 }
32698
32699
32700 SWIGINTERN int NullCursor_set(PyObject *) {
32701 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
32702 return 1;
32703 }
32704
32705
32706 SWIGINTERN PyObject *NullCursor_get(void) {
32707 PyObject *pyobj = 0;
32708
32709 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
32710 return pyobj;
32711 }
32712
32713
32714 SWIGINTERN int NullPen_set(PyObject *) {
32715 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
32716 return 1;
32717 }
32718
32719
32720 SWIGINTERN PyObject *NullPen_get(void) {
32721 PyObject *pyobj = 0;
32722
32723 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
32724 return pyobj;
32725 }
32726
32727
32728 SWIGINTERN int NullBrush_set(PyObject *) {
32729 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
32730 return 1;
32731 }
32732
32733
32734 SWIGINTERN PyObject *NullBrush_get(void) {
32735 PyObject *pyobj = 0;
32736
32737 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
32738 return pyobj;
32739 }
32740
32741
32742 SWIGINTERN int NullPalette_set(PyObject *) {
32743 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
32744 return 1;
32745 }
32746
32747
32748 SWIGINTERN PyObject *NullPalette_get(void) {
32749 PyObject *pyobj = 0;
32750
32751 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
32752 return pyobj;
32753 }
32754
32755
32756 SWIGINTERN int NullFont_set(PyObject *) {
32757 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
32758 return 1;
32759 }
32760
32761
32762 SWIGINTERN PyObject *NullFont_get(void) {
32763 PyObject *pyobj = 0;
32764
32765 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
32766 return pyobj;
32767 }
32768
32769
32770 SWIGINTERN int NullColour_set(PyObject *) {
32771 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
32772 return 1;
32773 }
32774
32775
32776 SWIGINTERN PyObject *NullColour_get(void) {
32777 PyObject *pyobj = 0;
32778
32779 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
32780 return pyobj;
32781 }
32782
32783
32784 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32785 PyObject *resultobj = 0;
32786 wxGDIObjListBase *result = 0 ;
32787
32788 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
32789 {
32790 PyThreadState* __tstate = wxPyBeginAllowThreads();
32791 result = (wxGDIObjListBase *)new wxGDIObjListBase();
32792 wxPyEndAllowThreads(__tstate);
32793 if (PyErr_Occurred()) SWIG_fail;
32794 }
32795 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
32796 return resultobj;
32797 fail:
32798 return NULL;
32799 }
32800
32801
32802 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32803 PyObject *resultobj = 0;
32804 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
32805 void *argp1 = 0 ;
32806 int res1 = 0 ;
32807 PyObject *swig_obj[1] ;
32808
32809 if (!args) SWIG_fail;
32810 swig_obj[0] = args;
32811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
32812 if (!SWIG_IsOK(res1)) {
32813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
32814 }
32815 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
32816 {
32817 PyThreadState* __tstate = wxPyBeginAllowThreads();
32818 delete arg1;
32819
32820 wxPyEndAllowThreads(__tstate);
32821 if (PyErr_Occurred()) SWIG_fail;
32822 }
32823 resultobj = SWIG_Py_Void();
32824 return resultobj;
32825 fail:
32826 return NULL;
32827 }
32828
32829
32830 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32831 PyObject *obj;
32832 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32833 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
32834 return SWIG_Py_Void();
32835 }
32836
32837 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32838 return SWIG_Python_InitShadowInstance(args);
32839 }
32840
32841 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32842 PyObject *resultobj = 0;
32843 wxPenList *arg1 = (wxPenList *) 0 ;
32844 wxColour *arg2 = 0 ;
32845 int arg3 ;
32846 int arg4 ;
32847 wxPen *result = 0 ;
32848 void *argp1 = 0 ;
32849 int res1 = 0 ;
32850 wxColour temp2 ;
32851 int val3 ;
32852 int ecode3 = 0 ;
32853 int val4 ;
32854 int ecode4 = 0 ;
32855 PyObject * obj0 = 0 ;
32856 PyObject * obj1 = 0 ;
32857 PyObject * obj2 = 0 ;
32858 PyObject * obj3 = 0 ;
32859 char * kwnames[] = {
32860 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
32861 };
32862
32863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32865 if (!SWIG_IsOK(res1)) {
32866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32867 }
32868 arg1 = reinterpret_cast< wxPenList * >(argp1);
32869 {
32870 arg2 = &temp2;
32871 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32872 }
32873 ecode3 = SWIG_AsVal_int(obj2, &val3);
32874 if (!SWIG_IsOK(ecode3)) {
32875 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
32876 }
32877 arg3 = static_cast< int >(val3);
32878 ecode4 = SWIG_AsVal_int(obj3, &val4);
32879 if (!SWIG_IsOK(ecode4)) {
32880 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
32881 }
32882 arg4 = static_cast< int >(val4);
32883 {
32884 PyThreadState* __tstate = wxPyBeginAllowThreads();
32885 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
32886 wxPyEndAllowThreads(__tstate);
32887 if (PyErr_Occurred()) SWIG_fail;
32888 }
32889 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32890 return resultobj;
32891 fail:
32892 return NULL;
32893 }
32894
32895
32896 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32897 PyObject *resultobj = 0;
32898 wxPenList *arg1 = (wxPenList *) 0 ;
32899 wxPen *arg2 = (wxPen *) 0 ;
32900 void *argp1 = 0 ;
32901 int res1 = 0 ;
32902 void *argp2 = 0 ;
32903 int res2 = 0 ;
32904 PyObject * obj0 = 0 ;
32905 PyObject * obj1 = 0 ;
32906 char * kwnames[] = {
32907 (char *) "self",(char *) "pen", NULL
32908 };
32909
32910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
32911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32912 if (!SWIG_IsOK(res1)) {
32913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
32914 }
32915 arg1 = reinterpret_cast< wxPenList * >(argp1);
32916 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32917 if (!SWIG_IsOK(res2)) {
32918 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
32919 }
32920 arg2 = reinterpret_cast< wxPen * >(argp2);
32921 {
32922 PyThreadState* __tstate = wxPyBeginAllowThreads();
32923 (arg1)->AddPen(arg2);
32924 wxPyEndAllowThreads(__tstate);
32925 if (PyErr_Occurred()) SWIG_fail;
32926 }
32927 resultobj = SWIG_Py_Void();
32928 return resultobj;
32929 fail:
32930 return NULL;
32931 }
32932
32933
32934 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32935 PyObject *resultobj = 0;
32936 wxPenList *arg1 = (wxPenList *) 0 ;
32937 wxPen *arg2 = (wxPen *) 0 ;
32938 void *argp1 = 0 ;
32939 int res1 = 0 ;
32940 void *argp2 = 0 ;
32941 int res2 = 0 ;
32942 PyObject * obj0 = 0 ;
32943 PyObject * obj1 = 0 ;
32944 char * kwnames[] = {
32945 (char *) "self",(char *) "pen", NULL
32946 };
32947
32948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
32949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32950 if (!SWIG_IsOK(res1)) {
32951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32952 }
32953 arg1 = reinterpret_cast< wxPenList * >(argp1);
32954 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32955 if (!SWIG_IsOK(res2)) {
32956 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
32957 }
32958 arg2 = reinterpret_cast< wxPen * >(argp2);
32959 {
32960 PyThreadState* __tstate = wxPyBeginAllowThreads();
32961 (arg1)->RemovePen(arg2);
32962 wxPyEndAllowThreads(__tstate);
32963 if (PyErr_Occurred()) SWIG_fail;
32964 }
32965 resultobj = SWIG_Py_Void();
32966 return resultobj;
32967 fail:
32968 return NULL;
32969 }
32970
32971
32972 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32973 PyObject *obj;
32974 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32975 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32976 return SWIG_Py_Void();
32977 }
32978
32979 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32980 PyObject *resultobj = 0;
32981 wxBrushList *arg1 = (wxBrushList *) 0 ;
32982 wxColour *arg2 = 0 ;
32983 int arg3 = (int) wxSOLID ;
32984 wxBrush *result = 0 ;
32985 void *argp1 = 0 ;
32986 int res1 = 0 ;
32987 wxColour temp2 ;
32988 int val3 ;
32989 int ecode3 = 0 ;
32990 PyObject * obj0 = 0 ;
32991 PyObject * obj1 = 0 ;
32992 PyObject * obj2 = 0 ;
32993 char * kwnames[] = {
32994 (char *) "self",(char *) "colour",(char *) "style", NULL
32995 };
32996
32997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32999 if (!SWIG_IsOK(res1)) {
33000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
33001 }
33002 arg1 = reinterpret_cast< wxBrushList * >(argp1);
33003 {
33004 arg2 = &temp2;
33005 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33006 }
33007 if (obj2) {
33008 ecode3 = SWIG_AsVal_int(obj2, &val3);
33009 if (!SWIG_IsOK(ecode3)) {
33010 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
33011 }
33012 arg3 = static_cast< int >(val3);
33013 }
33014 {
33015 PyThreadState* __tstate = wxPyBeginAllowThreads();
33016 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
33017 wxPyEndAllowThreads(__tstate);
33018 if (PyErr_Occurred()) SWIG_fail;
33019 }
33020 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
33021 return resultobj;
33022 fail:
33023 return NULL;
33024 }
33025
33026
33027 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33028 PyObject *resultobj = 0;
33029 wxBrushList *arg1 = (wxBrushList *) 0 ;
33030 wxBrush *arg2 = (wxBrush *) 0 ;
33031 void *argp1 = 0 ;
33032 int res1 = 0 ;
33033 void *argp2 = 0 ;
33034 int res2 = 0 ;
33035 PyObject * obj0 = 0 ;
33036 PyObject * obj1 = 0 ;
33037 char * kwnames[] = {
33038 (char *) "self",(char *) "brush", NULL
33039 };
33040
33041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
33042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
33043 if (!SWIG_IsOK(res1)) {
33044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
33045 }
33046 arg1 = reinterpret_cast< wxBrushList * >(argp1);
33047 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
33048 if (!SWIG_IsOK(res2)) {
33049 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
33050 }
33051 arg2 = reinterpret_cast< wxBrush * >(argp2);
33052 {
33053 PyThreadState* __tstate = wxPyBeginAllowThreads();
33054 (arg1)->AddBrush(arg2);
33055 wxPyEndAllowThreads(__tstate);
33056 if (PyErr_Occurred()) SWIG_fail;
33057 }
33058 resultobj = SWIG_Py_Void();
33059 return resultobj;
33060 fail:
33061 return NULL;
33062 }
33063
33064
33065 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33066 PyObject *resultobj = 0;
33067 wxBrushList *arg1 = (wxBrushList *) 0 ;
33068 wxBrush *arg2 = (wxBrush *) 0 ;
33069 void *argp1 = 0 ;
33070 int res1 = 0 ;
33071 void *argp2 = 0 ;
33072 int res2 = 0 ;
33073 PyObject * obj0 = 0 ;
33074 PyObject * obj1 = 0 ;
33075 char * kwnames[] = {
33076 (char *) "self",(char *) "brush", NULL
33077 };
33078
33079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
33080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
33081 if (!SWIG_IsOK(res1)) {
33082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
33083 }
33084 arg1 = reinterpret_cast< wxBrushList * >(argp1);
33085 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
33086 if (!SWIG_IsOK(res2)) {
33087 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
33088 }
33089 arg2 = reinterpret_cast< wxBrush * >(argp2);
33090 {
33091 PyThreadState* __tstate = wxPyBeginAllowThreads();
33092 (arg1)->RemoveBrush(arg2);
33093 wxPyEndAllowThreads(__tstate);
33094 if (PyErr_Occurred()) SWIG_fail;
33095 }
33096 resultobj = SWIG_Py_Void();
33097 return resultobj;
33098 fail:
33099 return NULL;
33100 }
33101
33102
33103 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33104 PyObject *obj;
33105 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33106 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
33107 return SWIG_Py_Void();
33108 }
33109
33110 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33111 PyObject *resultobj = 0;
33112 wxFontList *arg1 = (wxFontList *) 0 ;
33113 int arg2 ;
33114 int arg3 ;
33115 int arg4 ;
33116 int arg5 ;
33117 bool arg6 = (bool) false ;
33118 wxString const &arg7_defvalue = wxPyEmptyString ;
33119 wxString *arg7 = (wxString *) &arg7_defvalue ;
33120 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
33121 wxFont *result = 0 ;
33122 void *argp1 = 0 ;
33123 int res1 = 0 ;
33124 int val2 ;
33125 int ecode2 = 0 ;
33126 int val3 ;
33127 int ecode3 = 0 ;
33128 int val4 ;
33129 int ecode4 = 0 ;
33130 int val5 ;
33131 int ecode5 = 0 ;
33132 bool val6 ;
33133 int ecode6 = 0 ;
33134 bool temp7 = false ;
33135 int val8 ;
33136 int ecode8 = 0 ;
33137 PyObject * obj0 = 0 ;
33138 PyObject * obj1 = 0 ;
33139 PyObject * obj2 = 0 ;
33140 PyObject * obj3 = 0 ;
33141 PyObject * obj4 = 0 ;
33142 PyObject * obj5 = 0 ;
33143 PyObject * obj6 = 0 ;
33144 PyObject * obj7 = 0 ;
33145 char * kwnames[] = {
33146 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
33147 };
33148
33149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
33151 if (!SWIG_IsOK(res1)) {
33152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
33153 }
33154 arg1 = reinterpret_cast< wxFontList * >(argp1);
33155 ecode2 = SWIG_AsVal_int(obj1, &val2);
33156 if (!SWIG_IsOK(ecode2)) {
33157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
33158 }
33159 arg2 = static_cast< int >(val2);
33160 ecode3 = SWIG_AsVal_int(obj2, &val3);
33161 if (!SWIG_IsOK(ecode3)) {
33162 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
33163 }
33164 arg3 = static_cast< int >(val3);
33165 ecode4 = SWIG_AsVal_int(obj3, &val4);
33166 if (!SWIG_IsOK(ecode4)) {
33167 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
33168 }
33169 arg4 = static_cast< int >(val4);
33170 ecode5 = SWIG_AsVal_int(obj4, &val5);
33171 if (!SWIG_IsOK(ecode5)) {
33172 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
33173 }
33174 arg5 = static_cast< int >(val5);
33175 if (obj5) {
33176 ecode6 = SWIG_AsVal_bool(obj5, &val6);
33177 if (!SWIG_IsOK(ecode6)) {
33178 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
33179 }
33180 arg6 = static_cast< bool >(val6);
33181 }
33182 if (obj6) {
33183 {
33184 arg7 = wxString_in_helper(obj6);
33185 if (arg7 == NULL) SWIG_fail;
33186 temp7 = true;
33187 }
33188 }
33189 if (obj7) {
33190 ecode8 = SWIG_AsVal_int(obj7, &val8);
33191 if (!SWIG_IsOK(ecode8)) {
33192 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
33193 }
33194 arg8 = static_cast< wxFontEncoding >(val8);
33195 }
33196 {
33197 PyThreadState* __tstate = wxPyBeginAllowThreads();
33198 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
33199 wxPyEndAllowThreads(__tstate);
33200 if (PyErr_Occurred()) SWIG_fail;
33201 }
33202 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33203 {
33204 if (temp7)
33205 delete arg7;
33206 }
33207 return resultobj;
33208 fail:
33209 {
33210 if (temp7)
33211 delete arg7;
33212 }
33213 return NULL;
33214 }
33215
33216
33217 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33218 PyObject *resultobj = 0;
33219 wxFontList *arg1 = (wxFontList *) 0 ;
33220 wxFont *arg2 = (wxFont *) 0 ;
33221 void *argp1 = 0 ;
33222 int res1 = 0 ;
33223 void *argp2 = 0 ;
33224 int res2 = 0 ;
33225 PyObject * obj0 = 0 ;
33226 PyObject * obj1 = 0 ;
33227 char * kwnames[] = {
33228 (char *) "self",(char *) "font", NULL
33229 };
33230
33231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
33232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
33233 if (!SWIG_IsOK(res1)) {
33234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
33235 }
33236 arg1 = reinterpret_cast< wxFontList * >(argp1);
33237 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33238 if (!SWIG_IsOK(res2)) {
33239 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
33240 }
33241 arg2 = reinterpret_cast< wxFont * >(argp2);
33242 {
33243 PyThreadState* __tstate = wxPyBeginAllowThreads();
33244 (arg1)->AddFont(arg2);
33245 wxPyEndAllowThreads(__tstate);
33246 if (PyErr_Occurred()) SWIG_fail;
33247 }
33248 resultobj = SWIG_Py_Void();
33249 return resultobj;
33250 fail:
33251 return NULL;
33252 }
33253
33254
33255 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33256 PyObject *resultobj = 0;
33257 wxFontList *arg1 = (wxFontList *) 0 ;
33258 wxFont *arg2 = (wxFont *) 0 ;
33259 void *argp1 = 0 ;
33260 int res1 = 0 ;
33261 void *argp2 = 0 ;
33262 int res2 = 0 ;
33263 PyObject * obj0 = 0 ;
33264 PyObject * obj1 = 0 ;
33265 char * kwnames[] = {
33266 (char *) "self",(char *) "font", NULL
33267 };
33268
33269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
33270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
33271 if (!SWIG_IsOK(res1)) {
33272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
33273 }
33274 arg1 = reinterpret_cast< wxFontList * >(argp1);
33275 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33276 if (!SWIG_IsOK(res2)) {
33277 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
33278 }
33279 arg2 = reinterpret_cast< wxFont * >(argp2);
33280 {
33281 PyThreadState* __tstate = wxPyBeginAllowThreads();
33282 (arg1)->RemoveFont(arg2);
33283 wxPyEndAllowThreads(__tstate);
33284 if (PyErr_Occurred()) SWIG_fail;
33285 }
33286 resultobj = SWIG_Py_Void();
33287 return resultobj;
33288 fail:
33289 return NULL;
33290 }
33291
33292
33293 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33294 PyObject *obj;
33295 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33296 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
33297 return SWIG_Py_Void();
33298 }
33299
33300 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33301 PyObject *resultobj = 0;
33302 wxColourDatabase *result = 0 ;
33303
33304 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
33305 {
33306 if (!wxPyCheckForApp()) SWIG_fail;
33307 PyThreadState* __tstate = wxPyBeginAllowThreads();
33308 result = (wxColourDatabase *)new wxColourDatabase();
33309 wxPyEndAllowThreads(__tstate);
33310 if (PyErr_Occurred()) SWIG_fail;
33311 }
33312 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
33313 return resultobj;
33314 fail:
33315 return NULL;
33316 }
33317
33318
33319 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33320 PyObject *resultobj = 0;
33321 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33322 void *argp1 = 0 ;
33323 int res1 = 0 ;
33324 PyObject *swig_obj[1] ;
33325
33326 if (!args) SWIG_fail;
33327 swig_obj[0] = args;
33328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
33329 if (!SWIG_IsOK(res1)) {
33330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33331 }
33332 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33333 {
33334 PyThreadState* __tstate = wxPyBeginAllowThreads();
33335 delete arg1;
33336
33337 wxPyEndAllowThreads(__tstate);
33338 if (PyErr_Occurred()) SWIG_fail;
33339 }
33340 resultobj = SWIG_Py_Void();
33341 return resultobj;
33342 fail:
33343 return NULL;
33344 }
33345
33346
33347 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33348 PyObject *resultobj = 0;
33349 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33350 wxString *arg2 = 0 ;
33351 wxColour result;
33352 void *argp1 = 0 ;
33353 int res1 = 0 ;
33354 bool temp2 = false ;
33355 PyObject * obj0 = 0 ;
33356 PyObject * obj1 = 0 ;
33357 char * kwnames[] = {
33358 (char *) "self",(char *) "name", NULL
33359 };
33360
33361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
33362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33363 if (!SWIG_IsOK(res1)) {
33364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33365 }
33366 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33367 {
33368 arg2 = wxString_in_helper(obj1);
33369 if (arg2 == NULL) SWIG_fail;
33370 temp2 = true;
33371 }
33372 {
33373 PyThreadState* __tstate = wxPyBeginAllowThreads();
33374 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
33375 wxPyEndAllowThreads(__tstate);
33376 if (PyErr_Occurred()) SWIG_fail;
33377 }
33378 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33379 {
33380 if (temp2)
33381 delete arg2;
33382 }
33383 return resultobj;
33384 fail:
33385 {
33386 if (temp2)
33387 delete arg2;
33388 }
33389 return NULL;
33390 }
33391
33392
33393 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33394 PyObject *resultobj = 0;
33395 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33396 wxColour *arg2 = 0 ;
33397 wxString result;
33398 void *argp1 = 0 ;
33399 int res1 = 0 ;
33400 wxColour temp2 ;
33401 PyObject * obj0 = 0 ;
33402 PyObject * obj1 = 0 ;
33403 char * kwnames[] = {
33404 (char *) "self",(char *) "colour", NULL
33405 };
33406
33407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
33408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33409 if (!SWIG_IsOK(res1)) {
33410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33411 }
33412 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33413 {
33414 arg2 = &temp2;
33415 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33416 }
33417 {
33418 PyThreadState* __tstate = wxPyBeginAllowThreads();
33419 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
33420 wxPyEndAllowThreads(__tstate);
33421 if (PyErr_Occurred()) SWIG_fail;
33422 }
33423 {
33424 #if wxUSE_UNICODE
33425 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33426 #else
33427 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33428 #endif
33429 }
33430 return resultobj;
33431 fail:
33432 return NULL;
33433 }
33434
33435
33436 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33437 PyObject *resultobj = 0;
33438 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33439 wxString *arg2 = 0 ;
33440 wxColour *arg3 = 0 ;
33441 void *argp1 = 0 ;
33442 int res1 = 0 ;
33443 bool temp2 = false ;
33444 wxColour temp3 ;
33445 PyObject * obj0 = 0 ;
33446 PyObject * obj1 = 0 ;
33447 PyObject * obj2 = 0 ;
33448 char * kwnames[] = {
33449 (char *) "self",(char *) "name",(char *) "colour", NULL
33450 };
33451
33452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33454 if (!SWIG_IsOK(res1)) {
33455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33456 }
33457 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33458 {
33459 arg2 = wxString_in_helper(obj1);
33460 if (arg2 == NULL) SWIG_fail;
33461 temp2 = true;
33462 }
33463 {
33464 arg3 = &temp3;
33465 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33466 }
33467 {
33468 PyThreadState* __tstate = wxPyBeginAllowThreads();
33469 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
33470 wxPyEndAllowThreads(__tstate);
33471 if (PyErr_Occurred()) SWIG_fail;
33472 }
33473 resultobj = SWIG_Py_Void();
33474 {
33475 if (temp2)
33476 delete arg2;
33477 }
33478 return resultobj;
33479 fail:
33480 {
33481 if (temp2)
33482 delete arg2;
33483 }
33484 return NULL;
33485 }
33486
33487
33488 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33489 PyObject *resultobj = 0;
33490 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33491 wxString *arg2 = 0 ;
33492 int arg3 ;
33493 int arg4 ;
33494 int arg5 ;
33495 void *argp1 = 0 ;
33496 int res1 = 0 ;
33497 bool temp2 = false ;
33498 int val3 ;
33499 int ecode3 = 0 ;
33500 int val4 ;
33501 int ecode4 = 0 ;
33502 int val5 ;
33503 int ecode5 = 0 ;
33504 PyObject * obj0 = 0 ;
33505 PyObject * obj1 = 0 ;
33506 PyObject * obj2 = 0 ;
33507 PyObject * obj3 = 0 ;
33508 PyObject * obj4 = 0 ;
33509 char * kwnames[] = {
33510 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
33511 };
33512
33513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33515 if (!SWIG_IsOK(res1)) {
33516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33517 }
33518 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33519 {
33520 arg2 = wxString_in_helper(obj1);
33521 if (arg2 == NULL) SWIG_fail;
33522 temp2 = true;
33523 }
33524 ecode3 = SWIG_AsVal_int(obj2, &val3);
33525 if (!SWIG_IsOK(ecode3)) {
33526 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
33527 }
33528 arg3 = static_cast< int >(val3);
33529 ecode4 = SWIG_AsVal_int(obj3, &val4);
33530 if (!SWIG_IsOK(ecode4)) {
33531 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
33532 }
33533 arg4 = static_cast< int >(val4);
33534 ecode5 = SWIG_AsVal_int(obj4, &val5);
33535 if (!SWIG_IsOK(ecode5)) {
33536 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
33537 }
33538 arg5 = static_cast< int >(val5);
33539 {
33540 PyThreadState* __tstate = wxPyBeginAllowThreads();
33541 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
33542 wxPyEndAllowThreads(__tstate);
33543 if (PyErr_Occurred()) SWIG_fail;
33544 }
33545 resultobj = SWIG_Py_Void();
33546 {
33547 if (temp2)
33548 delete arg2;
33549 }
33550 return resultobj;
33551 fail:
33552 {
33553 if (temp2)
33554 delete arg2;
33555 }
33556 return NULL;
33557 }
33558
33559
33560 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33561 PyObject *obj;
33562 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33563 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
33564 return SWIG_Py_Void();
33565 }
33566
33567 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33568 return SWIG_Python_InitShadowInstance(args);
33569 }
33570
33571 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33572 PyObject *resultobj = 0;
33573 wxFontList *result = 0 ;
33574
33575 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
33576 {
33577 PyThreadState* __tstate = wxPyBeginAllowThreads();
33578 result = (wxFontList *)_wxPyInitTheFontList();
33579 wxPyEndAllowThreads(__tstate);
33580 if (PyErr_Occurred()) SWIG_fail;
33581 }
33582 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
33583 return resultobj;
33584 fail:
33585 return NULL;
33586 }
33587
33588
33589 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33590 PyObject *resultobj = 0;
33591 wxPenList *result = 0 ;
33592
33593 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
33594 {
33595 PyThreadState* __tstate = wxPyBeginAllowThreads();
33596 result = (wxPenList *)_wxPyInitThePenList();
33597 wxPyEndAllowThreads(__tstate);
33598 if (PyErr_Occurred()) SWIG_fail;
33599 }
33600 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
33601 return resultobj;
33602 fail:
33603 return NULL;
33604 }
33605
33606
33607 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33608 PyObject *resultobj = 0;
33609 wxBrushList *result = 0 ;
33610
33611 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
33612 {
33613 PyThreadState* __tstate = wxPyBeginAllowThreads();
33614 result = (wxBrushList *)_wxPyInitTheBrushList();
33615 wxPyEndAllowThreads(__tstate);
33616 if (PyErr_Occurred()) SWIG_fail;
33617 }
33618 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
33619 return resultobj;
33620 fail:
33621 return NULL;
33622 }
33623
33624
33625 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33626 PyObject *resultobj = 0;
33627 wxColourDatabase *result = 0 ;
33628
33629 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
33630 {
33631 PyThreadState* __tstate = wxPyBeginAllowThreads();
33632 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
33633 wxPyEndAllowThreads(__tstate);
33634 if (PyErr_Occurred()) SWIG_fail;
33635 }
33636 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33637 return resultobj;
33638 fail:
33639 return NULL;
33640 }
33641
33642
33643 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33644 PyObject *resultobj = 0;
33645 wxEffects *result = 0 ;
33646
33647 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
33648 {
33649 PyThreadState* __tstate = wxPyBeginAllowThreads();
33650 result = (wxEffects *)new wxEffects();
33651 wxPyEndAllowThreads(__tstate);
33652 if (PyErr_Occurred()) SWIG_fail;
33653 }
33654 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
33655 return resultobj;
33656 fail:
33657 return NULL;
33658 }
33659
33660
33661 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33662 PyObject *resultobj = 0;
33663 wxEffects *arg1 = (wxEffects *) 0 ;
33664 wxColour result;
33665 void *argp1 = 0 ;
33666 int res1 = 0 ;
33667 PyObject *swig_obj[1] ;
33668
33669 if (!args) SWIG_fail;
33670 swig_obj[0] = args;
33671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33672 if (!SWIG_IsOK(res1)) {
33673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33674 }
33675 arg1 = reinterpret_cast< wxEffects * >(argp1);
33676 {
33677 PyThreadState* __tstate = wxPyBeginAllowThreads();
33678 result = ((wxEffects const *)arg1)->GetHighlightColour();
33679 wxPyEndAllowThreads(__tstate);
33680 if (PyErr_Occurred()) SWIG_fail;
33681 }
33682 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33683 return resultobj;
33684 fail:
33685 return NULL;
33686 }
33687
33688
33689 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33690 PyObject *resultobj = 0;
33691 wxEffects *arg1 = (wxEffects *) 0 ;
33692 wxColour result;
33693 void *argp1 = 0 ;
33694 int res1 = 0 ;
33695 PyObject *swig_obj[1] ;
33696
33697 if (!args) SWIG_fail;
33698 swig_obj[0] = args;
33699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33700 if (!SWIG_IsOK(res1)) {
33701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33702 }
33703 arg1 = reinterpret_cast< wxEffects * >(argp1);
33704 {
33705 PyThreadState* __tstate = wxPyBeginAllowThreads();
33706 result = ((wxEffects const *)arg1)->GetLightShadow();
33707 wxPyEndAllowThreads(__tstate);
33708 if (PyErr_Occurred()) SWIG_fail;
33709 }
33710 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33711 return resultobj;
33712 fail:
33713 return NULL;
33714 }
33715
33716
33717 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33718 PyObject *resultobj = 0;
33719 wxEffects *arg1 = (wxEffects *) 0 ;
33720 wxColour result;
33721 void *argp1 = 0 ;
33722 int res1 = 0 ;
33723 PyObject *swig_obj[1] ;
33724
33725 if (!args) SWIG_fail;
33726 swig_obj[0] = args;
33727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33728 if (!SWIG_IsOK(res1)) {
33729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33730 }
33731 arg1 = reinterpret_cast< wxEffects * >(argp1);
33732 {
33733 PyThreadState* __tstate = wxPyBeginAllowThreads();
33734 result = ((wxEffects const *)arg1)->GetFaceColour();
33735 wxPyEndAllowThreads(__tstate);
33736 if (PyErr_Occurred()) SWIG_fail;
33737 }
33738 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33739 return resultobj;
33740 fail:
33741 return NULL;
33742 }
33743
33744
33745 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33746 PyObject *resultobj = 0;
33747 wxEffects *arg1 = (wxEffects *) 0 ;
33748 wxColour result;
33749 void *argp1 = 0 ;
33750 int res1 = 0 ;
33751 PyObject *swig_obj[1] ;
33752
33753 if (!args) SWIG_fail;
33754 swig_obj[0] = args;
33755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33756 if (!SWIG_IsOK(res1)) {
33757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33758 }
33759 arg1 = reinterpret_cast< wxEffects * >(argp1);
33760 {
33761 PyThreadState* __tstate = wxPyBeginAllowThreads();
33762 result = ((wxEffects const *)arg1)->GetMediumShadow();
33763 wxPyEndAllowThreads(__tstate);
33764 if (PyErr_Occurred()) SWIG_fail;
33765 }
33766 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33767 return resultobj;
33768 fail:
33769 return NULL;
33770 }
33771
33772
33773 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33774 PyObject *resultobj = 0;
33775 wxEffects *arg1 = (wxEffects *) 0 ;
33776 wxColour result;
33777 void *argp1 = 0 ;
33778 int res1 = 0 ;
33779 PyObject *swig_obj[1] ;
33780
33781 if (!args) SWIG_fail;
33782 swig_obj[0] = args;
33783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33784 if (!SWIG_IsOK(res1)) {
33785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33786 }
33787 arg1 = reinterpret_cast< wxEffects * >(argp1);
33788 {
33789 PyThreadState* __tstate = wxPyBeginAllowThreads();
33790 result = ((wxEffects const *)arg1)->GetDarkShadow();
33791 wxPyEndAllowThreads(__tstate);
33792 if (PyErr_Occurred()) SWIG_fail;
33793 }
33794 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33795 return resultobj;
33796 fail:
33797 return NULL;
33798 }
33799
33800
33801 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33802 PyObject *resultobj = 0;
33803 wxEffects *arg1 = (wxEffects *) 0 ;
33804 wxColour *arg2 = 0 ;
33805 void *argp1 = 0 ;
33806 int res1 = 0 ;
33807 wxColour temp2 ;
33808 PyObject * obj0 = 0 ;
33809 PyObject * obj1 = 0 ;
33810 char * kwnames[] = {
33811 (char *) "self",(char *) "c", NULL
33812 };
33813
33814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
33815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33816 if (!SWIG_IsOK(res1)) {
33817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33818 }
33819 arg1 = reinterpret_cast< wxEffects * >(argp1);
33820 {
33821 arg2 = &temp2;
33822 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33823 }
33824 {
33825 PyThreadState* __tstate = wxPyBeginAllowThreads();
33826 (arg1)->SetHighlightColour((wxColour const &)*arg2);
33827 wxPyEndAllowThreads(__tstate);
33828 if (PyErr_Occurred()) SWIG_fail;
33829 }
33830 resultobj = SWIG_Py_Void();
33831 return resultobj;
33832 fail:
33833 return NULL;
33834 }
33835
33836
33837 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33838 PyObject *resultobj = 0;
33839 wxEffects *arg1 = (wxEffects *) 0 ;
33840 wxColour *arg2 = 0 ;
33841 void *argp1 = 0 ;
33842 int res1 = 0 ;
33843 wxColour temp2 ;
33844 PyObject * obj0 = 0 ;
33845 PyObject * obj1 = 0 ;
33846 char * kwnames[] = {
33847 (char *) "self",(char *) "c", NULL
33848 };
33849
33850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33852 if (!SWIG_IsOK(res1)) {
33853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33854 }
33855 arg1 = reinterpret_cast< wxEffects * >(argp1);
33856 {
33857 arg2 = &temp2;
33858 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33859 }
33860 {
33861 PyThreadState* __tstate = wxPyBeginAllowThreads();
33862 (arg1)->SetLightShadow((wxColour const &)*arg2);
33863 wxPyEndAllowThreads(__tstate);
33864 if (PyErr_Occurred()) SWIG_fail;
33865 }
33866 resultobj = SWIG_Py_Void();
33867 return resultobj;
33868 fail:
33869 return NULL;
33870 }
33871
33872
33873 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33874 PyObject *resultobj = 0;
33875 wxEffects *arg1 = (wxEffects *) 0 ;
33876 wxColour *arg2 = 0 ;
33877 void *argp1 = 0 ;
33878 int res1 = 0 ;
33879 wxColour temp2 ;
33880 PyObject * obj0 = 0 ;
33881 PyObject * obj1 = 0 ;
33882 char * kwnames[] = {
33883 (char *) "self",(char *) "c", NULL
33884 };
33885
33886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
33887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33888 if (!SWIG_IsOK(res1)) {
33889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33890 }
33891 arg1 = reinterpret_cast< wxEffects * >(argp1);
33892 {
33893 arg2 = &temp2;
33894 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33895 }
33896 {
33897 PyThreadState* __tstate = wxPyBeginAllowThreads();
33898 (arg1)->SetFaceColour((wxColour const &)*arg2);
33899 wxPyEndAllowThreads(__tstate);
33900 if (PyErr_Occurred()) SWIG_fail;
33901 }
33902 resultobj = SWIG_Py_Void();
33903 return resultobj;
33904 fail:
33905 return NULL;
33906 }
33907
33908
33909 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33910 PyObject *resultobj = 0;
33911 wxEffects *arg1 = (wxEffects *) 0 ;
33912 wxColour *arg2 = 0 ;
33913 void *argp1 = 0 ;
33914 int res1 = 0 ;
33915 wxColour temp2 ;
33916 PyObject * obj0 = 0 ;
33917 PyObject * obj1 = 0 ;
33918 char * kwnames[] = {
33919 (char *) "self",(char *) "c", NULL
33920 };
33921
33922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33924 if (!SWIG_IsOK(res1)) {
33925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33926 }
33927 arg1 = reinterpret_cast< wxEffects * >(argp1);
33928 {
33929 arg2 = &temp2;
33930 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33931 }
33932 {
33933 PyThreadState* __tstate = wxPyBeginAllowThreads();
33934 (arg1)->SetMediumShadow((wxColour const &)*arg2);
33935 wxPyEndAllowThreads(__tstate);
33936 if (PyErr_Occurred()) SWIG_fail;
33937 }
33938 resultobj = SWIG_Py_Void();
33939 return resultobj;
33940 fail:
33941 return NULL;
33942 }
33943
33944
33945 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33946 PyObject *resultobj = 0;
33947 wxEffects *arg1 = (wxEffects *) 0 ;
33948 wxColour *arg2 = 0 ;
33949 void *argp1 = 0 ;
33950 int res1 = 0 ;
33951 wxColour temp2 ;
33952 PyObject * obj0 = 0 ;
33953 PyObject * obj1 = 0 ;
33954 char * kwnames[] = {
33955 (char *) "self",(char *) "c", NULL
33956 };
33957
33958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33960 if (!SWIG_IsOK(res1)) {
33961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33962 }
33963 arg1 = reinterpret_cast< wxEffects * >(argp1);
33964 {
33965 arg2 = &temp2;
33966 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33967 }
33968 {
33969 PyThreadState* __tstate = wxPyBeginAllowThreads();
33970 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33971 wxPyEndAllowThreads(__tstate);
33972 if (PyErr_Occurred()) SWIG_fail;
33973 }
33974 resultobj = SWIG_Py_Void();
33975 return resultobj;
33976 fail:
33977 return NULL;
33978 }
33979
33980
33981 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33982 PyObject *resultobj = 0;
33983 wxEffects *arg1 = (wxEffects *) 0 ;
33984 wxColour *arg2 = 0 ;
33985 wxColour *arg3 = 0 ;
33986 wxColour *arg4 = 0 ;
33987 wxColour *arg5 = 0 ;
33988 wxColour *arg6 = 0 ;
33989 void *argp1 = 0 ;
33990 int res1 = 0 ;
33991 wxColour temp2 ;
33992 wxColour temp3 ;
33993 wxColour temp4 ;
33994 wxColour temp5 ;
33995 wxColour temp6 ;
33996 PyObject * obj0 = 0 ;
33997 PyObject * obj1 = 0 ;
33998 PyObject * obj2 = 0 ;
33999 PyObject * obj3 = 0 ;
34000 PyObject * obj4 = 0 ;
34001 PyObject * obj5 = 0 ;
34002 char * kwnames[] = {
34003 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
34004 };
34005
34006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
34007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34008 if (!SWIG_IsOK(res1)) {
34009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
34010 }
34011 arg1 = reinterpret_cast< wxEffects * >(argp1);
34012 {
34013 arg2 = &temp2;
34014 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34015 }
34016 {
34017 arg3 = &temp3;
34018 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34019 }
34020 {
34021 arg4 = &temp4;
34022 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
34023 }
34024 {
34025 arg5 = &temp5;
34026 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
34027 }
34028 {
34029 arg6 = &temp6;
34030 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
34031 }
34032 {
34033 PyThreadState* __tstate = wxPyBeginAllowThreads();
34034 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
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_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34046 PyObject *resultobj = 0;
34047 wxEffects *arg1 = (wxEffects *) 0 ;
34048 wxDC *arg2 = 0 ;
34049 wxRect *arg3 = 0 ;
34050 int arg4 = (int) 1 ;
34051 void *argp1 = 0 ;
34052 int res1 = 0 ;
34053 void *argp2 = 0 ;
34054 int res2 = 0 ;
34055 wxRect temp3 ;
34056 int val4 ;
34057 int ecode4 = 0 ;
34058 PyObject * obj0 = 0 ;
34059 PyObject * obj1 = 0 ;
34060 PyObject * obj2 = 0 ;
34061 PyObject * obj3 = 0 ;
34062 char * kwnames[] = {
34063 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
34064 };
34065
34066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34068 if (!SWIG_IsOK(res1)) {
34069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
34070 }
34071 arg1 = reinterpret_cast< wxEffects * >(argp1);
34072 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
34073 if (!SWIG_IsOK(res2)) {
34074 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
34075 }
34076 if (!argp2) {
34077 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
34078 }
34079 arg2 = reinterpret_cast< wxDC * >(argp2);
34080 {
34081 arg3 = &temp3;
34082 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
34083 }
34084 if (obj3) {
34085 ecode4 = SWIG_AsVal_int(obj3, &val4);
34086 if (!SWIG_IsOK(ecode4)) {
34087 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
34088 }
34089 arg4 = static_cast< int >(val4);
34090 }
34091 {
34092 PyThreadState* __tstate = wxPyBeginAllowThreads();
34093 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
34094 wxPyEndAllowThreads(__tstate);
34095 if (PyErr_Occurred()) SWIG_fail;
34096 }
34097 resultobj = SWIG_Py_Void();
34098 return resultobj;
34099 fail:
34100 return NULL;
34101 }
34102
34103
34104 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34105 PyObject *resultobj = 0;
34106 wxEffects *arg1 = (wxEffects *) 0 ;
34107 wxRect *arg2 = 0 ;
34108 wxDC *arg3 = 0 ;
34109 wxBitmap *arg4 = 0 ;
34110 bool result;
34111 void *argp1 = 0 ;
34112 int res1 = 0 ;
34113 wxRect temp2 ;
34114 void *argp3 = 0 ;
34115 int res3 = 0 ;
34116 void *argp4 = 0 ;
34117 int res4 = 0 ;
34118 PyObject * obj0 = 0 ;
34119 PyObject * obj1 = 0 ;
34120 PyObject * obj2 = 0 ;
34121 PyObject * obj3 = 0 ;
34122 char * kwnames[] = {
34123 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
34124 };
34125
34126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34128 if (!SWIG_IsOK(res1)) {
34129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
34130 }
34131 arg1 = reinterpret_cast< wxEffects * >(argp1);
34132 {
34133 arg2 = &temp2;
34134 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
34135 }
34136 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34137 if (!SWIG_IsOK(res3)) {
34138 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
34139 }
34140 if (!argp3) {
34141 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
34142 }
34143 arg3 = reinterpret_cast< wxDC * >(argp3);
34144 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
34145 if (!SWIG_IsOK(res4)) {
34146 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
34147 }
34148 if (!argp4) {
34149 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
34150 }
34151 arg4 = reinterpret_cast< wxBitmap * >(argp4);
34152 {
34153 PyThreadState* __tstate = wxPyBeginAllowThreads();
34154 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
34155 wxPyEndAllowThreads(__tstate);
34156 if (PyErr_Occurred()) SWIG_fail;
34157 }
34158 {
34159 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34160 }
34161 return resultobj;
34162 fail:
34163 return NULL;
34164 }
34165
34166
34167 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34168 PyObject *obj;
34169 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34170 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
34171 return SWIG_Py_Void();
34172 }
34173
34174 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34175 return SWIG_Python_InitShadowInstance(args);
34176 }
34177
34178 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34179 PyObject *resultobj = 0;
34180 int arg1 ;
34181 int arg2 ;
34182 bool arg3 ;
34183 wxSplitterRenderParams *result = 0 ;
34184 int val1 ;
34185 int ecode1 = 0 ;
34186 int val2 ;
34187 int ecode2 = 0 ;
34188 bool val3 ;
34189 int ecode3 = 0 ;
34190 PyObject * obj0 = 0 ;
34191 PyObject * obj1 = 0 ;
34192 PyObject * obj2 = 0 ;
34193 char * kwnames[] = {
34194 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
34195 };
34196
34197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34198 ecode1 = SWIG_AsVal_int(obj0, &val1);
34199 if (!SWIG_IsOK(ecode1)) {
34200 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
34201 }
34202 arg1 = static_cast< int >(val1);
34203 ecode2 = SWIG_AsVal_int(obj1, &val2);
34204 if (!SWIG_IsOK(ecode2)) {
34205 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
34206 }
34207 arg2 = static_cast< int >(val2);
34208 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34209 if (!SWIG_IsOK(ecode3)) {
34210 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
34211 }
34212 arg3 = static_cast< bool >(val3);
34213 {
34214 PyThreadState* __tstate = wxPyBeginAllowThreads();
34215 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
34216 wxPyEndAllowThreads(__tstate);
34217 if (PyErr_Occurred()) SWIG_fail;
34218 }
34219 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
34220 return resultobj;
34221 fail:
34222 return NULL;
34223 }
34224
34225
34226 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34227 PyObject *resultobj = 0;
34228 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34229 void *argp1 = 0 ;
34230 int res1 = 0 ;
34231 PyObject *swig_obj[1] ;
34232
34233 if (!args) SWIG_fail;
34234 swig_obj[0] = args;
34235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
34236 if (!SWIG_IsOK(res1)) {
34237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34238 }
34239 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34240 {
34241 PyThreadState* __tstate = wxPyBeginAllowThreads();
34242 delete arg1;
34243
34244 wxPyEndAllowThreads(__tstate);
34245 if (PyErr_Occurred()) SWIG_fail;
34246 }
34247 resultobj = SWIG_Py_Void();
34248 return resultobj;
34249 fail:
34250 return NULL;
34251 }
34252
34253
34254 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34255 PyObject *resultobj = 0;
34256 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34257 int result;
34258 void *argp1 = 0 ;
34259 int res1 = 0 ;
34260 PyObject *swig_obj[1] ;
34261
34262 if (!args) SWIG_fail;
34263 swig_obj[0] = args;
34264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34265 if (!SWIG_IsOK(res1)) {
34266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34267 }
34268 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34269 result = (int)(int) ((arg1)->widthSash);
34270 resultobj = SWIG_From_int(static_cast< int >(result));
34271 return resultobj;
34272 fail:
34273 return NULL;
34274 }
34275
34276
34277 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34278 PyObject *resultobj = 0;
34279 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34280 int result;
34281 void *argp1 = 0 ;
34282 int res1 = 0 ;
34283 PyObject *swig_obj[1] ;
34284
34285 if (!args) SWIG_fail;
34286 swig_obj[0] = args;
34287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34288 if (!SWIG_IsOK(res1)) {
34289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34290 }
34291 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34292 result = (int)(int) ((arg1)->border);
34293 resultobj = SWIG_From_int(static_cast< int >(result));
34294 return resultobj;
34295 fail:
34296 return NULL;
34297 }
34298
34299
34300 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34301 PyObject *resultobj = 0;
34302 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34303 bool result;
34304 void *argp1 = 0 ;
34305 int res1 = 0 ;
34306 PyObject *swig_obj[1] ;
34307
34308 if (!args) SWIG_fail;
34309 swig_obj[0] = args;
34310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34311 if (!SWIG_IsOK(res1)) {
34312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34313 }
34314 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34315 result = (bool)(bool) ((arg1)->isHotSensitive);
34316 resultobj = SWIG_From_bool(static_cast< bool >(result));
34317 return resultobj;
34318 fail:
34319 return NULL;
34320 }
34321
34322
34323 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34324 PyObject *obj;
34325 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34326 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
34327 return SWIG_Py_Void();
34328 }
34329
34330 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34331 return SWIG_Python_InitShadowInstance(args);
34332 }
34333
34334 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34335 PyObject *resultobj = 0;
34336 wxHeaderButtonParams *result = 0 ;
34337
34338 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
34339 {
34340 PyThreadState* __tstate = wxPyBeginAllowThreads();
34341 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
34342 wxPyEndAllowThreads(__tstate);
34343 if (PyErr_Occurred()) SWIG_fail;
34344 }
34345 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
34346 return resultobj;
34347 fail:
34348 return NULL;
34349 }
34350
34351
34352 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34353 PyObject *resultobj = 0;
34354 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34355 void *argp1 = 0 ;
34356 int res1 = 0 ;
34357 PyObject *swig_obj[1] ;
34358
34359 if (!args) SWIG_fail;
34360 swig_obj[0] = args;
34361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
34362 if (!SWIG_IsOK(res1)) {
34363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34364 }
34365 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34366 {
34367 PyThreadState* __tstate = wxPyBeginAllowThreads();
34368 delete arg1;
34369
34370 wxPyEndAllowThreads(__tstate);
34371 if (PyErr_Occurred()) SWIG_fail;
34372 }
34373 resultobj = SWIG_Py_Void();
34374 return resultobj;
34375 fail:
34376 return NULL;
34377 }
34378
34379
34380 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34381 PyObject *resultobj = 0;
34382 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34383 wxColour *arg2 = (wxColour *) 0 ;
34384 void *argp1 = 0 ;
34385 int res1 = 0 ;
34386 wxColour temp2 ;
34387 PyObject *swig_obj[2] ;
34388
34389 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
34390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34391 if (!SWIG_IsOK(res1)) {
34392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34393 }
34394 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34395 {
34396 arg2 = &temp2;
34397 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34398 }
34399 if (arg1) (arg1)->m_arrowColour = *arg2;
34400
34401 resultobj = SWIG_Py_Void();
34402 return resultobj;
34403 fail:
34404 return NULL;
34405 }
34406
34407
34408 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34409 PyObject *resultobj = 0;
34410 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34411 wxColour *result = 0 ;
34412 void *argp1 = 0 ;
34413 int res1 = 0 ;
34414 PyObject *swig_obj[1] ;
34415
34416 if (!args) SWIG_fail;
34417 swig_obj[0] = args;
34418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34419 if (!SWIG_IsOK(res1)) {
34420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34421 }
34422 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34423 result = (wxColour *)& ((arg1)->m_arrowColour);
34424 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34425 return resultobj;
34426 fail:
34427 return NULL;
34428 }
34429
34430
34431 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34432 PyObject *resultobj = 0;
34433 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34434 wxColour *arg2 = (wxColour *) 0 ;
34435 void *argp1 = 0 ;
34436 int res1 = 0 ;
34437 wxColour temp2 ;
34438 PyObject *swig_obj[2] ;
34439
34440 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
34441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34442 if (!SWIG_IsOK(res1)) {
34443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34444 }
34445 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34446 {
34447 arg2 = &temp2;
34448 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34449 }
34450 if (arg1) (arg1)->m_selectionColour = *arg2;
34451
34452 resultobj = SWIG_Py_Void();
34453 return resultobj;
34454 fail:
34455 return NULL;
34456 }
34457
34458
34459 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34460 PyObject *resultobj = 0;
34461 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34462 wxColour *result = 0 ;
34463 void *argp1 = 0 ;
34464 int res1 = 0 ;
34465 PyObject *swig_obj[1] ;
34466
34467 if (!args) SWIG_fail;
34468 swig_obj[0] = args;
34469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34470 if (!SWIG_IsOK(res1)) {
34471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34472 }
34473 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34474 result = (wxColour *)& ((arg1)->m_selectionColour);
34475 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34476 return resultobj;
34477 fail:
34478 return NULL;
34479 }
34480
34481
34482 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34483 PyObject *resultobj = 0;
34484 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34485 wxString *arg2 = (wxString *) 0 ;
34486 void *argp1 = 0 ;
34487 int res1 = 0 ;
34488 bool temp2 = false ;
34489 PyObject *swig_obj[2] ;
34490
34491 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
34492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34493 if (!SWIG_IsOK(res1)) {
34494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34495 }
34496 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34497 {
34498 arg2 = wxString_in_helper(swig_obj[1]);
34499 if (arg2 == NULL) SWIG_fail;
34500 temp2 = true;
34501 }
34502 if (arg1) (arg1)->m_labelText = *arg2;
34503
34504 resultobj = SWIG_Py_Void();
34505 {
34506 if (temp2)
34507 delete arg2;
34508 }
34509 return resultobj;
34510 fail:
34511 {
34512 if (temp2)
34513 delete arg2;
34514 }
34515 return NULL;
34516 }
34517
34518
34519 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34520 PyObject *resultobj = 0;
34521 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34522 wxString *result = 0 ;
34523 void *argp1 = 0 ;
34524 int res1 = 0 ;
34525 PyObject *swig_obj[1] ;
34526
34527 if (!args) SWIG_fail;
34528 swig_obj[0] = args;
34529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34530 if (!SWIG_IsOK(res1)) {
34531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34532 }
34533 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34534 result = (wxString *)& ((arg1)->m_labelText);
34535 {
34536 #if wxUSE_UNICODE
34537 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
34538 #else
34539 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
34540 #endif
34541 }
34542 return resultobj;
34543 fail:
34544 return NULL;
34545 }
34546
34547
34548 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34549 PyObject *resultobj = 0;
34550 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34551 wxFont *arg2 = (wxFont *) 0 ;
34552 void *argp1 = 0 ;
34553 int res1 = 0 ;
34554 void *argp2 = 0 ;
34555 int res2 = 0 ;
34556 PyObject *swig_obj[2] ;
34557
34558 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
34559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34560 if (!SWIG_IsOK(res1)) {
34561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34562 }
34563 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34564 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
34565 if (!SWIG_IsOK(res2)) {
34566 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
34567 }
34568 arg2 = reinterpret_cast< wxFont * >(argp2);
34569 if (arg1) (arg1)->m_labelFont = *arg2;
34570
34571 resultobj = SWIG_Py_Void();
34572 return resultobj;
34573 fail:
34574 return NULL;
34575 }
34576
34577
34578 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34579 PyObject *resultobj = 0;
34580 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34581 wxFont *result = 0 ;
34582 void *argp1 = 0 ;
34583 int res1 = 0 ;
34584 PyObject *swig_obj[1] ;
34585
34586 if (!args) SWIG_fail;
34587 swig_obj[0] = args;
34588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34589 if (!SWIG_IsOK(res1)) {
34590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34591 }
34592 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34593 result = (wxFont *)& ((arg1)->m_labelFont);
34594 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
34595 return resultobj;
34596 fail:
34597 return NULL;
34598 }
34599
34600
34601 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34602 PyObject *resultobj = 0;
34603 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34604 wxColour *arg2 = (wxColour *) 0 ;
34605 void *argp1 = 0 ;
34606 int res1 = 0 ;
34607 wxColour temp2 ;
34608 PyObject *swig_obj[2] ;
34609
34610 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
34611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34612 if (!SWIG_IsOK(res1)) {
34613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34614 }
34615 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34616 {
34617 arg2 = &temp2;
34618 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34619 }
34620 if (arg1) (arg1)->m_labelColour = *arg2;
34621
34622 resultobj = SWIG_Py_Void();
34623 return resultobj;
34624 fail:
34625 return NULL;
34626 }
34627
34628
34629 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34630 PyObject *resultobj = 0;
34631 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34632 wxColour *result = 0 ;
34633 void *argp1 = 0 ;
34634 int res1 = 0 ;
34635 PyObject *swig_obj[1] ;
34636
34637 if (!args) SWIG_fail;
34638 swig_obj[0] = args;
34639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34640 if (!SWIG_IsOK(res1)) {
34641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34642 }
34643 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34644 result = (wxColour *)& ((arg1)->m_labelColour);
34645 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34646 return resultobj;
34647 fail:
34648 return NULL;
34649 }
34650
34651
34652 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34653 PyObject *resultobj = 0;
34654 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34655 wxBitmap *arg2 = (wxBitmap *) 0 ;
34656 void *argp1 = 0 ;
34657 int res1 = 0 ;
34658 void *argp2 = 0 ;
34659 int res2 = 0 ;
34660 PyObject *swig_obj[2] ;
34661
34662 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
34663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34664 if (!SWIG_IsOK(res1)) {
34665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34666 }
34667 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34668 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
34669 if (!SWIG_IsOK(res2)) {
34670 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
34671 }
34672 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34673 if (arg1) (arg1)->m_labelBitmap = *arg2;
34674
34675 resultobj = SWIG_Py_Void();
34676 return resultobj;
34677 fail:
34678 return NULL;
34679 }
34680
34681
34682 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34683 PyObject *resultobj = 0;
34684 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34685 wxBitmap *result = 0 ;
34686 void *argp1 = 0 ;
34687 int res1 = 0 ;
34688 PyObject *swig_obj[1] ;
34689
34690 if (!args) SWIG_fail;
34691 swig_obj[0] = args;
34692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34693 if (!SWIG_IsOK(res1)) {
34694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34695 }
34696 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34697 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
34698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
34699 return resultobj;
34700 fail:
34701 return NULL;
34702 }
34703
34704
34705 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34706 PyObject *resultobj = 0;
34707 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34708 int arg2 ;
34709 void *argp1 = 0 ;
34710 int res1 = 0 ;
34711 int val2 ;
34712 int ecode2 = 0 ;
34713 PyObject *swig_obj[2] ;
34714
34715 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
34716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34717 if (!SWIG_IsOK(res1)) {
34718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34719 }
34720 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34721 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
34722 if (!SWIG_IsOK(ecode2)) {
34723 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
34724 }
34725 arg2 = static_cast< int >(val2);
34726 if (arg1) (arg1)->m_labelAlignment = arg2;
34727
34728 resultobj = SWIG_Py_Void();
34729 return resultobj;
34730 fail:
34731 return NULL;
34732 }
34733
34734
34735 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34736 PyObject *resultobj = 0;
34737 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34738 int result;
34739 void *argp1 = 0 ;
34740 int res1 = 0 ;
34741 PyObject *swig_obj[1] ;
34742
34743 if (!args) SWIG_fail;
34744 swig_obj[0] = args;
34745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34746 if (!SWIG_IsOK(res1)) {
34747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34748 }
34749 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34750 result = (int) ((arg1)->m_labelAlignment);
34751 resultobj = SWIG_From_int(static_cast< int >(result));
34752 return resultobj;
34753 fail:
34754 return NULL;
34755 }
34756
34757
34758 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34759 PyObject *obj;
34760 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34761 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
34762 return SWIG_Py_Void();
34763 }
34764
34765 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34766 return SWIG_Python_InitShadowInstance(args);
34767 }
34768
34769 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34770 PyObject *resultobj = 0;
34771 int arg1 ;
34772 int arg2 ;
34773 wxRendererVersion *result = 0 ;
34774 int val1 ;
34775 int ecode1 = 0 ;
34776 int val2 ;
34777 int ecode2 = 0 ;
34778 PyObject * obj0 = 0 ;
34779 PyObject * obj1 = 0 ;
34780 char * kwnames[] = {
34781 (char *) "version_",(char *) "age_", NULL
34782 };
34783
34784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
34785 ecode1 = SWIG_AsVal_int(obj0, &val1);
34786 if (!SWIG_IsOK(ecode1)) {
34787 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
34788 }
34789 arg1 = static_cast< int >(val1);
34790 ecode2 = SWIG_AsVal_int(obj1, &val2);
34791 if (!SWIG_IsOK(ecode2)) {
34792 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
34793 }
34794 arg2 = static_cast< int >(val2);
34795 {
34796 PyThreadState* __tstate = wxPyBeginAllowThreads();
34797 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
34798 wxPyEndAllowThreads(__tstate);
34799 if (PyErr_Occurred()) SWIG_fail;
34800 }
34801 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
34802 return resultobj;
34803 fail:
34804 return NULL;
34805 }
34806
34807
34808 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34809 PyObject *resultobj = 0;
34810 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34811 void *argp1 = 0 ;
34812 int res1 = 0 ;
34813 PyObject *swig_obj[1] ;
34814
34815 if (!args) SWIG_fail;
34816 swig_obj[0] = args;
34817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
34818 if (!SWIG_IsOK(res1)) {
34819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34820 }
34821 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34822 {
34823 PyThreadState* __tstate = wxPyBeginAllowThreads();
34824 delete arg1;
34825
34826 wxPyEndAllowThreads(__tstate);
34827 if (PyErr_Occurred()) SWIG_fail;
34828 }
34829 resultobj = SWIG_Py_Void();
34830 return resultobj;
34831 fail:
34832 return NULL;
34833 }
34834
34835
34836 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34837 PyObject *resultobj = 0;
34838 wxRendererVersion *arg1 = 0 ;
34839 bool result;
34840 void *argp1 = 0 ;
34841 int res1 = 0 ;
34842 PyObject * obj0 = 0 ;
34843 char * kwnames[] = {
34844 (char *) "ver", NULL
34845 };
34846
34847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
34848 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
34849 if (!SWIG_IsOK(res1)) {
34850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34851 }
34852 if (!argp1) {
34853 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34854 }
34855 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34856 {
34857 PyThreadState* __tstate = wxPyBeginAllowThreads();
34858 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
34859 wxPyEndAllowThreads(__tstate);
34860 if (PyErr_Occurred()) SWIG_fail;
34861 }
34862 {
34863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34864 }
34865 return resultobj;
34866 fail:
34867 return NULL;
34868 }
34869
34870
34871 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34872 PyObject *resultobj = 0;
34873 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34874 int result;
34875 void *argp1 = 0 ;
34876 int res1 = 0 ;
34877 PyObject *swig_obj[1] ;
34878
34879 if (!args) SWIG_fail;
34880 swig_obj[0] = args;
34881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34882 if (!SWIG_IsOK(res1)) {
34883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34884 }
34885 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34886 result = (int)(int) ((arg1)->version);
34887 resultobj = SWIG_From_int(static_cast< int >(result));
34888 return resultobj;
34889 fail:
34890 return NULL;
34891 }
34892
34893
34894 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34895 PyObject *resultobj = 0;
34896 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34897 int result;
34898 void *argp1 = 0 ;
34899 int res1 = 0 ;
34900 PyObject *swig_obj[1] ;
34901
34902 if (!args) SWIG_fail;
34903 swig_obj[0] = args;
34904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34905 if (!SWIG_IsOK(res1)) {
34906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34907 }
34908 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34909 result = (int)(int) ((arg1)->age);
34910 resultobj = SWIG_From_int(static_cast< int >(result));
34911 return resultobj;
34912 fail:
34913 return NULL;
34914 }
34915
34916
34917 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34918 PyObject *obj;
34919 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34920 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
34921 return SWIG_Py_Void();
34922 }
34923
34924 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34925 return SWIG_Python_InitShadowInstance(args);
34926 }
34927
34928 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34929 PyObject *resultobj = 0;
34930 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34931 wxWindow *arg2 = (wxWindow *) 0 ;
34932 wxDC *arg3 = 0 ;
34933 wxRect *arg4 = 0 ;
34934 int arg5 = (int) 0 ;
34935 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34936 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34937 void *argp1 = 0 ;
34938 int res1 = 0 ;
34939 void *argp2 = 0 ;
34940 int res2 = 0 ;
34941 void *argp3 = 0 ;
34942 int res3 = 0 ;
34943 wxRect temp4 ;
34944 int val5 ;
34945 int ecode5 = 0 ;
34946 int val6 ;
34947 int ecode6 = 0 ;
34948 void *argp7 = 0 ;
34949 int res7 = 0 ;
34950 PyObject * obj0 = 0 ;
34951 PyObject * obj1 = 0 ;
34952 PyObject * obj2 = 0 ;
34953 PyObject * obj3 = 0 ;
34954 PyObject * obj4 = 0 ;
34955 PyObject * obj5 = 0 ;
34956 PyObject * obj6 = 0 ;
34957 char * kwnames[] = {
34958 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34959 };
34960
34961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34963 if (!SWIG_IsOK(res1)) {
34964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34965 }
34966 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34967 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34968 if (!SWIG_IsOK(res2)) {
34969 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34970 }
34971 arg2 = reinterpret_cast< wxWindow * >(argp2);
34972 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34973 if (!SWIG_IsOK(res3)) {
34974 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34975 }
34976 if (!argp3) {
34977 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34978 }
34979 arg3 = reinterpret_cast< wxDC * >(argp3);
34980 {
34981 arg4 = &temp4;
34982 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34983 }
34984 if (obj4) {
34985 ecode5 = SWIG_AsVal_int(obj4, &val5);
34986 if (!SWIG_IsOK(ecode5)) {
34987 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34988 }
34989 arg5 = static_cast< int >(val5);
34990 }
34991 if (obj5) {
34992 ecode6 = SWIG_AsVal_int(obj5, &val6);
34993 if (!SWIG_IsOK(ecode6)) {
34994 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34995 }
34996 arg6 = static_cast< wxHeaderSortIconType >(val6);
34997 }
34998 if (obj6) {
34999 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
35000 if (!SWIG_IsOK(res7)) {
35001 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
35002 }
35003 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
35004 }
35005 {
35006 PyThreadState* __tstate = wxPyBeginAllowThreads();
35007 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
35008 wxPyEndAllowThreads(__tstate);
35009 if (PyErr_Occurred()) SWIG_fail;
35010 }
35011 resultobj = SWIG_Py_Void();
35012 return resultobj;
35013 fail:
35014 return NULL;
35015 }
35016
35017
35018 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35019 PyObject *resultobj = 0;
35020 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35021 wxWindow *arg2 = (wxWindow *) 0 ;
35022 wxDC *arg3 = 0 ;
35023 wxRect *arg4 = 0 ;
35024 int arg5 = (int) 0 ;
35025 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
35026 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
35027 void *argp1 = 0 ;
35028 int res1 = 0 ;
35029 void *argp2 = 0 ;
35030 int res2 = 0 ;
35031 void *argp3 = 0 ;
35032 int res3 = 0 ;
35033 wxRect temp4 ;
35034 int val5 ;
35035 int ecode5 = 0 ;
35036 int val6 ;
35037 int ecode6 = 0 ;
35038 void *argp7 = 0 ;
35039 int res7 = 0 ;
35040 PyObject * obj0 = 0 ;
35041 PyObject * obj1 = 0 ;
35042 PyObject * obj2 = 0 ;
35043 PyObject * obj3 = 0 ;
35044 PyObject * obj4 = 0 ;
35045 PyObject * obj5 = 0 ;
35046 PyObject * obj6 = 0 ;
35047 char * kwnames[] = {
35048 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
35049 };
35050
35051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35053 if (!SWIG_IsOK(res1)) {
35054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35055 }
35056 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35057 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35058 if (!SWIG_IsOK(res2)) {
35059 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
35060 }
35061 arg2 = reinterpret_cast< wxWindow * >(argp2);
35062 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35063 if (!SWIG_IsOK(res3)) {
35064 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
35065 }
35066 if (!argp3) {
35067 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
35068 }
35069 arg3 = reinterpret_cast< wxDC * >(argp3);
35070 {
35071 arg4 = &temp4;
35072 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35073 }
35074 if (obj4) {
35075 ecode5 = SWIG_AsVal_int(obj4, &val5);
35076 if (!SWIG_IsOK(ecode5)) {
35077 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
35078 }
35079 arg5 = static_cast< int >(val5);
35080 }
35081 if (obj5) {
35082 ecode6 = SWIG_AsVal_int(obj5, &val6);
35083 if (!SWIG_IsOK(ecode6)) {
35084 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
35085 }
35086 arg6 = static_cast< wxHeaderSortIconType >(val6);
35087 }
35088 if (obj6) {
35089 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
35090 if (!SWIG_IsOK(res7)) {
35091 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
35092 }
35093 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
35094 }
35095 {
35096 PyThreadState* __tstate = wxPyBeginAllowThreads();
35097 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
35098 wxPyEndAllowThreads(__tstate);
35099 if (PyErr_Occurred()) SWIG_fail;
35100 }
35101 resultobj = SWIG_Py_Void();
35102 return resultobj;
35103 fail:
35104 return NULL;
35105 }
35106
35107
35108 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35109 PyObject *resultobj = 0;
35110 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35111 wxWindow *arg2 = (wxWindow *) 0 ;
35112 int result;
35113 void *argp1 = 0 ;
35114 int res1 = 0 ;
35115 void *argp2 = 0 ;
35116 int res2 = 0 ;
35117 PyObject * obj0 = 0 ;
35118 PyObject * obj1 = 0 ;
35119 char * kwnames[] = {
35120 (char *) "self",(char *) "win", NULL
35121 };
35122
35123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
35124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35125 if (!SWIG_IsOK(res1)) {
35126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35127 }
35128 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35129 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35130 if (!SWIG_IsOK(res2)) {
35131 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
35132 }
35133 arg2 = reinterpret_cast< wxWindow * >(argp2);
35134 {
35135 PyThreadState* __tstate = wxPyBeginAllowThreads();
35136 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
35137 wxPyEndAllowThreads(__tstate);
35138 if (PyErr_Occurred()) SWIG_fail;
35139 }
35140 resultobj = SWIG_From_int(static_cast< int >(result));
35141 return resultobj;
35142 fail:
35143 return NULL;
35144 }
35145
35146
35147 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35148 PyObject *resultobj = 0;
35149 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35150 wxWindow *arg2 = (wxWindow *) 0 ;
35151 wxDC *arg3 = 0 ;
35152 wxRect *arg4 = 0 ;
35153 int arg5 = (int) 0 ;
35154 void *argp1 = 0 ;
35155 int res1 = 0 ;
35156 void *argp2 = 0 ;
35157 int res2 = 0 ;
35158 void *argp3 = 0 ;
35159 int res3 = 0 ;
35160 wxRect temp4 ;
35161 int val5 ;
35162 int ecode5 = 0 ;
35163 PyObject * obj0 = 0 ;
35164 PyObject * obj1 = 0 ;
35165 PyObject * obj2 = 0 ;
35166 PyObject * obj3 = 0 ;
35167 PyObject * obj4 = 0 ;
35168 char * kwnames[] = {
35169 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35170 };
35171
35172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35174 if (!SWIG_IsOK(res1)) {
35175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35176 }
35177 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35178 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35179 if (!SWIG_IsOK(res2)) {
35180 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35181 }
35182 arg2 = reinterpret_cast< wxWindow * >(argp2);
35183 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35184 if (!SWIG_IsOK(res3)) {
35185 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
35186 }
35187 if (!argp3) {
35188 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
35189 }
35190 arg3 = reinterpret_cast< wxDC * >(argp3);
35191 {
35192 arg4 = &temp4;
35193 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35194 }
35195 if (obj4) {
35196 ecode5 = SWIG_AsVal_int(obj4, &val5);
35197 if (!SWIG_IsOK(ecode5)) {
35198 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
35199 }
35200 arg5 = static_cast< int >(val5);
35201 }
35202 {
35203 PyThreadState* __tstate = wxPyBeginAllowThreads();
35204 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35205 wxPyEndAllowThreads(__tstate);
35206 if (PyErr_Occurred()) SWIG_fail;
35207 }
35208 resultobj = SWIG_Py_Void();
35209 return resultobj;
35210 fail:
35211 return NULL;
35212 }
35213
35214
35215 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35216 PyObject *resultobj = 0;
35217 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35218 wxWindow *arg2 = (wxWindow *) 0 ;
35219 wxDC *arg3 = 0 ;
35220 wxRect *arg4 = 0 ;
35221 int arg5 = (int) 0 ;
35222 void *argp1 = 0 ;
35223 int res1 = 0 ;
35224 void *argp2 = 0 ;
35225 int res2 = 0 ;
35226 void *argp3 = 0 ;
35227 int res3 = 0 ;
35228 wxRect temp4 ;
35229 int val5 ;
35230 int ecode5 = 0 ;
35231 PyObject * obj0 = 0 ;
35232 PyObject * obj1 = 0 ;
35233 PyObject * obj2 = 0 ;
35234 PyObject * obj3 = 0 ;
35235 PyObject * obj4 = 0 ;
35236 char * kwnames[] = {
35237 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35238 };
35239
35240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35242 if (!SWIG_IsOK(res1)) {
35243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35244 }
35245 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35246 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35247 if (!SWIG_IsOK(res2)) {
35248 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
35249 }
35250 arg2 = reinterpret_cast< wxWindow * >(argp2);
35251 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35252 if (!SWIG_IsOK(res3)) {
35253 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
35254 }
35255 if (!argp3) {
35256 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
35257 }
35258 arg3 = reinterpret_cast< wxDC * >(argp3);
35259 {
35260 arg4 = &temp4;
35261 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35262 }
35263 if (obj4) {
35264 ecode5 = SWIG_AsVal_int(obj4, &val5);
35265 if (!SWIG_IsOK(ecode5)) {
35266 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
35267 }
35268 arg5 = static_cast< int >(val5);
35269 }
35270 {
35271 PyThreadState* __tstate = wxPyBeginAllowThreads();
35272 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
35273 wxPyEndAllowThreads(__tstate);
35274 if (PyErr_Occurred()) SWIG_fail;
35275 }
35276 resultobj = SWIG_Py_Void();
35277 return resultobj;
35278 fail:
35279 return NULL;
35280 }
35281
35282
35283 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35284 PyObject *resultobj = 0;
35285 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35286 wxWindow *arg2 = (wxWindow *) 0 ;
35287 wxDC *arg3 = 0 ;
35288 wxSize *arg4 = 0 ;
35289 int arg5 ;
35290 wxOrientation arg6 ;
35291 int arg7 = (int) 0 ;
35292 void *argp1 = 0 ;
35293 int res1 = 0 ;
35294 void *argp2 = 0 ;
35295 int res2 = 0 ;
35296 void *argp3 = 0 ;
35297 int res3 = 0 ;
35298 wxSize temp4 ;
35299 int val5 ;
35300 int ecode5 = 0 ;
35301 int val6 ;
35302 int ecode6 = 0 ;
35303 int val7 ;
35304 int ecode7 = 0 ;
35305 PyObject * obj0 = 0 ;
35306 PyObject * obj1 = 0 ;
35307 PyObject * obj2 = 0 ;
35308 PyObject * obj3 = 0 ;
35309 PyObject * obj4 = 0 ;
35310 PyObject * obj5 = 0 ;
35311 PyObject * obj6 = 0 ;
35312 char * kwnames[] = {
35313 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
35314 };
35315
35316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35318 if (!SWIG_IsOK(res1)) {
35319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35320 }
35321 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35322 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35323 if (!SWIG_IsOK(res2)) {
35324 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
35325 }
35326 arg2 = reinterpret_cast< wxWindow * >(argp2);
35327 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35328 if (!SWIG_IsOK(res3)) {
35329 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
35330 }
35331 if (!argp3) {
35332 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
35333 }
35334 arg3 = reinterpret_cast< wxDC * >(argp3);
35335 {
35336 arg4 = &temp4;
35337 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
35338 }
35339 ecode5 = SWIG_AsVal_int(obj4, &val5);
35340 if (!SWIG_IsOK(ecode5)) {
35341 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
35342 }
35343 arg5 = static_cast< int >(val5);
35344 ecode6 = SWIG_AsVal_int(obj5, &val6);
35345 if (!SWIG_IsOK(ecode6)) {
35346 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
35347 }
35348 arg6 = static_cast< wxOrientation >(val6);
35349 if (obj6) {
35350 ecode7 = SWIG_AsVal_int(obj6, &val7);
35351 if (!SWIG_IsOK(ecode7)) {
35352 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
35353 }
35354 arg7 = static_cast< int >(val7);
35355 }
35356 {
35357 PyThreadState* __tstate = wxPyBeginAllowThreads();
35358 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
35359 wxPyEndAllowThreads(__tstate);
35360 if (PyErr_Occurred()) SWIG_fail;
35361 }
35362 resultobj = SWIG_Py_Void();
35363 return resultobj;
35364 fail:
35365 return NULL;
35366 }
35367
35368
35369 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35370 PyObject *resultobj = 0;
35371 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35372 wxWindow *arg2 = (wxWindow *) 0 ;
35373 wxDC *arg3 = 0 ;
35374 wxRect *arg4 = 0 ;
35375 int arg5 = (int) 0 ;
35376 void *argp1 = 0 ;
35377 int res1 = 0 ;
35378 void *argp2 = 0 ;
35379 int res2 = 0 ;
35380 void *argp3 = 0 ;
35381 int res3 = 0 ;
35382 wxRect temp4 ;
35383 int val5 ;
35384 int ecode5 = 0 ;
35385 PyObject * obj0 = 0 ;
35386 PyObject * obj1 = 0 ;
35387 PyObject * obj2 = 0 ;
35388 PyObject * obj3 = 0 ;
35389 PyObject * obj4 = 0 ;
35390 char * kwnames[] = {
35391 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35392 };
35393
35394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35396 if (!SWIG_IsOK(res1)) {
35397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35398 }
35399 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35400 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35401 if (!SWIG_IsOK(res2)) {
35402 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35403 }
35404 arg2 = reinterpret_cast< wxWindow * >(argp2);
35405 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35406 if (!SWIG_IsOK(res3)) {
35407 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35408 }
35409 if (!argp3) {
35410 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35411 }
35412 arg3 = reinterpret_cast< wxDC * >(argp3);
35413 {
35414 arg4 = &temp4;
35415 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35416 }
35417 if (obj4) {
35418 ecode5 = SWIG_AsVal_int(obj4, &val5);
35419 if (!SWIG_IsOK(ecode5)) {
35420 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
35421 }
35422 arg5 = static_cast< int >(val5);
35423 }
35424 {
35425 PyThreadState* __tstate = wxPyBeginAllowThreads();
35426 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35427 wxPyEndAllowThreads(__tstate);
35428 if (PyErr_Occurred()) SWIG_fail;
35429 }
35430 resultobj = SWIG_Py_Void();
35431 return resultobj;
35432 fail:
35433 return NULL;
35434 }
35435
35436
35437 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35438 PyObject *resultobj = 0;
35439 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35440 wxWindow *arg2 = (wxWindow *) 0 ;
35441 wxDC *arg3 = 0 ;
35442 wxRect *arg4 = 0 ;
35443 int arg5 = (int) 0 ;
35444 void *argp1 = 0 ;
35445 int res1 = 0 ;
35446 void *argp2 = 0 ;
35447 int res2 = 0 ;
35448 void *argp3 = 0 ;
35449 int res3 = 0 ;
35450 wxRect temp4 ;
35451 int val5 ;
35452 int ecode5 = 0 ;
35453 PyObject * obj0 = 0 ;
35454 PyObject * obj1 = 0 ;
35455 PyObject * obj2 = 0 ;
35456 PyObject * obj3 = 0 ;
35457 PyObject * obj4 = 0 ;
35458 char * kwnames[] = {
35459 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35460 };
35461
35462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35464 if (!SWIG_IsOK(res1)) {
35465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35466 }
35467 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35468 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35469 if (!SWIG_IsOK(res2)) {
35470 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
35471 }
35472 arg2 = reinterpret_cast< wxWindow * >(argp2);
35473 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35474 if (!SWIG_IsOK(res3)) {
35475 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35476 }
35477 if (!argp3) {
35478 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35479 }
35480 arg3 = reinterpret_cast< wxDC * >(argp3);
35481 {
35482 arg4 = &temp4;
35483 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35484 }
35485 if (obj4) {
35486 ecode5 = SWIG_AsVal_int(obj4, &val5);
35487 if (!SWIG_IsOK(ecode5)) {
35488 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
35489 }
35490 arg5 = static_cast< int >(val5);
35491 }
35492 {
35493 PyThreadState* __tstate = wxPyBeginAllowThreads();
35494 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
35495 wxPyEndAllowThreads(__tstate);
35496 if (PyErr_Occurred()) SWIG_fail;
35497 }
35498 resultobj = SWIG_Py_Void();
35499 return resultobj;
35500 fail:
35501 return NULL;
35502 }
35503
35504
35505 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35506 PyObject *resultobj = 0;
35507 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35508 wxWindow *arg2 = (wxWindow *) 0 ;
35509 wxDC *arg3 = 0 ;
35510 wxRect *arg4 = 0 ;
35511 int arg5 = (int) 0 ;
35512 void *argp1 = 0 ;
35513 int res1 = 0 ;
35514 void *argp2 = 0 ;
35515 int res2 = 0 ;
35516 void *argp3 = 0 ;
35517 int res3 = 0 ;
35518 wxRect temp4 ;
35519 int val5 ;
35520 int ecode5 = 0 ;
35521 PyObject * obj0 = 0 ;
35522 PyObject * obj1 = 0 ;
35523 PyObject * obj2 = 0 ;
35524 PyObject * obj3 = 0 ;
35525 PyObject * obj4 = 0 ;
35526 char * kwnames[] = {
35527 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35528 };
35529
35530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35532 if (!SWIG_IsOK(res1)) {
35533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35534 }
35535 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35536 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35537 if (!SWIG_IsOK(res2)) {
35538 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
35539 }
35540 arg2 = reinterpret_cast< wxWindow * >(argp2);
35541 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35542 if (!SWIG_IsOK(res3)) {
35543 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35544 }
35545 if (!argp3) {
35546 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35547 }
35548 arg3 = reinterpret_cast< wxDC * >(argp3);
35549 {
35550 arg4 = &temp4;
35551 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35552 }
35553 if (obj4) {
35554 ecode5 = SWIG_AsVal_int(obj4, &val5);
35555 if (!SWIG_IsOK(ecode5)) {
35556 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
35557 }
35558 arg5 = static_cast< int >(val5);
35559 }
35560 {
35561 PyThreadState* __tstate = wxPyBeginAllowThreads();
35562 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
35563 wxPyEndAllowThreads(__tstate);
35564 if (PyErr_Occurred()) SWIG_fail;
35565 }
35566 resultobj = SWIG_Py_Void();
35567 return resultobj;
35568 fail:
35569 return NULL;
35570 }
35571
35572
35573 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35574 PyObject *resultobj = 0;
35575 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35576 wxWindow *arg2 = (wxWindow *) 0 ;
35577 wxDC *arg3 = 0 ;
35578 wxRect *arg4 = 0 ;
35579 int arg5 = (int) 0 ;
35580 void *argp1 = 0 ;
35581 int res1 = 0 ;
35582 void *argp2 = 0 ;
35583 int res2 = 0 ;
35584 void *argp3 = 0 ;
35585 int res3 = 0 ;
35586 wxRect temp4 ;
35587 int val5 ;
35588 int ecode5 = 0 ;
35589 PyObject * obj0 = 0 ;
35590 PyObject * obj1 = 0 ;
35591 PyObject * obj2 = 0 ;
35592 PyObject * obj3 = 0 ;
35593 PyObject * obj4 = 0 ;
35594 char * kwnames[] = {
35595 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35596 };
35597
35598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35600 if (!SWIG_IsOK(res1)) {
35601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35602 }
35603 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35604 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35605 if (!SWIG_IsOK(res2)) {
35606 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35607 }
35608 arg2 = reinterpret_cast< wxWindow * >(argp2);
35609 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35610 if (!SWIG_IsOK(res3)) {
35611 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35612 }
35613 if (!argp3) {
35614 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35615 }
35616 arg3 = reinterpret_cast< wxDC * >(argp3);
35617 {
35618 arg4 = &temp4;
35619 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35620 }
35621 if (obj4) {
35622 ecode5 = SWIG_AsVal_int(obj4, &val5);
35623 if (!SWIG_IsOK(ecode5)) {
35624 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
35625 }
35626 arg5 = static_cast< int >(val5);
35627 }
35628 {
35629 PyThreadState* __tstate = wxPyBeginAllowThreads();
35630 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35631 wxPyEndAllowThreads(__tstate);
35632 if (PyErr_Occurred()) SWIG_fail;
35633 }
35634 resultobj = SWIG_Py_Void();
35635 return resultobj;
35636 fail:
35637 return NULL;
35638 }
35639
35640
35641 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35642 PyObject *resultobj = 0;
35643 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35644 wxWindow *arg2 = (wxWindow *) 0 ;
35645 wxDC *arg3 = 0 ;
35646 wxRect *arg4 = 0 ;
35647 int arg5 = (int) 0 ;
35648 void *argp1 = 0 ;
35649 int res1 = 0 ;
35650 void *argp2 = 0 ;
35651 int res2 = 0 ;
35652 void *argp3 = 0 ;
35653 int res3 = 0 ;
35654 wxRect temp4 ;
35655 int val5 ;
35656 int ecode5 = 0 ;
35657 PyObject * obj0 = 0 ;
35658 PyObject * obj1 = 0 ;
35659 PyObject * obj2 = 0 ;
35660 PyObject * obj3 = 0 ;
35661 PyObject * obj4 = 0 ;
35662 char * kwnames[] = {
35663 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35664 };
35665
35666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35668 if (!SWIG_IsOK(res1)) {
35669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35670 }
35671 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35672 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35673 if (!SWIG_IsOK(res2)) {
35674 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
35675 }
35676 arg2 = reinterpret_cast< wxWindow * >(argp2);
35677 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35678 if (!SWIG_IsOK(res3)) {
35679 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35680 }
35681 if (!argp3) {
35682 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35683 }
35684 arg3 = reinterpret_cast< wxDC * >(argp3);
35685 {
35686 arg4 = &temp4;
35687 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35688 }
35689 if (obj4) {
35690 ecode5 = SWIG_AsVal_int(obj4, &val5);
35691 if (!SWIG_IsOK(ecode5)) {
35692 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
35693 }
35694 arg5 = static_cast< int >(val5);
35695 }
35696 {
35697 PyThreadState* __tstate = wxPyBeginAllowThreads();
35698 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
35699 wxPyEndAllowThreads(__tstate);
35700 if (PyErr_Occurred()) SWIG_fail;
35701 }
35702 resultobj = SWIG_Py_Void();
35703 return resultobj;
35704 fail:
35705 return NULL;
35706 }
35707
35708
35709 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35710 PyObject *resultobj = 0;
35711 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35712 wxWindow *arg2 = (wxWindow *) 0 ;
35713 SwigValueWrapper<wxSplitterRenderParams > result;
35714 void *argp1 = 0 ;
35715 int res1 = 0 ;
35716 void *argp2 = 0 ;
35717 int res2 = 0 ;
35718 PyObject * obj0 = 0 ;
35719 PyObject * obj1 = 0 ;
35720 char * kwnames[] = {
35721 (char *) "self",(char *) "win", NULL
35722 };
35723
35724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
35725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35726 if (!SWIG_IsOK(res1)) {
35727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35728 }
35729 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35730 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35731 if (!SWIG_IsOK(res2)) {
35732 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
35733 }
35734 arg2 = reinterpret_cast< wxWindow * >(argp2);
35735 {
35736 PyThreadState* __tstate = wxPyBeginAllowThreads();
35737 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
35738 wxPyEndAllowThreads(__tstate);
35739 if (PyErr_Occurred()) SWIG_fail;
35740 }
35741 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
35742 return resultobj;
35743 fail:
35744 return NULL;
35745 }
35746
35747
35748 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35749 PyObject *resultobj = 0;
35750 wxRendererNative *result = 0 ;
35751
35752 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
35753 {
35754 if (!wxPyCheckForApp()) SWIG_fail;
35755 PyThreadState* __tstate = wxPyBeginAllowThreads();
35756 {
35757 wxRendererNative &_result_ref = wxRendererNative::Get();
35758 result = (wxRendererNative *) &_result_ref;
35759 }
35760 wxPyEndAllowThreads(__tstate);
35761 if (PyErr_Occurred()) SWIG_fail;
35762 }
35763 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35764 return resultobj;
35765 fail:
35766 return NULL;
35767 }
35768
35769
35770 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35771 PyObject *resultobj = 0;
35772 wxRendererNative *result = 0 ;
35773
35774 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
35775 {
35776 if (!wxPyCheckForApp()) SWIG_fail;
35777 PyThreadState* __tstate = wxPyBeginAllowThreads();
35778 {
35779 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
35780 result = (wxRendererNative *) &_result_ref;
35781 }
35782 wxPyEndAllowThreads(__tstate);
35783 if (PyErr_Occurred()) SWIG_fail;
35784 }
35785 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35786 return resultobj;
35787 fail:
35788 return NULL;
35789 }
35790
35791
35792 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35793 PyObject *resultobj = 0;
35794 wxRendererNative *result = 0 ;
35795
35796 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
35797 {
35798 if (!wxPyCheckForApp()) SWIG_fail;
35799 PyThreadState* __tstate = wxPyBeginAllowThreads();
35800 {
35801 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
35802 result = (wxRendererNative *) &_result_ref;
35803 }
35804 wxPyEndAllowThreads(__tstate);
35805 if (PyErr_Occurred()) SWIG_fail;
35806 }
35807 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35808 return resultobj;
35809 fail:
35810 return NULL;
35811 }
35812
35813
35814 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35815 PyObject *resultobj = 0;
35816 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35817 wxRendererNative *result = 0 ;
35818 void *argp1 = 0 ;
35819 int res1 = 0 ;
35820 PyObject * obj0 = 0 ;
35821 char * kwnames[] = {
35822 (char *) "renderer", NULL
35823 };
35824
35825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
35826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35827 if (!SWIG_IsOK(res1)) {
35828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35829 }
35830 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35831 {
35832 if (!wxPyCheckForApp()) SWIG_fail;
35833 PyThreadState* __tstate = wxPyBeginAllowThreads();
35834 result = (wxRendererNative *)wxRendererNative::Set(arg1);
35835 wxPyEndAllowThreads(__tstate);
35836 if (PyErr_Occurred()) SWIG_fail;
35837 }
35838 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35839 return resultobj;
35840 fail:
35841 return NULL;
35842 }
35843
35844
35845 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35846 PyObject *resultobj = 0;
35847 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35848 SwigValueWrapper<wxRendererVersion > result;
35849 void *argp1 = 0 ;
35850 int res1 = 0 ;
35851 PyObject *swig_obj[1] ;
35852
35853 if (!args) SWIG_fail;
35854 swig_obj[0] = args;
35855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35856 if (!SWIG_IsOK(res1)) {
35857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
35858 }
35859 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35860 {
35861 PyThreadState* __tstate = wxPyBeginAllowThreads();
35862 result = ((wxRendererNative const *)arg1)->GetVersion();
35863 wxPyEndAllowThreads(__tstate);
35864 if (PyErr_Occurred()) SWIG_fail;
35865 }
35866 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
35867 return resultobj;
35868 fail:
35869 return NULL;
35870 }
35871
35872
35873 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35874 PyObject *obj;
35875 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35876 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
35877 return SWIG_Py_Void();
35878 }
35879
35880 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35881 PyObject *resultobj = 0;
35882 wxPseudoDC *result = 0 ;
35883
35884 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
35885 {
35886 PyThreadState* __tstate = wxPyBeginAllowThreads();
35887 result = (wxPseudoDC *)new wxPseudoDC();
35888 wxPyEndAllowThreads(__tstate);
35889 if (PyErr_Occurred()) SWIG_fail;
35890 }
35891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
35892 return resultobj;
35893 fail:
35894 return NULL;
35895 }
35896
35897
35898 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35899 PyObject *resultobj = 0;
35900 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35901 void *argp1 = 0 ;
35902 int res1 = 0 ;
35903 PyObject *swig_obj[1] ;
35904
35905 if (!args) SWIG_fail;
35906 swig_obj[0] = args;
35907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35908 if (!SWIG_IsOK(res1)) {
35909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35910 }
35911 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35912 {
35913 PyThreadState* __tstate = wxPyBeginAllowThreads();
35914 (arg1)->BeginDrawing();
35915 wxPyEndAllowThreads(__tstate);
35916 if (PyErr_Occurred()) SWIG_fail;
35917 }
35918 resultobj = SWIG_Py_Void();
35919 return resultobj;
35920 fail:
35921 return NULL;
35922 }
35923
35924
35925 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35926 PyObject *resultobj = 0;
35927 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35928 void *argp1 = 0 ;
35929 int res1 = 0 ;
35930 PyObject *swig_obj[1] ;
35931
35932 if (!args) SWIG_fail;
35933 swig_obj[0] = args;
35934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35935 if (!SWIG_IsOK(res1)) {
35936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35937 }
35938 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35939 {
35940 PyThreadState* __tstate = wxPyBeginAllowThreads();
35941 (arg1)->EndDrawing();
35942 wxPyEndAllowThreads(__tstate);
35943 if (PyErr_Occurred()) SWIG_fail;
35944 }
35945 resultobj = SWIG_Py_Void();
35946 return resultobj;
35947 fail:
35948 return NULL;
35949 }
35950
35951
35952 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35953 PyObject *resultobj = 0;
35954 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35955 void *argp1 = 0 ;
35956 int res1 = 0 ;
35957 PyObject *swig_obj[1] ;
35958
35959 if (!args) SWIG_fail;
35960 swig_obj[0] = args;
35961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35962 if (!SWIG_IsOK(res1)) {
35963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35964 }
35965 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35966 {
35967 PyThreadState* __tstate = wxPyBeginAllowThreads();
35968 delete arg1;
35969
35970 wxPyEndAllowThreads(__tstate);
35971 if (PyErr_Occurred()) SWIG_fail;
35972 }
35973 resultobj = SWIG_Py_Void();
35974 return resultobj;
35975 fail:
35976 return NULL;
35977 }
35978
35979
35980 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35981 PyObject *resultobj = 0;
35982 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35983 void *argp1 = 0 ;
35984 int res1 = 0 ;
35985 PyObject *swig_obj[1] ;
35986
35987 if (!args) SWIG_fail;
35988 swig_obj[0] = args;
35989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35990 if (!SWIG_IsOK(res1)) {
35991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35992 }
35993 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35994 {
35995 PyThreadState* __tstate = wxPyBeginAllowThreads();
35996 (arg1)->RemoveAll();
35997 wxPyEndAllowThreads(__tstate);
35998 if (PyErr_Occurred()) SWIG_fail;
35999 }
36000 resultobj = SWIG_Py_Void();
36001 return resultobj;
36002 fail:
36003 return NULL;
36004 }
36005
36006
36007 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36008 PyObject *resultobj = 0;
36009 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36010 int result;
36011 void *argp1 = 0 ;
36012 int res1 = 0 ;
36013 PyObject *swig_obj[1] ;
36014
36015 if (!args) SWIG_fail;
36016 swig_obj[0] = args;
36017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36018 if (!SWIG_IsOK(res1)) {
36019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36020 }
36021 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36022 {
36023 PyThreadState* __tstate = wxPyBeginAllowThreads();
36024 result = (int)(arg1)->GetLen();
36025 wxPyEndAllowThreads(__tstate);
36026 if (PyErr_Occurred()) SWIG_fail;
36027 }
36028 resultobj = SWIG_From_int(static_cast< int >(result));
36029 return resultobj;
36030 fail:
36031 return NULL;
36032 }
36033
36034
36035 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36036 PyObject *resultobj = 0;
36037 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36038 int arg2 ;
36039 void *argp1 = 0 ;
36040 int res1 = 0 ;
36041 int val2 ;
36042 int ecode2 = 0 ;
36043 PyObject * obj0 = 0 ;
36044 PyObject * obj1 = 0 ;
36045 char * kwnames[] = {
36046 (char *) "self",(char *) "id", NULL
36047 };
36048
36049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
36050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36051 if (!SWIG_IsOK(res1)) {
36052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36053 }
36054 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36055 ecode2 = SWIG_AsVal_int(obj1, &val2);
36056 if (!SWIG_IsOK(ecode2)) {
36057 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
36058 }
36059 arg2 = static_cast< int >(val2);
36060 {
36061 PyThreadState* __tstate = wxPyBeginAllowThreads();
36062 (arg1)->SetId(arg2);
36063 wxPyEndAllowThreads(__tstate);
36064 if (PyErr_Occurred()) SWIG_fail;
36065 }
36066 resultobj = SWIG_Py_Void();
36067 return resultobj;
36068 fail:
36069 return NULL;
36070 }
36071
36072
36073 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36074 PyObject *resultobj = 0;
36075 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36076 int arg2 ;
36077 void *argp1 = 0 ;
36078 int res1 = 0 ;
36079 int val2 ;
36080 int ecode2 = 0 ;
36081 PyObject * obj0 = 0 ;
36082 PyObject * obj1 = 0 ;
36083 char * kwnames[] = {
36084 (char *) "self",(char *) "id", NULL
36085 };
36086
36087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
36088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36089 if (!SWIG_IsOK(res1)) {
36090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36091 }
36092 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36093 ecode2 = SWIG_AsVal_int(obj1, &val2);
36094 if (!SWIG_IsOK(ecode2)) {
36095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
36096 }
36097 arg2 = static_cast< int >(val2);
36098 {
36099 PyThreadState* __tstate = wxPyBeginAllowThreads();
36100 (arg1)->ClearId(arg2);
36101 wxPyEndAllowThreads(__tstate);
36102 if (PyErr_Occurred()) SWIG_fail;
36103 }
36104 resultobj = SWIG_Py_Void();
36105 return resultobj;
36106 fail:
36107 return NULL;
36108 }
36109
36110
36111 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36112 PyObject *resultobj = 0;
36113 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36114 int arg2 ;
36115 void *argp1 = 0 ;
36116 int res1 = 0 ;
36117 int val2 ;
36118 int ecode2 = 0 ;
36119 PyObject * obj0 = 0 ;
36120 PyObject * obj1 = 0 ;
36121 char * kwnames[] = {
36122 (char *) "self",(char *) "id", NULL
36123 };
36124
36125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
36126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36127 if (!SWIG_IsOK(res1)) {
36128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36129 }
36130 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36131 ecode2 = SWIG_AsVal_int(obj1, &val2);
36132 if (!SWIG_IsOK(ecode2)) {
36133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
36134 }
36135 arg2 = static_cast< int >(val2);
36136 {
36137 PyThreadState* __tstate = wxPyBeginAllowThreads();
36138 (arg1)->RemoveId(arg2);
36139 wxPyEndAllowThreads(__tstate);
36140 if (PyErr_Occurred()) SWIG_fail;
36141 }
36142 resultobj = SWIG_Py_Void();
36143 return resultobj;
36144 fail:
36145 return NULL;
36146 }
36147
36148
36149 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36150 PyObject *resultobj = 0;
36151 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36152 int arg2 ;
36153 int arg3 ;
36154 int arg4 ;
36155 void *argp1 = 0 ;
36156 int res1 = 0 ;
36157 int val2 ;
36158 int ecode2 = 0 ;
36159 int val3 ;
36160 int ecode3 = 0 ;
36161 int val4 ;
36162 int ecode4 = 0 ;
36163 PyObject * obj0 = 0 ;
36164 PyObject * obj1 = 0 ;
36165 PyObject * obj2 = 0 ;
36166 PyObject * obj3 = 0 ;
36167 char * kwnames[] = {
36168 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
36169 };
36170
36171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36173 if (!SWIG_IsOK(res1)) {
36174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36175 }
36176 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36177 ecode2 = SWIG_AsVal_int(obj1, &val2);
36178 if (!SWIG_IsOK(ecode2)) {
36179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
36180 }
36181 arg2 = static_cast< int >(val2);
36182 ecode3 = SWIG_AsVal_int(obj2, &val3);
36183 if (!SWIG_IsOK(ecode3)) {
36184 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
36185 }
36186 arg3 = static_cast< int >(val3);
36187 ecode4 = SWIG_AsVal_int(obj3, &val4);
36188 if (!SWIG_IsOK(ecode4)) {
36189 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
36190 }
36191 arg4 = static_cast< int >(val4);
36192 {
36193 PyThreadState* __tstate = wxPyBeginAllowThreads();
36194 (arg1)->TranslateId(arg2,arg3,arg4);
36195 wxPyEndAllowThreads(__tstate);
36196 if (PyErr_Occurred()) SWIG_fail;
36197 }
36198 resultobj = SWIG_Py_Void();
36199 return resultobj;
36200 fail:
36201 return NULL;
36202 }
36203
36204
36205 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36206 PyObject *resultobj = 0;
36207 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36208 int arg2 ;
36209 bool arg3 = (bool) true ;
36210 void *argp1 = 0 ;
36211 int res1 = 0 ;
36212 int val2 ;
36213 int ecode2 = 0 ;
36214 bool val3 ;
36215 int ecode3 = 0 ;
36216 PyObject * obj0 = 0 ;
36217 PyObject * obj1 = 0 ;
36218 PyObject * obj2 = 0 ;
36219 char * kwnames[] = {
36220 (char *) "self",(char *) "id",(char *) "greyout", NULL
36221 };
36222
36223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",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_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36227 }
36228 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36229 ecode2 = SWIG_AsVal_int(obj1, &val2);
36230 if (!SWIG_IsOK(ecode2)) {
36231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
36232 }
36233 arg2 = static_cast< int >(val2);
36234 if (obj2) {
36235 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36236 if (!SWIG_IsOK(ecode3)) {
36237 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
36238 }
36239 arg3 = static_cast< bool >(val3);
36240 }
36241 {
36242 PyThreadState* __tstate = wxPyBeginAllowThreads();
36243 (arg1)->SetIdGreyedOut(arg2,arg3);
36244 wxPyEndAllowThreads(__tstate);
36245 if (PyErr_Occurred()) SWIG_fail;
36246 }
36247 resultobj = SWIG_Py_Void();
36248 return resultobj;
36249 fail:
36250 return NULL;
36251 }
36252
36253
36254 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36255 PyObject *resultobj = 0;
36256 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36257 int arg2 ;
36258 bool result;
36259 void *argp1 = 0 ;
36260 int res1 = 0 ;
36261 int val2 ;
36262 int ecode2 = 0 ;
36263 PyObject * obj0 = 0 ;
36264 PyObject * obj1 = 0 ;
36265 char * kwnames[] = {
36266 (char *) "self",(char *) "id", NULL
36267 };
36268
36269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) 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_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36273 }
36274 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36275 ecode2 = SWIG_AsVal_int(obj1, &val2);
36276 if (!SWIG_IsOK(ecode2)) {
36277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
36278 }
36279 arg2 = static_cast< int >(val2);
36280 {
36281 PyThreadState* __tstate = wxPyBeginAllowThreads();
36282 result = (bool)(arg1)->GetIdGreyedOut(arg2);
36283 wxPyEndAllowThreads(__tstate);
36284 if (PyErr_Occurred()) SWIG_fail;
36285 }
36286 {
36287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36288 }
36289 return resultobj;
36290 fail:
36291 return NULL;
36292 }
36293
36294
36295 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36296 PyObject *resultobj = 0;
36297 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36298 int arg2 ;
36299 int arg3 ;
36300 int arg4 = (int) 1 ;
36301 wxColor const &arg5_defvalue = *wxWHITE ;
36302 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
36303 PyObject *result = 0 ;
36304 void *argp1 = 0 ;
36305 int res1 = 0 ;
36306 int val2 ;
36307 int ecode2 = 0 ;
36308 int val3 ;
36309 int ecode3 = 0 ;
36310 int val4 ;
36311 int ecode4 = 0 ;
36312 void *argp5 = 0 ;
36313 int res5 = 0 ;
36314 PyObject * obj0 = 0 ;
36315 PyObject * obj1 = 0 ;
36316 PyObject * obj2 = 0 ;
36317 PyObject * obj3 = 0 ;
36318 PyObject * obj4 = 0 ;
36319 char * kwnames[] = {
36320 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
36321 };
36322
36323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36325 if (!SWIG_IsOK(res1)) {
36326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36327 }
36328 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36329 ecode2 = SWIG_AsVal_int(obj1, &val2);
36330 if (!SWIG_IsOK(ecode2)) {
36331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
36332 }
36333 arg2 = static_cast< int >(val2);
36334 ecode3 = SWIG_AsVal_int(obj2, &val3);
36335 if (!SWIG_IsOK(ecode3)) {
36336 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
36337 }
36338 arg3 = static_cast< int >(val3);
36339 if (obj3) {
36340 ecode4 = SWIG_AsVal_int(obj3, &val4);
36341 if (!SWIG_IsOK(ecode4)) {
36342 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
36343 }
36344 arg4 = static_cast< int >(val4);
36345 }
36346 if (obj4) {
36347 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
36348 if (!SWIG_IsOK(res5)) {
36349 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
36350 }
36351 if (!argp5) {
36352 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
36353 }
36354 arg5 = reinterpret_cast< wxColor * >(argp5);
36355 }
36356 {
36357 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
36358 if (PyErr_Occurred()) SWIG_fail;
36359 }
36360 resultobj = result;
36361 return resultobj;
36362 fail:
36363 return NULL;
36364 }
36365
36366
36367 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36368 PyObject *resultobj = 0;
36369 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36370 int arg2 ;
36371 int arg3 ;
36372 PyObject *result = 0 ;
36373 void *argp1 = 0 ;
36374 int res1 = 0 ;
36375 int val2 ;
36376 int ecode2 = 0 ;
36377 int val3 ;
36378 int ecode3 = 0 ;
36379 PyObject * obj0 = 0 ;
36380 PyObject * obj1 = 0 ;
36381 PyObject * obj2 = 0 ;
36382 char * kwnames[] = {
36383 (char *) "self",(char *) "x",(char *) "y", NULL
36384 };
36385
36386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36388 if (!SWIG_IsOK(res1)) {
36389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36390 }
36391 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36392 ecode2 = SWIG_AsVal_int(obj1, &val2);
36393 if (!SWIG_IsOK(ecode2)) {
36394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
36395 }
36396 arg2 = static_cast< int >(val2);
36397 ecode3 = SWIG_AsVal_int(obj2, &val3);
36398 if (!SWIG_IsOK(ecode3)) {
36399 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
36400 }
36401 arg3 = static_cast< int >(val3);
36402 {
36403 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
36404 if (PyErr_Occurred()) SWIG_fail;
36405 }
36406 resultobj = result;
36407 return resultobj;
36408 fail:
36409 return NULL;
36410 }
36411
36412
36413 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36414 PyObject *resultobj = 0;
36415 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36416 int arg2 ;
36417 wxDC *arg3 = (wxDC *) 0 ;
36418 void *argp1 = 0 ;
36419 int res1 = 0 ;
36420 int val2 ;
36421 int ecode2 = 0 ;
36422 void *argp3 = 0 ;
36423 int res3 = 0 ;
36424 PyObject * obj0 = 0 ;
36425 PyObject * obj1 = 0 ;
36426 PyObject * obj2 = 0 ;
36427 char * kwnames[] = {
36428 (char *) "self",(char *) "id",(char *) "dc", NULL
36429 };
36430
36431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36433 if (!SWIG_IsOK(res1)) {
36434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36435 }
36436 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36437 ecode2 = SWIG_AsVal_int(obj1, &val2);
36438 if (!SWIG_IsOK(ecode2)) {
36439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
36440 }
36441 arg2 = static_cast< int >(val2);
36442 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
36443 if (!SWIG_IsOK(res3)) {
36444 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
36445 }
36446 arg3 = reinterpret_cast< wxDC * >(argp3);
36447 {
36448 PyThreadState* __tstate = wxPyBeginAllowThreads();
36449 (arg1)->DrawIdToDC(arg2,arg3);
36450 wxPyEndAllowThreads(__tstate);
36451 if (PyErr_Occurred()) SWIG_fail;
36452 }
36453 resultobj = SWIG_Py_Void();
36454 return resultobj;
36455 fail:
36456 return NULL;
36457 }
36458
36459
36460 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36461 PyObject *resultobj = 0;
36462 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36463 int arg2 ;
36464 wxRect *arg3 = 0 ;
36465 void *argp1 = 0 ;
36466 int res1 = 0 ;
36467 int val2 ;
36468 int ecode2 = 0 ;
36469 wxRect temp3 ;
36470 PyObject * obj0 = 0 ;
36471 PyObject * obj1 = 0 ;
36472 PyObject * obj2 = 0 ;
36473 char * kwnames[] = {
36474 (char *) "self",(char *) "id",(char *) "rect", NULL
36475 };
36476
36477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36479 if (!SWIG_IsOK(res1)) {
36480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36481 }
36482 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36483 ecode2 = SWIG_AsVal_int(obj1, &val2);
36484 if (!SWIG_IsOK(ecode2)) {
36485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
36486 }
36487 arg2 = static_cast< int >(val2);
36488 {
36489 arg3 = &temp3;
36490 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36491 }
36492 {
36493 PyThreadState* __tstate = wxPyBeginAllowThreads();
36494 (arg1)->SetIdBounds(arg2,*arg3);
36495 wxPyEndAllowThreads(__tstate);
36496 if (PyErr_Occurred()) SWIG_fail;
36497 }
36498 resultobj = SWIG_Py_Void();
36499 return resultobj;
36500 fail:
36501 return NULL;
36502 }
36503
36504
36505 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36506 PyObject *resultobj = 0;
36507 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36508 int arg2 ;
36509 wxRect result;
36510 void *argp1 = 0 ;
36511 int res1 = 0 ;
36512 int val2 ;
36513 int ecode2 = 0 ;
36514 PyObject * obj0 = 0 ;
36515 PyObject * obj1 = 0 ;
36516 char * kwnames[] = {
36517 (char *) "self",(char *) "id", NULL
36518 };
36519
36520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
36521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36522 if (!SWIG_IsOK(res1)) {
36523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36524 }
36525 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36526 ecode2 = SWIG_AsVal_int(obj1, &val2);
36527 if (!SWIG_IsOK(ecode2)) {
36528 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
36529 }
36530 arg2 = static_cast< int >(val2);
36531 {
36532 PyThreadState* __tstate = wxPyBeginAllowThreads();
36533 result = wxPseudoDC_GetIdBounds(arg1,arg2);
36534 wxPyEndAllowThreads(__tstate);
36535 if (PyErr_Occurred()) SWIG_fail;
36536 }
36537 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
36538 return resultobj;
36539 fail:
36540 return NULL;
36541 }
36542
36543
36544 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36545 PyObject *resultobj = 0;
36546 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36547 wxDC *arg2 = (wxDC *) 0 ;
36548 wxRect *arg3 = 0 ;
36549 void *argp1 = 0 ;
36550 int res1 = 0 ;
36551 void *argp2 = 0 ;
36552 int res2 = 0 ;
36553 wxRect temp3 ;
36554 PyObject * obj0 = 0 ;
36555 PyObject * obj1 = 0 ;
36556 PyObject * obj2 = 0 ;
36557 char * kwnames[] = {
36558 (char *) "self",(char *) "dc",(char *) "rect", NULL
36559 };
36560
36561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36563 if (!SWIG_IsOK(res1)) {
36564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36565 }
36566 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36567 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36568 if (!SWIG_IsOK(res2)) {
36569 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
36570 }
36571 arg2 = reinterpret_cast< wxDC * >(argp2);
36572 {
36573 arg3 = &temp3;
36574 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36575 }
36576 {
36577 PyThreadState* __tstate = wxPyBeginAllowThreads();
36578 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
36579 wxPyEndAllowThreads(__tstate);
36580 if (PyErr_Occurred()) SWIG_fail;
36581 }
36582 resultobj = SWIG_Py_Void();
36583 return resultobj;
36584 fail:
36585 return NULL;
36586 }
36587
36588
36589 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36590 PyObject *resultobj = 0;
36591 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36592 wxDC *arg2 = (wxDC *) 0 ;
36593 wxRegion *arg3 = 0 ;
36594 void *argp1 = 0 ;
36595 int res1 = 0 ;
36596 void *argp2 = 0 ;
36597 int res2 = 0 ;
36598 void *argp3 = 0 ;
36599 int res3 = 0 ;
36600 PyObject * obj0 = 0 ;
36601 PyObject * obj1 = 0 ;
36602 PyObject * obj2 = 0 ;
36603 char * kwnames[] = {
36604 (char *) "self",(char *) "dc",(char *) "region", NULL
36605 };
36606
36607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36609 if (!SWIG_IsOK(res1)) {
36610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36611 }
36612 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36613 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36614 if (!SWIG_IsOK(res2)) {
36615 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
36616 }
36617 arg2 = reinterpret_cast< wxDC * >(argp2);
36618 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
36619 if (!SWIG_IsOK(res3)) {
36620 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36621 }
36622 if (!argp3) {
36623 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36624 }
36625 arg3 = reinterpret_cast< wxRegion * >(argp3);
36626 {
36627 PyThreadState* __tstate = wxPyBeginAllowThreads();
36628 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
36629 wxPyEndAllowThreads(__tstate);
36630 if (PyErr_Occurred()) SWIG_fail;
36631 }
36632 resultobj = SWIG_Py_Void();
36633 return resultobj;
36634 fail:
36635 return NULL;
36636 }
36637
36638
36639 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36640 PyObject *resultobj = 0;
36641 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36642 wxDC *arg2 = (wxDC *) 0 ;
36643 void *argp1 = 0 ;
36644 int res1 = 0 ;
36645 void *argp2 = 0 ;
36646 int res2 = 0 ;
36647 PyObject * obj0 = 0 ;
36648 PyObject * obj1 = 0 ;
36649 char * kwnames[] = {
36650 (char *) "self",(char *) "dc", NULL
36651 };
36652
36653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
36654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36655 if (!SWIG_IsOK(res1)) {
36656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36657 }
36658 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36659 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36660 if (!SWIG_IsOK(res2)) {
36661 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
36662 }
36663 arg2 = reinterpret_cast< wxDC * >(argp2);
36664 {
36665 PyThreadState* __tstate = wxPyBeginAllowThreads();
36666 (arg1)->DrawToDC(arg2);
36667 wxPyEndAllowThreads(__tstate);
36668 if (PyErr_Occurred()) SWIG_fail;
36669 }
36670 resultobj = SWIG_Py_Void();
36671 return resultobj;
36672 fail:
36673 return NULL;
36674 }
36675
36676
36677 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36678 PyObject *resultobj = 0;
36679 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36680 int arg2 ;
36681 int arg3 ;
36682 wxColour *arg4 = 0 ;
36683 int arg5 = (int) wxFLOOD_SURFACE ;
36684 void *argp1 = 0 ;
36685 int res1 = 0 ;
36686 int val2 ;
36687 int ecode2 = 0 ;
36688 int val3 ;
36689 int ecode3 = 0 ;
36690 wxColour temp4 ;
36691 int val5 ;
36692 int ecode5 = 0 ;
36693 PyObject * obj0 = 0 ;
36694 PyObject * obj1 = 0 ;
36695 PyObject * obj2 = 0 ;
36696 PyObject * obj3 = 0 ;
36697 PyObject * obj4 = 0 ;
36698 char * kwnames[] = {
36699 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
36700 };
36701
36702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36704 if (!SWIG_IsOK(res1)) {
36705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36706 }
36707 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36708 ecode2 = SWIG_AsVal_int(obj1, &val2);
36709 if (!SWIG_IsOK(ecode2)) {
36710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
36711 }
36712 arg2 = static_cast< int >(val2);
36713 ecode3 = SWIG_AsVal_int(obj2, &val3);
36714 if (!SWIG_IsOK(ecode3)) {
36715 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
36716 }
36717 arg3 = static_cast< int >(val3);
36718 {
36719 arg4 = &temp4;
36720 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
36721 }
36722 if (obj4) {
36723 ecode5 = SWIG_AsVal_int(obj4, &val5);
36724 if (!SWIG_IsOK(ecode5)) {
36725 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
36726 }
36727 arg5 = static_cast< int >(val5);
36728 }
36729 {
36730 PyThreadState* __tstate = wxPyBeginAllowThreads();
36731 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
36732 wxPyEndAllowThreads(__tstate);
36733 if (PyErr_Occurred()) SWIG_fail;
36734 }
36735 resultobj = SWIG_Py_Void();
36736 return resultobj;
36737 fail:
36738 return NULL;
36739 }
36740
36741
36742 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36743 PyObject *resultobj = 0;
36744 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36745 wxPoint *arg2 = 0 ;
36746 wxColour *arg3 = 0 ;
36747 int arg4 = (int) wxFLOOD_SURFACE ;
36748 void *argp1 = 0 ;
36749 int res1 = 0 ;
36750 wxPoint temp2 ;
36751 wxColour temp3 ;
36752 int val4 ;
36753 int ecode4 = 0 ;
36754 PyObject * obj0 = 0 ;
36755 PyObject * obj1 = 0 ;
36756 PyObject * obj2 = 0 ;
36757 PyObject * obj3 = 0 ;
36758 char * kwnames[] = {
36759 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
36760 };
36761
36762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36764 if (!SWIG_IsOK(res1)) {
36765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36766 }
36767 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36768 {
36769 arg2 = &temp2;
36770 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36771 }
36772 {
36773 arg3 = &temp3;
36774 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
36775 }
36776 if (obj3) {
36777 ecode4 = SWIG_AsVal_int(obj3, &val4);
36778 if (!SWIG_IsOK(ecode4)) {
36779 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
36780 }
36781 arg4 = static_cast< int >(val4);
36782 }
36783 {
36784 PyThreadState* __tstate = wxPyBeginAllowThreads();
36785 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
36786 wxPyEndAllowThreads(__tstate);
36787 if (PyErr_Occurred()) SWIG_fail;
36788 }
36789 resultobj = SWIG_Py_Void();
36790 return resultobj;
36791 fail:
36792 return NULL;
36793 }
36794
36795
36796 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36797 PyObject *resultobj = 0;
36798 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36799 int arg2 ;
36800 int arg3 ;
36801 int arg4 ;
36802 int arg5 ;
36803 void *argp1 = 0 ;
36804 int res1 = 0 ;
36805 int val2 ;
36806 int ecode2 = 0 ;
36807 int val3 ;
36808 int ecode3 = 0 ;
36809 int val4 ;
36810 int ecode4 = 0 ;
36811 int val5 ;
36812 int ecode5 = 0 ;
36813 PyObject * obj0 = 0 ;
36814 PyObject * obj1 = 0 ;
36815 PyObject * obj2 = 0 ;
36816 PyObject * obj3 = 0 ;
36817 PyObject * obj4 = 0 ;
36818 char * kwnames[] = {
36819 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
36820 };
36821
36822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36824 if (!SWIG_IsOK(res1)) {
36825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36826 }
36827 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36828 ecode2 = SWIG_AsVal_int(obj1, &val2);
36829 if (!SWIG_IsOK(ecode2)) {
36830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
36831 }
36832 arg2 = static_cast< int >(val2);
36833 ecode3 = SWIG_AsVal_int(obj2, &val3);
36834 if (!SWIG_IsOK(ecode3)) {
36835 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
36836 }
36837 arg3 = static_cast< int >(val3);
36838 ecode4 = SWIG_AsVal_int(obj3, &val4);
36839 if (!SWIG_IsOK(ecode4)) {
36840 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
36841 }
36842 arg4 = static_cast< int >(val4);
36843 ecode5 = SWIG_AsVal_int(obj4, &val5);
36844 if (!SWIG_IsOK(ecode5)) {
36845 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
36846 }
36847 arg5 = static_cast< int >(val5);
36848 {
36849 PyThreadState* __tstate = wxPyBeginAllowThreads();
36850 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
36851 wxPyEndAllowThreads(__tstate);
36852 if (PyErr_Occurred()) SWIG_fail;
36853 }
36854 resultobj = SWIG_Py_Void();
36855 return resultobj;
36856 fail:
36857 return NULL;
36858 }
36859
36860
36861 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36862 PyObject *resultobj = 0;
36863 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36864 wxPoint *arg2 = 0 ;
36865 wxPoint *arg3 = 0 ;
36866 void *argp1 = 0 ;
36867 int res1 = 0 ;
36868 wxPoint temp2 ;
36869 wxPoint temp3 ;
36870 PyObject * obj0 = 0 ;
36871 PyObject * obj1 = 0 ;
36872 PyObject * obj2 = 0 ;
36873 char * kwnames[] = {
36874 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
36875 };
36876
36877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36879 if (!SWIG_IsOK(res1)) {
36880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36881 }
36882 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36883 {
36884 arg2 = &temp2;
36885 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36886 }
36887 {
36888 arg3 = &temp3;
36889 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36890 }
36891 {
36892 PyThreadState* __tstate = wxPyBeginAllowThreads();
36893 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
36894 wxPyEndAllowThreads(__tstate);
36895 if (PyErr_Occurred()) SWIG_fail;
36896 }
36897 resultobj = SWIG_Py_Void();
36898 return resultobj;
36899 fail:
36900 return NULL;
36901 }
36902
36903
36904 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36905 PyObject *resultobj = 0;
36906 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36907 int arg2 ;
36908 int arg3 ;
36909 void *argp1 = 0 ;
36910 int res1 = 0 ;
36911 int val2 ;
36912 int ecode2 = 0 ;
36913 int val3 ;
36914 int ecode3 = 0 ;
36915 PyObject * obj0 = 0 ;
36916 PyObject * obj1 = 0 ;
36917 PyObject * obj2 = 0 ;
36918 char * kwnames[] = {
36919 (char *) "self",(char *) "x",(char *) "y", NULL
36920 };
36921
36922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36924 if (!SWIG_IsOK(res1)) {
36925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36926 }
36927 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36928 ecode2 = SWIG_AsVal_int(obj1, &val2);
36929 if (!SWIG_IsOK(ecode2)) {
36930 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
36931 }
36932 arg2 = static_cast< int >(val2);
36933 ecode3 = SWIG_AsVal_int(obj2, &val3);
36934 if (!SWIG_IsOK(ecode3)) {
36935 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
36936 }
36937 arg3 = static_cast< int >(val3);
36938 {
36939 PyThreadState* __tstate = wxPyBeginAllowThreads();
36940 (arg1)->CrossHair(arg2,arg3);
36941 wxPyEndAllowThreads(__tstate);
36942 if (PyErr_Occurred()) SWIG_fail;
36943 }
36944 resultobj = SWIG_Py_Void();
36945 return resultobj;
36946 fail:
36947 return NULL;
36948 }
36949
36950
36951 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36952 PyObject *resultobj = 0;
36953 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36954 wxPoint *arg2 = 0 ;
36955 void *argp1 = 0 ;
36956 int res1 = 0 ;
36957 wxPoint temp2 ;
36958 PyObject * obj0 = 0 ;
36959 PyObject * obj1 = 0 ;
36960 char * kwnames[] = {
36961 (char *) "self",(char *) "pt", NULL
36962 };
36963
36964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36966 if (!SWIG_IsOK(res1)) {
36967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36968 }
36969 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36970 {
36971 arg2 = &temp2;
36972 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36973 }
36974 {
36975 PyThreadState* __tstate = wxPyBeginAllowThreads();
36976 (arg1)->CrossHair((wxPoint const &)*arg2);
36977 wxPyEndAllowThreads(__tstate);
36978 if (PyErr_Occurred()) SWIG_fail;
36979 }
36980 resultobj = SWIG_Py_Void();
36981 return resultobj;
36982 fail:
36983 return NULL;
36984 }
36985
36986
36987 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36988 PyObject *resultobj = 0;
36989 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36990 int arg2 ;
36991 int arg3 ;
36992 int arg4 ;
36993 int arg5 ;
36994 int arg6 ;
36995 int arg7 ;
36996 void *argp1 = 0 ;
36997 int res1 = 0 ;
36998 int val2 ;
36999 int ecode2 = 0 ;
37000 int val3 ;
37001 int ecode3 = 0 ;
37002 int val4 ;
37003 int ecode4 = 0 ;
37004 int val5 ;
37005 int ecode5 = 0 ;
37006 int val6 ;
37007 int ecode6 = 0 ;
37008 int val7 ;
37009 int ecode7 = 0 ;
37010 PyObject * obj0 = 0 ;
37011 PyObject * obj1 = 0 ;
37012 PyObject * obj2 = 0 ;
37013 PyObject * obj3 = 0 ;
37014 PyObject * obj4 = 0 ;
37015 PyObject * obj5 = 0 ;
37016 PyObject * obj6 = 0 ;
37017 char * kwnames[] = {
37018 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
37019 };
37020
37021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37023 if (!SWIG_IsOK(res1)) {
37024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37025 }
37026 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37027 ecode2 = SWIG_AsVal_int(obj1, &val2);
37028 if (!SWIG_IsOK(ecode2)) {
37029 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
37030 }
37031 arg2 = static_cast< int >(val2);
37032 ecode3 = SWIG_AsVal_int(obj2, &val3);
37033 if (!SWIG_IsOK(ecode3)) {
37034 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
37035 }
37036 arg3 = static_cast< int >(val3);
37037 ecode4 = SWIG_AsVal_int(obj3, &val4);
37038 if (!SWIG_IsOK(ecode4)) {
37039 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
37040 }
37041 arg4 = static_cast< int >(val4);
37042 ecode5 = SWIG_AsVal_int(obj4, &val5);
37043 if (!SWIG_IsOK(ecode5)) {
37044 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
37045 }
37046 arg5 = static_cast< int >(val5);
37047 ecode6 = SWIG_AsVal_int(obj5, &val6);
37048 if (!SWIG_IsOK(ecode6)) {
37049 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
37050 }
37051 arg6 = static_cast< int >(val6);
37052 ecode7 = SWIG_AsVal_int(obj6, &val7);
37053 if (!SWIG_IsOK(ecode7)) {
37054 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
37055 }
37056 arg7 = static_cast< int >(val7);
37057 {
37058 PyThreadState* __tstate = wxPyBeginAllowThreads();
37059 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
37060 wxPyEndAllowThreads(__tstate);
37061 if (PyErr_Occurred()) SWIG_fail;
37062 }
37063 resultobj = SWIG_Py_Void();
37064 return resultobj;
37065 fail:
37066 return NULL;
37067 }
37068
37069
37070 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37071 PyObject *resultobj = 0;
37072 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37073 wxPoint *arg2 = 0 ;
37074 wxPoint *arg3 = 0 ;
37075 wxPoint *arg4 = 0 ;
37076 void *argp1 = 0 ;
37077 int res1 = 0 ;
37078 wxPoint temp2 ;
37079 wxPoint temp3 ;
37080 wxPoint temp4 ;
37081 PyObject * obj0 = 0 ;
37082 PyObject * obj1 = 0 ;
37083 PyObject * obj2 = 0 ;
37084 PyObject * obj3 = 0 ;
37085 char * kwnames[] = {
37086 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
37087 };
37088
37089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37091 if (!SWIG_IsOK(res1)) {
37092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37093 }
37094 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37095 {
37096 arg2 = &temp2;
37097 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37098 }
37099 {
37100 arg3 = &temp3;
37101 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37102 }
37103 {
37104 arg4 = &temp4;
37105 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37106 }
37107 {
37108 PyThreadState* __tstate = wxPyBeginAllowThreads();
37109 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
37110 wxPyEndAllowThreads(__tstate);
37111 if (PyErr_Occurred()) SWIG_fail;
37112 }
37113 resultobj = SWIG_Py_Void();
37114 return resultobj;
37115 fail:
37116 return NULL;
37117 }
37118
37119
37120 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37121 PyObject *resultobj = 0;
37122 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37123 int arg2 ;
37124 int arg3 ;
37125 int arg4 ;
37126 int arg5 ;
37127 void *argp1 = 0 ;
37128 int res1 = 0 ;
37129 int val2 ;
37130 int ecode2 = 0 ;
37131 int val3 ;
37132 int ecode3 = 0 ;
37133 int val4 ;
37134 int ecode4 = 0 ;
37135 int val5 ;
37136 int ecode5 = 0 ;
37137 PyObject * obj0 = 0 ;
37138 PyObject * obj1 = 0 ;
37139 PyObject * obj2 = 0 ;
37140 PyObject * obj3 = 0 ;
37141 PyObject * obj4 = 0 ;
37142 char * kwnames[] = {
37143 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37144 };
37145
37146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37148 if (!SWIG_IsOK(res1)) {
37149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37150 }
37151 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37152 ecode2 = SWIG_AsVal_int(obj1, &val2);
37153 if (!SWIG_IsOK(ecode2)) {
37154 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
37155 }
37156 arg2 = static_cast< int >(val2);
37157 ecode3 = SWIG_AsVal_int(obj2, &val3);
37158 if (!SWIG_IsOK(ecode3)) {
37159 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
37160 }
37161 arg3 = static_cast< int >(val3);
37162 ecode4 = SWIG_AsVal_int(obj3, &val4);
37163 if (!SWIG_IsOK(ecode4)) {
37164 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
37165 }
37166 arg4 = static_cast< int >(val4);
37167 ecode5 = SWIG_AsVal_int(obj4, &val5);
37168 if (!SWIG_IsOK(ecode5)) {
37169 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
37170 }
37171 arg5 = static_cast< int >(val5);
37172 {
37173 PyThreadState* __tstate = wxPyBeginAllowThreads();
37174 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
37175 wxPyEndAllowThreads(__tstate);
37176 if (PyErr_Occurred()) SWIG_fail;
37177 }
37178 resultobj = SWIG_Py_Void();
37179 return resultobj;
37180 fail:
37181 return NULL;
37182 }
37183
37184
37185 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37186 PyObject *resultobj = 0;
37187 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37188 wxRect *arg2 = 0 ;
37189 void *argp1 = 0 ;
37190 int res1 = 0 ;
37191 wxRect temp2 ;
37192 PyObject * obj0 = 0 ;
37193 PyObject * obj1 = 0 ;
37194 char * kwnames[] = {
37195 (char *) "self",(char *) "rect", NULL
37196 };
37197
37198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
37199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37200 if (!SWIG_IsOK(res1)) {
37201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37202 }
37203 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37204 {
37205 arg2 = &temp2;
37206 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37207 }
37208 {
37209 PyThreadState* __tstate = wxPyBeginAllowThreads();
37210 (arg1)->DrawCheckMark((wxRect const &)*arg2);
37211 wxPyEndAllowThreads(__tstate);
37212 if (PyErr_Occurred()) SWIG_fail;
37213 }
37214 resultobj = SWIG_Py_Void();
37215 return resultobj;
37216 fail:
37217 return NULL;
37218 }
37219
37220
37221 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37222 PyObject *resultobj = 0;
37223 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37224 int arg2 ;
37225 int arg3 ;
37226 int arg4 ;
37227 int arg5 ;
37228 double arg6 ;
37229 double arg7 ;
37230 void *argp1 = 0 ;
37231 int res1 = 0 ;
37232 int val2 ;
37233 int ecode2 = 0 ;
37234 int val3 ;
37235 int ecode3 = 0 ;
37236 int val4 ;
37237 int ecode4 = 0 ;
37238 int val5 ;
37239 int ecode5 = 0 ;
37240 double val6 ;
37241 int ecode6 = 0 ;
37242 double val7 ;
37243 int ecode7 = 0 ;
37244 PyObject * obj0 = 0 ;
37245 PyObject * obj1 = 0 ;
37246 PyObject * obj2 = 0 ;
37247 PyObject * obj3 = 0 ;
37248 PyObject * obj4 = 0 ;
37249 PyObject * obj5 = 0 ;
37250 PyObject * obj6 = 0 ;
37251 char * kwnames[] = {
37252 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
37253 };
37254
37255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37257 if (!SWIG_IsOK(res1)) {
37258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37259 }
37260 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37261 ecode2 = SWIG_AsVal_int(obj1, &val2);
37262 if (!SWIG_IsOK(ecode2)) {
37263 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
37264 }
37265 arg2 = static_cast< int >(val2);
37266 ecode3 = SWIG_AsVal_int(obj2, &val3);
37267 if (!SWIG_IsOK(ecode3)) {
37268 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
37269 }
37270 arg3 = static_cast< int >(val3);
37271 ecode4 = SWIG_AsVal_int(obj3, &val4);
37272 if (!SWIG_IsOK(ecode4)) {
37273 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
37274 }
37275 arg4 = static_cast< int >(val4);
37276 ecode5 = SWIG_AsVal_int(obj4, &val5);
37277 if (!SWIG_IsOK(ecode5)) {
37278 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
37279 }
37280 arg5 = static_cast< int >(val5);
37281 ecode6 = SWIG_AsVal_double(obj5, &val6);
37282 if (!SWIG_IsOK(ecode6)) {
37283 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
37284 }
37285 arg6 = static_cast< double >(val6);
37286 ecode7 = SWIG_AsVal_double(obj6, &val7);
37287 if (!SWIG_IsOK(ecode7)) {
37288 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
37289 }
37290 arg7 = static_cast< double >(val7);
37291 {
37292 PyThreadState* __tstate = wxPyBeginAllowThreads();
37293 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
37294 wxPyEndAllowThreads(__tstate);
37295 if (PyErr_Occurred()) SWIG_fail;
37296 }
37297 resultobj = SWIG_Py_Void();
37298 return resultobj;
37299 fail:
37300 return NULL;
37301 }
37302
37303
37304 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37305 PyObject *resultobj = 0;
37306 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37307 wxPoint *arg2 = 0 ;
37308 wxSize *arg3 = 0 ;
37309 double arg4 ;
37310 double arg5 ;
37311 void *argp1 = 0 ;
37312 int res1 = 0 ;
37313 wxPoint temp2 ;
37314 wxSize temp3 ;
37315 double val4 ;
37316 int ecode4 = 0 ;
37317 double val5 ;
37318 int ecode5 = 0 ;
37319 PyObject * obj0 = 0 ;
37320 PyObject * obj1 = 0 ;
37321 PyObject * obj2 = 0 ;
37322 PyObject * obj3 = 0 ;
37323 PyObject * obj4 = 0 ;
37324 char * kwnames[] = {
37325 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
37326 };
37327
37328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37330 if (!SWIG_IsOK(res1)) {
37331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37332 }
37333 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37334 {
37335 arg2 = &temp2;
37336 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37337 }
37338 {
37339 arg3 = &temp3;
37340 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37341 }
37342 ecode4 = SWIG_AsVal_double(obj3, &val4);
37343 if (!SWIG_IsOK(ecode4)) {
37344 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
37345 }
37346 arg4 = static_cast< double >(val4);
37347 ecode5 = SWIG_AsVal_double(obj4, &val5);
37348 if (!SWIG_IsOK(ecode5)) {
37349 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
37350 }
37351 arg5 = static_cast< double >(val5);
37352 {
37353 PyThreadState* __tstate = wxPyBeginAllowThreads();
37354 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
37355 wxPyEndAllowThreads(__tstate);
37356 if (PyErr_Occurred()) SWIG_fail;
37357 }
37358 resultobj = SWIG_Py_Void();
37359 return resultobj;
37360 fail:
37361 return NULL;
37362 }
37363
37364
37365 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37366 PyObject *resultobj = 0;
37367 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37368 int arg2 ;
37369 int arg3 ;
37370 void *argp1 = 0 ;
37371 int res1 = 0 ;
37372 int val2 ;
37373 int ecode2 = 0 ;
37374 int val3 ;
37375 int ecode3 = 0 ;
37376 PyObject * obj0 = 0 ;
37377 PyObject * obj1 = 0 ;
37378 PyObject * obj2 = 0 ;
37379 char * kwnames[] = {
37380 (char *) "self",(char *) "x",(char *) "y", NULL
37381 };
37382
37383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37385 if (!SWIG_IsOK(res1)) {
37386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37387 }
37388 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37389 ecode2 = SWIG_AsVal_int(obj1, &val2);
37390 if (!SWIG_IsOK(ecode2)) {
37391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
37392 }
37393 arg2 = static_cast< int >(val2);
37394 ecode3 = SWIG_AsVal_int(obj2, &val3);
37395 if (!SWIG_IsOK(ecode3)) {
37396 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
37397 }
37398 arg3 = static_cast< int >(val3);
37399 {
37400 PyThreadState* __tstate = wxPyBeginAllowThreads();
37401 (arg1)->DrawPoint(arg2,arg3);
37402 wxPyEndAllowThreads(__tstate);
37403 if (PyErr_Occurred()) SWIG_fail;
37404 }
37405 resultobj = SWIG_Py_Void();
37406 return resultobj;
37407 fail:
37408 return NULL;
37409 }
37410
37411
37412 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37413 PyObject *resultobj = 0;
37414 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37415 wxPoint *arg2 = 0 ;
37416 void *argp1 = 0 ;
37417 int res1 = 0 ;
37418 wxPoint temp2 ;
37419 PyObject * obj0 = 0 ;
37420 PyObject * obj1 = 0 ;
37421 char * kwnames[] = {
37422 (char *) "self",(char *) "pt", NULL
37423 };
37424
37425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
37426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37427 if (!SWIG_IsOK(res1)) {
37428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37429 }
37430 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37431 {
37432 arg2 = &temp2;
37433 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37434 }
37435 {
37436 PyThreadState* __tstate = wxPyBeginAllowThreads();
37437 (arg1)->DrawPoint((wxPoint const &)*arg2);
37438 wxPyEndAllowThreads(__tstate);
37439 if (PyErr_Occurred()) SWIG_fail;
37440 }
37441 resultobj = SWIG_Py_Void();
37442 return resultobj;
37443 fail:
37444 return NULL;
37445 }
37446
37447
37448 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37449 PyObject *resultobj = 0;
37450 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37451 int arg2 ;
37452 int arg3 ;
37453 int arg4 ;
37454 int arg5 ;
37455 void *argp1 = 0 ;
37456 int res1 = 0 ;
37457 int val2 ;
37458 int ecode2 = 0 ;
37459 int val3 ;
37460 int ecode3 = 0 ;
37461 int val4 ;
37462 int ecode4 = 0 ;
37463 int val5 ;
37464 int ecode5 = 0 ;
37465 PyObject * obj0 = 0 ;
37466 PyObject * obj1 = 0 ;
37467 PyObject * obj2 = 0 ;
37468 PyObject * obj3 = 0 ;
37469 PyObject * obj4 = 0 ;
37470 char * kwnames[] = {
37471 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37472 };
37473
37474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37476 if (!SWIG_IsOK(res1)) {
37477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37478 }
37479 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37480 ecode2 = SWIG_AsVal_int(obj1, &val2);
37481 if (!SWIG_IsOK(ecode2)) {
37482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
37483 }
37484 arg2 = static_cast< int >(val2);
37485 ecode3 = SWIG_AsVal_int(obj2, &val3);
37486 if (!SWIG_IsOK(ecode3)) {
37487 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
37488 }
37489 arg3 = static_cast< int >(val3);
37490 ecode4 = SWIG_AsVal_int(obj3, &val4);
37491 if (!SWIG_IsOK(ecode4)) {
37492 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
37493 }
37494 arg4 = static_cast< int >(val4);
37495 ecode5 = SWIG_AsVal_int(obj4, &val5);
37496 if (!SWIG_IsOK(ecode5)) {
37497 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
37498 }
37499 arg5 = static_cast< int >(val5);
37500 {
37501 PyThreadState* __tstate = wxPyBeginAllowThreads();
37502 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
37503 wxPyEndAllowThreads(__tstate);
37504 if (PyErr_Occurred()) SWIG_fail;
37505 }
37506 resultobj = SWIG_Py_Void();
37507 return resultobj;
37508 fail:
37509 return NULL;
37510 }
37511
37512
37513 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37514 PyObject *resultobj = 0;
37515 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37516 wxRect *arg2 = 0 ;
37517 void *argp1 = 0 ;
37518 int res1 = 0 ;
37519 wxRect temp2 ;
37520 PyObject * obj0 = 0 ;
37521 PyObject * obj1 = 0 ;
37522 char * kwnames[] = {
37523 (char *) "self",(char *) "rect", NULL
37524 };
37525
37526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
37527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37528 if (!SWIG_IsOK(res1)) {
37529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37530 }
37531 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37532 {
37533 arg2 = &temp2;
37534 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37535 }
37536 {
37537 PyThreadState* __tstate = wxPyBeginAllowThreads();
37538 (arg1)->DrawRectangle((wxRect const &)*arg2);
37539 wxPyEndAllowThreads(__tstate);
37540 if (PyErr_Occurred()) SWIG_fail;
37541 }
37542 resultobj = SWIG_Py_Void();
37543 return resultobj;
37544 fail:
37545 return NULL;
37546 }
37547
37548
37549 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37550 PyObject *resultobj = 0;
37551 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37552 wxPoint *arg2 = 0 ;
37553 wxSize *arg3 = 0 ;
37554 void *argp1 = 0 ;
37555 int res1 = 0 ;
37556 wxPoint temp2 ;
37557 wxSize temp3 ;
37558 PyObject * obj0 = 0 ;
37559 PyObject * obj1 = 0 ;
37560 PyObject * obj2 = 0 ;
37561 char * kwnames[] = {
37562 (char *) "self",(char *) "pt",(char *) "sz", NULL
37563 };
37564
37565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37567 if (!SWIG_IsOK(res1)) {
37568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37569 }
37570 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37571 {
37572 arg2 = &temp2;
37573 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37574 }
37575 {
37576 arg3 = &temp3;
37577 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37578 }
37579 {
37580 PyThreadState* __tstate = wxPyBeginAllowThreads();
37581 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
37582 wxPyEndAllowThreads(__tstate);
37583 if (PyErr_Occurred()) SWIG_fail;
37584 }
37585 resultobj = SWIG_Py_Void();
37586 return resultobj;
37587 fail:
37588 return NULL;
37589 }
37590
37591
37592 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37593 PyObject *resultobj = 0;
37594 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37595 int arg2 ;
37596 int arg3 ;
37597 int arg4 ;
37598 int arg5 ;
37599 double arg6 ;
37600 void *argp1 = 0 ;
37601 int res1 = 0 ;
37602 int val2 ;
37603 int ecode2 = 0 ;
37604 int val3 ;
37605 int ecode3 = 0 ;
37606 int val4 ;
37607 int ecode4 = 0 ;
37608 int val5 ;
37609 int ecode5 = 0 ;
37610 double val6 ;
37611 int ecode6 = 0 ;
37612 PyObject * obj0 = 0 ;
37613 PyObject * obj1 = 0 ;
37614 PyObject * obj2 = 0 ;
37615 PyObject * obj3 = 0 ;
37616 PyObject * obj4 = 0 ;
37617 PyObject * obj5 = 0 ;
37618 char * kwnames[] = {
37619 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
37620 };
37621
37622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37624 if (!SWIG_IsOK(res1)) {
37625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37626 }
37627 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37628 ecode2 = SWIG_AsVal_int(obj1, &val2);
37629 if (!SWIG_IsOK(ecode2)) {
37630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
37631 }
37632 arg2 = static_cast< int >(val2);
37633 ecode3 = SWIG_AsVal_int(obj2, &val3);
37634 if (!SWIG_IsOK(ecode3)) {
37635 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
37636 }
37637 arg3 = static_cast< int >(val3);
37638 ecode4 = SWIG_AsVal_int(obj3, &val4);
37639 if (!SWIG_IsOK(ecode4)) {
37640 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
37641 }
37642 arg4 = static_cast< int >(val4);
37643 ecode5 = SWIG_AsVal_int(obj4, &val5);
37644 if (!SWIG_IsOK(ecode5)) {
37645 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
37646 }
37647 arg5 = static_cast< int >(val5);
37648 ecode6 = SWIG_AsVal_double(obj5, &val6);
37649 if (!SWIG_IsOK(ecode6)) {
37650 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
37651 }
37652 arg6 = static_cast< double >(val6);
37653 {
37654 PyThreadState* __tstate = wxPyBeginAllowThreads();
37655 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
37656 wxPyEndAllowThreads(__tstate);
37657 if (PyErr_Occurred()) SWIG_fail;
37658 }
37659 resultobj = SWIG_Py_Void();
37660 return resultobj;
37661 fail:
37662 return NULL;
37663 }
37664
37665
37666 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37667 PyObject *resultobj = 0;
37668 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37669 wxRect *arg2 = 0 ;
37670 double arg3 ;
37671 void *argp1 = 0 ;
37672 int res1 = 0 ;
37673 wxRect temp2 ;
37674 double val3 ;
37675 int ecode3 = 0 ;
37676 PyObject * obj0 = 0 ;
37677 PyObject * obj1 = 0 ;
37678 PyObject * obj2 = 0 ;
37679 char * kwnames[] = {
37680 (char *) "self",(char *) "r",(char *) "radius", NULL
37681 };
37682
37683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37685 if (!SWIG_IsOK(res1)) {
37686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37687 }
37688 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37689 {
37690 arg2 = &temp2;
37691 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37692 }
37693 ecode3 = SWIG_AsVal_double(obj2, &val3);
37694 if (!SWIG_IsOK(ecode3)) {
37695 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
37696 }
37697 arg3 = static_cast< double >(val3);
37698 {
37699 PyThreadState* __tstate = wxPyBeginAllowThreads();
37700 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
37701 wxPyEndAllowThreads(__tstate);
37702 if (PyErr_Occurred()) SWIG_fail;
37703 }
37704 resultobj = SWIG_Py_Void();
37705 return resultobj;
37706 fail:
37707 return NULL;
37708 }
37709
37710
37711 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37712 PyObject *resultobj = 0;
37713 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37714 wxPoint *arg2 = 0 ;
37715 wxSize *arg3 = 0 ;
37716 double arg4 ;
37717 void *argp1 = 0 ;
37718 int res1 = 0 ;
37719 wxPoint temp2 ;
37720 wxSize temp3 ;
37721 double val4 ;
37722 int ecode4 = 0 ;
37723 PyObject * obj0 = 0 ;
37724 PyObject * obj1 = 0 ;
37725 PyObject * obj2 = 0 ;
37726 PyObject * obj3 = 0 ;
37727 char * kwnames[] = {
37728 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
37729 };
37730
37731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37733 if (!SWIG_IsOK(res1)) {
37734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37735 }
37736 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37737 {
37738 arg2 = &temp2;
37739 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37740 }
37741 {
37742 arg3 = &temp3;
37743 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37744 }
37745 ecode4 = SWIG_AsVal_double(obj3, &val4);
37746 if (!SWIG_IsOK(ecode4)) {
37747 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
37748 }
37749 arg4 = static_cast< double >(val4);
37750 {
37751 PyThreadState* __tstate = wxPyBeginAllowThreads();
37752 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
37753 wxPyEndAllowThreads(__tstate);
37754 if (PyErr_Occurred()) SWIG_fail;
37755 }
37756 resultobj = SWIG_Py_Void();
37757 return resultobj;
37758 fail:
37759 return NULL;
37760 }
37761
37762
37763 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37764 PyObject *resultobj = 0;
37765 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37766 int arg2 ;
37767 int arg3 ;
37768 int arg4 ;
37769 void *argp1 = 0 ;
37770 int res1 = 0 ;
37771 int val2 ;
37772 int ecode2 = 0 ;
37773 int val3 ;
37774 int ecode3 = 0 ;
37775 int val4 ;
37776 int ecode4 = 0 ;
37777 PyObject * obj0 = 0 ;
37778 PyObject * obj1 = 0 ;
37779 PyObject * obj2 = 0 ;
37780 PyObject * obj3 = 0 ;
37781 char * kwnames[] = {
37782 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
37783 };
37784
37785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37787 if (!SWIG_IsOK(res1)) {
37788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37789 }
37790 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37791 ecode2 = SWIG_AsVal_int(obj1, &val2);
37792 if (!SWIG_IsOK(ecode2)) {
37793 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
37794 }
37795 arg2 = static_cast< int >(val2);
37796 ecode3 = SWIG_AsVal_int(obj2, &val3);
37797 if (!SWIG_IsOK(ecode3)) {
37798 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
37799 }
37800 arg3 = static_cast< int >(val3);
37801 ecode4 = SWIG_AsVal_int(obj3, &val4);
37802 if (!SWIG_IsOK(ecode4)) {
37803 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
37804 }
37805 arg4 = static_cast< int >(val4);
37806 {
37807 PyThreadState* __tstate = wxPyBeginAllowThreads();
37808 (arg1)->DrawCircle(arg2,arg3,arg4);
37809 wxPyEndAllowThreads(__tstate);
37810 if (PyErr_Occurred()) SWIG_fail;
37811 }
37812 resultobj = SWIG_Py_Void();
37813 return resultobj;
37814 fail:
37815 return NULL;
37816 }
37817
37818
37819 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37820 PyObject *resultobj = 0;
37821 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37822 wxPoint *arg2 = 0 ;
37823 int arg3 ;
37824 void *argp1 = 0 ;
37825 int res1 = 0 ;
37826 wxPoint temp2 ;
37827 int val3 ;
37828 int ecode3 = 0 ;
37829 PyObject * obj0 = 0 ;
37830 PyObject * obj1 = 0 ;
37831 PyObject * obj2 = 0 ;
37832 char * kwnames[] = {
37833 (char *) "self",(char *) "pt",(char *) "radius", NULL
37834 };
37835
37836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37838 if (!SWIG_IsOK(res1)) {
37839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37840 }
37841 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37842 {
37843 arg2 = &temp2;
37844 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37845 }
37846 ecode3 = SWIG_AsVal_int(obj2, &val3);
37847 if (!SWIG_IsOK(ecode3)) {
37848 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
37849 }
37850 arg3 = static_cast< int >(val3);
37851 {
37852 PyThreadState* __tstate = wxPyBeginAllowThreads();
37853 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
37854 wxPyEndAllowThreads(__tstate);
37855 if (PyErr_Occurred()) SWIG_fail;
37856 }
37857 resultobj = SWIG_Py_Void();
37858 return resultobj;
37859 fail:
37860 return NULL;
37861 }
37862
37863
37864 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37865 PyObject *resultobj = 0;
37866 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37867 int arg2 ;
37868 int arg3 ;
37869 int arg4 ;
37870 int arg5 ;
37871 void *argp1 = 0 ;
37872 int res1 = 0 ;
37873 int val2 ;
37874 int ecode2 = 0 ;
37875 int val3 ;
37876 int ecode3 = 0 ;
37877 int val4 ;
37878 int ecode4 = 0 ;
37879 int val5 ;
37880 int ecode5 = 0 ;
37881 PyObject * obj0 = 0 ;
37882 PyObject * obj1 = 0 ;
37883 PyObject * obj2 = 0 ;
37884 PyObject * obj3 = 0 ;
37885 PyObject * obj4 = 0 ;
37886 char * kwnames[] = {
37887 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37888 };
37889
37890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37892 if (!SWIG_IsOK(res1)) {
37893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37894 }
37895 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37896 ecode2 = SWIG_AsVal_int(obj1, &val2);
37897 if (!SWIG_IsOK(ecode2)) {
37898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
37899 }
37900 arg2 = static_cast< int >(val2);
37901 ecode3 = SWIG_AsVal_int(obj2, &val3);
37902 if (!SWIG_IsOK(ecode3)) {
37903 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
37904 }
37905 arg3 = static_cast< int >(val3);
37906 ecode4 = SWIG_AsVal_int(obj3, &val4);
37907 if (!SWIG_IsOK(ecode4)) {
37908 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
37909 }
37910 arg4 = static_cast< int >(val4);
37911 ecode5 = SWIG_AsVal_int(obj4, &val5);
37912 if (!SWIG_IsOK(ecode5)) {
37913 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
37914 }
37915 arg5 = static_cast< int >(val5);
37916 {
37917 PyThreadState* __tstate = wxPyBeginAllowThreads();
37918 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
37919 wxPyEndAllowThreads(__tstate);
37920 if (PyErr_Occurred()) SWIG_fail;
37921 }
37922 resultobj = SWIG_Py_Void();
37923 return resultobj;
37924 fail:
37925 return NULL;
37926 }
37927
37928
37929 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37930 PyObject *resultobj = 0;
37931 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37932 wxRect *arg2 = 0 ;
37933 void *argp1 = 0 ;
37934 int res1 = 0 ;
37935 wxRect temp2 ;
37936 PyObject * obj0 = 0 ;
37937 PyObject * obj1 = 0 ;
37938 char * kwnames[] = {
37939 (char *) "self",(char *) "rect", NULL
37940 };
37941
37942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
37943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37944 if (!SWIG_IsOK(res1)) {
37945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37946 }
37947 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37948 {
37949 arg2 = &temp2;
37950 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37951 }
37952 {
37953 PyThreadState* __tstate = wxPyBeginAllowThreads();
37954 (arg1)->DrawEllipse((wxRect const &)*arg2);
37955 wxPyEndAllowThreads(__tstate);
37956 if (PyErr_Occurred()) SWIG_fail;
37957 }
37958 resultobj = SWIG_Py_Void();
37959 return resultobj;
37960 fail:
37961 return NULL;
37962 }
37963
37964
37965 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37966 PyObject *resultobj = 0;
37967 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37968 wxPoint *arg2 = 0 ;
37969 wxSize *arg3 = 0 ;
37970 void *argp1 = 0 ;
37971 int res1 = 0 ;
37972 wxPoint temp2 ;
37973 wxSize temp3 ;
37974 PyObject * obj0 = 0 ;
37975 PyObject * obj1 = 0 ;
37976 PyObject * obj2 = 0 ;
37977 char * kwnames[] = {
37978 (char *) "self",(char *) "pt",(char *) "sz", NULL
37979 };
37980
37981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37983 if (!SWIG_IsOK(res1)) {
37984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37985 }
37986 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37987 {
37988 arg2 = &temp2;
37989 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37990 }
37991 {
37992 arg3 = &temp3;
37993 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37994 }
37995 {
37996 PyThreadState* __tstate = wxPyBeginAllowThreads();
37997 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37998 wxPyEndAllowThreads(__tstate);
37999 if (PyErr_Occurred()) SWIG_fail;
38000 }
38001 resultobj = SWIG_Py_Void();
38002 return resultobj;
38003 fail:
38004 return NULL;
38005 }
38006
38007
38008 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38009 PyObject *resultobj = 0;
38010 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38011 wxIcon *arg2 = 0 ;
38012 int arg3 ;
38013 int arg4 ;
38014 void *argp1 = 0 ;
38015 int res1 = 0 ;
38016 void *argp2 = 0 ;
38017 int res2 = 0 ;
38018 int val3 ;
38019 int ecode3 = 0 ;
38020 int val4 ;
38021 int ecode4 = 0 ;
38022 PyObject * obj0 = 0 ;
38023 PyObject * obj1 = 0 ;
38024 PyObject * obj2 = 0 ;
38025 PyObject * obj3 = 0 ;
38026 char * kwnames[] = {
38027 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
38028 };
38029
38030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38032 if (!SWIG_IsOK(res1)) {
38033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38034 }
38035 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38036 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
38037 if (!SWIG_IsOK(res2)) {
38038 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
38039 }
38040 if (!argp2) {
38041 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
38042 }
38043 arg2 = reinterpret_cast< wxIcon * >(argp2);
38044 ecode3 = SWIG_AsVal_int(obj2, &val3);
38045 if (!SWIG_IsOK(ecode3)) {
38046 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
38047 }
38048 arg3 = static_cast< int >(val3);
38049 ecode4 = SWIG_AsVal_int(obj3, &val4);
38050 if (!SWIG_IsOK(ecode4)) {
38051 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
38052 }
38053 arg4 = static_cast< int >(val4);
38054 {
38055 PyThreadState* __tstate = wxPyBeginAllowThreads();
38056 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
38057 wxPyEndAllowThreads(__tstate);
38058 if (PyErr_Occurred()) SWIG_fail;
38059 }
38060 resultobj = SWIG_Py_Void();
38061 return resultobj;
38062 fail:
38063 return NULL;
38064 }
38065
38066
38067 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38068 PyObject *resultobj = 0;
38069 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38070 wxIcon *arg2 = 0 ;
38071 wxPoint *arg3 = 0 ;
38072 void *argp1 = 0 ;
38073 int res1 = 0 ;
38074 void *argp2 = 0 ;
38075 int res2 = 0 ;
38076 wxPoint temp3 ;
38077 PyObject * obj0 = 0 ;
38078 PyObject * obj1 = 0 ;
38079 PyObject * obj2 = 0 ;
38080 char * kwnames[] = {
38081 (char *) "self",(char *) "icon",(char *) "pt", NULL
38082 };
38083
38084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38086 if (!SWIG_IsOK(res1)) {
38087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38088 }
38089 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38090 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
38091 if (!SWIG_IsOK(res2)) {
38092 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
38093 }
38094 if (!argp2) {
38095 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
38096 }
38097 arg2 = reinterpret_cast< wxIcon * >(argp2);
38098 {
38099 arg3 = &temp3;
38100 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38101 }
38102 {
38103 PyThreadState* __tstate = wxPyBeginAllowThreads();
38104 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
38105 wxPyEndAllowThreads(__tstate);
38106 if (PyErr_Occurred()) SWIG_fail;
38107 }
38108 resultobj = SWIG_Py_Void();
38109 return resultobj;
38110 fail:
38111 return NULL;
38112 }
38113
38114
38115 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38116 PyObject *resultobj = 0;
38117 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38118 wxBitmap *arg2 = 0 ;
38119 int arg3 ;
38120 int arg4 ;
38121 bool arg5 = (bool) false ;
38122 void *argp1 = 0 ;
38123 int res1 = 0 ;
38124 void *argp2 = 0 ;
38125 int res2 = 0 ;
38126 int val3 ;
38127 int ecode3 = 0 ;
38128 int val4 ;
38129 int ecode4 = 0 ;
38130 bool val5 ;
38131 int ecode5 = 0 ;
38132 PyObject * obj0 = 0 ;
38133 PyObject * obj1 = 0 ;
38134 PyObject * obj2 = 0 ;
38135 PyObject * obj3 = 0 ;
38136 PyObject * obj4 = 0 ;
38137 char * kwnames[] = {
38138 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
38139 };
38140
38141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38143 if (!SWIG_IsOK(res1)) {
38144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38145 }
38146 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38147 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
38148 if (!SWIG_IsOK(res2)) {
38149 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38150 }
38151 if (!argp2) {
38152 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38153 }
38154 arg2 = reinterpret_cast< wxBitmap * >(argp2);
38155 ecode3 = SWIG_AsVal_int(obj2, &val3);
38156 if (!SWIG_IsOK(ecode3)) {
38157 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
38158 }
38159 arg3 = static_cast< int >(val3);
38160 ecode4 = SWIG_AsVal_int(obj3, &val4);
38161 if (!SWIG_IsOK(ecode4)) {
38162 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
38163 }
38164 arg4 = static_cast< int >(val4);
38165 if (obj4) {
38166 ecode5 = SWIG_AsVal_bool(obj4, &val5);
38167 if (!SWIG_IsOK(ecode5)) {
38168 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
38169 }
38170 arg5 = static_cast< bool >(val5);
38171 }
38172 {
38173 PyThreadState* __tstate = wxPyBeginAllowThreads();
38174 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
38175 wxPyEndAllowThreads(__tstate);
38176 if (PyErr_Occurred()) SWIG_fail;
38177 }
38178 resultobj = SWIG_Py_Void();
38179 return resultobj;
38180 fail:
38181 return NULL;
38182 }
38183
38184
38185 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38186 PyObject *resultobj = 0;
38187 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38188 wxBitmap *arg2 = 0 ;
38189 wxPoint *arg3 = 0 ;
38190 bool arg4 = (bool) false ;
38191 void *argp1 = 0 ;
38192 int res1 = 0 ;
38193 void *argp2 = 0 ;
38194 int res2 = 0 ;
38195 wxPoint temp3 ;
38196 bool val4 ;
38197 int ecode4 = 0 ;
38198 PyObject * obj0 = 0 ;
38199 PyObject * obj1 = 0 ;
38200 PyObject * obj2 = 0 ;
38201 PyObject * obj3 = 0 ;
38202 char * kwnames[] = {
38203 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
38204 };
38205
38206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38208 if (!SWIG_IsOK(res1)) {
38209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38210 }
38211 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38212 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
38213 if (!SWIG_IsOK(res2)) {
38214 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38215 }
38216 if (!argp2) {
38217 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38218 }
38219 arg2 = reinterpret_cast< wxBitmap * >(argp2);
38220 {
38221 arg3 = &temp3;
38222 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38223 }
38224 if (obj3) {
38225 ecode4 = SWIG_AsVal_bool(obj3, &val4);
38226 if (!SWIG_IsOK(ecode4)) {
38227 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
38228 }
38229 arg4 = static_cast< bool >(val4);
38230 }
38231 {
38232 PyThreadState* __tstate = wxPyBeginAllowThreads();
38233 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
38234 wxPyEndAllowThreads(__tstate);
38235 if (PyErr_Occurred()) SWIG_fail;
38236 }
38237 resultobj = SWIG_Py_Void();
38238 return resultobj;
38239 fail:
38240 return NULL;
38241 }
38242
38243
38244 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38245 PyObject *resultobj = 0;
38246 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38247 wxString *arg2 = 0 ;
38248 int arg3 ;
38249 int arg4 ;
38250 void *argp1 = 0 ;
38251 int res1 = 0 ;
38252 bool temp2 = false ;
38253 int val3 ;
38254 int ecode3 = 0 ;
38255 int val4 ;
38256 int ecode4 = 0 ;
38257 PyObject * obj0 = 0 ;
38258 PyObject * obj1 = 0 ;
38259 PyObject * obj2 = 0 ;
38260 PyObject * obj3 = 0 ;
38261 char * kwnames[] = {
38262 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
38263 };
38264
38265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38267 if (!SWIG_IsOK(res1)) {
38268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38269 }
38270 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38271 {
38272 arg2 = wxString_in_helper(obj1);
38273 if (arg2 == NULL) SWIG_fail;
38274 temp2 = true;
38275 }
38276 ecode3 = SWIG_AsVal_int(obj2, &val3);
38277 if (!SWIG_IsOK(ecode3)) {
38278 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
38279 }
38280 arg3 = static_cast< int >(val3);
38281 ecode4 = SWIG_AsVal_int(obj3, &val4);
38282 if (!SWIG_IsOK(ecode4)) {
38283 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
38284 }
38285 arg4 = static_cast< int >(val4);
38286 {
38287 PyThreadState* __tstate = wxPyBeginAllowThreads();
38288 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
38289 wxPyEndAllowThreads(__tstate);
38290 if (PyErr_Occurred()) SWIG_fail;
38291 }
38292 resultobj = SWIG_Py_Void();
38293 {
38294 if (temp2)
38295 delete arg2;
38296 }
38297 return resultobj;
38298 fail:
38299 {
38300 if (temp2)
38301 delete arg2;
38302 }
38303 return NULL;
38304 }
38305
38306
38307 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38308 PyObject *resultobj = 0;
38309 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38310 wxString *arg2 = 0 ;
38311 wxPoint *arg3 = 0 ;
38312 void *argp1 = 0 ;
38313 int res1 = 0 ;
38314 bool temp2 = false ;
38315 wxPoint temp3 ;
38316 PyObject * obj0 = 0 ;
38317 PyObject * obj1 = 0 ;
38318 PyObject * obj2 = 0 ;
38319 char * kwnames[] = {
38320 (char *) "self",(char *) "text",(char *) "pt", NULL
38321 };
38322
38323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38325 if (!SWIG_IsOK(res1)) {
38326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38327 }
38328 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38329 {
38330 arg2 = wxString_in_helper(obj1);
38331 if (arg2 == NULL) SWIG_fail;
38332 temp2 = true;
38333 }
38334 {
38335 arg3 = &temp3;
38336 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38337 }
38338 {
38339 PyThreadState* __tstate = wxPyBeginAllowThreads();
38340 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
38341 wxPyEndAllowThreads(__tstate);
38342 if (PyErr_Occurred()) SWIG_fail;
38343 }
38344 resultobj = SWIG_Py_Void();
38345 {
38346 if (temp2)
38347 delete arg2;
38348 }
38349 return resultobj;
38350 fail:
38351 {
38352 if (temp2)
38353 delete arg2;
38354 }
38355 return NULL;
38356 }
38357
38358
38359 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38360 PyObject *resultobj = 0;
38361 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38362 wxString *arg2 = 0 ;
38363 int arg3 ;
38364 int arg4 ;
38365 double arg5 ;
38366 void *argp1 = 0 ;
38367 int res1 = 0 ;
38368 bool temp2 = false ;
38369 int val3 ;
38370 int ecode3 = 0 ;
38371 int val4 ;
38372 int ecode4 = 0 ;
38373 double val5 ;
38374 int ecode5 = 0 ;
38375 PyObject * obj0 = 0 ;
38376 PyObject * obj1 = 0 ;
38377 PyObject * obj2 = 0 ;
38378 PyObject * obj3 = 0 ;
38379 PyObject * obj4 = 0 ;
38380 char * kwnames[] = {
38381 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
38382 };
38383
38384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38386 if (!SWIG_IsOK(res1)) {
38387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38388 }
38389 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38390 {
38391 arg2 = wxString_in_helper(obj1);
38392 if (arg2 == NULL) SWIG_fail;
38393 temp2 = true;
38394 }
38395 ecode3 = SWIG_AsVal_int(obj2, &val3);
38396 if (!SWIG_IsOK(ecode3)) {
38397 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
38398 }
38399 arg3 = static_cast< int >(val3);
38400 ecode4 = SWIG_AsVal_int(obj3, &val4);
38401 if (!SWIG_IsOK(ecode4)) {
38402 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
38403 }
38404 arg4 = static_cast< int >(val4);
38405 ecode5 = SWIG_AsVal_double(obj4, &val5);
38406 if (!SWIG_IsOK(ecode5)) {
38407 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
38408 }
38409 arg5 = static_cast< double >(val5);
38410 {
38411 PyThreadState* __tstate = wxPyBeginAllowThreads();
38412 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
38413 wxPyEndAllowThreads(__tstate);
38414 if (PyErr_Occurred()) SWIG_fail;
38415 }
38416 resultobj = SWIG_Py_Void();
38417 {
38418 if (temp2)
38419 delete arg2;
38420 }
38421 return resultobj;
38422 fail:
38423 {
38424 if (temp2)
38425 delete arg2;
38426 }
38427 return NULL;
38428 }
38429
38430
38431 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38432 PyObject *resultobj = 0;
38433 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38434 wxString *arg2 = 0 ;
38435 wxPoint *arg3 = 0 ;
38436 double arg4 ;
38437 void *argp1 = 0 ;
38438 int res1 = 0 ;
38439 bool temp2 = false ;
38440 wxPoint temp3 ;
38441 double val4 ;
38442 int ecode4 = 0 ;
38443 PyObject * obj0 = 0 ;
38444 PyObject * obj1 = 0 ;
38445 PyObject * obj2 = 0 ;
38446 PyObject * obj3 = 0 ;
38447 char * kwnames[] = {
38448 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
38449 };
38450
38451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38453 if (!SWIG_IsOK(res1)) {
38454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38455 }
38456 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38457 {
38458 arg2 = wxString_in_helper(obj1);
38459 if (arg2 == NULL) SWIG_fail;
38460 temp2 = true;
38461 }
38462 {
38463 arg3 = &temp3;
38464 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38465 }
38466 ecode4 = SWIG_AsVal_double(obj3, &val4);
38467 if (!SWIG_IsOK(ecode4)) {
38468 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
38469 }
38470 arg4 = static_cast< double >(val4);
38471 {
38472 PyThreadState* __tstate = wxPyBeginAllowThreads();
38473 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
38474 wxPyEndAllowThreads(__tstate);
38475 if (PyErr_Occurred()) SWIG_fail;
38476 }
38477 resultobj = SWIG_Py_Void();
38478 {
38479 if (temp2)
38480 delete arg2;
38481 }
38482 return resultobj;
38483 fail:
38484 {
38485 if (temp2)
38486 delete arg2;
38487 }
38488 return NULL;
38489 }
38490
38491
38492 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38493 PyObject *resultobj = 0;
38494 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38495 int arg2 ;
38496 wxPoint *arg3 = (wxPoint *) 0 ;
38497 int arg4 = (int) 0 ;
38498 int arg5 = (int) 0 ;
38499 void *argp1 = 0 ;
38500 int res1 = 0 ;
38501 int val4 ;
38502 int ecode4 = 0 ;
38503 int val5 ;
38504 int ecode5 = 0 ;
38505 PyObject * obj0 = 0 ;
38506 PyObject * obj1 = 0 ;
38507 PyObject * obj2 = 0 ;
38508 PyObject * obj3 = 0 ;
38509 char * kwnames[] = {
38510 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
38511 };
38512
38513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38515 if (!SWIG_IsOK(res1)) {
38516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38517 }
38518 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38519 {
38520 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38521 if (arg3 == NULL) SWIG_fail;
38522 }
38523 if (obj2) {
38524 ecode4 = SWIG_AsVal_int(obj2, &val4);
38525 if (!SWIG_IsOK(ecode4)) {
38526 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
38527 }
38528 arg4 = static_cast< int >(val4);
38529 }
38530 if (obj3) {
38531 ecode5 = SWIG_AsVal_int(obj3, &val5);
38532 if (!SWIG_IsOK(ecode5)) {
38533 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
38534 }
38535 arg5 = static_cast< int >(val5);
38536 }
38537 {
38538 PyThreadState* __tstate = wxPyBeginAllowThreads();
38539 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
38540 wxPyEndAllowThreads(__tstate);
38541 if (PyErr_Occurred()) SWIG_fail;
38542 }
38543 resultobj = SWIG_Py_Void();
38544 {
38545 if (arg3) delete [] arg3;
38546 }
38547 return resultobj;
38548 fail:
38549 {
38550 if (arg3) delete [] arg3;
38551 }
38552 return NULL;
38553 }
38554
38555
38556 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38557 PyObject *resultobj = 0;
38558 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38559 int arg2 ;
38560 wxPoint *arg3 = (wxPoint *) 0 ;
38561 int arg4 = (int) 0 ;
38562 int arg5 = (int) 0 ;
38563 int arg6 = (int) wxODDEVEN_RULE ;
38564 void *argp1 = 0 ;
38565 int res1 = 0 ;
38566 int val4 ;
38567 int ecode4 = 0 ;
38568 int val5 ;
38569 int ecode5 = 0 ;
38570 int val6 ;
38571 int ecode6 = 0 ;
38572 PyObject * obj0 = 0 ;
38573 PyObject * obj1 = 0 ;
38574 PyObject * obj2 = 0 ;
38575 PyObject * obj3 = 0 ;
38576 PyObject * obj4 = 0 ;
38577 char * kwnames[] = {
38578 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
38579 };
38580
38581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38583 if (!SWIG_IsOK(res1)) {
38584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38585 }
38586 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38587 {
38588 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38589 if (arg3 == NULL) SWIG_fail;
38590 }
38591 if (obj2) {
38592 ecode4 = SWIG_AsVal_int(obj2, &val4);
38593 if (!SWIG_IsOK(ecode4)) {
38594 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
38595 }
38596 arg4 = static_cast< int >(val4);
38597 }
38598 if (obj3) {
38599 ecode5 = SWIG_AsVal_int(obj3, &val5);
38600 if (!SWIG_IsOK(ecode5)) {
38601 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
38602 }
38603 arg5 = static_cast< int >(val5);
38604 }
38605 if (obj4) {
38606 ecode6 = SWIG_AsVal_int(obj4, &val6);
38607 if (!SWIG_IsOK(ecode6)) {
38608 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
38609 }
38610 arg6 = static_cast< int >(val6);
38611 }
38612 {
38613 PyThreadState* __tstate = wxPyBeginAllowThreads();
38614 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
38615 wxPyEndAllowThreads(__tstate);
38616 if (PyErr_Occurred()) SWIG_fail;
38617 }
38618 resultobj = SWIG_Py_Void();
38619 {
38620 if (arg3) delete [] arg3;
38621 }
38622 return resultobj;
38623 fail:
38624 {
38625 if (arg3) delete [] arg3;
38626 }
38627 return NULL;
38628 }
38629
38630
38631 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38632 PyObject *resultobj = 0;
38633 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38634 wxString *arg2 = 0 ;
38635 wxRect *arg3 = 0 ;
38636 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38637 int arg5 = (int) -1 ;
38638 void *argp1 = 0 ;
38639 int res1 = 0 ;
38640 bool temp2 = false ;
38641 wxRect temp3 ;
38642 int val4 ;
38643 int ecode4 = 0 ;
38644 int val5 ;
38645 int ecode5 = 0 ;
38646 PyObject * obj0 = 0 ;
38647 PyObject * obj1 = 0 ;
38648 PyObject * obj2 = 0 ;
38649 PyObject * obj3 = 0 ;
38650 PyObject * obj4 = 0 ;
38651 char * kwnames[] = {
38652 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38653 };
38654
38655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38657 if (!SWIG_IsOK(res1)) {
38658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38659 }
38660 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38661 {
38662 arg2 = wxString_in_helper(obj1);
38663 if (arg2 == NULL) SWIG_fail;
38664 temp2 = true;
38665 }
38666 {
38667 arg3 = &temp3;
38668 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
38669 }
38670 if (obj3) {
38671 ecode4 = SWIG_AsVal_int(obj3, &val4);
38672 if (!SWIG_IsOK(ecode4)) {
38673 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
38674 }
38675 arg4 = static_cast< int >(val4);
38676 }
38677 if (obj4) {
38678 ecode5 = SWIG_AsVal_int(obj4, &val5);
38679 if (!SWIG_IsOK(ecode5)) {
38680 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
38681 }
38682 arg5 = static_cast< int >(val5);
38683 }
38684 {
38685 PyThreadState* __tstate = wxPyBeginAllowThreads();
38686 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
38687 wxPyEndAllowThreads(__tstate);
38688 if (PyErr_Occurred()) SWIG_fail;
38689 }
38690 resultobj = SWIG_Py_Void();
38691 {
38692 if (temp2)
38693 delete arg2;
38694 }
38695 return resultobj;
38696 fail:
38697 {
38698 if (temp2)
38699 delete arg2;
38700 }
38701 return NULL;
38702 }
38703
38704
38705 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38706 PyObject *resultobj = 0;
38707 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38708 wxString *arg2 = 0 ;
38709 wxBitmap *arg3 = 0 ;
38710 wxRect *arg4 = 0 ;
38711 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38712 int arg6 = (int) -1 ;
38713 void *argp1 = 0 ;
38714 int res1 = 0 ;
38715 bool temp2 = false ;
38716 void *argp3 = 0 ;
38717 int res3 = 0 ;
38718 wxRect temp4 ;
38719 int val5 ;
38720 int ecode5 = 0 ;
38721 int val6 ;
38722 int ecode6 = 0 ;
38723 PyObject * obj0 = 0 ;
38724 PyObject * obj1 = 0 ;
38725 PyObject * obj2 = 0 ;
38726 PyObject * obj3 = 0 ;
38727 PyObject * obj4 = 0 ;
38728 PyObject * obj5 = 0 ;
38729 char * kwnames[] = {
38730 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38731 };
38732
38733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38735 if (!SWIG_IsOK(res1)) {
38736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38737 }
38738 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38739 {
38740 arg2 = wxString_in_helper(obj1);
38741 if (arg2 == NULL) SWIG_fail;
38742 temp2 = true;
38743 }
38744 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
38745 if (!SWIG_IsOK(res3)) {
38746 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38747 }
38748 if (!argp3) {
38749 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38750 }
38751 arg3 = reinterpret_cast< wxBitmap * >(argp3);
38752 {
38753 arg4 = &temp4;
38754 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
38755 }
38756 if (obj4) {
38757 ecode5 = SWIG_AsVal_int(obj4, &val5);
38758 if (!SWIG_IsOK(ecode5)) {
38759 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
38760 }
38761 arg5 = static_cast< int >(val5);
38762 }
38763 if (obj5) {
38764 ecode6 = SWIG_AsVal_int(obj5, &val6);
38765 if (!SWIG_IsOK(ecode6)) {
38766 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
38767 }
38768 arg6 = static_cast< int >(val6);
38769 }
38770 {
38771 PyThreadState* __tstate = wxPyBeginAllowThreads();
38772 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
38773 wxPyEndAllowThreads(__tstate);
38774 if (PyErr_Occurred()) SWIG_fail;
38775 }
38776 resultobj = SWIG_Py_Void();
38777 {
38778 if (temp2)
38779 delete arg2;
38780 }
38781 return resultobj;
38782 fail:
38783 {
38784 if (temp2)
38785 delete arg2;
38786 }
38787 return NULL;
38788 }
38789
38790
38791 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38792 PyObject *resultobj = 0;
38793 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38794 int arg2 ;
38795 wxPoint *arg3 = (wxPoint *) 0 ;
38796 void *argp1 = 0 ;
38797 int res1 = 0 ;
38798 PyObject * obj0 = 0 ;
38799 PyObject * obj1 = 0 ;
38800 char * kwnames[] = {
38801 (char *) "self",(char *) "points", NULL
38802 };
38803
38804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
38805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38806 if (!SWIG_IsOK(res1)) {
38807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38808 }
38809 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38810 {
38811 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38812 if (arg3 == NULL) SWIG_fail;
38813 }
38814 {
38815 PyThreadState* __tstate = wxPyBeginAllowThreads();
38816 (arg1)->DrawSpline(arg2,arg3);
38817 wxPyEndAllowThreads(__tstate);
38818 if (PyErr_Occurred()) SWIG_fail;
38819 }
38820 resultobj = SWIG_Py_Void();
38821 {
38822 if (arg3) delete [] arg3;
38823 }
38824 return resultobj;
38825 fail:
38826 {
38827 if (arg3) delete [] arg3;
38828 }
38829 return NULL;
38830 }
38831
38832
38833 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38834 PyObject *resultobj = 0;
38835 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38836 void *argp1 = 0 ;
38837 int res1 = 0 ;
38838 PyObject *swig_obj[1] ;
38839
38840 if (!args) SWIG_fail;
38841 swig_obj[0] = args;
38842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38843 if (!SWIG_IsOK(res1)) {
38844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38845 }
38846 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38847 {
38848 PyThreadState* __tstate = wxPyBeginAllowThreads();
38849 (arg1)->Clear();
38850 wxPyEndAllowThreads(__tstate);
38851 if (PyErr_Occurred()) SWIG_fail;
38852 }
38853 resultobj = SWIG_Py_Void();
38854 return resultobj;
38855 fail:
38856 return NULL;
38857 }
38858
38859
38860 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38861 PyObject *resultobj = 0;
38862 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38863 wxFont *arg2 = 0 ;
38864 void *argp1 = 0 ;
38865 int res1 = 0 ;
38866 void *argp2 = 0 ;
38867 int res2 = 0 ;
38868 PyObject * obj0 = 0 ;
38869 PyObject * obj1 = 0 ;
38870 char * kwnames[] = {
38871 (char *) "self",(char *) "font", NULL
38872 };
38873
38874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
38875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38876 if (!SWIG_IsOK(res1)) {
38877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38878 }
38879 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38880 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
38881 if (!SWIG_IsOK(res2)) {
38882 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38883 }
38884 if (!argp2) {
38885 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38886 }
38887 arg2 = reinterpret_cast< wxFont * >(argp2);
38888 {
38889 PyThreadState* __tstate = wxPyBeginAllowThreads();
38890 (arg1)->SetFont((wxFont const &)*arg2);
38891 wxPyEndAllowThreads(__tstate);
38892 if (PyErr_Occurred()) SWIG_fail;
38893 }
38894 resultobj = SWIG_Py_Void();
38895 return resultobj;
38896 fail:
38897 return NULL;
38898 }
38899
38900
38901 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38902 PyObject *resultobj = 0;
38903 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38904 wxPen *arg2 = 0 ;
38905 void *argp1 = 0 ;
38906 int res1 = 0 ;
38907 void *argp2 = 0 ;
38908 int res2 = 0 ;
38909 PyObject * obj0 = 0 ;
38910 PyObject * obj1 = 0 ;
38911 char * kwnames[] = {
38912 (char *) "self",(char *) "pen", NULL
38913 };
38914
38915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
38916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38917 if (!SWIG_IsOK(res1)) {
38918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38919 }
38920 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38921 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
38922 if (!SWIG_IsOK(res2)) {
38923 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38924 }
38925 if (!argp2) {
38926 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38927 }
38928 arg2 = reinterpret_cast< wxPen * >(argp2);
38929 {
38930 PyThreadState* __tstate = wxPyBeginAllowThreads();
38931 (arg1)->SetPen((wxPen const &)*arg2);
38932 wxPyEndAllowThreads(__tstate);
38933 if (PyErr_Occurred()) SWIG_fail;
38934 }
38935 resultobj = SWIG_Py_Void();
38936 return resultobj;
38937 fail:
38938 return NULL;
38939 }
38940
38941
38942 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38943 PyObject *resultobj = 0;
38944 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38945 wxBrush *arg2 = 0 ;
38946 void *argp1 = 0 ;
38947 int res1 = 0 ;
38948 void *argp2 = 0 ;
38949 int res2 = 0 ;
38950 PyObject * obj0 = 0 ;
38951 PyObject * obj1 = 0 ;
38952 char * kwnames[] = {
38953 (char *) "self",(char *) "brush", NULL
38954 };
38955
38956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
38957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38958 if (!SWIG_IsOK(res1)) {
38959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38960 }
38961 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38962 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38963 if (!SWIG_IsOK(res2)) {
38964 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38965 }
38966 if (!argp2) {
38967 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38968 }
38969 arg2 = reinterpret_cast< wxBrush * >(argp2);
38970 {
38971 PyThreadState* __tstate = wxPyBeginAllowThreads();
38972 (arg1)->SetBrush((wxBrush const &)*arg2);
38973 wxPyEndAllowThreads(__tstate);
38974 if (PyErr_Occurred()) SWIG_fail;
38975 }
38976 resultobj = SWIG_Py_Void();
38977 return resultobj;
38978 fail:
38979 return NULL;
38980 }
38981
38982
38983 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38984 PyObject *resultobj = 0;
38985 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38986 wxBrush *arg2 = 0 ;
38987 void *argp1 = 0 ;
38988 int res1 = 0 ;
38989 void *argp2 = 0 ;
38990 int res2 = 0 ;
38991 PyObject * obj0 = 0 ;
38992 PyObject * obj1 = 0 ;
38993 char * kwnames[] = {
38994 (char *) "self",(char *) "brush", NULL
38995 };
38996
38997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38999 if (!SWIG_IsOK(res1)) {
39000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39001 }
39002 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39003 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
39004 if (!SWIG_IsOK(res2)) {
39005 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
39006 }
39007 if (!argp2) {
39008 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
39009 }
39010 arg2 = reinterpret_cast< wxBrush * >(argp2);
39011 {
39012 PyThreadState* __tstate = wxPyBeginAllowThreads();
39013 (arg1)->SetBackground((wxBrush const &)*arg2);
39014 wxPyEndAllowThreads(__tstate);
39015 if (PyErr_Occurred()) SWIG_fail;
39016 }
39017 resultobj = SWIG_Py_Void();
39018 return resultobj;
39019 fail:
39020 return NULL;
39021 }
39022
39023
39024 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39025 PyObject *resultobj = 0;
39026 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39027 int arg2 ;
39028 void *argp1 = 0 ;
39029 int res1 = 0 ;
39030 int val2 ;
39031 int ecode2 = 0 ;
39032 PyObject * obj0 = 0 ;
39033 PyObject * obj1 = 0 ;
39034 char * kwnames[] = {
39035 (char *) "self",(char *) "mode", NULL
39036 };
39037
39038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
39039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39040 if (!SWIG_IsOK(res1)) {
39041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39042 }
39043 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39044 ecode2 = SWIG_AsVal_int(obj1, &val2);
39045 if (!SWIG_IsOK(ecode2)) {
39046 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
39047 }
39048 arg2 = static_cast< int >(val2);
39049 {
39050 PyThreadState* __tstate = wxPyBeginAllowThreads();
39051 (arg1)->SetBackgroundMode(arg2);
39052 wxPyEndAllowThreads(__tstate);
39053 if (PyErr_Occurred()) SWIG_fail;
39054 }
39055 resultobj = SWIG_Py_Void();
39056 return resultobj;
39057 fail:
39058 return NULL;
39059 }
39060
39061
39062 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39063 PyObject *resultobj = 0;
39064 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39065 wxPalette *arg2 = 0 ;
39066 void *argp1 = 0 ;
39067 int res1 = 0 ;
39068 void *argp2 = 0 ;
39069 int res2 = 0 ;
39070 PyObject * obj0 = 0 ;
39071 PyObject * obj1 = 0 ;
39072 char * kwnames[] = {
39073 (char *) "self",(char *) "palette", NULL
39074 };
39075
39076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
39077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39078 if (!SWIG_IsOK(res1)) {
39079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39080 }
39081 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39082 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
39083 if (!SWIG_IsOK(res2)) {
39084 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
39085 }
39086 if (!argp2) {
39087 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
39088 }
39089 arg2 = reinterpret_cast< wxPalette * >(argp2);
39090 {
39091 PyThreadState* __tstate = wxPyBeginAllowThreads();
39092 (arg1)->SetPalette((wxPalette const &)*arg2);
39093 wxPyEndAllowThreads(__tstate);
39094 if (PyErr_Occurred()) SWIG_fail;
39095 }
39096 resultobj = SWIG_Py_Void();
39097 return resultobj;
39098 fail:
39099 return NULL;
39100 }
39101
39102
39103 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39104 PyObject *resultobj = 0;
39105 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39106 wxColour *arg2 = 0 ;
39107 void *argp1 = 0 ;
39108 int res1 = 0 ;
39109 wxColour temp2 ;
39110 PyObject * obj0 = 0 ;
39111 PyObject * obj1 = 0 ;
39112 char * kwnames[] = {
39113 (char *) "self",(char *) "colour", NULL
39114 };
39115
39116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
39117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39118 if (!SWIG_IsOK(res1)) {
39119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39120 }
39121 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39122 {
39123 arg2 = &temp2;
39124 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
39125 }
39126 {
39127 PyThreadState* __tstate = wxPyBeginAllowThreads();
39128 (arg1)->SetTextForeground((wxColour const &)*arg2);
39129 wxPyEndAllowThreads(__tstate);
39130 if (PyErr_Occurred()) SWIG_fail;
39131 }
39132 resultobj = SWIG_Py_Void();
39133 return resultobj;
39134 fail:
39135 return NULL;
39136 }
39137
39138
39139 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39140 PyObject *resultobj = 0;
39141 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39142 wxColour *arg2 = 0 ;
39143 void *argp1 = 0 ;
39144 int res1 = 0 ;
39145 wxColour temp2 ;
39146 PyObject * obj0 = 0 ;
39147 PyObject * obj1 = 0 ;
39148 char * kwnames[] = {
39149 (char *) "self",(char *) "colour", NULL
39150 };
39151
39152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
39153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39154 if (!SWIG_IsOK(res1)) {
39155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39156 }
39157 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39158 {
39159 arg2 = &temp2;
39160 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
39161 }
39162 {
39163 PyThreadState* __tstate = wxPyBeginAllowThreads();
39164 (arg1)->SetTextBackground((wxColour const &)*arg2);
39165 wxPyEndAllowThreads(__tstate);
39166 if (PyErr_Occurred()) SWIG_fail;
39167 }
39168 resultobj = SWIG_Py_Void();
39169 return resultobj;
39170 fail:
39171 return NULL;
39172 }
39173
39174
39175 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39176 PyObject *resultobj = 0;
39177 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39178 int arg2 ;
39179 void *argp1 = 0 ;
39180 int res1 = 0 ;
39181 int val2 ;
39182 int ecode2 = 0 ;
39183 PyObject * obj0 = 0 ;
39184 PyObject * obj1 = 0 ;
39185 char * kwnames[] = {
39186 (char *) "self",(char *) "function", NULL
39187 };
39188
39189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
39190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39191 if (!SWIG_IsOK(res1)) {
39192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39193 }
39194 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39195 ecode2 = SWIG_AsVal_int(obj1, &val2);
39196 if (!SWIG_IsOK(ecode2)) {
39197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
39198 }
39199 arg2 = static_cast< int >(val2);
39200 {
39201 PyThreadState* __tstate = wxPyBeginAllowThreads();
39202 (arg1)->SetLogicalFunction(arg2);
39203 wxPyEndAllowThreads(__tstate);
39204 if (PyErr_Occurred()) SWIG_fail;
39205 }
39206 resultobj = SWIG_Py_Void();
39207 return resultobj;
39208 fail:
39209 return NULL;
39210 }
39211
39212
39213 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39214 PyObject *obj;
39215 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39216 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
39217 return SWIG_Py_Void();
39218 }
39219
39220 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39221 return SWIG_Python_InitShadowInstance(args);
39222 }
39223
39224 static PyMethodDef SwigMethods[] = {
39225 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
39226 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
39227 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
39228 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
39229 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
39230 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
39231 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
39232 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39233 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
39234 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
39235 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
39236 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
39237 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
39238 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
39239 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39240 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39241 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
39242 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
39243 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
39244 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39245 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39246 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
39247 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
39248 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
39249 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
39250 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
39251 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
39252 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39253 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39254 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
39255 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
39256 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
39257 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
39258 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
39259 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
39260 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
39261 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
39262 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
39263 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
39264 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
39265 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
39266 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
39267 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39268 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
39269 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39270 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39271 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
39272 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
39273 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
39274 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
39275 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
39276 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
39277 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39278 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39279 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
39280 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
39281 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
39282 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39283 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
39284 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39285 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39286 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
39287 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
39288 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
39289 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
39290 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
39291 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
39292 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
39293 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
39294 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39295 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
39296 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39297 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39298 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
39299 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
39300 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
39301 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
39302 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
39303 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
39304 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
39305 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
39306 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
39307 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
39308 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
39309 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
39310 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
39311 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
39312 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39313 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
39314 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
39315 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
39316 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39317 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39318 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39319 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39320 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39321 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39322 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39323 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
39324 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
39325 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39326 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39327 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
39328 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
39329 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
39330 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
39331 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
39332 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
39333 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
39334 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
39335 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
39336 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
39337 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
39338 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
39339 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
39340 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
39341 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
39342 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
39343 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
39344 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
39345 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
39346 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
39347 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
39348 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
39349 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
39350 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39351 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
39352 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
39353 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39354 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39355 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
39356 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
39357 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
39358 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
39359 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
39360 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
39361 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
39362 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
39363 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
39364 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
39365 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
39366 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
39367 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
39368 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
39369 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
39370 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39371 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
39372 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
39373 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39374 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39375 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
39376 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
39377 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
39378 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
39379 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
39380 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
39381 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
39382 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
39383 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
39384 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
39385 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39386 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39387 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
39388 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
39389 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
39390 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
39391 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
39392 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
39393 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
39394 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
39395 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39396 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39397 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39398 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39399 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39400 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
39401 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
39402 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39403 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
39404 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
39405 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
39406 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
39407 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
39408 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
39409 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
39410 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
39411 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
39412 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39413 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39414 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
39415 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39416 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39417 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39418 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
39419 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
39420 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
39421 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
39422 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39423 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
39424 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
39425 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
39426 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
39427 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
39428 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
39429 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
39430 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39431 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39432 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39433 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39434 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
39435 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
39436 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
39437 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39438 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39439 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
39440 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
39441 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
39442 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39443 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
39444 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39445 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
39446 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
39447 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
39448 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
39449 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
39450 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39451 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
39452 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39453 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
39454 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
39455 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39456 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
39457 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
39458 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39459 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
39460 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
39461 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39462 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
39463 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39464 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39465 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
39466 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
39467 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
39468 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
39469 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
39470 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
39471 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
39472 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
39473 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
39474 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
39475 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
39476 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
39477 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
39478 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
39479 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
39480 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
39481 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
39482 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
39483 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
39484 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
39485 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
39486 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
39487 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
39488 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
39489 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
39490 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
39491 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
39492 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
39493 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
39494 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39495 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39496 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39497 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39498 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39499 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39500 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39501 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39502 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39503 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
39504 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
39505 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
39506 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
39507 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
39508 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
39509 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
39510 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
39511 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
39512 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
39513 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
39514 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
39515 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39516 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
39517 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
39518 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
39519 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39520 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39521 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
39522 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
39523 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
39524 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39525 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39526 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
39527 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39528 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
39529 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
39530 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
39531 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
39532 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
39533 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39534 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
39535 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
39536 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
39537 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
39538 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
39539 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
39540 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
39541 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39542 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
39543 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
39544 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39545 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39546 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
39547 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39548 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39549 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
39550 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
39551 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
39552 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
39553 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
39554 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
39555 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
39556 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
39557 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
39558 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
39559 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
39560 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
39561 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
39562 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39563 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39564 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39565 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39566 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39567 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39568 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39569 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39570 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39571 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
39572 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
39573 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
39574 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
39575 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
39576 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
39577 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
39578 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
39579 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39580 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
39581 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
39582 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
39583 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
39584 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39585 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
39586 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
39587 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
39588 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
39589 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
39590 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
39591 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
39592 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
39593 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
39594 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
39595 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
39596 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
39597 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
39598 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
39599 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
39600 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
39601 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
39602 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
39603 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
39604 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
39605 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
39606 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
39607 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
39608 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
39609 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
39610 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
39611 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
39612 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
39613 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
39614 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
39615 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39616 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
39617 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39618 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
39619 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
39620 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
39621 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
39622 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
39623 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
39624 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
39625 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39626 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
39627 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
39628 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
39629 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
39630 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
39631 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
39632 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
39633 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
39634 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
39635 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
39636 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39637 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39638 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
39639 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
39640 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
39641 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
39642 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39643 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39644 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
39645 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
39646 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39647 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39648 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39649 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39650 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39651 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39652 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39653 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39654 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39655 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39656 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39657 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39658 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39659 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39660 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39661 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39662 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39663 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39664 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39665 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39666 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39667 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39668 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39669 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39670 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39671 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39672 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39673 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39674 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39675 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39676 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39677 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39678 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39679 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
39680 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39681 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39682 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39683 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39684 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39685 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
39686 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39687 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39688 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39689 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39690 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39691 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
39692 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
39693 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
39694 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
39695 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
39696 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39697 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39698 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39699 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39700 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39701 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39702 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
39703 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
39704 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
39705 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
39706 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
39707 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39708 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39709 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39710 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39711 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
39712 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
39713 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
39714 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
39715 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
39716 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
39717 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39718 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39719 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
39720 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
39721 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39722 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39723 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
39724 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
39725 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
39726 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
39727 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
39728 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
39729 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
39730 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
39731 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
39732 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
39733 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
39734 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
39735 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39736 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39737 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
39738 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
39739 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
39740 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
39741 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
39742 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
39743 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
39744 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
39745 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39746 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39747 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
39748 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
39749 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39750 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39751 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
39752 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
39753 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39754 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
39755 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
39756 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39757 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
39758 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
39759 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
39760 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
39761 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
39762 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
39763 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
39764 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
39765 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
39766 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
39767 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
39768 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
39769 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
39770 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
39771 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
39772 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
39773 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39774 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
39775 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
39776 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
39777 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39778 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
39779 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
39780 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
39781 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39782 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
39783 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
39784 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
39785 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
39786 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
39787 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
39788 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
39789 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
39790 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
39791 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
39792 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
39793 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
39794 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
39795 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
39796 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
39797 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
39798 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
39799 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
39800 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
39801 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39802 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
39803 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
39804 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
39805 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
39806 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
39807 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
39808 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
39809 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
39810 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
39811 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
39812 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
39813 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39814 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
39815 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
39816 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
39817 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39818 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
39819 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
39820 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39821 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
39822 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
39823 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
39824 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
39825 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
39826 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
39827 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
39828 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
39829 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
39830 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
39831 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
39832 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
39833 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
39834 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
39835 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
39836 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
39837 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
39838 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
39839 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
39840 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
39841 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
39842 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
39843 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
39844 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
39845 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
39846 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
39847 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
39848 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
39849 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
39850 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
39851 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
39852 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
39853 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
39854 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
39855 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
39856 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
39857 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
39858 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
39859 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
39860 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
39861 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
39862 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
39863 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
39864 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
39865 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
39866 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
39867 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
39868 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
39869 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
39870 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
39871 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
39872 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39873 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
39874 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39875 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
39876 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39877 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39878 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39879 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39880 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
39881 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
39882 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
39883 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
39884 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
39885 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
39886 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
39887 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
39888 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
39889 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
39890 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
39891 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
39892 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
39893 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39894 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39895 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39896 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39897 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39898 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39899 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
39900 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
39901 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
39902 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
39903 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
39904 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
39905 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
39906 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
39907 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
39908 { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL},
39909 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
39910 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39911 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
39912 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39913 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39914 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39915 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39916 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39917 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39918 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
39919 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
39920 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39921 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
39922 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
39923 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
39924 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39925 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39926 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39927 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39928 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39929 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
39930 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
39931 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
39932 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
39933 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
39934 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
39935 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
39936 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39937 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39938 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39939 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39940 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39941 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39942 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39943 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
39944 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
39945 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
39946 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39947 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39948 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39949 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39950 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
39951 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
39952 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
39953 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
39954 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
39955 { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL},
39956 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
39957 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39958 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
39959 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39960 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39961 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39962 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39963 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39964 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39965 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
39966 { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL},
39967 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
39968 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
39969 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
39970 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
39971 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
39972 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
39973 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
39974 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
39975 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
39976 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
39977 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39978 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39979 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39980 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39981 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
39982 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39983 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39984 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39985 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39986 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39987 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39988 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39989 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39990 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39991 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39992 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39993 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39994 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39995 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39996 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
39997 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39998 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39999 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
40000 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
40001 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40002 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
40003 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
40004 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
40005 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
40006 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
40007 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
40008 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
40009 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
40010 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
40011 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
40012 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
40013 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
40014 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
40015 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
40016 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40017 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40018 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40019 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
40020 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
40021 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
40022 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
40023 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
40024 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
40025 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
40026 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
40027 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
40028 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
40029 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
40030 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
40031 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
40032 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
40033 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
40034 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
40035 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
40036 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
40037 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
40038 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
40039 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
40040 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
40041 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
40042 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
40043 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
40044 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
40045 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
40046 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
40047 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
40048 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
40049 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40050 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
40051 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
40052 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
40053 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
40054 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
40055 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
40056 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
40057 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
40058 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
40059 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
40060 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
40061 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
40062 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
40063 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
40064 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
40065 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
40066 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
40067 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
40068 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
40069 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
40070 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
40071 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
40072 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
40073 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
40074 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
40075 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
40076 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
40077 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
40078 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
40079 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
40080 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
40081 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
40082 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
40083 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
40084 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
40085 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
40086 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
40087 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
40088 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
40089 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
40090 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
40091 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
40092 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
40093 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
40094 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
40095 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
40096 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
40097 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
40098 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
40099 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
40100 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
40101 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
40102 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
40103 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
40104 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
40105 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
40106 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
40107 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
40108 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
40109 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
40110 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
40111 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
40112 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
40113 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
40114 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
40115 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
40116 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
40117 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
40118 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
40119 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
40120 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
40121 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
40122 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
40123 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40124 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
40125 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
40126 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
40127 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40128 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
40129 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40130 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
40131 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
40132 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
40133 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40134 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40135 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40136 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40137 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
40138 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40139 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40140 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
40141 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40142 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
40143 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
40144 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
40145 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
40146 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40147 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40148 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40149 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40150 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40151 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
40152 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40153 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
40154 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40155 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
40156 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
40157 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40158 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40159 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
40160 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
40161 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
40162 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
40163 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40164 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
40165 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
40166 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
40167 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
40168 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
40169 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
40170 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
40171 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
40172 { NULL, NULL, 0, NULL }
40173 };
40174
40175
40176 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
40177
40178 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
40179 return (void *)((wxClientDC *) ((wxPaintDC *) x));
40180 }
40181 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
40182 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
40183 }
40184 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
40185 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
40186 }
40187 static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
40188 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
40189 }
40190 static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
40191 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
40192 }
40193 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
40194 return (void *)((wxWindowDC *) ((wxClientDC *) x));
40195 }
40196 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
40197 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
40198 }
40199 static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
40200 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40201 }
40202 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
40203 return (void *)((wxLocale *) ((wxPyLocale *) x));
40204 }
40205 static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
40206 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
40207 }
40208 static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
40209 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
40210 }
40211 static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
40212 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40213 }
40214 static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
40215 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
40216 }
40217 static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
40218 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
40219 }
40220 static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
40221 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
40222 }
40223 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
40224 return (void *)((wxGDIObject *) ((wxIcon *) x));
40225 }
40226 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
40227 return (void *)((wxGDIObject *) ((wxPalette *) x));
40228 }
40229 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
40230 return (void *)((wxGDIObject *) ((wxPen *) x));
40231 }
40232 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
40233 return (void *)((wxGDIObject *) ((wxFont *) x));
40234 }
40235 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
40236 return (void *)((wxGDIObject *) ((wxCursor *) x));
40237 }
40238 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
40239 return (void *)((wxGDIObject *) ((wxBitmap *) x));
40240 }
40241 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
40242 return (void *)((wxGDIObject *) ((wxRegion *) x));
40243 }
40244 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
40245 return (void *)((wxGDIObject *) ((wxBrush *) x));
40246 }
40247 static void *_p_wxGCDCTo_p_wxDC(void *x) {
40248 return (void *)((wxDC *) ((wxGCDC *) x));
40249 }
40250 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
40251 return (void *)((wxDC *) ((wxScreenDC *) x));
40252 }
40253 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
40254 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
40255 }
40256 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
40257 return (void *)((wxDC *) ((wxMirrorDC *) x));
40258 }
40259 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
40260 return (void *)((wxDC *) ((wxWindowDC *) x));
40261 }
40262 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
40263 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
40264 }
40265 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
40266 return (void *)((wxDC *) ((wxMetaFileDC *) x));
40267 }
40268 static void *_p_wxClientDCTo_p_wxDC(void *x) {
40269 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
40270 }
40271 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
40272 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
40273 }
40274 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
40275 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40276 }
40277 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
40278 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
40279 }
40280 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
40281 return (void *)((wxDC *) ((wxPostScriptDC *) x));
40282 }
40283 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
40284 return (void *)((wxDC *) ((wxPrinterDC *) x));
40285 }
40286 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
40287 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
40288 }
40289 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
40290 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
40291 }
40292 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
40293 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
40294 }
40295 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
40296 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
40297 }
40298 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
40299 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
40300 }
40301 static void *_p_wxPenTo_p_wxObject(void *x) {
40302 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
40303 }
40304 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
40305 return (void *)((wxObject *) ((wxRegionIterator *) x));
40306 }
40307 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
40308 return (void *)((wxObject *) ((wxSizerItem *) x));
40309 }
40310 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
40311 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
40312 }
40313 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
40314 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
40315 }
40316 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
40317 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
40318 }
40319 static void *_p_wxIconTo_p_wxObject(void *x) {
40320 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
40321 }
40322 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
40323 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
40324 }
40325 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
40326 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
40327 }
40328 static void *_p_wxSizerTo_p_wxObject(void *x) {
40329 return (void *)((wxObject *) ((wxSizer *) x));
40330 }
40331 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
40332 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
40333 }
40334 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
40335 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
40336 }
40337 static void *_p_wxEventTo_p_wxObject(void *x) {
40338 return (void *)((wxObject *) ((wxEvent *) x));
40339 }
40340 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
40341 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
40342 }
40343 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
40344 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
40345 }
40346 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
40347 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
40348 }
40349 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
40350 return (void *)((wxObject *) ((wxPseudoDC *) x));
40351 }
40352 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
40353 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
40354 }
40355 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
40356 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
40357 }
40358 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
40359 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
40360 }
40361 static void *_p_wxDCTo_p_wxObject(void *x) {
40362 return (void *)((wxObject *) ((wxDC *) x));
40363 }
40364 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
40365 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
40366 }
40367 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
40368 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
40369 }
40370 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
40371 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
40372 }
40373 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
40374 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
40375 }
40376 static void *_p_wxControlTo_p_wxObject(void *x) {
40377 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
40378 }
40379 static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
40380 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
40381 }
40382 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
40383 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
40384 }
40385 static void *_p_wxClientDCTo_p_wxObject(void *x) {
40386 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
40387 }
40388 static void *_p_wxFSFileTo_p_wxObject(void *x) {
40389 return (void *)((wxObject *) ((wxFSFile *) x));
40390 }
40391 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
40392 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
40393 }
40394 static void *_p_wxRegionTo_p_wxObject(void *x) {
40395 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
40396 }
40397 static void *_p_wxPySizerTo_p_wxObject(void *x) {
40398 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
40399 }
40400 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
40401 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
40402 }
40403 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
40404 return (void *)((wxObject *) ((wxGDIObject *) x));
40405 }
40406 static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
40407 return (void *)((wxObject *) ((wxGraphicsObject *) x));
40408 }
40409 static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
40410 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
40411 }
40412 static void *_p_wxEffectsTo_p_wxObject(void *x) {
40413 return (void *)((wxObject *) ((wxEffects *) x));
40414 }
40415 static void *_p_wxPyEventTo_p_wxObject(void *x) {
40416 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
40417 }
40418 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
40419 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
40420 }
40421 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
40422 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
40423 }
40424 static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
40425 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
40426 }
40427 static void *_p_wxShowEventTo_p_wxObject(void *x) {
40428 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
40429 }
40430 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
40431 return (void *)((wxObject *) ((wxMenuItem *) x));
40432 }
40433 static void *_p_wxDateEventTo_p_wxObject(void *x) {
40434 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
40435 }
40436 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
40437 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
40438 }
40439 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
40440 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
40441 }
40442 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
40443 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
40444 }
40445 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
40446 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
40447 }
40448 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
40449 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
40450 }
40451 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
40452 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
40453 }
40454 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
40455 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
40456 }
40457 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
40458 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
40459 }
40460 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
40461 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
40462 }
40463 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
40464 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
40465 }
40466 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
40467 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
40468 }
40469 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
40470 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
40471 }
40472 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
40473 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
40474 }
40475 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
40476 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
40477 }
40478 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
40479 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
40480 }
40481 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
40482 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
40483 }
40484 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
40485 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
40486 }
40487 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
40488 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
40489 }
40490 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
40491 return (void *)((wxObject *) ((wxImageHandler *) x));
40492 }
40493 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
40494 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
40495 }
40496 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
40497 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
40498 }
40499 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
40500 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
40501 }
40502 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
40503 return (void *)((wxObject *) ((wxEvtHandler *) x));
40504 }
40505 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
40506 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
40507 }
40508 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
40509 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
40510 }
40511 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
40512 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40513 }
40514 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
40515 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
40516 }
40517 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
40518 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
40519 }
40520 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
40521 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
40522 }
40523 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
40524 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
40525 }
40526 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
40527 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
40528 }
40529 static void *_p_wxImageTo_p_wxObject(void *x) {
40530 return (void *)((wxObject *) ((wxImage *) x));
40531 }
40532 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
40533 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
40534 }
40535 static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
40536 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
40537 }
40538 static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
40539 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
40540 }
40541 static void *_p_wxPaletteTo_p_wxObject(void *x) {
40542 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
40543 }
40544 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
40545 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
40546 }
40547 static void *_p_wxImageListTo_p_wxObject(void *x) {
40548 return (void *)((wxObject *) ((wxImageList *) x));
40549 }
40550 static void *_p_wxGCDCTo_p_wxObject(void *x) {
40551 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
40552 }
40553 static void *_p_wxCursorTo_p_wxObject(void *x) {
40554 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
40555 }
40556 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
40557 return (void *)((wxObject *) ((wxEncodingConverter *) x));
40558 }
40559 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
40560 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
40561 }
40562 static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
40563 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
40564 }
40565 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
40566 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
40567 }
40568 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
40569 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
40570 }
40571 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
40572 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
40573 }
40574 static void *_p_wxWindowTo_p_wxObject(void *x) {
40575 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
40576 }
40577 static void *_p_wxMenuTo_p_wxObject(void *x) {
40578 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
40579 }
40580 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
40581 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
40582 }
40583 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
40584 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
40585 }
40586 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
40587 return (void *)((wxObject *) ((wxFileSystem *) x));
40588 }
40589 static void *_p_wxBitmapTo_p_wxObject(void *x) {
40590 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
40591 }
40592 static void *_p_wxMaskTo_p_wxObject(void *x) {
40593 return (void *)((wxObject *) ((wxMask *) x));
40594 }
40595 static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
40596 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40597 }
40598 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
40599 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
40600 }
40601 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
40602 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
40603 }
40604 static void *_p_wxPyAppTo_p_wxObject(void *x) {
40605 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
40606 }
40607 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
40608 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
40609 }
40610 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
40611 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
40612 }
40613 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
40614 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
40615 }
40616 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
40617 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
40618 }
40619 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
40620 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
40621 }
40622 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
40623 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
40624 }
40625 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
40626 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
40627 }
40628 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
40629 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
40630 }
40631 static void *_p_wxFontTo_p_wxObject(void *x) {
40632 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
40633 }
40634 static void *_p_wxBrushTo_p_wxObject(void *x) {
40635 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
40636 }
40637 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
40638 return (void *)((wxObject *) ((wxMetaFile *) x));
40639 }
40640 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
40641 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
40642 }
40643 static void *_p_wxColourTo_p_wxObject(void *x) {
40644 return (void *)((wxObject *) ((wxColour *) x));
40645 }
40646 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
40647 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
40648 }
40649 static void *_p_wxValidatorTo_p_wxObject(void *x) {
40650 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
40651 }
40652 static void *_p_wxControlTo_p_wxWindow(void *x) {
40653 return (void *)((wxWindow *) ((wxControl *) x));
40654 }
40655 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
40656 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
40657 }
40658 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
40659 return (void *)((wxWindow *) ((wxMenuBar *) x));
40660 }
40661 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
40662 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
40663 }
40664 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
40665 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
40666 }
40667 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
40668 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
40669 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
40670 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};
40671 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
40672 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
40673 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
40674 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
40675 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
40676 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
40677 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
40678 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
40679 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
40680 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
40681 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
40682 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
40683 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
40684 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
40685 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
40686 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
40687 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
40688 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
40689 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
40690 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
40691 static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
40692 static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
40693 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
40694 static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
40695 static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
40696 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
40697 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
40698 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
40699 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
40700 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
40701 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
40702 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
40703 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
40704 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
40705 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
40706 static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
40707 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
40708 static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
40709 static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
40710 static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
40711 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
40712 static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
40713 static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
40714 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
40715 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
40716 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
40717 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
40718 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
40719 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
40720 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
40721 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
40722 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
40723 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
40724 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
40725 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
40726 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
40727 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
40728 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
40729 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
40730 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
40731 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
40732 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
40733 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
40734 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
40735 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
40736 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
40737 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
40738 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
40739 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
40740 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
40741 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
40742 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
40743 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
40744 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
40745 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
40746 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
40747 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
40748 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
40749 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
40750 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
40751 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
40752 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
40753 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
40754 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
40755 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
40756 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
40757 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
40758 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
40759 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
40760 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
40761 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
40762 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
40763 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
40764 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
40765 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
40766 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
40767 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
40768 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
40769 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
40770 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
40771 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
40772 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
40773 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
40774 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
40775 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
40776 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
40777 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
40778 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
40779 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
40780 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
40781 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
40782 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
40783 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
40784 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
40785 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
40786 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
40787 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
40788 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
40789 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
40790 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
40791 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
40792 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
40793 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
40794 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
40795 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
40796 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
40797 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
40798 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
40799 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
40800 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
40801 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
40802 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
40803 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
40804 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
40805 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
40806 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
40807 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
40808 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
40809 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
40810 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
40811 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
40812 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
40813 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
40814 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
40815 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
40816 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
40817 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
40818 static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
40819 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
40820 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
40821 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
40822 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
40823 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
40824 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
40825 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
40826 static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
40827 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
40828 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
40829 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
40830 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
40831 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
40832 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
40833 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
40834 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
40835 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
40836 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
40837 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
40838
40839 static swig_type_info *swig_type_initial[] = {
40840 &_swigt__p_buffer,
40841 &_swigt__p_char,
40842 &_swigt__p_double,
40843 &_swigt__p_form_ops_t,
40844 &_swigt__p_int,
40845 &_swigt__p_unsigned_char,
40846 &_swigt__p_unsigned_int,
40847 &_swigt__p_unsigned_long,
40848 &_swigt__p_void,
40849 &_swigt__p_wxANIHandler,
40850 &_swigt__p_wxAcceleratorTable,
40851 &_swigt__p_wxActivateEvent,
40852 &_swigt__p_wxAlphaPixelData,
40853 &_swigt__p_wxAlphaPixelData_Accessor,
40854 &_swigt__p_wxAutoBufferedPaintDC,
40855 &_swigt__p_wxBMPHandler,
40856 &_swigt__p_wxBitmap,
40857 &_swigt__p_wxBoxSizer,
40858 &_swigt__p_wxBrush,
40859 &_swigt__p_wxBrushList,
40860 &_swigt__p_wxBufferedDC,
40861 &_swigt__p_wxBufferedPaintDC,
40862 &_swigt__p_wxCURHandler,
40863 &_swigt__p_wxChar,
40864 &_swigt__p_wxChildFocusEvent,
40865 &_swigt__p_wxClientDC,
40866 &_swigt__p_wxClipboardTextEvent,
40867 &_swigt__p_wxCloseEvent,
40868 &_swigt__p_wxColor,
40869 &_swigt__p_wxColour,
40870 &_swigt__p_wxColourDatabase,
40871 &_swigt__p_wxCommandEvent,
40872 &_swigt__p_wxContextMenuEvent,
40873 &_swigt__p_wxControl,
40874 &_swigt__p_wxControlWithItems,
40875 &_swigt__p_wxCursor,
40876 &_swigt__p_wxDC,
40877 &_swigt__p_wxDCBrushChanger,
40878 &_swigt__p_wxDCClipper,
40879 &_swigt__p_wxDCOverlay,
40880 &_swigt__p_wxDCPenChanger,
40881 &_swigt__p_wxDCTextColourChanger,
40882 &_swigt__p_wxDash,
40883 &_swigt__p_wxDateEvent,
40884 &_swigt__p_wxDisplayChangedEvent,
40885 &_swigt__p_wxDropFilesEvent,
40886 &_swigt__p_wxDuplexMode,
40887 &_swigt__p_wxEffects,
40888 &_swigt__p_wxEncodingConverter,
40889 &_swigt__p_wxEraseEvent,
40890 &_swigt__p_wxEvent,
40891 &_swigt__p_wxEvtHandler,
40892 &_swigt__p_wxFSFile,
40893 &_swigt__p_wxFileSystem,
40894 &_swigt__p_wxFlexGridSizer,
40895 &_swigt__p_wxFocusEvent,
40896 &_swigt__p_wxFont,
40897 &_swigt__p_wxFontList,
40898 &_swigt__p_wxFontMapper,
40899 &_swigt__p_wxGBSizerItem,
40900 &_swigt__p_wxGCDC,
40901 &_swigt__p_wxGDIObjListBase,
40902 &_swigt__p_wxGDIObject,
40903 &_swigt__p_wxGIFHandler,
40904 &_swigt__p_wxGraphicsBrush,
40905 &_swigt__p_wxGraphicsContext,
40906 &_swigt__p_wxGraphicsFont,
40907 &_swigt__p_wxGraphicsMatrix,
40908 &_swigt__p_wxGraphicsObject,
40909 &_swigt__p_wxGraphicsPath,
40910 &_swigt__p_wxGraphicsPen,
40911 &_swigt__p_wxGraphicsRenderer,
40912 &_swigt__p_wxGridBagSizer,
40913 &_swigt__p_wxGridSizer,
40914 &_swigt__p_wxHeaderButtonParams,
40915 &_swigt__p_wxICOHandler,
40916 &_swigt__p_wxIcon,
40917 &_swigt__p_wxIconBundle,
40918 &_swigt__p_wxIconLocation,
40919 &_swigt__p_wxIconizeEvent,
40920 &_swigt__p_wxIdleEvent,
40921 &_swigt__p_wxImage,
40922 &_swigt__p_wxImageHandler,
40923 &_swigt__p_wxImageList,
40924 &_swigt__p_wxIndividualLayoutConstraint,
40925 &_swigt__p_wxInitDialogEvent,
40926 &_swigt__p_wxJPEGHandler,
40927 &_swigt__p_wxKeyEvent,
40928 &_swigt__p_wxLanguageInfo,
40929 &_swigt__p_wxLayoutConstraints,
40930 &_swigt__p_wxLocale,
40931 &_swigt__p_wxMask,
40932 &_swigt__p_wxMaximizeEvent,
40933 &_swigt__p_wxMemoryDC,
40934 &_swigt__p_wxMenu,
40935 &_swigt__p_wxMenuBar,
40936 &_swigt__p_wxMenuEvent,
40937 &_swigt__p_wxMenuItem,
40938 &_swigt__p_wxMetaFile,
40939 &_swigt__p_wxMetaFileDC,
40940 &_swigt__p_wxMirrorDC,
40941 &_swigt__p_wxMouseCaptureChangedEvent,
40942 &_swigt__p_wxMouseCaptureLostEvent,
40943 &_swigt__p_wxMouseEvent,
40944 &_swigt__p_wxMoveEvent,
40945 &_swigt__p_wxNativeEncodingInfo,
40946 &_swigt__p_wxNativeFontInfo,
40947 &_swigt__p_wxNativePixelData,
40948 &_swigt__p_wxNativePixelData_Accessor,
40949 &_swigt__p_wxNavigationKeyEvent,
40950 &_swigt__p_wxNcPaintEvent,
40951 &_swigt__p_wxNotifyEvent,
40952 &_swigt__p_wxObject,
40953 &_swigt__p_wxOverlay,
40954 &_swigt__p_wxPCXHandler,
40955 &_swigt__p_wxPNGHandler,
40956 &_swigt__p_wxPNMHandler,
40957 &_swigt__p_wxPaintDC,
40958 &_swigt__p_wxPaintEvent,
40959 &_swigt__p_wxPalette,
40960 &_swigt__p_wxPaletteChangedEvent,
40961 &_swigt__p_wxPaperSize,
40962 &_swigt__p_wxPen,
40963 &_swigt__p_wxPenList,
40964 &_swigt__p_wxPixelDataBase,
40965 &_swigt__p_wxPoint,
40966 &_swigt__p_wxPoint2D,
40967 &_swigt__p_wxPoint2DDouble,
40968 &_swigt__p_wxPostScriptDC,
40969 &_swigt__p_wxPrintData,
40970 &_swigt__p_wxPrinterDC,
40971 &_swigt__p_wxPseudoDC,
40972 &_swigt__p_wxPyApp,
40973 &_swigt__p_wxPyCommandEvent,
40974 &_swigt__p_wxPyEvent,
40975 &_swigt__p_wxPyFontEnumerator,
40976 &_swigt__p_wxPyImageHandler,
40977 &_swigt__p_wxPyLocale,
40978 &_swigt__p_wxPySizer,
40979 &_swigt__p_wxPyValidator,
40980 &_swigt__p_wxQueryNewPaletteEvent,
40981 &_swigt__p_wxRect,
40982 &_swigt__p_wxRect2DDouble,
40983 &_swigt__p_wxRegion,
40984 &_swigt__p_wxRegionIterator,
40985 &_swigt__p_wxRendererNative,
40986 &_swigt__p_wxRendererVersion,
40987 &_swigt__p_wxScreenDC,
40988 &_swigt__p_wxScrollEvent,
40989 &_swigt__p_wxScrollWinEvent,
40990 &_swigt__p_wxSetCursorEvent,
40991 &_swigt__p_wxShowEvent,
40992 &_swigt__p_wxSize,
40993 &_swigt__p_wxSizeEvent,
40994 &_swigt__p_wxSizer,
40995 &_swigt__p_wxSizerItem,
40996 &_swigt__p_wxSplitterRenderParams,
40997 &_swigt__p_wxStaticBoxSizer,
40998 &_swigt__p_wxStdDialogButtonSizer,
40999 &_swigt__p_wxStockGDI,
41000 &_swigt__p_wxString,
41001 &_swigt__p_wxSysColourChangedEvent,
41002 &_swigt__p_wxTGAHandler,
41003 &_swigt__p_wxTIFFHandler,
41004 &_swigt__p_wxUpdateUIEvent,
41005 &_swigt__p_wxValidator,
41006 &_swigt__p_wxWindow,
41007 &_swigt__p_wxWindowCreateEvent,
41008 &_swigt__p_wxWindowDC,
41009 &_swigt__p_wxWindowDestroyEvent,
41010 &_swigt__p_wxXPMHandler,
41011 };
41012
41013 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
41014 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
41015 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
41016 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
41017 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
41018 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
41019 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
41020 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
41021 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
41022 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
41023 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
41024 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
41025 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
41026 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
41027 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
41028 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}};
41029 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
41030 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
41031 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}};
41032 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
41033 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
41034 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
41035 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
41036 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}};
41037 static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
41038 static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
41039 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
41040 static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
41041 static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
41042 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
41043 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
41044 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
41045 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
41046 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
41047 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
41048 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
41049 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
41050 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}};
41051 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}};
41052 static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
41053 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
41054 static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
41055 static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
41056 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}};
41057 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
41058 static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
41059 static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
41060 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
41061 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
41062 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
41063 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
41064 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
41065 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
41066 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
41067 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}};
41068 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
41069 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}};
41070 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
41071 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
41072 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
41073 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
41074 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
41075 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
41076 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
41077 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
41078 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
41079 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
41080 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
41081 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
41082 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
41083 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
41084 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
41085 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
41086 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
41087 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
41088 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
41089 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
41090 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
41091 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
41092 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
41093 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
41094 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
41095 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41096 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41097 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41098 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41099 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
41100 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
41101 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
41102 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
41103 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
41104 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
41105 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
41106 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
41107 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
41108 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
41109 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
41110 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
41111 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
41112 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
41113 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
41114 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
41115 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
41116 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
41117 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
41118 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
41119 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
41120 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
41121 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
41122 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
41123 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
41124 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
41125 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
41126 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
41127 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
41128 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
41129 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
41130 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
41131 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
41132 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
41133 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
41134 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
41135 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
41136 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
41137 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
41138 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
41139 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
41140 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
41141 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
41142 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
41143 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
41144 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
41145 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
41146 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
41147 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
41148 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
41149 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
41150 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
41151 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
41152 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
41153 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
41154 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_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_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}};
41155 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
41156 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
41157 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
41158 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
41159 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
41160 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
41161 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}};
41162 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
41163 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
41164 static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
41165 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
41166 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
41167 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
41168 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
41169 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
41170 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
41171 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
41172 static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
41173 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
41174 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
41175 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
41176 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
41177 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
41178 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
41179 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
41180 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
41181 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
41182 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}};
41183 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}};
41184
41185 static swig_cast_info *swig_cast_initial[] = {
41186 _swigc__p_buffer,
41187 _swigc__p_char,
41188 _swigc__p_double,
41189 _swigc__p_form_ops_t,
41190 _swigc__p_int,
41191 _swigc__p_unsigned_char,
41192 _swigc__p_unsigned_int,
41193 _swigc__p_unsigned_long,
41194 _swigc__p_void,
41195 _swigc__p_wxANIHandler,
41196 _swigc__p_wxAcceleratorTable,
41197 _swigc__p_wxActivateEvent,
41198 _swigc__p_wxAlphaPixelData,
41199 _swigc__p_wxAlphaPixelData_Accessor,
41200 _swigc__p_wxAutoBufferedPaintDC,
41201 _swigc__p_wxBMPHandler,
41202 _swigc__p_wxBitmap,
41203 _swigc__p_wxBoxSizer,
41204 _swigc__p_wxBrush,
41205 _swigc__p_wxBrushList,
41206 _swigc__p_wxBufferedDC,
41207 _swigc__p_wxBufferedPaintDC,
41208 _swigc__p_wxCURHandler,
41209 _swigc__p_wxChar,
41210 _swigc__p_wxChildFocusEvent,
41211 _swigc__p_wxClientDC,
41212 _swigc__p_wxClipboardTextEvent,
41213 _swigc__p_wxCloseEvent,
41214 _swigc__p_wxColor,
41215 _swigc__p_wxColour,
41216 _swigc__p_wxColourDatabase,
41217 _swigc__p_wxCommandEvent,
41218 _swigc__p_wxContextMenuEvent,
41219 _swigc__p_wxControl,
41220 _swigc__p_wxControlWithItems,
41221 _swigc__p_wxCursor,
41222 _swigc__p_wxDC,
41223 _swigc__p_wxDCBrushChanger,
41224 _swigc__p_wxDCClipper,
41225 _swigc__p_wxDCOverlay,
41226 _swigc__p_wxDCPenChanger,
41227 _swigc__p_wxDCTextColourChanger,
41228 _swigc__p_wxDash,
41229 _swigc__p_wxDateEvent,
41230 _swigc__p_wxDisplayChangedEvent,
41231 _swigc__p_wxDropFilesEvent,
41232 _swigc__p_wxDuplexMode,
41233 _swigc__p_wxEffects,
41234 _swigc__p_wxEncodingConverter,
41235 _swigc__p_wxEraseEvent,
41236 _swigc__p_wxEvent,
41237 _swigc__p_wxEvtHandler,
41238 _swigc__p_wxFSFile,
41239 _swigc__p_wxFileSystem,
41240 _swigc__p_wxFlexGridSizer,
41241 _swigc__p_wxFocusEvent,
41242 _swigc__p_wxFont,
41243 _swigc__p_wxFontList,
41244 _swigc__p_wxFontMapper,
41245 _swigc__p_wxGBSizerItem,
41246 _swigc__p_wxGCDC,
41247 _swigc__p_wxGDIObjListBase,
41248 _swigc__p_wxGDIObject,
41249 _swigc__p_wxGIFHandler,
41250 _swigc__p_wxGraphicsBrush,
41251 _swigc__p_wxGraphicsContext,
41252 _swigc__p_wxGraphicsFont,
41253 _swigc__p_wxGraphicsMatrix,
41254 _swigc__p_wxGraphicsObject,
41255 _swigc__p_wxGraphicsPath,
41256 _swigc__p_wxGraphicsPen,
41257 _swigc__p_wxGraphicsRenderer,
41258 _swigc__p_wxGridBagSizer,
41259 _swigc__p_wxGridSizer,
41260 _swigc__p_wxHeaderButtonParams,
41261 _swigc__p_wxICOHandler,
41262 _swigc__p_wxIcon,
41263 _swigc__p_wxIconBundle,
41264 _swigc__p_wxIconLocation,
41265 _swigc__p_wxIconizeEvent,
41266 _swigc__p_wxIdleEvent,
41267 _swigc__p_wxImage,
41268 _swigc__p_wxImageHandler,
41269 _swigc__p_wxImageList,
41270 _swigc__p_wxIndividualLayoutConstraint,
41271 _swigc__p_wxInitDialogEvent,
41272 _swigc__p_wxJPEGHandler,
41273 _swigc__p_wxKeyEvent,
41274 _swigc__p_wxLanguageInfo,
41275 _swigc__p_wxLayoutConstraints,
41276 _swigc__p_wxLocale,
41277 _swigc__p_wxMask,
41278 _swigc__p_wxMaximizeEvent,
41279 _swigc__p_wxMemoryDC,
41280 _swigc__p_wxMenu,
41281 _swigc__p_wxMenuBar,
41282 _swigc__p_wxMenuEvent,
41283 _swigc__p_wxMenuItem,
41284 _swigc__p_wxMetaFile,
41285 _swigc__p_wxMetaFileDC,
41286 _swigc__p_wxMirrorDC,
41287 _swigc__p_wxMouseCaptureChangedEvent,
41288 _swigc__p_wxMouseCaptureLostEvent,
41289 _swigc__p_wxMouseEvent,
41290 _swigc__p_wxMoveEvent,
41291 _swigc__p_wxNativeEncodingInfo,
41292 _swigc__p_wxNativeFontInfo,
41293 _swigc__p_wxNativePixelData,
41294 _swigc__p_wxNativePixelData_Accessor,
41295 _swigc__p_wxNavigationKeyEvent,
41296 _swigc__p_wxNcPaintEvent,
41297 _swigc__p_wxNotifyEvent,
41298 _swigc__p_wxObject,
41299 _swigc__p_wxOverlay,
41300 _swigc__p_wxPCXHandler,
41301 _swigc__p_wxPNGHandler,
41302 _swigc__p_wxPNMHandler,
41303 _swigc__p_wxPaintDC,
41304 _swigc__p_wxPaintEvent,
41305 _swigc__p_wxPalette,
41306 _swigc__p_wxPaletteChangedEvent,
41307 _swigc__p_wxPaperSize,
41308 _swigc__p_wxPen,
41309 _swigc__p_wxPenList,
41310 _swigc__p_wxPixelDataBase,
41311 _swigc__p_wxPoint,
41312 _swigc__p_wxPoint2D,
41313 _swigc__p_wxPoint2DDouble,
41314 _swigc__p_wxPostScriptDC,
41315 _swigc__p_wxPrintData,
41316 _swigc__p_wxPrinterDC,
41317 _swigc__p_wxPseudoDC,
41318 _swigc__p_wxPyApp,
41319 _swigc__p_wxPyCommandEvent,
41320 _swigc__p_wxPyEvent,
41321 _swigc__p_wxPyFontEnumerator,
41322 _swigc__p_wxPyImageHandler,
41323 _swigc__p_wxPyLocale,
41324 _swigc__p_wxPySizer,
41325 _swigc__p_wxPyValidator,
41326 _swigc__p_wxQueryNewPaletteEvent,
41327 _swigc__p_wxRect,
41328 _swigc__p_wxRect2DDouble,
41329 _swigc__p_wxRegion,
41330 _swigc__p_wxRegionIterator,
41331 _swigc__p_wxRendererNative,
41332 _swigc__p_wxRendererVersion,
41333 _swigc__p_wxScreenDC,
41334 _swigc__p_wxScrollEvent,
41335 _swigc__p_wxScrollWinEvent,
41336 _swigc__p_wxSetCursorEvent,
41337 _swigc__p_wxShowEvent,
41338 _swigc__p_wxSize,
41339 _swigc__p_wxSizeEvent,
41340 _swigc__p_wxSizer,
41341 _swigc__p_wxSizerItem,
41342 _swigc__p_wxSplitterRenderParams,
41343 _swigc__p_wxStaticBoxSizer,
41344 _swigc__p_wxStdDialogButtonSizer,
41345 _swigc__p_wxStockGDI,
41346 _swigc__p_wxString,
41347 _swigc__p_wxSysColourChangedEvent,
41348 _swigc__p_wxTGAHandler,
41349 _swigc__p_wxTIFFHandler,
41350 _swigc__p_wxUpdateUIEvent,
41351 _swigc__p_wxValidator,
41352 _swigc__p_wxWindow,
41353 _swigc__p_wxWindowCreateEvent,
41354 _swigc__p_wxWindowDC,
41355 _swigc__p_wxWindowDestroyEvent,
41356 _swigc__p_wxXPMHandler,
41357 };
41358
41359
41360 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
41361
41362 static swig_const_info swig_const_table[] = {
41363 {0, 0, 0, 0.0, 0, 0}};
41364
41365 #ifdef __cplusplus
41366 }
41367 #endif
41368 /* -----------------------------------------------------------------------------
41369 * Type initialization:
41370 * This problem is tough by the requirement that no dynamic
41371 * memory is used. Also, since swig_type_info structures store pointers to
41372 * swig_cast_info structures and swig_cast_info structures store pointers back
41373 * to swig_type_info structures, we need some lookup code at initialization.
41374 * The idea is that swig generates all the structures that are needed.
41375 * The runtime then collects these partially filled structures.
41376 * The SWIG_InitializeModule function takes these initial arrays out of
41377 * swig_module, and does all the lookup, filling in the swig_module.types
41378 * array with the correct data and linking the correct swig_cast_info
41379 * structures together.
41380 *
41381 * The generated swig_type_info structures are assigned staticly to an initial
41382 * array. We just loop though that array, and handle each type individually.
41383 * First we lookup if this type has been already loaded, and if so, use the
41384 * loaded structure instead of the generated one. Then we have to fill in the
41385 * cast linked list. The cast data is initially stored in something like a
41386 * two-dimensional array. Each row corresponds to a type (there are the same
41387 * number of rows as there are in the swig_type_initial array). Each entry in
41388 * a column is one of the swig_cast_info structures for that type.
41389 * The cast_initial array is actually an array of arrays, because each row has
41390 * a variable number of columns. So to actually build the cast linked list,
41391 * we find the array of casts associated with the type, and loop through it
41392 * adding the casts to the list. The one last trick we need to do is making
41393 * sure the type pointer in the swig_cast_info struct is correct.
41394 *
41395 * First off, we lookup the cast->type name to see if it is already loaded.
41396 * There are three cases to handle:
41397 * 1) If the cast->type has already been loaded AND the type we are adding
41398 * casting info to has not been loaded (it is in this module), THEN we
41399 * replace the cast->type pointer with the type pointer that has already
41400 * been loaded.
41401 * 2) If BOTH types (the one we are adding casting info to, and the
41402 * cast->type) are loaded, THEN the cast info has already been loaded by
41403 * the previous module so we just ignore it.
41404 * 3) Finally, if cast->type has not already been loaded, then we add that
41405 * swig_cast_info to the linked list (because the cast->type) pointer will
41406 * be correct.
41407 * ----------------------------------------------------------------------------- */
41408
41409 #ifdef __cplusplus
41410 extern "C" {
41411 #if 0
41412 } /* c-mode */
41413 #endif
41414 #endif
41415
41416 #if 0
41417 #define SWIGRUNTIME_DEBUG
41418 #endif
41419
41420 SWIGRUNTIME void
41421 SWIG_InitializeModule(void *clientdata) {
41422 size_t i;
41423 swig_module_info *module_head;
41424 static int init_run = 0;
41425
41426 clientdata = clientdata;
41427
41428 if (init_run) return;
41429 init_run = 1;
41430
41431 /* Initialize the swig_module */
41432 swig_module.type_initial = swig_type_initial;
41433 swig_module.cast_initial = swig_cast_initial;
41434
41435 /* Try and load any already created modules */
41436 module_head = SWIG_GetModule(clientdata);
41437 if (module_head) {
41438 swig_module.next = module_head->next;
41439 module_head->next = &swig_module;
41440 } else {
41441 /* This is the first module loaded */
41442 swig_module.next = &swig_module;
41443 SWIG_SetModule(clientdata, &swig_module);
41444 }
41445
41446 /* Now work on filling in swig_module.types */
41447 #ifdef SWIGRUNTIME_DEBUG
41448 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
41449 #endif
41450 for (i = 0; i < swig_module.size; ++i) {
41451 swig_type_info *type = 0;
41452 swig_type_info *ret;
41453 swig_cast_info *cast;
41454
41455 #ifdef SWIGRUNTIME_DEBUG
41456 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41457 #endif
41458
41459 /* if there is another module already loaded */
41460 if (swig_module.next != &swig_module) {
41461 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
41462 }
41463 if (type) {
41464 /* Overwrite clientdata field */
41465 #ifdef SWIGRUNTIME_DEBUG
41466 printf("SWIG_InitializeModule: found type %s\n", type->name);
41467 #endif
41468 if (swig_module.type_initial[i]->clientdata) {
41469 type->clientdata = swig_module.type_initial[i]->clientdata;
41470 #ifdef SWIGRUNTIME_DEBUG
41471 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
41472 #endif
41473 }
41474 } else {
41475 type = swig_module.type_initial[i];
41476 }
41477
41478 /* Insert casting types */
41479 cast = swig_module.cast_initial[i];
41480 while (cast->type) {
41481 /* Don't need to add information already in the list */
41482 ret = 0;
41483 #ifdef SWIGRUNTIME_DEBUG
41484 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
41485 #endif
41486 if (swig_module.next != &swig_module) {
41487 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
41488 #ifdef SWIGRUNTIME_DEBUG
41489 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
41490 #endif
41491 }
41492 if (ret) {
41493 if (type == swig_module.type_initial[i]) {
41494 #ifdef SWIGRUNTIME_DEBUG
41495 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
41496 #endif
41497 cast->type = ret;
41498 ret = 0;
41499 } else {
41500 /* Check for casting already in the list */
41501 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
41502 #ifdef SWIGRUNTIME_DEBUG
41503 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
41504 #endif
41505 if (!ocast) ret = 0;
41506 }
41507 }
41508
41509 if (!ret) {
41510 #ifdef SWIGRUNTIME_DEBUG
41511 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
41512 #endif
41513 if (type->cast) {
41514 type->cast->prev = cast;
41515 cast->next = type->cast;
41516 }
41517 type->cast = cast;
41518 }
41519 cast++;
41520 }
41521 /* Set entry in modules->types array equal to the type */
41522 swig_module.types[i] = type;
41523 }
41524 swig_module.types[i] = 0;
41525
41526 #ifdef SWIGRUNTIME_DEBUG
41527 printf("**** SWIG_InitializeModule: Cast List ******\n");
41528 for (i = 0; i < swig_module.size; ++i) {
41529 int j = 0;
41530 swig_cast_info *cast = swig_module.cast_initial[i];
41531 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41532 while (cast->type) {
41533 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
41534 cast++;
41535 ++j;
41536 }
41537 printf("---- Total casts: %d\n",j);
41538 }
41539 printf("**** SWIG_InitializeModule: Cast List ******\n");
41540 #endif
41541 }
41542
41543 /* This function will propagate the clientdata field of type to
41544 * any new swig_type_info structures that have been added into the list
41545 * of equivalent types. It is like calling
41546 * SWIG_TypeClientData(type, clientdata) a second time.
41547 */
41548 SWIGRUNTIME void
41549 SWIG_PropagateClientData(void) {
41550 size_t i;
41551 swig_cast_info *equiv;
41552 static int init_run = 0;
41553
41554 if (init_run) return;
41555 init_run = 1;
41556
41557 for (i = 0; i < swig_module.size; i++) {
41558 if (swig_module.types[i]->clientdata) {
41559 equiv = swig_module.types[i]->cast;
41560 while (equiv) {
41561 if (!equiv->converter) {
41562 if (equiv->type && !equiv->type->clientdata)
41563 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
41564 }
41565 equiv = equiv->next;
41566 }
41567 }
41568 }
41569 }
41570
41571 #ifdef __cplusplus
41572 #if 0
41573 {
41574 /* c-mode */
41575 #endif
41576 }
41577 #endif
41578
41579
41580
41581 #ifdef __cplusplus
41582 extern "C" {
41583 #endif
41584
41585 /* Python-specific SWIG API */
41586 #define SWIG_newvarlink() SWIG_Python_newvarlink()
41587 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
41588 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
41589
41590 /* -----------------------------------------------------------------------------
41591 * global variable support code.
41592 * ----------------------------------------------------------------------------- */
41593
41594 typedef struct swig_globalvar {
41595 char *name; /* Name of global variable */
41596 PyObject *(*get_attr)(void); /* Return the current value */
41597 int (*set_attr)(PyObject *); /* Set the value */
41598 struct swig_globalvar *next;
41599 } swig_globalvar;
41600
41601 typedef struct swig_varlinkobject {
41602 PyObject_HEAD
41603 swig_globalvar *vars;
41604 } swig_varlinkobject;
41605
41606 SWIGINTERN PyObject *
41607 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
41608 return PyString_FromString("<Swig global variables>");
41609 }
41610
41611 SWIGINTERN PyObject *
41612 swig_varlink_str(swig_varlinkobject *v) {
41613 PyObject *str = PyString_FromString("(");
41614 swig_globalvar *var;
41615 for (var = v->vars; var; var=var->next) {
41616 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
41617 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
41618 }
41619 PyString_ConcatAndDel(&str,PyString_FromString(")"));
41620 return str;
41621 }
41622
41623 SWIGINTERN int
41624 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
41625 PyObject *str = swig_varlink_str(v);
41626 fprintf(fp,"Swig global variables ");
41627 fprintf(fp,"%s\n", PyString_AsString(str));
41628 Py_DECREF(str);
41629 return 0;
41630 }
41631
41632 SWIGINTERN void
41633 swig_varlink_dealloc(swig_varlinkobject *v) {
41634 swig_globalvar *var = v->vars;
41635 while (var) {
41636 swig_globalvar *n = var->next;
41637 free(var->name);
41638 free(var);
41639 var = n;
41640 }
41641 }
41642
41643 SWIGINTERN PyObject *
41644 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
41645 PyObject *res = NULL;
41646 swig_globalvar *var = v->vars;
41647 while (var) {
41648 if (strcmp(var->name,n) == 0) {
41649 res = (*var->get_attr)();
41650 break;
41651 }
41652 var = var->next;
41653 }
41654 if (res == NULL && !PyErr_Occurred()) {
41655 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
41656 }
41657 return res;
41658 }
41659
41660 SWIGINTERN int
41661 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
41662 int res = 1;
41663 swig_globalvar *var = v->vars;
41664 while (var) {
41665 if (strcmp(var->name,n) == 0) {
41666 res = (*var->set_attr)(p);
41667 break;
41668 }
41669 var = var->next;
41670 }
41671 if (res == 1 && !PyErr_Occurred()) {
41672 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
41673 }
41674 return res;
41675 }
41676
41677 SWIGINTERN PyTypeObject*
41678 swig_varlink_type(void) {
41679 static char varlink__doc__[] = "Swig var link object";
41680 static PyTypeObject varlink_type;
41681 static int type_init = 0;
41682 if (!type_init) {
41683 const PyTypeObject tmp
41684 = {
41685 PyObject_HEAD_INIT(NULL)
41686 0, /* Number of items in variable part (ob_size) */
41687 (char *)"swigvarlink", /* Type name (tp_name) */
41688 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
41689 0, /* Itemsize (tp_itemsize) */
41690 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
41691 (printfunc) swig_varlink_print, /* Print (tp_print) */
41692 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
41693 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
41694 0, /* tp_compare */
41695 (reprfunc) swig_varlink_repr, /* tp_repr */
41696 0, /* tp_as_number */
41697 0, /* tp_as_sequence */
41698 0, /* tp_as_mapping */
41699 0, /* tp_hash */
41700 0, /* tp_call */
41701 (reprfunc)swig_varlink_str, /* tp_str */
41702 0, /* tp_getattro */
41703 0, /* tp_setattro */
41704 0, /* tp_as_buffer */
41705 0, /* tp_flags */
41706 varlink__doc__, /* tp_doc */
41707 0, /* tp_traverse */
41708 0, /* tp_clear */
41709 0, /* tp_richcompare */
41710 0, /* tp_weaklistoffset */
41711 #if PY_VERSION_HEX >= 0x02020000
41712 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
41713 #endif
41714 #if PY_VERSION_HEX >= 0x02030000
41715 0, /* tp_del */
41716 #endif
41717 #ifdef COUNT_ALLOCS
41718 0,0,0,0 /* tp_alloc -> tp_next */
41719 #endif
41720 };
41721 varlink_type = tmp;
41722 varlink_type.ob_type = &PyType_Type;
41723 type_init = 1;
41724 }
41725 return &varlink_type;
41726 }
41727
41728 /* Create a variable linking object for use later */
41729 SWIGINTERN PyObject *
41730 SWIG_Python_newvarlink(void) {
41731 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
41732 if (result) {
41733 result->vars = 0;
41734 }
41735 return ((PyObject*) result);
41736 }
41737
41738 SWIGINTERN void
41739 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
41740 swig_varlinkobject *v = (swig_varlinkobject *) p;
41741 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
41742 if (gv) {
41743 size_t size = strlen(name)+1;
41744 gv->name = (char *)malloc(size);
41745 if (gv->name) {
41746 strncpy(gv->name,name,size);
41747 gv->get_attr = get_attr;
41748 gv->set_attr = set_attr;
41749 gv->next = v->vars;
41750 }
41751 }
41752 v->vars = gv;
41753 }
41754
41755 SWIGINTERN PyObject *
41756 SWIG_globals() {
41757 static PyObject *_SWIG_globals = 0;
41758 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
41759 return _SWIG_globals;
41760 }
41761
41762 /* -----------------------------------------------------------------------------
41763 * constants/methods manipulation
41764 * ----------------------------------------------------------------------------- */
41765
41766 /* Install Constants */
41767 SWIGINTERN void
41768 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
41769 PyObject *obj = 0;
41770 size_t i;
41771 for (i = 0; constants[i].type; ++i) {
41772 switch(constants[i].type) {
41773 case SWIG_PY_POINTER:
41774 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
41775 break;
41776 case SWIG_PY_BINARY:
41777 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
41778 break;
41779 default:
41780 obj = 0;
41781 break;
41782 }
41783 if (obj) {
41784 PyDict_SetItemString(d, constants[i].name, obj);
41785 Py_DECREF(obj);
41786 }
41787 }
41788 }
41789
41790 /* -----------------------------------------------------------------------------*/
41791 /* Fix SwigMethods to carry the callback ptrs when needed */
41792 /* -----------------------------------------------------------------------------*/
41793
41794 SWIGINTERN void
41795 SWIG_Python_FixMethods(PyMethodDef *methods,
41796 swig_const_info *const_table,
41797 swig_type_info **types,
41798 swig_type_info **types_initial) {
41799 size_t i;
41800 for (i = 0; methods[i].ml_name; ++i) {
41801 const char *c = methods[i].ml_doc;
41802 if (c && (c = strstr(c, "swig_ptr: "))) {
41803 int j;
41804 swig_const_info *ci = 0;
41805 const char *name = c + 10;
41806 for (j = 0; const_table[j].type; ++j) {
41807 if (strncmp(const_table[j].name, name,
41808 strlen(const_table[j].name)) == 0) {
41809 ci = &(const_table[j]);
41810 break;
41811 }
41812 }
41813 if (ci) {
41814 size_t shift = (ci->ptype) - types;
41815 swig_type_info *ty = types_initial[shift];
41816 size_t ldoc = (c - methods[i].ml_doc);
41817 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
41818 char *ndoc = (char*)malloc(ldoc + lptr + 10);
41819 if (ndoc) {
41820 char *buff = ndoc;
41821 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
41822 if (ptr) {
41823 strncpy(buff, methods[i].ml_doc, ldoc);
41824 buff += ldoc;
41825 strncpy(buff, "swig_ptr: ", 10);
41826 buff += 10;
41827 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
41828 methods[i].ml_doc = ndoc;
41829 }
41830 }
41831 }
41832 }
41833 }
41834 }
41835
41836 #ifdef __cplusplus
41837 }
41838 #endif
41839
41840 /* -----------------------------------------------------------------------------*
41841 * Partial Init method
41842 * -----------------------------------------------------------------------------*/
41843
41844 #ifdef __cplusplus
41845 extern "C"
41846 #endif
41847 SWIGEXPORT void SWIG_init(void) {
41848 PyObject *m, *d;
41849
41850 /* Fix SwigMethods to carry the callback ptrs when needed */
41851 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
41852
41853 m = Py_InitModule((char *) SWIG_name, SwigMethods);
41854 d = PyModule_GetDict(m);
41855
41856 SWIG_InitializeModule(0);
41857 SWIG_InstallConstants(d,swig_const_table);
41858
41859
41860 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
41861 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
41862 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
41863 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
41864 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
41865 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
41866 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
41867 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
41868 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
41869 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
41870 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
41871 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
41872 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
41873 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
41874 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
41875 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
41876 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
41877 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
41878 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
41879 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
41880 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
41881 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
41882 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
41883 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
41884 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
41885 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
41886 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
41887 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
41888 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
41889 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
41890 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
41891 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
41892 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
41893 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
41894 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
41895 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
41896 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
41897 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
41898 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
41899 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
41900 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
41901 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
41902 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
41903 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
41904 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
41905 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
41906 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
41907 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
41908 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
41909 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
41910 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
41911 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
41912 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
41913 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
41914 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
41915 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
41916 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
41917 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
41918 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
41919 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
41920 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
41921 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
41922 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
41923 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
41924 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
41925 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
41926 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
41927 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
41928 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
41929 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
41930 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
41931 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
41932 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
41933 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
41934 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
41935 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
41936 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
41937 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
41938 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
41939 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
41940 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
41941 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
41942 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
41943 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
41944 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
41945 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
41946 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
41947 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
41948 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
41949 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
41950 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
41951 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
41952 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
41953 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
41954 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
41955 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
41956 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
41957 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
41958 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
41959 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
41960 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
41961 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
41962 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
41963 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
41964 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
41965 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
41966 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
41967 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
41968 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
41969 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
41970 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
41971 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
41972 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
41973 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
41974 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
41975 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
41976 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
41977 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41978 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41979 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41980 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41981 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41982 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41983 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41984 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41985 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41986 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41987 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41988 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41989 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41990 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41991 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41992
41993 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41994
41995 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41996 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41997 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41998 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41999 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
42000 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
42001 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
42002 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
42003 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
42004 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
42005 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
42006 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
42007 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
42008 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
42009 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
42010 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
42011 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
42012 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
42013 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
42014 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
42015 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
42016 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
42017 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
42018 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
42019 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
42020 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
42021 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
42022 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
42023 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
42024 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
42025 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
42026 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
42027 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
42028 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
42029 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
42030 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
42031 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
42032 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
42033 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
42034 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
42035 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
42036 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
42037 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
42038 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
42039 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
42040 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
42041 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
42042 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
42043 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
42044 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
42045 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
42046 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
42047 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
42048 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
42049 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
42050 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
42051 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
42052 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
42053 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
42054 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
42055 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
42056 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
42057 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
42058 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
42059 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
42060 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
42061 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
42062 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
42063 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
42064 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
42065 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
42066 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
42067 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
42068 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
42069 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
42070 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
42071 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
42072 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
42073 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
42074 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
42075 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
42076 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
42077 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
42078 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
42079 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
42080 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
42081 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
42082 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
42083 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
42084 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
42085 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
42086 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
42087 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
42088 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
42089 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
42090 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
42091 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
42092 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
42093 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
42094 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
42095 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
42096 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
42097 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
42098 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
42099 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
42100 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
42101 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
42102 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
42103 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
42104 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
42105 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
42106 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
42107 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
42108 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
42109 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
42110 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
42111 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
42112 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
42113 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
42114 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
42115 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
42116 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
42117 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
42118 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
42119 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
42120 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
42121 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
42122 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
42123 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
42124 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
42125 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
42126 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
42127 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
42128 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
42129 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
42130 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
42131 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
42132 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
42133 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
42134 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
42135 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
42136 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
42137 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
42138 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
42139 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
42140 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
42141 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
42142 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
42143 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
42144 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
42145 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
42146 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
42147 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
42148 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
42149 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
42150 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
42151 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
42152 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
42153 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
42154 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
42155 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
42156 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
42157 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
42158 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
42159 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
42160 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
42161 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
42162 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
42163 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
42164 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
42165 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
42166 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
42167 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
42168 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
42169 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
42170 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
42171 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
42172 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
42173 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
42174 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
42175 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
42176 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
42177 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
42178 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
42179 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
42180 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
42181 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
42182 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
42183 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
42184 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
42185 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
42186 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
42187 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
42188 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
42189 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
42190 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
42191 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
42192 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
42193 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
42194 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
42195 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
42196 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
42197 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
42198 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
42199 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
42200 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
42201 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
42202 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
42203 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
42204 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
42205 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
42206 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
42207 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
42208 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
42209 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
42210 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
42211 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
42212 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
42213 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
42214 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
42215 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
42216 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
42217 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
42218 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
42219 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
42220 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
42221 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
42222 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
42223 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
42224 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
42225 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
42226 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
42227 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
42228 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
42229 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
42230 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
42231 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
42232 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
42233 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
42234 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
42235 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
42236 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
42237 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
42238 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
42239 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
42240 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
42241 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
42242 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
42243 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
42244 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
42245 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
42246 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
42247 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
42248 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
42249 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
42250 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
42251 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
42252 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
42253 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
42254 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
42255 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
42256 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
42257 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
42258 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
42259 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
42260 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
42261 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
42262 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
42263 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
42264 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
42265 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
42266 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
42267 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
42268 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
42269 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
42270 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
42271 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
42272 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
42273 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
42274 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
42275 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
42276 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
42277 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
42278 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
42279 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
42280 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
42281 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
42282 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
42283 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
42284 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
42285 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
42286 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
42287 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
42288 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
42289 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
42290 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
42291 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
42292 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
42293 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
42294 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
42295 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
42296 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
42297 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
42298 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
42299 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
42300 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
42301 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
42302 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
42303 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
42304 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
42305 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
42306 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
42307 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
42308 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
42309 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
42310 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
42311 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
42312 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
42313 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
42314 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
42315 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
42316 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
42317 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
42318 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
42319
42320 // Work around a chicken/egg problem in drawlist.cpp
42321 wxPyDrawList_SetAPIPtr();
42322
42323 }
42324