]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
36361c4db3408d914ef6defc77bec8808c40abe9
[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
3620 class wxGraphicsObject : public wxObject
3621 {
3622 public :
3623 wxGraphicsObject( wxGraphicsRenderer* ) {
3624 PyErr_SetString(PyExc_NotImplementedError,
3625 "wx.GraphicsObject is not available on this platform.");
3626 }
3627 wxGraphicsObject( const wxGraphicsObject& ) {}
3628 virtual ~wxGraphicsObject() {}
3629 bool IsNull() const { return false; }
3630 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3631 } ;
3632
3633
3634
3635 class wxGraphicsPen : public wxGraphicsObject
3636 {
3637 wxGraphicsPen() {}
3638 virtual ~wxGraphicsPen() {}
3639 } ;
3640 wxGraphicsPen wxNullGraphicsPen;
3641
3642
3643
3644 class wxGraphicsBrush : public wxGraphicsObject
3645 {
3646 public :
3647 wxGraphicsBrush() {}
3648 virtual ~wxGraphicsBrush() {}
3649 } ;
3650 wxGraphicsBrush wxNullGraphicsBrush;
3651
3652
3653
3654 class wxGraphicsFont : public wxGraphicsObject
3655 {
3656 public :
3657 wxGraphicsFont() {}
3658 virtual ~wxGraphicsFont() {}
3659 } ;
3660 wxGraphicsFont wxNullGraphicsFont;
3661
3662
3663
3664 class wxGraphicsPath : public wxGraphicsObject
3665 {
3666 public :
3667 wxGraphicsPath(wxGraphicsRenderer* ) {
3668 PyErr_SetString(PyExc_NotImplementedError,
3669 "wx.GraphicsPath is not available on this platform.");
3670 }
3671 virtual ~wxGraphicsPath() {}
3672
3673 void MoveToPoint( wxDouble, wxDouble ) {}
3674 void MoveToPoint( const wxPoint2DDouble& ) {}
3675 void AddLineToPoint( wxDouble, wxDouble ) {}
3676 void AddLineToPoint( const wxPoint2DDouble& ) {}
3677 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3678 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3679 void AddPath( const wxGraphicsPath* ) {}
3680 void CloseSubpath() {}
3681 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3682 wxPoint2DDouble GetCurrentPoint() { reutrn wxPoint2D(0,0); }
3683 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3684 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
3685
3686 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3687 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3688 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3689 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3690
3691 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3692 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3693 void * GetNativePath() const { return NULL; }
3694 void UnGetNativePath(void *) {}
3695 void Transform( wxGraphicsMatrix* ) {}
3696 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) {}
3697 wxRect2D GetBox() { return wxRect2D(0,0,0,0); }
3698
3699 bool Contains( wxDouble , wxDouble , int ) { return false; }
3700 bool Contains( const wxPoint2DDouble& , int ) { return false; }
3701 };
3702 wxGraphicsPath wxNullGraphicsPath;
3703
3704
3705 class wxGraphicsMatrix : public wxGraphicsObject
3706 {
3707 public :
3708 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3709 PyErr_SetString(PyExc_NotImplementedError,
3710 "wx.GraphicsMatrix is not available on this platform.");
3711 }
3712 virtual ~wxGraphicsMatrix() {}
3713 virtual void Concat( const wxGraphicsMatrix * ) {}
3714 virtual void Copy( const wxGraphicsMatrix * ) {}
3715 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3716 wxDouble , wxDouble ) {}
3717 virtual void Invert() {}
3718 virtual bool IsEqual( const wxGraphicsMatrix* t) const {}
3719 virtual bool IsIdentity() { return false; }
3720 virtual void Translate( wxDouble , wxDouble ) {}
3721 virtual void Scale( wxDouble , wxDouble ) {}
3722 virtual void Rotate( wxDouble ) {}
3723 virtual void TransformPoint( wxDouble *, wxDouble * ) {}
3724 virtual void TransformDistance( wxDouble *, wxDouble * ) {}
3725 virtual void * GetNativeMatrix() const { return NULL; }
3726 };
3727 wxGraphicsMatrix wxNullGraphicsMatrix;
3728
3729
3730 class wxGraphicsContext : public wxGraphicsObject
3731 {
3732 public:
3733
3734 wxGraphicsContext(wxGraphicsRenderer* ) {
3735 PyErr_SetString(PyExc_NotImplementedError,
3736 "wx.GraphicsContext is not available on this platform.");
3737 }
3738
3739 virtual ~wxGraphicsContext() {}
3740
3741 static wxGraphicsContext* Create( const wxWindowDC& ) {
3742 PyErr_SetString(PyExc_NotImplementedError,
3743 "wx.GraphicsContext is not available on this platform.");
3744 }
3745
3746 static wxGraphicsContext* CreateFromNative( void * ) {
3747 PyErr_SetString(PyExc_NotImplementedError,
3748 "wx.GraphicsContext is not available on this platform.");
3749 }
3750
3751 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3752 PyErr_SetString(PyExc_NotImplementedError,
3753 "wx.GraphicsContext is not available on this platform.");
3754 }
3755
3756 static wxGraphicsContext* Create( wxWindow* ) {
3757 PyErr_SetString(PyExc_NotImplementedError,
3758 "wx.GraphicsContext is not available on this platform.");
3759 }
3760
3761 wxGraphicsPath * CreatePath() { return NULL; }
3762
3763 virtual wxGraphicsPen CreatePen(const wxPen& ) { return NULL; }
3764
3765 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return NULL; }
3766
3767 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3768 const wxColour&, const wxColour&) { return NULL; }
3769
3770 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3771 wxDouble xc, wxDouble yc, wxDouble radius,
3772 const wxColour &oColor, const wxColour &cColor) { return NULL; }
3773
3774 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return NULL; }
3775
3776 virtual wxGraphicsMatrix* CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3777 wxDouble, wxDouble) { return NULL; }
3778
3779 virtual void PushState() {}
3780 virtual void PopState() {}
3781 virtual void Clip( const wxRegion & ) {}
3782 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3783 virtual void ResetClip() {}
3784 virtual void * GetNativeContext() { return NULL; }
3785 virtual void Translate( wxDouble , wxDouble ) {}
3786 virtual void Scale( wxDouble , wxDouble ) {}
3787 virtual void Rotate( wxDouble ) {}
3788 virtual void ConcatTransform( const wxGraphicsMatrix* ) {}
3789 virtual void SetTransform( const wxGraphicsMatrix* ) {}
3790 virtual void GetTransform( wxGraphicsMatrix* ) {}
3791
3792 virtual void SetPen( const wxGraphicsPen& ) {}
3793 void SetPen( const wxPen& ) {}
3794
3795 virtual void SetBrush( const wxGraphicsBrush& ) {}
3796 void SetBrush( const wxBrush& ) {}
3797
3798 virtual void SetFont( const wxGraphicsFont& ) {}
3799 void SetFont( const wxFont&, const wxColour& ) {}
3800
3801 virtual void StrokePath( const wxGraphicsPath * ) {}
3802 virtual void FillPath( const wxGraphicsPath *, int ) {}
3803 virtual void DrawPath( const wxGraphicsPath *, int ) {}
3804
3805 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3806 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3807 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3808 wxDouble *, wxDouble * ) const {}
3809 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3810
3811 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3812 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3813
3814 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3815 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3816 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3817 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3818 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3819 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3820 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3821 virtual bool ShouldOffset() const { return false; }
3822 };
3823
3824
3825 class wxGraphicsRenderer : public wxObject
3826 {
3827 public :
3828 wxGraphicsRenderer() {
3829 PyErr_SetString(PyExc_NotImplementedError,
3830 "wx.GraphicsRenderer is not available on this platform.");
3831 }
3832
3833 virtual ~wxGraphicsRenderer() {}
3834
3835 static wxGraphicsRenderer* GetDefaultRenderer(
3836 PyErr_SetString(PyExc_NotImplementedError,
3837 "wx.GraphicsRenderer is not available on this platform.");
3838 );
3839
3840 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3841 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3842 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3843 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3844
3845 virtual wxGraphicsPath * CreatePath() { return NULL; }
3846
3847 virtual wxGraphicsMatrix * CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3848 wxDouble , wxDouble ) { return NULL; }
3849
3850 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGaphicsPen; }
3851 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGaphicsBrush; }
3852 virtual wxGraphicsBrush CreateLinearGradientBrush(xDouble , wxDouble , wxDouble , wxDouble ,
3853 const wxColour&, const wxColour&) { return wxNullGaphicsBrush; }
3854 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3855 const wxColour &, const wxColour &) { return wxNullGaphicsBrush; }
3856 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGaphicsFont; }
3857 };
3858
3859
3860
3861 class wxGCDC: public wxWindowDC
3862 {
3863 public:
3864 wxGCDC(const wxWindowDC&) {
3865 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3866 PyErr_SetString(PyExc_NotImplementedError,
3867 "wxGCDC is not available on this platform.");
3868 wxPyEndBlockThreads(blocked);
3869 }
3870
3871 wxGCDC(const wxWindow*) {
3872 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3873 PyErr_SetString(PyExc_NotImplementedError,
3874 "wxGCDC is not available on this platform.");
3875 wxPyEndBlockThreads(blocked);
3876 }
3877
3878 wxGCDC() {
3879 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3880 PyErr_SetString(PyExc_NotImplementedError,
3881 "wxGCDC is not available on this platform.");
3882 wxPyEndBlockThreads(blocked);
3883 }
3884
3885 virtual ~wxGCDC() {}
3886
3887 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3888 void SetGraphicsContext( wxGraphicsContext* ) {}
3889 };
3890
3891 #endif
3892
3893 SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3894 if ( !backgroundBrush.IsNull() )
3895 self->DrawText(str, x, y, backgroundBrush);
3896 else
3897 self->DrawText(str, x, y);
3898 }
3899 SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3900 if ( !backgroundBrush.IsNull() )
3901 self->DrawText(str, x, y, angle, backgroundBrush);
3902 else
3903 self->DrawText(str, x, y, angle);
3904 }
3905 SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3906 wxDouble width = 0.0,
3907 height = 0.0;
3908 self->GetTextExtent(text, &width, &height, NULL, NULL);
3909 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3910 PyObject* rv = PyTuple_New(2);
3911 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3912 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3913 return rv;
3914 }
3915 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3916 wxArrayDouble widths;
3917 self->GetPartialTextExtents(text, widths);
3918 return widths;
3919 }
3920 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3921 size_t c1, c2, count;
3922 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3923 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3924
3925 if ( beginP != NULL && endP != NULL )
3926 {
3927 count = wxMin(c1, c2);
3928 self->StrokeLines(count, beginP, endP);
3929 }
3930 delete [] beginP;
3931 delete [] endP;
3932 }
3933
3934 #include "wx/dcgraph.h"
3935
3936
3937 #include <wx/overlay.h>
3938
3939
3940
3941 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3942 self->AddColour(name, wxColour(red, green, blue));
3943 }
3944
3945 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3946 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3947 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3948 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3949
3950
3951 #include <wx/effects.h>
3952
3953
3954 #include "wx/renderer.h"
3955
3956
3957 SWIGINTERNINLINE PyObject*
3958 SWIG_From_bool (bool value)
3959 {
3960 return PyBool_FromLong(value ? 1 : 0);
3961 }
3962
3963
3964 #include "wx/wxPython/pseudodc.h"
3965
3966 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3967 wxRect rect;
3968 self->GetIdBounds(id, rect);
3969 return rect;
3970 }
3971 #ifdef __cplusplus
3972 extern "C" {
3973 #endif
3974 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3975 PyObject *resultobj = 0;
3976 wxGDIObject *result = 0 ;
3977
3978 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3979 {
3980 if (!wxPyCheckForApp()) SWIG_fail;
3981 PyThreadState* __tstate = wxPyBeginAllowThreads();
3982 result = (wxGDIObject *)new wxGDIObject();
3983 wxPyEndAllowThreads(__tstate);
3984 if (PyErr_Occurred()) SWIG_fail;
3985 }
3986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3987 return resultobj;
3988 fail:
3989 return NULL;
3990 }
3991
3992
3993 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3994 PyObject *resultobj = 0;
3995 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3996 void *argp1 = 0 ;
3997 int res1 = 0 ;
3998 PyObject *swig_obj[1] ;
3999
4000 if (!args) SWIG_fail;
4001 swig_obj[0] = args;
4002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4003 if (!SWIG_IsOK(res1)) {
4004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4005 }
4006 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4007 {
4008 PyThreadState* __tstate = wxPyBeginAllowThreads();
4009 delete arg1;
4010
4011 wxPyEndAllowThreads(__tstate);
4012 if (PyErr_Occurred()) SWIG_fail;
4013 }
4014 resultobj = SWIG_Py_Void();
4015 return resultobj;
4016 fail:
4017 return NULL;
4018 }
4019
4020
4021 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4022 PyObject *resultobj = 0;
4023 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4024 bool result;
4025 void *argp1 = 0 ;
4026 int res1 = 0 ;
4027 PyObject *swig_obj[1] ;
4028
4029 if (!args) SWIG_fail;
4030 swig_obj[0] = args;
4031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4032 if (!SWIG_IsOK(res1)) {
4033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4034 }
4035 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4036 {
4037 PyThreadState* __tstate = wxPyBeginAllowThreads();
4038 result = (bool)(arg1)->IsNull();
4039 wxPyEndAllowThreads(__tstate);
4040 if (PyErr_Occurred()) SWIG_fail;
4041 }
4042 {
4043 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4044 }
4045 return resultobj;
4046 fail:
4047 return NULL;
4048 }
4049
4050
4051 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4052 PyObject *obj;
4053 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4054 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4055 return SWIG_Py_Void();
4056 }
4057
4058 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4059 return SWIG_Python_InitShadowInstance(args);
4060 }
4061
4062 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4063 PyObject *resultobj = 0;
4064 byte arg1 = (byte) 0 ;
4065 byte arg2 = (byte) 0 ;
4066 byte arg3 = (byte) 0 ;
4067 byte arg4 = (byte) wxALPHA_OPAQUE ;
4068 wxColour *result = 0 ;
4069 unsigned char val1 ;
4070 int ecode1 = 0 ;
4071 unsigned char val2 ;
4072 int ecode2 = 0 ;
4073 unsigned char val3 ;
4074 int ecode3 = 0 ;
4075 unsigned char val4 ;
4076 int ecode4 = 0 ;
4077 PyObject * obj0 = 0 ;
4078 PyObject * obj1 = 0 ;
4079 PyObject * obj2 = 0 ;
4080 PyObject * obj3 = 0 ;
4081 char * kwnames[] = {
4082 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4083 };
4084
4085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4086 if (obj0) {
4087 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4088 if (!SWIG_IsOK(ecode1)) {
4089 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4090 }
4091 arg1 = static_cast< byte >(val1);
4092 }
4093 if (obj1) {
4094 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4095 if (!SWIG_IsOK(ecode2)) {
4096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4097 }
4098 arg2 = static_cast< byte >(val2);
4099 }
4100 if (obj2) {
4101 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4102 if (!SWIG_IsOK(ecode3)) {
4103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4104 }
4105 arg3 = static_cast< byte >(val3);
4106 }
4107 if (obj3) {
4108 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4109 if (!SWIG_IsOK(ecode4)) {
4110 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4111 }
4112 arg4 = static_cast< byte >(val4);
4113 }
4114 {
4115 PyThreadState* __tstate = wxPyBeginAllowThreads();
4116 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
4117 wxPyEndAllowThreads(__tstate);
4118 if (PyErr_Occurred()) SWIG_fail;
4119 }
4120 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4121 return resultobj;
4122 fail:
4123 return NULL;
4124 }
4125
4126
4127 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4128 PyObject *resultobj = 0;
4129 wxString *arg1 = 0 ;
4130 wxColour *result = 0 ;
4131 bool temp1 = false ;
4132 PyObject * obj0 = 0 ;
4133 char * kwnames[] = {
4134 (char *) "colorName", NULL
4135 };
4136
4137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4138 {
4139 arg1 = wxString_in_helper(obj0);
4140 if (arg1 == NULL) SWIG_fail;
4141 temp1 = true;
4142 }
4143 {
4144 if (!wxPyCheckForApp()) SWIG_fail;
4145 PyThreadState* __tstate = wxPyBeginAllowThreads();
4146 result = (wxColour *)new wxColour((wxString const &)*arg1);
4147 wxPyEndAllowThreads(__tstate);
4148 if (PyErr_Occurred()) SWIG_fail;
4149 }
4150 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4151 {
4152 if (temp1)
4153 delete arg1;
4154 }
4155 return resultobj;
4156 fail:
4157 {
4158 if (temp1)
4159 delete arg1;
4160 }
4161 return NULL;
4162 }
4163
4164
4165 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4166 PyObject *resultobj = 0;
4167 unsigned long arg1 ;
4168 wxColour *result = 0 ;
4169 unsigned long val1 ;
4170 int ecode1 = 0 ;
4171 PyObject * obj0 = 0 ;
4172 char * kwnames[] = {
4173 (char *) "colRGB", NULL
4174 };
4175
4176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4177 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4178 if (!SWIG_IsOK(ecode1)) {
4179 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4180 }
4181 arg1 = static_cast< unsigned long >(val1);
4182 {
4183 PyThreadState* __tstate = wxPyBeginAllowThreads();
4184 result = (wxColour *)new wxColour(arg1);
4185 wxPyEndAllowThreads(__tstate);
4186 if (PyErr_Occurred()) SWIG_fail;
4187 }
4188 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4189 return resultobj;
4190 fail:
4191 return NULL;
4192 }
4193
4194
4195 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4196 PyObject *resultobj = 0;
4197 wxColour *arg1 = (wxColour *) 0 ;
4198 void *argp1 = 0 ;
4199 int res1 = 0 ;
4200 PyObject *swig_obj[1] ;
4201
4202 if (!args) SWIG_fail;
4203 swig_obj[0] = args;
4204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4205 if (!SWIG_IsOK(res1)) {
4206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4207 }
4208 arg1 = reinterpret_cast< wxColour * >(argp1);
4209 {
4210 PyThreadState* __tstate = wxPyBeginAllowThreads();
4211 delete arg1;
4212
4213 wxPyEndAllowThreads(__tstate);
4214 if (PyErr_Occurred()) SWIG_fail;
4215 }
4216 resultobj = SWIG_Py_Void();
4217 return resultobj;
4218 fail:
4219 return NULL;
4220 }
4221
4222
4223 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4224 PyObject *resultobj = 0;
4225 wxColour *arg1 = (wxColour *) 0 ;
4226 byte result;
4227 void *argp1 = 0 ;
4228 int res1 = 0 ;
4229 PyObject *swig_obj[1] ;
4230
4231 if (!args) SWIG_fail;
4232 swig_obj[0] = args;
4233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4234 if (!SWIG_IsOK(res1)) {
4235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4236 }
4237 arg1 = reinterpret_cast< wxColour * >(argp1);
4238 {
4239 PyThreadState* __tstate = wxPyBeginAllowThreads();
4240 result = (byte)(arg1)->Red();
4241 wxPyEndAllowThreads(__tstate);
4242 if (PyErr_Occurred()) SWIG_fail;
4243 }
4244 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4245 return resultobj;
4246 fail:
4247 return NULL;
4248 }
4249
4250
4251 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4252 PyObject *resultobj = 0;
4253 wxColour *arg1 = (wxColour *) 0 ;
4254 byte result;
4255 void *argp1 = 0 ;
4256 int res1 = 0 ;
4257 PyObject *swig_obj[1] ;
4258
4259 if (!args) SWIG_fail;
4260 swig_obj[0] = args;
4261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4262 if (!SWIG_IsOK(res1)) {
4263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4264 }
4265 arg1 = reinterpret_cast< wxColour * >(argp1);
4266 {
4267 PyThreadState* __tstate = wxPyBeginAllowThreads();
4268 result = (byte)(arg1)->Green();
4269 wxPyEndAllowThreads(__tstate);
4270 if (PyErr_Occurred()) SWIG_fail;
4271 }
4272 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4273 return resultobj;
4274 fail:
4275 return NULL;
4276 }
4277
4278
4279 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4280 PyObject *resultobj = 0;
4281 wxColour *arg1 = (wxColour *) 0 ;
4282 byte result;
4283 void *argp1 = 0 ;
4284 int res1 = 0 ;
4285 PyObject *swig_obj[1] ;
4286
4287 if (!args) SWIG_fail;
4288 swig_obj[0] = args;
4289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4290 if (!SWIG_IsOK(res1)) {
4291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4292 }
4293 arg1 = reinterpret_cast< wxColour * >(argp1);
4294 {
4295 PyThreadState* __tstate = wxPyBeginAllowThreads();
4296 result = (byte)(arg1)->Blue();
4297 wxPyEndAllowThreads(__tstate);
4298 if (PyErr_Occurred()) SWIG_fail;
4299 }
4300 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4301 return resultobj;
4302 fail:
4303 return NULL;
4304 }
4305
4306
4307 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4308 PyObject *resultobj = 0;
4309 wxColour *arg1 = (wxColour *) 0 ;
4310 byte result;
4311 void *argp1 = 0 ;
4312 int res1 = 0 ;
4313 PyObject *swig_obj[1] ;
4314
4315 if (!args) SWIG_fail;
4316 swig_obj[0] = args;
4317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4318 if (!SWIG_IsOK(res1)) {
4319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4320 }
4321 arg1 = reinterpret_cast< wxColour * >(argp1);
4322 {
4323 PyThreadState* __tstate = wxPyBeginAllowThreads();
4324 result = (byte)(arg1)->Alpha();
4325 wxPyEndAllowThreads(__tstate);
4326 if (PyErr_Occurred()) SWIG_fail;
4327 }
4328 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4329 return resultobj;
4330 fail:
4331 return NULL;
4332 }
4333
4334
4335 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4336 PyObject *resultobj = 0;
4337 wxColour *arg1 = (wxColour *) 0 ;
4338 bool result;
4339 void *argp1 = 0 ;
4340 int res1 = 0 ;
4341 PyObject *swig_obj[1] ;
4342
4343 if (!args) SWIG_fail;
4344 swig_obj[0] = args;
4345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4346 if (!SWIG_IsOK(res1)) {
4347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4348 }
4349 arg1 = reinterpret_cast< wxColour * >(argp1);
4350 {
4351 PyThreadState* __tstate = wxPyBeginAllowThreads();
4352 result = (bool)(arg1)->IsOk();
4353 wxPyEndAllowThreads(__tstate);
4354 if (PyErr_Occurred()) SWIG_fail;
4355 }
4356 {
4357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4358 }
4359 return resultobj;
4360 fail:
4361 return NULL;
4362 }
4363
4364
4365 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4366 PyObject *resultobj = 0;
4367 wxColour *arg1 = (wxColour *) 0 ;
4368 byte arg2 ;
4369 byte arg3 ;
4370 byte arg4 ;
4371 byte arg5 = (byte) wxALPHA_OPAQUE ;
4372 void *argp1 = 0 ;
4373 int res1 = 0 ;
4374 unsigned char val2 ;
4375 int ecode2 = 0 ;
4376 unsigned char val3 ;
4377 int ecode3 = 0 ;
4378 unsigned char val4 ;
4379 int ecode4 = 0 ;
4380 unsigned char val5 ;
4381 int ecode5 = 0 ;
4382 PyObject * obj0 = 0 ;
4383 PyObject * obj1 = 0 ;
4384 PyObject * obj2 = 0 ;
4385 PyObject * obj3 = 0 ;
4386 PyObject * obj4 = 0 ;
4387 char * kwnames[] = {
4388 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4389 };
4390
4391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4393 if (!SWIG_IsOK(res1)) {
4394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4395 }
4396 arg1 = reinterpret_cast< wxColour * >(argp1);
4397 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4398 if (!SWIG_IsOK(ecode2)) {
4399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4400 }
4401 arg2 = static_cast< byte >(val2);
4402 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4403 if (!SWIG_IsOK(ecode3)) {
4404 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4405 }
4406 arg3 = static_cast< byte >(val3);
4407 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4408 if (!SWIG_IsOK(ecode4)) {
4409 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4410 }
4411 arg4 = static_cast< byte >(val4);
4412 if (obj4) {
4413 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4414 if (!SWIG_IsOK(ecode5)) {
4415 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4416 }
4417 arg5 = static_cast< byte >(val5);
4418 }
4419 {
4420 PyThreadState* __tstate = wxPyBeginAllowThreads();
4421 (arg1)->Set(arg2,arg3,arg4,arg5);
4422 wxPyEndAllowThreads(__tstate);
4423 if (PyErr_Occurred()) SWIG_fail;
4424 }
4425 resultobj = SWIG_Py_Void();
4426 return resultobj;
4427 fail:
4428 return NULL;
4429 }
4430
4431
4432 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4433 PyObject *resultobj = 0;
4434 wxColour *arg1 = (wxColour *) 0 ;
4435 unsigned long arg2 ;
4436 void *argp1 = 0 ;
4437 int res1 = 0 ;
4438 unsigned long val2 ;
4439 int ecode2 = 0 ;
4440 PyObject * obj0 = 0 ;
4441 PyObject * obj1 = 0 ;
4442 char * kwnames[] = {
4443 (char *) "self",(char *) "colRGB", NULL
4444 };
4445
4446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4448 if (!SWIG_IsOK(res1)) {
4449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4450 }
4451 arg1 = reinterpret_cast< wxColour * >(argp1);
4452 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4453 if (!SWIG_IsOK(ecode2)) {
4454 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4455 }
4456 arg2 = static_cast< unsigned long >(val2);
4457 {
4458 PyThreadState* __tstate = wxPyBeginAllowThreads();
4459 (arg1)->Set(arg2);
4460 wxPyEndAllowThreads(__tstate);
4461 if (PyErr_Occurred()) SWIG_fail;
4462 }
4463 resultobj = SWIG_Py_Void();
4464 return resultobj;
4465 fail:
4466 return NULL;
4467 }
4468
4469
4470 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4471 PyObject *resultobj = 0;
4472 wxColour *arg1 = (wxColour *) 0 ;
4473 wxString *arg2 = 0 ;
4474 void *argp1 = 0 ;
4475 int res1 = 0 ;
4476 bool temp2 = false ;
4477 PyObject * obj0 = 0 ;
4478 PyObject * obj1 = 0 ;
4479 char * kwnames[] = {
4480 (char *) "self",(char *) "colourName", NULL
4481 };
4482
4483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4485 if (!SWIG_IsOK(res1)) {
4486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4487 }
4488 arg1 = reinterpret_cast< wxColour * >(argp1);
4489 {
4490 arg2 = wxString_in_helper(obj1);
4491 if (arg2 == NULL) SWIG_fail;
4492 temp2 = true;
4493 }
4494 {
4495 PyThreadState* __tstate = wxPyBeginAllowThreads();
4496 (arg1)->Set((wxString const &)*arg2);
4497 wxPyEndAllowThreads(__tstate);
4498 if (PyErr_Occurred()) SWIG_fail;
4499 }
4500 resultobj = SWIG_Py_Void();
4501 {
4502 if (temp2)
4503 delete arg2;
4504 }
4505 return resultobj;
4506 fail:
4507 {
4508 if (temp2)
4509 delete arg2;
4510 }
4511 return NULL;
4512 }
4513
4514
4515 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4516 PyObject *resultobj = 0;
4517 wxColour *arg1 = (wxColour *) 0 ;
4518 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4519 wxString result;
4520 void *argp1 = 0 ;
4521 int res1 = 0 ;
4522 long val2 ;
4523 int ecode2 = 0 ;
4524 PyObject * obj0 = 0 ;
4525 PyObject * obj1 = 0 ;
4526 char * kwnames[] = {
4527 (char *) "self",(char *) "flags", NULL
4528 };
4529
4530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4532 if (!SWIG_IsOK(res1)) {
4533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4534 }
4535 arg1 = reinterpret_cast< wxColour * >(argp1);
4536 if (obj1) {
4537 ecode2 = SWIG_AsVal_long(obj1, &val2);
4538 if (!SWIG_IsOK(ecode2)) {
4539 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4540 }
4541 arg2 = static_cast< long >(val2);
4542 }
4543 {
4544 PyThreadState* __tstate = wxPyBeginAllowThreads();
4545 result = ((wxColour const *)arg1)->GetAsString(arg2);
4546 wxPyEndAllowThreads(__tstate);
4547 if (PyErr_Occurred()) SWIG_fail;
4548 }
4549 {
4550 #if wxUSE_UNICODE
4551 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4552 #else
4553 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4554 #endif
4555 }
4556 return resultobj;
4557 fail:
4558 return NULL;
4559 }
4560
4561
4562 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4563 PyObject *resultobj = 0;
4564 wxColour *arg1 = (wxColour *) 0 ;
4565 long result;
4566 void *argp1 = 0 ;
4567 int res1 = 0 ;
4568 PyObject *swig_obj[1] ;
4569
4570 if (!args) SWIG_fail;
4571 swig_obj[0] = args;
4572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4573 if (!SWIG_IsOK(res1)) {
4574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4575 }
4576 arg1 = reinterpret_cast< wxColour * >(argp1);
4577 {
4578 PyThreadState* __tstate = wxPyBeginAllowThreads();
4579 result = (long)((wxColour const *)arg1)->GetPixel();
4580 wxPyEndAllowThreads(__tstate);
4581 if (PyErr_Occurred()) SWIG_fail;
4582 }
4583 resultobj = SWIG_From_long(static_cast< long >(result));
4584 return resultobj;
4585 fail:
4586 return NULL;
4587 }
4588
4589
4590 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4591 PyObject *resultobj = 0;
4592 wxColour *arg1 = (wxColour *) 0 ;
4593 PyObject *arg2 = (PyObject *) 0 ;
4594 bool result;
4595 void *argp1 = 0 ;
4596 int res1 = 0 ;
4597 PyObject * obj0 = 0 ;
4598 PyObject * obj1 = 0 ;
4599 char * kwnames[] = {
4600 (char *) "self",(char *) "other", NULL
4601 };
4602
4603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4605 if (!SWIG_IsOK(res1)) {
4606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4607 }
4608 arg1 = reinterpret_cast< wxColour * >(argp1);
4609 arg2 = obj1;
4610 {
4611 result = (bool)wxColour___eq__(arg1,arg2);
4612 if (PyErr_Occurred()) SWIG_fail;
4613 }
4614 {
4615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4616 }
4617 return resultobj;
4618 fail:
4619 return NULL;
4620 }
4621
4622
4623 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4624 PyObject *resultobj = 0;
4625 wxColour *arg1 = (wxColour *) 0 ;
4626 PyObject *arg2 = (PyObject *) 0 ;
4627 bool result;
4628 void *argp1 = 0 ;
4629 int res1 = 0 ;
4630 PyObject * obj0 = 0 ;
4631 PyObject * obj1 = 0 ;
4632 char * kwnames[] = {
4633 (char *) "self",(char *) "other", NULL
4634 };
4635
4636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4638 if (!SWIG_IsOK(res1)) {
4639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4640 }
4641 arg1 = reinterpret_cast< wxColour * >(argp1);
4642 arg2 = obj1;
4643 {
4644 result = (bool)wxColour___ne__(arg1,arg2);
4645 if (PyErr_Occurred()) SWIG_fail;
4646 }
4647 {
4648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4649 }
4650 return resultobj;
4651 fail:
4652 return NULL;
4653 }
4654
4655
4656 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4657 PyObject *resultobj = 0;
4658 wxColour *arg1 = (wxColour *) 0 ;
4659 bool arg2 = (bool) false ;
4660 PyObject *result = 0 ;
4661 void *argp1 = 0 ;
4662 int res1 = 0 ;
4663 bool val2 ;
4664 int ecode2 = 0 ;
4665 PyObject * obj0 = 0 ;
4666 PyObject * obj1 = 0 ;
4667 char * kwnames[] = {
4668 (char *) "self",(char *) "includeAlpha", NULL
4669 };
4670
4671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4673 if (!SWIG_IsOK(res1)) {
4674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4675 }
4676 arg1 = reinterpret_cast< wxColour * >(argp1);
4677 if (obj1) {
4678 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4679 if (!SWIG_IsOK(ecode2)) {
4680 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4681 }
4682 arg2 = static_cast< bool >(val2);
4683 }
4684 {
4685 result = (PyObject *)wxColour_Get(arg1,arg2);
4686 if (PyErr_Occurred()) SWIG_fail;
4687 }
4688 resultobj = result;
4689 return resultobj;
4690 fail:
4691 return NULL;
4692 }
4693
4694
4695 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4696 PyObject *resultobj = 0;
4697 wxColour *arg1 = (wxColour *) 0 ;
4698 unsigned long result;
4699 void *argp1 = 0 ;
4700 int res1 = 0 ;
4701 PyObject *swig_obj[1] ;
4702
4703 if (!args) SWIG_fail;
4704 swig_obj[0] = args;
4705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4706 if (!SWIG_IsOK(res1)) {
4707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4708 }
4709 arg1 = reinterpret_cast< wxColour * >(argp1);
4710 {
4711 result = (unsigned long)wxColour_GetRGB(arg1);
4712 if (PyErr_Occurred()) SWIG_fail;
4713 }
4714 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4715 return resultobj;
4716 fail:
4717 return NULL;
4718 }
4719
4720
4721 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4722 PyObject *obj;
4723 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4724 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4725 return SWIG_Py_Void();
4726 }
4727
4728 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4729 return SWIG_Python_InitShadowInstance(args);
4730 }
4731
4732 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4733 PyObject *resultobj = 0;
4734 int arg1 ;
4735 unsigned char *arg2 = (unsigned char *) 0 ;
4736 unsigned char *arg3 = (unsigned char *) 0 ;
4737 unsigned char *arg4 = (unsigned char *) 0 ;
4738 wxPalette *result = 0 ;
4739 int val1 ;
4740 int ecode1 = 0 ;
4741 void *argp2 = 0 ;
4742 int res2 = 0 ;
4743 void *argp3 = 0 ;
4744 int res3 = 0 ;
4745 void *argp4 = 0 ;
4746 int res4 = 0 ;
4747 PyObject * obj0 = 0 ;
4748 PyObject * obj1 = 0 ;
4749 PyObject * obj2 = 0 ;
4750 PyObject * obj3 = 0 ;
4751 char * kwnames[] = {
4752 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4753 };
4754
4755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4756 ecode1 = SWIG_AsVal_int(obj0, &val1);
4757 if (!SWIG_IsOK(ecode1)) {
4758 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4759 }
4760 arg1 = static_cast< int >(val1);
4761 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4762 if (!SWIG_IsOK(res2)) {
4763 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4764 }
4765 arg2 = reinterpret_cast< unsigned char * >(argp2);
4766 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4767 if (!SWIG_IsOK(res3)) {
4768 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4769 }
4770 arg3 = reinterpret_cast< unsigned char * >(argp3);
4771 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4772 if (!SWIG_IsOK(res4)) {
4773 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4774 }
4775 arg4 = reinterpret_cast< unsigned char * >(argp4);
4776 {
4777 if (!wxPyCheckForApp()) SWIG_fail;
4778 PyThreadState* __tstate = wxPyBeginAllowThreads();
4779 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4780 wxPyEndAllowThreads(__tstate);
4781 if (PyErr_Occurred()) SWIG_fail;
4782 }
4783 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4784 return resultobj;
4785 fail:
4786 return NULL;
4787 }
4788
4789
4790 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4791 PyObject *resultobj = 0;
4792 wxPalette *arg1 = (wxPalette *) 0 ;
4793 void *argp1 = 0 ;
4794 int res1 = 0 ;
4795 PyObject *swig_obj[1] ;
4796
4797 if (!args) SWIG_fail;
4798 swig_obj[0] = args;
4799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4800 if (!SWIG_IsOK(res1)) {
4801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4802 }
4803 arg1 = reinterpret_cast< wxPalette * >(argp1);
4804 {
4805 PyThreadState* __tstate = wxPyBeginAllowThreads();
4806 delete arg1;
4807
4808 wxPyEndAllowThreads(__tstate);
4809 if (PyErr_Occurred()) SWIG_fail;
4810 }
4811 resultobj = SWIG_Py_Void();
4812 return resultobj;
4813 fail:
4814 return NULL;
4815 }
4816
4817
4818 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4819 PyObject *resultobj = 0;
4820 wxPalette *arg1 = (wxPalette *) 0 ;
4821 byte arg2 ;
4822 byte arg3 ;
4823 byte arg4 ;
4824 int result;
4825 void *argp1 = 0 ;
4826 int res1 = 0 ;
4827 unsigned char val2 ;
4828 int ecode2 = 0 ;
4829 unsigned char val3 ;
4830 int ecode3 = 0 ;
4831 unsigned char val4 ;
4832 int ecode4 = 0 ;
4833 PyObject * obj0 = 0 ;
4834 PyObject * obj1 = 0 ;
4835 PyObject * obj2 = 0 ;
4836 PyObject * obj3 = 0 ;
4837 char * kwnames[] = {
4838 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4839 };
4840
4841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4843 if (!SWIG_IsOK(res1)) {
4844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4845 }
4846 arg1 = reinterpret_cast< wxPalette * >(argp1);
4847 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4848 if (!SWIG_IsOK(ecode2)) {
4849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4850 }
4851 arg2 = static_cast< byte >(val2);
4852 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4853 if (!SWIG_IsOK(ecode3)) {
4854 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4855 }
4856 arg3 = static_cast< byte >(val3);
4857 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4858 if (!SWIG_IsOK(ecode4)) {
4859 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4860 }
4861 arg4 = static_cast< byte >(val4);
4862 {
4863 PyThreadState* __tstate = wxPyBeginAllowThreads();
4864 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4865 wxPyEndAllowThreads(__tstate);
4866 if (PyErr_Occurred()) SWIG_fail;
4867 }
4868 resultobj = SWIG_From_int(static_cast< int >(result));
4869 return resultobj;
4870 fail:
4871 return NULL;
4872 }
4873
4874
4875 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4876 PyObject *resultobj = 0;
4877 wxPalette *arg1 = (wxPalette *) 0 ;
4878 int arg2 ;
4879 byte *arg3 = (byte *) 0 ;
4880 byte *arg4 = (byte *) 0 ;
4881 byte *arg5 = (byte *) 0 ;
4882 bool result;
4883 void *argp1 = 0 ;
4884 int res1 = 0 ;
4885 int val2 ;
4886 int ecode2 = 0 ;
4887 byte temp3 ;
4888 int res3 = SWIG_TMPOBJ ;
4889 byte temp4 ;
4890 int res4 = SWIG_TMPOBJ ;
4891 byte temp5 ;
4892 int res5 = SWIG_TMPOBJ ;
4893 PyObject * obj0 = 0 ;
4894 PyObject * obj1 = 0 ;
4895 char * kwnames[] = {
4896 (char *) "self",(char *) "pixel", NULL
4897 };
4898
4899 arg3 = &temp3;
4900 arg4 = &temp4;
4901 arg5 = &temp5;
4902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4904 if (!SWIG_IsOK(res1)) {
4905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4906 }
4907 arg1 = reinterpret_cast< wxPalette * >(argp1);
4908 ecode2 = SWIG_AsVal_int(obj1, &val2);
4909 if (!SWIG_IsOK(ecode2)) {
4910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4911 }
4912 arg2 = static_cast< int >(val2);
4913 {
4914 PyThreadState* __tstate = wxPyBeginAllowThreads();
4915 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4916 wxPyEndAllowThreads(__tstate);
4917 if (PyErr_Occurred()) SWIG_fail;
4918 }
4919 {
4920 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4921 }
4922 if (SWIG_IsTmpObj(res3)) {
4923 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4924 } else {
4925 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4926 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4927 }
4928 if (SWIG_IsTmpObj(res4)) {
4929 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4930 } else {
4931 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4932 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4933 }
4934 if (SWIG_IsTmpObj(res5)) {
4935 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4936 } else {
4937 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4938 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4939 }
4940 return resultobj;
4941 fail:
4942 return NULL;
4943 }
4944
4945
4946 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4947 PyObject *resultobj = 0;
4948 wxPalette *arg1 = (wxPalette *) 0 ;
4949 int result;
4950 void *argp1 = 0 ;
4951 int res1 = 0 ;
4952 PyObject *swig_obj[1] ;
4953
4954 if (!args) SWIG_fail;
4955 swig_obj[0] = args;
4956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4957 if (!SWIG_IsOK(res1)) {
4958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4959 }
4960 arg1 = reinterpret_cast< wxPalette * >(argp1);
4961 {
4962 PyThreadState* __tstate = wxPyBeginAllowThreads();
4963 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4964 wxPyEndAllowThreads(__tstate);
4965 if (PyErr_Occurred()) SWIG_fail;
4966 }
4967 resultobj = SWIG_From_int(static_cast< int >(result));
4968 return resultobj;
4969 fail:
4970 return NULL;
4971 }
4972
4973
4974 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4975 PyObject *resultobj = 0;
4976 wxPalette *arg1 = (wxPalette *) 0 ;
4977 bool result;
4978 void *argp1 = 0 ;
4979 int res1 = 0 ;
4980 PyObject *swig_obj[1] ;
4981
4982 if (!args) SWIG_fail;
4983 swig_obj[0] = args;
4984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4985 if (!SWIG_IsOK(res1)) {
4986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
4987 }
4988 arg1 = reinterpret_cast< wxPalette * >(argp1);
4989 {
4990 PyThreadState* __tstate = wxPyBeginAllowThreads();
4991 result = (bool)(arg1)->IsOk();
4992 wxPyEndAllowThreads(__tstate);
4993 if (PyErr_Occurred()) SWIG_fail;
4994 }
4995 {
4996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4997 }
4998 return resultobj;
4999 fail:
5000 return NULL;
5001 }
5002
5003
5004 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5005 PyObject *obj;
5006 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5007 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5008 return SWIG_Py_Void();
5009 }
5010
5011 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5012 return SWIG_Python_InitShadowInstance(args);
5013 }
5014
5015 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5016 PyObject *resultobj = 0;
5017 wxColour *arg1 = 0 ;
5018 int arg2 = (int) 1 ;
5019 int arg3 = (int) wxSOLID ;
5020 wxPen *result = 0 ;
5021 wxColour temp1 ;
5022 int val2 ;
5023 int ecode2 = 0 ;
5024 int val3 ;
5025 int ecode3 = 0 ;
5026 PyObject * obj0 = 0 ;
5027 PyObject * obj1 = 0 ;
5028 PyObject * obj2 = 0 ;
5029 char * kwnames[] = {
5030 (char *) "colour",(char *) "width",(char *) "style", NULL
5031 };
5032
5033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5034 {
5035 arg1 = &temp1;
5036 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5037 }
5038 if (obj1) {
5039 ecode2 = SWIG_AsVal_int(obj1, &val2);
5040 if (!SWIG_IsOK(ecode2)) {
5041 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5042 }
5043 arg2 = static_cast< int >(val2);
5044 }
5045 if (obj2) {
5046 ecode3 = SWIG_AsVal_int(obj2, &val3);
5047 if (!SWIG_IsOK(ecode3)) {
5048 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5049 }
5050 arg3 = static_cast< int >(val3);
5051 }
5052 {
5053 if (!wxPyCheckForApp()) SWIG_fail;
5054 PyThreadState* __tstate = wxPyBeginAllowThreads();
5055 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5056 wxPyEndAllowThreads(__tstate);
5057 if (PyErr_Occurred()) SWIG_fail;
5058 }
5059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5060 return resultobj;
5061 fail:
5062 return NULL;
5063 }
5064
5065
5066 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5067 PyObject *resultobj = 0;
5068 wxPen *arg1 = (wxPen *) 0 ;
5069 void *argp1 = 0 ;
5070 int res1 = 0 ;
5071 PyObject *swig_obj[1] ;
5072
5073 if (!args) SWIG_fail;
5074 swig_obj[0] = args;
5075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5076 if (!SWIG_IsOK(res1)) {
5077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5078 }
5079 arg1 = reinterpret_cast< wxPen * >(argp1);
5080 {
5081 PyThreadState* __tstate = wxPyBeginAllowThreads();
5082 delete arg1;
5083
5084 wxPyEndAllowThreads(__tstate);
5085 if (PyErr_Occurred()) SWIG_fail;
5086 }
5087 resultobj = SWIG_Py_Void();
5088 return resultobj;
5089 fail:
5090 return NULL;
5091 }
5092
5093
5094 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5095 PyObject *resultobj = 0;
5096 wxPen *arg1 = (wxPen *) 0 ;
5097 int result;
5098 void *argp1 = 0 ;
5099 int res1 = 0 ;
5100 PyObject *swig_obj[1] ;
5101
5102 if (!args) SWIG_fail;
5103 swig_obj[0] = args;
5104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5105 if (!SWIG_IsOK(res1)) {
5106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5107 }
5108 arg1 = reinterpret_cast< wxPen * >(argp1);
5109 {
5110 PyThreadState* __tstate = wxPyBeginAllowThreads();
5111 result = (int)(arg1)->GetCap();
5112 wxPyEndAllowThreads(__tstate);
5113 if (PyErr_Occurred()) SWIG_fail;
5114 }
5115 resultobj = SWIG_From_int(static_cast< int >(result));
5116 return resultobj;
5117 fail:
5118 return NULL;
5119 }
5120
5121
5122 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5123 PyObject *resultobj = 0;
5124 wxPen *arg1 = (wxPen *) 0 ;
5125 wxColour result;
5126 void *argp1 = 0 ;
5127 int res1 = 0 ;
5128 PyObject *swig_obj[1] ;
5129
5130 if (!args) SWIG_fail;
5131 swig_obj[0] = args;
5132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5133 if (!SWIG_IsOK(res1)) {
5134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5135 }
5136 arg1 = reinterpret_cast< wxPen * >(argp1);
5137 {
5138 PyThreadState* __tstate = wxPyBeginAllowThreads();
5139 result = (arg1)->GetColour();
5140 wxPyEndAllowThreads(__tstate);
5141 if (PyErr_Occurred()) SWIG_fail;
5142 }
5143 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5144 return resultobj;
5145 fail:
5146 return NULL;
5147 }
5148
5149
5150 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5151 PyObject *resultobj = 0;
5152 wxPen *arg1 = (wxPen *) 0 ;
5153 int result;
5154 void *argp1 = 0 ;
5155 int res1 = 0 ;
5156 PyObject *swig_obj[1] ;
5157
5158 if (!args) SWIG_fail;
5159 swig_obj[0] = args;
5160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5161 if (!SWIG_IsOK(res1)) {
5162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5163 }
5164 arg1 = reinterpret_cast< wxPen * >(argp1);
5165 {
5166 PyThreadState* __tstate = wxPyBeginAllowThreads();
5167 result = (int)(arg1)->GetJoin();
5168 wxPyEndAllowThreads(__tstate);
5169 if (PyErr_Occurred()) SWIG_fail;
5170 }
5171 resultobj = SWIG_From_int(static_cast< int >(result));
5172 return resultobj;
5173 fail:
5174 return NULL;
5175 }
5176
5177
5178 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5179 PyObject *resultobj = 0;
5180 wxPen *arg1 = (wxPen *) 0 ;
5181 int result;
5182 void *argp1 = 0 ;
5183 int res1 = 0 ;
5184 PyObject *swig_obj[1] ;
5185
5186 if (!args) SWIG_fail;
5187 swig_obj[0] = args;
5188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5189 if (!SWIG_IsOK(res1)) {
5190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5191 }
5192 arg1 = reinterpret_cast< wxPen * >(argp1);
5193 {
5194 PyThreadState* __tstate = wxPyBeginAllowThreads();
5195 result = (int)(arg1)->GetStyle();
5196 wxPyEndAllowThreads(__tstate);
5197 if (PyErr_Occurred()) SWIG_fail;
5198 }
5199 resultobj = SWIG_From_int(static_cast< int >(result));
5200 return resultobj;
5201 fail:
5202 return NULL;
5203 }
5204
5205
5206 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5207 PyObject *resultobj = 0;
5208 wxPen *arg1 = (wxPen *) 0 ;
5209 int result;
5210 void *argp1 = 0 ;
5211 int res1 = 0 ;
5212 PyObject *swig_obj[1] ;
5213
5214 if (!args) SWIG_fail;
5215 swig_obj[0] = args;
5216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5217 if (!SWIG_IsOK(res1)) {
5218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5219 }
5220 arg1 = reinterpret_cast< wxPen * >(argp1);
5221 {
5222 PyThreadState* __tstate = wxPyBeginAllowThreads();
5223 result = (int)(arg1)->GetWidth();
5224 wxPyEndAllowThreads(__tstate);
5225 if (PyErr_Occurred()) SWIG_fail;
5226 }
5227 resultobj = SWIG_From_int(static_cast< int >(result));
5228 return resultobj;
5229 fail:
5230 return NULL;
5231 }
5232
5233
5234 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5235 PyObject *resultobj = 0;
5236 wxPen *arg1 = (wxPen *) 0 ;
5237 bool result;
5238 void *argp1 = 0 ;
5239 int res1 = 0 ;
5240 PyObject *swig_obj[1] ;
5241
5242 if (!args) SWIG_fail;
5243 swig_obj[0] = args;
5244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5245 if (!SWIG_IsOK(res1)) {
5246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
5247 }
5248 arg1 = reinterpret_cast< wxPen * >(argp1);
5249 {
5250 PyThreadState* __tstate = wxPyBeginAllowThreads();
5251 result = (bool)(arg1)->IsOk();
5252 wxPyEndAllowThreads(__tstate);
5253 if (PyErr_Occurred()) SWIG_fail;
5254 }
5255 {
5256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5257 }
5258 return resultobj;
5259 fail:
5260 return NULL;
5261 }
5262
5263
5264 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5265 PyObject *resultobj = 0;
5266 wxPen *arg1 = (wxPen *) 0 ;
5267 int arg2 ;
5268 void *argp1 = 0 ;
5269 int res1 = 0 ;
5270 int val2 ;
5271 int ecode2 = 0 ;
5272 PyObject * obj0 = 0 ;
5273 PyObject * obj1 = 0 ;
5274 char * kwnames[] = {
5275 (char *) "self",(char *) "cap_style", NULL
5276 };
5277
5278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5280 if (!SWIG_IsOK(res1)) {
5281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5282 }
5283 arg1 = reinterpret_cast< wxPen * >(argp1);
5284 ecode2 = SWIG_AsVal_int(obj1, &val2);
5285 if (!SWIG_IsOK(ecode2)) {
5286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5287 }
5288 arg2 = static_cast< int >(val2);
5289 {
5290 PyThreadState* __tstate = wxPyBeginAllowThreads();
5291 (arg1)->SetCap(arg2);
5292 wxPyEndAllowThreads(__tstate);
5293 if (PyErr_Occurred()) SWIG_fail;
5294 }
5295 resultobj = SWIG_Py_Void();
5296 return resultobj;
5297 fail:
5298 return NULL;
5299 }
5300
5301
5302 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5303 PyObject *resultobj = 0;
5304 wxPen *arg1 = (wxPen *) 0 ;
5305 wxColour *arg2 = 0 ;
5306 void *argp1 = 0 ;
5307 int res1 = 0 ;
5308 wxColour temp2 ;
5309 PyObject * obj0 = 0 ;
5310 PyObject * obj1 = 0 ;
5311 char * kwnames[] = {
5312 (char *) "self",(char *) "colour", NULL
5313 };
5314
5315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5317 if (!SWIG_IsOK(res1)) {
5318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5319 }
5320 arg1 = reinterpret_cast< wxPen * >(argp1);
5321 {
5322 arg2 = &temp2;
5323 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5324 }
5325 {
5326 PyThreadState* __tstate = wxPyBeginAllowThreads();
5327 (arg1)->SetColour(*arg2);
5328 wxPyEndAllowThreads(__tstate);
5329 if (PyErr_Occurred()) SWIG_fail;
5330 }
5331 resultobj = SWIG_Py_Void();
5332 return resultobj;
5333 fail:
5334 return NULL;
5335 }
5336
5337
5338 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5339 PyObject *resultobj = 0;
5340 wxPen *arg1 = (wxPen *) 0 ;
5341 int arg2 ;
5342 void *argp1 = 0 ;
5343 int res1 = 0 ;
5344 int val2 ;
5345 int ecode2 = 0 ;
5346 PyObject * obj0 = 0 ;
5347 PyObject * obj1 = 0 ;
5348 char * kwnames[] = {
5349 (char *) "self",(char *) "join_style", NULL
5350 };
5351
5352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5354 if (!SWIG_IsOK(res1)) {
5355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5356 }
5357 arg1 = reinterpret_cast< wxPen * >(argp1);
5358 ecode2 = SWIG_AsVal_int(obj1, &val2);
5359 if (!SWIG_IsOK(ecode2)) {
5360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5361 }
5362 arg2 = static_cast< int >(val2);
5363 {
5364 PyThreadState* __tstate = wxPyBeginAllowThreads();
5365 (arg1)->SetJoin(arg2);
5366 wxPyEndAllowThreads(__tstate);
5367 if (PyErr_Occurred()) SWIG_fail;
5368 }
5369 resultobj = SWIG_Py_Void();
5370 return resultobj;
5371 fail:
5372 return NULL;
5373 }
5374
5375
5376 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5377 PyObject *resultobj = 0;
5378 wxPen *arg1 = (wxPen *) 0 ;
5379 int arg2 ;
5380 void *argp1 = 0 ;
5381 int res1 = 0 ;
5382 int val2 ;
5383 int ecode2 = 0 ;
5384 PyObject * obj0 = 0 ;
5385 PyObject * obj1 = 0 ;
5386 char * kwnames[] = {
5387 (char *) "self",(char *) "style", NULL
5388 };
5389
5390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5392 if (!SWIG_IsOK(res1)) {
5393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5394 }
5395 arg1 = reinterpret_cast< wxPen * >(argp1);
5396 ecode2 = SWIG_AsVal_int(obj1, &val2);
5397 if (!SWIG_IsOK(ecode2)) {
5398 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5399 }
5400 arg2 = static_cast< int >(val2);
5401 {
5402 PyThreadState* __tstate = wxPyBeginAllowThreads();
5403 (arg1)->SetStyle(arg2);
5404 wxPyEndAllowThreads(__tstate);
5405 if (PyErr_Occurred()) SWIG_fail;
5406 }
5407 resultobj = SWIG_Py_Void();
5408 return resultobj;
5409 fail:
5410 return NULL;
5411 }
5412
5413
5414 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5415 PyObject *resultobj = 0;
5416 wxPen *arg1 = (wxPen *) 0 ;
5417 int arg2 ;
5418 void *argp1 = 0 ;
5419 int res1 = 0 ;
5420 int val2 ;
5421 int ecode2 = 0 ;
5422 PyObject * obj0 = 0 ;
5423 PyObject * obj1 = 0 ;
5424 char * kwnames[] = {
5425 (char *) "self",(char *) "width", NULL
5426 };
5427
5428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5430 if (!SWIG_IsOK(res1)) {
5431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5432 }
5433 arg1 = reinterpret_cast< wxPen * >(argp1);
5434 ecode2 = SWIG_AsVal_int(obj1, &val2);
5435 if (!SWIG_IsOK(ecode2)) {
5436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5437 }
5438 arg2 = static_cast< int >(val2);
5439 {
5440 PyThreadState* __tstate = wxPyBeginAllowThreads();
5441 (arg1)->SetWidth(arg2);
5442 wxPyEndAllowThreads(__tstate);
5443 if (PyErr_Occurred()) SWIG_fail;
5444 }
5445 resultobj = SWIG_Py_Void();
5446 return resultobj;
5447 fail:
5448 return NULL;
5449 }
5450
5451
5452 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5453 PyObject *resultobj = 0;
5454 wxPen *arg1 = (wxPen *) 0 ;
5455 int arg2 ;
5456 wxDash *arg3 = (wxDash *) 0 ;
5457 void *argp1 = 0 ;
5458 int res1 = 0 ;
5459 PyObject * obj0 = 0 ;
5460 PyObject * obj1 = 0 ;
5461 char * kwnames[] = {
5462 (char *) "self",(char *) "dashes", NULL
5463 };
5464
5465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5467 if (!SWIG_IsOK(res1)) {
5468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5469 }
5470 arg1 = reinterpret_cast< wxPen * >(argp1);
5471 {
5472 arg2 = PyList_Size(obj1);
5473 arg3 = (wxDash*)byte_LIST_helper(obj1);
5474 if (arg3 == NULL) SWIG_fail;
5475 }
5476 {
5477 PyThreadState* __tstate = wxPyBeginAllowThreads();
5478 (arg1)->SetDashes(arg2,arg3);
5479 wxPyEndAllowThreads(__tstate);
5480 if (PyErr_Occurred()) SWIG_fail;
5481 }
5482 resultobj = SWIG_Py_Void();
5483 {
5484 if (arg3) delete [] arg3;
5485 }
5486 return resultobj;
5487 fail:
5488 {
5489 if (arg3) delete [] arg3;
5490 }
5491 return NULL;
5492 }
5493
5494
5495 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5496 PyObject *resultobj = 0;
5497 wxPen *arg1 = (wxPen *) 0 ;
5498 PyObject *result = 0 ;
5499 void *argp1 = 0 ;
5500 int res1 = 0 ;
5501 PyObject *swig_obj[1] ;
5502
5503 if (!args) SWIG_fail;
5504 swig_obj[0] = args;
5505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5506 if (!SWIG_IsOK(res1)) {
5507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5508 }
5509 arg1 = reinterpret_cast< wxPen * >(argp1);
5510 {
5511 PyThreadState* __tstate = wxPyBeginAllowThreads();
5512 result = (PyObject *)wxPen_GetDashes(arg1);
5513 wxPyEndAllowThreads(__tstate);
5514 if (PyErr_Occurred()) SWIG_fail;
5515 }
5516 resultobj = result;
5517 return resultobj;
5518 fail:
5519 return NULL;
5520 }
5521
5522
5523 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5524 PyObject *resultobj = 0;
5525 wxPen *arg1 = (wxPen *) 0 ;
5526 PyObject *arg2 = (PyObject *) 0 ;
5527 PyObject *arg3 = (PyObject *) 0 ;
5528 void *argp1 = 0 ;
5529 int res1 = 0 ;
5530 PyObject * obj0 = 0 ;
5531 PyObject * obj1 = 0 ;
5532 PyObject * obj2 = 0 ;
5533 char * kwnames[] = {
5534 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5535 };
5536
5537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5539 if (!SWIG_IsOK(res1)) {
5540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5541 }
5542 arg1 = reinterpret_cast< wxPen * >(argp1);
5543 arg2 = obj1;
5544 arg3 = obj2;
5545 {
5546 PyThreadState* __tstate = wxPyBeginAllowThreads();
5547 wxPen__SetDashes(arg1,arg2,arg3);
5548 wxPyEndAllowThreads(__tstate);
5549 if (PyErr_Occurred()) SWIG_fail;
5550 }
5551 resultobj = SWIG_Py_Void();
5552 return resultobj;
5553 fail:
5554 return NULL;
5555 }
5556
5557
5558 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5559 PyObject *resultobj = 0;
5560 wxPen *arg1 = (wxPen *) 0 ;
5561 int result;
5562 void *argp1 = 0 ;
5563 int res1 = 0 ;
5564 PyObject *swig_obj[1] ;
5565
5566 if (!args) SWIG_fail;
5567 swig_obj[0] = args;
5568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5569 if (!SWIG_IsOK(res1)) {
5570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5571 }
5572 arg1 = reinterpret_cast< wxPen * >(argp1);
5573 {
5574 PyThreadState* __tstate = wxPyBeginAllowThreads();
5575 result = (int)((wxPen const *)arg1)->GetDashCount();
5576 wxPyEndAllowThreads(__tstate);
5577 if (PyErr_Occurred()) SWIG_fail;
5578 }
5579 resultobj = SWIG_From_int(static_cast< int >(result));
5580 return resultobj;
5581 fail:
5582 return NULL;
5583 }
5584
5585
5586 SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5587 PyObject *resultobj = 0;
5588 wxPen *arg1 = (wxPen *) 0 ;
5589 wxBitmap *result = 0 ;
5590 void *argp1 = 0 ;
5591 int res1 = 0 ;
5592 PyObject *swig_obj[1] ;
5593
5594 if (!args) SWIG_fail;
5595 swig_obj[0] = args;
5596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5597 if (!SWIG_IsOK(res1)) {
5598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5599 }
5600 arg1 = reinterpret_cast< wxPen * >(argp1);
5601 {
5602 PyThreadState* __tstate = wxPyBeginAllowThreads();
5603 result = (wxBitmap *)(arg1)->GetStipple();
5604 wxPyEndAllowThreads(__tstate);
5605 if (PyErr_Occurred()) SWIG_fail;
5606 }
5607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5608 return resultobj;
5609 fail:
5610 return NULL;
5611 }
5612
5613
5614 SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5615 PyObject *resultobj = 0;
5616 wxPen *arg1 = (wxPen *) 0 ;
5617 wxBitmap *arg2 = 0 ;
5618 void *argp1 = 0 ;
5619 int res1 = 0 ;
5620 void *argp2 = 0 ;
5621 int res2 = 0 ;
5622 PyObject * obj0 = 0 ;
5623 PyObject * obj1 = 0 ;
5624 char * kwnames[] = {
5625 (char *) "self",(char *) "stipple", NULL
5626 };
5627
5628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5630 if (!SWIG_IsOK(res1)) {
5631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5632 }
5633 arg1 = reinterpret_cast< wxPen * >(argp1);
5634 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
5635 if (!SWIG_IsOK(res2)) {
5636 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5637 }
5638 if (!argp2) {
5639 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5640 }
5641 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5642 {
5643 PyThreadState* __tstate = wxPyBeginAllowThreads();
5644 (arg1)->SetStipple(*arg2);
5645 wxPyEndAllowThreads(__tstate);
5646 if (PyErr_Occurred()) SWIG_fail;
5647 }
5648 resultobj = SWIG_Py_Void();
5649 return resultobj;
5650 fail:
5651 return NULL;
5652 }
5653
5654
5655 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5656 PyObject *resultobj = 0;
5657 wxPen *arg1 = (wxPen *) 0 ;
5658 wxPen *arg2 = (wxPen *) 0 ;
5659 bool result;
5660 void *argp1 = 0 ;
5661 int res1 = 0 ;
5662 void *argp2 = 0 ;
5663 int res2 = 0 ;
5664 PyObject * obj0 = 0 ;
5665 PyObject * obj1 = 0 ;
5666 char * kwnames[] = {
5667 (char *) "self",(char *) "other", NULL
5668 };
5669
5670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5672 if (!SWIG_IsOK(res1)) {
5673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5674 }
5675 arg1 = reinterpret_cast< wxPen * >(argp1);
5676 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5677 if (!SWIG_IsOK(res2)) {
5678 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5679 }
5680 arg2 = reinterpret_cast< wxPen * >(argp2);
5681 {
5682 PyThreadState* __tstate = wxPyBeginAllowThreads();
5683 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5684 wxPyEndAllowThreads(__tstate);
5685 if (PyErr_Occurred()) SWIG_fail;
5686 }
5687 {
5688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5689 }
5690 return resultobj;
5691 fail:
5692 return NULL;
5693 }
5694
5695
5696 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5697 PyObject *resultobj = 0;
5698 wxPen *arg1 = (wxPen *) 0 ;
5699 wxPen *arg2 = (wxPen *) 0 ;
5700 bool result;
5701 void *argp1 = 0 ;
5702 int res1 = 0 ;
5703 void *argp2 = 0 ;
5704 int res2 = 0 ;
5705 PyObject * obj0 = 0 ;
5706 PyObject * obj1 = 0 ;
5707 char * kwnames[] = {
5708 (char *) "self",(char *) "other", NULL
5709 };
5710
5711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5713 if (!SWIG_IsOK(res1)) {
5714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5715 }
5716 arg1 = reinterpret_cast< wxPen * >(argp1);
5717 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5718 if (!SWIG_IsOK(res2)) {
5719 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5720 }
5721 arg2 = reinterpret_cast< wxPen * >(argp2);
5722 {
5723 PyThreadState* __tstate = wxPyBeginAllowThreads();
5724 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5725 wxPyEndAllowThreads(__tstate);
5726 if (PyErr_Occurred()) SWIG_fail;
5727 }
5728 {
5729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5730 }
5731 return resultobj;
5732 fail:
5733 return NULL;
5734 }
5735
5736
5737 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5738 PyObject *obj;
5739 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5740 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5741 return SWIG_Py_Void();
5742 }
5743
5744 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5745 return SWIG_Python_InitShadowInstance(args);
5746 }
5747
5748 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5749 PyObject *resultobj = 0;
5750 wxColour *arg1 = 0 ;
5751 int arg2 = (int) wxSOLID ;
5752 wxBrush *result = 0 ;
5753 wxColour temp1 ;
5754 int val2 ;
5755 int ecode2 = 0 ;
5756 PyObject * obj0 = 0 ;
5757 PyObject * obj1 = 0 ;
5758 char * kwnames[] = {
5759 (char *) "colour",(char *) "style", NULL
5760 };
5761
5762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5763 {
5764 arg1 = &temp1;
5765 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5766 }
5767 if (obj1) {
5768 ecode2 = SWIG_AsVal_int(obj1, &val2);
5769 if (!SWIG_IsOK(ecode2)) {
5770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5771 }
5772 arg2 = static_cast< int >(val2);
5773 }
5774 {
5775 if (!wxPyCheckForApp()) SWIG_fail;
5776 PyThreadState* __tstate = wxPyBeginAllowThreads();
5777 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5778 wxPyEndAllowThreads(__tstate);
5779 if (PyErr_Occurred()) SWIG_fail;
5780 }
5781 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5782 return resultobj;
5783 fail:
5784 return NULL;
5785 }
5786
5787
5788 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5789 PyObject *resultobj = 0;
5790 wxBitmap *arg1 = 0 ;
5791 wxBrush *result = 0 ;
5792 void *argp1 = 0 ;
5793 int res1 = 0 ;
5794 PyObject * obj0 = 0 ;
5795 char * kwnames[] = {
5796 (char *) "stippleBitmap", NULL
5797 };
5798
5799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5800 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5801 if (!SWIG_IsOK(res1)) {
5802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5803 }
5804 if (!argp1) {
5805 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5806 }
5807 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5808 {
5809 if (!wxPyCheckForApp()) SWIG_fail;
5810 PyThreadState* __tstate = wxPyBeginAllowThreads();
5811 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5812 wxPyEndAllowThreads(__tstate);
5813 if (PyErr_Occurred()) SWIG_fail;
5814 }
5815 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5816 return resultobj;
5817 fail:
5818 return NULL;
5819 }
5820
5821
5822 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5823 PyObject *resultobj = 0;
5824 wxBrush *arg1 = (wxBrush *) 0 ;
5825 void *argp1 = 0 ;
5826 int res1 = 0 ;
5827 PyObject *swig_obj[1] ;
5828
5829 if (!args) SWIG_fail;
5830 swig_obj[0] = args;
5831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5832 if (!SWIG_IsOK(res1)) {
5833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5834 }
5835 arg1 = reinterpret_cast< wxBrush * >(argp1);
5836 {
5837 PyThreadState* __tstate = wxPyBeginAllowThreads();
5838 delete arg1;
5839
5840 wxPyEndAllowThreads(__tstate);
5841 if (PyErr_Occurred()) SWIG_fail;
5842 }
5843 resultobj = SWIG_Py_Void();
5844 return resultobj;
5845 fail:
5846 return NULL;
5847 }
5848
5849
5850 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5851 PyObject *resultobj = 0;
5852 wxBrush *arg1 = (wxBrush *) 0 ;
5853 wxColour *arg2 = 0 ;
5854 void *argp1 = 0 ;
5855 int res1 = 0 ;
5856 wxColour temp2 ;
5857 PyObject * obj0 = 0 ;
5858 PyObject * obj1 = 0 ;
5859 char * kwnames[] = {
5860 (char *) "self",(char *) "col", NULL
5861 };
5862
5863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5865 if (!SWIG_IsOK(res1)) {
5866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5867 }
5868 arg1 = reinterpret_cast< wxBrush * >(argp1);
5869 {
5870 arg2 = &temp2;
5871 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5872 }
5873 {
5874 PyThreadState* __tstate = wxPyBeginAllowThreads();
5875 (arg1)->SetColour((wxColour const &)*arg2);
5876 wxPyEndAllowThreads(__tstate);
5877 if (PyErr_Occurred()) SWIG_fail;
5878 }
5879 resultobj = SWIG_Py_Void();
5880 return resultobj;
5881 fail:
5882 return NULL;
5883 }
5884
5885
5886 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5887 PyObject *resultobj = 0;
5888 wxBrush *arg1 = (wxBrush *) 0 ;
5889 int arg2 ;
5890 void *argp1 = 0 ;
5891 int res1 = 0 ;
5892 int val2 ;
5893 int ecode2 = 0 ;
5894 PyObject * obj0 = 0 ;
5895 PyObject * obj1 = 0 ;
5896 char * kwnames[] = {
5897 (char *) "self",(char *) "style", NULL
5898 };
5899
5900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5902 if (!SWIG_IsOK(res1)) {
5903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5904 }
5905 arg1 = reinterpret_cast< wxBrush * >(argp1);
5906 ecode2 = SWIG_AsVal_int(obj1, &val2);
5907 if (!SWIG_IsOK(ecode2)) {
5908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5909 }
5910 arg2 = static_cast< int >(val2);
5911 {
5912 PyThreadState* __tstate = wxPyBeginAllowThreads();
5913 (arg1)->SetStyle(arg2);
5914 wxPyEndAllowThreads(__tstate);
5915 if (PyErr_Occurred()) SWIG_fail;
5916 }
5917 resultobj = SWIG_Py_Void();
5918 return resultobj;
5919 fail:
5920 return NULL;
5921 }
5922
5923
5924 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5925 PyObject *resultobj = 0;
5926 wxBrush *arg1 = (wxBrush *) 0 ;
5927 wxBitmap *arg2 = 0 ;
5928 void *argp1 = 0 ;
5929 int res1 = 0 ;
5930 void *argp2 = 0 ;
5931 int res2 = 0 ;
5932 PyObject * obj0 = 0 ;
5933 PyObject * obj1 = 0 ;
5934 char * kwnames[] = {
5935 (char *) "self",(char *) "stipple", NULL
5936 };
5937
5938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5940 if (!SWIG_IsOK(res1)) {
5941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5942 }
5943 arg1 = reinterpret_cast< wxBrush * >(argp1);
5944 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5945 if (!SWIG_IsOK(res2)) {
5946 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5947 }
5948 if (!argp2) {
5949 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5950 }
5951 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5952 {
5953 PyThreadState* __tstate = wxPyBeginAllowThreads();
5954 (arg1)->SetStipple((wxBitmap const &)*arg2);
5955 wxPyEndAllowThreads(__tstate);
5956 if (PyErr_Occurred()) SWIG_fail;
5957 }
5958 resultobj = SWIG_Py_Void();
5959 return resultobj;
5960 fail:
5961 return NULL;
5962 }
5963
5964
5965 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5966 PyObject *resultobj = 0;
5967 wxBrush *arg1 = (wxBrush *) 0 ;
5968 wxColour result;
5969 void *argp1 = 0 ;
5970 int res1 = 0 ;
5971 PyObject *swig_obj[1] ;
5972
5973 if (!args) SWIG_fail;
5974 swig_obj[0] = args;
5975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5976 if (!SWIG_IsOK(res1)) {
5977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5978 }
5979 arg1 = reinterpret_cast< wxBrush * >(argp1);
5980 {
5981 PyThreadState* __tstate = wxPyBeginAllowThreads();
5982 result = ((wxBrush const *)arg1)->GetColour();
5983 wxPyEndAllowThreads(__tstate);
5984 if (PyErr_Occurred()) SWIG_fail;
5985 }
5986 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5987 return resultobj;
5988 fail:
5989 return NULL;
5990 }
5991
5992
5993 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5994 PyObject *resultobj = 0;
5995 wxBrush *arg1 = (wxBrush *) 0 ;
5996 int result;
5997 void *argp1 = 0 ;
5998 int res1 = 0 ;
5999 PyObject *swig_obj[1] ;
6000
6001 if (!args) SWIG_fail;
6002 swig_obj[0] = args;
6003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6004 if (!SWIG_IsOK(res1)) {
6005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
6006 }
6007 arg1 = reinterpret_cast< wxBrush * >(argp1);
6008 {
6009 PyThreadState* __tstate = wxPyBeginAllowThreads();
6010 result = (int)((wxBrush const *)arg1)->GetStyle();
6011 wxPyEndAllowThreads(__tstate);
6012 if (PyErr_Occurred()) SWIG_fail;
6013 }
6014 resultobj = SWIG_From_int(static_cast< int >(result));
6015 return resultobj;
6016 fail:
6017 return NULL;
6018 }
6019
6020
6021 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6022 PyObject *resultobj = 0;
6023 wxBrush *arg1 = (wxBrush *) 0 ;
6024 wxBitmap *result = 0 ;
6025 void *argp1 = 0 ;
6026 int res1 = 0 ;
6027 PyObject *swig_obj[1] ;
6028
6029 if (!args) SWIG_fail;
6030 swig_obj[0] = args;
6031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6032 if (!SWIG_IsOK(res1)) {
6033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
6034 }
6035 arg1 = reinterpret_cast< wxBrush * >(argp1);
6036 {
6037 PyThreadState* __tstate = wxPyBeginAllowThreads();
6038 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
6039 wxPyEndAllowThreads(__tstate);
6040 if (PyErr_Occurred()) SWIG_fail;
6041 }
6042 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
6043 return resultobj;
6044 fail:
6045 return NULL;
6046 }
6047
6048
6049 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6050 PyObject *resultobj = 0;
6051 wxBrush *arg1 = (wxBrush *) 0 ;
6052 bool result;
6053 void *argp1 = 0 ;
6054 int res1 = 0 ;
6055 PyObject *swig_obj[1] ;
6056
6057 if (!args) SWIG_fail;
6058 swig_obj[0] = args;
6059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6060 if (!SWIG_IsOK(res1)) {
6061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
6062 }
6063 arg1 = reinterpret_cast< wxBrush * >(argp1);
6064 {
6065 PyThreadState* __tstate = wxPyBeginAllowThreads();
6066 result = (bool)((wxBrush const *)arg1)->IsHatch();
6067 wxPyEndAllowThreads(__tstate);
6068 if (PyErr_Occurred()) SWIG_fail;
6069 }
6070 {
6071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6072 }
6073 return resultobj;
6074 fail:
6075 return NULL;
6076 }
6077
6078
6079 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6080 PyObject *resultobj = 0;
6081 wxBrush *arg1 = (wxBrush *) 0 ;
6082 bool result;
6083 void *argp1 = 0 ;
6084 int res1 = 0 ;
6085 PyObject *swig_obj[1] ;
6086
6087 if (!args) SWIG_fail;
6088 swig_obj[0] = args;
6089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6090 if (!SWIG_IsOK(res1)) {
6091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
6092 }
6093 arg1 = reinterpret_cast< wxBrush * >(argp1);
6094 {
6095 PyThreadState* __tstate = wxPyBeginAllowThreads();
6096 result = (bool)(arg1)->IsOk();
6097 wxPyEndAllowThreads(__tstate);
6098 if (PyErr_Occurred()) SWIG_fail;
6099 }
6100 {
6101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6102 }
6103 return resultobj;
6104 fail:
6105 return NULL;
6106 }
6107
6108
6109 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6110 PyObject *obj;
6111 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6112 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6113 return SWIG_Py_Void();
6114 }
6115
6116 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6117 return SWIG_Python_InitShadowInstance(args);
6118 }
6119
6120 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6121 PyObject *resultobj = 0;
6122 wxString *arg1 = 0 ;
6123 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6124 wxBitmap *result = 0 ;
6125 bool temp1 = false ;
6126 int val2 ;
6127 int ecode2 = 0 ;
6128 PyObject * obj0 = 0 ;
6129 PyObject * obj1 = 0 ;
6130 char * kwnames[] = {
6131 (char *) "name",(char *) "type", NULL
6132 };
6133
6134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6135 {
6136 arg1 = wxString_in_helper(obj0);
6137 if (arg1 == NULL) SWIG_fail;
6138 temp1 = true;
6139 }
6140 if (obj1) {
6141 ecode2 = SWIG_AsVal_int(obj1, &val2);
6142 if (!SWIG_IsOK(ecode2)) {
6143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6144 }
6145 arg2 = static_cast< wxBitmapType >(val2);
6146 }
6147 {
6148 if (!wxPyCheckForApp()) SWIG_fail;
6149 PyThreadState* __tstate = wxPyBeginAllowThreads();
6150 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6151 wxPyEndAllowThreads(__tstate);
6152 if (PyErr_Occurred()) SWIG_fail;
6153 }
6154 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6155 {
6156 if (temp1)
6157 delete arg1;
6158 }
6159 return resultobj;
6160 fail:
6161 {
6162 if (temp1)
6163 delete arg1;
6164 }
6165 return NULL;
6166 }
6167
6168
6169 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6170 PyObject *resultobj = 0;
6171 wxBitmap *arg1 = (wxBitmap *) 0 ;
6172 void *argp1 = 0 ;
6173 int res1 = 0 ;
6174 PyObject *swig_obj[1] ;
6175
6176 if (!args) SWIG_fail;
6177 swig_obj[0] = args;
6178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6179 if (!SWIG_IsOK(res1)) {
6180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6181 }
6182 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6183 {
6184 delete arg1;
6185
6186 if (PyErr_Occurred()) SWIG_fail;
6187 }
6188 resultobj = SWIG_Py_Void();
6189 return resultobj;
6190 fail:
6191 return NULL;
6192 }
6193
6194
6195 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6196 PyObject *resultobj = 0;
6197 int arg1 ;
6198 int arg2 ;
6199 int arg3 = (int) -1 ;
6200 wxBitmap *result = 0 ;
6201 int val1 ;
6202 int ecode1 = 0 ;
6203 int val2 ;
6204 int ecode2 = 0 ;
6205 int val3 ;
6206 int ecode3 = 0 ;
6207 PyObject * obj0 = 0 ;
6208 PyObject * obj1 = 0 ;
6209 PyObject * obj2 = 0 ;
6210 char * kwnames[] = {
6211 (char *) "width",(char *) "height",(char *) "depth", NULL
6212 };
6213
6214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6215 ecode1 = SWIG_AsVal_int(obj0, &val1);
6216 if (!SWIG_IsOK(ecode1)) {
6217 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6218 }
6219 arg1 = static_cast< int >(val1);
6220 ecode2 = SWIG_AsVal_int(obj1, &val2);
6221 if (!SWIG_IsOK(ecode2)) {
6222 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6223 }
6224 arg2 = static_cast< int >(val2);
6225 if (obj2) {
6226 ecode3 = SWIG_AsVal_int(obj2, &val3);
6227 if (!SWIG_IsOK(ecode3)) {
6228 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6229 }
6230 arg3 = static_cast< int >(val3);
6231 }
6232 {
6233 if (!wxPyCheckForApp()) SWIG_fail;
6234 PyThreadState* __tstate = wxPyBeginAllowThreads();
6235 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6236 wxPyEndAllowThreads(__tstate);
6237 if (PyErr_Occurred()) SWIG_fail;
6238 }
6239 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6240 return resultobj;
6241 fail:
6242 return NULL;
6243 }
6244
6245
6246 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6247 PyObject *resultobj = 0;
6248 wxIcon *arg1 = 0 ;
6249 wxBitmap *result = 0 ;
6250 void *argp1 = 0 ;
6251 int res1 = 0 ;
6252 PyObject * obj0 = 0 ;
6253 char * kwnames[] = {
6254 (char *) "icon", NULL
6255 };
6256
6257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6258 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6259 if (!SWIG_IsOK(res1)) {
6260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6261 }
6262 if (!argp1) {
6263 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6264 }
6265 arg1 = reinterpret_cast< wxIcon * >(argp1);
6266 {
6267 if (!wxPyCheckForApp()) SWIG_fail;
6268 PyThreadState* __tstate = wxPyBeginAllowThreads();
6269 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6270 wxPyEndAllowThreads(__tstate);
6271 if (PyErr_Occurred()) SWIG_fail;
6272 }
6273 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6274 return resultobj;
6275 fail:
6276 return NULL;
6277 }
6278
6279
6280 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6281 PyObject *resultobj = 0;
6282 wxImage *arg1 = 0 ;
6283 int arg2 = (int) -1 ;
6284 wxBitmap *result = 0 ;
6285 void *argp1 = 0 ;
6286 int res1 = 0 ;
6287 int val2 ;
6288 int ecode2 = 0 ;
6289 PyObject * obj0 = 0 ;
6290 PyObject * obj1 = 0 ;
6291 char * kwnames[] = {
6292 (char *) "image",(char *) "depth", NULL
6293 };
6294
6295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6296 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6297 if (!SWIG_IsOK(res1)) {
6298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6299 }
6300 if (!argp1) {
6301 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6302 }
6303 arg1 = reinterpret_cast< wxImage * >(argp1);
6304 if (obj1) {
6305 ecode2 = SWIG_AsVal_int(obj1, &val2);
6306 if (!SWIG_IsOK(ecode2)) {
6307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6308 }
6309 arg2 = static_cast< int >(val2);
6310 }
6311 {
6312 if (!wxPyCheckForApp()) SWIG_fail;
6313 PyThreadState* __tstate = wxPyBeginAllowThreads();
6314 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6315 wxPyEndAllowThreads(__tstate);
6316 if (PyErr_Occurred()) SWIG_fail;
6317 }
6318 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6319 return resultobj;
6320 fail:
6321 return NULL;
6322 }
6323
6324
6325 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6326 PyObject *resultobj = 0;
6327 PyObject *arg1 = (PyObject *) 0 ;
6328 wxBitmap *result = 0 ;
6329 PyObject * obj0 = 0 ;
6330 char * kwnames[] = {
6331 (char *) "listOfStrings", NULL
6332 };
6333
6334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6335 arg1 = obj0;
6336 {
6337 if (!wxPyCheckForApp()) SWIG_fail;
6338 PyThreadState* __tstate = wxPyBeginAllowThreads();
6339 result = (wxBitmap *)new_wxBitmap(arg1);
6340 wxPyEndAllowThreads(__tstate);
6341 if (PyErr_Occurred()) SWIG_fail;
6342 }
6343 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6344 return resultobj;
6345 fail:
6346 return NULL;
6347 }
6348
6349
6350 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6351 PyObject *resultobj = 0;
6352 PyObject *arg1 = (PyObject *) 0 ;
6353 int arg2 ;
6354 int arg3 ;
6355 int arg4 = (int) 1 ;
6356 wxBitmap *result = 0 ;
6357 int val2 ;
6358 int ecode2 = 0 ;
6359 int val3 ;
6360 int ecode3 = 0 ;
6361 int val4 ;
6362 int ecode4 = 0 ;
6363 PyObject * obj0 = 0 ;
6364 PyObject * obj1 = 0 ;
6365 PyObject * obj2 = 0 ;
6366 PyObject * obj3 = 0 ;
6367 char * kwnames[] = {
6368 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6369 };
6370
6371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6372 arg1 = obj0;
6373 ecode2 = SWIG_AsVal_int(obj1, &val2);
6374 if (!SWIG_IsOK(ecode2)) {
6375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6376 }
6377 arg2 = static_cast< int >(val2);
6378 ecode3 = SWIG_AsVal_int(obj2, &val3);
6379 if (!SWIG_IsOK(ecode3)) {
6380 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6381 }
6382 arg3 = static_cast< int >(val3);
6383 if (obj3) {
6384 ecode4 = SWIG_AsVal_int(obj3, &val4);
6385 if (!SWIG_IsOK(ecode4)) {
6386 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6387 }
6388 arg4 = static_cast< int >(val4);
6389 }
6390 {
6391 if (!wxPyCheckForApp()) SWIG_fail;
6392 PyThreadState* __tstate = wxPyBeginAllowThreads();
6393 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6394 wxPyEndAllowThreads(__tstate);
6395 if (PyErr_Occurred()) SWIG_fail;
6396 }
6397 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6398 return resultobj;
6399 fail:
6400 return NULL;
6401 }
6402
6403
6404 SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6405 PyObject *resultobj = 0;
6406 wxBitmap *arg1 = (wxBitmap *) 0 ;
6407 long result;
6408 void *argp1 = 0 ;
6409 int res1 = 0 ;
6410 PyObject *swig_obj[1] ;
6411
6412 if (!args) SWIG_fail;
6413 swig_obj[0] = args;
6414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6415 if (!SWIG_IsOK(res1)) {
6416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6417 }
6418 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6419 {
6420 result = (long)(arg1)->GetHandle();
6421 if (PyErr_Occurred()) SWIG_fail;
6422 }
6423 resultobj = SWIG_From_long(static_cast< long >(result));
6424 return resultobj;
6425 fail:
6426 return NULL;
6427 }
6428
6429
6430 SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6431 PyObject *resultobj = 0;
6432 wxBitmap *arg1 = (wxBitmap *) 0 ;
6433 long arg2 ;
6434 void *argp1 = 0 ;
6435 int res1 = 0 ;
6436 long val2 ;
6437 int ecode2 = 0 ;
6438 PyObject * obj0 = 0 ;
6439 PyObject * obj1 = 0 ;
6440 char * kwnames[] = {
6441 (char *) "self",(char *) "handle", NULL
6442 };
6443
6444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6446 if (!SWIG_IsOK(res1)) {
6447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6448 }
6449 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6450 ecode2 = SWIG_AsVal_long(obj1, &val2);
6451 if (!SWIG_IsOK(ecode2)) {
6452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
6453 }
6454 arg2 = static_cast< long >(val2);
6455 {
6456 wxBitmap_SetHandle(arg1,arg2);
6457 if (PyErr_Occurred()) SWIG_fail;
6458 }
6459 resultobj = SWIG_Py_Void();
6460 return resultobj;
6461 fail:
6462 return NULL;
6463 }
6464
6465
6466 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6467 PyObject *resultobj = 0;
6468 wxBitmap *arg1 = (wxBitmap *) 0 ;
6469 bool result;
6470 void *argp1 = 0 ;
6471 int res1 = 0 ;
6472 PyObject *swig_obj[1] ;
6473
6474 if (!args) SWIG_fail;
6475 swig_obj[0] = args;
6476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6477 if (!SWIG_IsOK(res1)) {
6478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6479 }
6480 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6481 {
6482 result = (bool)(arg1)->IsOk();
6483 if (PyErr_Occurred()) SWIG_fail;
6484 }
6485 {
6486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6487 }
6488 return resultobj;
6489 fail:
6490 return NULL;
6491 }
6492
6493
6494 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6495 PyObject *resultobj = 0;
6496 wxBitmap *arg1 = (wxBitmap *) 0 ;
6497 int result;
6498 void *argp1 = 0 ;
6499 int res1 = 0 ;
6500 PyObject *swig_obj[1] ;
6501
6502 if (!args) SWIG_fail;
6503 swig_obj[0] = args;
6504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6505 if (!SWIG_IsOK(res1)) {
6506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6507 }
6508 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6509 {
6510 result = (int)(arg1)->GetWidth();
6511 if (PyErr_Occurred()) SWIG_fail;
6512 }
6513 resultobj = SWIG_From_int(static_cast< int >(result));
6514 return resultobj;
6515 fail:
6516 return NULL;
6517 }
6518
6519
6520 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6521 PyObject *resultobj = 0;
6522 wxBitmap *arg1 = (wxBitmap *) 0 ;
6523 int result;
6524 void *argp1 = 0 ;
6525 int res1 = 0 ;
6526 PyObject *swig_obj[1] ;
6527
6528 if (!args) SWIG_fail;
6529 swig_obj[0] = args;
6530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6531 if (!SWIG_IsOK(res1)) {
6532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6533 }
6534 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6535 {
6536 result = (int)(arg1)->GetHeight();
6537 if (PyErr_Occurred()) SWIG_fail;
6538 }
6539 resultobj = SWIG_From_int(static_cast< int >(result));
6540 return resultobj;
6541 fail:
6542 return NULL;
6543 }
6544
6545
6546 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6547 PyObject *resultobj = 0;
6548 wxBitmap *arg1 = (wxBitmap *) 0 ;
6549 int result;
6550 void *argp1 = 0 ;
6551 int res1 = 0 ;
6552 PyObject *swig_obj[1] ;
6553
6554 if (!args) SWIG_fail;
6555 swig_obj[0] = args;
6556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6557 if (!SWIG_IsOK(res1)) {
6558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6559 }
6560 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6561 {
6562 result = (int)(arg1)->GetDepth();
6563 if (PyErr_Occurred()) SWIG_fail;
6564 }
6565 resultobj = SWIG_From_int(static_cast< int >(result));
6566 return resultobj;
6567 fail:
6568 return NULL;
6569 }
6570
6571
6572 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6573 PyObject *resultobj = 0;
6574 wxBitmap *arg1 = (wxBitmap *) 0 ;
6575 wxSize result;
6576 void *argp1 = 0 ;
6577 int res1 = 0 ;
6578 PyObject *swig_obj[1] ;
6579
6580 if (!args) SWIG_fail;
6581 swig_obj[0] = args;
6582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6583 if (!SWIG_IsOK(res1)) {
6584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6585 }
6586 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6587 {
6588 result = wxBitmap_GetSize(arg1);
6589 if (PyErr_Occurred()) SWIG_fail;
6590 }
6591 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6592 return resultobj;
6593 fail:
6594 return NULL;
6595 }
6596
6597
6598 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6599 PyObject *resultobj = 0;
6600 wxBitmap *arg1 = (wxBitmap *) 0 ;
6601 SwigValueWrapper<wxImage > result;
6602 void *argp1 = 0 ;
6603 int res1 = 0 ;
6604 PyObject *swig_obj[1] ;
6605
6606 if (!args) SWIG_fail;
6607 swig_obj[0] = args;
6608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6609 if (!SWIG_IsOK(res1)) {
6610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6611 }
6612 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6613 {
6614 result = ((wxBitmap const *)arg1)->ConvertToImage();
6615 if (PyErr_Occurred()) SWIG_fail;
6616 }
6617 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6618 return resultobj;
6619 fail:
6620 return NULL;
6621 }
6622
6623
6624 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6625 PyObject *resultobj = 0;
6626 wxBitmap *arg1 = (wxBitmap *) 0 ;
6627 wxMask *result = 0 ;
6628 void *argp1 = 0 ;
6629 int res1 = 0 ;
6630 PyObject *swig_obj[1] ;
6631
6632 if (!args) SWIG_fail;
6633 swig_obj[0] = args;
6634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6635 if (!SWIG_IsOK(res1)) {
6636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6637 }
6638 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6639 {
6640 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6641 if (PyErr_Occurred()) SWIG_fail;
6642 }
6643 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6644 return resultobj;
6645 fail:
6646 return NULL;
6647 }
6648
6649
6650 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6651 PyObject *resultobj = 0;
6652 wxBitmap *arg1 = (wxBitmap *) 0 ;
6653 wxMask *arg2 = (wxMask *) 0 ;
6654 void *argp1 = 0 ;
6655 int res1 = 0 ;
6656 int res2 = 0 ;
6657 PyObject * obj0 = 0 ;
6658 PyObject * obj1 = 0 ;
6659 char * kwnames[] = {
6660 (char *) "self",(char *) "mask", NULL
6661 };
6662
6663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6665 if (!SWIG_IsOK(res1)) {
6666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6667 }
6668 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6669 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6670 if (!SWIG_IsOK(res2)) {
6671 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6672 }
6673 {
6674 (arg1)->SetMask(arg2);
6675 if (PyErr_Occurred()) SWIG_fail;
6676 }
6677 resultobj = SWIG_Py_Void();
6678 return resultobj;
6679 fail:
6680 return NULL;
6681 }
6682
6683
6684 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6685 PyObject *resultobj = 0;
6686 wxBitmap *arg1 = (wxBitmap *) 0 ;
6687 wxColour *arg2 = 0 ;
6688 void *argp1 = 0 ;
6689 int res1 = 0 ;
6690 wxColour temp2 ;
6691 PyObject * obj0 = 0 ;
6692 PyObject * obj1 = 0 ;
6693 char * kwnames[] = {
6694 (char *) "self",(char *) "colour", NULL
6695 };
6696
6697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6699 if (!SWIG_IsOK(res1)) {
6700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6701 }
6702 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6703 {
6704 arg2 = &temp2;
6705 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6706 }
6707 {
6708 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6709 if (PyErr_Occurred()) SWIG_fail;
6710 }
6711 resultobj = SWIG_Py_Void();
6712 return resultobj;
6713 fail:
6714 return NULL;
6715 }
6716
6717
6718 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6719 PyObject *resultobj = 0;
6720 wxBitmap *arg1 = (wxBitmap *) 0 ;
6721 wxRect *arg2 = 0 ;
6722 SwigValueWrapper<wxBitmap > result;
6723 void *argp1 = 0 ;
6724 int res1 = 0 ;
6725 wxRect temp2 ;
6726 PyObject * obj0 = 0 ;
6727 PyObject * obj1 = 0 ;
6728 char * kwnames[] = {
6729 (char *) "self",(char *) "rect", NULL
6730 };
6731
6732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6734 if (!SWIG_IsOK(res1)) {
6735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6736 }
6737 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6738 {
6739 arg2 = &temp2;
6740 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6741 }
6742 {
6743 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6744 if (PyErr_Occurred()) SWIG_fail;
6745 }
6746 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6747 return resultobj;
6748 fail:
6749 return NULL;
6750 }
6751
6752
6753 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6754 PyObject *resultobj = 0;
6755 wxBitmap *arg1 = (wxBitmap *) 0 ;
6756 wxString *arg2 = 0 ;
6757 wxBitmapType arg3 ;
6758 wxPalette *arg4 = (wxPalette *) NULL ;
6759 bool result;
6760 void *argp1 = 0 ;
6761 int res1 = 0 ;
6762 bool temp2 = false ;
6763 int val3 ;
6764 int ecode3 = 0 ;
6765 void *argp4 = 0 ;
6766 int res4 = 0 ;
6767 PyObject * obj0 = 0 ;
6768 PyObject * obj1 = 0 ;
6769 PyObject * obj2 = 0 ;
6770 PyObject * obj3 = 0 ;
6771 char * kwnames[] = {
6772 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6773 };
6774
6775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6777 if (!SWIG_IsOK(res1)) {
6778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6779 }
6780 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6781 {
6782 arg2 = wxString_in_helper(obj1);
6783 if (arg2 == NULL) SWIG_fail;
6784 temp2 = true;
6785 }
6786 ecode3 = SWIG_AsVal_int(obj2, &val3);
6787 if (!SWIG_IsOK(ecode3)) {
6788 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6789 }
6790 arg3 = static_cast< wxBitmapType >(val3);
6791 if (obj3) {
6792 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6793 if (!SWIG_IsOK(res4)) {
6794 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6795 }
6796 arg4 = reinterpret_cast< wxPalette * >(argp4);
6797 }
6798 {
6799 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6800 if (PyErr_Occurred()) SWIG_fail;
6801 }
6802 {
6803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6804 }
6805 {
6806 if (temp2)
6807 delete arg2;
6808 }
6809 return resultobj;
6810 fail:
6811 {
6812 if (temp2)
6813 delete arg2;
6814 }
6815 return NULL;
6816 }
6817
6818
6819 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6820 PyObject *resultobj = 0;
6821 wxBitmap *arg1 = (wxBitmap *) 0 ;
6822 wxString *arg2 = 0 ;
6823 wxBitmapType arg3 ;
6824 bool result;
6825 void *argp1 = 0 ;
6826 int res1 = 0 ;
6827 bool temp2 = false ;
6828 int val3 ;
6829 int ecode3 = 0 ;
6830 PyObject * obj0 = 0 ;
6831 PyObject * obj1 = 0 ;
6832 PyObject * obj2 = 0 ;
6833 char * kwnames[] = {
6834 (char *) "self",(char *) "name",(char *) "type", NULL
6835 };
6836
6837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6839 if (!SWIG_IsOK(res1)) {
6840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6841 }
6842 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6843 {
6844 arg2 = wxString_in_helper(obj1);
6845 if (arg2 == NULL) SWIG_fail;
6846 temp2 = true;
6847 }
6848 ecode3 = SWIG_AsVal_int(obj2, &val3);
6849 if (!SWIG_IsOK(ecode3)) {
6850 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6851 }
6852 arg3 = static_cast< wxBitmapType >(val3);
6853 {
6854 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6855 if (PyErr_Occurred()) SWIG_fail;
6856 }
6857 {
6858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6859 }
6860 {
6861 if (temp2)
6862 delete arg2;
6863 }
6864 return resultobj;
6865 fail:
6866 {
6867 if (temp2)
6868 delete arg2;
6869 }
6870 return NULL;
6871 }
6872
6873
6874 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6875 PyObject *resultobj = 0;
6876 wxBitmap *arg1 = (wxBitmap *) 0 ;
6877 wxPalette *result = 0 ;
6878 void *argp1 = 0 ;
6879 int res1 = 0 ;
6880 PyObject *swig_obj[1] ;
6881
6882 if (!args) SWIG_fail;
6883 swig_obj[0] = args;
6884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6885 if (!SWIG_IsOK(res1)) {
6886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6887 }
6888 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6889 {
6890 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6891 if (PyErr_Occurred()) SWIG_fail;
6892 }
6893 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6894 return resultobj;
6895 fail:
6896 return NULL;
6897 }
6898
6899
6900 SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6901 PyObject *resultobj = 0;
6902 wxBitmap *arg1 = (wxBitmap *) 0 ;
6903 wxPalette *arg2 = 0 ;
6904 void *argp1 = 0 ;
6905 int res1 = 0 ;
6906 void *argp2 = 0 ;
6907 int res2 = 0 ;
6908 PyObject * obj0 = 0 ;
6909 PyObject * obj1 = 0 ;
6910 char * kwnames[] = {
6911 (char *) "self",(char *) "palette", NULL
6912 };
6913
6914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6916 if (!SWIG_IsOK(res1)) {
6917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6918 }
6919 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6920 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6921 if (!SWIG_IsOK(res2)) {
6922 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6923 }
6924 if (!argp2) {
6925 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6926 }
6927 arg2 = reinterpret_cast< wxPalette * >(argp2);
6928 {
6929 (arg1)->SetPalette((wxPalette const &)*arg2);
6930 if (PyErr_Occurred()) SWIG_fail;
6931 }
6932 resultobj = SWIG_Py_Void();
6933 return resultobj;
6934 fail:
6935 return NULL;
6936 }
6937
6938
6939 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6940 PyObject *resultobj = 0;
6941 wxBitmap *arg1 = (wxBitmap *) 0 ;
6942 wxIcon *arg2 = 0 ;
6943 bool result;
6944 void *argp1 = 0 ;
6945 int res1 = 0 ;
6946 void *argp2 = 0 ;
6947 int res2 = 0 ;
6948 PyObject * obj0 = 0 ;
6949 PyObject * obj1 = 0 ;
6950 char * kwnames[] = {
6951 (char *) "self",(char *) "icon", NULL
6952 };
6953
6954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6956 if (!SWIG_IsOK(res1)) {
6957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6958 }
6959 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6960 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6961 if (!SWIG_IsOK(res2)) {
6962 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6963 }
6964 if (!argp2) {
6965 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6966 }
6967 arg2 = reinterpret_cast< wxIcon * >(argp2);
6968 {
6969 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6970 if (PyErr_Occurred()) SWIG_fail;
6971 }
6972 {
6973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6974 }
6975 return resultobj;
6976 fail:
6977 return NULL;
6978 }
6979
6980
6981 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6982 PyObject *resultobj = 0;
6983 wxBitmap *arg1 = (wxBitmap *) 0 ;
6984 int arg2 ;
6985 void *argp1 = 0 ;
6986 int res1 = 0 ;
6987 int val2 ;
6988 int ecode2 = 0 ;
6989 PyObject * obj0 = 0 ;
6990 PyObject * obj1 = 0 ;
6991 char * kwnames[] = {
6992 (char *) "self",(char *) "height", NULL
6993 };
6994
6995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6997 if (!SWIG_IsOK(res1)) {
6998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6999 }
7000 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7001 ecode2 = SWIG_AsVal_int(obj1, &val2);
7002 if (!SWIG_IsOK(ecode2)) {
7003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
7004 }
7005 arg2 = static_cast< int >(val2);
7006 {
7007 (arg1)->SetHeight(arg2);
7008 if (PyErr_Occurred()) SWIG_fail;
7009 }
7010 resultobj = SWIG_Py_Void();
7011 return resultobj;
7012 fail:
7013 return NULL;
7014 }
7015
7016
7017 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7018 PyObject *resultobj = 0;
7019 wxBitmap *arg1 = (wxBitmap *) 0 ;
7020 int arg2 ;
7021 void *argp1 = 0 ;
7022 int res1 = 0 ;
7023 int val2 ;
7024 int ecode2 = 0 ;
7025 PyObject * obj0 = 0 ;
7026 PyObject * obj1 = 0 ;
7027 char * kwnames[] = {
7028 (char *) "self",(char *) "width", NULL
7029 };
7030
7031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7033 if (!SWIG_IsOK(res1)) {
7034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
7035 }
7036 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7037 ecode2 = SWIG_AsVal_int(obj1, &val2);
7038 if (!SWIG_IsOK(ecode2)) {
7039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
7040 }
7041 arg2 = static_cast< int >(val2);
7042 {
7043 (arg1)->SetWidth(arg2);
7044 if (PyErr_Occurred()) SWIG_fail;
7045 }
7046 resultobj = SWIG_Py_Void();
7047 return resultobj;
7048 fail:
7049 return NULL;
7050 }
7051
7052
7053 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7054 PyObject *resultobj = 0;
7055 wxBitmap *arg1 = (wxBitmap *) 0 ;
7056 int arg2 ;
7057 void *argp1 = 0 ;
7058 int res1 = 0 ;
7059 int val2 ;
7060 int ecode2 = 0 ;
7061 PyObject * obj0 = 0 ;
7062 PyObject * obj1 = 0 ;
7063 char * kwnames[] = {
7064 (char *) "self",(char *) "depth", NULL
7065 };
7066
7067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
7068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7069 if (!SWIG_IsOK(res1)) {
7070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
7071 }
7072 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7073 ecode2 = SWIG_AsVal_int(obj1, &val2);
7074 if (!SWIG_IsOK(ecode2)) {
7075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
7076 }
7077 arg2 = static_cast< int >(val2);
7078 {
7079 (arg1)->SetDepth(arg2);
7080 if (PyErr_Occurred()) SWIG_fail;
7081 }
7082 resultobj = SWIG_Py_Void();
7083 return resultobj;
7084 fail:
7085 return NULL;
7086 }
7087
7088
7089 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7090 PyObject *resultobj = 0;
7091 wxBitmap *arg1 = (wxBitmap *) 0 ;
7092 wxSize *arg2 = 0 ;
7093 void *argp1 = 0 ;
7094 int res1 = 0 ;
7095 wxSize temp2 ;
7096 PyObject * obj0 = 0 ;
7097 PyObject * obj1 = 0 ;
7098 char * kwnames[] = {
7099 (char *) "self",(char *) "size", NULL
7100 };
7101
7102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7104 if (!SWIG_IsOK(res1)) {
7105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
7106 }
7107 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7108 {
7109 arg2 = &temp2;
7110 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7111 }
7112 {
7113 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
7114 if (PyErr_Occurred()) SWIG_fail;
7115 }
7116 resultobj = SWIG_Py_Void();
7117 return resultobj;
7118 fail:
7119 return NULL;
7120 }
7121
7122
7123 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7124 PyObject *resultobj = 0;
7125 wxBitmap *arg1 = (wxBitmap *) 0 ;
7126 wxCursor *arg2 = 0 ;
7127 bool result;
7128 void *argp1 = 0 ;
7129 int res1 = 0 ;
7130 void *argp2 = 0 ;
7131 int res2 = 0 ;
7132 PyObject * obj0 = 0 ;
7133 PyObject * obj1 = 0 ;
7134 char * kwnames[] = {
7135 (char *) "self",(char *) "cursor", NULL
7136 };
7137
7138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
7139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7140 if (!SWIG_IsOK(res1)) {
7141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
7142 }
7143 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7144 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
7145 if (!SWIG_IsOK(res2)) {
7146 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
7147 }
7148 if (!argp2) {
7149 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
7150 }
7151 arg2 = reinterpret_cast< wxCursor * >(argp2);
7152 {
7153 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
7154 if (PyErr_Occurred()) SWIG_fail;
7155 }
7156 {
7157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7158 }
7159 return resultobj;
7160 fail:
7161 return NULL;
7162 }
7163
7164
7165 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7166 PyObject *resultobj = 0;
7167 wxBitmap *arg1 = (wxBitmap *) 0 ;
7168 buffer arg2 ;
7169 int arg3 ;
7170 void *argp1 = 0 ;
7171 int res1 = 0 ;
7172 Py_ssize_t temp2 ;
7173 PyObject * obj0 = 0 ;
7174 PyObject * obj1 = 0 ;
7175 char * kwnames[] = {
7176 (char *) "self",(char *) "data", NULL
7177 };
7178
7179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7181 if (!SWIG_IsOK(res1)) {
7182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7183 }
7184 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7185 {
7186 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7187 arg3 = (int)temp2;
7188 }
7189 {
7190 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7191 if (PyErr_Occurred()) SWIG_fail;
7192 }
7193 resultobj = SWIG_Py_Void();
7194 return resultobj;
7195 fail:
7196 return NULL;
7197 }
7198
7199
7200 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7201 PyObject *resultobj = 0;
7202 wxBitmap *arg1 = (wxBitmap *) 0 ;
7203 buffer arg2 ;
7204 int arg3 ;
7205 void *argp1 = 0 ;
7206 int res1 = 0 ;
7207 Py_ssize_t temp2 ;
7208 PyObject * obj0 = 0 ;
7209 PyObject * obj1 = 0 ;
7210 char * kwnames[] = {
7211 (char *) "self",(char *) "data", NULL
7212 };
7213
7214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7216 if (!SWIG_IsOK(res1)) {
7217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7218 }
7219 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7220 {
7221 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7222 arg3 = (int)temp2;
7223 }
7224 {
7225 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7226 if (PyErr_Occurred()) SWIG_fail;
7227 }
7228 resultobj = SWIG_Py_Void();
7229 return resultobj;
7230 fail:
7231 return NULL;
7232 }
7233
7234
7235 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7236 PyObject *resultobj = 0;
7237 wxBitmap *arg1 = (wxBitmap *) 0 ;
7238 wxBitmap *arg2 = (wxBitmap *) 0 ;
7239 bool result;
7240 void *argp1 = 0 ;
7241 int res1 = 0 ;
7242 void *argp2 = 0 ;
7243 int res2 = 0 ;
7244 PyObject * obj0 = 0 ;
7245 PyObject * obj1 = 0 ;
7246 char * kwnames[] = {
7247 (char *) "self",(char *) "other", NULL
7248 };
7249
7250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7252 if (!SWIG_IsOK(res1)) {
7253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7254 }
7255 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7256 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7257 if (!SWIG_IsOK(res2)) {
7258 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7259 }
7260 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7261 {
7262 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
7263 if (PyErr_Occurred()) SWIG_fail;
7264 }
7265 {
7266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7267 }
7268 return resultobj;
7269 fail:
7270 return NULL;
7271 }
7272
7273
7274 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7275 PyObject *resultobj = 0;
7276 wxBitmap *arg1 = (wxBitmap *) 0 ;
7277 wxBitmap *arg2 = (wxBitmap *) 0 ;
7278 bool result;
7279 void *argp1 = 0 ;
7280 int res1 = 0 ;
7281 void *argp2 = 0 ;
7282 int res2 = 0 ;
7283 PyObject * obj0 = 0 ;
7284 PyObject * obj1 = 0 ;
7285 char * kwnames[] = {
7286 (char *) "self",(char *) "other", NULL
7287 };
7288
7289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7291 if (!SWIG_IsOK(res1)) {
7292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7293 }
7294 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7295 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7296 if (!SWIG_IsOK(res2)) {
7297 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7298 }
7299 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7300 {
7301 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7302 if (PyErr_Occurred()) SWIG_fail;
7303 }
7304 {
7305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7306 }
7307 return resultobj;
7308 fail:
7309 return NULL;
7310 }
7311
7312
7313 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7314 PyObject *obj;
7315 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7316 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7317 return SWIG_Py_Void();
7318 }
7319
7320 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7321 return SWIG_Python_InitShadowInstance(args);
7322 }
7323
7324 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7325 PyObject *resultobj = 0;
7326 int arg1 ;
7327 int arg2 ;
7328 buffer arg3 ;
7329 int arg4 ;
7330 buffer arg5 ;
7331 int arg6 ;
7332 wxBitmap *result = 0 ;
7333 int val1 ;
7334 int ecode1 = 0 ;
7335 int val2 ;
7336 int ecode2 = 0 ;
7337 Py_ssize_t temp3 ;
7338 Py_ssize_t temp5 ;
7339 PyObject * obj0 = 0 ;
7340 PyObject * obj1 = 0 ;
7341 PyObject * obj2 = 0 ;
7342 PyObject * obj3 = 0 ;
7343 char * kwnames[] = {
7344 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7345 };
7346
7347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7348 ecode1 = SWIG_AsVal_int(obj0, &val1);
7349 if (!SWIG_IsOK(ecode1)) {
7350 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7351 }
7352 arg1 = static_cast< int >(val1);
7353 ecode2 = SWIG_AsVal_int(obj1, &val2);
7354 if (!SWIG_IsOK(ecode2)) {
7355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7356 }
7357 arg2 = static_cast< int >(val2);
7358 {
7359 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7360 arg4 = (int)temp3;
7361 }
7362 {
7363 if (obj3 != Py_None) {
7364 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7365 arg6 = (int)temp5;
7366 }
7367 }
7368 {
7369 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7370 if (PyErr_Occurred()) SWIG_fail;
7371 }
7372 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7373 return resultobj;
7374 fail:
7375 return NULL;
7376 }
7377
7378
7379 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7380 PyObject *resultobj = 0;
7381 int arg1 ;
7382 int arg2 ;
7383 buffer arg3 ;
7384 int arg4 ;
7385 wxBitmap *result = 0 ;
7386 int val1 ;
7387 int ecode1 = 0 ;
7388 int val2 ;
7389 int ecode2 = 0 ;
7390 Py_ssize_t temp3 ;
7391 PyObject * obj0 = 0 ;
7392 PyObject * obj1 = 0 ;
7393 PyObject * obj2 = 0 ;
7394 char * kwnames[] = {
7395 (char *) "width",(char *) "height",(char *) "data", NULL
7396 };
7397
7398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7399 ecode1 = SWIG_AsVal_int(obj0, &val1);
7400 if (!SWIG_IsOK(ecode1)) {
7401 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7402 }
7403 arg1 = static_cast< int >(val1);
7404 ecode2 = SWIG_AsVal_int(obj1, &val2);
7405 if (!SWIG_IsOK(ecode2)) {
7406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7407 }
7408 arg2 = static_cast< int >(val2);
7409 {
7410 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7411 arg4 = (int)temp3;
7412 }
7413 {
7414 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7415 if (PyErr_Occurred()) SWIG_fail;
7416 }
7417 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7418 return resultobj;
7419 fail:
7420 return NULL;
7421 }
7422
7423
7424 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7425 PyObject *resultobj = 0;
7426 int arg1 ;
7427 int arg2 ;
7428 buffer arg3 ;
7429 int arg4 ;
7430 wxBitmap *result = 0 ;
7431 int val1 ;
7432 int ecode1 = 0 ;
7433 int val2 ;
7434 int ecode2 = 0 ;
7435 Py_ssize_t temp3 ;
7436 PyObject * obj0 = 0 ;
7437 PyObject * obj1 = 0 ;
7438 PyObject * obj2 = 0 ;
7439 char * kwnames[] = {
7440 (char *) "width",(char *) "height",(char *) "data", NULL
7441 };
7442
7443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7444 ecode1 = SWIG_AsVal_int(obj0, &val1);
7445 if (!SWIG_IsOK(ecode1)) {
7446 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7447 }
7448 arg1 = static_cast< int >(val1);
7449 ecode2 = SWIG_AsVal_int(obj1, &val2);
7450 if (!SWIG_IsOK(ecode2)) {
7451 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7452 }
7453 arg2 = static_cast< int >(val2);
7454 {
7455 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7456 arg4 = (int)temp3;
7457 }
7458 {
7459 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7460 if (PyErr_Occurred()) SWIG_fail;
7461 }
7462 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7463 return resultobj;
7464 fail:
7465 return NULL;
7466 }
7467
7468
7469 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7470 PyObject *resultobj = 0;
7471 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7472 wxPoint result;
7473 void *argp1 = 0 ;
7474 int res1 = 0 ;
7475 PyObject *swig_obj[1] ;
7476
7477 if (!args) SWIG_fail;
7478 swig_obj[0] = args;
7479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7480 if (!SWIG_IsOK(res1)) {
7481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7482 }
7483 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7484 {
7485 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7486 if (PyErr_Occurred()) SWIG_fail;
7487 }
7488 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7489 return resultobj;
7490 fail:
7491 return NULL;
7492 }
7493
7494
7495 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7496 PyObject *resultobj = 0;
7497 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7498 int result;
7499 void *argp1 = 0 ;
7500 int res1 = 0 ;
7501 PyObject *swig_obj[1] ;
7502
7503 if (!args) SWIG_fail;
7504 swig_obj[0] = args;
7505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7506 if (!SWIG_IsOK(res1)) {
7507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7508 }
7509 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7510 {
7511 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7512 if (PyErr_Occurred()) SWIG_fail;
7513 }
7514 resultobj = SWIG_From_int(static_cast< int >(result));
7515 return resultobj;
7516 fail:
7517 return NULL;
7518 }
7519
7520
7521 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7522 PyObject *resultobj = 0;
7523 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7524 int result;
7525 void *argp1 = 0 ;
7526 int res1 = 0 ;
7527 PyObject *swig_obj[1] ;
7528
7529 if (!args) SWIG_fail;
7530 swig_obj[0] = args;
7531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7532 if (!SWIG_IsOK(res1)) {
7533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7534 }
7535 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7536 {
7537 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7538 if (PyErr_Occurred()) SWIG_fail;
7539 }
7540 resultobj = SWIG_From_int(static_cast< int >(result));
7541 return resultobj;
7542 fail:
7543 return NULL;
7544 }
7545
7546
7547 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7548 PyObject *resultobj = 0;
7549 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7550 wxSize result;
7551 void *argp1 = 0 ;
7552 int res1 = 0 ;
7553 PyObject *swig_obj[1] ;
7554
7555 if (!args) SWIG_fail;
7556 swig_obj[0] = args;
7557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7558 if (!SWIG_IsOK(res1)) {
7559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7560 }
7561 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7562 {
7563 result = ((wxPixelDataBase const *)arg1)->GetSize();
7564 if (PyErr_Occurred()) SWIG_fail;
7565 }
7566 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7567 return resultobj;
7568 fail:
7569 return NULL;
7570 }
7571
7572
7573 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7574 PyObject *resultobj = 0;
7575 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7576 int result;
7577 void *argp1 = 0 ;
7578 int res1 = 0 ;
7579 PyObject *swig_obj[1] ;
7580
7581 if (!args) SWIG_fail;
7582 swig_obj[0] = args;
7583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7584 if (!SWIG_IsOK(res1)) {
7585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7586 }
7587 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7588 {
7589 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7590 if (PyErr_Occurred()) SWIG_fail;
7591 }
7592 resultobj = SWIG_From_int(static_cast< int >(result));
7593 return resultobj;
7594 fail:
7595 return NULL;
7596 }
7597
7598
7599 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7600 PyObject *obj;
7601 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7602 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7603 return SWIG_Py_Void();
7604 }
7605
7606 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7607 PyObject *resultobj = 0;
7608 wxBitmap *arg1 = 0 ;
7609 wxNativePixelData *result = 0 ;
7610 void *argp1 = 0 ;
7611 int res1 = 0 ;
7612
7613 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7615 if (!SWIG_IsOK(res1)) {
7616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7617 }
7618 if (!argp1) {
7619 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7620 }
7621 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7622 {
7623 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7624 if (PyErr_Occurred()) SWIG_fail;
7625 }
7626 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7627 return resultobj;
7628 fail:
7629 return NULL;
7630 }
7631
7632
7633 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7634 PyObject *resultobj = 0;
7635 wxBitmap *arg1 = 0 ;
7636 wxRect *arg2 = 0 ;
7637 wxNativePixelData *result = 0 ;
7638 void *argp1 = 0 ;
7639 int res1 = 0 ;
7640 wxRect temp2 ;
7641
7642 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7644 if (!SWIG_IsOK(res1)) {
7645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7646 }
7647 if (!argp1) {
7648 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7649 }
7650 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7651 {
7652 arg2 = &temp2;
7653 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7654 }
7655 {
7656 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7657 if (PyErr_Occurred()) SWIG_fail;
7658 }
7659 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7660 return resultobj;
7661 fail:
7662 return NULL;
7663 }
7664
7665
7666 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7667 PyObject *resultobj = 0;
7668 wxBitmap *arg1 = 0 ;
7669 wxPoint *arg2 = 0 ;
7670 wxSize *arg3 = 0 ;
7671 wxNativePixelData *result = 0 ;
7672 void *argp1 = 0 ;
7673 int res1 = 0 ;
7674 wxPoint temp2 ;
7675 wxSize temp3 ;
7676
7677 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7679 if (!SWIG_IsOK(res1)) {
7680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7681 }
7682 if (!argp1) {
7683 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7684 }
7685 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7686 {
7687 arg2 = &temp2;
7688 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7689 }
7690 {
7691 arg3 = &temp3;
7692 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7693 }
7694 {
7695 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7696 if (PyErr_Occurred()) SWIG_fail;
7697 }
7698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7699 return resultobj;
7700 fail:
7701 return NULL;
7702 }
7703
7704
7705 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7706 int argc;
7707 PyObject *argv[4];
7708
7709 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7710 --argc;
7711 if (argc == 1) {
7712 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7713 }
7714 if (argc == 2) {
7715 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7716 }
7717 if (argc == 3) {
7718 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7719 }
7720
7721 fail:
7722 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7723 return NULL;
7724 }
7725
7726
7727 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7728 PyObject *resultobj = 0;
7729 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7730 void *argp1 = 0 ;
7731 int res1 = 0 ;
7732 PyObject *swig_obj[1] ;
7733
7734 if (!args) SWIG_fail;
7735 swig_obj[0] = args;
7736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7737 if (!SWIG_IsOK(res1)) {
7738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7739 }
7740 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7741 {
7742 delete arg1;
7743
7744 if (PyErr_Occurred()) SWIG_fail;
7745 }
7746 resultobj = SWIG_Py_Void();
7747 return resultobj;
7748 fail:
7749 return NULL;
7750 }
7751
7752
7753 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7754 PyObject *resultobj = 0;
7755 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7756 wxNativePixelData_Accessor result;
7757 void *argp1 = 0 ;
7758 int res1 = 0 ;
7759 PyObject *swig_obj[1] ;
7760
7761 if (!args) SWIG_fail;
7762 swig_obj[0] = args;
7763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7764 if (!SWIG_IsOK(res1)) {
7765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7766 }
7767 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7768 {
7769 result = ((wxNativePixelData const *)arg1)->GetPixels();
7770 if (PyErr_Occurred()) SWIG_fail;
7771 }
7772 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7773 return resultobj;
7774 fail:
7775 return NULL;
7776 }
7777
7778
7779 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7780 PyObject *resultobj = 0;
7781 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7782 void *argp1 = 0 ;
7783 int res1 = 0 ;
7784 PyObject *swig_obj[1] ;
7785
7786 if (!args) SWIG_fail;
7787 swig_obj[0] = args;
7788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7789 if (!SWIG_IsOK(res1)) {
7790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7791 }
7792 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7793 {
7794 (arg1)->UseAlpha();
7795 if (PyErr_Occurred()) SWIG_fail;
7796 }
7797 resultobj = SWIG_Py_Void();
7798 return resultobj;
7799 fail:
7800 return NULL;
7801 }
7802
7803
7804 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7805 PyObject *resultobj = 0;
7806 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7807 bool result;
7808 void *argp1 = 0 ;
7809 int res1 = 0 ;
7810 PyObject *swig_obj[1] ;
7811
7812 if (!args) SWIG_fail;
7813 swig_obj[0] = args;
7814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7815 if (!SWIG_IsOK(res1)) {
7816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7817 }
7818 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7819 {
7820 result = (bool)wxNativePixelData___nonzero__(arg1);
7821 if (PyErr_Occurred()) SWIG_fail;
7822 }
7823 {
7824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7825 }
7826 return resultobj;
7827 fail:
7828 return NULL;
7829 }
7830
7831
7832 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7833 PyObject *obj;
7834 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7835 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7836 return SWIG_Py_Void();
7837 }
7838
7839 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7840 return SWIG_Python_InitShadowInstance(args);
7841 }
7842
7843 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7844 PyObject *resultobj = 0;
7845 wxNativePixelData *arg1 = 0 ;
7846 wxNativePixelData_Accessor *result = 0 ;
7847 void *argp1 = 0 ;
7848 int res1 = 0 ;
7849
7850 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7852 if (!SWIG_IsOK(res1)) {
7853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7854 }
7855 if (!argp1) {
7856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7857 }
7858 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7859 {
7860 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7861 if (PyErr_Occurred()) SWIG_fail;
7862 }
7863 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7864 return resultobj;
7865 fail:
7866 return NULL;
7867 }
7868
7869
7870 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7871 PyObject *resultobj = 0;
7872 wxBitmap *arg1 = 0 ;
7873 wxNativePixelData *arg2 = 0 ;
7874 wxNativePixelData_Accessor *result = 0 ;
7875 void *argp1 = 0 ;
7876 int res1 = 0 ;
7877 void *argp2 = 0 ;
7878 int res2 = 0 ;
7879
7880 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7882 if (!SWIG_IsOK(res1)) {
7883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7884 }
7885 if (!argp1) {
7886 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7887 }
7888 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7889 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7890 if (!SWIG_IsOK(res2)) {
7891 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7892 }
7893 if (!argp2) {
7894 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7895 }
7896 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7897 {
7898 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7899 if (PyErr_Occurred()) SWIG_fail;
7900 }
7901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7902 return resultobj;
7903 fail:
7904 return NULL;
7905 }
7906
7907
7908 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7909 PyObject *resultobj = 0;
7910 wxNativePixelData_Accessor *result = 0 ;
7911
7912 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7913 {
7914 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7915 if (PyErr_Occurred()) SWIG_fail;
7916 }
7917 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7918 return resultobj;
7919 fail:
7920 return NULL;
7921 }
7922
7923
7924 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7925 int argc;
7926 PyObject *argv[3];
7927
7928 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7929 --argc;
7930 if (argc == 0) {
7931 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7932 }
7933 if (argc == 1) {
7934 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7935 }
7936 if (argc == 2) {
7937 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7938 }
7939
7940 fail:
7941 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7942 return NULL;
7943 }
7944
7945
7946 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7947 PyObject *resultobj = 0;
7948 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7949 void *argp1 = 0 ;
7950 int res1 = 0 ;
7951 PyObject *swig_obj[1] ;
7952
7953 if (!args) SWIG_fail;
7954 swig_obj[0] = args;
7955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7956 if (!SWIG_IsOK(res1)) {
7957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7958 }
7959 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7960 {
7961 delete arg1;
7962
7963 if (PyErr_Occurred()) SWIG_fail;
7964 }
7965 resultobj = SWIG_Py_Void();
7966 return resultobj;
7967 fail:
7968 return NULL;
7969 }
7970
7971
7972 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7973 PyObject *resultobj = 0;
7974 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7975 wxNativePixelData *arg2 = 0 ;
7976 void *argp1 = 0 ;
7977 int res1 = 0 ;
7978 void *argp2 = 0 ;
7979 int res2 = 0 ;
7980 PyObject * obj0 = 0 ;
7981 PyObject * obj1 = 0 ;
7982 char * kwnames[] = {
7983 (char *) "self",(char *) "data", NULL
7984 };
7985
7986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7988 if (!SWIG_IsOK(res1)) {
7989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7990 }
7991 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7992 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7993 if (!SWIG_IsOK(res2)) {
7994 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7995 }
7996 if (!argp2) {
7997 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7998 }
7999 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8000 {
8001 (arg1)->Reset((wxNativePixelData const &)*arg2);
8002 if (PyErr_Occurred()) SWIG_fail;
8003 }
8004 resultobj = SWIG_Py_Void();
8005 return resultobj;
8006 fail:
8007 return NULL;
8008 }
8009
8010
8011 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8012 PyObject *resultobj = 0;
8013 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8014 bool result;
8015 void *argp1 = 0 ;
8016 int res1 = 0 ;
8017 PyObject *swig_obj[1] ;
8018
8019 if (!args) SWIG_fail;
8020 swig_obj[0] = args;
8021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8022 if (!SWIG_IsOK(res1)) {
8023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
8024 }
8025 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8026 {
8027 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
8028 if (PyErr_Occurred()) SWIG_fail;
8029 }
8030 {
8031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8032 }
8033 return resultobj;
8034 fail:
8035 return NULL;
8036 }
8037
8038
8039 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8040 PyObject *resultobj = 0;
8041 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8042 void *argp1 = 0 ;
8043 int res1 = 0 ;
8044 PyObject *swig_obj[1] ;
8045
8046 if (!args) SWIG_fail;
8047 swig_obj[0] = args;
8048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8049 if (!SWIG_IsOK(res1)) {
8050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8051 }
8052 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8053 {
8054 wxNativePixelData_Accessor_nextPixel(arg1);
8055 if (PyErr_Occurred()) SWIG_fail;
8056 }
8057 resultobj = SWIG_Py_Void();
8058 return resultobj;
8059 fail:
8060 return NULL;
8061 }
8062
8063
8064 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8065 PyObject *resultobj = 0;
8066 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8067 wxNativePixelData *arg2 = 0 ;
8068 int arg3 ;
8069 int arg4 ;
8070 void *argp1 = 0 ;
8071 int res1 = 0 ;
8072 void *argp2 = 0 ;
8073 int res2 = 0 ;
8074 int val3 ;
8075 int ecode3 = 0 ;
8076 int val4 ;
8077 int ecode4 = 0 ;
8078 PyObject * obj0 = 0 ;
8079 PyObject * obj1 = 0 ;
8080 PyObject * obj2 = 0 ;
8081 PyObject * obj3 = 0 ;
8082 char * kwnames[] = {
8083 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8084 };
8085
8086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8088 if (!SWIG_IsOK(res1)) {
8089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8090 }
8091 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8092 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8093 if (!SWIG_IsOK(res2)) {
8094 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8095 }
8096 if (!argp2) {
8097 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8098 }
8099 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8100 ecode3 = SWIG_AsVal_int(obj2, &val3);
8101 if (!SWIG_IsOK(ecode3)) {
8102 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8103 }
8104 arg3 = static_cast< int >(val3);
8105 ecode4 = SWIG_AsVal_int(obj3, &val4);
8106 if (!SWIG_IsOK(ecode4)) {
8107 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8108 }
8109 arg4 = static_cast< int >(val4);
8110 {
8111 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
8112 if (PyErr_Occurred()) SWIG_fail;
8113 }
8114 resultobj = SWIG_Py_Void();
8115 return resultobj;
8116 fail:
8117 return NULL;
8118 }
8119
8120
8121 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8122 PyObject *resultobj = 0;
8123 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8124 wxNativePixelData *arg2 = 0 ;
8125 int arg3 ;
8126 void *argp1 = 0 ;
8127 int res1 = 0 ;
8128 void *argp2 = 0 ;
8129 int res2 = 0 ;
8130 int val3 ;
8131 int ecode3 = 0 ;
8132 PyObject * obj0 = 0 ;
8133 PyObject * obj1 = 0 ;
8134 PyObject * obj2 = 0 ;
8135 char * kwnames[] = {
8136 (char *) "self",(char *) "data",(char *) "x", NULL
8137 };
8138
8139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8141 if (!SWIG_IsOK(res1)) {
8142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8143 }
8144 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8145 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8146 if (!SWIG_IsOK(res2)) {
8147 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8148 }
8149 if (!argp2) {
8150 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8151 }
8152 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8153 ecode3 = SWIG_AsVal_int(obj2, &val3);
8154 if (!SWIG_IsOK(ecode3)) {
8155 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8156 }
8157 arg3 = static_cast< int >(val3);
8158 {
8159 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
8160 if (PyErr_Occurred()) SWIG_fail;
8161 }
8162 resultobj = SWIG_Py_Void();
8163 return resultobj;
8164 fail:
8165 return NULL;
8166 }
8167
8168
8169 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8170 PyObject *resultobj = 0;
8171 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8172 wxNativePixelData *arg2 = 0 ;
8173 int arg3 ;
8174 void *argp1 = 0 ;
8175 int res1 = 0 ;
8176 void *argp2 = 0 ;
8177 int res2 = 0 ;
8178 int val3 ;
8179 int ecode3 = 0 ;
8180 PyObject * obj0 = 0 ;
8181 PyObject * obj1 = 0 ;
8182 PyObject * obj2 = 0 ;
8183 char * kwnames[] = {
8184 (char *) "self",(char *) "data",(char *) "y", NULL
8185 };
8186
8187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8189 if (!SWIG_IsOK(res1)) {
8190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8191 }
8192 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8193 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8194 if (!SWIG_IsOK(res2)) {
8195 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8196 }
8197 if (!argp2) {
8198 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8199 }
8200 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8201 ecode3 = SWIG_AsVal_int(obj2, &val3);
8202 if (!SWIG_IsOK(ecode3)) {
8203 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8204 }
8205 arg3 = static_cast< int >(val3);
8206 {
8207 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8208 if (PyErr_Occurred()) SWIG_fail;
8209 }
8210 resultobj = SWIG_Py_Void();
8211 return resultobj;
8212 fail:
8213 return NULL;
8214 }
8215
8216
8217 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8218 PyObject *resultobj = 0;
8219 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8220 wxNativePixelData *arg2 = 0 ;
8221 int arg3 ;
8222 int arg4 ;
8223 void *argp1 = 0 ;
8224 int res1 = 0 ;
8225 void *argp2 = 0 ;
8226 int res2 = 0 ;
8227 int val3 ;
8228 int ecode3 = 0 ;
8229 int val4 ;
8230 int ecode4 = 0 ;
8231 PyObject * obj0 = 0 ;
8232 PyObject * obj1 = 0 ;
8233 PyObject * obj2 = 0 ;
8234 PyObject * obj3 = 0 ;
8235 char * kwnames[] = {
8236 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8237 };
8238
8239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8241 if (!SWIG_IsOK(res1)) {
8242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8243 }
8244 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8245 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8246 if (!SWIG_IsOK(res2)) {
8247 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8248 }
8249 if (!argp2) {
8250 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8251 }
8252 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8253 ecode3 = SWIG_AsVal_int(obj2, &val3);
8254 if (!SWIG_IsOK(ecode3)) {
8255 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8256 }
8257 arg3 = static_cast< int >(val3);
8258 ecode4 = SWIG_AsVal_int(obj3, &val4);
8259 if (!SWIG_IsOK(ecode4)) {
8260 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8261 }
8262 arg4 = static_cast< int >(val4);
8263 {
8264 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8265 if (PyErr_Occurred()) SWIG_fail;
8266 }
8267 resultobj = SWIG_Py_Void();
8268 return resultobj;
8269 fail:
8270 return NULL;
8271 }
8272
8273
8274 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8275 PyObject *resultobj = 0;
8276 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8277 byte arg2 ;
8278 byte arg3 ;
8279 byte arg4 ;
8280 void *argp1 = 0 ;
8281 int res1 = 0 ;
8282 unsigned char val2 ;
8283 int ecode2 = 0 ;
8284 unsigned char val3 ;
8285 int ecode3 = 0 ;
8286 unsigned char val4 ;
8287 int ecode4 = 0 ;
8288 PyObject * obj0 = 0 ;
8289 PyObject * obj1 = 0 ;
8290 PyObject * obj2 = 0 ;
8291 PyObject * obj3 = 0 ;
8292 char * kwnames[] = {
8293 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8294 };
8295
8296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8298 if (!SWIG_IsOK(res1)) {
8299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8300 }
8301 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8302 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8303 if (!SWIG_IsOK(ecode2)) {
8304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8305 }
8306 arg2 = static_cast< byte >(val2);
8307 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8308 if (!SWIG_IsOK(ecode3)) {
8309 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8310 }
8311 arg3 = static_cast< byte >(val3);
8312 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8313 if (!SWIG_IsOK(ecode4)) {
8314 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8315 }
8316 arg4 = static_cast< byte >(val4);
8317 {
8318 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8319 if (PyErr_Occurred()) SWIG_fail;
8320 }
8321 resultobj = SWIG_Py_Void();
8322 return resultobj;
8323 fail:
8324 return NULL;
8325 }
8326
8327
8328 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8329 PyObject *resultobj = 0;
8330 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8331 PyObject *result = 0 ;
8332 void *argp1 = 0 ;
8333 int res1 = 0 ;
8334 PyObject *swig_obj[1] ;
8335
8336 if (!args) SWIG_fail;
8337 swig_obj[0] = args;
8338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8339 if (!SWIG_IsOK(res1)) {
8340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8341 }
8342 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8343 {
8344 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8345 if (PyErr_Occurred()) SWIG_fail;
8346 }
8347 resultobj = result;
8348 return resultobj;
8349 fail:
8350 return NULL;
8351 }
8352
8353
8354 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8355 PyObject *obj;
8356 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8357 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8358 return SWIG_Py_Void();
8359 }
8360
8361 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8362 return SWIG_Python_InitShadowInstance(args);
8363 }
8364
8365 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8366 PyObject *resultobj = 0;
8367 wxBitmap *arg1 = 0 ;
8368 wxAlphaPixelData *result = 0 ;
8369 void *argp1 = 0 ;
8370 int res1 = 0 ;
8371
8372 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8374 if (!SWIG_IsOK(res1)) {
8375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8376 }
8377 if (!argp1) {
8378 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8379 }
8380 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8381 {
8382 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8383 if (PyErr_Occurred()) SWIG_fail;
8384 }
8385 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8386 return resultobj;
8387 fail:
8388 return NULL;
8389 }
8390
8391
8392 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8393 PyObject *resultobj = 0;
8394 wxBitmap *arg1 = 0 ;
8395 wxRect *arg2 = 0 ;
8396 wxAlphaPixelData *result = 0 ;
8397 void *argp1 = 0 ;
8398 int res1 = 0 ;
8399 wxRect temp2 ;
8400
8401 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8403 if (!SWIG_IsOK(res1)) {
8404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8405 }
8406 if (!argp1) {
8407 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8408 }
8409 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8410 {
8411 arg2 = &temp2;
8412 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8413 }
8414 {
8415 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8416 if (PyErr_Occurred()) SWIG_fail;
8417 }
8418 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8419 return resultobj;
8420 fail:
8421 return NULL;
8422 }
8423
8424
8425 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8426 PyObject *resultobj = 0;
8427 wxBitmap *arg1 = 0 ;
8428 wxPoint *arg2 = 0 ;
8429 wxSize *arg3 = 0 ;
8430 wxAlphaPixelData *result = 0 ;
8431 void *argp1 = 0 ;
8432 int res1 = 0 ;
8433 wxPoint temp2 ;
8434 wxSize temp3 ;
8435
8436 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8438 if (!SWIG_IsOK(res1)) {
8439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8440 }
8441 if (!argp1) {
8442 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8443 }
8444 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8445 {
8446 arg2 = &temp2;
8447 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8448 }
8449 {
8450 arg3 = &temp3;
8451 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8452 }
8453 {
8454 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8455 if (PyErr_Occurred()) SWIG_fail;
8456 }
8457 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8458 return resultobj;
8459 fail:
8460 return NULL;
8461 }
8462
8463
8464 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8465 int argc;
8466 PyObject *argv[4];
8467
8468 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8469 --argc;
8470 if (argc == 1) {
8471 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8472 }
8473 if (argc == 2) {
8474 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8475 }
8476 if (argc == 3) {
8477 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8478 }
8479
8480 fail:
8481 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8482 return NULL;
8483 }
8484
8485
8486 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8487 PyObject *resultobj = 0;
8488 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8489 void *argp1 = 0 ;
8490 int res1 = 0 ;
8491 PyObject *swig_obj[1] ;
8492
8493 if (!args) SWIG_fail;
8494 swig_obj[0] = args;
8495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8496 if (!SWIG_IsOK(res1)) {
8497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8498 }
8499 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8500 {
8501 delete arg1;
8502
8503 if (PyErr_Occurred()) SWIG_fail;
8504 }
8505 resultobj = SWIG_Py_Void();
8506 return resultobj;
8507 fail:
8508 return NULL;
8509 }
8510
8511
8512 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8513 PyObject *resultobj = 0;
8514 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8515 wxAlphaPixelData_Accessor result;
8516 void *argp1 = 0 ;
8517 int res1 = 0 ;
8518 PyObject *swig_obj[1] ;
8519
8520 if (!args) SWIG_fail;
8521 swig_obj[0] = args;
8522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8523 if (!SWIG_IsOK(res1)) {
8524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8525 }
8526 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8527 {
8528 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8529 if (PyErr_Occurred()) SWIG_fail;
8530 }
8531 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8532 return resultobj;
8533 fail:
8534 return NULL;
8535 }
8536
8537
8538 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8539 PyObject *resultobj = 0;
8540 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8541 void *argp1 = 0 ;
8542 int res1 = 0 ;
8543 PyObject *swig_obj[1] ;
8544
8545 if (!args) SWIG_fail;
8546 swig_obj[0] = args;
8547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8548 if (!SWIG_IsOK(res1)) {
8549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8550 }
8551 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8552 {
8553 (arg1)->UseAlpha();
8554 if (PyErr_Occurred()) SWIG_fail;
8555 }
8556 resultobj = SWIG_Py_Void();
8557 return resultobj;
8558 fail:
8559 return NULL;
8560 }
8561
8562
8563 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8564 PyObject *resultobj = 0;
8565 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8566 bool result;
8567 void *argp1 = 0 ;
8568 int res1 = 0 ;
8569 PyObject *swig_obj[1] ;
8570
8571 if (!args) SWIG_fail;
8572 swig_obj[0] = args;
8573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8574 if (!SWIG_IsOK(res1)) {
8575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8576 }
8577 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8578 {
8579 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8580 if (PyErr_Occurred()) SWIG_fail;
8581 }
8582 {
8583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8584 }
8585 return resultobj;
8586 fail:
8587 return NULL;
8588 }
8589
8590
8591 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8592 PyObject *obj;
8593 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8594 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8595 return SWIG_Py_Void();
8596 }
8597
8598 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8599 return SWIG_Python_InitShadowInstance(args);
8600 }
8601
8602 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8603 PyObject *resultobj = 0;
8604 wxAlphaPixelData *arg1 = 0 ;
8605 wxAlphaPixelData_Accessor *result = 0 ;
8606 void *argp1 = 0 ;
8607 int res1 = 0 ;
8608
8609 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8611 if (!SWIG_IsOK(res1)) {
8612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8613 }
8614 if (!argp1) {
8615 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8616 }
8617 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8618 {
8619 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8620 if (PyErr_Occurred()) SWIG_fail;
8621 }
8622 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8623 return resultobj;
8624 fail:
8625 return NULL;
8626 }
8627
8628
8629 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8630 PyObject *resultobj = 0;
8631 wxBitmap *arg1 = 0 ;
8632 wxAlphaPixelData *arg2 = 0 ;
8633 wxAlphaPixelData_Accessor *result = 0 ;
8634 void *argp1 = 0 ;
8635 int res1 = 0 ;
8636 void *argp2 = 0 ;
8637 int res2 = 0 ;
8638
8639 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8641 if (!SWIG_IsOK(res1)) {
8642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8643 }
8644 if (!argp1) {
8645 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8646 }
8647 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8648 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8649 if (!SWIG_IsOK(res2)) {
8650 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8651 }
8652 if (!argp2) {
8653 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8654 }
8655 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8656 {
8657 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8658 if (PyErr_Occurred()) SWIG_fail;
8659 }
8660 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8661 return resultobj;
8662 fail:
8663 return NULL;
8664 }
8665
8666
8667 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8668 PyObject *resultobj = 0;
8669 wxAlphaPixelData_Accessor *result = 0 ;
8670
8671 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8672 {
8673 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8674 if (PyErr_Occurred()) SWIG_fail;
8675 }
8676 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8677 return resultobj;
8678 fail:
8679 return NULL;
8680 }
8681
8682
8683 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8684 int argc;
8685 PyObject *argv[3];
8686
8687 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8688 --argc;
8689 if (argc == 0) {
8690 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8691 }
8692 if (argc == 1) {
8693 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8694 }
8695 if (argc == 2) {
8696 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8697 }
8698
8699 fail:
8700 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8701 return NULL;
8702 }
8703
8704
8705 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8706 PyObject *resultobj = 0;
8707 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8708 void *argp1 = 0 ;
8709 int res1 = 0 ;
8710 PyObject *swig_obj[1] ;
8711
8712 if (!args) SWIG_fail;
8713 swig_obj[0] = args;
8714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8715 if (!SWIG_IsOK(res1)) {
8716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8717 }
8718 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8719 {
8720 delete arg1;
8721
8722 if (PyErr_Occurred()) SWIG_fail;
8723 }
8724 resultobj = SWIG_Py_Void();
8725 return resultobj;
8726 fail:
8727 return NULL;
8728 }
8729
8730
8731 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8732 PyObject *resultobj = 0;
8733 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8734 wxAlphaPixelData *arg2 = 0 ;
8735 void *argp1 = 0 ;
8736 int res1 = 0 ;
8737 void *argp2 = 0 ;
8738 int res2 = 0 ;
8739 PyObject * obj0 = 0 ;
8740 PyObject * obj1 = 0 ;
8741 char * kwnames[] = {
8742 (char *) "self",(char *) "data", NULL
8743 };
8744
8745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8747 if (!SWIG_IsOK(res1)) {
8748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8749 }
8750 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8751 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8752 if (!SWIG_IsOK(res2)) {
8753 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8754 }
8755 if (!argp2) {
8756 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8757 }
8758 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8759 {
8760 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8761 if (PyErr_Occurred()) SWIG_fail;
8762 }
8763 resultobj = SWIG_Py_Void();
8764 return resultobj;
8765 fail:
8766 return NULL;
8767 }
8768
8769
8770 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8771 PyObject *resultobj = 0;
8772 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8773 bool result;
8774 void *argp1 = 0 ;
8775 int res1 = 0 ;
8776 PyObject *swig_obj[1] ;
8777
8778 if (!args) SWIG_fail;
8779 swig_obj[0] = args;
8780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8781 if (!SWIG_IsOK(res1)) {
8782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8783 }
8784 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8785 {
8786 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8787 if (PyErr_Occurred()) SWIG_fail;
8788 }
8789 {
8790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8791 }
8792 return resultobj;
8793 fail:
8794 return NULL;
8795 }
8796
8797
8798 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8799 PyObject *resultobj = 0;
8800 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8801 void *argp1 = 0 ;
8802 int res1 = 0 ;
8803 PyObject *swig_obj[1] ;
8804
8805 if (!args) SWIG_fail;
8806 swig_obj[0] = args;
8807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8808 if (!SWIG_IsOK(res1)) {
8809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8810 }
8811 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8812 {
8813 wxAlphaPixelData_Accessor_nextPixel(arg1);
8814 if (PyErr_Occurred()) SWIG_fail;
8815 }
8816 resultobj = SWIG_Py_Void();
8817 return resultobj;
8818 fail:
8819 return NULL;
8820 }
8821
8822
8823 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8824 PyObject *resultobj = 0;
8825 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8826 wxAlphaPixelData *arg2 = 0 ;
8827 int arg3 ;
8828 int arg4 ;
8829 void *argp1 = 0 ;
8830 int res1 = 0 ;
8831 void *argp2 = 0 ;
8832 int res2 = 0 ;
8833 int val3 ;
8834 int ecode3 = 0 ;
8835 int val4 ;
8836 int ecode4 = 0 ;
8837 PyObject * obj0 = 0 ;
8838 PyObject * obj1 = 0 ;
8839 PyObject * obj2 = 0 ;
8840 PyObject * obj3 = 0 ;
8841 char * kwnames[] = {
8842 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8843 };
8844
8845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8847 if (!SWIG_IsOK(res1)) {
8848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8849 }
8850 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8851 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8852 if (!SWIG_IsOK(res2)) {
8853 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8854 }
8855 if (!argp2) {
8856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8857 }
8858 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8859 ecode3 = SWIG_AsVal_int(obj2, &val3);
8860 if (!SWIG_IsOK(ecode3)) {
8861 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8862 }
8863 arg3 = static_cast< int >(val3);
8864 ecode4 = SWIG_AsVal_int(obj3, &val4);
8865 if (!SWIG_IsOK(ecode4)) {
8866 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8867 }
8868 arg4 = static_cast< int >(val4);
8869 {
8870 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8871 if (PyErr_Occurred()) SWIG_fail;
8872 }
8873 resultobj = SWIG_Py_Void();
8874 return resultobj;
8875 fail:
8876 return NULL;
8877 }
8878
8879
8880 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8881 PyObject *resultobj = 0;
8882 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8883 wxAlphaPixelData *arg2 = 0 ;
8884 int arg3 ;
8885 void *argp1 = 0 ;
8886 int res1 = 0 ;
8887 void *argp2 = 0 ;
8888 int res2 = 0 ;
8889 int val3 ;
8890 int ecode3 = 0 ;
8891 PyObject * obj0 = 0 ;
8892 PyObject * obj1 = 0 ;
8893 PyObject * obj2 = 0 ;
8894 char * kwnames[] = {
8895 (char *) "self",(char *) "data",(char *) "x", NULL
8896 };
8897
8898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8900 if (!SWIG_IsOK(res1)) {
8901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8902 }
8903 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8904 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8905 if (!SWIG_IsOK(res2)) {
8906 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8907 }
8908 if (!argp2) {
8909 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8910 }
8911 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8912 ecode3 = SWIG_AsVal_int(obj2, &val3);
8913 if (!SWIG_IsOK(ecode3)) {
8914 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8915 }
8916 arg3 = static_cast< int >(val3);
8917 {
8918 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8919 if (PyErr_Occurred()) SWIG_fail;
8920 }
8921 resultobj = SWIG_Py_Void();
8922 return resultobj;
8923 fail:
8924 return NULL;
8925 }
8926
8927
8928 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8929 PyObject *resultobj = 0;
8930 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8931 wxAlphaPixelData *arg2 = 0 ;
8932 int arg3 ;
8933 void *argp1 = 0 ;
8934 int res1 = 0 ;
8935 void *argp2 = 0 ;
8936 int res2 = 0 ;
8937 int val3 ;
8938 int ecode3 = 0 ;
8939 PyObject * obj0 = 0 ;
8940 PyObject * obj1 = 0 ;
8941 PyObject * obj2 = 0 ;
8942 char * kwnames[] = {
8943 (char *) "self",(char *) "data",(char *) "y", NULL
8944 };
8945
8946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8948 if (!SWIG_IsOK(res1)) {
8949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8950 }
8951 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8952 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8953 if (!SWIG_IsOK(res2)) {
8954 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8955 }
8956 if (!argp2) {
8957 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8958 }
8959 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8960 ecode3 = SWIG_AsVal_int(obj2, &val3);
8961 if (!SWIG_IsOK(ecode3)) {
8962 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8963 }
8964 arg3 = static_cast< int >(val3);
8965 {
8966 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8967 if (PyErr_Occurred()) SWIG_fail;
8968 }
8969 resultobj = SWIG_Py_Void();
8970 return resultobj;
8971 fail:
8972 return NULL;
8973 }
8974
8975
8976 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8977 PyObject *resultobj = 0;
8978 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8979 wxAlphaPixelData *arg2 = 0 ;
8980 int arg3 ;
8981 int arg4 ;
8982 void *argp1 = 0 ;
8983 int res1 = 0 ;
8984 void *argp2 = 0 ;
8985 int res2 = 0 ;
8986 int val3 ;
8987 int ecode3 = 0 ;
8988 int val4 ;
8989 int ecode4 = 0 ;
8990 PyObject * obj0 = 0 ;
8991 PyObject * obj1 = 0 ;
8992 PyObject * obj2 = 0 ;
8993 PyObject * obj3 = 0 ;
8994 char * kwnames[] = {
8995 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8996 };
8997
8998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
9000 if (!SWIG_IsOK(res1)) {
9001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
9002 }
9003 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
9004 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
9005 if (!SWIG_IsOK(res2)) {
9006 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
9007 }
9008 if (!argp2) {
9009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
9010 }
9011 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
9012 ecode3 = SWIG_AsVal_int(obj2, &val3);
9013 if (!SWIG_IsOK(ecode3)) {
9014 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
9015 }
9016 arg3 = static_cast< int >(val3);
9017 ecode4 = SWIG_AsVal_int(obj3, &val4);
9018 if (!SWIG_IsOK(ecode4)) {
9019 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
9020 }
9021 arg4 = static_cast< int >(val4);
9022 {
9023 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
9024 if (PyErr_Occurred()) SWIG_fail;
9025 }
9026 resultobj = SWIG_Py_Void();
9027 return resultobj;
9028 fail:
9029 return NULL;
9030 }
9031
9032
9033 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9034 PyObject *resultobj = 0;
9035 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9036 byte arg2 ;
9037 byte arg3 ;
9038 byte arg4 ;
9039 byte arg5 ;
9040 void *argp1 = 0 ;
9041 int res1 = 0 ;
9042 unsigned char val2 ;
9043 int ecode2 = 0 ;
9044 unsigned char val3 ;
9045 int ecode3 = 0 ;
9046 unsigned char val4 ;
9047 int ecode4 = 0 ;
9048 unsigned char val5 ;
9049 int ecode5 = 0 ;
9050 PyObject * obj0 = 0 ;
9051 PyObject * obj1 = 0 ;
9052 PyObject * obj2 = 0 ;
9053 PyObject * obj3 = 0 ;
9054 PyObject * obj4 = 0 ;
9055 char * kwnames[] = {
9056 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
9057 };
9058
9059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
9061 if (!SWIG_IsOK(res1)) {
9062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
9063 }
9064 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
9065 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
9066 if (!SWIG_IsOK(ecode2)) {
9067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
9068 }
9069 arg2 = static_cast< byte >(val2);
9070 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
9071 if (!SWIG_IsOK(ecode3)) {
9072 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
9073 }
9074 arg3 = static_cast< byte >(val3);
9075 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
9076 if (!SWIG_IsOK(ecode4)) {
9077 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
9078 }
9079 arg4 = static_cast< byte >(val4);
9080 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
9081 if (!SWIG_IsOK(ecode5)) {
9082 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
9083 }
9084 arg5 = static_cast< byte >(val5);
9085 {
9086 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
9087 if (PyErr_Occurred()) SWIG_fail;
9088 }
9089 resultobj = SWIG_Py_Void();
9090 return resultobj;
9091 fail:
9092 return NULL;
9093 }
9094
9095
9096 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9097 PyObject *resultobj = 0;
9098 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9099 PyObject *result = 0 ;
9100 void *argp1 = 0 ;
9101 int res1 = 0 ;
9102 PyObject *swig_obj[1] ;
9103
9104 if (!args) SWIG_fail;
9105 swig_obj[0] = args;
9106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
9107 if (!SWIG_IsOK(res1)) {
9108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
9109 }
9110 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
9111 {
9112 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
9113 if (PyErr_Occurred()) SWIG_fail;
9114 }
9115 resultobj = result;
9116 return resultobj;
9117 fail:
9118 return NULL;
9119 }
9120
9121
9122 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9123 PyObject *obj;
9124 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9125 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
9126 return SWIG_Py_Void();
9127 }
9128
9129 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9130 return SWIG_Python_InitShadowInstance(args);
9131 }
9132
9133 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9134 PyObject *resultobj = 0;
9135 wxBitmap *arg1 = 0 ;
9136 wxColour const &arg2_defvalue = wxNullColour ;
9137 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
9138 wxMask *result = 0 ;
9139 void *argp1 = 0 ;
9140 int res1 = 0 ;
9141 wxColour temp2 ;
9142 PyObject * obj0 = 0 ;
9143 PyObject * obj1 = 0 ;
9144 char * kwnames[] = {
9145 (char *) "bitmap",(char *) "colour", NULL
9146 };
9147
9148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
9149 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9150 if (!SWIG_IsOK(res1)) {
9151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9152 }
9153 if (!argp1) {
9154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9155 }
9156 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9157 if (obj1) {
9158 {
9159 arg2 = &temp2;
9160 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9161 }
9162 }
9163 {
9164 if (!wxPyCheckForApp()) SWIG_fail;
9165 PyThreadState* __tstate = wxPyBeginAllowThreads();
9166 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
9167 wxPyEndAllowThreads(__tstate);
9168 if (PyErr_Occurred()) SWIG_fail;
9169 }
9170 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9171 return resultobj;
9172 fail:
9173 return NULL;
9174 }
9175
9176
9177 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9178 PyObject *resultobj = 0;
9179 wxMask *arg1 = (wxMask *) 0 ;
9180 void *argp1 = 0 ;
9181 int res1 = 0 ;
9182 PyObject *swig_obj[1] ;
9183
9184 if (!args) SWIG_fail;
9185 swig_obj[0] = args;
9186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9187 if (!SWIG_IsOK(res1)) {
9188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9189 }
9190 arg1 = reinterpret_cast< wxMask * >(argp1);
9191 {
9192 delete arg1;
9193
9194 if (PyErr_Occurred()) SWIG_fail;
9195 }
9196 resultobj = SWIG_Py_Void();
9197 return resultobj;
9198 fail:
9199 return NULL;
9200 }
9201
9202
9203 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9204 PyObject *obj;
9205 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9206 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9207 return SWIG_Py_Void();
9208 }
9209
9210 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9211 return SWIG_Python_InitShadowInstance(args);
9212 }
9213
9214 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9215 PyObject *resultobj = 0;
9216 wxString *arg1 = 0 ;
9217 wxBitmapType arg2 ;
9218 int arg3 = (int) -1 ;
9219 int arg4 = (int) -1 ;
9220 wxIcon *result = 0 ;
9221 bool temp1 = false ;
9222 int val2 ;
9223 int ecode2 = 0 ;
9224 int val3 ;
9225 int ecode3 = 0 ;
9226 int val4 ;
9227 int ecode4 = 0 ;
9228 PyObject * obj0 = 0 ;
9229 PyObject * obj1 = 0 ;
9230 PyObject * obj2 = 0 ;
9231 PyObject * obj3 = 0 ;
9232 char * kwnames[] = {
9233 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9234 };
9235
9236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9237 {
9238 arg1 = wxString_in_helper(obj0);
9239 if (arg1 == NULL) SWIG_fail;
9240 temp1 = true;
9241 }
9242 ecode2 = SWIG_AsVal_int(obj1, &val2);
9243 if (!SWIG_IsOK(ecode2)) {
9244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9245 }
9246 arg2 = static_cast< wxBitmapType >(val2);
9247 if (obj2) {
9248 ecode3 = SWIG_AsVal_int(obj2, &val3);
9249 if (!SWIG_IsOK(ecode3)) {
9250 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9251 }
9252 arg3 = static_cast< int >(val3);
9253 }
9254 if (obj3) {
9255 ecode4 = SWIG_AsVal_int(obj3, &val4);
9256 if (!SWIG_IsOK(ecode4)) {
9257 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9258 }
9259 arg4 = static_cast< int >(val4);
9260 }
9261 {
9262 if (!wxPyCheckForApp()) SWIG_fail;
9263 PyThreadState* __tstate = wxPyBeginAllowThreads();
9264 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9265 wxPyEndAllowThreads(__tstate);
9266 if (PyErr_Occurred()) SWIG_fail;
9267 }
9268 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9269 {
9270 if (temp1)
9271 delete arg1;
9272 }
9273 return resultobj;
9274 fail:
9275 {
9276 if (temp1)
9277 delete arg1;
9278 }
9279 return NULL;
9280 }
9281
9282
9283 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9284 PyObject *resultobj = 0;
9285 wxIcon *arg1 = (wxIcon *) 0 ;
9286 void *argp1 = 0 ;
9287 int res1 = 0 ;
9288 PyObject *swig_obj[1] ;
9289
9290 if (!args) SWIG_fail;
9291 swig_obj[0] = args;
9292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9293 if (!SWIG_IsOK(res1)) {
9294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9295 }
9296 arg1 = reinterpret_cast< wxIcon * >(argp1);
9297 {
9298 PyThreadState* __tstate = wxPyBeginAllowThreads();
9299 delete arg1;
9300
9301 wxPyEndAllowThreads(__tstate);
9302 if (PyErr_Occurred()) SWIG_fail;
9303 }
9304 resultobj = SWIG_Py_Void();
9305 return resultobj;
9306 fail:
9307 return NULL;
9308 }
9309
9310
9311 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9312 PyObject *resultobj = 0;
9313 wxIcon *result = 0 ;
9314
9315 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9316 {
9317 if (!wxPyCheckForApp()) SWIG_fail;
9318 PyThreadState* __tstate = wxPyBeginAllowThreads();
9319 result = (wxIcon *)new wxIcon();
9320 wxPyEndAllowThreads(__tstate);
9321 if (PyErr_Occurred()) SWIG_fail;
9322 }
9323 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9324 return resultobj;
9325 fail:
9326 return NULL;
9327 }
9328
9329
9330 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9331 PyObject *resultobj = 0;
9332 wxIconLocation *arg1 = 0 ;
9333 wxIcon *result = 0 ;
9334 void *argp1 = 0 ;
9335 int res1 = 0 ;
9336 PyObject * obj0 = 0 ;
9337 char * kwnames[] = {
9338 (char *) "loc", NULL
9339 };
9340
9341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9342 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9343 if (!SWIG_IsOK(res1)) {
9344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9345 }
9346 if (!argp1) {
9347 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9348 }
9349 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9350 {
9351 if (!wxPyCheckForApp()) SWIG_fail;
9352 PyThreadState* __tstate = wxPyBeginAllowThreads();
9353 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9354 wxPyEndAllowThreads(__tstate);
9355 if (PyErr_Occurred()) SWIG_fail;
9356 }
9357 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9358 return resultobj;
9359 fail:
9360 return NULL;
9361 }
9362
9363
9364 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9365 PyObject *resultobj = 0;
9366 wxBitmap *arg1 = 0 ;
9367 wxIcon *result = 0 ;
9368 void *argp1 = 0 ;
9369 int res1 = 0 ;
9370 PyObject * obj0 = 0 ;
9371 char * kwnames[] = {
9372 (char *) "bmp", NULL
9373 };
9374
9375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9376 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9377 if (!SWIG_IsOK(res1)) {
9378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9379 }
9380 if (!argp1) {
9381 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9382 }
9383 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9384 {
9385 if (!wxPyCheckForApp()) SWIG_fail;
9386 PyThreadState* __tstate = wxPyBeginAllowThreads();
9387 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9388 wxPyEndAllowThreads(__tstate);
9389 if (PyErr_Occurred()) SWIG_fail;
9390 }
9391 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9392 return resultobj;
9393 fail:
9394 return NULL;
9395 }
9396
9397
9398 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9399 PyObject *resultobj = 0;
9400 PyObject *arg1 = (PyObject *) 0 ;
9401 wxIcon *result = 0 ;
9402 PyObject * obj0 = 0 ;
9403 char * kwnames[] = {
9404 (char *) "listOfStrings", NULL
9405 };
9406
9407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9408 arg1 = obj0;
9409 {
9410 if (!wxPyCheckForApp()) SWIG_fail;
9411 PyThreadState* __tstate = wxPyBeginAllowThreads();
9412 result = (wxIcon *)new_wxIcon(arg1);
9413 wxPyEndAllowThreads(__tstate);
9414 if (PyErr_Occurred()) SWIG_fail;
9415 }
9416 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9417 return resultobj;
9418 fail:
9419 return NULL;
9420 }
9421
9422
9423 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9424 PyObject *resultobj = 0;
9425 wxIcon *arg1 = (wxIcon *) 0 ;
9426 wxString *arg2 = 0 ;
9427 wxBitmapType arg3 ;
9428 bool result;
9429 void *argp1 = 0 ;
9430 int res1 = 0 ;
9431 bool temp2 = false ;
9432 int val3 ;
9433 int ecode3 = 0 ;
9434 PyObject * obj0 = 0 ;
9435 PyObject * obj1 = 0 ;
9436 PyObject * obj2 = 0 ;
9437 char * kwnames[] = {
9438 (char *) "self",(char *) "name",(char *) "type", NULL
9439 };
9440
9441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9443 if (!SWIG_IsOK(res1)) {
9444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9445 }
9446 arg1 = reinterpret_cast< wxIcon * >(argp1);
9447 {
9448 arg2 = wxString_in_helper(obj1);
9449 if (arg2 == NULL) SWIG_fail;
9450 temp2 = true;
9451 }
9452 ecode3 = SWIG_AsVal_int(obj2, &val3);
9453 if (!SWIG_IsOK(ecode3)) {
9454 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9455 }
9456 arg3 = static_cast< wxBitmapType >(val3);
9457 {
9458 PyThreadState* __tstate = wxPyBeginAllowThreads();
9459 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9460 wxPyEndAllowThreads(__tstate);
9461 if (PyErr_Occurred()) SWIG_fail;
9462 }
9463 {
9464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9465 }
9466 {
9467 if (temp2)
9468 delete arg2;
9469 }
9470 return resultobj;
9471 fail:
9472 {
9473 if (temp2)
9474 delete arg2;
9475 }
9476 return NULL;
9477 }
9478
9479
9480 SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9481 PyObject *resultobj = 0;
9482 wxIcon *arg1 = (wxIcon *) 0 ;
9483 long result;
9484 void *argp1 = 0 ;
9485 int res1 = 0 ;
9486 PyObject *swig_obj[1] ;
9487
9488 if (!args) SWIG_fail;
9489 swig_obj[0] = args;
9490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9491 if (!SWIG_IsOK(res1)) {
9492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9493 }
9494 arg1 = reinterpret_cast< wxIcon * >(argp1);
9495 {
9496 PyThreadState* __tstate = wxPyBeginAllowThreads();
9497 result = (long)(arg1)->GetHandle();
9498 wxPyEndAllowThreads(__tstate);
9499 if (PyErr_Occurred()) SWIG_fail;
9500 }
9501 resultobj = SWIG_From_long(static_cast< long >(result));
9502 return resultobj;
9503 fail:
9504 return NULL;
9505 }
9506
9507
9508 SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9509 PyObject *resultobj = 0;
9510 wxIcon *arg1 = (wxIcon *) 0 ;
9511 long arg2 ;
9512 void *argp1 = 0 ;
9513 int res1 = 0 ;
9514 long val2 ;
9515 int ecode2 = 0 ;
9516 PyObject * obj0 = 0 ;
9517 PyObject * obj1 = 0 ;
9518 char * kwnames[] = {
9519 (char *) "self",(char *) "handle", NULL
9520 };
9521
9522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
9523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9524 if (!SWIG_IsOK(res1)) {
9525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9526 }
9527 arg1 = reinterpret_cast< wxIcon * >(argp1);
9528 ecode2 = SWIG_AsVal_long(obj1, &val2);
9529 if (!SWIG_IsOK(ecode2)) {
9530 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
9531 }
9532 arg2 = static_cast< long >(val2);
9533 {
9534 PyThreadState* __tstate = wxPyBeginAllowThreads();
9535 wxIcon_SetHandle(arg1,arg2);
9536 wxPyEndAllowThreads(__tstate);
9537 if (PyErr_Occurred()) SWIG_fail;
9538 }
9539 resultobj = SWIG_Py_Void();
9540 return resultobj;
9541 fail:
9542 return NULL;
9543 }
9544
9545
9546 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9547 PyObject *resultobj = 0;
9548 wxIcon *arg1 = (wxIcon *) 0 ;
9549 bool result;
9550 void *argp1 = 0 ;
9551 int res1 = 0 ;
9552 PyObject *swig_obj[1] ;
9553
9554 if (!args) SWIG_fail;
9555 swig_obj[0] = args;
9556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9557 if (!SWIG_IsOK(res1)) {
9558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
9559 }
9560 arg1 = reinterpret_cast< wxIcon * >(argp1);
9561 {
9562 PyThreadState* __tstate = wxPyBeginAllowThreads();
9563 result = (bool)(arg1)->IsOk();
9564 wxPyEndAllowThreads(__tstate);
9565 if (PyErr_Occurred()) SWIG_fail;
9566 }
9567 {
9568 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9569 }
9570 return resultobj;
9571 fail:
9572 return NULL;
9573 }
9574
9575
9576 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9577 PyObject *resultobj = 0;
9578 wxIcon *arg1 = (wxIcon *) 0 ;
9579 int result;
9580 void *argp1 = 0 ;
9581 int res1 = 0 ;
9582 PyObject *swig_obj[1] ;
9583
9584 if (!args) SWIG_fail;
9585 swig_obj[0] = args;
9586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9587 if (!SWIG_IsOK(res1)) {
9588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9589 }
9590 arg1 = reinterpret_cast< wxIcon * >(argp1);
9591 {
9592 PyThreadState* __tstate = wxPyBeginAllowThreads();
9593 result = (int)(arg1)->GetWidth();
9594 wxPyEndAllowThreads(__tstate);
9595 if (PyErr_Occurred()) SWIG_fail;
9596 }
9597 resultobj = SWIG_From_int(static_cast< int >(result));
9598 return resultobj;
9599 fail:
9600 return NULL;
9601 }
9602
9603
9604 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9605 PyObject *resultobj = 0;
9606 wxIcon *arg1 = (wxIcon *) 0 ;
9607 int result;
9608 void *argp1 = 0 ;
9609 int res1 = 0 ;
9610 PyObject *swig_obj[1] ;
9611
9612 if (!args) SWIG_fail;
9613 swig_obj[0] = args;
9614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9615 if (!SWIG_IsOK(res1)) {
9616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9617 }
9618 arg1 = reinterpret_cast< wxIcon * >(argp1);
9619 {
9620 PyThreadState* __tstate = wxPyBeginAllowThreads();
9621 result = (int)(arg1)->GetHeight();
9622 wxPyEndAllowThreads(__tstate);
9623 if (PyErr_Occurred()) SWIG_fail;
9624 }
9625 resultobj = SWIG_From_int(static_cast< int >(result));
9626 return resultobj;
9627 fail:
9628 return NULL;
9629 }
9630
9631
9632 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9633 PyObject *resultobj = 0;
9634 wxIcon *arg1 = (wxIcon *) 0 ;
9635 int result;
9636 void *argp1 = 0 ;
9637 int res1 = 0 ;
9638 PyObject *swig_obj[1] ;
9639
9640 if (!args) SWIG_fail;
9641 swig_obj[0] = args;
9642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9643 if (!SWIG_IsOK(res1)) {
9644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9645 }
9646 arg1 = reinterpret_cast< wxIcon * >(argp1);
9647 {
9648 PyThreadState* __tstate = wxPyBeginAllowThreads();
9649 result = (int)(arg1)->GetDepth();
9650 wxPyEndAllowThreads(__tstate);
9651 if (PyErr_Occurred()) SWIG_fail;
9652 }
9653 resultobj = SWIG_From_int(static_cast< int >(result));
9654 return resultobj;
9655 fail:
9656 return NULL;
9657 }
9658
9659
9660 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9661 PyObject *resultobj = 0;
9662 wxIcon *arg1 = (wxIcon *) 0 ;
9663 int arg2 ;
9664 void *argp1 = 0 ;
9665 int res1 = 0 ;
9666 int val2 ;
9667 int ecode2 = 0 ;
9668 PyObject * obj0 = 0 ;
9669 PyObject * obj1 = 0 ;
9670 char * kwnames[] = {
9671 (char *) "self",(char *) "w", NULL
9672 };
9673
9674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9676 if (!SWIG_IsOK(res1)) {
9677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9678 }
9679 arg1 = reinterpret_cast< wxIcon * >(argp1);
9680 ecode2 = SWIG_AsVal_int(obj1, &val2);
9681 if (!SWIG_IsOK(ecode2)) {
9682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9683 }
9684 arg2 = static_cast< int >(val2);
9685 {
9686 PyThreadState* __tstate = wxPyBeginAllowThreads();
9687 (arg1)->SetWidth(arg2);
9688 wxPyEndAllowThreads(__tstate);
9689 if (PyErr_Occurred()) SWIG_fail;
9690 }
9691 resultobj = SWIG_Py_Void();
9692 return resultobj;
9693 fail:
9694 return NULL;
9695 }
9696
9697
9698 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9699 PyObject *resultobj = 0;
9700 wxIcon *arg1 = (wxIcon *) 0 ;
9701 int arg2 ;
9702 void *argp1 = 0 ;
9703 int res1 = 0 ;
9704 int val2 ;
9705 int ecode2 = 0 ;
9706 PyObject * obj0 = 0 ;
9707 PyObject * obj1 = 0 ;
9708 char * kwnames[] = {
9709 (char *) "self",(char *) "h", NULL
9710 };
9711
9712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9714 if (!SWIG_IsOK(res1)) {
9715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9716 }
9717 arg1 = reinterpret_cast< wxIcon * >(argp1);
9718 ecode2 = SWIG_AsVal_int(obj1, &val2);
9719 if (!SWIG_IsOK(ecode2)) {
9720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9721 }
9722 arg2 = static_cast< int >(val2);
9723 {
9724 PyThreadState* __tstate = wxPyBeginAllowThreads();
9725 (arg1)->SetHeight(arg2);
9726 wxPyEndAllowThreads(__tstate);
9727 if (PyErr_Occurred()) SWIG_fail;
9728 }
9729 resultobj = SWIG_Py_Void();
9730 return resultobj;
9731 fail:
9732 return NULL;
9733 }
9734
9735
9736 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9737 PyObject *resultobj = 0;
9738 wxIcon *arg1 = (wxIcon *) 0 ;
9739 int arg2 ;
9740 void *argp1 = 0 ;
9741 int res1 = 0 ;
9742 int val2 ;
9743 int ecode2 = 0 ;
9744 PyObject * obj0 = 0 ;
9745 PyObject * obj1 = 0 ;
9746 char * kwnames[] = {
9747 (char *) "self",(char *) "d", NULL
9748 };
9749
9750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9752 if (!SWIG_IsOK(res1)) {
9753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9754 }
9755 arg1 = reinterpret_cast< wxIcon * >(argp1);
9756 ecode2 = SWIG_AsVal_int(obj1, &val2);
9757 if (!SWIG_IsOK(ecode2)) {
9758 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9759 }
9760 arg2 = static_cast< int >(val2);
9761 {
9762 PyThreadState* __tstate = wxPyBeginAllowThreads();
9763 (arg1)->SetDepth(arg2);
9764 wxPyEndAllowThreads(__tstate);
9765 if (PyErr_Occurred()) SWIG_fail;
9766 }
9767 resultobj = SWIG_Py_Void();
9768 return resultobj;
9769 fail:
9770 return NULL;
9771 }
9772
9773
9774 SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9775 PyObject *resultobj = 0;
9776 wxIcon *arg1 = (wxIcon *) 0 ;
9777 wxSize *arg2 = 0 ;
9778 void *argp1 = 0 ;
9779 int res1 = 0 ;
9780 wxSize temp2 ;
9781 PyObject * obj0 = 0 ;
9782 PyObject * obj1 = 0 ;
9783 char * kwnames[] = {
9784 (char *) "self",(char *) "size", NULL
9785 };
9786
9787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
9788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9789 if (!SWIG_IsOK(res1)) {
9790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
9791 }
9792 arg1 = reinterpret_cast< wxIcon * >(argp1);
9793 {
9794 arg2 = &temp2;
9795 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9796 }
9797 {
9798 PyThreadState* __tstate = wxPyBeginAllowThreads();
9799 (arg1)->SetSize((wxSize const &)*arg2);
9800 wxPyEndAllowThreads(__tstate);
9801 if (PyErr_Occurred()) SWIG_fail;
9802 }
9803 resultobj = SWIG_Py_Void();
9804 return resultobj;
9805 fail:
9806 return NULL;
9807 }
9808
9809
9810 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9811 PyObject *resultobj = 0;
9812 wxIcon *arg1 = (wxIcon *) 0 ;
9813 wxBitmap *arg2 = 0 ;
9814 void *argp1 = 0 ;
9815 int res1 = 0 ;
9816 void *argp2 = 0 ;
9817 int res2 = 0 ;
9818 PyObject * obj0 = 0 ;
9819 PyObject * obj1 = 0 ;
9820 char * kwnames[] = {
9821 (char *) "self",(char *) "bmp", NULL
9822 };
9823
9824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9826 if (!SWIG_IsOK(res1)) {
9827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9828 }
9829 arg1 = reinterpret_cast< wxIcon * >(argp1);
9830 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9831 if (!SWIG_IsOK(res2)) {
9832 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9833 }
9834 if (!argp2) {
9835 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9836 }
9837 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9838 {
9839 PyThreadState* __tstate = wxPyBeginAllowThreads();
9840 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9841 wxPyEndAllowThreads(__tstate);
9842 if (PyErr_Occurred()) SWIG_fail;
9843 }
9844 resultobj = SWIG_Py_Void();
9845 return resultobj;
9846 fail:
9847 return NULL;
9848 }
9849
9850
9851 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9852 PyObject *obj;
9853 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9854 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9855 return SWIG_Py_Void();
9856 }
9857
9858 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9859 return SWIG_Python_InitShadowInstance(args);
9860 }
9861
9862 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9863 PyObject *resultobj = 0;
9864 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9865 int arg2 = (int) 0 ;
9866 wxIconLocation *result = 0 ;
9867 bool temp1 = false ;
9868 int val2 ;
9869 int ecode2 = 0 ;
9870 PyObject * obj0 = 0 ;
9871 PyObject * obj1 = 0 ;
9872 char * kwnames[] = {
9873 (char *) "filename",(char *) "num", NULL
9874 };
9875
9876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9877 if (obj0) {
9878 {
9879 arg1 = wxString_in_helper(obj0);
9880 if (arg1 == NULL) SWIG_fail;
9881 temp1 = true;
9882 }
9883 }
9884 if (obj1) {
9885 ecode2 = SWIG_AsVal_int(obj1, &val2);
9886 if (!SWIG_IsOK(ecode2)) {
9887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9888 }
9889 arg2 = static_cast< int >(val2);
9890 }
9891 {
9892 PyThreadState* __tstate = wxPyBeginAllowThreads();
9893 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9894 wxPyEndAllowThreads(__tstate);
9895 if (PyErr_Occurred()) SWIG_fail;
9896 }
9897 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9898 {
9899 if (temp1)
9900 delete arg1;
9901 }
9902 return resultobj;
9903 fail:
9904 {
9905 if (temp1)
9906 delete arg1;
9907 }
9908 return NULL;
9909 }
9910
9911
9912 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9913 PyObject *resultobj = 0;
9914 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9915 void *argp1 = 0 ;
9916 int res1 = 0 ;
9917 PyObject *swig_obj[1] ;
9918
9919 if (!args) SWIG_fail;
9920 swig_obj[0] = args;
9921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9922 if (!SWIG_IsOK(res1)) {
9923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9924 }
9925 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9926 {
9927 PyThreadState* __tstate = wxPyBeginAllowThreads();
9928 delete arg1;
9929
9930 wxPyEndAllowThreads(__tstate);
9931 if (PyErr_Occurred()) SWIG_fail;
9932 }
9933 resultobj = SWIG_Py_Void();
9934 return resultobj;
9935 fail:
9936 return NULL;
9937 }
9938
9939
9940 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9941 PyObject *resultobj = 0;
9942 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9943 bool result;
9944 void *argp1 = 0 ;
9945 int res1 = 0 ;
9946 PyObject *swig_obj[1] ;
9947
9948 if (!args) SWIG_fail;
9949 swig_obj[0] = args;
9950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9951 if (!SWIG_IsOK(res1)) {
9952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9953 }
9954 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9955 {
9956 PyThreadState* __tstate = wxPyBeginAllowThreads();
9957 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9958 wxPyEndAllowThreads(__tstate);
9959 if (PyErr_Occurred()) SWIG_fail;
9960 }
9961 {
9962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9963 }
9964 return resultobj;
9965 fail:
9966 return NULL;
9967 }
9968
9969
9970 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9971 PyObject *resultobj = 0;
9972 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9973 wxString *arg2 = 0 ;
9974 void *argp1 = 0 ;
9975 int res1 = 0 ;
9976 bool temp2 = false ;
9977 PyObject * obj0 = 0 ;
9978 PyObject * obj1 = 0 ;
9979 char * kwnames[] = {
9980 (char *) "self",(char *) "filename", NULL
9981 };
9982
9983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9985 if (!SWIG_IsOK(res1)) {
9986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9987 }
9988 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9989 {
9990 arg2 = wxString_in_helper(obj1);
9991 if (arg2 == NULL) SWIG_fail;
9992 temp2 = true;
9993 }
9994 {
9995 PyThreadState* __tstate = wxPyBeginAllowThreads();
9996 (arg1)->SetFileName((wxString const &)*arg2);
9997 wxPyEndAllowThreads(__tstate);
9998 if (PyErr_Occurred()) SWIG_fail;
9999 }
10000 resultobj = SWIG_Py_Void();
10001 {
10002 if (temp2)
10003 delete arg2;
10004 }
10005 return resultobj;
10006 fail:
10007 {
10008 if (temp2)
10009 delete arg2;
10010 }
10011 return NULL;
10012 }
10013
10014
10015 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10016 PyObject *resultobj = 0;
10017 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10018 wxString *result = 0 ;
10019 void *argp1 = 0 ;
10020 int res1 = 0 ;
10021 PyObject *swig_obj[1] ;
10022
10023 if (!args) SWIG_fail;
10024 swig_obj[0] = args;
10025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10026 if (!SWIG_IsOK(res1)) {
10027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
10028 }
10029 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10030 {
10031 PyThreadState* __tstate = wxPyBeginAllowThreads();
10032 {
10033 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
10034 result = (wxString *) &_result_ref;
10035 }
10036 wxPyEndAllowThreads(__tstate);
10037 if (PyErr_Occurred()) SWIG_fail;
10038 }
10039 {
10040 #if wxUSE_UNICODE
10041 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10042 #else
10043 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10044 #endif
10045 }
10046 return resultobj;
10047 fail:
10048 return NULL;
10049 }
10050
10051
10052 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10053 PyObject *resultobj = 0;
10054 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10055 int arg2 ;
10056 void *argp1 = 0 ;
10057 int res1 = 0 ;
10058 int val2 ;
10059 int ecode2 = 0 ;
10060 PyObject * obj0 = 0 ;
10061 PyObject * obj1 = 0 ;
10062 char * kwnames[] = {
10063 (char *) "self",(char *) "num", NULL
10064 };
10065
10066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
10067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10068 if (!SWIG_IsOK(res1)) {
10069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10070 }
10071 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10072 ecode2 = SWIG_AsVal_int(obj1, &val2);
10073 if (!SWIG_IsOK(ecode2)) {
10074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
10075 }
10076 arg2 = static_cast< int >(val2);
10077 {
10078 PyThreadState* __tstate = wxPyBeginAllowThreads();
10079 wxIconLocation_SetIndex(arg1,arg2);
10080 wxPyEndAllowThreads(__tstate);
10081 if (PyErr_Occurred()) SWIG_fail;
10082 }
10083 resultobj = SWIG_Py_Void();
10084 return resultobj;
10085 fail:
10086 return NULL;
10087 }
10088
10089
10090 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10091 PyObject *resultobj = 0;
10092 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10093 int result;
10094 void *argp1 = 0 ;
10095 int res1 = 0 ;
10096 PyObject *swig_obj[1] ;
10097
10098 if (!args) SWIG_fail;
10099 swig_obj[0] = args;
10100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10101 if (!SWIG_IsOK(res1)) {
10102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10103 }
10104 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10105 {
10106 PyThreadState* __tstate = wxPyBeginAllowThreads();
10107 result = (int)wxIconLocation_GetIndex(arg1);
10108 wxPyEndAllowThreads(__tstate);
10109 if (PyErr_Occurred()) SWIG_fail;
10110 }
10111 resultobj = SWIG_From_int(static_cast< int >(result));
10112 return resultobj;
10113 fail:
10114 return NULL;
10115 }
10116
10117
10118 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10119 PyObject *obj;
10120 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10121 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
10122 return SWIG_Py_Void();
10123 }
10124
10125 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10126 return SWIG_Python_InitShadowInstance(args);
10127 }
10128
10129 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10130 PyObject *resultobj = 0;
10131 wxIconBundle *result = 0 ;
10132
10133 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
10134 {
10135 PyThreadState* __tstate = wxPyBeginAllowThreads();
10136 result = (wxIconBundle *)new wxIconBundle();
10137 wxPyEndAllowThreads(__tstate);
10138 if (PyErr_Occurred()) SWIG_fail;
10139 }
10140 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
10141 return resultobj;
10142 fail:
10143 return NULL;
10144 }
10145
10146
10147 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10148 PyObject *resultobj = 0;
10149 wxString *arg1 = 0 ;
10150 long arg2 ;
10151 wxIconBundle *result = 0 ;
10152 bool temp1 = false ;
10153 long val2 ;
10154 int ecode2 = 0 ;
10155 PyObject * obj0 = 0 ;
10156 PyObject * obj1 = 0 ;
10157 char * kwnames[] = {
10158 (char *) "file",(char *) "type", NULL
10159 };
10160
10161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
10162 {
10163 arg1 = wxString_in_helper(obj0);
10164 if (arg1 == NULL) SWIG_fail;
10165 temp1 = true;
10166 }
10167 ecode2 = SWIG_AsVal_long(obj1, &val2);
10168 if (!SWIG_IsOK(ecode2)) {
10169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
10170 }
10171 arg2 = static_cast< long >(val2);
10172 {
10173 PyThreadState* __tstate = wxPyBeginAllowThreads();
10174 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
10175 wxPyEndAllowThreads(__tstate);
10176 if (PyErr_Occurred()) SWIG_fail;
10177 }
10178 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
10179 {
10180 if (temp1)
10181 delete arg1;
10182 }
10183 return resultobj;
10184 fail:
10185 {
10186 if (temp1)
10187 delete arg1;
10188 }
10189 return NULL;
10190 }
10191
10192
10193 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10194 PyObject *resultobj = 0;
10195 wxIcon *arg1 = 0 ;
10196 wxIconBundle *result = 0 ;
10197 void *argp1 = 0 ;
10198 int res1 = 0 ;
10199 PyObject * obj0 = 0 ;
10200 char * kwnames[] = {
10201 (char *) "icon", NULL
10202 };
10203
10204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
10205 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
10206 if (!SWIG_IsOK(res1)) {
10207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
10208 }
10209 if (!argp1) {
10210 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
10211 }
10212 arg1 = reinterpret_cast< wxIcon * >(argp1);
10213 {
10214 PyThreadState* __tstate = wxPyBeginAllowThreads();
10215 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
10216 wxPyEndAllowThreads(__tstate);
10217 if (PyErr_Occurred()) SWIG_fail;
10218 }
10219 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
10220 return resultobj;
10221 fail:
10222 return NULL;
10223 }
10224
10225
10226 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10227 PyObject *resultobj = 0;
10228 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10229 void *argp1 = 0 ;
10230 int res1 = 0 ;
10231 PyObject *swig_obj[1] ;
10232
10233 if (!args) SWIG_fail;
10234 swig_obj[0] = args;
10235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
10236 if (!SWIG_IsOK(res1)) {
10237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10238 }
10239 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10240 {
10241 PyThreadState* __tstate = wxPyBeginAllowThreads();
10242 delete arg1;
10243
10244 wxPyEndAllowThreads(__tstate);
10245 if (PyErr_Occurred()) SWIG_fail;
10246 }
10247 resultobj = SWIG_Py_Void();
10248 return resultobj;
10249 fail:
10250 return NULL;
10251 }
10252
10253
10254 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10255 PyObject *resultobj = 0;
10256 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10257 wxIcon *arg2 = 0 ;
10258 void *argp1 = 0 ;
10259 int res1 = 0 ;
10260 void *argp2 = 0 ;
10261 int res2 = 0 ;
10262 PyObject * obj0 = 0 ;
10263 PyObject * obj1 = 0 ;
10264 char * kwnames[] = {
10265 (char *) "self",(char *) "icon", NULL
10266 };
10267
10268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10270 if (!SWIG_IsOK(res1)) {
10271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10272 }
10273 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10274 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
10275 if (!SWIG_IsOK(res2)) {
10276 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10277 }
10278 if (!argp2) {
10279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10280 }
10281 arg2 = reinterpret_cast< wxIcon * >(argp2);
10282 {
10283 PyThreadState* __tstate = wxPyBeginAllowThreads();
10284 (arg1)->AddIcon((wxIcon const &)*arg2);
10285 wxPyEndAllowThreads(__tstate);
10286 if (PyErr_Occurred()) SWIG_fail;
10287 }
10288 resultobj = SWIG_Py_Void();
10289 return resultobj;
10290 fail:
10291 return NULL;
10292 }
10293
10294
10295 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10296 PyObject *resultobj = 0;
10297 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10298 wxString *arg2 = 0 ;
10299 long arg3 ;
10300 void *argp1 = 0 ;
10301 int res1 = 0 ;
10302 bool temp2 = false ;
10303 long val3 ;
10304 int ecode3 = 0 ;
10305 PyObject * obj0 = 0 ;
10306 PyObject * obj1 = 0 ;
10307 PyObject * obj2 = 0 ;
10308 char * kwnames[] = {
10309 (char *) "self",(char *) "file",(char *) "type", NULL
10310 };
10311
10312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10314 if (!SWIG_IsOK(res1)) {
10315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10316 }
10317 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10318 {
10319 arg2 = wxString_in_helper(obj1);
10320 if (arg2 == NULL) SWIG_fail;
10321 temp2 = true;
10322 }
10323 ecode3 = SWIG_AsVal_long(obj2, &val3);
10324 if (!SWIG_IsOK(ecode3)) {
10325 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10326 }
10327 arg3 = static_cast< long >(val3);
10328 {
10329 PyThreadState* __tstate = wxPyBeginAllowThreads();
10330 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10331 wxPyEndAllowThreads(__tstate);
10332 if (PyErr_Occurred()) SWIG_fail;
10333 }
10334 resultobj = SWIG_Py_Void();
10335 {
10336 if (temp2)
10337 delete arg2;
10338 }
10339 return resultobj;
10340 fail:
10341 {
10342 if (temp2)
10343 delete arg2;
10344 }
10345 return NULL;
10346 }
10347
10348
10349 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10350 PyObject *resultobj = 0;
10351 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10352 wxSize *arg2 = 0 ;
10353 wxIcon *result = 0 ;
10354 void *argp1 = 0 ;
10355 int res1 = 0 ;
10356 wxSize temp2 ;
10357 PyObject * obj0 = 0 ;
10358 PyObject * obj1 = 0 ;
10359 char * kwnames[] = {
10360 (char *) "self",(char *) "size", NULL
10361 };
10362
10363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10365 if (!SWIG_IsOK(res1)) {
10366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10367 }
10368 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10369 {
10370 arg2 = &temp2;
10371 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10372 }
10373 {
10374 PyThreadState* __tstate = wxPyBeginAllowThreads();
10375 {
10376 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10377 result = (wxIcon *) &_result_ref;
10378 }
10379 wxPyEndAllowThreads(__tstate);
10380 if (PyErr_Occurred()) SWIG_fail;
10381 }
10382 {
10383 wxIcon* resultptr = new wxIcon(*result);
10384 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10385 }
10386 return resultobj;
10387 fail:
10388 return NULL;
10389 }
10390
10391
10392 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10393 PyObject *obj;
10394 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10395 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10396 return SWIG_Py_Void();
10397 }
10398
10399 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10400 return SWIG_Python_InitShadowInstance(args);
10401 }
10402
10403 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10404 PyObject *resultobj = 0;
10405 wxString *arg1 = 0 ;
10406 long arg2 ;
10407 int arg3 = (int) 0 ;
10408 int arg4 = (int) 0 ;
10409 wxCursor *result = 0 ;
10410 bool temp1 = false ;
10411 long val2 ;
10412 int ecode2 = 0 ;
10413 int val3 ;
10414 int ecode3 = 0 ;
10415 int val4 ;
10416 int ecode4 = 0 ;
10417 PyObject * obj0 = 0 ;
10418 PyObject * obj1 = 0 ;
10419 PyObject * obj2 = 0 ;
10420 PyObject * obj3 = 0 ;
10421 char * kwnames[] = {
10422 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10423 };
10424
10425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10426 {
10427 arg1 = wxString_in_helper(obj0);
10428 if (arg1 == NULL) SWIG_fail;
10429 temp1 = true;
10430 }
10431 ecode2 = SWIG_AsVal_long(obj1, &val2);
10432 if (!SWIG_IsOK(ecode2)) {
10433 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10434 }
10435 arg2 = static_cast< long >(val2);
10436 if (obj2) {
10437 ecode3 = SWIG_AsVal_int(obj2, &val3);
10438 if (!SWIG_IsOK(ecode3)) {
10439 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10440 }
10441 arg3 = static_cast< int >(val3);
10442 }
10443 if (obj3) {
10444 ecode4 = SWIG_AsVal_int(obj3, &val4);
10445 if (!SWIG_IsOK(ecode4)) {
10446 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10447 }
10448 arg4 = static_cast< int >(val4);
10449 }
10450 {
10451 if (!wxPyCheckForApp()) SWIG_fail;
10452 PyThreadState* __tstate = wxPyBeginAllowThreads();
10453 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10454 wxPyEndAllowThreads(__tstate);
10455 if (PyErr_Occurred()) SWIG_fail;
10456 }
10457 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10458 {
10459 if (temp1)
10460 delete arg1;
10461 }
10462 return resultobj;
10463 fail:
10464 {
10465 if (temp1)
10466 delete arg1;
10467 }
10468 return NULL;
10469 }
10470
10471
10472 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10473 PyObject *resultobj = 0;
10474 wxCursor *arg1 = (wxCursor *) 0 ;
10475 void *argp1 = 0 ;
10476 int res1 = 0 ;
10477 PyObject *swig_obj[1] ;
10478
10479 if (!args) SWIG_fail;
10480 swig_obj[0] = args;
10481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10482 if (!SWIG_IsOK(res1)) {
10483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10484 }
10485 arg1 = reinterpret_cast< wxCursor * >(argp1);
10486 {
10487 PyThreadState* __tstate = wxPyBeginAllowThreads();
10488 delete arg1;
10489
10490 wxPyEndAllowThreads(__tstate);
10491 if (PyErr_Occurred()) SWIG_fail;
10492 }
10493 resultobj = SWIG_Py_Void();
10494 return resultobj;
10495 fail:
10496 return NULL;
10497 }
10498
10499
10500 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10501 PyObject *resultobj = 0;
10502 int arg1 ;
10503 wxCursor *result = 0 ;
10504 int val1 ;
10505 int ecode1 = 0 ;
10506 PyObject * obj0 = 0 ;
10507 char * kwnames[] = {
10508 (char *) "id", NULL
10509 };
10510
10511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10512 ecode1 = SWIG_AsVal_int(obj0, &val1);
10513 if (!SWIG_IsOK(ecode1)) {
10514 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10515 }
10516 arg1 = static_cast< int >(val1);
10517 {
10518 if (!wxPyCheckForApp()) SWIG_fail;
10519 PyThreadState* __tstate = wxPyBeginAllowThreads();
10520 result = (wxCursor *)new wxCursor(arg1);
10521 wxPyEndAllowThreads(__tstate);
10522 if (PyErr_Occurred()) SWIG_fail;
10523 }
10524 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10525 return resultobj;
10526 fail:
10527 return NULL;
10528 }
10529
10530
10531 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10532 PyObject *resultobj = 0;
10533 wxImage *arg1 = 0 ;
10534 wxCursor *result = 0 ;
10535 void *argp1 = 0 ;
10536 int res1 = 0 ;
10537 PyObject * obj0 = 0 ;
10538 char * kwnames[] = {
10539 (char *) "image", NULL
10540 };
10541
10542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10543 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10544 if (!SWIG_IsOK(res1)) {
10545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10546 }
10547 if (!argp1) {
10548 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10549 }
10550 arg1 = reinterpret_cast< wxImage * >(argp1);
10551 {
10552 if (!wxPyCheckForApp()) SWIG_fail;
10553 PyThreadState* __tstate = wxPyBeginAllowThreads();
10554 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10555 wxPyEndAllowThreads(__tstate);
10556 if (PyErr_Occurred()) SWIG_fail;
10557 }
10558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10559 return resultobj;
10560 fail:
10561 return NULL;
10562 }
10563
10564
10565 SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10566 PyObject *resultobj = 0;
10567 wxCursor *arg1 = (wxCursor *) 0 ;
10568 long result;
10569 void *argp1 = 0 ;
10570 int res1 = 0 ;
10571 PyObject *swig_obj[1] ;
10572
10573 if (!args) SWIG_fail;
10574 swig_obj[0] = args;
10575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10576 if (!SWIG_IsOK(res1)) {
10577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10578 }
10579 arg1 = reinterpret_cast< wxCursor * >(argp1);
10580 {
10581 PyThreadState* __tstate = wxPyBeginAllowThreads();
10582 result = (long)(arg1)->GetHandle();
10583 wxPyEndAllowThreads(__tstate);
10584 if (PyErr_Occurred()) SWIG_fail;
10585 }
10586 resultobj = SWIG_From_long(static_cast< long >(result));
10587 return resultobj;
10588 fail:
10589 return NULL;
10590 }
10591
10592
10593 SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10594 PyObject *resultobj = 0;
10595 wxCursor *arg1 = (wxCursor *) 0 ;
10596 long arg2 ;
10597 void *argp1 = 0 ;
10598 int res1 = 0 ;
10599 long val2 ;
10600 int ecode2 = 0 ;
10601 PyObject * obj0 = 0 ;
10602 PyObject * obj1 = 0 ;
10603 char * kwnames[] = {
10604 (char *) "self",(char *) "handle", NULL
10605 };
10606
10607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
10608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10609 if (!SWIG_IsOK(res1)) {
10610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10611 }
10612 arg1 = reinterpret_cast< wxCursor * >(argp1);
10613 ecode2 = SWIG_AsVal_long(obj1, &val2);
10614 if (!SWIG_IsOK(ecode2)) {
10615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
10616 }
10617 arg2 = static_cast< long >(val2);
10618 {
10619 PyThreadState* __tstate = wxPyBeginAllowThreads();
10620 wxCursor_SetHandle(arg1,arg2);
10621 wxPyEndAllowThreads(__tstate);
10622 if (PyErr_Occurred()) SWIG_fail;
10623 }
10624 resultobj = SWIG_Py_Void();
10625 return resultobj;
10626 fail:
10627 return NULL;
10628 }
10629
10630
10631 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10632 PyObject *resultobj = 0;
10633 wxCursor *arg1 = (wxCursor *) 0 ;
10634 bool result;
10635 void *argp1 = 0 ;
10636 int res1 = 0 ;
10637 PyObject *swig_obj[1] ;
10638
10639 if (!args) SWIG_fail;
10640 swig_obj[0] = args;
10641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10642 if (!SWIG_IsOK(res1)) {
10643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
10644 }
10645 arg1 = reinterpret_cast< wxCursor * >(argp1);
10646 {
10647 PyThreadState* __tstate = wxPyBeginAllowThreads();
10648 result = (bool)(arg1)->IsOk();
10649 wxPyEndAllowThreads(__tstate);
10650 if (PyErr_Occurred()) SWIG_fail;
10651 }
10652 {
10653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10654 }
10655 return resultobj;
10656 fail:
10657 return NULL;
10658 }
10659
10660
10661 SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10662 PyObject *resultobj = 0;
10663 wxCursor *arg1 = (wxCursor *) 0 ;
10664 int result;
10665 void *argp1 = 0 ;
10666 int res1 = 0 ;
10667 PyObject *swig_obj[1] ;
10668
10669 if (!args) SWIG_fail;
10670 swig_obj[0] = args;
10671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10672 if (!SWIG_IsOK(res1)) {
10673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10674 }
10675 arg1 = reinterpret_cast< wxCursor * >(argp1);
10676 {
10677 PyThreadState* __tstate = wxPyBeginAllowThreads();
10678 result = (int)(arg1)->GetWidth();
10679 wxPyEndAllowThreads(__tstate);
10680 if (PyErr_Occurred()) SWIG_fail;
10681 }
10682 resultobj = SWIG_From_int(static_cast< int >(result));
10683 return resultobj;
10684 fail:
10685 return NULL;
10686 }
10687
10688
10689 SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10690 PyObject *resultobj = 0;
10691 wxCursor *arg1 = (wxCursor *) 0 ;
10692 int result;
10693 void *argp1 = 0 ;
10694 int res1 = 0 ;
10695 PyObject *swig_obj[1] ;
10696
10697 if (!args) SWIG_fail;
10698 swig_obj[0] = args;
10699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10700 if (!SWIG_IsOK(res1)) {
10701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10702 }
10703 arg1 = reinterpret_cast< wxCursor * >(argp1);
10704 {
10705 PyThreadState* __tstate = wxPyBeginAllowThreads();
10706 result = (int)(arg1)->GetHeight();
10707 wxPyEndAllowThreads(__tstate);
10708 if (PyErr_Occurred()) SWIG_fail;
10709 }
10710 resultobj = SWIG_From_int(static_cast< int >(result));
10711 return resultobj;
10712 fail:
10713 return NULL;
10714 }
10715
10716
10717 SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10718 PyObject *resultobj = 0;
10719 wxCursor *arg1 = (wxCursor *) 0 ;
10720 int result;
10721 void *argp1 = 0 ;
10722 int res1 = 0 ;
10723 PyObject *swig_obj[1] ;
10724
10725 if (!args) SWIG_fail;
10726 swig_obj[0] = args;
10727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10728 if (!SWIG_IsOK(res1)) {
10729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10730 }
10731 arg1 = reinterpret_cast< wxCursor * >(argp1);
10732 {
10733 PyThreadState* __tstate = wxPyBeginAllowThreads();
10734 result = (int)(arg1)->GetDepth();
10735 wxPyEndAllowThreads(__tstate);
10736 if (PyErr_Occurred()) SWIG_fail;
10737 }
10738 resultobj = SWIG_From_int(static_cast< int >(result));
10739 return resultobj;
10740 fail:
10741 return NULL;
10742 }
10743
10744
10745 SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10746 PyObject *resultobj = 0;
10747 wxCursor *arg1 = (wxCursor *) 0 ;
10748 int arg2 ;
10749 void *argp1 = 0 ;
10750 int res1 = 0 ;
10751 int val2 ;
10752 int ecode2 = 0 ;
10753 PyObject * obj0 = 0 ;
10754 PyObject * obj1 = 0 ;
10755 char * kwnames[] = {
10756 (char *) "self",(char *) "w", NULL
10757 };
10758
10759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
10760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10761 if (!SWIG_IsOK(res1)) {
10762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10763 }
10764 arg1 = reinterpret_cast< wxCursor * >(argp1);
10765 ecode2 = SWIG_AsVal_int(obj1, &val2);
10766 if (!SWIG_IsOK(ecode2)) {
10767 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
10768 }
10769 arg2 = static_cast< int >(val2);
10770 {
10771 PyThreadState* __tstate = wxPyBeginAllowThreads();
10772 (arg1)->SetWidth(arg2);
10773 wxPyEndAllowThreads(__tstate);
10774 if (PyErr_Occurred()) SWIG_fail;
10775 }
10776 resultobj = SWIG_Py_Void();
10777 return resultobj;
10778 fail:
10779 return NULL;
10780 }
10781
10782
10783 SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10784 PyObject *resultobj = 0;
10785 wxCursor *arg1 = (wxCursor *) 0 ;
10786 int arg2 ;
10787 void *argp1 = 0 ;
10788 int res1 = 0 ;
10789 int val2 ;
10790 int ecode2 = 0 ;
10791 PyObject * obj0 = 0 ;
10792 PyObject * obj1 = 0 ;
10793 char * kwnames[] = {
10794 (char *) "self",(char *) "h", NULL
10795 };
10796
10797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
10798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10799 if (!SWIG_IsOK(res1)) {
10800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10801 }
10802 arg1 = reinterpret_cast< wxCursor * >(argp1);
10803 ecode2 = SWIG_AsVal_int(obj1, &val2);
10804 if (!SWIG_IsOK(ecode2)) {
10805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
10806 }
10807 arg2 = static_cast< int >(val2);
10808 {
10809 PyThreadState* __tstate = wxPyBeginAllowThreads();
10810 (arg1)->SetHeight(arg2);
10811 wxPyEndAllowThreads(__tstate);
10812 if (PyErr_Occurred()) SWIG_fail;
10813 }
10814 resultobj = SWIG_Py_Void();
10815 return resultobj;
10816 fail:
10817 return NULL;
10818 }
10819
10820
10821 SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10822 PyObject *resultobj = 0;
10823 wxCursor *arg1 = (wxCursor *) 0 ;
10824 int arg2 ;
10825 void *argp1 = 0 ;
10826 int res1 = 0 ;
10827 int val2 ;
10828 int ecode2 = 0 ;
10829 PyObject * obj0 = 0 ;
10830 PyObject * obj1 = 0 ;
10831 char * kwnames[] = {
10832 (char *) "self",(char *) "d", NULL
10833 };
10834
10835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
10836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10837 if (!SWIG_IsOK(res1)) {
10838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10839 }
10840 arg1 = reinterpret_cast< wxCursor * >(argp1);
10841 ecode2 = SWIG_AsVal_int(obj1, &val2);
10842 if (!SWIG_IsOK(ecode2)) {
10843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
10844 }
10845 arg2 = static_cast< int >(val2);
10846 {
10847 PyThreadState* __tstate = wxPyBeginAllowThreads();
10848 (arg1)->SetDepth(arg2);
10849 wxPyEndAllowThreads(__tstate);
10850 if (PyErr_Occurred()) SWIG_fail;
10851 }
10852 resultobj = SWIG_Py_Void();
10853 return resultobj;
10854 fail:
10855 return NULL;
10856 }
10857
10858
10859 SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10860 PyObject *resultobj = 0;
10861 wxCursor *arg1 = (wxCursor *) 0 ;
10862 wxSize *arg2 = 0 ;
10863 void *argp1 = 0 ;
10864 int res1 = 0 ;
10865 wxSize temp2 ;
10866 PyObject * obj0 = 0 ;
10867 PyObject * obj1 = 0 ;
10868 char * kwnames[] = {
10869 (char *) "self",(char *) "size", NULL
10870 };
10871
10872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
10873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10874 if (!SWIG_IsOK(res1)) {
10875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
10876 }
10877 arg1 = reinterpret_cast< wxCursor * >(argp1);
10878 {
10879 arg2 = &temp2;
10880 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10881 }
10882 {
10883 PyThreadState* __tstate = wxPyBeginAllowThreads();
10884 (arg1)->SetSize((wxSize const &)*arg2);
10885 wxPyEndAllowThreads(__tstate);
10886 if (PyErr_Occurred()) SWIG_fail;
10887 }
10888 resultobj = SWIG_Py_Void();
10889 return resultobj;
10890 fail:
10891 return NULL;
10892 }
10893
10894
10895 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10896 PyObject *obj;
10897 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10898 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10899 return SWIG_Py_Void();
10900 }
10901
10902 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10903 return SWIG_Python_InitShadowInstance(args);
10904 }
10905
10906 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10907 PyObject *resultobj = 0;
10908 int arg1 = (int) 0 ;
10909 int arg2 = (int) 0 ;
10910 int arg3 = (int) 0 ;
10911 int arg4 = (int) 0 ;
10912 wxRegion *result = 0 ;
10913 int val1 ;
10914 int ecode1 = 0 ;
10915 int val2 ;
10916 int ecode2 = 0 ;
10917 int val3 ;
10918 int ecode3 = 0 ;
10919 int val4 ;
10920 int ecode4 = 0 ;
10921 PyObject * obj0 = 0 ;
10922 PyObject * obj1 = 0 ;
10923 PyObject * obj2 = 0 ;
10924 PyObject * obj3 = 0 ;
10925 char * kwnames[] = {
10926 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10927 };
10928
10929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10930 if (obj0) {
10931 ecode1 = SWIG_AsVal_int(obj0, &val1);
10932 if (!SWIG_IsOK(ecode1)) {
10933 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10934 }
10935 arg1 = static_cast< int >(val1);
10936 }
10937 if (obj1) {
10938 ecode2 = SWIG_AsVal_int(obj1, &val2);
10939 if (!SWIG_IsOK(ecode2)) {
10940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10941 }
10942 arg2 = static_cast< int >(val2);
10943 }
10944 if (obj2) {
10945 ecode3 = SWIG_AsVal_int(obj2, &val3);
10946 if (!SWIG_IsOK(ecode3)) {
10947 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10948 }
10949 arg3 = static_cast< int >(val3);
10950 }
10951 if (obj3) {
10952 ecode4 = SWIG_AsVal_int(obj3, &val4);
10953 if (!SWIG_IsOK(ecode4)) {
10954 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10955 }
10956 arg4 = static_cast< int >(val4);
10957 }
10958 {
10959 if (!wxPyCheckForApp()) SWIG_fail;
10960 PyThreadState* __tstate = wxPyBeginAllowThreads();
10961 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10962 wxPyEndAllowThreads(__tstate);
10963 if (PyErr_Occurred()) SWIG_fail;
10964 }
10965 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10966 return resultobj;
10967 fail:
10968 return NULL;
10969 }
10970
10971
10972 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10973 PyObject *resultobj = 0;
10974 wxBitmap *arg1 = 0 ;
10975 wxRegion *result = 0 ;
10976 void *argp1 = 0 ;
10977 int res1 = 0 ;
10978 PyObject * obj0 = 0 ;
10979 char * kwnames[] = {
10980 (char *) "bmp", NULL
10981 };
10982
10983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10984 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10985 if (!SWIG_IsOK(res1)) {
10986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10987 }
10988 if (!argp1) {
10989 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10990 }
10991 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10992 {
10993 if (!wxPyCheckForApp()) SWIG_fail;
10994 PyThreadState* __tstate = wxPyBeginAllowThreads();
10995 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10996 wxPyEndAllowThreads(__tstate);
10997 if (PyErr_Occurred()) SWIG_fail;
10998 }
10999 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11000 return resultobj;
11001 fail:
11002 return NULL;
11003 }
11004
11005
11006 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11007 PyObject *resultobj = 0;
11008 wxBitmap *arg1 = 0 ;
11009 wxColour *arg2 = 0 ;
11010 int arg3 = (int) 0 ;
11011 wxRegion *result = 0 ;
11012 void *argp1 = 0 ;
11013 int res1 = 0 ;
11014 wxColour temp2 ;
11015 int val3 ;
11016 int ecode3 = 0 ;
11017 PyObject * obj0 = 0 ;
11018 PyObject * obj1 = 0 ;
11019 PyObject * obj2 = 0 ;
11020 char * kwnames[] = {
11021 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11022 };
11023
11024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11025 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
11026 if (!SWIG_IsOK(res1)) {
11027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11028 }
11029 if (!argp1) {
11030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11031 }
11032 arg1 = reinterpret_cast< wxBitmap * >(argp1);
11033 {
11034 arg2 = &temp2;
11035 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
11036 }
11037 if (obj2) {
11038 ecode3 = SWIG_AsVal_int(obj2, &val3);
11039 if (!SWIG_IsOK(ecode3)) {
11040 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
11041 }
11042 arg3 = static_cast< int >(val3);
11043 }
11044 {
11045 if (!wxPyCheckForApp()) SWIG_fail;
11046 PyThreadState* __tstate = wxPyBeginAllowThreads();
11047 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
11048 wxPyEndAllowThreads(__tstate);
11049 if (PyErr_Occurred()) SWIG_fail;
11050 }
11051 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11052 return resultobj;
11053 fail:
11054 return NULL;
11055 }
11056
11057
11058 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11059 PyObject *resultobj = 0;
11060 int arg1 ;
11061 wxPoint *arg2 = (wxPoint *) 0 ;
11062 int arg3 = (int) wxWINDING_RULE ;
11063 wxRegion *result = 0 ;
11064 int val3 ;
11065 int ecode3 = 0 ;
11066 PyObject * obj0 = 0 ;
11067 PyObject * obj1 = 0 ;
11068 char * kwnames[] = {
11069 (char *) "points",(char *) "fillStyle", NULL
11070 };
11071
11072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
11073 {
11074 arg2 = wxPoint_LIST_helper(obj0, &arg1);
11075 if (arg2 == NULL) SWIG_fail;
11076 }
11077 if (obj1) {
11078 ecode3 = SWIG_AsVal_int(obj1, &val3);
11079 if (!SWIG_IsOK(ecode3)) {
11080 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
11081 }
11082 arg3 = static_cast< int >(val3);
11083 }
11084 {
11085 if (!wxPyCheckForApp()) SWIG_fail;
11086 PyThreadState* __tstate = wxPyBeginAllowThreads();
11087 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
11088 wxPyEndAllowThreads(__tstate);
11089 if (PyErr_Occurred()) SWIG_fail;
11090 }
11091 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11092 {
11093 if (arg2) delete [] arg2;
11094 }
11095 return resultobj;
11096 fail:
11097 {
11098 if (arg2) delete [] arg2;
11099 }
11100 return NULL;
11101 }
11102
11103
11104 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11105 PyObject *resultobj = 0;
11106 wxRegion *arg1 = (wxRegion *) 0 ;
11107 void *argp1 = 0 ;
11108 int res1 = 0 ;
11109 PyObject *swig_obj[1] ;
11110
11111 if (!args) SWIG_fail;
11112 swig_obj[0] = args;
11113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
11114 if (!SWIG_IsOK(res1)) {
11115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
11116 }
11117 arg1 = reinterpret_cast< wxRegion * >(argp1);
11118 {
11119 PyThreadState* __tstate = wxPyBeginAllowThreads();
11120 delete arg1;
11121
11122 wxPyEndAllowThreads(__tstate);
11123 if (PyErr_Occurred()) SWIG_fail;
11124 }
11125 resultobj = SWIG_Py_Void();
11126 return resultobj;
11127 fail:
11128 return NULL;
11129 }
11130
11131
11132 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11133 PyObject *resultobj = 0;
11134 wxRegion *arg1 = (wxRegion *) 0 ;
11135 void *argp1 = 0 ;
11136 int res1 = 0 ;
11137 PyObject *swig_obj[1] ;
11138
11139 if (!args) SWIG_fail;
11140 swig_obj[0] = args;
11141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11142 if (!SWIG_IsOK(res1)) {
11143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
11144 }
11145 arg1 = reinterpret_cast< wxRegion * >(argp1);
11146 {
11147 PyThreadState* __tstate = wxPyBeginAllowThreads();
11148 (arg1)->Clear();
11149 wxPyEndAllowThreads(__tstate);
11150 if (PyErr_Occurred()) SWIG_fail;
11151 }
11152 resultobj = SWIG_Py_Void();
11153 return resultobj;
11154 fail:
11155 return NULL;
11156 }
11157
11158
11159 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11160 PyObject *resultobj = 0;
11161 wxRegion *arg1 = (wxRegion *) 0 ;
11162 int arg2 ;
11163 int arg3 ;
11164 bool result;
11165 void *argp1 = 0 ;
11166 int res1 = 0 ;
11167 int val2 ;
11168 int ecode2 = 0 ;
11169 int val3 ;
11170 int ecode3 = 0 ;
11171 PyObject * obj0 = 0 ;
11172 PyObject * obj1 = 0 ;
11173 PyObject * obj2 = 0 ;
11174 char * kwnames[] = {
11175 (char *) "self",(char *) "x",(char *) "y", NULL
11176 };
11177
11178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11180 if (!SWIG_IsOK(res1)) {
11181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
11182 }
11183 arg1 = reinterpret_cast< wxRegion * >(argp1);
11184 ecode2 = SWIG_AsVal_int(obj1, &val2);
11185 if (!SWIG_IsOK(ecode2)) {
11186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
11187 }
11188 arg2 = static_cast< int >(val2);
11189 ecode3 = SWIG_AsVal_int(obj2, &val3);
11190 if (!SWIG_IsOK(ecode3)) {
11191 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
11192 }
11193 arg3 = static_cast< int >(val3);
11194 {
11195 PyThreadState* __tstate = wxPyBeginAllowThreads();
11196 result = (bool)(arg1)->Offset(arg2,arg3);
11197 wxPyEndAllowThreads(__tstate);
11198 if (PyErr_Occurred()) SWIG_fail;
11199 }
11200 {
11201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11202 }
11203 return resultobj;
11204 fail:
11205 return NULL;
11206 }
11207
11208
11209 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11210 PyObject *resultobj = 0;
11211 wxRegion *arg1 = (wxRegion *) 0 ;
11212 int arg2 ;
11213 int arg3 ;
11214 wxRegionContain result;
11215 void *argp1 = 0 ;
11216 int res1 = 0 ;
11217 int val2 ;
11218 int ecode2 = 0 ;
11219 int val3 ;
11220 int ecode3 = 0 ;
11221 PyObject * obj0 = 0 ;
11222 PyObject * obj1 = 0 ;
11223 PyObject * obj2 = 0 ;
11224 char * kwnames[] = {
11225 (char *) "self",(char *) "x",(char *) "y", NULL
11226 };
11227
11228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11230 if (!SWIG_IsOK(res1)) {
11231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
11232 }
11233 arg1 = reinterpret_cast< wxRegion * >(argp1);
11234 ecode2 = SWIG_AsVal_int(obj1, &val2);
11235 if (!SWIG_IsOK(ecode2)) {
11236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
11237 }
11238 arg2 = static_cast< int >(val2);
11239 ecode3 = SWIG_AsVal_int(obj2, &val3);
11240 if (!SWIG_IsOK(ecode3)) {
11241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
11242 }
11243 arg3 = static_cast< int >(val3);
11244 {
11245 PyThreadState* __tstate = wxPyBeginAllowThreads();
11246 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
11247 wxPyEndAllowThreads(__tstate);
11248 if (PyErr_Occurred()) SWIG_fail;
11249 }
11250 resultobj = SWIG_From_int(static_cast< int >(result));
11251 return resultobj;
11252 fail:
11253 return NULL;
11254 }
11255
11256
11257 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11258 PyObject *resultobj = 0;
11259 wxRegion *arg1 = (wxRegion *) 0 ;
11260 wxPoint *arg2 = 0 ;
11261 wxRegionContain result;
11262 void *argp1 = 0 ;
11263 int res1 = 0 ;
11264 wxPoint temp2 ;
11265 PyObject * obj0 = 0 ;
11266 PyObject * obj1 = 0 ;
11267 char * kwnames[] = {
11268 (char *) "self",(char *) "pt", NULL
11269 };
11270
11271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
11272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11273 if (!SWIG_IsOK(res1)) {
11274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
11275 }
11276 arg1 = reinterpret_cast< wxRegion * >(argp1);
11277 {
11278 arg2 = &temp2;
11279 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11280 }
11281 {
11282 PyThreadState* __tstate = wxPyBeginAllowThreads();
11283 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
11284 wxPyEndAllowThreads(__tstate);
11285 if (PyErr_Occurred()) SWIG_fail;
11286 }
11287 resultobj = SWIG_From_int(static_cast< int >(result));
11288 return resultobj;
11289 fail:
11290 return NULL;
11291 }
11292
11293
11294 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11295 PyObject *resultobj = 0;
11296 wxRegion *arg1 = (wxRegion *) 0 ;
11297 wxRect *arg2 = 0 ;
11298 wxRegionContain result;
11299 void *argp1 = 0 ;
11300 int res1 = 0 ;
11301 wxRect temp2 ;
11302 PyObject * obj0 = 0 ;
11303 PyObject * obj1 = 0 ;
11304 char * kwnames[] = {
11305 (char *) "self",(char *) "rect", NULL
11306 };
11307
11308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
11309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11310 if (!SWIG_IsOK(res1)) {
11311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11312 }
11313 arg1 = reinterpret_cast< wxRegion * >(argp1);
11314 {
11315 arg2 = &temp2;
11316 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11317 }
11318 {
11319 PyThreadState* __tstate = wxPyBeginAllowThreads();
11320 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
11321 wxPyEndAllowThreads(__tstate);
11322 if (PyErr_Occurred()) SWIG_fail;
11323 }
11324 resultobj = SWIG_From_int(static_cast< int >(result));
11325 return resultobj;
11326 fail:
11327 return NULL;
11328 }
11329
11330
11331 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11332 PyObject *resultobj = 0;
11333 wxRegion *arg1 = (wxRegion *) 0 ;
11334 int arg2 ;
11335 int arg3 ;
11336 int arg4 ;
11337 int arg5 ;
11338 wxRegionContain result;
11339 void *argp1 = 0 ;
11340 int res1 = 0 ;
11341 int val2 ;
11342 int ecode2 = 0 ;
11343 int val3 ;
11344 int ecode3 = 0 ;
11345 int val4 ;
11346 int ecode4 = 0 ;
11347 int val5 ;
11348 int ecode5 = 0 ;
11349 PyObject * obj0 = 0 ;
11350 PyObject * obj1 = 0 ;
11351 PyObject * obj2 = 0 ;
11352 PyObject * obj3 = 0 ;
11353 PyObject * obj4 = 0 ;
11354 char * kwnames[] = {
11355 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
11356 };
11357
11358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11360 if (!SWIG_IsOK(res1)) {
11361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
11362 }
11363 arg1 = reinterpret_cast< wxRegion * >(argp1);
11364 ecode2 = SWIG_AsVal_int(obj1, &val2);
11365 if (!SWIG_IsOK(ecode2)) {
11366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
11367 }
11368 arg2 = static_cast< int >(val2);
11369 ecode3 = SWIG_AsVal_int(obj2, &val3);
11370 if (!SWIG_IsOK(ecode3)) {
11371 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
11372 }
11373 arg3 = static_cast< int >(val3);
11374 ecode4 = SWIG_AsVal_int(obj3, &val4);
11375 if (!SWIG_IsOK(ecode4)) {
11376 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
11377 }
11378 arg4 = static_cast< int >(val4);
11379 ecode5 = SWIG_AsVal_int(obj4, &val5);
11380 if (!SWIG_IsOK(ecode5)) {
11381 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
11382 }
11383 arg5 = static_cast< int >(val5);
11384 {
11385 PyThreadState* __tstate = wxPyBeginAllowThreads();
11386 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
11387 wxPyEndAllowThreads(__tstate);
11388 if (PyErr_Occurred()) SWIG_fail;
11389 }
11390 resultobj = SWIG_From_int(static_cast< int >(result));
11391 return resultobj;
11392 fail:
11393 return NULL;
11394 }
11395
11396
11397 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11398 PyObject *resultobj = 0;
11399 wxRegion *arg1 = (wxRegion *) 0 ;
11400 wxRect result;
11401 void *argp1 = 0 ;
11402 int res1 = 0 ;
11403 PyObject *swig_obj[1] ;
11404
11405 if (!args) SWIG_fail;
11406 swig_obj[0] = args;
11407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11408 if (!SWIG_IsOK(res1)) {
11409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
11410 }
11411 arg1 = reinterpret_cast< wxRegion * >(argp1);
11412 {
11413 PyThreadState* __tstate = wxPyBeginAllowThreads();
11414 result = (arg1)->GetBox();
11415 wxPyEndAllowThreads(__tstate);
11416 if (PyErr_Occurred()) SWIG_fail;
11417 }
11418 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11419 return resultobj;
11420 fail:
11421 return NULL;
11422 }
11423
11424
11425 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11426 PyObject *resultobj = 0;
11427 wxRegion *arg1 = (wxRegion *) 0 ;
11428 int arg2 ;
11429 int arg3 ;
11430 int arg4 ;
11431 int arg5 ;
11432 bool result;
11433 void *argp1 = 0 ;
11434 int res1 = 0 ;
11435 int val2 ;
11436 int ecode2 = 0 ;
11437 int val3 ;
11438 int ecode3 = 0 ;
11439 int val4 ;
11440 int ecode4 = 0 ;
11441 int val5 ;
11442 int ecode5 = 0 ;
11443 PyObject * obj0 = 0 ;
11444 PyObject * obj1 = 0 ;
11445 PyObject * obj2 = 0 ;
11446 PyObject * obj3 = 0 ;
11447 PyObject * obj4 = 0 ;
11448 char * kwnames[] = {
11449 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11450 };
11451
11452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11454 if (!SWIG_IsOK(res1)) {
11455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
11456 }
11457 arg1 = reinterpret_cast< wxRegion * >(argp1);
11458 ecode2 = SWIG_AsVal_int(obj1, &val2);
11459 if (!SWIG_IsOK(ecode2)) {
11460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
11461 }
11462 arg2 = static_cast< int >(val2);
11463 ecode3 = SWIG_AsVal_int(obj2, &val3);
11464 if (!SWIG_IsOK(ecode3)) {
11465 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
11466 }
11467 arg3 = static_cast< int >(val3);
11468 ecode4 = SWIG_AsVal_int(obj3, &val4);
11469 if (!SWIG_IsOK(ecode4)) {
11470 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
11471 }
11472 arg4 = static_cast< int >(val4);
11473 ecode5 = SWIG_AsVal_int(obj4, &val5);
11474 if (!SWIG_IsOK(ecode5)) {
11475 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
11476 }
11477 arg5 = static_cast< int >(val5);
11478 {
11479 PyThreadState* __tstate = wxPyBeginAllowThreads();
11480 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
11481 wxPyEndAllowThreads(__tstate);
11482 if (PyErr_Occurred()) SWIG_fail;
11483 }
11484 {
11485 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11486 }
11487 return resultobj;
11488 fail:
11489 return NULL;
11490 }
11491
11492
11493 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11494 PyObject *resultobj = 0;
11495 wxRegion *arg1 = (wxRegion *) 0 ;
11496 wxRect *arg2 = 0 ;
11497 bool result;
11498 void *argp1 = 0 ;
11499 int res1 = 0 ;
11500 wxRect temp2 ;
11501 PyObject * obj0 = 0 ;
11502 PyObject * obj1 = 0 ;
11503 char * kwnames[] = {
11504 (char *) "self",(char *) "rect", NULL
11505 };
11506
11507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
11508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11509 if (!SWIG_IsOK(res1)) {
11510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11511 }
11512 arg1 = reinterpret_cast< wxRegion * >(argp1);
11513 {
11514 arg2 = &temp2;
11515 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11516 }
11517 {
11518 PyThreadState* __tstate = wxPyBeginAllowThreads();
11519 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
11520 wxPyEndAllowThreads(__tstate);
11521 if (PyErr_Occurred()) SWIG_fail;
11522 }
11523 {
11524 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11525 }
11526 return resultobj;
11527 fail:
11528 return NULL;
11529 }
11530
11531
11532 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11533 PyObject *resultobj = 0;
11534 wxRegion *arg1 = (wxRegion *) 0 ;
11535 wxRegion *arg2 = 0 ;
11536 bool result;
11537 void *argp1 = 0 ;
11538 int res1 = 0 ;
11539 void *argp2 = 0 ;
11540 int res2 = 0 ;
11541 PyObject * obj0 = 0 ;
11542 PyObject * obj1 = 0 ;
11543 char * kwnames[] = {
11544 (char *) "self",(char *) "region", NULL
11545 };
11546
11547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11549 if (!SWIG_IsOK(res1)) {
11550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11551 }
11552 arg1 = reinterpret_cast< wxRegion * >(argp1);
11553 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11554 if (!SWIG_IsOK(res2)) {
11555 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11556 }
11557 if (!argp2) {
11558 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11559 }
11560 arg2 = reinterpret_cast< wxRegion * >(argp2);
11561 {
11562 PyThreadState* __tstate = wxPyBeginAllowThreads();
11563 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
11564 wxPyEndAllowThreads(__tstate);
11565 if (PyErr_Occurred()) SWIG_fail;
11566 }
11567 {
11568 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11569 }
11570 return resultobj;
11571 fail:
11572 return NULL;
11573 }
11574
11575
11576 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11577 PyObject *resultobj = 0;
11578 wxRegion *arg1 = (wxRegion *) 0 ;
11579 bool result;
11580 void *argp1 = 0 ;
11581 int res1 = 0 ;
11582 PyObject *swig_obj[1] ;
11583
11584 if (!args) SWIG_fail;
11585 swig_obj[0] = args;
11586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11587 if (!SWIG_IsOK(res1)) {
11588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11589 }
11590 arg1 = reinterpret_cast< wxRegion * >(argp1);
11591 {
11592 PyThreadState* __tstate = wxPyBeginAllowThreads();
11593 result = (bool)(arg1)->IsEmpty();
11594 wxPyEndAllowThreads(__tstate);
11595 if (PyErr_Occurred()) SWIG_fail;
11596 }
11597 {
11598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11599 }
11600 return resultobj;
11601 fail:
11602 return NULL;
11603 }
11604
11605
11606 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11607 PyObject *resultobj = 0;
11608 wxRegion *arg1 = (wxRegion *) 0 ;
11609 wxRegion *arg2 = 0 ;
11610 bool result;
11611 void *argp1 = 0 ;
11612 int res1 = 0 ;
11613 void *argp2 = 0 ;
11614 int res2 = 0 ;
11615 PyObject * obj0 = 0 ;
11616 PyObject * obj1 = 0 ;
11617 char * kwnames[] = {
11618 (char *) "self",(char *) "region", NULL
11619 };
11620
11621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11623 if (!SWIG_IsOK(res1)) {
11624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11625 }
11626 arg1 = reinterpret_cast< wxRegion * >(argp1);
11627 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11628 if (!SWIG_IsOK(res2)) {
11629 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11630 }
11631 if (!argp2) {
11632 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11633 }
11634 arg2 = reinterpret_cast< wxRegion * >(argp2);
11635 {
11636 PyThreadState* __tstate = wxPyBeginAllowThreads();
11637 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11638 wxPyEndAllowThreads(__tstate);
11639 if (PyErr_Occurred()) SWIG_fail;
11640 }
11641 {
11642 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11643 }
11644 return resultobj;
11645 fail:
11646 return NULL;
11647 }
11648
11649
11650 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11651 PyObject *resultobj = 0;
11652 wxRegion *arg1 = (wxRegion *) 0 ;
11653 int arg2 ;
11654 int arg3 ;
11655 int arg4 ;
11656 int arg5 ;
11657 bool result;
11658 void *argp1 = 0 ;
11659 int res1 = 0 ;
11660 int val2 ;
11661 int ecode2 = 0 ;
11662 int val3 ;
11663 int ecode3 = 0 ;
11664 int val4 ;
11665 int ecode4 = 0 ;
11666 int val5 ;
11667 int ecode5 = 0 ;
11668 PyObject * obj0 = 0 ;
11669 PyObject * obj1 = 0 ;
11670 PyObject * obj2 = 0 ;
11671 PyObject * obj3 = 0 ;
11672 PyObject * obj4 = 0 ;
11673 char * kwnames[] = {
11674 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11675 };
11676
11677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11679 if (!SWIG_IsOK(res1)) {
11680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11681 }
11682 arg1 = reinterpret_cast< wxRegion * >(argp1);
11683 ecode2 = SWIG_AsVal_int(obj1, &val2);
11684 if (!SWIG_IsOK(ecode2)) {
11685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11686 }
11687 arg2 = static_cast< int >(val2);
11688 ecode3 = SWIG_AsVal_int(obj2, &val3);
11689 if (!SWIG_IsOK(ecode3)) {
11690 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11691 }
11692 arg3 = static_cast< int >(val3);
11693 ecode4 = SWIG_AsVal_int(obj3, &val4);
11694 if (!SWIG_IsOK(ecode4)) {
11695 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11696 }
11697 arg4 = static_cast< int >(val4);
11698 ecode5 = SWIG_AsVal_int(obj4, &val5);
11699 if (!SWIG_IsOK(ecode5)) {
11700 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11701 }
11702 arg5 = static_cast< int >(val5);
11703 {
11704 PyThreadState* __tstate = wxPyBeginAllowThreads();
11705 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11706 wxPyEndAllowThreads(__tstate);
11707 if (PyErr_Occurred()) SWIG_fail;
11708 }
11709 {
11710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11711 }
11712 return resultobj;
11713 fail:
11714 return NULL;
11715 }
11716
11717
11718 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11719 PyObject *resultobj = 0;
11720 wxRegion *arg1 = (wxRegion *) 0 ;
11721 wxRect *arg2 = 0 ;
11722 bool result;
11723 void *argp1 = 0 ;
11724 int res1 = 0 ;
11725 wxRect temp2 ;
11726 PyObject * obj0 = 0 ;
11727 PyObject * obj1 = 0 ;
11728 char * kwnames[] = {
11729 (char *) "self",(char *) "rect", NULL
11730 };
11731
11732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11734 if (!SWIG_IsOK(res1)) {
11735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11736 }
11737 arg1 = reinterpret_cast< wxRegion * >(argp1);
11738 {
11739 arg2 = &temp2;
11740 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11741 }
11742 {
11743 PyThreadState* __tstate = wxPyBeginAllowThreads();
11744 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11745 wxPyEndAllowThreads(__tstate);
11746 if (PyErr_Occurred()) SWIG_fail;
11747 }
11748 {
11749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11750 }
11751 return resultobj;
11752 fail:
11753 return NULL;
11754 }
11755
11756
11757 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11758 PyObject *resultobj = 0;
11759 wxRegion *arg1 = (wxRegion *) 0 ;
11760 wxRegion *arg2 = 0 ;
11761 bool result;
11762 void *argp1 = 0 ;
11763 int res1 = 0 ;
11764 void *argp2 = 0 ;
11765 int res2 = 0 ;
11766 PyObject * obj0 = 0 ;
11767 PyObject * obj1 = 0 ;
11768 char * kwnames[] = {
11769 (char *) "self",(char *) "region", NULL
11770 };
11771
11772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11774 if (!SWIG_IsOK(res1)) {
11775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11776 }
11777 arg1 = reinterpret_cast< wxRegion * >(argp1);
11778 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11779 if (!SWIG_IsOK(res2)) {
11780 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11781 }
11782 if (!argp2) {
11783 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11784 }
11785 arg2 = reinterpret_cast< wxRegion * >(argp2);
11786 {
11787 PyThreadState* __tstate = wxPyBeginAllowThreads();
11788 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11789 wxPyEndAllowThreads(__tstate);
11790 if (PyErr_Occurred()) SWIG_fail;
11791 }
11792 {
11793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11794 }
11795 return resultobj;
11796 fail:
11797 return NULL;
11798 }
11799
11800
11801 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11802 PyObject *resultobj = 0;
11803 wxRegion *arg1 = (wxRegion *) 0 ;
11804 int arg2 ;
11805 int arg3 ;
11806 int arg4 ;
11807 int arg5 ;
11808 bool result;
11809 void *argp1 = 0 ;
11810 int res1 = 0 ;
11811 int val2 ;
11812 int ecode2 = 0 ;
11813 int val3 ;
11814 int ecode3 = 0 ;
11815 int val4 ;
11816 int ecode4 = 0 ;
11817 int val5 ;
11818 int ecode5 = 0 ;
11819 PyObject * obj0 = 0 ;
11820 PyObject * obj1 = 0 ;
11821 PyObject * obj2 = 0 ;
11822 PyObject * obj3 = 0 ;
11823 PyObject * obj4 = 0 ;
11824 char * kwnames[] = {
11825 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11826 };
11827
11828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11830 if (!SWIG_IsOK(res1)) {
11831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11832 }
11833 arg1 = reinterpret_cast< wxRegion * >(argp1);
11834 ecode2 = SWIG_AsVal_int(obj1, &val2);
11835 if (!SWIG_IsOK(ecode2)) {
11836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11837 }
11838 arg2 = static_cast< int >(val2);
11839 ecode3 = SWIG_AsVal_int(obj2, &val3);
11840 if (!SWIG_IsOK(ecode3)) {
11841 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11842 }
11843 arg3 = static_cast< int >(val3);
11844 ecode4 = SWIG_AsVal_int(obj3, &val4);
11845 if (!SWIG_IsOK(ecode4)) {
11846 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11847 }
11848 arg4 = static_cast< int >(val4);
11849 ecode5 = SWIG_AsVal_int(obj4, &val5);
11850 if (!SWIG_IsOK(ecode5)) {
11851 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11852 }
11853 arg5 = static_cast< int >(val5);
11854 {
11855 PyThreadState* __tstate = wxPyBeginAllowThreads();
11856 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11857 wxPyEndAllowThreads(__tstate);
11858 if (PyErr_Occurred()) SWIG_fail;
11859 }
11860 {
11861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11862 }
11863 return resultobj;
11864 fail:
11865 return NULL;
11866 }
11867
11868
11869 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11870 PyObject *resultobj = 0;
11871 wxRegion *arg1 = (wxRegion *) 0 ;
11872 wxRect *arg2 = 0 ;
11873 bool result;
11874 void *argp1 = 0 ;
11875 int res1 = 0 ;
11876 wxRect temp2 ;
11877 PyObject * obj0 = 0 ;
11878 PyObject * obj1 = 0 ;
11879 char * kwnames[] = {
11880 (char *) "self",(char *) "rect", NULL
11881 };
11882
11883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11885 if (!SWIG_IsOK(res1)) {
11886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11887 }
11888 arg1 = reinterpret_cast< wxRegion * >(argp1);
11889 {
11890 arg2 = &temp2;
11891 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11892 }
11893 {
11894 PyThreadState* __tstate = wxPyBeginAllowThreads();
11895 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11896 wxPyEndAllowThreads(__tstate);
11897 if (PyErr_Occurred()) SWIG_fail;
11898 }
11899 {
11900 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11901 }
11902 return resultobj;
11903 fail:
11904 return NULL;
11905 }
11906
11907
11908 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11909 PyObject *resultobj = 0;
11910 wxRegion *arg1 = (wxRegion *) 0 ;
11911 wxRegion *arg2 = 0 ;
11912 bool result;
11913 void *argp1 = 0 ;
11914 int res1 = 0 ;
11915 void *argp2 = 0 ;
11916 int res2 = 0 ;
11917 PyObject * obj0 = 0 ;
11918 PyObject * obj1 = 0 ;
11919 char * kwnames[] = {
11920 (char *) "self",(char *) "region", NULL
11921 };
11922
11923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11925 if (!SWIG_IsOK(res1)) {
11926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11927 }
11928 arg1 = reinterpret_cast< wxRegion * >(argp1);
11929 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11930 if (!SWIG_IsOK(res2)) {
11931 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11932 }
11933 if (!argp2) {
11934 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11935 }
11936 arg2 = reinterpret_cast< wxRegion * >(argp2);
11937 {
11938 PyThreadState* __tstate = wxPyBeginAllowThreads();
11939 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11940 wxPyEndAllowThreads(__tstate);
11941 if (PyErr_Occurred()) SWIG_fail;
11942 }
11943 {
11944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11945 }
11946 return resultobj;
11947 fail:
11948 return NULL;
11949 }
11950
11951
11952 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11953 PyObject *resultobj = 0;
11954 wxRegion *arg1 = (wxRegion *) 0 ;
11955 int arg2 ;
11956 int arg3 ;
11957 int arg4 ;
11958 int arg5 ;
11959 bool result;
11960 void *argp1 = 0 ;
11961 int res1 = 0 ;
11962 int val2 ;
11963 int ecode2 = 0 ;
11964 int val3 ;
11965 int ecode3 = 0 ;
11966 int val4 ;
11967 int ecode4 = 0 ;
11968 int val5 ;
11969 int ecode5 = 0 ;
11970 PyObject * obj0 = 0 ;
11971 PyObject * obj1 = 0 ;
11972 PyObject * obj2 = 0 ;
11973 PyObject * obj3 = 0 ;
11974 PyObject * obj4 = 0 ;
11975 char * kwnames[] = {
11976 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11977 };
11978
11979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11981 if (!SWIG_IsOK(res1)) {
11982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11983 }
11984 arg1 = reinterpret_cast< wxRegion * >(argp1);
11985 ecode2 = SWIG_AsVal_int(obj1, &val2);
11986 if (!SWIG_IsOK(ecode2)) {
11987 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11988 }
11989 arg2 = static_cast< int >(val2);
11990 ecode3 = SWIG_AsVal_int(obj2, &val3);
11991 if (!SWIG_IsOK(ecode3)) {
11992 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11993 }
11994 arg3 = static_cast< int >(val3);
11995 ecode4 = SWIG_AsVal_int(obj3, &val4);
11996 if (!SWIG_IsOK(ecode4)) {
11997 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11998 }
11999 arg4 = static_cast< int >(val4);
12000 ecode5 = SWIG_AsVal_int(obj4, &val5);
12001 if (!SWIG_IsOK(ecode5)) {
12002 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
12003 }
12004 arg5 = static_cast< int >(val5);
12005 {
12006 PyThreadState* __tstate = wxPyBeginAllowThreads();
12007 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
12008 wxPyEndAllowThreads(__tstate);
12009 if (PyErr_Occurred()) SWIG_fail;
12010 }
12011 {
12012 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12013 }
12014 return resultobj;
12015 fail:
12016 return NULL;
12017 }
12018
12019
12020 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12021 PyObject *resultobj = 0;
12022 wxRegion *arg1 = (wxRegion *) 0 ;
12023 wxRect *arg2 = 0 ;
12024 bool result;
12025 void *argp1 = 0 ;
12026 int res1 = 0 ;
12027 wxRect temp2 ;
12028 PyObject * obj0 = 0 ;
12029 PyObject * obj1 = 0 ;
12030 char * kwnames[] = {
12031 (char *) "self",(char *) "rect", NULL
12032 };
12033
12034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
12035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12036 if (!SWIG_IsOK(res1)) {
12037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
12038 }
12039 arg1 = reinterpret_cast< wxRegion * >(argp1);
12040 {
12041 arg2 = &temp2;
12042 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12043 }
12044 {
12045 PyThreadState* __tstate = wxPyBeginAllowThreads();
12046 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
12047 wxPyEndAllowThreads(__tstate);
12048 if (PyErr_Occurred()) SWIG_fail;
12049 }
12050 {
12051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12052 }
12053 return resultobj;
12054 fail:
12055 return NULL;
12056 }
12057
12058
12059 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12060 PyObject *resultobj = 0;
12061 wxRegion *arg1 = (wxRegion *) 0 ;
12062 wxRegion *arg2 = 0 ;
12063 bool result;
12064 void *argp1 = 0 ;
12065 int res1 = 0 ;
12066 void *argp2 = 0 ;
12067 int res2 = 0 ;
12068 PyObject * obj0 = 0 ;
12069 PyObject * obj1 = 0 ;
12070 char * kwnames[] = {
12071 (char *) "self",(char *) "region", NULL
12072 };
12073
12074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
12075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12076 if (!SWIG_IsOK(res1)) {
12077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
12078 }
12079 arg1 = reinterpret_cast< wxRegion * >(argp1);
12080 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
12081 if (!SWIG_IsOK(res2)) {
12082 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12083 }
12084 if (!argp2) {
12085 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12086 }
12087 arg2 = reinterpret_cast< wxRegion * >(argp2);
12088 {
12089 PyThreadState* __tstate = wxPyBeginAllowThreads();
12090 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
12091 wxPyEndAllowThreads(__tstate);
12092 if (PyErr_Occurred()) SWIG_fail;
12093 }
12094 {
12095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12096 }
12097 return resultobj;
12098 fail:
12099 return NULL;
12100 }
12101
12102
12103 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12104 PyObject *resultobj = 0;
12105 wxRegion *arg1 = (wxRegion *) 0 ;
12106 SwigValueWrapper<wxBitmap > result;
12107 void *argp1 = 0 ;
12108 int res1 = 0 ;
12109 PyObject *swig_obj[1] ;
12110
12111 if (!args) SWIG_fail;
12112 swig_obj[0] = args;
12113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12114 if (!SWIG_IsOK(res1)) {
12115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
12116 }
12117 arg1 = reinterpret_cast< wxRegion * >(argp1);
12118 {
12119 PyThreadState* __tstate = wxPyBeginAllowThreads();
12120 result = (arg1)->ConvertToBitmap();
12121 wxPyEndAllowThreads(__tstate);
12122 if (PyErr_Occurred()) SWIG_fail;
12123 }
12124 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
12125 return resultobj;
12126 fail:
12127 return NULL;
12128 }
12129
12130
12131 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12132 PyObject *resultobj = 0;
12133 wxRegion *arg1 = (wxRegion *) 0 ;
12134 wxBitmap *arg2 = 0 ;
12135 bool result;
12136 void *argp1 = 0 ;
12137 int res1 = 0 ;
12138 void *argp2 = 0 ;
12139 int res2 = 0 ;
12140 PyObject * obj0 = 0 ;
12141 PyObject * obj1 = 0 ;
12142 char * kwnames[] = {
12143 (char *) "self",(char *) "bmp", NULL
12144 };
12145
12146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
12147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12148 if (!SWIG_IsOK(res1)) {
12149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
12150 }
12151 arg1 = reinterpret_cast< wxRegion * >(argp1);
12152 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12153 if (!SWIG_IsOK(res2)) {
12154 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12155 }
12156 if (!argp2) {
12157 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12158 }
12159 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12160 {
12161 PyThreadState* __tstate = wxPyBeginAllowThreads();
12162 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
12163 wxPyEndAllowThreads(__tstate);
12164 if (PyErr_Occurred()) SWIG_fail;
12165 }
12166 {
12167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12168 }
12169 return resultobj;
12170 fail:
12171 return NULL;
12172 }
12173
12174
12175 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12176 PyObject *resultobj = 0;
12177 wxRegion *arg1 = (wxRegion *) 0 ;
12178 wxBitmap *arg2 = 0 ;
12179 wxColour *arg3 = 0 ;
12180 int arg4 = (int) 0 ;
12181 bool result;
12182 void *argp1 = 0 ;
12183 int res1 = 0 ;
12184 void *argp2 = 0 ;
12185 int res2 = 0 ;
12186 wxColour temp3 ;
12187 int val4 ;
12188 int ecode4 = 0 ;
12189 PyObject * obj0 = 0 ;
12190 PyObject * obj1 = 0 ;
12191 PyObject * obj2 = 0 ;
12192 PyObject * obj3 = 0 ;
12193 char * kwnames[] = {
12194 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
12195 };
12196
12197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12199 if (!SWIG_IsOK(res1)) {
12200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
12201 }
12202 arg1 = reinterpret_cast< wxRegion * >(argp1);
12203 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12204 if (!SWIG_IsOK(res2)) {
12205 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12206 }
12207 if (!argp2) {
12208 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12209 }
12210 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12211 {
12212 arg3 = &temp3;
12213 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
12214 }
12215 if (obj3) {
12216 ecode4 = SWIG_AsVal_int(obj3, &val4);
12217 if (!SWIG_IsOK(ecode4)) {
12218 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
12219 }
12220 arg4 = static_cast< int >(val4);
12221 }
12222 {
12223 PyThreadState* __tstate = wxPyBeginAllowThreads();
12224 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
12225 wxPyEndAllowThreads(__tstate);
12226 if (PyErr_Occurred()) SWIG_fail;
12227 }
12228 {
12229 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12230 }
12231 return resultobj;
12232 fail:
12233 return NULL;
12234 }
12235
12236
12237 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12238 PyObject *obj;
12239 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12240 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
12241 return SWIG_Py_Void();
12242 }
12243
12244 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12245 return SWIG_Python_InitShadowInstance(args);
12246 }
12247
12248 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12249 PyObject *resultobj = 0;
12250 wxRegion *arg1 = 0 ;
12251 wxRegionIterator *result = 0 ;
12252 void *argp1 = 0 ;
12253 int res1 = 0 ;
12254 PyObject * obj0 = 0 ;
12255 char * kwnames[] = {
12256 (char *) "region", NULL
12257 };
12258
12259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
12260 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
12261 if (!SWIG_IsOK(res1)) {
12262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12263 }
12264 if (!argp1) {
12265 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12266 }
12267 arg1 = reinterpret_cast< wxRegion * >(argp1);
12268 {
12269 if (!wxPyCheckForApp()) SWIG_fail;
12270 PyThreadState* __tstate = wxPyBeginAllowThreads();
12271 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
12272 wxPyEndAllowThreads(__tstate);
12273 if (PyErr_Occurred()) SWIG_fail;
12274 }
12275 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
12276 return resultobj;
12277 fail:
12278 return NULL;
12279 }
12280
12281
12282 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12283 PyObject *resultobj = 0;
12284 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12285 void *argp1 = 0 ;
12286 int res1 = 0 ;
12287 PyObject *swig_obj[1] ;
12288
12289 if (!args) SWIG_fail;
12290 swig_obj[0] = args;
12291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
12292 if (!SWIG_IsOK(res1)) {
12293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12294 }
12295 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12296 {
12297 PyThreadState* __tstate = wxPyBeginAllowThreads();
12298 delete arg1;
12299
12300 wxPyEndAllowThreads(__tstate);
12301 if (PyErr_Occurred()) SWIG_fail;
12302 }
12303 resultobj = SWIG_Py_Void();
12304 return resultobj;
12305 fail:
12306 return NULL;
12307 }
12308
12309
12310 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12311 PyObject *resultobj = 0;
12312 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12313 int result;
12314 void *argp1 = 0 ;
12315 int res1 = 0 ;
12316 PyObject *swig_obj[1] ;
12317
12318 if (!args) SWIG_fail;
12319 swig_obj[0] = args;
12320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12321 if (!SWIG_IsOK(res1)) {
12322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12323 }
12324 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12325 {
12326 PyThreadState* __tstate = wxPyBeginAllowThreads();
12327 result = (int)(arg1)->GetX();
12328 wxPyEndAllowThreads(__tstate);
12329 if (PyErr_Occurred()) SWIG_fail;
12330 }
12331 resultobj = SWIG_From_int(static_cast< int >(result));
12332 return resultobj;
12333 fail:
12334 return NULL;
12335 }
12336
12337
12338 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12339 PyObject *resultobj = 0;
12340 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12341 int result;
12342 void *argp1 = 0 ;
12343 int res1 = 0 ;
12344 PyObject *swig_obj[1] ;
12345
12346 if (!args) SWIG_fail;
12347 swig_obj[0] = args;
12348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12349 if (!SWIG_IsOK(res1)) {
12350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12351 }
12352 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12353 {
12354 PyThreadState* __tstate = wxPyBeginAllowThreads();
12355 result = (int)(arg1)->GetY();
12356 wxPyEndAllowThreads(__tstate);
12357 if (PyErr_Occurred()) SWIG_fail;
12358 }
12359 resultobj = SWIG_From_int(static_cast< int >(result));
12360 return resultobj;
12361 fail:
12362 return NULL;
12363 }
12364
12365
12366 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12367 PyObject *resultobj = 0;
12368 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12369 int result;
12370 void *argp1 = 0 ;
12371 int res1 = 0 ;
12372 PyObject *swig_obj[1] ;
12373
12374 if (!args) SWIG_fail;
12375 swig_obj[0] = args;
12376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12377 if (!SWIG_IsOK(res1)) {
12378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12379 }
12380 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12381 {
12382 PyThreadState* __tstate = wxPyBeginAllowThreads();
12383 result = (int)(arg1)->GetW();
12384 wxPyEndAllowThreads(__tstate);
12385 if (PyErr_Occurred()) SWIG_fail;
12386 }
12387 resultobj = SWIG_From_int(static_cast< int >(result));
12388 return resultobj;
12389 fail:
12390 return NULL;
12391 }
12392
12393
12394 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12395 PyObject *resultobj = 0;
12396 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12397 int result;
12398 void *argp1 = 0 ;
12399 int res1 = 0 ;
12400 PyObject *swig_obj[1] ;
12401
12402 if (!args) SWIG_fail;
12403 swig_obj[0] = args;
12404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12405 if (!SWIG_IsOK(res1)) {
12406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12407 }
12408 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12409 {
12410 PyThreadState* __tstate = wxPyBeginAllowThreads();
12411 result = (int)(arg1)->GetWidth();
12412 wxPyEndAllowThreads(__tstate);
12413 if (PyErr_Occurred()) SWIG_fail;
12414 }
12415 resultobj = SWIG_From_int(static_cast< int >(result));
12416 return resultobj;
12417 fail:
12418 return NULL;
12419 }
12420
12421
12422 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12423 PyObject *resultobj = 0;
12424 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12425 int result;
12426 void *argp1 = 0 ;
12427 int res1 = 0 ;
12428 PyObject *swig_obj[1] ;
12429
12430 if (!args) SWIG_fail;
12431 swig_obj[0] = args;
12432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12433 if (!SWIG_IsOK(res1)) {
12434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12435 }
12436 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12437 {
12438 PyThreadState* __tstate = wxPyBeginAllowThreads();
12439 result = (int)(arg1)->GetH();
12440 wxPyEndAllowThreads(__tstate);
12441 if (PyErr_Occurred()) SWIG_fail;
12442 }
12443 resultobj = SWIG_From_int(static_cast< int >(result));
12444 return resultobj;
12445 fail:
12446 return NULL;
12447 }
12448
12449
12450 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12451 PyObject *resultobj = 0;
12452 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12453 int result;
12454 void *argp1 = 0 ;
12455 int res1 = 0 ;
12456 PyObject *swig_obj[1] ;
12457
12458 if (!args) SWIG_fail;
12459 swig_obj[0] = args;
12460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12461 if (!SWIG_IsOK(res1)) {
12462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12463 }
12464 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12465 {
12466 PyThreadState* __tstate = wxPyBeginAllowThreads();
12467 result = (int)(arg1)->GetHeight();
12468 wxPyEndAllowThreads(__tstate);
12469 if (PyErr_Occurred()) SWIG_fail;
12470 }
12471 resultobj = SWIG_From_int(static_cast< int >(result));
12472 return resultobj;
12473 fail:
12474 return NULL;
12475 }
12476
12477
12478 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12479 PyObject *resultobj = 0;
12480 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12481 wxRect result;
12482 void *argp1 = 0 ;
12483 int res1 = 0 ;
12484 PyObject *swig_obj[1] ;
12485
12486 if (!args) SWIG_fail;
12487 swig_obj[0] = args;
12488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12489 if (!SWIG_IsOK(res1)) {
12490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12491 }
12492 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12493 {
12494 PyThreadState* __tstate = wxPyBeginAllowThreads();
12495 result = (arg1)->GetRect();
12496 wxPyEndAllowThreads(__tstate);
12497 if (PyErr_Occurred()) SWIG_fail;
12498 }
12499 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
12500 return resultobj;
12501 fail:
12502 return NULL;
12503 }
12504
12505
12506 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12507 PyObject *resultobj = 0;
12508 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12509 bool result;
12510 void *argp1 = 0 ;
12511 int res1 = 0 ;
12512 PyObject *swig_obj[1] ;
12513
12514 if (!args) SWIG_fail;
12515 swig_obj[0] = args;
12516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12517 if (!SWIG_IsOK(res1)) {
12518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12519 }
12520 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12521 {
12522 PyThreadState* __tstate = wxPyBeginAllowThreads();
12523 result = (bool)(arg1)->HaveRects();
12524 wxPyEndAllowThreads(__tstate);
12525 if (PyErr_Occurred()) SWIG_fail;
12526 }
12527 {
12528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12529 }
12530 return resultobj;
12531 fail:
12532 return NULL;
12533 }
12534
12535
12536 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12537 PyObject *resultobj = 0;
12538 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12539 void *argp1 = 0 ;
12540 int res1 = 0 ;
12541 PyObject *swig_obj[1] ;
12542
12543 if (!args) SWIG_fail;
12544 swig_obj[0] = args;
12545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12546 if (!SWIG_IsOK(res1)) {
12547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12548 }
12549 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12550 {
12551 PyThreadState* __tstate = wxPyBeginAllowThreads();
12552 (arg1)->Reset();
12553 wxPyEndAllowThreads(__tstate);
12554 if (PyErr_Occurred()) SWIG_fail;
12555 }
12556 resultobj = SWIG_Py_Void();
12557 return resultobj;
12558 fail:
12559 return NULL;
12560 }
12561
12562
12563 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12564 PyObject *resultobj = 0;
12565 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12566 void *argp1 = 0 ;
12567 int res1 = 0 ;
12568 PyObject *swig_obj[1] ;
12569
12570 if (!args) SWIG_fail;
12571 swig_obj[0] = args;
12572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12573 if (!SWIG_IsOK(res1)) {
12574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12575 }
12576 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12577 {
12578 PyThreadState* __tstate = wxPyBeginAllowThreads();
12579 wxRegionIterator_Next(arg1);
12580 wxPyEndAllowThreads(__tstate);
12581 if (PyErr_Occurred()) SWIG_fail;
12582 }
12583 resultobj = SWIG_Py_Void();
12584 return resultobj;
12585 fail:
12586 return NULL;
12587 }
12588
12589
12590 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12591 PyObject *resultobj = 0;
12592 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12593 bool result;
12594 void *argp1 = 0 ;
12595 int res1 = 0 ;
12596 PyObject *swig_obj[1] ;
12597
12598 if (!args) SWIG_fail;
12599 swig_obj[0] = args;
12600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12601 if (!SWIG_IsOK(res1)) {
12602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12603 }
12604 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12605 {
12606 PyThreadState* __tstate = wxPyBeginAllowThreads();
12607 result = (bool)wxRegionIterator___nonzero__(arg1);
12608 wxPyEndAllowThreads(__tstate);
12609 if (PyErr_Occurred()) SWIG_fail;
12610 }
12611 {
12612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12613 }
12614 return resultobj;
12615 fail:
12616 return NULL;
12617 }
12618
12619
12620 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12621 PyObject *obj;
12622 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12623 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12624 return SWIG_Py_Void();
12625 }
12626
12627 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12628 return SWIG_Python_InitShadowInstance(args);
12629 }
12630
12631 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12632 PyObject *resultobj = 0;
12633 wxNativeFontInfo *result = 0 ;
12634
12635 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12636 {
12637 PyThreadState* __tstate = wxPyBeginAllowThreads();
12638 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12639 wxPyEndAllowThreads(__tstate);
12640 if (PyErr_Occurred()) SWIG_fail;
12641 }
12642 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12643 return resultobj;
12644 fail:
12645 return NULL;
12646 }
12647
12648
12649 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12650 PyObject *resultobj = 0;
12651 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12652 void *argp1 = 0 ;
12653 int res1 = 0 ;
12654 PyObject *swig_obj[1] ;
12655
12656 if (!args) SWIG_fail;
12657 swig_obj[0] = args;
12658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12659 if (!SWIG_IsOK(res1)) {
12660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12661 }
12662 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12663 {
12664 PyThreadState* __tstate = wxPyBeginAllowThreads();
12665 delete arg1;
12666
12667 wxPyEndAllowThreads(__tstate);
12668 if (PyErr_Occurred()) SWIG_fail;
12669 }
12670 resultobj = SWIG_Py_Void();
12671 return resultobj;
12672 fail:
12673 return NULL;
12674 }
12675
12676
12677 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12678 PyObject *resultobj = 0;
12679 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12680 void *argp1 = 0 ;
12681 int res1 = 0 ;
12682 PyObject *swig_obj[1] ;
12683
12684 if (!args) SWIG_fail;
12685 swig_obj[0] = args;
12686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12687 if (!SWIG_IsOK(res1)) {
12688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12689 }
12690 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12691 {
12692 PyThreadState* __tstate = wxPyBeginAllowThreads();
12693 (arg1)->Init();
12694 wxPyEndAllowThreads(__tstate);
12695 if (PyErr_Occurred()) SWIG_fail;
12696 }
12697 resultobj = SWIG_Py_Void();
12698 return resultobj;
12699 fail:
12700 return NULL;
12701 }
12702
12703
12704 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12705 PyObject *resultobj = 0;
12706 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12707 wxFont *arg2 = 0 ;
12708 void *argp1 = 0 ;
12709 int res1 = 0 ;
12710 void *argp2 = 0 ;
12711 int res2 = 0 ;
12712 PyObject * obj0 = 0 ;
12713 PyObject * obj1 = 0 ;
12714 char * kwnames[] = {
12715 (char *) "self",(char *) "font", NULL
12716 };
12717
12718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12720 if (!SWIG_IsOK(res1)) {
12721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12722 }
12723 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12724 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12725 if (!SWIG_IsOK(res2)) {
12726 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12727 }
12728 if (!argp2) {
12729 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12730 }
12731 arg2 = reinterpret_cast< wxFont * >(argp2);
12732 {
12733 PyThreadState* __tstate = wxPyBeginAllowThreads();
12734 (arg1)->InitFromFont((wxFont const &)*arg2);
12735 wxPyEndAllowThreads(__tstate);
12736 if (PyErr_Occurred()) SWIG_fail;
12737 }
12738 resultobj = SWIG_Py_Void();
12739 return resultobj;
12740 fail:
12741 return NULL;
12742 }
12743
12744
12745 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12746 PyObject *resultobj = 0;
12747 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12748 int result;
12749 void *argp1 = 0 ;
12750 int res1 = 0 ;
12751 PyObject *swig_obj[1] ;
12752
12753 if (!args) SWIG_fail;
12754 swig_obj[0] = args;
12755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12756 if (!SWIG_IsOK(res1)) {
12757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12758 }
12759 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12760 {
12761 PyThreadState* __tstate = wxPyBeginAllowThreads();
12762 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12763 wxPyEndAllowThreads(__tstate);
12764 if (PyErr_Occurred()) SWIG_fail;
12765 }
12766 resultobj = SWIG_From_int(static_cast< int >(result));
12767 return resultobj;
12768 fail:
12769 return NULL;
12770 }
12771
12772
12773 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12774 PyObject *resultobj = 0;
12775 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12776 wxSize result;
12777 void *argp1 = 0 ;
12778 int res1 = 0 ;
12779 PyObject *swig_obj[1] ;
12780
12781 if (!args) SWIG_fail;
12782 swig_obj[0] = args;
12783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12784 if (!SWIG_IsOK(res1)) {
12785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12786 }
12787 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12788 {
12789 PyThreadState* __tstate = wxPyBeginAllowThreads();
12790 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
12791 wxPyEndAllowThreads(__tstate);
12792 if (PyErr_Occurred()) SWIG_fail;
12793 }
12794 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12795 return resultobj;
12796 fail:
12797 return NULL;
12798 }
12799
12800
12801 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12802 PyObject *resultobj = 0;
12803 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12804 wxFontStyle result;
12805 void *argp1 = 0 ;
12806 int res1 = 0 ;
12807 PyObject *swig_obj[1] ;
12808
12809 if (!args) SWIG_fail;
12810 swig_obj[0] = args;
12811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12812 if (!SWIG_IsOK(res1)) {
12813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12814 }
12815 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12816 {
12817 PyThreadState* __tstate = wxPyBeginAllowThreads();
12818 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12819 wxPyEndAllowThreads(__tstate);
12820 if (PyErr_Occurred()) SWIG_fail;
12821 }
12822 resultobj = SWIG_From_int(static_cast< int >(result));
12823 return resultobj;
12824 fail:
12825 return NULL;
12826 }
12827
12828
12829 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12830 PyObject *resultobj = 0;
12831 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12832 wxFontWeight result;
12833 void *argp1 = 0 ;
12834 int res1 = 0 ;
12835 PyObject *swig_obj[1] ;
12836
12837 if (!args) SWIG_fail;
12838 swig_obj[0] = args;
12839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12840 if (!SWIG_IsOK(res1)) {
12841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12842 }
12843 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12844 {
12845 PyThreadState* __tstate = wxPyBeginAllowThreads();
12846 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12847 wxPyEndAllowThreads(__tstate);
12848 if (PyErr_Occurred()) SWIG_fail;
12849 }
12850 resultobj = SWIG_From_int(static_cast< int >(result));
12851 return resultobj;
12852 fail:
12853 return NULL;
12854 }
12855
12856
12857 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12858 PyObject *resultobj = 0;
12859 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12860 bool result;
12861 void *argp1 = 0 ;
12862 int res1 = 0 ;
12863 PyObject *swig_obj[1] ;
12864
12865 if (!args) SWIG_fail;
12866 swig_obj[0] = args;
12867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12868 if (!SWIG_IsOK(res1)) {
12869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12870 }
12871 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12872 {
12873 PyThreadState* __tstate = wxPyBeginAllowThreads();
12874 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12875 wxPyEndAllowThreads(__tstate);
12876 if (PyErr_Occurred()) SWIG_fail;
12877 }
12878 {
12879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12880 }
12881 return resultobj;
12882 fail:
12883 return NULL;
12884 }
12885
12886
12887 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12888 PyObject *resultobj = 0;
12889 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12890 wxString result;
12891 void *argp1 = 0 ;
12892 int res1 = 0 ;
12893 PyObject *swig_obj[1] ;
12894
12895 if (!args) SWIG_fail;
12896 swig_obj[0] = args;
12897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12898 if (!SWIG_IsOK(res1)) {
12899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12900 }
12901 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12902 {
12903 PyThreadState* __tstate = wxPyBeginAllowThreads();
12904 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12905 wxPyEndAllowThreads(__tstate);
12906 if (PyErr_Occurred()) SWIG_fail;
12907 }
12908 {
12909 #if wxUSE_UNICODE
12910 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12911 #else
12912 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12913 #endif
12914 }
12915 return resultobj;
12916 fail:
12917 return NULL;
12918 }
12919
12920
12921 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12922 PyObject *resultobj = 0;
12923 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12924 wxFontFamily result;
12925 void *argp1 = 0 ;
12926 int res1 = 0 ;
12927 PyObject *swig_obj[1] ;
12928
12929 if (!args) SWIG_fail;
12930 swig_obj[0] = args;
12931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12932 if (!SWIG_IsOK(res1)) {
12933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12934 }
12935 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12936 {
12937 PyThreadState* __tstate = wxPyBeginAllowThreads();
12938 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12939 wxPyEndAllowThreads(__tstate);
12940 if (PyErr_Occurred()) SWIG_fail;
12941 }
12942 resultobj = SWIG_From_int(static_cast< int >(result));
12943 return resultobj;
12944 fail:
12945 return NULL;
12946 }
12947
12948
12949 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12950 PyObject *resultobj = 0;
12951 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12952 wxFontEncoding result;
12953 void *argp1 = 0 ;
12954 int res1 = 0 ;
12955 PyObject *swig_obj[1] ;
12956
12957 if (!args) SWIG_fail;
12958 swig_obj[0] = args;
12959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12960 if (!SWIG_IsOK(res1)) {
12961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12962 }
12963 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12964 {
12965 PyThreadState* __tstate = wxPyBeginAllowThreads();
12966 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12967 wxPyEndAllowThreads(__tstate);
12968 if (PyErr_Occurred()) SWIG_fail;
12969 }
12970 resultobj = SWIG_From_int(static_cast< int >(result));
12971 return resultobj;
12972 fail:
12973 return NULL;
12974 }
12975
12976
12977 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12978 PyObject *resultobj = 0;
12979 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12980 int arg2 ;
12981 void *argp1 = 0 ;
12982 int res1 = 0 ;
12983 int val2 ;
12984 int ecode2 = 0 ;
12985 PyObject * obj0 = 0 ;
12986 PyObject * obj1 = 0 ;
12987 char * kwnames[] = {
12988 (char *) "self",(char *) "pointsize", NULL
12989 };
12990
12991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12993 if (!SWIG_IsOK(res1)) {
12994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12995 }
12996 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12997 ecode2 = SWIG_AsVal_int(obj1, &val2);
12998 if (!SWIG_IsOK(ecode2)) {
12999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
13000 }
13001 arg2 = static_cast< int >(val2);
13002 {
13003 PyThreadState* __tstate = wxPyBeginAllowThreads();
13004 (arg1)->SetPointSize(arg2);
13005 wxPyEndAllowThreads(__tstate);
13006 if (PyErr_Occurred()) SWIG_fail;
13007 }
13008 resultobj = SWIG_Py_Void();
13009 return resultobj;
13010 fail:
13011 return NULL;
13012 }
13013
13014
13015 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13016 PyObject *resultobj = 0;
13017 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13018 wxSize *arg2 = 0 ;
13019 void *argp1 = 0 ;
13020 int res1 = 0 ;
13021 wxSize temp2 ;
13022 PyObject * obj0 = 0 ;
13023 PyObject * obj1 = 0 ;
13024 char * kwnames[] = {
13025 (char *) "self",(char *) "pixelSize", NULL
13026 };
13027
13028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
13029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13030 if (!SWIG_IsOK(res1)) {
13031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13032 }
13033 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13034 {
13035 arg2 = &temp2;
13036 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13037 }
13038 {
13039 PyThreadState* __tstate = wxPyBeginAllowThreads();
13040 (arg1)->SetPixelSize((wxSize const &)*arg2);
13041 wxPyEndAllowThreads(__tstate);
13042 if (PyErr_Occurred()) SWIG_fail;
13043 }
13044 resultobj = SWIG_Py_Void();
13045 return resultobj;
13046 fail:
13047 return NULL;
13048 }
13049
13050
13051 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13052 PyObject *resultobj = 0;
13053 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13054 wxFontStyle arg2 ;
13055 void *argp1 = 0 ;
13056 int res1 = 0 ;
13057 int val2 ;
13058 int ecode2 = 0 ;
13059 PyObject * obj0 = 0 ;
13060 PyObject * obj1 = 0 ;
13061 char * kwnames[] = {
13062 (char *) "self",(char *) "style", NULL
13063 };
13064
13065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13067 if (!SWIG_IsOK(res1)) {
13068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13069 }
13070 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13071 ecode2 = SWIG_AsVal_int(obj1, &val2);
13072 if (!SWIG_IsOK(ecode2)) {
13073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
13074 }
13075 arg2 = static_cast< wxFontStyle >(val2);
13076 {
13077 PyThreadState* __tstate = wxPyBeginAllowThreads();
13078 (arg1)->SetStyle(arg2);
13079 wxPyEndAllowThreads(__tstate);
13080 if (PyErr_Occurred()) SWIG_fail;
13081 }
13082 resultobj = SWIG_Py_Void();
13083 return resultobj;
13084 fail:
13085 return NULL;
13086 }
13087
13088
13089 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13090 PyObject *resultobj = 0;
13091 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13092 wxFontWeight arg2 ;
13093 void *argp1 = 0 ;
13094 int res1 = 0 ;
13095 int val2 ;
13096 int ecode2 = 0 ;
13097 PyObject * obj0 = 0 ;
13098 PyObject * obj1 = 0 ;
13099 char * kwnames[] = {
13100 (char *) "self",(char *) "weight", NULL
13101 };
13102
13103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
13104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13105 if (!SWIG_IsOK(res1)) {
13106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13107 }
13108 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13109 ecode2 = SWIG_AsVal_int(obj1, &val2);
13110 if (!SWIG_IsOK(ecode2)) {
13111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
13112 }
13113 arg2 = static_cast< wxFontWeight >(val2);
13114 {
13115 PyThreadState* __tstate = wxPyBeginAllowThreads();
13116 (arg1)->SetWeight(arg2);
13117 wxPyEndAllowThreads(__tstate);
13118 if (PyErr_Occurred()) SWIG_fail;
13119 }
13120 resultobj = SWIG_Py_Void();
13121 return resultobj;
13122 fail:
13123 return NULL;
13124 }
13125
13126
13127 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13128 PyObject *resultobj = 0;
13129 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13130 bool arg2 ;
13131 void *argp1 = 0 ;
13132 int res1 = 0 ;
13133 bool val2 ;
13134 int ecode2 = 0 ;
13135 PyObject * obj0 = 0 ;
13136 PyObject * obj1 = 0 ;
13137 char * kwnames[] = {
13138 (char *) "self",(char *) "underlined", NULL
13139 };
13140
13141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
13142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13143 if (!SWIG_IsOK(res1)) {
13144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13145 }
13146 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13147 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13148 if (!SWIG_IsOK(ecode2)) {
13149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
13150 }
13151 arg2 = static_cast< bool >(val2);
13152 {
13153 PyThreadState* __tstate = wxPyBeginAllowThreads();
13154 (arg1)->SetUnderlined(arg2);
13155 wxPyEndAllowThreads(__tstate);
13156 if (PyErr_Occurred()) SWIG_fail;
13157 }
13158 resultobj = SWIG_Py_Void();
13159 return resultobj;
13160 fail:
13161 return NULL;
13162 }
13163
13164
13165 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13166 PyObject *resultobj = 0;
13167 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13168 wxString arg2 ;
13169 bool result;
13170 void *argp1 = 0 ;
13171 int res1 = 0 ;
13172 PyObject * obj0 = 0 ;
13173 PyObject * obj1 = 0 ;
13174 char * kwnames[] = {
13175 (char *) "self",(char *) "facename", NULL
13176 };
13177
13178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
13179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13180 if (!SWIG_IsOK(res1)) {
13181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13182 }
13183 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13184 {
13185 wxString* sptr = wxString_in_helper(obj1);
13186 if (sptr == NULL) SWIG_fail;
13187 arg2 = *sptr;
13188 delete sptr;
13189 }
13190 {
13191 PyThreadState* __tstate = wxPyBeginAllowThreads();
13192 result = (bool)(arg1)->SetFaceName(arg2);
13193 wxPyEndAllowThreads(__tstate);
13194 if (PyErr_Occurred()) SWIG_fail;
13195 }
13196 {
13197 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13198 }
13199 return resultobj;
13200 fail:
13201 return NULL;
13202 }
13203
13204
13205 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13206 PyObject *resultobj = 0;
13207 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13208 wxFontFamily arg2 ;
13209 void *argp1 = 0 ;
13210 int res1 = 0 ;
13211 int val2 ;
13212 int ecode2 = 0 ;
13213 PyObject * obj0 = 0 ;
13214 PyObject * obj1 = 0 ;
13215 char * kwnames[] = {
13216 (char *) "self",(char *) "family", NULL
13217 };
13218
13219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
13220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13221 if (!SWIG_IsOK(res1)) {
13222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13223 }
13224 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13225 ecode2 = SWIG_AsVal_int(obj1, &val2);
13226 if (!SWIG_IsOK(ecode2)) {
13227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
13228 }
13229 arg2 = static_cast< wxFontFamily >(val2);
13230 {
13231 PyThreadState* __tstate = wxPyBeginAllowThreads();
13232 (arg1)->SetFamily(arg2);
13233 wxPyEndAllowThreads(__tstate);
13234 if (PyErr_Occurred()) SWIG_fail;
13235 }
13236 resultobj = SWIG_Py_Void();
13237 return resultobj;
13238 fail:
13239 return NULL;
13240 }
13241
13242
13243 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13244 PyObject *resultobj = 0;
13245 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13246 wxFontEncoding arg2 ;
13247 void *argp1 = 0 ;
13248 int res1 = 0 ;
13249 int val2 ;
13250 int ecode2 = 0 ;
13251 PyObject * obj0 = 0 ;
13252 PyObject * obj1 = 0 ;
13253 char * kwnames[] = {
13254 (char *) "self",(char *) "encoding", NULL
13255 };
13256
13257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
13258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13259 if (!SWIG_IsOK(res1)) {
13260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13261 }
13262 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13263 ecode2 = SWIG_AsVal_int(obj1, &val2);
13264 if (!SWIG_IsOK(ecode2)) {
13265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13266 }
13267 arg2 = static_cast< wxFontEncoding >(val2);
13268 {
13269 PyThreadState* __tstate = wxPyBeginAllowThreads();
13270 (arg1)->SetEncoding(arg2);
13271 wxPyEndAllowThreads(__tstate);
13272 if (PyErr_Occurred()) SWIG_fail;
13273 }
13274 resultobj = SWIG_Py_Void();
13275 return resultobj;
13276 fail:
13277 return NULL;
13278 }
13279
13280
13281 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13282 PyObject *resultobj = 0;
13283 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13284 wxString *arg2 = 0 ;
13285 bool result;
13286 void *argp1 = 0 ;
13287 int res1 = 0 ;
13288 bool temp2 = false ;
13289 PyObject * obj0 = 0 ;
13290 PyObject * obj1 = 0 ;
13291 char * kwnames[] = {
13292 (char *) "self",(char *) "s", NULL
13293 };
13294
13295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13297 if (!SWIG_IsOK(res1)) {
13298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13299 }
13300 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13301 {
13302 arg2 = wxString_in_helper(obj1);
13303 if (arg2 == NULL) SWIG_fail;
13304 temp2 = true;
13305 }
13306 {
13307 PyThreadState* __tstate = wxPyBeginAllowThreads();
13308 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13309 wxPyEndAllowThreads(__tstate);
13310 if (PyErr_Occurred()) SWIG_fail;
13311 }
13312 {
13313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13314 }
13315 {
13316 if (temp2)
13317 delete arg2;
13318 }
13319 return resultobj;
13320 fail:
13321 {
13322 if (temp2)
13323 delete arg2;
13324 }
13325 return NULL;
13326 }
13327
13328
13329 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13330 PyObject *resultobj = 0;
13331 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13332 wxString result;
13333 void *argp1 = 0 ;
13334 int res1 = 0 ;
13335 PyObject *swig_obj[1] ;
13336
13337 if (!args) SWIG_fail;
13338 swig_obj[0] = args;
13339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13340 if (!SWIG_IsOK(res1)) {
13341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13342 }
13343 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13344 {
13345 PyThreadState* __tstate = wxPyBeginAllowThreads();
13346 result = ((wxNativeFontInfo const *)arg1)->ToString();
13347 wxPyEndAllowThreads(__tstate);
13348 if (PyErr_Occurred()) SWIG_fail;
13349 }
13350 {
13351 #if wxUSE_UNICODE
13352 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13353 #else
13354 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13355 #endif
13356 }
13357 return resultobj;
13358 fail:
13359 return NULL;
13360 }
13361
13362
13363 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13364 PyObject *resultobj = 0;
13365 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13366 wxString result;
13367 void *argp1 = 0 ;
13368 int res1 = 0 ;
13369 PyObject *swig_obj[1] ;
13370
13371 if (!args) SWIG_fail;
13372 swig_obj[0] = args;
13373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13374 if (!SWIG_IsOK(res1)) {
13375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13376 }
13377 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13378 {
13379 PyThreadState* __tstate = wxPyBeginAllowThreads();
13380 result = wxNativeFontInfo___str__(arg1);
13381 wxPyEndAllowThreads(__tstate);
13382 if (PyErr_Occurred()) SWIG_fail;
13383 }
13384 {
13385 #if wxUSE_UNICODE
13386 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13387 #else
13388 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13389 #endif
13390 }
13391 return resultobj;
13392 fail:
13393 return NULL;
13394 }
13395
13396
13397 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13398 PyObject *resultobj = 0;
13399 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13400 wxString *arg2 = 0 ;
13401 bool result;
13402 void *argp1 = 0 ;
13403 int res1 = 0 ;
13404 bool temp2 = false ;
13405 PyObject * obj0 = 0 ;
13406 PyObject * obj1 = 0 ;
13407 char * kwnames[] = {
13408 (char *) "self",(char *) "s", NULL
13409 };
13410
13411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
13412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13413 if (!SWIG_IsOK(res1)) {
13414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13415 }
13416 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13417 {
13418 arg2 = wxString_in_helper(obj1);
13419 if (arg2 == NULL) SWIG_fail;
13420 temp2 = true;
13421 }
13422 {
13423 PyThreadState* __tstate = wxPyBeginAllowThreads();
13424 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
13425 wxPyEndAllowThreads(__tstate);
13426 if (PyErr_Occurred()) SWIG_fail;
13427 }
13428 {
13429 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13430 }
13431 {
13432 if (temp2)
13433 delete arg2;
13434 }
13435 return resultobj;
13436 fail:
13437 {
13438 if (temp2)
13439 delete arg2;
13440 }
13441 return NULL;
13442 }
13443
13444
13445 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13446 PyObject *resultobj = 0;
13447 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13448 wxString result;
13449 void *argp1 = 0 ;
13450 int res1 = 0 ;
13451 PyObject *swig_obj[1] ;
13452
13453 if (!args) SWIG_fail;
13454 swig_obj[0] = args;
13455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13456 if (!SWIG_IsOK(res1)) {
13457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13458 }
13459 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13460 {
13461 PyThreadState* __tstate = wxPyBeginAllowThreads();
13462 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
13463 wxPyEndAllowThreads(__tstate);
13464 if (PyErr_Occurred()) SWIG_fail;
13465 }
13466 {
13467 #if wxUSE_UNICODE
13468 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13469 #else
13470 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13471 #endif
13472 }
13473 return resultobj;
13474 fail:
13475 return NULL;
13476 }
13477
13478
13479 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13480 PyObject *obj;
13481 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13482 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
13483 return SWIG_Py_Void();
13484 }
13485
13486 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13487 return SWIG_Python_InitShadowInstance(args);
13488 }
13489
13490 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13491 PyObject *resultobj = 0;
13492 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13493 wxString *arg2 = (wxString *) 0 ;
13494 void *argp1 = 0 ;
13495 int res1 = 0 ;
13496 bool temp2 = false ;
13497 PyObject *swig_obj[2] ;
13498
13499 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
13500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13501 if (!SWIG_IsOK(res1)) {
13502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13503 }
13504 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13505 {
13506 arg2 = wxString_in_helper(swig_obj[1]);
13507 if (arg2 == NULL) SWIG_fail;
13508 temp2 = true;
13509 }
13510 if (arg1) (arg1)->facename = *arg2;
13511
13512 resultobj = SWIG_Py_Void();
13513 {
13514 if (temp2)
13515 delete arg2;
13516 }
13517 return resultobj;
13518 fail:
13519 {
13520 if (temp2)
13521 delete arg2;
13522 }
13523 return NULL;
13524 }
13525
13526
13527 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13528 PyObject *resultobj = 0;
13529 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13530 wxString *result = 0 ;
13531 void *argp1 = 0 ;
13532 int res1 = 0 ;
13533 PyObject *swig_obj[1] ;
13534
13535 if (!args) SWIG_fail;
13536 swig_obj[0] = args;
13537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13538 if (!SWIG_IsOK(res1)) {
13539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13540 }
13541 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13542 result = (wxString *)& ((arg1)->facename);
13543 {
13544 #if wxUSE_UNICODE
13545 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13546 #else
13547 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13548 #endif
13549 }
13550 return resultobj;
13551 fail:
13552 return NULL;
13553 }
13554
13555
13556 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13557 PyObject *resultobj = 0;
13558 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13559 wxFontEncoding arg2 ;
13560 void *argp1 = 0 ;
13561 int res1 = 0 ;
13562 int val2 ;
13563 int ecode2 = 0 ;
13564 PyObject *swig_obj[2] ;
13565
13566 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13568 if (!SWIG_IsOK(res1)) {
13569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13570 }
13571 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13572 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13573 if (!SWIG_IsOK(ecode2)) {
13574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13575 }
13576 arg2 = static_cast< wxFontEncoding >(val2);
13577 if (arg1) (arg1)->encoding = arg2;
13578
13579 resultobj = SWIG_Py_Void();
13580 return resultobj;
13581 fail:
13582 return NULL;
13583 }
13584
13585
13586 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13587 PyObject *resultobj = 0;
13588 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13589 wxFontEncoding result;
13590 void *argp1 = 0 ;
13591 int res1 = 0 ;
13592 PyObject *swig_obj[1] ;
13593
13594 if (!args) SWIG_fail;
13595 swig_obj[0] = args;
13596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13597 if (!SWIG_IsOK(res1)) {
13598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13599 }
13600 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13601 result = (wxFontEncoding) ((arg1)->encoding);
13602 resultobj = SWIG_From_int(static_cast< int >(result));
13603 return resultobj;
13604 fail:
13605 return NULL;
13606 }
13607
13608
13609 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13610 PyObject *resultobj = 0;
13611 wxNativeEncodingInfo *result = 0 ;
13612
13613 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13614 {
13615 PyThreadState* __tstate = wxPyBeginAllowThreads();
13616 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13617 wxPyEndAllowThreads(__tstate);
13618 if (PyErr_Occurred()) SWIG_fail;
13619 }
13620 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13621 return resultobj;
13622 fail:
13623 return NULL;
13624 }
13625
13626
13627 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13628 PyObject *resultobj = 0;
13629 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13630 void *argp1 = 0 ;
13631 int res1 = 0 ;
13632 PyObject *swig_obj[1] ;
13633
13634 if (!args) SWIG_fail;
13635 swig_obj[0] = args;
13636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13637 if (!SWIG_IsOK(res1)) {
13638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13639 }
13640 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13641 {
13642 PyThreadState* __tstate = wxPyBeginAllowThreads();
13643 delete arg1;
13644
13645 wxPyEndAllowThreads(__tstate);
13646 if (PyErr_Occurred()) SWIG_fail;
13647 }
13648 resultobj = SWIG_Py_Void();
13649 return resultobj;
13650 fail:
13651 return NULL;
13652 }
13653
13654
13655 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13656 PyObject *resultobj = 0;
13657 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13658 wxString *arg2 = 0 ;
13659 bool result;
13660 void *argp1 = 0 ;
13661 int res1 = 0 ;
13662 bool temp2 = false ;
13663 PyObject * obj0 = 0 ;
13664 PyObject * obj1 = 0 ;
13665 char * kwnames[] = {
13666 (char *) "self",(char *) "s", NULL
13667 };
13668
13669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13671 if (!SWIG_IsOK(res1)) {
13672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13673 }
13674 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13675 {
13676 arg2 = wxString_in_helper(obj1);
13677 if (arg2 == NULL) SWIG_fail;
13678 temp2 = true;
13679 }
13680 {
13681 PyThreadState* __tstate = wxPyBeginAllowThreads();
13682 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13683 wxPyEndAllowThreads(__tstate);
13684 if (PyErr_Occurred()) SWIG_fail;
13685 }
13686 {
13687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13688 }
13689 {
13690 if (temp2)
13691 delete arg2;
13692 }
13693 return resultobj;
13694 fail:
13695 {
13696 if (temp2)
13697 delete arg2;
13698 }
13699 return NULL;
13700 }
13701
13702
13703 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13704 PyObject *resultobj = 0;
13705 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13706 wxString result;
13707 void *argp1 = 0 ;
13708 int res1 = 0 ;
13709 PyObject *swig_obj[1] ;
13710
13711 if (!args) SWIG_fail;
13712 swig_obj[0] = args;
13713 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13714 if (!SWIG_IsOK(res1)) {
13715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13716 }
13717 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13718 {
13719 PyThreadState* __tstate = wxPyBeginAllowThreads();
13720 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13721 wxPyEndAllowThreads(__tstate);
13722 if (PyErr_Occurred()) SWIG_fail;
13723 }
13724 {
13725 #if wxUSE_UNICODE
13726 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13727 #else
13728 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13729 #endif
13730 }
13731 return resultobj;
13732 fail:
13733 return NULL;
13734 }
13735
13736
13737 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13738 PyObject *obj;
13739 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13740 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13741 return SWIG_Py_Void();
13742 }
13743
13744 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13745 return SWIG_Python_InitShadowInstance(args);
13746 }
13747
13748 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13749 PyObject *resultobj = 0;
13750 wxFontEncoding arg1 ;
13751 wxNativeEncodingInfo *result = 0 ;
13752 int val1 ;
13753 int ecode1 = 0 ;
13754 PyObject * obj0 = 0 ;
13755 char * kwnames[] = {
13756 (char *) "encoding", NULL
13757 };
13758
13759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13760 ecode1 = SWIG_AsVal_int(obj0, &val1);
13761 if (!SWIG_IsOK(ecode1)) {
13762 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13763 }
13764 arg1 = static_cast< wxFontEncoding >(val1);
13765 {
13766 PyThreadState* __tstate = wxPyBeginAllowThreads();
13767 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13768 wxPyEndAllowThreads(__tstate);
13769 if (PyErr_Occurred()) SWIG_fail;
13770 }
13771 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13772 return resultobj;
13773 fail:
13774 return NULL;
13775 }
13776
13777
13778 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13779 PyObject *resultobj = 0;
13780 wxNativeEncodingInfo *arg1 = 0 ;
13781 bool result;
13782 void *argp1 = 0 ;
13783 int res1 = 0 ;
13784 PyObject * obj0 = 0 ;
13785 char * kwnames[] = {
13786 (char *) "info", NULL
13787 };
13788
13789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13790 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13791 if (!SWIG_IsOK(res1)) {
13792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13793 }
13794 if (!argp1) {
13795 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13796 }
13797 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13798 {
13799 PyThreadState* __tstate = wxPyBeginAllowThreads();
13800 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13801 wxPyEndAllowThreads(__tstate);
13802 if (PyErr_Occurred()) SWIG_fail;
13803 }
13804 {
13805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13806 }
13807 return resultobj;
13808 fail:
13809 return NULL;
13810 }
13811
13812
13813 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13814 PyObject *resultobj = 0;
13815 wxFontMapper *result = 0 ;
13816
13817 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13818 {
13819 PyThreadState* __tstate = wxPyBeginAllowThreads();
13820 result = (wxFontMapper *)new wxFontMapper();
13821 wxPyEndAllowThreads(__tstate);
13822 if (PyErr_Occurred()) SWIG_fail;
13823 }
13824 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13825 return resultobj;
13826 fail:
13827 return NULL;
13828 }
13829
13830
13831 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13832 PyObject *resultobj = 0;
13833 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13834 void *argp1 = 0 ;
13835 int res1 = 0 ;
13836 PyObject *swig_obj[1] ;
13837
13838 if (!args) SWIG_fail;
13839 swig_obj[0] = args;
13840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13841 if (!SWIG_IsOK(res1)) {
13842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13843 }
13844 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13845 {
13846 PyThreadState* __tstate = wxPyBeginAllowThreads();
13847 delete arg1;
13848
13849 wxPyEndAllowThreads(__tstate);
13850 if (PyErr_Occurred()) SWIG_fail;
13851 }
13852 resultobj = SWIG_Py_Void();
13853 return resultobj;
13854 fail:
13855 return NULL;
13856 }
13857
13858
13859 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13860 PyObject *resultobj = 0;
13861 wxFontMapper *result = 0 ;
13862
13863 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13864 {
13865 PyThreadState* __tstate = wxPyBeginAllowThreads();
13866 result = (wxFontMapper *)wxFontMapper::Get();
13867 wxPyEndAllowThreads(__tstate);
13868 if (PyErr_Occurred()) SWIG_fail;
13869 }
13870 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13871 return resultobj;
13872 fail:
13873 return NULL;
13874 }
13875
13876
13877 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13878 PyObject *resultobj = 0;
13879 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13880 wxFontMapper *result = 0 ;
13881 void *argp1 = 0 ;
13882 int res1 = 0 ;
13883 PyObject * obj0 = 0 ;
13884 char * kwnames[] = {
13885 (char *) "mapper", NULL
13886 };
13887
13888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13890 if (!SWIG_IsOK(res1)) {
13891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13892 }
13893 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13894 {
13895 PyThreadState* __tstate = wxPyBeginAllowThreads();
13896 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13897 wxPyEndAllowThreads(__tstate);
13898 if (PyErr_Occurred()) SWIG_fail;
13899 }
13900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13901 return resultobj;
13902 fail:
13903 return NULL;
13904 }
13905
13906
13907 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13908 PyObject *resultobj = 0;
13909 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13910 wxString *arg2 = 0 ;
13911 bool arg3 = (bool) true ;
13912 wxFontEncoding result;
13913 void *argp1 = 0 ;
13914 int res1 = 0 ;
13915 bool temp2 = false ;
13916 bool val3 ;
13917 int ecode3 = 0 ;
13918 PyObject * obj0 = 0 ;
13919 PyObject * obj1 = 0 ;
13920 PyObject * obj2 = 0 ;
13921 char * kwnames[] = {
13922 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13923 };
13924
13925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13927 if (!SWIG_IsOK(res1)) {
13928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13929 }
13930 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13931 {
13932 arg2 = wxString_in_helper(obj1);
13933 if (arg2 == NULL) SWIG_fail;
13934 temp2 = true;
13935 }
13936 if (obj2) {
13937 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13938 if (!SWIG_IsOK(ecode3)) {
13939 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13940 }
13941 arg3 = static_cast< bool >(val3);
13942 }
13943 {
13944 PyThreadState* __tstate = wxPyBeginAllowThreads();
13945 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13946 wxPyEndAllowThreads(__tstate);
13947 if (PyErr_Occurred()) SWIG_fail;
13948 }
13949 resultobj = SWIG_From_int(static_cast< int >(result));
13950 {
13951 if (temp2)
13952 delete arg2;
13953 }
13954 return resultobj;
13955 fail:
13956 {
13957 if (temp2)
13958 delete arg2;
13959 }
13960 return NULL;
13961 }
13962
13963
13964 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13965 PyObject *resultobj = 0;
13966 size_t result;
13967
13968 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13969 {
13970 PyThreadState* __tstate = wxPyBeginAllowThreads();
13971 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13972 wxPyEndAllowThreads(__tstate);
13973 if (PyErr_Occurred()) SWIG_fail;
13974 }
13975 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13976 return resultobj;
13977 fail:
13978 return NULL;
13979 }
13980
13981
13982 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13983 PyObject *resultobj = 0;
13984 size_t arg1 ;
13985 wxFontEncoding result;
13986 size_t val1 ;
13987 int ecode1 = 0 ;
13988 PyObject * obj0 = 0 ;
13989 char * kwnames[] = {
13990 (char *) "n", NULL
13991 };
13992
13993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13994 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13995 if (!SWIG_IsOK(ecode1)) {
13996 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13997 }
13998 arg1 = static_cast< size_t >(val1);
13999 {
14000 PyThreadState* __tstate = wxPyBeginAllowThreads();
14001 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
14002 wxPyEndAllowThreads(__tstate);
14003 if (PyErr_Occurred()) SWIG_fail;
14004 }
14005 resultobj = SWIG_From_int(static_cast< int >(result));
14006 return resultobj;
14007 fail:
14008 return NULL;
14009 }
14010
14011
14012 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14013 PyObject *resultobj = 0;
14014 wxFontEncoding arg1 ;
14015 wxString result;
14016 int val1 ;
14017 int ecode1 = 0 ;
14018 PyObject * obj0 = 0 ;
14019 char * kwnames[] = {
14020 (char *) "encoding", NULL
14021 };
14022
14023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
14024 ecode1 = SWIG_AsVal_int(obj0, &val1);
14025 if (!SWIG_IsOK(ecode1)) {
14026 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14027 }
14028 arg1 = static_cast< wxFontEncoding >(val1);
14029 {
14030 PyThreadState* __tstate = wxPyBeginAllowThreads();
14031 result = wxFontMapper::GetEncodingName(arg1);
14032 wxPyEndAllowThreads(__tstate);
14033 if (PyErr_Occurred()) SWIG_fail;
14034 }
14035 {
14036 #if wxUSE_UNICODE
14037 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14038 #else
14039 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14040 #endif
14041 }
14042 return resultobj;
14043 fail:
14044 return NULL;
14045 }
14046
14047
14048 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14049 PyObject *resultobj = 0;
14050 wxFontEncoding arg1 ;
14051 wxString result;
14052 int val1 ;
14053 int ecode1 = 0 ;
14054 PyObject * obj0 = 0 ;
14055 char * kwnames[] = {
14056 (char *) "encoding", NULL
14057 };
14058
14059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
14060 ecode1 = SWIG_AsVal_int(obj0, &val1);
14061 if (!SWIG_IsOK(ecode1)) {
14062 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14063 }
14064 arg1 = static_cast< wxFontEncoding >(val1);
14065 {
14066 PyThreadState* __tstate = wxPyBeginAllowThreads();
14067 result = wxFontMapper::GetEncodingDescription(arg1);
14068 wxPyEndAllowThreads(__tstate);
14069 if (PyErr_Occurred()) SWIG_fail;
14070 }
14071 {
14072 #if wxUSE_UNICODE
14073 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14074 #else
14075 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14076 #endif
14077 }
14078 return resultobj;
14079 fail:
14080 return NULL;
14081 }
14082
14083
14084 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14085 PyObject *resultobj = 0;
14086 wxString *arg1 = 0 ;
14087 wxFontEncoding result;
14088 bool temp1 = false ;
14089 PyObject * obj0 = 0 ;
14090 char * kwnames[] = {
14091 (char *) "name", NULL
14092 };
14093
14094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
14095 {
14096 arg1 = wxString_in_helper(obj0);
14097 if (arg1 == NULL) SWIG_fail;
14098 temp1 = true;
14099 }
14100 {
14101 PyThreadState* __tstate = wxPyBeginAllowThreads();
14102 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
14103 wxPyEndAllowThreads(__tstate);
14104 if (PyErr_Occurred()) SWIG_fail;
14105 }
14106 resultobj = SWIG_From_int(static_cast< int >(result));
14107 {
14108 if (temp1)
14109 delete arg1;
14110 }
14111 return resultobj;
14112 fail:
14113 {
14114 if (temp1)
14115 delete arg1;
14116 }
14117 return NULL;
14118 }
14119
14120
14121 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14122 PyObject *resultobj = 0;
14123 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14124 wxString *arg2 = 0 ;
14125 void *argp1 = 0 ;
14126 int res1 = 0 ;
14127 bool temp2 = false ;
14128 PyObject * obj0 = 0 ;
14129 PyObject * obj1 = 0 ;
14130 char * kwnames[] = {
14131 (char *) "self",(char *) "prefix", NULL
14132 };
14133
14134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
14135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14136 if (!SWIG_IsOK(res1)) {
14137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14138 }
14139 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14140 {
14141 arg2 = wxString_in_helper(obj1);
14142 if (arg2 == NULL) SWIG_fail;
14143 temp2 = true;
14144 }
14145 {
14146 PyThreadState* __tstate = wxPyBeginAllowThreads();
14147 (arg1)->SetConfigPath((wxString const &)*arg2);
14148 wxPyEndAllowThreads(__tstate);
14149 if (PyErr_Occurred()) SWIG_fail;
14150 }
14151 resultobj = SWIG_Py_Void();
14152 {
14153 if (temp2)
14154 delete arg2;
14155 }
14156 return resultobj;
14157 fail:
14158 {
14159 if (temp2)
14160 delete arg2;
14161 }
14162 return NULL;
14163 }
14164
14165
14166 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14167 PyObject *resultobj = 0;
14168 wxString result;
14169
14170 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
14171 {
14172 PyThreadState* __tstate = wxPyBeginAllowThreads();
14173 result = wxFontMapper::GetDefaultConfigPath();
14174 wxPyEndAllowThreads(__tstate);
14175 if (PyErr_Occurred()) SWIG_fail;
14176 }
14177 {
14178 #if wxUSE_UNICODE
14179 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14180 #else
14181 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14182 #endif
14183 }
14184 return resultobj;
14185 fail:
14186 return NULL;
14187 }
14188
14189
14190 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14191 PyObject *resultobj = 0;
14192 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14193 wxFontEncoding arg2 ;
14194 wxString const &arg3_defvalue = wxPyEmptyString ;
14195 wxString *arg3 = (wxString *) &arg3_defvalue ;
14196 bool arg4 = (bool) true ;
14197 PyObject *result = 0 ;
14198 void *argp1 = 0 ;
14199 int res1 = 0 ;
14200 int val2 ;
14201 int ecode2 = 0 ;
14202 bool temp3 = false ;
14203 bool val4 ;
14204 int ecode4 = 0 ;
14205 PyObject * obj0 = 0 ;
14206 PyObject * obj1 = 0 ;
14207 PyObject * obj2 = 0 ;
14208 PyObject * obj3 = 0 ;
14209 char * kwnames[] = {
14210 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
14211 };
14212
14213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14215 if (!SWIG_IsOK(res1)) {
14216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14217 }
14218 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14219 ecode2 = SWIG_AsVal_int(obj1, &val2);
14220 if (!SWIG_IsOK(ecode2)) {
14221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14222 }
14223 arg2 = static_cast< wxFontEncoding >(val2);
14224 if (obj2) {
14225 {
14226 arg3 = wxString_in_helper(obj2);
14227 if (arg3 == NULL) SWIG_fail;
14228 temp3 = true;
14229 }
14230 }
14231 if (obj3) {
14232 ecode4 = SWIG_AsVal_bool(obj3, &val4);
14233 if (!SWIG_IsOK(ecode4)) {
14234 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
14235 }
14236 arg4 = static_cast< bool >(val4);
14237 }
14238 {
14239 PyThreadState* __tstate = wxPyBeginAllowThreads();
14240 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
14241 wxPyEndAllowThreads(__tstate);
14242 if (PyErr_Occurred()) SWIG_fail;
14243 }
14244 resultobj = result;
14245 {
14246 if (temp3)
14247 delete arg3;
14248 }
14249 return resultobj;
14250 fail:
14251 {
14252 if (temp3)
14253 delete arg3;
14254 }
14255 return NULL;
14256 }
14257
14258
14259 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14260 PyObject *resultobj = 0;
14261 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14262 wxFontEncoding arg2 ;
14263 wxString const &arg3_defvalue = wxPyEmptyString ;
14264 wxString *arg3 = (wxString *) &arg3_defvalue ;
14265 bool result;
14266 void *argp1 = 0 ;
14267 int res1 = 0 ;
14268 int val2 ;
14269 int ecode2 = 0 ;
14270 bool temp3 = false ;
14271 PyObject * obj0 = 0 ;
14272 PyObject * obj1 = 0 ;
14273 PyObject * obj2 = 0 ;
14274 char * kwnames[] = {
14275 (char *) "self",(char *) "encoding",(char *) "facename", NULL
14276 };
14277
14278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14280 if (!SWIG_IsOK(res1)) {
14281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14282 }
14283 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14284 ecode2 = SWIG_AsVal_int(obj1, &val2);
14285 if (!SWIG_IsOK(ecode2)) {
14286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14287 }
14288 arg2 = static_cast< wxFontEncoding >(val2);
14289 if (obj2) {
14290 {
14291 arg3 = wxString_in_helper(obj2);
14292 if (arg3 == NULL) SWIG_fail;
14293 temp3 = true;
14294 }
14295 }
14296 {
14297 PyThreadState* __tstate = wxPyBeginAllowThreads();
14298 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
14299 wxPyEndAllowThreads(__tstate);
14300 if (PyErr_Occurred()) SWIG_fail;
14301 }
14302 {
14303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14304 }
14305 {
14306 if (temp3)
14307 delete arg3;
14308 }
14309 return resultobj;
14310 fail:
14311 {
14312 if (temp3)
14313 delete arg3;
14314 }
14315 return NULL;
14316 }
14317
14318
14319 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14320 PyObject *resultobj = 0;
14321 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14322 wxWindow *arg2 = (wxWindow *) 0 ;
14323 void *argp1 = 0 ;
14324 int res1 = 0 ;
14325 void *argp2 = 0 ;
14326 int res2 = 0 ;
14327 PyObject * obj0 = 0 ;
14328 PyObject * obj1 = 0 ;
14329 char * kwnames[] = {
14330 (char *) "self",(char *) "parent", NULL
14331 };
14332
14333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
14334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14335 if (!SWIG_IsOK(res1)) {
14336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14337 }
14338 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14339 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14340 if (!SWIG_IsOK(res2)) {
14341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
14342 }
14343 arg2 = reinterpret_cast< wxWindow * >(argp2);
14344 {
14345 PyThreadState* __tstate = wxPyBeginAllowThreads();
14346 (arg1)->SetDialogParent(arg2);
14347 wxPyEndAllowThreads(__tstate);
14348 if (PyErr_Occurred()) SWIG_fail;
14349 }
14350 resultobj = SWIG_Py_Void();
14351 return resultobj;
14352 fail:
14353 return NULL;
14354 }
14355
14356
14357 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14358 PyObject *resultobj = 0;
14359 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14360 wxString *arg2 = 0 ;
14361 void *argp1 = 0 ;
14362 int res1 = 0 ;
14363 bool temp2 = false ;
14364 PyObject * obj0 = 0 ;
14365 PyObject * obj1 = 0 ;
14366 char * kwnames[] = {
14367 (char *) "self",(char *) "title", NULL
14368 };
14369
14370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
14371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14372 if (!SWIG_IsOK(res1)) {
14373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14374 }
14375 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14376 {
14377 arg2 = wxString_in_helper(obj1);
14378 if (arg2 == NULL) SWIG_fail;
14379 temp2 = true;
14380 }
14381 {
14382 PyThreadState* __tstate = wxPyBeginAllowThreads();
14383 (arg1)->SetDialogTitle((wxString const &)*arg2);
14384 wxPyEndAllowThreads(__tstate);
14385 if (PyErr_Occurred()) SWIG_fail;
14386 }
14387 resultobj = SWIG_Py_Void();
14388 {
14389 if (temp2)
14390 delete arg2;
14391 }
14392 return resultobj;
14393 fail:
14394 {
14395 if (temp2)
14396 delete arg2;
14397 }
14398 return NULL;
14399 }
14400
14401
14402 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14403 PyObject *obj;
14404 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14405 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
14406 return SWIG_Py_Void();
14407 }
14408
14409 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14410 return SWIG_Python_InitShadowInstance(args);
14411 }
14412
14413 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14414 PyObject *resultobj = 0;
14415 int arg1 ;
14416 int arg2 ;
14417 int arg3 ;
14418 int arg4 ;
14419 bool arg5 = (bool) false ;
14420 wxString const &arg6_defvalue = wxPyEmptyString ;
14421 wxString *arg6 = (wxString *) &arg6_defvalue ;
14422 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14423 wxFont *result = 0 ;
14424 int val1 ;
14425 int ecode1 = 0 ;
14426 int val2 ;
14427 int ecode2 = 0 ;
14428 int val3 ;
14429 int ecode3 = 0 ;
14430 int val4 ;
14431 int ecode4 = 0 ;
14432 bool val5 ;
14433 int ecode5 = 0 ;
14434 bool temp6 = false ;
14435 int val7 ;
14436 int ecode7 = 0 ;
14437 PyObject * obj0 = 0 ;
14438 PyObject * obj1 = 0 ;
14439 PyObject * obj2 = 0 ;
14440 PyObject * obj3 = 0 ;
14441 PyObject * obj4 = 0 ;
14442 PyObject * obj5 = 0 ;
14443 PyObject * obj6 = 0 ;
14444 char * kwnames[] = {
14445 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
14446 };
14447
14448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14449 ecode1 = SWIG_AsVal_int(obj0, &val1);
14450 if (!SWIG_IsOK(ecode1)) {
14451 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
14452 }
14453 arg1 = static_cast< int >(val1);
14454 ecode2 = SWIG_AsVal_int(obj1, &val2);
14455 if (!SWIG_IsOK(ecode2)) {
14456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
14457 }
14458 arg2 = static_cast< int >(val2);
14459 ecode3 = SWIG_AsVal_int(obj2, &val3);
14460 if (!SWIG_IsOK(ecode3)) {
14461 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
14462 }
14463 arg3 = static_cast< int >(val3);
14464 ecode4 = SWIG_AsVal_int(obj3, &val4);
14465 if (!SWIG_IsOK(ecode4)) {
14466 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
14467 }
14468 arg4 = static_cast< int >(val4);
14469 if (obj4) {
14470 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14471 if (!SWIG_IsOK(ecode5)) {
14472 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
14473 }
14474 arg5 = static_cast< bool >(val5);
14475 }
14476 if (obj5) {
14477 {
14478 arg6 = wxString_in_helper(obj5);
14479 if (arg6 == NULL) SWIG_fail;
14480 temp6 = true;
14481 }
14482 }
14483 if (obj6) {
14484 ecode7 = SWIG_AsVal_int(obj6, &val7);
14485 if (!SWIG_IsOK(ecode7)) {
14486 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14487 }
14488 arg7 = static_cast< wxFontEncoding >(val7);
14489 }
14490 {
14491 if (!wxPyCheckForApp()) SWIG_fail;
14492 PyThreadState* __tstate = wxPyBeginAllowThreads();
14493 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14494 wxPyEndAllowThreads(__tstate);
14495 if (PyErr_Occurred()) SWIG_fail;
14496 }
14497 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
14498 {
14499 if (temp6)
14500 delete arg6;
14501 }
14502 return resultobj;
14503 fail:
14504 {
14505 if (temp6)
14506 delete arg6;
14507 }
14508 return NULL;
14509 }
14510
14511
14512 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14513 PyObject *resultobj = 0;
14514 wxFont *arg1 = (wxFont *) 0 ;
14515 void *argp1 = 0 ;
14516 int res1 = 0 ;
14517 PyObject *swig_obj[1] ;
14518
14519 if (!args) SWIG_fail;
14520 swig_obj[0] = args;
14521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
14522 if (!SWIG_IsOK(res1)) {
14523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14524 }
14525 arg1 = reinterpret_cast< wxFont * >(argp1);
14526 {
14527 PyThreadState* __tstate = wxPyBeginAllowThreads();
14528 delete arg1;
14529
14530 wxPyEndAllowThreads(__tstate);
14531 if (PyErr_Occurred()) SWIG_fail;
14532 }
14533 resultobj = SWIG_Py_Void();
14534 return resultobj;
14535 fail:
14536 return NULL;
14537 }
14538
14539
14540 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14541 PyObject *resultobj = 0;
14542 wxNativeFontInfo *arg1 = 0 ;
14543 wxFont *result = 0 ;
14544 void *argp1 = 0 ;
14545 int res1 = 0 ;
14546 PyObject * obj0 = 0 ;
14547 char * kwnames[] = {
14548 (char *) "info", NULL
14549 };
14550
14551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14552 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14553 if (!SWIG_IsOK(res1)) {
14554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14555 }
14556 if (!argp1) {
14557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14558 }
14559 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14560 {
14561 if (!wxPyCheckForApp()) SWIG_fail;
14562 PyThreadState* __tstate = wxPyBeginAllowThreads();
14563 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14564 wxPyEndAllowThreads(__tstate);
14565 if (PyErr_Occurred()) SWIG_fail;
14566 }
14567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14568 return resultobj;
14569 fail:
14570 return NULL;
14571 }
14572
14573
14574 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14575 PyObject *resultobj = 0;
14576 wxString *arg1 = 0 ;
14577 wxFont *result = 0 ;
14578 bool temp1 = false ;
14579 PyObject * obj0 = 0 ;
14580 char * kwnames[] = {
14581 (char *) "info", NULL
14582 };
14583
14584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14585 {
14586 arg1 = wxString_in_helper(obj0);
14587 if (arg1 == NULL) SWIG_fail;
14588 temp1 = true;
14589 }
14590 {
14591 if (!wxPyCheckForApp()) SWIG_fail;
14592 PyThreadState* __tstate = wxPyBeginAllowThreads();
14593 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14594 wxPyEndAllowThreads(__tstate);
14595 if (PyErr_Occurred()) SWIG_fail;
14596 }
14597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14598 {
14599 if (temp1)
14600 delete arg1;
14601 }
14602 return resultobj;
14603 fail:
14604 {
14605 if (temp1)
14606 delete arg1;
14607 }
14608 return NULL;
14609 }
14610
14611
14612 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14613 PyObject *resultobj = 0;
14614 int arg1 ;
14615 wxFontFamily arg2 ;
14616 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14617 wxString const &arg4_defvalue = wxPyEmptyString ;
14618 wxString *arg4 = (wxString *) &arg4_defvalue ;
14619 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14620 wxFont *result = 0 ;
14621 int val1 ;
14622 int ecode1 = 0 ;
14623 int val2 ;
14624 int ecode2 = 0 ;
14625 int val3 ;
14626 int ecode3 = 0 ;
14627 bool temp4 = false ;
14628 int val5 ;
14629 int ecode5 = 0 ;
14630 PyObject * obj0 = 0 ;
14631 PyObject * obj1 = 0 ;
14632 PyObject * obj2 = 0 ;
14633 PyObject * obj3 = 0 ;
14634 PyObject * obj4 = 0 ;
14635 char * kwnames[] = {
14636 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14637 };
14638
14639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14640 ecode1 = SWIG_AsVal_int(obj0, &val1);
14641 if (!SWIG_IsOK(ecode1)) {
14642 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14643 }
14644 arg1 = static_cast< int >(val1);
14645 ecode2 = SWIG_AsVal_int(obj1, &val2);
14646 if (!SWIG_IsOK(ecode2)) {
14647 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14648 }
14649 arg2 = static_cast< wxFontFamily >(val2);
14650 if (obj2) {
14651 ecode3 = SWIG_AsVal_int(obj2, &val3);
14652 if (!SWIG_IsOK(ecode3)) {
14653 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14654 }
14655 arg3 = static_cast< int >(val3);
14656 }
14657 if (obj3) {
14658 {
14659 arg4 = wxString_in_helper(obj3);
14660 if (arg4 == NULL) SWIG_fail;
14661 temp4 = true;
14662 }
14663 }
14664 if (obj4) {
14665 ecode5 = SWIG_AsVal_int(obj4, &val5);
14666 if (!SWIG_IsOK(ecode5)) {
14667 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14668 }
14669 arg5 = static_cast< wxFontEncoding >(val5);
14670 }
14671 {
14672 if (!wxPyCheckForApp()) SWIG_fail;
14673 PyThreadState* __tstate = wxPyBeginAllowThreads();
14674 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14675 wxPyEndAllowThreads(__tstate);
14676 if (PyErr_Occurred()) SWIG_fail;
14677 }
14678 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14679 {
14680 if (temp4)
14681 delete arg4;
14682 }
14683 return resultobj;
14684 fail:
14685 {
14686 if (temp4)
14687 delete arg4;
14688 }
14689 return NULL;
14690 }
14691
14692
14693 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14694 PyObject *resultobj = 0;
14695 wxSize *arg1 = 0 ;
14696 int arg2 ;
14697 int arg3 ;
14698 int arg4 ;
14699 bool arg5 = (bool) false ;
14700 wxString const &arg6_defvalue = wxEmptyString ;
14701 wxString *arg6 = (wxString *) &arg6_defvalue ;
14702 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14703 wxFont *result = 0 ;
14704 wxSize temp1 ;
14705 int val2 ;
14706 int ecode2 = 0 ;
14707 int val3 ;
14708 int ecode3 = 0 ;
14709 int val4 ;
14710 int ecode4 = 0 ;
14711 bool val5 ;
14712 int ecode5 = 0 ;
14713 bool temp6 = false ;
14714 int val7 ;
14715 int ecode7 = 0 ;
14716 PyObject * obj0 = 0 ;
14717 PyObject * obj1 = 0 ;
14718 PyObject * obj2 = 0 ;
14719 PyObject * obj3 = 0 ;
14720 PyObject * obj4 = 0 ;
14721 PyObject * obj5 = 0 ;
14722 PyObject * obj6 = 0 ;
14723 char * kwnames[] = {
14724 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14725 };
14726
14727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14728 {
14729 arg1 = &temp1;
14730 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14731 }
14732 ecode2 = SWIG_AsVal_int(obj1, &val2);
14733 if (!SWIG_IsOK(ecode2)) {
14734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14735 }
14736 arg2 = static_cast< int >(val2);
14737 ecode3 = SWIG_AsVal_int(obj2, &val3);
14738 if (!SWIG_IsOK(ecode3)) {
14739 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14740 }
14741 arg3 = static_cast< int >(val3);
14742 ecode4 = SWIG_AsVal_int(obj3, &val4);
14743 if (!SWIG_IsOK(ecode4)) {
14744 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14745 }
14746 arg4 = static_cast< int >(val4);
14747 if (obj4) {
14748 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14749 if (!SWIG_IsOK(ecode5)) {
14750 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14751 }
14752 arg5 = static_cast< bool >(val5);
14753 }
14754 if (obj5) {
14755 {
14756 arg6 = wxString_in_helper(obj5);
14757 if (arg6 == NULL) SWIG_fail;
14758 temp6 = true;
14759 }
14760 }
14761 if (obj6) {
14762 ecode7 = SWIG_AsVal_int(obj6, &val7);
14763 if (!SWIG_IsOK(ecode7)) {
14764 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14765 }
14766 arg7 = static_cast< wxFontEncoding >(val7);
14767 }
14768 {
14769 if (!wxPyCheckForApp()) SWIG_fail;
14770 PyThreadState* __tstate = wxPyBeginAllowThreads();
14771 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14772 wxPyEndAllowThreads(__tstate);
14773 if (PyErr_Occurred()) SWIG_fail;
14774 }
14775 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14776 {
14777 if (temp6)
14778 delete arg6;
14779 }
14780 return resultobj;
14781 fail:
14782 {
14783 if (temp6)
14784 delete arg6;
14785 }
14786 return NULL;
14787 }
14788
14789
14790 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14791 PyObject *resultobj = 0;
14792 wxSize *arg1 = 0 ;
14793 wxFontFamily arg2 ;
14794 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14795 wxString const &arg4_defvalue = wxEmptyString ;
14796 wxString *arg4 = (wxString *) &arg4_defvalue ;
14797 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14798 wxFont *result = 0 ;
14799 wxSize temp1 ;
14800 int val2 ;
14801 int ecode2 = 0 ;
14802 int val3 ;
14803 int ecode3 = 0 ;
14804 bool temp4 = false ;
14805 int val5 ;
14806 int ecode5 = 0 ;
14807 PyObject * obj0 = 0 ;
14808 PyObject * obj1 = 0 ;
14809 PyObject * obj2 = 0 ;
14810 PyObject * obj3 = 0 ;
14811 PyObject * obj4 = 0 ;
14812 char * kwnames[] = {
14813 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14814 };
14815
14816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14817 {
14818 arg1 = &temp1;
14819 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14820 }
14821 ecode2 = SWIG_AsVal_int(obj1, &val2);
14822 if (!SWIG_IsOK(ecode2)) {
14823 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14824 }
14825 arg2 = static_cast< wxFontFamily >(val2);
14826 if (obj2) {
14827 ecode3 = SWIG_AsVal_int(obj2, &val3);
14828 if (!SWIG_IsOK(ecode3)) {
14829 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14830 }
14831 arg3 = static_cast< int >(val3);
14832 }
14833 if (obj3) {
14834 {
14835 arg4 = wxString_in_helper(obj3);
14836 if (arg4 == NULL) SWIG_fail;
14837 temp4 = true;
14838 }
14839 }
14840 if (obj4) {
14841 ecode5 = SWIG_AsVal_int(obj4, &val5);
14842 if (!SWIG_IsOK(ecode5)) {
14843 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14844 }
14845 arg5 = static_cast< wxFontEncoding >(val5);
14846 }
14847 {
14848 if (!wxPyCheckForApp()) SWIG_fail;
14849 PyThreadState* __tstate = wxPyBeginAllowThreads();
14850 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14851 wxPyEndAllowThreads(__tstate);
14852 if (PyErr_Occurred()) SWIG_fail;
14853 }
14854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14855 {
14856 if (temp4)
14857 delete arg4;
14858 }
14859 return resultobj;
14860 fail:
14861 {
14862 if (temp4)
14863 delete arg4;
14864 }
14865 return NULL;
14866 }
14867
14868
14869 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14870 PyObject *resultobj = 0;
14871 wxFont *arg1 = (wxFont *) 0 ;
14872 bool result;
14873 void *argp1 = 0 ;
14874 int res1 = 0 ;
14875 PyObject *swig_obj[1] ;
14876
14877 if (!args) SWIG_fail;
14878 swig_obj[0] = args;
14879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14880 if (!SWIG_IsOK(res1)) {
14881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
14882 }
14883 arg1 = reinterpret_cast< wxFont * >(argp1);
14884 {
14885 PyThreadState* __tstate = wxPyBeginAllowThreads();
14886 result = (bool)((wxFont const *)arg1)->IsOk();
14887 wxPyEndAllowThreads(__tstate);
14888 if (PyErr_Occurred()) SWIG_fail;
14889 }
14890 {
14891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14892 }
14893 return resultobj;
14894 fail:
14895 return NULL;
14896 }
14897
14898
14899 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14900 PyObject *resultobj = 0;
14901 wxFont *arg1 = (wxFont *) 0 ;
14902 wxFont *arg2 = (wxFont *) 0 ;
14903 bool result;
14904 void *argp1 = 0 ;
14905 int res1 = 0 ;
14906 void *argp2 = 0 ;
14907 int res2 = 0 ;
14908 PyObject * obj0 = 0 ;
14909 PyObject * obj1 = 0 ;
14910 char * kwnames[] = {
14911 (char *) "self",(char *) "other", NULL
14912 };
14913
14914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14916 if (!SWIG_IsOK(res1)) {
14917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14918 }
14919 arg1 = reinterpret_cast< wxFont * >(argp1);
14920 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14921 if (!SWIG_IsOK(res2)) {
14922 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14923 }
14924 arg2 = reinterpret_cast< wxFont * >(argp2);
14925 {
14926 PyThreadState* __tstate = wxPyBeginAllowThreads();
14927 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14928 wxPyEndAllowThreads(__tstate);
14929 if (PyErr_Occurred()) SWIG_fail;
14930 }
14931 {
14932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14933 }
14934 return resultobj;
14935 fail:
14936 return NULL;
14937 }
14938
14939
14940 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14941 PyObject *resultobj = 0;
14942 wxFont *arg1 = (wxFont *) 0 ;
14943 wxFont *arg2 = (wxFont *) 0 ;
14944 bool result;
14945 void *argp1 = 0 ;
14946 int res1 = 0 ;
14947 void *argp2 = 0 ;
14948 int res2 = 0 ;
14949 PyObject * obj0 = 0 ;
14950 PyObject * obj1 = 0 ;
14951 char * kwnames[] = {
14952 (char *) "self",(char *) "other", NULL
14953 };
14954
14955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14957 if (!SWIG_IsOK(res1)) {
14958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14959 }
14960 arg1 = reinterpret_cast< wxFont * >(argp1);
14961 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14962 if (!SWIG_IsOK(res2)) {
14963 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14964 }
14965 arg2 = reinterpret_cast< wxFont * >(argp2);
14966 {
14967 PyThreadState* __tstate = wxPyBeginAllowThreads();
14968 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14969 wxPyEndAllowThreads(__tstate);
14970 if (PyErr_Occurred()) SWIG_fail;
14971 }
14972 {
14973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14974 }
14975 return resultobj;
14976 fail:
14977 return NULL;
14978 }
14979
14980
14981 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14982 PyObject *resultobj = 0;
14983 wxFont *arg1 = (wxFont *) 0 ;
14984 int result;
14985 void *argp1 = 0 ;
14986 int res1 = 0 ;
14987 PyObject *swig_obj[1] ;
14988
14989 if (!args) SWIG_fail;
14990 swig_obj[0] = args;
14991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14992 if (!SWIG_IsOK(res1)) {
14993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14994 }
14995 arg1 = reinterpret_cast< wxFont * >(argp1);
14996 {
14997 PyThreadState* __tstate = wxPyBeginAllowThreads();
14998 result = (int)((wxFont const *)arg1)->GetPointSize();
14999 wxPyEndAllowThreads(__tstate);
15000 if (PyErr_Occurred()) SWIG_fail;
15001 }
15002 resultobj = SWIG_From_int(static_cast< int >(result));
15003 return resultobj;
15004 fail:
15005 return NULL;
15006 }
15007
15008
15009 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15010 PyObject *resultobj = 0;
15011 wxFont *arg1 = (wxFont *) 0 ;
15012 wxSize result;
15013 void *argp1 = 0 ;
15014 int res1 = 0 ;
15015 PyObject *swig_obj[1] ;
15016
15017 if (!args) SWIG_fail;
15018 swig_obj[0] = args;
15019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15020 if (!SWIG_IsOK(res1)) {
15021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
15022 }
15023 arg1 = reinterpret_cast< wxFont * >(argp1);
15024 {
15025 PyThreadState* __tstate = wxPyBeginAllowThreads();
15026 result = ((wxFont const *)arg1)->GetPixelSize();
15027 wxPyEndAllowThreads(__tstate);
15028 if (PyErr_Occurred()) SWIG_fail;
15029 }
15030 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
15031 return resultobj;
15032 fail:
15033 return NULL;
15034 }
15035
15036
15037 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15038 PyObject *resultobj = 0;
15039 wxFont *arg1 = (wxFont *) 0 ;
15040 bool result;
15041 void *argp1 = 0 ;
15042 int res1 = 0 ;
15043 PyObject *swig_obj[1] ;
15044
15045 if (!args) SWIG_fail;
15046 swig_obj[0] = args;
15047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15048 if (!SWIG_IsOK(res1)) {
15049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
15050 }
15051 arg1 = reinterpret_cast< wxFont * >(argp1);
15052 {
15053 PyThreadState* __tstate = wxPyBeginAllowThreads();
15054 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
15055 wxPyEndAllowThreads(__tstate);
15056 if (PyErr_Occurred()) SWIG_fail;
15057 }
15058 {
15059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15060 }
15061 return resultobj;
15062 fail:
15063 return NULL;
15064 }
15065
15066
15067 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15068 PyObject *resultobj = 0;
15069 wxFont *arg1 = (wxFont *) 0 ;
15070 int result;
15071 void *argp1 = 0 ;
15072 int res1 = 0 ;
15073 PyObject *swig_obj[1] ;
15074
15075 if (!args) SWIG_fail;
15076 swig_obj[0] = args;
15077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15078 if (!SWIG_IsOK(res1)) {
15079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
15080 }
15081 arg1 = reinterpret_cast< wxFont * >(argp1);
15082 {
15083 PyThreadState* __tstate = wxPyBeginAllowThreads();
15084 result = (int)((wxFont const *)arg1)->GetFamily();
15085 wxPyEndAllowThreads(__tstate);
15086 if (PyErr_Occurred()) SWIG_fail;
15087 }
15088 resultobj = SWIG_From_int(static_cast< int >(result));
15089 return resultobj;
15090 fail:
15091 return NULL;
15092 }
15093
15094
15095 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15096 PyObject *resultobj = 0;
15097 wxFont *arg1 = (wxFont *) 0 ;
15098 int result;
15099 void *argp1 = 0 ;
15100 int res1 = 0 ;
15101 PyObject *swig_obj[1] ;
15102
15103 if (!args) SWIG_fail;
15104 swig_obj[0] = args;
15105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15106 if (!SWIG_IsOK(res1)) {
15107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
15108 }
15109 arg1 = reinterpret_cast< wxFont * >(argp1);
15110 {
15111 PyThreadState* __tstate = wxPyBeginAllowThreads();
15112 result = (int)((wxFont const *)arg1)->GetStyle();
15113 wxPyEndAllowThreads(__tstate);
15114 if (PyErr_Occurred()) SWIG_fail;
15115 }
15116 resultobj = SWIG_From_int(static_cast< int >(result));
15117 return resultobj;
15118 fail:
15119 return NULL;
15120 }
15121
15122
15123 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15124 PyObject *resultobj = 0;
15125 wxFont *arg1 = (wxFont *) 0 ;
15126 int result;
15127 void *argp1 = 0 ;
15128 int res1 = 0 ;
15129 PyObject *swig_obj[1] ;
15130
15131 if (!args) SWIG_fail;
15132 swig_obj[0] = args;
15133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15134 if (!SWIG_IsOK(res1)) {
15135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
15136 }
15137 arg1 = reinterpret_cast< wxFont * >(argp1);
15138 {
15139 PyThreadState* __tstate = wxPyBeginAllowThreads();
15140 result = (int)((wxFont const *)arg1)->GetWeight();
15141 wxPyEndAllowThreads(__tstate);
15142 if (PyErr_Occurred()) SWIG_fail;
15143 }
15144 resultobj = SWIG_From_int(static_cast< int >(result));
15145 return resultobj;
15146 fail:
15147 return NULL;
15148 }
15149
15150
15151 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15152 PyObject *resultobj = 0;
15153 wxFont *arg1 = (wxFont *) 0 ;
15154 bool result;
15155 void *argp1 = 0 ;
15156 int res1 = 0 ;
15157 PyObject *swig_obj[1] ;
15158
15159 if (!args) SWIG_fail;
15160 swig_obj[0] = args;
15161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15162 if (!SWIG_IsOK(res1)) {
15163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
15164 }
15165 arg1 = reinterpret_cast< wxFont * >(argp1);
15166 {
15167 PyThreadState* __tstate = wxPyBeginAllowThreads();
15168 result = (bool)((wxFont const *)arg1)->GetUnderlined();
15169 wxPyEndAllowThreads(__tstate);
15170 if (PyErr_Occurred()) SWIG_fail;
15171 }
15172 {
15173 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15174 }
15175 return resultobj;
15176 fail:
15177 return NULL;
15178 }
15179
15180
15181 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15182 PyObject *resultobj = 0;
15183 wxFont *arg1 = (wxFont *) 0 ;
15184 wxString result;
15185 void *argp1 = 0 ;
15186 int res1 = 0 ;
15187 PyObject *swig_obj[1] ;
15188
15189 if (!args) SWIG_fail;
15190 swig_obj[0] = args;
15191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15192 if (!SWIG_IsOK(res1)) {
15193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
15194 }
15195 arg1 = reinterpret_cast< wxFont * >(argp1);
15196 {
15197 PyThreadState* __tstate = wxPyBeginAllowThreads();
15198 result = ((wxFont const *)arg1)->GetFaceName();
15199 wxPyEndAllowThreads(__tstate);
15200 if (PyErr_Occurred()) SWIG_fail;
15201 }
15202 {
15203 #if wxUSE_UNICODE
15204 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15205 #else
15206 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15207 #endif
15208 }
15209 return resultobj;
15210 fail:
15211 return NULL;
15212 }
15213
15214
15215 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15216 PyObject *resultobj = 0;
15217 wxFont *arg1 = (wxFont *) 0 ;
15218 wxFontEncoding result;
15219 void *argp1 = 0 ;
15220 int res1 = 0 ;
15221 PyObject *swig_obj[1] ;
15222
15223 if (!args) SWIG_fail;
15224 swig_obj[0] = args;
15225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15226 if (!SWIG_IsOK(res1)) {
15227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
15228 }
15229 arg1 = reinterpret_cast< wxFont * >(argp1);
15230 {
15231 PyThreadState* __tstate = wxPyBeginAllowThreads();
15232 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
15233 wxPyEndAllowThreads(__tstate);
15234 if (PyErr_Occurred()) SWIG_fail;
15235 }
15236 resultobj = SWIG_From_int(static_cast< int >(result));
15237 return resultobj;
15238 fail:
15239 return NULL;
15240 }
15241
15242
15243 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15244 PyObject *resultobj = 0;
15245 wxFont *arg1 = (wxFont *) 0 ;
15246 wxNativeFontInfo *result = 0 ;
15247 void *argp1 = 0 ;
15248 int res1 = 0 ;
15249 PyObject *swig_obj[1] ;
15250
15251 if (!args) SWIG_fail;
15252 swig_obj[0] = args;
15253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15254 if (!SWIG_IsOK(res1)) {
15255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
15256 }
15257 arg1 = reinterpret_cast< wxFont * >(argp1);
15258 {
15259 PyThreadState* __tstate = wxPyBeginAllowThreads();
15260 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
15261 wxPyEndAllowThreads(__tstate);
15262 if (PyErr_Occurred()) SWIG_fail;
15263 }
15264 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
15265 return resultobj;
15266 fail:
15267 return NULL;
15268 }
15269
15270
15271 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15272 PyObject *resultobj = 0;
15273 wxFont *arg1 = (wxFont *) 0 ;
15274 bool result;
15275 void *argp1 = 0 ;
15276 int res1 = 0 ;
15277 PyObject *swig_obj[1] ;
15278
15279 if (!args) SWIG_fail;
15280 swig_obj[0] = args;
15281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15282 if (!SWIG_IsOK(res1)) {
15283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
15284 }
15285 arg1 = reinterpret_cast< wxFont * >(argp1);
15286 {
15287 PyThreadState* __tstate = wxPyBeginAllowThreads();
15288 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
15289 wxPyEndAllowThreads(__tstate);
15290 if (PyErr_Occurred()) SWIG_fail;
15291 }
15292 {
15293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15294 }
15295 return resultobj;
15296 fail:
15297 return NULL;
15298 }
15299
15300
15301 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15302 PyObject *resultobj = 0;
15303 wxFont *arg1 = (wxFont *) 0 ;
15304 wxString result;
15305 void *argp1 = 0 ;
15306 int res1 = 0 ;
15307 PyObject *swig_obj[1] ;
15308
15309 if (!args) SWIG_fail;
15310 swig_obj[0] = args;
15311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15312 if (!SWIG_IsOK(res1)) {
15313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15314 }
15315 arg1 = reinterpret_cast< wxFont * >(argp1);
15316 {
15317 PyThreadState* __tstate = wxPyBeginAllowThreads();
15318 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
15319 wxPyEndAllowThreads(__tstate);
15320 if (PyErr_Occurred()) SWIG_fail;
15321 }
15322 {
15323 #if wxUSE_UNICODE
15324 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15325 #else
15326 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15327 #endif
15328 }
15329 return resultobj;
15330 fail:
15331 return NULL;
15332 }
15333
15334
15335 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15336 PyObject *resultobj = 0;
15337 wxFont *arg1 = (wxFont *) 0 ;
15338 wxString result;
15339 void *argp1 = 0 ;
15340 int res1 = 0 ;
15341 PyObject *swig_obj[1] ;
15342
15343 if (!args) SWIG_fail;
15344 swig_obj[0] = args;
15345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15346 if (!SWIG_IsOK(res1)) {
15347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15348 }
15349 arg1 = reinterpret_cast< wxFont * >(argp1);
15350 {
15351 PyThreadState* __tstate = wxPyBeginAllowThreads();
15352 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
15353 wxPyEndAllowThreads(__tstate);
15354 if (PyErr_Occurred()) SWIG_fail;
15355 }
15356 {
15357 #if wxUSE_UNICODE
15358 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15359 #else
15360 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15361 #endif
15362 }
15363 return resultobj;
15364 fail:
15365 return NULL;
15366 }
15367
15368
15369 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15370 PyObject *resultobj = 0;
15371 wxFont *arg1 = (wxFont *) 0 ;
15372 int arg2 ;
15373 void *argp1 = 0 ;
15374 int res1 = 0 ;
15375 int val2 ;
15376 int ecode2 = 0 ;
15377 PyObject * obj0 = 0 ;
15378 PyObject * obj1 = 0 ;
15379 char * kwnames[] = {
15380 (char *) "self",(char *) "pointSize", NULL
15381 };
15382
15383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
15384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15385 if (!SWIG_IsOK(res1)) {
15386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
15387 }
15388 arg1 = reinterpret_cast< wxFont * >(argp1);
15389 ecode2 = SWIG_AsVal_int(obj1, &val2);
15390 if (!SWIG_IsOK(ecode2)) {
15391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
15392 }
15393 arg2 = static_cast< int >(val2);
15394 {
15395 PyThreadState* __tstate = wxPyBeginAllowThreads();
15396 (arg1)->SetPointSize(arg2);
15397 wxPyEndAllowThreads(__tstate);
15398 if (PyErr_Occurred()) SWIG_fail;
15399 }
15400 resultobj = SWIG_Py_Void();
15401 return resultobj;
15402 fail:
15403 return NULL;
15404 }
15405
15406
15407 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15408 PyObject *resultobj = 0;
15409 wxFont *arg1 = (wxFont *) 0 ;
15410 wxSize *arg2 = 0 ;
15411 void *argp1 = 0 ;
15412 int res1 = 0 ;
15413 wxSize temp2 ;
15414 PyObject * obj0 = 0 ;
15415 PyObject * obj1 = 0 ;
15416 char * kwnames[] = {
15417 (char *) "self",(char *) "pixelSize", NULL
15418 };
15419
15420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
15421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15422 if (!SWIG_IsOK(res1)) {
15423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
15424 }
15425 arg1 = reinterpret_cast< wxFont * >(argp1);
15426 {
15427 arg2 = &temp2;
15428 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15429 }
15430 {
15431 PyThreadState* __tstate = wxPyBeginAllowThreads();
15432 (arg1)->SetPixelSize((wxSize const &)*arg2);
15433 wxPyEndAllowThreads(__tstate);
15434 if (PyErr_Occurred()) SWIG_fail;
15435 }
15436 resultobj = SWIG_Py_Void();
15437 return resultobj;
15438 fail:
15439 return NULL;
15440 }
15441
15442
15443 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15444 PyObject *resultobj = 0;
15445 wxFont *arg1 = (wxFont *) 0 ;
15446 int arg2 ;
15447 void *argp1 = 0 ;
15448 int res1 = 0 ;
15449 int val2 ;
15450 int ecode2 = 0 ;
15451 PyObject * obj0 = 0 ;
15452 PyObject * obj1 = 0 ;
15453 char * kwnames[] = {
15454 (char *) "self",(char *) "family", NULL
15455 };
15456
15457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
15458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15459 if (!SWIG_IsOK(res1)) {
15460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
15461 }
15462 arg1 = reinterpret_cast< wxFont * >(argp1);
15463 ecode2 = SWIG_AsVal_int(obj1, &val2);
15464 if (!SWIG_IsOK(ecode2)) {
15465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
15466 }
15467 arg2 = static_cast< int >(val2);
15468 {
15469 PyThreadState* __tstate = wxPyBeginAllowThreads();
15470 (arg1)->SetFamily(arg2);
15471 wxPyEndAllowThreads(__tstate);
15472 if (PyErr_Occurred()) SWIG_fail;
15473 }
15474 resultobj = SWIG_Py_Void();
15475 return resultobj;
15476 fail:
15477 return NULL;
15478 }
15479
15480
15481 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15482 PyObject *resultobj = 0;
15483 wxFont *arg1 = (wxFont *) 0 ;
15484 int arg2 ;
15485 void *argp1 = 0 ;
15486 int res1 = 0 ;
15487 int val2 ;
15488 int ecode2 = 0 ;
15489 PyObject * obj0 = 0 ;
15490 PyObject * obj1 = 0 ;
15491 char * kwnames[] = {
15492 (char *) "self",(char *) "style", NULL
15493 };
15494
15495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
15496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15497 if (!SWIG_IsOK(res1)) {
15498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
15499 }
15500 arg1 = reinterpret_cast< wxFont * >(argp1);
15501 ecode2 = SWIG_AsVal_int(obj1, &val2);
15502 if (!SWIG_IsOK(ecode2)) {
15503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
15504 }
15505 arg2 = static_cast< int >(val2);
15506 {
15507 PyThreadState* __tstate = wxPyBeginAllowThreads();
15508 (arg1)->SetStyle(arg2);
15509 wxPyEndAllowThreads(__tstate);
15510 if (PyErr_Occurred()) SWIG_fail;
15511 }
15512 resultobj = SWIG_Py_Void();
15513 return resultobj;
15514 fail:
15515 return NULL;
15516 }
15517
15518
15519 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15520 PyObject *resultobj = 0;
15521 wxFont *arg1 = (wxFont *) 0 ;
15522 int arg2 ;
15523 void *argp1 = 0 ;
15524 int res1 = 0 ;
15525 int val2 ;
15526 int ecode2 = 0 ;
15527 PyObject * obj0 = 0 ;
15528 PyObject * obj1 = 0 ;
15529 char * kwnames[] = {
15530 (char *) "self",(char *) "weight", NULL
15531 };
15532
15533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15535 if (!SWIG_IsOK(res1)) {
15536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15537 }
15538 arg1 = reinterpret_cast< wxFont * >(argp1);
15539 ecode2 = SWIG_AsVal_int(obj1, &val2);
15540 if (!SWIG_IsOK(ecode2)) {
15541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15542 }
15543 arg2 = static_cast< int >(val2);
15544 {
15545 PyThreadState* __tstate = wxPyBeginAllowThreads();
15546 (arg1)->SetWeight(arg2);
15547 wxPyEndAllowThreads(__tstate);
15548 if (PyErr_Occurred()) SWIG_fail;
15549 }
15550 resultobj = SWIG_Py_Void();
15551 return resultobj;
15552 fail:
15553 return NULL;
15554 }
15555
15556
15557 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15558 PyObject *resultobj = 0;
15559 wxFont *arg1 = (wxFont *) 0 ;
15560 wxString *arg2 = 0 ;
15561 bool result;
15562 void *argp1 = 0 ;
15563 int res1 = 0 ;
15564 bool temp2 = false ;
15565 PyObject * obj0 = 0 ;
15566 PyObject * obj1 = 0 ;
15567 char * kwnames[] = {
15568 (char *) "self",(char *) "faceName", NULL
15569 };
15570
15571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15573 if (!SWIG_IsOK(res1)) {
15574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15575 }
15576 arg1 = reinterpret_cast< wxFont * >(argp1);
15577 {
15578 arg2 = wxString_in_helper(obj1);
15579 if (arg2 == NULL) SWIG_fail;
15580 temp2 = true;
15581 }
15582 {
15583 PyThreadState* __tstate = wxPyBeginAllowThreads();
15584 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
15585 wxPyEndAllowThreads(__tstate);
15586 if (PyErr_Occurred()) SWIG_fail;
15587 }
15588 {
15589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15590 }
15591 {
15592 if (temp2)
15593 delete arg2;
15594 }
15595 return resultobj;
15596 fail:
15597 {
15598 if (temp2)
15599 delete arg2;
15600 }
15601 return NULL;
15602 }
15603
15604
15605 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15606 PyObject *resultobj = 0;
15607 wxFont *arg1 = (wxFont *) 0 ;
15608 bool arg2 ;
15609 void *argp1 = 0 ;
15610 int res1 = 0 ;
15611 bool val2 ;
15612 int ecode2 = 0 ;
15613 PyObject * obj0 = 0 ;
15614 PyObject * obj1 = 0 ;
15615 char * kwnames[] = {
15616 (char *) "self",(char *) "underlined", NULL
15617 };
15618
15619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15621 if (!SWIG_IsOK(res1)) {
15622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15623 }
15624 arg1 = reinterpret_cast< wxFont * >(argp1);
15625 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15626 if (!SWIG_IsOK(ecode2)) {
15627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15628 }
15629 arg2 = static_cast< bool >(val2);
15630 {
15631 PyThreadState* __tstate = wxPyBeginAllowThreads();
15632 (arg1)->SetUnderlined(arg2);
15633 wxPyEndAllowThreads(__tstate);
15634 if (PyErr_Occurred()) SWIG_fail;
15635 }
15636 resultobj = SWIG_Py_Void();
15637 return resultobj;
15638 fail:
15639 return NULL;
15640 }
15641
15642
15643 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15644 PyObject *resultobj = 0;
15645 wxFont *arg1 = (wxFont *) 0 ;
15646 wxFontEncoding arg2 ;
15647 void *argp1 = 0 ;
15648 int res1 = 0 ;
15649 int val2 ;
15650 int ecode2 = 0 ;
15651 PyObject * obj0 = 0 ;
15652 PyObject * obj1 = 0 ;
15653 char * kwnames[] = {
15654 (char *) "self",(char *) "encoding", NULL
15655 };
15656
15657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15659 if (!SWIG_IsOK(res1)) {
15660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15661 }
15662 arg1 = reinterpret_cast< wxFont * >(argp1);
15663 ecode2 = SWIG_AsVal_int(obj1, &val2);
15664 if (!SWIG_IsOK(ecode2)) {
15665 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15666 }
15667 arg2 = static_cast< wxFontEncoding >(val2);
15668 {
15669 PyThreadState* __tstate = wxPyBeginAllowThreads();
15670 (arg1)->SetEncoding(arg2);
15671 wxPyEndAllowThreads(__tstate);
15672 if (PyErr_Occurred()) SWIG_fail;
15673 }
15674 resultobj = SWIG_Py_Void();
15675 return resultobj;
15676 fail:
15677 return NULL;
15678 }
15679
15680
15681 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15682 PyObject *resultobj = 0;
15683 wxFont *arg1 = (wxFont *) 0 ;
15684 wxNativeFontInfo *arg2 = 0 ;
15685 void *argp1 = 0 ;
15686 int res1 = 0 ;
15687 void *argp2 = 0 ;
15688 int res2 = 0 ;
15689 PyObject * obj0 = 0 ;
15690 PyObject * obj1 = 0 ;
15691 char * kwnames[] = {
15692 (char *) "self",(char *) "info", NULL
15693 };
15694
15695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15697 if (!SWIG_IsOK(res1)) {
15698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15699 }
15700 arg1 = reinterpret_cast< wxFont * >(argp1);
15701 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15702 if (!SWIG_IsOK(res2)) {
15703 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15704 }
15705 if (!argp2) {
15706 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15707 }
15708 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15709 {
15710 PyThreadState* __tstate = wxPyBeginAllowThreads();
15711 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15712 wxPyEndAllowThreads(__tstate);
15713 if (PyErr_Occurred()) SWIG_fail;
15714 }
15715 resultobj = SWIG_Py_Void();
15716 return resultobj;
15717 fail:
15718 return NULL;
15719 }
15720
15721
15722 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15723 PyObject *resultobj = 0;
15724 wxFont *arg1 = (wxFont *) 0 ;
15725 wxString *arg2 = 0 ;
15726 bool result;
15727 void *argp1 = 0 ;
15728 int res1 = 0 ;
15729 bool temp2 = false ;
15730 PyObject * obj0 = 0 ;
15731 PyObject * obj1 = 0 ;
15732 char * kwnames[] = {
15733 (char *) "self",(char *) "info", NULL
15734 };
15735
15736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15738 if (!SWIG_IsOK(res1)) {
15739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15740 }
15741 arg1 = reinterpret_cast< wxFont * >(argp1);
15742 {
15743 arg2 = wxString_in_helper(obj1);
15744 if (arg2 == NULL) SWIG_fail;
15745 temp2 = true;
15746 }
15747 {
15748 PyThreadState* __tstate = wxPyBeginAllowThreads();
15749 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15750 wxPyEndAllowThreads(__tstate);
15751 if (PyErr_Occurred()) SWIG_fail;
15752 }
15753 {
15754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15755 }
15756 {
15757 if (temp2)
15758 delete arg2;
15759 }
15760 return resultobj;
15761 fail:
15762 {
15763 if (temp2)
15764 delete arg2;
15765 }
15766 return NULL;
15767 }
15768
15769
15770 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15771 PyObject *resultobj = 0;
15772 wxFont *arg1 = (wxFont *) 0 ;
15773 wxString *arg2 = 0 ;
15774 bool result;
15775 void *argp1 = 0 ;
15776 int res1 = 0 ;
15777 bool temp2 = false ;
15778 PyObject * obj0 = 0 ;
15779 PyObject * obj1 = 0 ;
15780 char * kwnames[] = {
15781 (char *) "self",(char *) "info", NULL
15782 };
15783
15784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15786 if (!SWIG_IsOK(res1)) {
15787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15788 }
15789 arg1 = reinterpret_cast< wxFont * >(argp1);
15790 {
15791 arg2 = wxString_in_helper(obj1);
15792 if (arg2 == NULL) SWIG_fail;
15793 temp2 = true;
15794 }
15795 {
15796 PyThreadState* __tstate = wxPyBeginAllowThreads();
15797 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15798 wxPyEndAllowThreads(__tstate);
15799 if (PyErr_Occurred()) SWIG_fail;
15800 }
15801 {
15802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15803 }
15804 {
15805 if (temp2)
15806 delete arg2;
15807 }
15808 return resultobj;
15809 fail:
15810 {
15811 if (temp2)
15812 delete arg2;
15813 }
15814 return NULL;
15815 }
15816
15817
15818 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15819 PyObject *resultobj = 0;
15820 wxFont *arg1 = (wxFont *) 0 ;
15821 wxString result;
15822 void *argp1 = 0 ;
15823 int res1 = 0 ;
15824 PyObject *swig_obj[1] ;
15825
15826 if (!args) SWIG_fail;
15827 swig_obj[0] = args;
15828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15829 if (!SWIG_IsOK(res1)) {
15830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15831 }
15832 arg1 = reinterpret_cast< wxFont * >(argp1);
15833 {
15834 PyThreadState* __tstate = wxPyBeginAllowThreads();
15835 result = ((wxFont const *)arg1)->GetFamilyString();
15836 wxPyEndAllowThreads(__tstate);
15837 if (PyErr_Occurred()) SWIG_fail;
15838 }
15839 {
15840 #if wxUSE_UNICODE
15841 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15842 #else
15843 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15844 #endif
15845 }
15846 return resultobj;
15847 fail:
15848 return NULL;
15849 }
15850
15851
15852 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15853 PyObject *resultobj = 0;
15854 wxFont *arg1 = (wxFont *) 0 ;
15855 wxString result;
15856 void *argp1 = 0 ;
15857 int res1 = 0 ;
15858 PyObject *swig_obj[1] ;
15859
15860 if (!args) SWIG_fail;
15861 swig_obj[0] = args;
15862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15863 if (!SWIG_IsOK(res1)) {
15864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15865 }
15866 arg1 = reinterpret_cast< wxFont * >(argp1);
15867 {
15868 PyThreadState* __tstate = wxPyBeginAllowThreads();
15869 result = ((wxFont const *)arg1)->GetStyleString();
15870 wxPyEndAllowThreads(__tstate);
15871 if (PyErr_Occurred()) SWIG_fail;
15872 }
15873 {
15874 #if wxUSE_UNICODE
15875 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15876 #else
15877 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15878 #endif
15879 }
15880 return resultobj;
15881 fail:
15882 return NULL;
15883 }
15884
15885
15886 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15887 PyObject *resultobj = 0;
15888 wxFont *arg1 = (wxFont *) 0 ;
15889 wxString result;
15890 void *argp1 = 0 ;
15891 int res1 = 0 ;
15892 PyObject *swig_obj[1] ;
15893
15894 if (!args) SWIG_fail;
15895 swig_obj[0] = args;
15896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15897 if (!SWIG_IsOK(res1)) {
15898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15899 }
15900 arg1 = reinterpret_cast< wxFont * >(argp1);
15901 {
15902 PyThreadState* __tstate = wxPyBeginAllowThreads();
15903 result = ((wxFont const *)arg1)->GetWeightString();
15904 wxPyEndAllowThreads(__tstate);
15905 if (PyErr_Occurred()) SWIG_fail;
15906 }
15907 {
15908 #if wxUSE_UNICODE
15909 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15910 #else
15911 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15912 #endif
15913 }
15914 return resultobj;
15915 fail:
15916 return NULL;
15917 }
15918
15919
15920 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15921 PyObject *resultobj = 0;
15922 wxFont *arg1 = (wxFont *) 0 ;
15923 bool arg2 = (bool) true ;
15924 void *argp1 = 0 ;
15925 int res1 = 0 ;
15926 bool val2 ;
15927 int ecode2 = 0 ;
15928 PyObject * obj0 = 0 ;
15929 PyObject * obj1 = 0 ;
15930 char * kwnames[] = {
15931 (char *) "self",(char *) "no", NULL
15932 };
15933
15934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15936 if (!SWIG_IsOK(res1)) {
15937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15938 }
15939 arg1 = reinterpret_cast< wxFont * >(argp1);
15940 if (obj1) {
15941 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15942 if (!SWIG_IsOK(ecode2)) {
15943 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15944 }
15945 arg2 = static_cast< bool >(val2);
15946 }
15947 {
15948 PyThreadState* __tstate = wxPyBeginAllowThreads();
15949 (arg1)->SetNoAntiAliasing(arg2);
15950 wxPyEndAllowThreads(__tstate);
15951 if (PyErr_Occurred()) SWIG_fail;
15952 }
15953 resultobj = SWIG_Py_Void();
15954 return resultobj;
15955 fail:
15956 return NULL;
15957 }
15958
15959
15960 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15961 PyObject *resultobj = 0;
15962 wxFont *arg1 = (wxFont *) 0 ;
15963 bool result;
15964 void *argp1 = 0 ;
15965 int res1 = 0 ;
15966 PyObject *swig_obj[1] ;
15967
15968 if (!args) SWIG_fail;
15969 swig_obj[0] = args;
15970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15971 if (!SWIG_IsOK(res1)) {
15972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15973 }
15974 arg1 = reinterpret_cast< wxFont * >(argp1);
15975 {
15976 PyThreadState* __tstate = wxPyBeginAllowThreads();
15977 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15978 wxPyEndAllowThreads(__tstate);
15979 if (PyErr_Occurred()) SWIG_fail;
15980 }
15981 {
15982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15983 }
15984 return resultobj;
15985 fail:
15986 return NULL;
15987 }
15988
15989
15990 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15991 PyObject *resultobj = 0;
15992 wxFontEncoding result;
15993
15994 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15995 {
15996 if (!wxPyCheckForApp()) SWIG_fail;
15997 PyThreadState* __tstate = wxPyBeginAllowThreads();
15998 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15999 wxPyEndAllowThreads(__tstate);
16000 if (PyErr_Occurred()) SWIG_fail;
16001 }
16002 resultobj = SWIG_From_int(static_cast< int >(result));
16003 return resultobj;
16004 fail:
16005 return NULL;
16006 }
16007
16008
16009 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16010 PyObject *resultobj = 0;
16011 wxFontEncoding arg1 ;
16012 int val1 ;
16013 int ecode1 = 0 ;
16014 PyObject * obj0 = 0 ;
16015 char * kwnames[] = {
16016 (char *) "encoding", NULL
16017 };
16018
16019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
16020 ecode1 = SWIG_AsVal_int(obj0, &val1);
16021 if (!SWIG_IsOK(ecode1)) {
16022 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16023 }
16024 arg1 = static_cast< wxFontEncoding >(val1);
16025 {
16026 if (!wxPyCheckForApp()) SWIG_fail;
16027 PyThreadState* __tstate = wxPyBeginAllowThreads();
16028 wxFont::SetDefaultEncoding(arg1);
16029 wxPyEndAllowThreads(__tstate);
16030 if (PyErr_Occurred()) SWIG_fail;
16031 }
16032 resultobj = SWIG_Py_Void();
16033 return resultobj;
16034 fail:
16035 return NULL;
16036 }
16037
16038
16039 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16040 PyObject *obj;
16041 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16042 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
16043 return SWIG_Py_Void();
16044 }
16045
16046 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16047 return SWIG_Python_InitShadowInstance(args);
16048 }
16049
16050 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16051 PyObject *resultobj = 0;
16052 wxPyFontEnumerator *result = 0 ;
16053
16054 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
16055 {
16056 if (!wxPyCheckForApp()) SWIG_fail;
16057 PyThreadState* __tstate = wxPyBeginAllowThreads();
16058 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
16059 wxPyEndAllowThreads(__tstate);
16060 if (PyErr_Occurred()) SWIG_fail;
16061 }
16062 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
16063 return resultobj;
16064 fail:
16065 return NULL;
16066 }
16067
16068
16069 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16070 PyObject *resultobj = 0;
16071 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16072 void *argp1 = 0 ;
16073 int res1 = 0 ;
16074 PyObject *swig_obj[1] ;
16075
16076 if (!args) SWIG_fail;
16077 swig_obj[0] = args;
16078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
16079 if (!SWIG_IsOK(res1)) {
16080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16081 }
16082 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16083 {
16084 PyThreadState* __tstate = wxPyBeginAllowThreads();
16085 delete arg1;
16086
16087 wxPyEndAllowThreads(__tstate);
16088 if (PyErr_Occurred()) SWIG_fail;
16089 }
16090 resultobj = SWIG_Py_Void();
16091 return resultobj;
16092 fail:
16093 return NULL;
16094 }
16095
16096
16097 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16098 PyObject *resultobj = 0;
16099 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16100 PyObject *arg2 = (PyObject *) 0 ;
16101 PyObject *arg3 = (PyObject *) 0 ;
16102 bool arg4 ;
16103 void *argp1 = 0 ;
16104 int res1 = 0 ;
16105 bool val4 ;
16106 int ecode4 = 0 ;
16107 PyObject * obj0 = 0 ;
16108 PyObject * obj1 = 0 ;
16109 PyObject * obj2 = 0 ;
16110 PyObject * obj3 = 0 ;
16111 char * kwnames[] = {
16112 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
16113 };
16114
16115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16117 if (!SWIG_IsOK(res1)) {
16118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16119 }
16120 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16121 arg2 = obj1;
16122 arg3 = obj2;
16123 ecode4 = SWIG_AsVal_bool(obj3, &val4);
16124 if (!SWIG_IsOK(ecode4)) {
16125 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
16126 }
16127 arg4 = static_cast< bool >(val4);
16128 {
16129 PyThreadState* __tstate = wxPyBeginAllowThreads();
16130 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
16131 wxPyEndAllowThreads(__tstate);
16132 if (PyErr_Occurred()) SWIG_fail;
16133 }
16134 resultobj = SWIG_Py_Void();
16135 return resultobj;
16136 fail:
16137 return NULL;
16138 }
16139
16140
16141 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16142 PyObject *resultobj = 0;
16143 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16144 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
16145 bool arg3 = (bool) false ;
16146 bool result;
16147 void *argp1 = 0 ;
16148 int res1 = 0 ;
16149 int val2 ;
16150 int ecode2 = 0 ;
16151 bool val3 ;
16152 int ecode3 = 0 ;
16153 PyObject * obj0 = 0 ;
16154 PyObject * obj1 = 0 ;
16155 PyObject * obj2 = 0 ;
16156 char * kwnames[] = {
16157 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
16158 };
16159
16160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16162 if (!SWIG_IsOK(res1)) {
16163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16164 }
16165 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16166 if (obj1) {
16167 ecode2 = SWIG_AsVal_int(obj1, &val2);
16168 if (!SWIG_IsOK(ecode2)) {
16169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16170 }
16171 arg2 = static_cast< wxFontEncoding >(val2);
16172 }
16173 if (obj2) {
16174 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16175 if (!SWIG_IsOK(ecode3)) {
16176 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
16177 }
16178 arg3 = static_cast< bool >(val3);
16179 }
16180 {
16181 PyThreadState* __tstate = wxPyBeginAllowThreads();
16182 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
16183 wxPyEndAllowThreads(__tstate);
16184 if (PyErr_Occurred()) SWIG_fail;
16185 }
16186 {
16187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16188 }
16189 return resultobj;
16190 fail:
16191 return NULL;
16192 }
16193
16194
16195 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16196 PyObject *resultobj = 0;
16197 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16198 wxString const &arg2_defvalue = wxPyEmptyString ;
16199 wxString *arg2 = (wxString *) &arg2_defvalue ;
16200 bool result;
16201 void *argp1 = 0 ;
16202 int res1 = 0 ;
16203 bool temp2 = false ;
16204 PyObject * obj0 = 0 ;
16205 PyObject * obj1 = 0 ;
16206 char * kwnames[] = {
16207 (char *) "self",(char *) "facename", NULL
16208 };
16209
16210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
16211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16212 if (!SWIG_IsOK(res1)) {
16213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16214 }
16215 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16216 if (obj1) {
16217 {
16218 arg2 = wxString_in_helper(obj1);
16219 if (arg2 == NULL) SWIG_fail;
16220 temp2 = true;
16221 }
16222 }
16223 {
16224 PyThreadState* __tstate = wxPyBeginAllowThreads();
16225 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
16226 wxPyEndAllowThreads(__tstate);
16227 if (PyErr_Occurred()) SWIG_fail;
16228 }
16229 {
16230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16231 }
16232 {
16233 if (temp2)
16234 delete arg2;
16235 }
16236 return resultobj;
16237 fail:
16238 {
16239 if (temp2)
16240 delete arg2;
16241 }
16242 return NULL;
16243 }
16244
16245
16246 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16247 PyObject *resultobj = 0;
16248 PyObject *result = 0 ;
16249
16250 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
16251 {
16252 PyThreadState* __tstate = wxPyBeginAllowThreads();
16253 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
16254 wxPyEndAllowThreads(__tstate);
16255 if (PyErr_Occurred()) SWIG_fail;
16256 }
16257 resultobj = result;
16258 return resultobj;
16259 fail:
16260 return NULL;
16261 }
16262
16263
16264 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16265 PyObject *resultobj = 0;
16266 PyObject *result = 0 ;
16267
16268 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
16269 {
16270 PyThreadState* __tstate = wxPyBeginAllowThreads();
16271 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
16272 wxPyEndAllowThreads(__tstate);
16273 if (PyErr_Occurred()) SWIG_fail;
16274 }
16275 resultobj = result;
16276 return resultobj;
16277 fail:
16278 return NULL;
16279 }
16280
16281
16282 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16283 PyObject *resultobj = 0;
16284 wxString *arg1 = 0 ;
16285 bool result;
16286 bool temp1 = false ;
16287 PyObject * obj0 = 0 ;
16288 char * kwnames[] = {
16289 (char *) "str", NULL
16290 };
16291
16292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
16293 {
16294 arg1 = wxString_in_helper(obj0);
16295 if (arg1 == NULL) SWIG_fail;
16296 temp1 = true;
16297 }
16298 {
16299 PyThreadState* __tstate = wxPyBeginAllowThreads();
16300 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
16301 wxPyEndAllowThreads(__tstate);
16302 if (PyErr_Occurred()) SWIG_fail;
16303 }
16304 {
16305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16306 }
16307 {
16308 if (temp1)
16309 delete arg1;
16310 }
16311 return resultobj;
16312 fail:
16313 {
16314 if (temp1)
16315 delete arg1;
16316 }
16317 return NULL;
16318 }
16319
16320
16321 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16322 PyObject *obj;
16323 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16324 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
16325 return SWIG_Py_Void();
16326 }
16327
16328 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16329 return SWIG_Python_InitShadowInstance(args);
16330 }
16331
16332 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16333 PyObject *resultobj = 0;
16334 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16335 int arg2 ;
16336 void *argp1 = 0 ;
16337 int res1 = 0 ;
16338 int val2 ;
16339 int ecode2 = 0 ;
16340 PyObject *swig_obj[2] ;
16341
16342 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
16343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16344 if (!SWIG_IsOK(res1)) {
16345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16346 }
16347 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16348 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16349 if (!SWIG_IsOK(ecode2)) {
16350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
16351 }
16352 arg2 = static_cast< int >(val2);
16353 if (arg1) (arg1)->Language = arg2;
16354
16355 resultobj = SWIG_Py_Void();
16356 return resultobj;
16357 fail:
16358 return NULL;
16359 }
16360
16361
16362 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16363 PyObject *resultobj = 0;
16364 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16365 int result;
16366 void *argp1 = 0 ;
16367 int res1 = 0 ;
16368 PyObject *swig_obj[1] ;
16369
16370 if (!args) SWIG_fail;
16371 swig_obj[0] = args;
16372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16373 if (!SWIG_IsOK(res1)) {
16374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16375 }
16376 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16377 result = (int) ((arg1)->Language);
16378 resultobj = SWIG_From_int(static_cast< int >(result));
16379 return resultobj;
16380 fail:
16381 return NULL;
16382 }
16383
16384
16385 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16386 PyObject *resultobj = 0;
16387 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16388 wxString *arg2 = (wxString *) 0 ;
16389 void *argp1 = 0 ;
16390 int res1 = 0 ;
16391 bool temp2 = false ;
16392 PyObject *swig_obj[2] ;
16393
16394 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
16395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16396 if (!SWIG_IsOK(res1)) {
16397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16398 }
16399 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16400 {
16401 arg2 = wxString_in_helper(swig_obj[1]);
16402 if (arg2 == NULL) SWIG_fail;
16403 temp2 = true;
16404 }
16405 if (arg1) (arg1)->CanonicalName = *arg2;
16406
16407 resultobj = SWIG_Py_Void();
16408 {
16409 if (temp2)
16410 delete arg2;
16411 }
16412 return resultobj;
16413 fail:
16414 {
16415 if (temp2)
16416 delete arg2;
16417 }
16418 return NULL;
16419 }
16420
16421
16422 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16423 PyObject *resultobj = 0;
16424 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16425 wxString *result = 0 ;
16426 void *argp1 = 0 ;
16427 int res1 = 0 ;
16428 PyObject *swig_obj[1] ;
16429
16430 if (!args) SWIG_fail;
16431 swig_obj[0] = args;
16432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16433 if (!SWIG_IsOK(res1)) {
16434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16435 }
16436 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16437 result = (wxString *)& ((arg1)->CanonicalName);
16438 {
16439 #if wxUSE_UNICODE
16440 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16441 #else
16442 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16443 #endif
16444 }
16445 return resultobj;
16446 fail:
16447 return NULL;
16448 }
16449
16450
16451 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16452 PyObject *resultobj = 0;
16453 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16454 wxString *arg2 = (wxString *) 0 ;
16455 void *argp1 = 0 ;
16456 int res1 = 0 ;
16457 bool temp2 = false ;
16458 PyObject *swig_obj[2] ;
16459
16460 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
16461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16462 if (!SWIG_IsOK(res1)) {
16463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16464 }
16465 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16466 {
16467 arg2 = wxString_in_helper(swig_obj[1]);
16468 if (arg2 == NULL) SWIG_fail;
16469 temp2 = true;
16470 }
16471 if (arg1) (arg1)->Description = *arg2;
16472
16473 resultobj = SWIG_Py_Void();
16474 {
16475 if (temp2)
16476 delete arg2;
16477 }
16478 return resultobj;
16479 fail:
16480 {
16481 if (temp2)
16482 delete arg2;
16483 }
16484 return NULL;
16485 }
16486
16487
16488 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16489 PyObject *resultobj = 0;
16490 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16491 wxString *result = 0 ;
16492 void *argp1 = 0 ;
16493 int res1 = 0 ;
16494 PyObject *swig_obj[1] ;
16495
16496 if (!args) SWIG_fail;
16497 swig_obj[0] = args;
16498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16499 if (!SWIG_IsOK(res1)) {
16500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16501 }
16502 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16503 result = (wxString *)& ((arg1)->Description);
16504 {
16505 #if wxUSE_UNICODE
16506 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16507 #else
16508 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16509 #endif
16510 }
16511 return resultobj;
16512 fail:
16513 return NULL;
16514 }
16515
16516
16517 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16518 PyObject *obj;
16519 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16520 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
16521 return SWIG_Py_Void();
16522 }
16523
16524 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16525 PyObject *resultobj = 0;
16526 int arg1 = (int) -1 ;
16527 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16528 wxLocale *result = 0 ;
16529 int val1 ;
16530 int ecode1 = 0 ;
16531 int val2 ;
16532 int ecode2 = 0 ;
16533 PyObject * obj0 = 0 ;
16534 PyObject * obj1 = 0 ;
16535 char * kwnames[] = {
16536 (char *) "language",(char *) "flags", NULL
16537 };
16538
16539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16540 if (obj0) {
16541 ecode1 = SWIG_AsVal_int(obj0, &val1);
16542 if (!SWIG_IsOK(ecode1)) {
16543 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16544 }
16545 arg1 = static_cast< int >(val1);
16546 }
16547 if (obj1) {
16548 ecode2 = SWIG_AsVal_int(obj1, &val2);
16549 if (!SWIG_IsOK(ecode2)) {
16550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16551 }
16552 arg2 = static_cast< int >(val2);
16553 }
16554 {
16555 PyThreadState* __tstate = wxPyBeginAllowThreads();
16556 result = (wxLocale *)new_wxLocale(arg1,arg2);
16557 wxPyEndAllowThreads(__tstate);
16558 if (PyErr_Occurred()) SWIG_fail;
16559 }
16560 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16561 return resultobj;
16562 fail:
16563 return NULL;
16564 }
16565
16566
16567 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16568 PyObject *resultobj = 0;
16569 wxLocale *arg1 = (wxLocale *) 0 ;
16570 void *argp1 = 0 ;
16571 int res1 = 0 ;
16572 PyObject *swig_obj[1] ;
16573
16574 if (!args) SWIG_fail;
16575 swig_obj[0] = args;
16576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16577 if (!SWIG_IsOK(res1)) {
16578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16579 }
16580 arg1 = reinterpret_cast< wxLocale * >(argp1);
16581 {
16582 PyThreadState* __tstate = wxPyBeginAllowThreads();
16583 delete arg1;
16584
16585 wxPyEndAllowThreads(__tstate);
16586 if (PyErr_Occurred()) SWIG_fail;
16587 }
16588 resultobj = SWIG_Py_Void();
16589 return resultobj;
16590 fail:
16591 return NULL;
16592 }
16593
16594
16595 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16596 PyObject *resultobj = 0;
16597 wxLocale *arg1 = (wxLocale *) 0 ;
16598 wxString *arg2 = 0 ;
16599 wxString const &arg3_defvalue = wxPyEmptyString ;
16600 wxString *arg3 = (wxString *) &arg3_defvalue ;
16601 wxString const &arg4_defvalue = wxPyEmptyString ;
16602 wxString *arg4 = (wxString *) &arg4_defvalue ;
16603 bool arg5 = (bool) true ;
16604 bool arg6 = (bool) false ;
16605 bool result;
16606 void *argp1 = 0 ;
16607 int res1 = 0 ;
16608 bool temp2 = false ;
16609 bool temp3 = false ;
16610 bool temp4 = false ;
16611 bool val5 ;
16612 int ecode5 = 0 ;
16613 bool val6 ;
16614 int ecode6 = 0 ;
16615 PyObject * obj0 = 0 ;
16616 PyObject * obj1 = 0 ;
16617 PyObject * obj2 = 0 ;
16618 PyObject * obj3 = 0 ;
16619 PyObject * obj4 = 0 ;
16620 PyObject * obj5 = 0 ;
16621 char * kwnames[] = {
16622 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
16623 };
16624
16625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16627 if (!SWIG_IsOK(res1)) {
16628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16629 }
16630 arg1 = reinterpret_cast< wxLocale * >(argp1);
16631 {
16632 arg2 = wxString_in_helper(obj1);
16633 if (arg2 == NULL) SWIG_fail;
16634 temp2 = true;
16635 }
16636 if (obj2) {
16637 {
16638 arg3 = wxString_in_helper(obj2);
16639 if (arg3 == NULL) SWIG_fail;
16640 temp3 = true;
16641 }
16642 }
16643 if (obj3) {
16644 {
16645 arg4 = wxString_in_helper(obj3);
16646 if (arg4 == NULL) SWIG_fail;
16647 temp4 = true;
16648 }
16649 }
16650 if (obj4) {
16651 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16652 if (!SWIG_IsOK(ecode5)) {
16653 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16654 }
16655 arg5 = static_cast< bool >(val5);
16656 }
16657 if (obj5) {
16658 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16659 if (!SWIG_IsOK(ecode6)) {
16660 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16661 }
16662 arg6 = static_cast< bool >(val6);
16663 }
16664 {
16665 PyThreadState* __tstate = wxPyBeginAllowThreads();
16666 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16667 wxPyEndAllowThreads(__tstate);
16668 if (PyErr_Occurred()) SWIG_fail;
16669 }
16670 {
16671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16672 }
16673 {
16674 if (temp2)
16675 delete arg2;
16676 }
16677 {
16678 if (temp3)
16679 delete arg3;
16680 }
16681 {
16682 if (temp4)
16683 delete arg4;
16684 }
16685 return resultobj;
16686 fail:
16687 {
16688 if (temp2)
16689 delete arg2;
16690 }
16691 {
16692 if (temp3)
16693 delete arg3;
16694 }
16695 {
16696 if (temp4)
16697 delete arg4;
16698 }
16699 return NULL;
16700 }
16701
16702
16703 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16704 PyObject *resultobj = 0;
16705 wxLocale *arg1 = (wxLocale *) 0 ;
16706 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16707 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16708 bool result;
16709 void *argp1 = 0 ;
16710 int res1 = 0 ;
16711 int val2 ;
16712 int ecode2 = 0 ;
16713 int val3 ;
16714 int ecode3 = 0 ;
16715 PyObject * obj0 = 0 ;
16716 PyObject * obj1 = 0 ;
16717 PyObject * obj2 = 0 ;
16718 char * kwnames[] = {
16719 (char *) "self",(char *) "language",(char *) "flags", NULL
16720 };
16721
16722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16724 if (!SWIG_IsOK(res1)) {
16725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16726 }
16727 arg1 = reinterpret_cast< wxLocale * >(argp1);
16728 if (obj1) {
16729 ecode2 = SWIG_AsVal_int(obj1, &val2);
16730 if (!SWIG_IsOK(ecode2)) {
16731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16732 }
16733 arg2 = static_cast< int >(val2);
16734 }
16735 if (obj2) {
16736 ecode3 = SWIG_AsVal_int(obj2, &val3);
16737 if (!SWIG_IsOK(ecode3)) {
16738 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16739 }
16740 arg3 = static_cast< int >(val3);
16741 }
16742 {
16743 PyThreadState* __tstate = wxPyBeginAllowThreads();
16744 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16745 wxPyEndAllowThreads(__tstate);
16746 if (PyErr_Occurred()) SWIG_fail;
16747 }
16748 {
16749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16750 }
16751 return resultobj;
16752 fail:
16753 return NULL;
16754 }
16755
16756
16757 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16758 PyObject *resultobj = 0;
16759 int result;
16760
16761 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16762 {
16763 PyThreadState* __tstate = wxPyBeginAllowThreads();
16764 result = (int)wxLocale::GetSystemLanguage();
16765 wxPyEndAllowThreads(__tstate);
16766 if (PyErr_Occurred()) SWIG_fail;
16767 }
16768 resultobj = SWIG_From_int(static_cast< int >(result));
16769 return resultobj;
16770 fail:
16771 return NULL;
16772 }
16773
16774
16775 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16776 PyObject *resultobj = 0;
16777 wxFontEncoding result;
16778
16779 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16780 {
16781 PyThreadState* __tstate = wxPyBeginAllowThreads();
16782 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16783 wxPyEndAllowThreads(__tstate);
16784 if (PyErr_Occurred()) SWIG_fail;
16785 }
16786 resultobj = SWIG_From_int(static_cast< int >(result));
16787 return resultobj;
16788 fail:
16789 return NULL;
16790 }
16791
16792
16793 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16794 PyObject *resultobj = 0;
16795 wxString result;
16796
16797 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16798 {
16799 PyThreadState* __tstate = wxPyBeginAllowThreads();
16800 result = wxLocale::GetSystemEncodingName();
16801 wxPyEndAllowThreads(__tstate);
16802 if (PyErr_Occurred()) SWIG_fail;
16803 }
16804 {
16805 #if wxUSE_UNICODE
16806 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16807 #else
16808 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16809 #endif
16810 }
16811 return resultobj;
16812 fail:
16813 return NULL;
16814 }
16815
16816
16817 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16818 PyObject *resultobj = 0;
16819 wxLocale *arg1 = (wxLocale *) 0 ;
16820 bool result;
16821 void *argp1 = 0 ;
16822 int res1 = 0 ;
16823 PyObject *swig_obj[1] ;
16824
16825 if (!args) SWIG_fail;
16826 swig_obj[0] = args;
16827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16828 if (!SWIG_IsOK(res1)) {
16829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16830 }
16831 arg1 = reinterpret_cast< wxLocale * >(argp1);
16832 {
16833 PyThreadState* __tstate = wxPyBeginAllowThreads();
16834 result = (bool)((wxLocale const *)arg1)->IsOk();
16835 wxPyEndAllowThreads(__tstate);
16836 if (PyErr_Occurred()) SWIG_fail;
16837 }
16838 {
16839 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16840 }
16841 return resultobj;
16842 fail:
16843 return NULL;
16844 }
16845
16846
16847 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16848 PyObject *resultobj = 0;
16849 wxLocale *arg1 = (wxLocale *) 0 ;
16850 wxString result;
16851 void *argp1 = 0 ;
16852 int res1 = 0 ;
16853 PyObject *swig_obj[1] ;
16854
16855 if (!args) SWIG_fail;
16856 swig_obj[0] = args;
16857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16858 if (!SWIG_IsOK(res1)) {
16859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16860 }
16861 arg1 = reinterpret_cast< wxLocale * >(argp1);
16862 {
16863 PyThreadState* __tstate = wxPyBeginAllowThreads();
16864 result = ((wxLocale const *)arg1)->GetLocale();
16865 wxPyEndAllowThreads(__tstate);
16866 if (PyErr_Occurred()) SWIG_fail;
16867 }
16868 {
16869 #if wxUSE_UNICODE
16870 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16871 #else
16872 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16873 #endif
16874 }
16875 return resultobj;
16876 fail:
16877 return NULL;
16878 }
16879
16880
16881 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16882 PyObject *resultobj = 0;
16883 wxLocale *arg1 = (wxLocale *) 0 ;
16884 int result;
16885 void *argp1 = 0 ;
16886 int res1 = 0 ;
16887 PyObject *swig_obj[1] ;
16888
16889 if (!args) SWIG_fail;
16890 swig_obj[0] = args;
16891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16892 if (!SWIG_IsOK(res1)) {
16893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16894 }
16895 arg1 = reinterpret_cast< wxLocale * >(argp1);
16896 {
16897 PyThreadState* __tstate = wxPyBeginAllowThreads();
16898 result = (int)((wxLocale const *)arg1)->GetLanguage();
16899 wxPyEndAllowThreads(__tstate);
16900 if (PyErr_Occurred()) SWIG_fail;
16901 }
16902 resultobj = SWIG_From_int(static_cast< int >(result));
16903 return resultobj;
16904 fail:
16905 return NULL;
16906 }
16907
16908
16909 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16910 PyObject *resultobj = 0;
16911 wxLocale *arg1 = (wxLocale *) 0 ;
16912 wxString result;
16913 void *argp1 = 0 ;
16914 int res1 = 0 ;
16915 PyObject *swig_obj[1] ;
16916
16917 if (!args) SWIG_fail;
16918 swig_obj[0] = args;
16919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16920 if (!SWIG_IsOK(res1)) {
16921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16922 }
16923 arg1 = reinterpret_cast< wxLocale * >(argp1);
16924 {
16925 PyThreadState* __tstate = wxPyBeginAllowThreads();
16926 result = ((wxLocale const *)arg1)->GetSysName();
16927 wxPyEndAllowThreads(__tstate);
16928 if (PyErr_Occurred()) SWIG_fail;
16929 }
16930 {
16931 #if wxUSE_UNICODE
16932 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16933 #else
16934 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16935 #endif
16936 }
16937 return resultobj;
16938 fail:
16939 return NULL;
16940 }
16941
16942
16943 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16944 PyObject *resultobj = 0;
16945 wxLocale *arg1 = (wxLocale *) 0 ;
16946 wxString result;
16947 void *argp1 = 0 ;
16948 int res1 = 0 ;
16949 PyObject *swig_obj[1] ;
16950
16951 if (!args) SWIG_fail;
16952 swig_obj[0] = args;
16953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16954 if (!SWIG_IsOK(res1)) {
16955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16956 }
16957 arg1 = reinterpret_cast< wxLocale * >(argp1);
16958 {
16959 PyThreadState* __tstate = wxPyBeginAllowThreads();
16960 result = ((wxLocale const *)arg1)->GetCanonicalName();
16961 wxPyEndAllowThreads(__tstate);
16962 if (PyErr_Occurred()) SWIG_fail;
16963 }
16964 {
16965 #if wxUSE_UNICODE
16966 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16967 #else
16968 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16969 #endif
16970 }
16971 return resultobj;
16972 fail:
16973 return NULL;
16974 }
16975
16976
16977 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16978 PyObject *resultobj = 0;
16979 wxString *arg1 = 0 ;
16980 bool temp1 = false ;
16981 PyObject * obj0 = 0 ;
16982 char * kwnames[] = {
16983 (char *) "prefix", NULL
16984 };
16985
16986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16987 {
16988 arg1 = wxString_in_helper(obj0);
16989 if (arg1 == NULL) SWIG_fail;
16990 temp1 = true;
16991 }
16992 {
16993 PyThreadState* __tstate = wxPyBeginAllowThreads();
16994 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16995 wxPyEndAllowThreads(__tstate);
16996 if (PyErr_Occurred()) SWIG_fail;
16997 }
16998 resultobj = SWIG_Py_Void();
16999 {
17000 if (temp1)
17001 delete arg1;
17002 }
17003 return resultobj;
17004 fail:
17005 {
17006 if (temp1)
17007 delete arg1;
17008 }
17009 return NULL;
17010 }
17011
17012
17013 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17014 PyObject *resultobj = 0;
17015 wxLocale *arg1 = (wxLocale *) 0 ;
17016 wxString *arg2 = 0 ;
17017 bool result;
17018 void *argp1 = 0 ;
17019 int res1 = 0 ;
17020 bool temp2 = false ;
17021 PyObject * obj0 = 0 ;
17022 PyObject * obj1 = 0 ;
17023 char * kwnames[] = {
17024 (char *) "self",(char *) "szDomain", NULL
17025 };
17026
17027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
17028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17029 if (!SWIG_IsOK(res1)) {
17030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
17031 }
17032 arg1 = reinterpret_cast< wxLocale * >(argp1);
17033 {
17034 arg2 = wxString_in_helper(obj1);
17035 if (arg2 == NULL) SWIG_fail;
17036 temp2 = true;
17037 }
17038 {
17039 PyThreadState* __tstate = wxPyBeginAllowThreads();
17040 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
17041 wxPyEndAllowThreads(__tstate);
17042 if (PyErr_Occurred()) SWIG_fail;
17043 }
17044 {
17045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17046 }
17047 {
17048 if (temp2)
17049 delete arg2;
17050 }
17051 return resultobj;
17052 fail:
17053 {
17054 if (temp2)
17055 delete arg2;
17056 }
17057 return NULL;
17058 }
17059
17060
17061 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17062 PyObject *resultobj = 0;
17063 int arg1 ;
17064 bool result;
17065 int val1 ;
17066 int ecode1 = 0 ;
17067 PyObject * obj0 = 0 ;
17068 char * kwnames[] = {
17069 (char *) "lang", NULL
17070 };
17071
17072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
17073 ecode1 = SWIG_AsVal_int(obj0, &val1);
17074 if (!SWIG_IsOK(ecode1)) {
17075 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
17076 }
17077 arg1 = static_cast< int >(val1);
17078 {
17079 PyThreadState* __tstate = wxPyBeginAllowThreads();
17080 result = (bool)wxLocale::IsAvailable(arg1);
17081 wxPyEndAllowThreads(__tstate);
17082 if (PyErr_Occurred()) SWIG_fail;
17083 }
17084 {
17085 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17086 }
17087 return resultobj;
17088 fail:
17089 return NULL;
17090 }
17091
17092
17093 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17094 PyObject *resultobj = 0;
17095 wxLocale *arg1 = (wxLocale *) 0 ;
17096 wxString *arg2 = 0 ;
17097 bool result;
17098 void *argp1 = 0 ;
17099 int res1 = 0 ;
17100 bool temp2 = false ;
17101 PyObject * obj0 = 0 ;
17102 PyObject * obj1 = 0 ;
17103 char * kwnames[] = {
17104 (char *) "self",(char *) "szDomain", NULL
17105 };
17106
17107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
17108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17109 if (!SWIG_IsOK(res1)) {
17110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
17111 }
17112 arg1 = reinterpret_cast< wxLocale * >(argp1);
17113 {
17114 arg2 = wxString_in_helper(obj1);
17115 if (arg2 == NULL) SWIG_fail;
17116 temp2 = true;
17117 }
17118 {
17119 PyThreadState* __tstate = wxPyBeginAllowThreads();
17120 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
17121 wxPyEndAllowThreads(__tstate);
17122 if (PyErr_Occurred()) SWIG_fail;
17123 }
17124 {
17125 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17126 }
17127 {
17128 if (temp2)
17129 delete arg2;
17130 }
17131 return resultobj;
17132 fail:
17133 {
17134 if (temp2)
17135 delete arg2;
17136 }
17137 return NULL;
17138 }
17139
17140
17141 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17142 PyObject *resultobj = 0;
17143 int arg1 ;
17144 wxLanguageInfo *result = 0 ;
17145 int val1 ;
17146 int ecode1 = 0 ;
17147 PyObject * obj0 = 0 ;
17148 char * kwnames[] = {
17149 (char *) "lang", NULL
17150 };
17151
17152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
17153 ecode1 = SWIG_AsVal_int(obj0, &val1);
17154 if (!SWIG_IsOK(ecode1)) {
17155 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
17156 }
17157 arg1 = static_cast< int >(val1);
17158 {
17159 PyThreadState* __tstate = wxPyBeginAllowThreads();
17160 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
17161 wxPyEndAllowThreads(__tstate);
17162 if (PyErr_Occurred()) SWIG_fail;
17163 }
17164 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17165 return resultobj;
17166 fail:
17167 return NULL;
17168 }
17169
17170
17171 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17172 PyObject *resultobj = 0;
17173 int arg1 ;
17174 wxString result;
17175 int val1 ;
17176 int ecode1 = 0 ;
17177 PyObject * obj0 = 0 ;
17178 char * kwnames[] = {
17179 (char *) "lang", NULL
17180 };
17181
17182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
17183 ecode1 = SWIG_AsVal_int(obj0, &val1);
17184 if (!SWIG_IsOK(ecode1)) {
17185 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
17186 }
17187 arg1 = static_cast< int >(val1);
17188 {
17189 PyThreadState* __tstate = wxPyBeginAllowThreads();
17190 result = wxLocale::GetLanguageName(arg1);
17191 wxPyEndAllowThreads(__tstate);
17192 if (PyErr_Occurred()) SWIG_fail;
17193 }
17194 {
17195 #if wxUSE_UNICODE
17196 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17197 #else
17198 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17199 #endif
17200 }
17201 return resultobj;
17202 fail:
17203 return NULL;
17204 }
17205
17206
17207 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17208 PyObject *resultobj = 0;
17209 wxString *arg1 = 0 ;
17210 wxLanguageInfo *result = 0 ;
17211 bool temp1 = false ;
17212 PyObject * obj0 = 0 ;
17213 char * kwnames[] = {
17214 (char *) "locale", NULL
17215 };
17216
17217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
17218 {
17219 arg1 = wxString_in_helper(obj0);
17220 if (arg1 == NULL) SWIG_fail;
17221 temp1 = true;
17222 }
17223 {
17224 PyThreadState* __tstate = wxPyBeginAllowThreads();
17225 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
17226 wxPyEndAllowThreads(__tstate);
17227 if (PyErr_Occurred()) SWIG_fail;
17228 }
17229 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17230 {
17231 if (temp1)
17232 delete arg1;
17233 }
17234 return resultobj;
17235 fail:
17236 {
17237 if (temp1)
17238 delete arg1;
17239 }
17240 return NULL;
17241 }
17242
17243
17244 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17245 PyObject *resultobj = 0;
17246 wxLanguageInfo *arg1 = 0 ;
17247 void *argp1 = 0 ;
17248 int res1 = 0 ;
17249 PyObject * obj0 = 0 ;
17250 char * kwnames[] = {
17251 (char *) "info", NULL
17252 };
17253
17254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
17255 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
17256 if (!SWIG_IsOK(res1)) {
17257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17258 }
17259 if (!argp1) {
17260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17261 }
17262 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
17263 {
17264 PyThreadState* __tstate = wxPyBeginAllowThreads();
17265 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
17266 wxPyEndAllowThreads(__tstate);
17267 if (PyErr_Occurred()) SWIG_fail;
17268 }
17269 resultobj = SWIG_Py_Void();
17270 return resultobj;
17271 fail:
17272 return NULL;
17273 }
17274
17275
17276 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17277 PyObject *resultobj = 0;
17278 wxLocale *arg1 = (wxLocale *) 0 ;
17279 wxString *arg2 = 0 ;
17280 wxString const &arg3_defvalue = wxPyEmptyString ;
17281 wxString *arg3 = (wxString *) &arg3_defvalue ;
17282 wxString result;
17283 void *argp1 = 0 ;
17284 int res1 = 0 ;
17285 bool temp2 = false ;
17286 bool temp3 = false ;
17287 PyObject * obj0 = 0 ;
17288 PyObject * obj1 = 0 ;
17289 PyObject * obj2 = 0 ;
17290 char * kwnames[] = {
17291 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17292 };
17293
17294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17296 if (!SWIG_IsOK(res1)) {
17297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
17298 }
17299 arg1 = reinterpret_cast< wxLocale * >(argp1);
17300 {
17301 arg2 = wxString_in_helper(obj1);
17302 if (arg2 == NULL) SWIG_fail;
17303 temp2 = true;
17304 }
17305 if (obj2) {
17306 {
17307 arg3 = wxString_in_helper(obj2);
17308 if (arg3 == NULL) SWIG_fail;
17309 temp3 = true;
17310 }
17311 }
17312 {
17313 PyThreadState* __tstate = wxPyBeginAllowThreads();
17314 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
17315 wxPyEndAllowThreads(__tstate);
17316 if (PyErr_Occurred()) SWIG_fail;
17317 }
17318 {
17319 #if wxUSE_UNICODE
17320 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17321 #else
17322 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17323 #endif
17324 }
17325 {
17326 if (temp2)
17327 delete arg2;
17328 }
17329 {
17330 if (temp3)
17331 delete arg3;
17332 }
17333 return resultobj;
17334 fail:
17335 {
17336 if (temp2)
17337 delete arg2;
17338 }
17339 {
17340 if (temp3)
17341 delete arg3;
17342 }
17343 return NULL;
17344 }
17345
17346
17347 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17348 PyObject *resultobj = 0;
17349 wxLocale *arg1 = (wxLocale *) 0 ;
17350 wxString *result = 0 ;
17351 void *argp1 = 0 ;
17352 int res1 = 0 ;
17353 PyObject *swig_obj[1] ;
17354
17355 if (!args) SWIG_fail;
17356 swig_obj[0] = args;
17357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17358 if (!SWIG_IsOK(res1)) {
17359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
17360 }
17361 arg1 = reinterpret_cast< wxLocale * >(argp1);
17362 {
17363 PyThreadState* __tstate = wxPyBeginAllowThreads();
17364 {
17365 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
17366 result = (wxString *) &_result_ref;
17367 }
17368 wxPyEndAllowThreads(__tstate);
17369 if (PyErr_Occurred()) SWIG_fail;
17370 }
17371 {
17372 #if wxUSE_UNICODE
17373 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17374 #else
17375 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17376 #endif
17377 }
17378 return resultobj;
17379 fail:
17380 return NULL;
17381 }
17382
17383
17384 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17385 PyObject *obj;
17386 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17387 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
17388 return SWIG_Py_Void();
17389 }
17390
17391 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17392 return SWIG_Python_InitShadowInstance(args);
17393 }
17394
17395 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17396 PyObject *resultobj = 0;
17397 int arg1 = (int) -1 ;
17398 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
17399 wxPyLocale *result = 0 ;
17400 int val1 ;
17401 int ecode1 = 0 ;
17402 int val2 ;
17403 int ecode2 = 0 ;
17404 PyObject * obj0 = 0 ;
17405 PyObject * obj1 = 0 ;
17406 char * kwnames[] = {
17407 (char *) "language",(char *) "flags", NULL
17408 };
17409
17410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
17411 if (obj0) {
17412 ecode1 = SWIG_AsVal_int(obj0, &val1);
17413 if (!SWIG_IsOK(ecode1)) {
17414 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
17415 }
17416 arg1 = static_cast< int >(val1);
17417 }
17418 if (obj1) {
17419 ecode2 = SWIG_AsVal_int(obj1, &val2);
17420 if (!SWIG_IsOK(ecode2)) {
17421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
17422 }
17423 arg2 = static_cast< int >(val2);
17424 }
17425 {
17426 PyThreadState* __tstate = wxPyBeginAllowThreads();
17427 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
17428 wxPyEndAllowThreads(__tstate);
17429 if (PyErr_Occurred()) SWIG_fail;
17430 }
17431 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
17432 return resultobj;
17433 fail:
17434 return NULL;
17435 }
17436
17437
17438 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17439 PyObject *resultobj = 0;
17440 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17441 void *argp1 = 0 ;
17442 int res1 = 0 ;
17443 PyObject *swig_obj[1] ;
17444
17445 if (!args) SWIG_fail;
17446 swig_obj[0] = args;
17447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
17448 if (!SWIG_IsOK(res1)) {
17449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17450 }
17451 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17452 {
17453 PyThreadState* __tstate = wxPyBeginAllowThreads();
17454 delete arg1;
17455
17456 wxPyEndAllowThreads(__tstate);
17457 if (PyErr_Occurred()) SWIG_fail;
17458 }
17459 resultobj = SWIG_Py_Void();
17460 return resultobj;
17461 fail:
17462 return NULL;
17463 }
17464
17465
17466 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17467 PyObject *resultobj = 0;
17468 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17469 PyObject *arg2 = (PyObject *) 0 ;
17470 PyObject *arg3 = (PyObject *) 0 ;
17471 void *argp1 = 0 ;
17472 int res1 = 0 ;
17473 PyObject * obj0 = 0 ;
17474 PyObject * obj1 = 0 ;
17475 PyObject * obj2 = 0 ;
17476 char * kwnames[] = {
17477 (char *) "self",(char *) "self",(char *) "_class", NULL
17478 };
17479
17480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17482 if (!SWIG_IsOK(res1)) {
17483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17484 }
17485 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17486 arg2 = obj1;
17487 arg3 = obj2;
17488 {
17489 PyThreadState* __tstate = wxPyBeginAllowThreads();
17490 (arg1)->_setCallbackInfo(arg2,arg3);
17491 wxPyEndAllowThreads(__tstate);
17492 if (PyErr_Occurred()) SWIG_fail;
17493 }
17494 resultobj = SWIG_Py_Void();
17495 return resultobj;
17496 fail:
17497 return NULL;
17498 }
17499
17500
17501 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17502 PyObject *resultobj = 0;
17503 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17504 wxChar *arg2 = (wxChar *) 0 ;
17505 wxChar *arg3 = (wxChar *) NULL ;
17506 wxChar *result = 0 ;
17507 void *argp1 = 0 ;
17508 int res1 = 0 ;
17509 void *argp2 = 0 ;
17510 int res2 = 0 ;
17511 void *argp3 = 0 ;
17512 int res3 = 0 ;
17513 PyObject * obj0 = 0 ;
17514 PyObject * obj1 = 0 ;
17515 PyObject * obj2 = 0 ;
17516 char * kwnames[] = {
17517 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17518 };
17519
17520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17522 if (!SWIG_IsOK(res1)) {
17523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17524 }
17525 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17526 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17527 if (!SWIG_IsOK(res2)) {
17528 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
17529 }
17530 arg2 = reinterpret_cast< wxChar * >(argp2);
17531 if (obj2) {
17532 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17533 if (!SWIG_IsOK(res3)) {
17534 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
17535 }
17536 arg3 = reinterpret_cast< wxChar * >(argp3);
17537 }
17538 {
17539 PyThreadState* __tstate = wxPyBeginAllowThreads();
17540 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
17541 wxPyEndAllowThreads(__tstate);
17542 if (PyErr_Occurred()) SWIG_fail;
17543 }
17544 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17545 return resultobj;
17546 fail:
17547 return NULL;
17548 }
17549
17550
17551 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17552 PyObject *resultobj = 0;
17553 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17554 wxChar *arg2 = (wxChar *) 0 ;
17555 wxChar *arg3 = (wxChar *) 0 ;
17556 size_t arg4 ;
17557 wxChar *arg5 = (wxChar *) NULL ;
17558 wxChar *result = 0 ;
17559 void *argp1 = 0 ;
17560 int res1 = 0 ;
17561 void *argp2 = 0 ;
17562 int res2 = 0 ;
17563 void *argp3 = 0 ;
17564 int res3 = 0 ;
17565 size_t val4 ;
17566 int ecode4 = 0 ;
17567 void *argp5 = 0 ;
17568 int res5 = 0 ;
17569 PyObject * obj0 = 0 ;
17570 PyObject * obj1 = 0 ;
17571 PyObject * obj2 = 0 ;
17572 PyObject * obj3 = 0 ;
17573 PyObject * obj4 = 0 ;
17574 char * kwnames[] = {
17575 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
17576 };
17577
17578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17580 if (!SWIG_IsOK(res1)) {
17581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17582 }
17583 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17584 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17585 if (!SWIG_IsOK(res2)) {
17586 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
17587 }
17588 arg2 = reinterpret_cast< wxChar * >(argp2);
17589 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17590 if (!SWIG_IsOK(res3)) {
17591 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
17592 }
17593 arg3 = reinterpret_cast< wxChar * >(argp3);
17594 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17595 if (!SWIG_IsOK(ecode4)) {
17596 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17597 }
17598 arg4 = static_cast< size_t >(val4);
17599 if (obj4) {
17600 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
17601 if (!SWIG_IsOK(res5)) {
17602 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
17603 }
17604 arg5 = reinterpret_cast< wxChar * >(argp5);
17605 }
17606 {
17607 PyThreadState* __tstate = wxPyBeginAllowThreads();
17608 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
17609 wxPyEndAllowThreads(__tstate);
17610 if (PyErr_Occurred()) SWIG_fail;
17611 }
17612 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17613 return resultobj;
17614 fail:
17615 return NULL;
17616 }
17617
17618
17619 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17620 PyObject *obj;
17621 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17622 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
17623 return SWIG_Py_Void();
17624 }
17625
17626 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17627 return SWIG_Python_InitShadowInstance(args);
17628 }
17629
17630 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17631 PyObject *resultobj = 0;
17632 wxLocale *result = 0 ;
17633
17634 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17635 {
17636 PyThreadState* __tstate = wxPyBeginAllowThreads();
17637 result = (wxLocale *)wxGetLocale();
17638 wxPyEndAllowThreads(__tstate);
17639 if (PyErr_Occurred()) SWIG_fail;
17640 }
17641 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17642 return resultobj;
17643 fail:
17644 return NULL;
17645 }
17646
17647
17648 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17649 PyObject *resultobj = 0;
17650 wxString *arg1 = 0 ;
17651 wxString result;
17652 bool temp1 = false ;
17653
17654 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17655 {
17656 arg1 = wxString_in_helper(swig_obj[0]);
17657 if (arg1 == NULL) SWIG_fail;
17658 temp1 = true;
17659 }
17660 {
17661 PyThreadState* __tstate = wxPyBeginAllowThreads();
17662 result = wxGetTranslation((wxString const &)*arg1);
17663 wxPyEndAllowThreads(__tstate);
17664 if (PyErr_Occurred()) SWIG_fail;
17665 }
17666 {
17667 #if wxUSE_UNICODE
17668 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17669 #else
17670 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17671 #endif
17672 }
17673 {
17674 if (temp1)
17675 delete arg1;
17676 }
17677 return resultobj;
17678 fail:
17679 {
17680 if (temp1)
17681 delete arg1;
17682 }
17683 return NULL;
17684 }
17685
17686
17687 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17688 PyObject *resultobj = 0;
17689 wxString *arg1 = 0 ;
17690 wxString *arg2 = 0 ;
17691 wxString result;
17692 bool temp1 = false ;
17693 bool temp2 = false ;
17694
17695 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17696 {
17697 arg1 = wxString_in_helper(swig_obj[0]);
17698 if (arg1 == NULL) SWIG_fail;
17699 temp1 = true;
17700 }
17701 {
17702 arg2 = wxString_in_helper(swig_obj[1]);
17703 if (arg2 == NULL) SWIG_fail;
17704 temp2 = true;
17705 }
17706 {
17707 PyThreadState* __tstate = wxPyBeginAllowThreads();
17708 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17709 wxPyEndAllowThreads(__tstate);
17710 if (PyErr_Occurred()) SWIG_fail;
17711 }
17712 {
17713 #if wxUSE_UNICODE
17714 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17715 #else
17716 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17717 #endif
17718 }
17719 {
17720 if (temp1)
17721 delete arg1;
17722 }
17723 {
17724 if (temp2)
17725 delete arg2;
17726 }
17727 return resultobj;
17728 fail:
17729 {
17730 if (temp1)
17731 delete arg1;
17732 }
17733 {
17734 if (temp2)
17735 delete arg2;
17736 }
17737 return NULL;
17738 }
17739
17740
17741 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17742 PyObject *resultobj = 0;
17743 wxString *arg1 = 0 ;
17744 wxString *arg2 = 0 ;
17745 size_t arg3 ;
17746 wxString result;
17747 bool temp1 = false ;
17748 bool temp2 = false ;
17749 size_t val3 ;
17750 int ecode3 = 0 ;
17751
17752 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17753 {
17754 arg1 = wxString_in_helper(swig_obj[0]);
17755 if (arg1 == NULL) SWIG_fail;
17756 temp1 = true;
17757 }
17758 {
17759 arg2 = wxString_in_helper(swig_obj[1]);
17760 if (arg2 == NULL) SWIG_fail;
17761 temp2 = true;
17762 }
17763 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17764 if (!SWIG_IsOK(ecode3)) {
17765 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17766 }
17767 arg3 = static_cast< size_t >(val3);
17768 {
17769 PyThreadState* __tstate = wxPyBeginAllowThreads();
17770 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17771 wxPyEndAllowThreads(__tstate);
17772 if (PyErr_Occurred()) SWIG_fail;
17773 }
17774 {
17775 #if wxUSE_UNICODE
17776 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17777 #else
17778 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17779 #endif
17780 }
17781 {
17782 if (temp1)
17783 delete arg1;
17784 }
17785 {
17786 if (temp2)
17787 delete arg2;
17788 }
17789 return resultobj;
17790 fail:
17791 {
17792 if (temp1)
17793 delete arg1;
17794 }
17795 {
17796 if (temp2)
17797 delete arg2;
17798 }
17799 return NULL;
17800 }
17801
17802
17803 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17804 PyObject *resultobj = 0;
17805 wxString *arg1 = 0 ;
17806 wxString *arg2 = 0 ;
17807 size_t arg3 ;
17808 wxString *arg4 = 0 ;
17809 wxString result;
17810 bool temp1 = false ;
17811 bool temp2 = false ;
17812 size_t val3 ;
17813 int ecode3 = 0 ;
17814 bool temp4 = false ;
17815
17816 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17817 {
17818 arg1 = wxString_in_helper(swig_obj[0]);
17819 if (arg1 == NULL) SWIG_fail;
17820 temp1 = true;
17821 }
17822 {
17823 arg2 = wxString_in_helper(swig_obj[1]);
17824 if (arg2 == NULL) SWIG_fail;
17825 temp2 = true;
17826 }
17827 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17828 if (!SWIG_IsOK(ecode3)) {
17829 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17830 }
17831 arg3 = static_cast< size_t >(val3);
17832 {
17833 arg4 = wxString_in_helper(swig_obj[3]);
17834 if (arg4 == NULL) SWIG_fail;
17835 temp4 = true;
17836 }
17837 {
17838 PyThreadState* __tstate = wxPyBeginAllowThreads();
17839 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17840 wxPyEndAllowThreads(__tstate);
17841 if (PyErr_Occurred()) SWIG_fail;
17842 }
17843 {
17844 #if wxUSE_UNICODE
17845 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17846 #else
17847 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17848 #endif
17849 }
17850 {
17851 if (temp1)
17852 delete arg1;
17853 }
17854 {
17855 if (temp2)
17856 delete arg2;
17857 }
17858 {
17859 if (temp4)
17860 delete arg4;
17861 }
17862 return resultobj;
17863 fail:
17864 {
17865 if (temp1)
17866 delete arg1;
17867 }
17868 {
17869 if (temp2)
17870 delete arg2;
17871 }
17872 {
17873 if (temp4)
17874 delete arg4;
17875 }
17876 return NULL;
17877 }
17878
17879
17880 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17881 int argc;
17882 PyObject *argv[5];
17883
17884 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
17885 --argc;
17886 if (argc == 1) {
17887 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17888 }
17889 if (argc == 2) {
17890 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17891 }
17892 if (argc == 3) {
17893 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17894 }
17895 if (argc == 4) {
17896 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17897 }
17898
17899 fail:
17900 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17901 return NULL;
17902 }
17903
17904
17905 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17906 PyObject *resultobj = 0;
17907 wxEncodingConverter *result = 0 ;
17908
17909 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17910 {
17911 PyThreadState* __tstate = wxPyBeginAllowThreads();
17912 result = (wxEncodingConverter *)new wxEncodingConverter();
17913 wxPyEndAllowThreads(__tstate);
17914 if (PyErr_Occurred()) SWIG_fail;
17915 }
17916 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17917 return resultobj;
17918 fail:
17919 return NULL;
17920 }
17921
17922
17923 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17924 PyObject *resultobj = 0;
17925 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17926 void *argp1 = 0 ;
17927 int res1 = 0 ;
17928 PyObject *swig_obj[1] ;
17929
17930 if (!args) SWIG_fail;
17931 swig_obj[0] = args;
17932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17933 if (!SWIG_IsOK(res1)) {
17934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17935 }
17936 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17937 {
17938 PyThreadState* __tstate = wxPyBeginAllowThreads();
17939 delete arg1;
17940
17941 wxPyEndAllowThreads(__tstate);
17942 if (PyErr_Occurred()) SWIG_fail;
17943 }
17944 resultobj = SWIG_Py_Void();
17945 return resultobj;
17946 fail:
17947 return NULL;
17948 }
17949
17950
17951 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17952 PyObject *resultobj = 0;
17953 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17954 wxFontEncoding arg2 ;
17955 wxFontEncoding arg3 ;
17956 int arg4 = (int) wxCONVERT_STRICT ;
17957 bool result;
17958 void *argp1 = 0 ;
17959 int res1 = 0 ;
17960 int val2 ;
17961 int ecode2 = 0 ;
17962 int val3 ;
17963 int ecode3 = 0 ;
17964 int val4 ;
17965 int ecode4 = 0 ;
17966 PyObject * obj0 = 0 ;
17967 PyObject * obj1 = 0 ;
17968 PyObject * obj2 = 0 ;
17969 PyObject * obj3 = 0 ;
17970 char * kwnames[] = {
17971 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17972 };
17973
17974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17976 if (!SWIG_IsOK(res1)) {
17977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17978 }
17979 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17980 ecode2 = SWIG_AsVal_int(obj1, &val2);
17981 if (!SWIG_IsOK(ecode2)) {
17982 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17983 }
17984 arg2 = static_cast< wxFontEncoding >(val2);
17985 ecode3 = SWIG_AsVal_int(obj2, &val3);
17986 if (!SWIG_IsOK(ecode3)) {
17987 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17988 }
17989 arg3 = static_cast< wxFontEncoding >(val3);
17990 if (obj3) {
17991 ecode4 = SWIG_AsVal_int(obj3, &val4);
17992 if (!SWIG_IsOK(ecode4)) {
17993 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17994 }
17995 arg4 = static_cast< int >(val4);
17996 }
17997 {
17998 PyThreadState* __tstate = wxPyBeginAllowThreads();
17999 result = (bool)(arg1)->Init(arg2,arg3,arg4);
18000 wxPyEndAllowThreads(__tstate);
18001 if (PyErr_Occurred()) SWIG_fail;
18002 }
18003 {
18004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18005 }
18006 return resultobj;
18007 fail:
18008 return NULL;
18009 }
18010
18011
18012 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18013 PyObject *resultobj = 0;
18014 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
18015 wxString *arg2 = 0 ;
18016 wxString result;
18017 void *argp1 = 0 ;
18018 int res1 = 0 ;
18019 bool temp2 = false ;
18020 PyObject * obj0 = 0 ;
18021 PyObject * obj1 = 0 ;
18022 char * kwnames[] = {
18023 (char *) "self",(char *) "input", NULL
18024 };
18025
18026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
18027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
18028 if (!SWIG_IsOK(res1)) {
18029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
18030 }
18031 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
18032 {
18033 arg2 = wxString_in_helper(obj1);
18034 if (arg2 == NULL) SWIG_fail;
18035 temp2 = true;
18036 }
18037 {
18038 PyThreadState* __tstate = wxPyBeginAllowThreads();
18039 result = (arg1)->Convert((wxString const &)*arg2);
18040 wxPyEndAllowThreads(__tstate);
18041 if (PyErr_Occurred()) SWIG_fail;
18042 }
18043 {
18044 #if wxUSE_UNICODE
18045 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18046 #else
18047 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18048 #endif
18049 }
18050 {
18051 if (temp2)
18052 delete arg2;
18053 }
18054 return resultobj;
18055 fail:
18056 {
18057 if (temp2)
18058 delete arg2;
18059 }
18060 return NULL;
18061 }
18062
18063
18064 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18065 PyObject *resultobj = 0;
18066 wxFontEncoding arg1 ;
18067 int arg2 = (int) wxPLATFORM_CURRENT ;
18068 wxFontEncodingArray result;
18069 int val1 ;
18070 int ecode1 = 0 ;
18071 int val2 ;
18072 int ecode2 = 0 ;
18073 PyObject * obj0 = 0 ;
18074 PyObject * obj1 = 0 ;
18075 char * kwnames[] = {
18076 (char *) "enc",(char *) "platform", NULL
18077 };
18078
18079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
18080 ecode1 = SWIG_AsVal_int(obj0, &val1);
18081 if (!SWIG_IsOK(ecode1)) {
18082 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18083 }
18084 arg1 = static_cast< wxFontEncoding >(val1);
18085 if (obj1) {
18086 ecode2 = SWIG_AsVal_int(obj1, &val2);
18087 if (!SWIG_IsOK(ecode2)) {
18088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
18089 }
18090 arg2 = static_cast< int >(val2);
18091 }
18092 {
18093 PyThreadState* __tstate = wxPyBeginAllowThreads();
18094 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
18095 wxPyEndAllowThreads(__tstate);
18096 if (PyErr_Occurred()) SWIG_fail;
18097 }
18098 {
18099 resultobj = PyList_New(0);
18100 for (size_t i=0; i < (&result)->GetCount(); i++) {
18101 PyObject* number = PyInt_FromLong((&result)->Item(i));
18102 PyList_Append(resultobj, number);
18103 Py_DECREF(number);
18104 }
18105 }
18106 return resultobj;
18107 fail:
18108 return NULL;
18109 }
18110
18111
18112 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18113 PyObject *resultobj = 0;
18114 wxFontEncoding arg1 ;
18115 wxFontEncodingArray result;
18116 int val1 ;
18117 int ecode1 = 0 ;
18118 PyObject * obj0 = 0 ;
18119 char * kwnames[] = {
18120 (char *) "enc", NULL
18121 };
18122
18123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
18124 ecode1 = SWIG_AsVal_int(obj0, &val1);
18125 if (!SWIG_IsOK(ecode1)) {
18126 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18127 }
18128 arg1 = static_cast< wxFontEncoding >(val1);
18129 {
18130 PyThreadState* __tstate = wxPyBeginAllowThreads();
18131 result = wxEncodingConverter::GetAllEquivalents(arg1);
18132 wxPyEndAllowThreads(__tstate);
18133 if (PyErr_Occurred()) SWIG_fail;
18134 }
18135 {
18136 resultobj = PyList_New(0);
18137 for (size_t i=0; i < (&result)->GetCount(); i++) {
18138 PyObject* number = PyInt_FromLong((&result)->Item(i));
18139 PyList_Append(resultobj, number);
18140 Py_DECREF(number);
18141 }
18142 }
18143 return resultobj;
18144 fail:
18145 return NULL;
18146 }
18147
18148
18149 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18150 PyObject *resultobj = 0;
18151 wxFontEncoding arg1 ;
18152 wxFontEncoding arg2 ;
18153 bool result;
18154 int val1 ;
18155 int ecode1 = 0 ;
18156 int val2 ;
18157 int ecode2 = 0 ;
18158 PyObject * obj0 = 0 ;
18159 PyObject * obj1 = 0 ;
18160 char * kwnames[] = {
18161 (char *) "encIn",(char *) "encOut", NULL
18162 };
18163
18164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
18165 ecode1 = SWIG_AsVal_int(obj0, &val1);
18166 if (!SWIG_IsOK(ecode1)) {
18167 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18168 }
18169 arg1 = static_cast< wxFontEncoding >(val1);
18170 ecode2 = SWIG_AsVal_int(obj1, &val2);
18171 if (!SWIG_IsOK(ecode2)) {
18172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
18173 }
18174 arg2 = static_cast< wxFontEncoding >(val2);
18175 {
18176 PyThreadState* __tstate = wxPyBeginAllowThreads();
18177 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
18178 wxPyEndAllowThreads(__tstate);
18179 if (PyErr_Occurred()) SWIG_fail;
18180 }
18181 {
18182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18183 }
18184 return resultobj;
18185 fail:
18186 return NULL;
18187 }
18188
18189
18190 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18191 PyObject *obj;
18192 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18193 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
18194 return SWIG_Py_Void();
18195 }
18196
18197 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18198 return SWIG_Python_InitShadowInstance(args);
18199 }
18200
18201 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18202 PyObject *resultobj = 0;
18203 wxDC *arg1 = (wxDC *) 0 ;
18204 void *argp1 = 0 ;
18205 int res1 = 0 ;
18206 PyObject *swig_obj[1] ;
18207
18208 if (!args) SWIG_fail;
18209 swig_obj[0] = args;
18210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
18211 if (!SWIG_IsOK(res1)) {
18212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
18213 }
18214 arg1 = reinterpret_cast< wxDC * >(argp1);
18215 {
18216 PyThreadState* __tstate = wxPyBeginAllowThreads();
18217 delete arg1;
18218
18219 wxPyEndAllowThreads(__tstate);
18220 if (PyErr_Occurred()) SWIG_fail;
18221 }
18222 resultobj = SWIG_Py_Void();
18223 return resultobj;
18224 fail:
18225 return NULL;
18226 }
18227
18228
18229 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18230 PyObject *resultobj = 0;
18231 wxDC *arg1 = (wxDC *) 0 ;
18232 int arg2 ;
18233 int arg3 ;
18234 wxColour *arg4 = 0 ;
18235 int arg5 = (int) wxFLOOD_SURFACE ;
18236 bool result;
18237 void *argp1 = 0 ;
18238 int res1 = 0 ;
18239 int val2 ;
18240 int ecode2 = 0 ;
18241 int val3 ;
18242 int ecode3 = 0 ;
18243 wxColour temp4 ;
18244 int val5 ;
18245 int ecode5 = 0 ;
18246 PyObject * obj0 = 0 ;
18247 PyObject * obj1 = 0 ;
18248 PyObject * obj2 = 0 ;
18249 PyObject * obj3 = 0 ;
18250 PyObject * obj4 = 0 ;
18251 char * kwnames[] = {
18252 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
18253 };
18254
18255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18257 if (!SWIG_IsOK(res1)) {
18258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
18259 }
18260 arg1 = reinterpret_cast< wxDC * >(argp1);
18261 ecode2 = SWIG_AsVal_int(obj1, &val2);
18262 if (!SWIG_IsOK(ecode2)) {
18263 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
18264 }
18265 arg2 = static_cast< int >(val2);
18266 ecode3 = SWIG_AsVal_int(obj2, &val3);
18267 if (!SWIG_IsOK(ecode3)) {
18268 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
18269 }
18270 arg3 = static_cast< int >(val3);
18271 {
18272 arg4 = &temp4;
18273 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18274 }
18275 if (obj4) {
18276 ecode5 = SWIG_AsVal_int(obj4, &val5);
18277 if (!SWIG_IsOK(ecode5)) {
18278 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
18279 }
18280 arg5 = static_cast< int >(val5);
18281 }
18282 {
18283 PyThreadState* __tstate = wxPyBeginAllowThreads();
18284 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
18285 wxPyEndAllowThreads(__tstate);
18286 if (PyErr_Occurred()) SWIG_fail;
18287 }
18288 {
18289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18290 }
18291 return resultobj;
18292 fail:
18293 return NULL;
18294 }
18295
18296
18297 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18298 PyObject *resultobj = 0;
18299 wxDC *arg1 = (wxDC *) 0 ;
18300 wxPoint *arg2 = 0 ;
18301 wxColour *arg3 = 0 ;
18302 int arg4 = (int) wxFLOOD_SURFACE ;
18303 bool result;
18304 void *argp1 = 0 ;
18305 int res1 = 0 ;
18306 wxPoint temp2 ;
18307 wxColour temp3 ;
18308 int val4 ;
18309 int ecode4 = 0 ;
18310 PyObject * obj0 = 0 ;
18311 PyObject * obj1 = 0 ;
18312 PyObject * obj2 = 0 ;
18313 PyObject * obj3 = 0 ;
18314 char * kwnames[] = {
18315 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
18316 };
18317
18318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18320 if (!SWIG_IsOK(res1)) {
18321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18322 }
18323 arg1 = reinterpret_cast< wxDC * >(argp1);
18324 {
18325 arg2 = &temp2;
18326 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18327 }
18328 {
18329 arg3 = &temp3;
18330 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18331 }
18332 if (obj3) {
18333 ecode4 = SWIG_AsVal_int(obj3, &val4);
18334 if (!SWIG_IsOK(ecode4)) {
18335 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
18336 }
18337 arg4 = static_cast< int >(val4);
18338 }
18339 {
18340 PyThreadState* __tstate = wxPyBeginAllowThreads();
18341 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
18342 wxPyEndAllowThreads(__tstate);
18343 if (PyErr_Occurred()) SWIG_fail;
18344 }
18345 {
18346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18347 }
18348 return resultobj;
18349 fail:
18350 return NULL;
18351 }
18352
18353
18354 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18355 PyObject *resultobj = 0;
18356 wxDC *arg1 = (wxDC *) 0 ;
18357 wxRect *arg2 = 0 ;
18358 wxColour *arg3 = 0 ;
18359 wxColour *arg4 = 0 ;
18360 wxPoint *arg5 = 0 ;
18361 void *argp1 = 0 ;
18362 int res1 = 0 ;
18363 wxRect temp2 ;
18364 wxColour temp3 ;
18365 wxColour temp4 ;
18366 wxPoint temp5 ;
18367 PyObject * obj0 = 0 ;
18368 PyObject * obj1 = 0 ;
18369 PyObject * obj2 = 0 ;
18370 PyObject * obj3 = 0 ;
18371 PyObject * obj4 = 0 ;
18372 char * kwnames[] = {
18373 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
18374 };
18375
18376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18378 if (!SWIG_IsOK(res1)) {
18379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
18380 }
18381 arg1 = reinterpret_cast< wxDC * >(argp1);
18382 {
18383 arg2 = &temp2;
18384 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18385 }
18386 {
18387 arg3 = &temp3;
18388 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18389 }
18390 {
18391 arg4 = &temp4;
18392 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18393 }
18394 {
18395 arg5 = &temp5;
18396 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18397 }
18398 {
18399 PyThreadState* __tstate = wxPyBeginAllowThreads();
18400 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
18401 wxPyEndAllowThreads(__tstate);
18402 if (PyErr_Occurred()) SWIG_fail;
18403 }
18404 resultobj = SWIG_Py_Void();
18405 return resultobj;
18406 fail:
18407 return NULL;
18408 }
18409
18410
18411 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18412 PyObject *resultobj = 0;
18413 wxDC *arg1 = (wxDC *) 0 ;
18414 wxRect *arg2 = 0 ;
18415 wxColour *arg3 = 0 ;
18416 wxColour *arg4 = 0 ;
18417 wxDirection arg5 = (wxDirection) wxEAST ;
18418 void *argp1 = 0 ;
18419 int res1 = 0 ;
18420 wxRect temp2 ;
18421 wxColour temp3 ;
18422 wxColour temp4 ;
18423 int val5 ;
18424 int ecode5 = 0 ;
18425 PyObject * obj0 = 0 ;
18426 PyObject * obj1 = 0 ;
18427 PyObject * obj2 = 0 ;
18428 PyObject * obj3 = 0 ;
18429 PyObject * obj4 = 0 ;
18430 char * kwnames[] = {
18431 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
18432 };
18433
18434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18436 if (!SWIG_IsOK(res1)) {
18437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
18438 }
18439 arg1 = reinterpret_cast< wxDC * >(argp1);
18440 {
18441 arg2 = &temp2;
18442 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18443 }
18444 {
18445 arg3 = &temp3;
18446 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18447 }
18448 {
18449 arg4 = &temp4;
18450 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18451 }
18452 if (obj4) {
18453 ecode5 = SWIG_AsVal_int(obj4, &val5);
18454 if (!SWIG_IsOK(ecode5)) {
18455 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
18456 }
18457 arg5 = static_cast< wxDirection >(val5);
18458 }
18459 {
18460 PyThreadState* __tstate = wxPyBeginAllowThreads();
18461 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
18462 wxPyEndAllowThreads(__tstate);
18463 if (PyErr_Occurred()) SWIG_fail;
18464 }
18465 resultobj = SWIG_Py_Void();
18466 return resultobj;
18467 fail:
18468 return NULL;
18469 }
18470
18471
18472 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18473 PyObject *resultobj = 0;
18474 wxDC *arg1 = (wxDC *) 0 ;
18475 int arg2 ;
18476 int arg3 ;
18477 wxColour result;
18478 void *argp1 = 0 ;
18479 int res1 = 0 ;
18480 int val2 ;
18481 int ecode2 = 0 ;
18482 int val3 ;
18483 int ecode3 = 0 ;
18484 PyObject * obj0 = 0 ;
18485 PyObject * obj1 = 0 ;
18486 PyObject * obj2 = 0 ;
18487 char * kwnames[] = {
18488 (char *) "self",(char *) "x",(char *) "y", NULL
18489 };
18490
18491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18493 if (!SWIG_IsOK(res1)) {
18494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
18495 }
18496 arg1 = reinterpret_cast< wxDC * >(argp1);
18497 ecode2 = SWIG_AsVal_int(obj1, &val2);
18498 if (!SWIG_IsOK(ecode2)) {
18499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
18500 }
18501 arg2 = static_cast< int >(val2);
18502 ecode3 = SWIG_AsVal_int(obj2, &val3);
18503 if (!SWIG_IsOK(ecode3)) {
18504 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
18505 }
18506 arg3 = static_cast< int >(val3);
18507 {
18508 PyThreadState* __tstate = wxPyBeginAllowThreads();
18509 result = wxDC_GetPixel(arg1,arg2,arg3);
18510 wxPyEndAllowThreads(__tstate);
18511 if (PyErr_Occurred()) SWIG_fail;
18512 }
18513 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18514 return resultobj;
18515 fail:
18516 return NULL;
18517 }
18518
18519
18520 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18521 PyObject *resultobj = 0;
18522 wxDC *arg1 = (wxDC *) 0 ;
18523 wxPoint *arg2 = 0 ;
18524 wxColour result;
18525 void *argp1 = 0 ;
18526 int res1 = 0 ;
18527 wxPoint temp2 ;
18528 PyObject * obj0 = 0 ;
18529 PyObject * obj1 = 0 ;
18530 char * kwnames[] = {
18531 (char *) "self",(char *) "pt", NULL
18532 };
18533
18534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18536 if (!SWIG_IsOK(res1)) {
18537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18538 }
18539 arg1 = reinterpret_cast< wxDC * >(argp1);
18540 {
18541 arg2 = &temp2;
18542 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18543 }
18544 {
18545 PyThreadState* __tstate = wxPyBeginAllowThreads();
18546 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
18547 wxPyEndAllowThreads(__tstate);
18548 if (PyErr_Occurred()) SWIG_fail;
18549 }
18550 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18551 return resultobj;
18552 fail:
18553 return NULL;
18554 }
18555
18556
18557 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18558 PyObject *resultobj = 0;
18559 wxDC *arg1 = (wxDC *) 0 ;
18560 int arg2 ;
18561 int arg3 ;
18562 int arg4 ;
18563 int arg5 ;
18564 void *argp1 = 0 ;
18565 int res1 = 0 ;
18566 int val2 ;
18567 int ecode2 = 0 ;
18568 int val3 ;
18569 int ecode3 = 0 ;
18570 int val4 ;
18571 int ecode4 = 0 ;
18572 int val5 ;
18573 int ecode5 = 0 ;
18574 PyObject * obj0 = 0 ;
18575 PyObject * obj1 = 0 ;
18576 PyObject * obj2 = 0 ;
18577 PyObject * obj3 = 0 ;
18578 PyObject * obj4 = 0 ;
18579 char * kwnames[] = {
18580 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18581 };
18582
18583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18585 if (!SWIG_IsOK(res1)) {
18586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18587 }
18588 arg1 = reinterpret_cast< wxDC * >(argp1);
18589 ecode2 = SWIG_AsVal_int(obj1, &val2);
18590 if (!SWIG_IsOK(ecode2)) {
18591 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18592 }
18593 arg2 = static_cast< int >(val2);
18594 ecode3 = SWIG_AsVal_int(obj2, &val3);
18595 if (!SWIG_IsOK(ecode3)) {
18596 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18597 }
18598 arg3 = static_cast< int >(val3);
18599 ecode4 = SWIG_AsVal_int(obj3, &val4);
18600 if (!SWIG_IsOK(ecode4)) {
18601 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18602 }
18603 arg4 = static_cast< int >(val4);
18604 ecode5 = SWIG_AsVal_int(obj4, &val5);
18605 if (!SWIG_IsOK(ecode5)) {
18606 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18607 }
18608 arg5 = static_cast< int >(val5);
18609 {
18610 PyThreadState* __tstate = wxPyBeginAllowThreads();
18611 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18612 wxPyEndAllowThreads(__tstate);
18613 if (PyErr_Occurred()) SWIG_fail;
18614 }
18615 resultobj = SWIG_Py_Void();
18616 return resultobj;
18617 fail:
18618 return NULL;
18619 }
18620
18621
18622 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18623 PyObject *resultobj = 0;
18624 wxDC *arg1 = (wxDC *) 0 ;
18625 wxPoint *arg2 = 0 ;
18626 wxPoint *arg3 = 0 ;
18627 void *argp1 = 0 ;
18628 int res1 = 0 ;
18629 wxPoint temp2 ;
18630 wxPoint temp3 ;
18631 PyObject * obj0 = 0 ;
18632 PyObject * obj1 = 0 ;
18633 PyObject * obj2 = 0 ;
18634 char * kwnames[] = {
18635 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18636 };
18637
18638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18640 if (!SWIG_IsOK(res1)) {
18641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18642 }
18643 arg1 = reinterpret_cast< wxDC * >(argp1);
18644 {
18645 arg2 = &temp2;
18646 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18647 }
18648 {
18649 arg3 = &temp3;
18650 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18651 }
18652 {
18653 PyThreadState* __tstate = wxPyBeginAllowThreads();
18654 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18655 wxPyEndAllowThreads(__tstate);
18656 if (PyErr_Occurred()) SWIG_fail;
18657 }
18658 resultobj = SWIG_Py_Void();
18659 return resultobj;
18660 fail:
18661 return NULL;
18662 }
18663
18664
18665 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18666 PyObject *resultobj = 0;
18667 wxDC *arg1 = (wxDC *) 0 ;
18668 int arg2 ;
18669 int arg3 ;
18670 void *argp1 = 0 ;
18671 int res1 = 0 ;
18672 int val2 ;
18673 int ecode2 = 0 ;
18674 int val3 ;
18675 int ecode3 = 0 ;
18676 PyObject * obj0 = 0 ;
18677 PyObject * obj1 = 0 ;
18678 PyObject * obj2 = 0 ;
18679 char * kwnames[] = {
18680 (char *) "self",(char *) "x",(char *) "y", NULL
18681 };
18682
18683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18685 if (!SWIG_IsOK(res1)) {
18686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18687 }
18688 arg1 = reinterpret_cast< wxDC * >(argp1);
18689 ecode2 = SWIG_AsVal_int(obj1, &val2);
18690 if (!SWIG_IsOK(ecode2)) {
18691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18692 }
18693 arg2 = static_cast< int >(val2);
18694 ecode3 = SWIG_AsVal_int(obj2, &val3);
18695 if (!SWIG_IsOK(ecode3)) {
18696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18697 }
18698 arg3 = static_cast< int >(val3);
18699 {
18700 PyThreadState* __tstate = wxPyBeginAllowThreads();
18701 (arg1)->CrossHair(arg2,arg3);
18702 wxPyEndAllowThreads(__tstate);
18703 if (PyErr_Occurred()) SWIG_fail;
18704 }
18705 resultobj = SWIG_Py_Void();
18706 return resultobj;
18707 fail:
18708 return NULL;
18709 }
18710
18711
18712 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18713 PyObject *resultobj = 0;
18714 wxDC *arg1 = (wxDC *) 0 ;
18715 wxPoint *arg2 = 0 ;
18716 void *argp1 = 0 ;
18717 int res1 = 0 ;
18718 wxPoint temp2 ;
18719 PyObject * obj0 = 0 ;
18720 PyObject * obj1 = 0 ;
18721 char * kwnames[] = {
18722 (char *) "self",(char *) "pt", NULL
18723 };
18724
18725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18727 if (!SWIG_IsOK(res1)) {
18728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18729 }
18730 arg1 = reinterpret_cast< wxDC * >(argp1);
18731 {
18732 arg2 = &temp2;
18733 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18734 }
18735 {
18736 PyThreadState* __tstate = wxPyBeginAllowThreads();
18737 (arg1)->CrossHair((wxPoint const &)*arg2);
18738 wxPyEndAllowThreads(__tstate);
18739 if (PyErr_Occurred()) SWIG_fail;
18740 }
18741 resultobj = SWIG_Py_Void();
18742 return resultobj;
18743 fail:
18744 return NULL;
18745 }
18746
18747
18748 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18749 PyObject *resultobj = 0;
18750 wxDC *arg1 = (wxDC *) 0 ;
18751 int arg2 ;
18752 int arg3 ;
18753 int arg4 ;
18754 int arg5 ;
18755 int arg6 ;
18756 int arg7 ;
18757 void *argp1 = 0 ;
18758 int res1 = 0 ;
18759 int val2 ;
18760 int ecode2 = 0 ;
18761 int val3 ;
18762 int ecode3 = 0 ;
18763 int val4 ;
18764 int ecode4 = 0 ;
18765 int val5 ;
18766 int ecode5 = 0 ;
18767 int val6 ;
18768 int ecode6 = 0 ;
18769 int val7 ;
18770 int ecode7 = 0 ;
18771 PyObject * obj0 = 0 ;
18772 PyObject * obj1 = 0 ;
18773 PyObject * obj2 = 0 ;
18774 PyObject * obj3 = 0 ;
18775 PyObject * obj4 = 0 ;
18776 PyObject * obj5 = 0 ;
18777 PyObject * obj6 = 0 ;
18778 char * kwnames[] = {
18779 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18780 };
18781
18782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18784 if (!SWIG_IsOK(res1)) {
18785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18786 }
18787 arg1 = reinterpret_cast< wxDC * >(argp1);
18788 ecode2 = SWIG_AsVal_int(obj1, &val2);
18789 if (!SWIG_IsOK(ecode2)) {
18790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18791 }
18792 arg2 = static_cast< int >(val2);
18793 ecode3 = SWIG_AsVal_int(obj2, &val3);
18794 if (!SWIG_IsOK(ecode3)) {
18795 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18796 }
18797 arg3 = static_cast< int >(val3);
18798 ecode4 = SWIG_AsVal_int(obj3, &val4);
18799 if (!SWIG_IsOK(ecode4)) {
18800 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18801 }
18802 arg4 = static_cast< int >(val4);
18803 ecode5 = SWIG_AsVal_int(obj4, &val5);
18804 if (!SWIG_IsOK(ecode5)) {
18805 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18806 }
18807 arg5 = static_cast< int >(val5);
18808 ecode6 = SWIG_AsVal_int(obj5, &val6);
18809 if (!SWIG_IsOK(ecode6)) {
18810 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18811 }
18812 arg6 = static_cast< int >(val6);
18813 ecode7 = SWIG_AsVal_int(obj6, &val7);
18814 if (!SWIG_IsOK(ecode7)) {
18815 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18816 }
18817 arg7 = static_cast< int >(val7);
18818 {
18819 PyThreadState* __tstate = wxPyBeginAllowThreads();
18820 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18821 wxPyEndAllowThreads(__tstate);
18822 if (PyErr_Occurred()) SWIG_fail;
18823 }
18824 resultobj = SWIG_Py_Void();
18825 return resultobj;
18826 fail:
18827 return NULL;
18828 }
18829
18830
18831 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18832 PyObject *resultobj = 0;
18833 wxDC *arg1 = (wxDC *) 0 ;
18834 wxPoint *arg2 = 0 ;
18835 wxPoint *arg3 = 0 ;
18836 wxPoint *arg4 = 0 ;
18837 void *argp1 = 0 ;
18838 int res1 = 0 ;
18839 wxPoint temp2 ;
18840 wxPoint temp3 ;
18841 wxPoint temp4 ;
18842 PyObject * obj0 = 0 ;
18843 PyObject * obj1 = 0 ;
18844 PyObject * obj2 = 0 ;
18845 PyObject * obj3 = 0 ;
18846 char * kwnames[] = {
18847 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18848 };
18849
18850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18852 if (!SWIG_IsOK(res1)) {
18853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18854 }
18855 arg1 = reinterpret_cast< wxDC * >(argp1);
18856 {
18857 arg2 = &temp2;
18858 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18859 }
18860 {
18861 arg3 = &temp3;
18862 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18863 }
18864 {
18865 arg4 = &temp4;
18866 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18867 }
18868 {
18869 PyThreadState* __tstate = wxPyBeginAllowThreads();
18870 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18871 wxPyEndAllowThreads(__tstate);
18872 if (PyErr_Occurred()) SWIG_fail;
18873 }
18874 resultobj = SWIG_Py_Void();
18875 return resultobj;
18876 fail:
18877 return NULL;
18878 }
18879
18880
18881 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18882 PyObject *resultobj = 0;
18883 wxDC *arg1 = (wxDC *) 0 ;
18884 int arg2 ;
18885 int arg3 ;
18886 int arg4 ;
18887 int arg5 ;
18888 void *argp1 = 0 ;
18889 int res1 = 0 ;
18890 int val2 ;
18891 int ecode2 = 0 ;
18892 int val3 ;
18893 int ecode3 = 0 ;
18894 int val4 ;
18895 int ecode4 = 0 ;
18896 int val5 ;
18897 int ecode5 = 0 ;
18898 PyObject * obj0 = 0 ;
18899 PyObject * obj1 = 0 ;
18900 PyObject * obj2 = 0 ;
18901 PyObject * obj3 = 0 ;
18902 PyObject * obj4 = 0 ;
18903 char * kwnames[] = {
18904 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18905 };
18906
18907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18909 if (!SWIG_IsOK(res1)) {
18910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18911 }
18912 arg1 = reinterpret_cast< wxDC * >(argp1);
18913 ecode2 = SWIG_AsVal_int(obj1, &val2);
18914 if (!SWIG_IsOK(ecode2)) {
18915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18916 }
18917 arg2 = static_cast< int >(val2);
18918 ecode3 = SWIG_AsVal_int(obj2, &val3);
18919 if (!SWIG_IsOK(ecode3)) {
18920 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18921 }
18922 arg3 = static_cast< int >(val3);
18923 ecode4 = SWIG_AsVal_int(obj3, &val4);
18924 if (!SWIG_IsOK(ecode4)) {
18925 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18926 }
18927 arg4 = static_cast< int >(val4);
18928 ecode5 = SWIG_AsVal_int(obj4, &val5);
18929 if (!SWIG_IsOK(ecode5)) {
18930 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18931 }
18932 arg5 = static_cast< int >(val5);
18933 {
18934 PyThreadState* __tstate = wxPyBeginAllowThreads();
18935 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18936 wxPyEndAllowThreads(__tstate);
18937 if (PyErr_Occurred()) SWIG_fail;
18938 }
18939 resultobj = SWIG_Py_Void();
18940 return resultobj;
18941 fail:
18942 return NULL;
18943 }
18944
18945
18946 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18947 PyObject *resultobj = 0;
18948 wxDC *arg1 = (wxDC *) 0 ;
18949 wxRect *arg2 = 0 ;
18950 void *argp1 = 0 ;
18951 int res1 = 0 ;
18952 wxRect temp2 ;
18953 PyObject * obj0 = 0 ;
18954 PyObject * obj1 = 0 ;
18955 char * kwnames[] = {
18956 (char *) "self",(char *) "rect", NULL
18957 };
18958
18959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18961 if (!SWIG_IsOK(res1)) {
18962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18963 }
18964 arg1 = reinterpret_cast< wxDC * >(argp1);
18965 {
18966 arg2 = &temp2;
18967 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18968 }
18969 {
18970 PyThreadState* __tstate = wxPyBeginAllowThreads();
18971 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18972 wxPyEndAllowThreads(__tstate);
18973 if (PyErr_Occurred()) SWIG_fail;
18974 }
18975 resultobj = SWIG_Py_Void();
18976 return resultobj;
18977 fail:
18978 return NULL;
18979 }
18980
18981
18982 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18983 PyObject *resultobj = 0;
18984 wxDC *arg1 = (wxDC *) 0 ;
18985 int arg2 ;
18986 int arg3 ;
18987 int arg4 ;
18988 int arg5 ;
18989 double arg6 ;
18990 double arg7 ;
18991 void *argp1 = 0 ;
18992 int res1 = 0 ;
18993 int val2 ;
18994 int ecode2 = 0 ;
18995 int val3 ;
18996 int ecode3 = 0 ;
18997 int val4 ;
18998 int ecode4 = 0 ;
18999 int val5 ;
19000 int ecode5 = 0 ;
19001 double val6 ;
19002 int ecode6 = 0 ;
19003 double val7 ;
19004 int ecode7 = 0 ;
19005 PyObject * obj0 = 0 ;
19006 PyObject * obj1 = 0 ;
19007 PyObject * obj2 = 0 ;
19008 PyObject * obj3 = 0 ;
19009 PyObject * obj4 = 0 ;
19010 PyObject * obj5 = 0 ;
19011 PyObject * obj6 = 0 ;
19012 char * kwnames[] = {
19013 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
19014 };
19015
19016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
19017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19018 if (!SWIG_IsOK(res1)) {
19019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
19020 }
19021 arg1 = reinterpret_cast< wxDC * >(argp1);
19022 ecode2 = SWIG_AsVal_int(obj1, &val2);
19023 if (!SWIG_IsOK(ecode2)) {
19024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
19025 }
19026 arg2 = static_cast< int >(val2);
19027 ecode3 = SWIG_AsVal_int(obj2, &val3);
19028 if (!SWIG_IsOK(ecode3)) {
19029 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
19030 }
19031 arg3 = static_cast< int >(val3);
19032 ecode4 = SWIG_AsVal_int(obj3, &val4);
19033 if (!SWIG_IsOK(ecode4)) {
19034 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
19035 }
19036 arg4 = static_cast< int >(val4);
19037 ecode5 = SWIG_AsVal_int(obj4, &val5);
19038 if (!SWIG_IsOK(ecode5)) {
19039 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
19040 }
19041 arg5 = static_cast< int >(val5);
19042 ecode6 = SWIG_AsVal_double(obj5, &val6);
19043 if (!SWIG_IsOK(ecode6)) {
19044 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
19045 }
19046 arg6 = static_cast< double >(val6);
19047 ecode7 = SWIG_AsVal_double(obj6, &val7);
19048 if (!SWIG_IsOK(ecode7)) {
19049 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
19050 }
19051 arg7 = static_cast< double >(val7);
19052 {
19053 PyThreadState* __tstate = wxPyBeginAllowThreads();
19054 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
19055 wxPyEndAllowThreads(__tstate);
19056 if (PyErr_Occurred()) SWIG_fail;
19057 }
19058 resultobj = SWIG_Py_Void();
19059 return resultobj;
19060 fail:
19061 return NULL;
19062 }
19063
19064
19065 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19066 PyObject *resultobj = 0;
19067 wxDC *arg1 = (wxDC *) 0 ;
19068 wxPoint *arg2 = 0 ;
19069 wxSize *arg3 = 0 ;
19070 double arg4 ;
19071 double arg5 ;
19072 void *argp1 = 0 ;
19073 int res1 = 0 ;
19074 wxPoint temp2 ;
19075 wxSize temp3 ;
19076 double val4 ;
19077 int ecode4 = 0 ;
19078 double val5 ;
19079 int ecode5 = 0 ;
19080 PyObject * obj0 = 0 ;
19081 PyObject * obj1 = 0 ;
19082 PyObject * obj2 = 0 ;
19083 PyObject * obj3 = 0 ;
19084 PyObject * obj4 = 0 ;
19085 char * kwnames[] = {
19086 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
19087 };
19088
19089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19091 if (!SWIG_IsOK(res1)) {
19092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19093 }
19094 arg1 = reinterpret_cast< wxDC * >(argp1);
19095 {
19096 arg2 = &temp2;
19097 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19098 }
19099 {
19100 arg3 = &temp3;
19101 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19102 }
19103 ecode4 = SWIG_AsVal_double(obj3, &val4);
19104 if (!SWIG_IsOK(ecode4)) {
19105 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
19106 }
19107 arg4 = static_cast< double >(val4);
19108 ecode5 = SWIG_AsVal_double(obj4, &val5);
19109 if (!SWIG_IsOK(ecode5)) {
19110 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
19111 }
19112 arg5 = static_cast< double >(val5);
19113 {
19114 PyThreadState* __tstate = wxPyBeginAllowThreads();
19115 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
19116 wxPyEndAllowThreads(__tstate);
19117 if (PyErr_Occurred()) SWIG_fail;
19118 }
19119 resultobj = SWIG_Py_Void();
19120 return resultobj;
19121 fail:
19122 return NULL;
19123 }
19124
19125
19126 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19127 PyObject *resultobj = 0;
19128 wxDC *arg1 = (wxDC *) 0 ;
19129 int arg2 ;
19130 int arg3 ;
19131 void *argp1 = 0 ;
19132 int res1 = 0 ;
19133 int val2 ;
19134 int ecode2 = 0 ;
19135 int val3 ;
19136 int ecode3 = 0 ;
19137 PyObject * obj0 = 0 ;
19138 PyObject * obj1 = 0 ;
19139 PyObject * obj2 = 0 ;
19140 char * kwnames[] = {
19141 (char *) "self",(char *) "x",(char *) "y", NULL
19142 };
19143
19144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19146 if (!SWIG_IsOK(res1)) {
19147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19148 }
19149 arg1 = reinterpret_cast< wxDC * >(argp1);
19150 ecode2 = SWIG_AsVal_int(obj1, &val2);
19151 if (!SWIG_IsOK(ecode2)) {
19152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
19153 }
19154 arg2 = static_cast< int >(val2);
19155 ecode3 = SWIG_AsVal_int(obj2, &val3);
19156 if (!SWIG_IsOK(ecode3)) {
19157 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
19158 }
19159 arg3 = static_cast< int >(val3);
19160 {
19161 PyThreadState* __tstate = wxPyBeginAllowThreads();
19162 (arg1)->DrawPoint(arg2,arg3);
19163 wxPyEndAllowThreads(__tstate);
19164 if (PyErr_Occurred()) SWIG_fail;
19165 }
19166 resultobj = SWIG_Py_Void();
19167 return resultobj;
19168 fail:
19169 return NULL;
19170 }
19171
19172
19173 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19174 PyObject *resultobj = 0;
19175 wxDC *arg1 = (wxDC *) 0 ;
19176 wxPoint *arg2 = 0 ;
19177 void *argp1 = 0 ;
19178 int res1 = 0 ;
19179 wxPoint temp2 ;
19180 PyObject * obj0 = 0 ;
19181 PyObject * obj1 = 0 ;
19182 char * kwnames[] = {
19183 (char *) "self",(char *) "pt", NULL
19184 };
19185
19186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19188 if (!SWIG_IsOK(res1)) {
19189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19190 }
19191 arg1 = reinterpret_cast< wxDC * >(argp1);
19192 {
19193 arg2 = &temp2;
19194 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19195 }
19196 {
19197 PyThreadState* __tstate = wxPyBeginAllowThreads();
19198 (arg1)->DrawPoint((wxPoint const &)*arg2);
19199 wxPyEndAllowThreads(__tstate);
19200 if (PyErr_Occurred()) SWIG_fail;
19201 }
19202 resultobj = SWIG_Py_Void();
19203 return resultobj;
19204 fail:
19205 return NULL;
19206 }
19207
19208
19209 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19210 PyObject *resultobj = 0;
19211 wxDC *arg1 = (wxDC *) 0 ;
19212 int arg2 ;
19213 int arg3 ;
19214 int arg4 ;
19215 int arg5 ;
19216 void *argp1 = 0 ;
19217 int res1 = 0 ;
19218 int val2 ;
19219 int ecode2 = 0 ;
19220 int val3 ;
19221 int ecode3 = 0 ;
19222 int val4 ;
19223 int ecode4 = 0 ;
19224 int val5 ;
19225 int ecode5 = 0 ;
19226 PyObject * obj0 = 0 ;
19227 PyObject * obj1 = 0 ;
19228 PyObject * obj2 = 0 ;
19229 PyObject * obj3 = 0 ;
19230 PyObject * obj4 = 0 ;
19231 char * kwnames[] = {
19232 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19233 };
19234
19235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19237 if (!SWIG_IsOK(res1)) {
19238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19239 }
19240 arg1 = reinterpret_cast< wxDC * >(argp1);
19241 ecode2 = SWIG_AsVal_int(obj1, &val2);
19242 if (!SWIG_IsOK(ecode2)) {
19243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
19244 }
19245 arg2 = static_cast< int >(val2);
19246 ecode3 = SWIG_AsVal_int(obj2, &val3);
19247 if (!SWIG_IsOK(ecode3)) {
19248 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
19249 }
19250 arg3 = static_cast< int >(val3);
19251 ecode4 = SWIG_AsVal_int(obj3, &val4);
19252 if (!SWIG_IsOK(ecode4)) {
19253 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
19254 }
19255 arg4 = static_cast< int >(val4);
19256 ecode5 = SWIG_AsVal_int(obj4, &val5);
19257 if (!SWIG_IsOK(ecode5)) {
19258 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
19259 }
19260 arg5 = static_cast< int >(val5);
19261 {
19262 PyThreadState* __tstate = wxPyBeginAllowThreads();
19263 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
19264 wxPyEndAllowThreads(__tstate);
19265 if (PyErr_Occurred()) SWIG_fail;
19266 }
19267 resultobj = SWIG_Py_Void();
19268 return resultobj;
19269 fail:
19270 return NULL;
19271 }
19272
19273
19274 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19275 PyObject *resultobj = 0;
19276 wxDC *arg1 = (wxDC *) 0 ;
19277 wxRect *arg2 = 0 ;
19278 void *argp1 = 0 ;
19279 int res1 = 0 ;
19280 wxRect temp2 ;
19281 PyObject * obj0 = 0 ;
19282 PyObject * obj1 = 0 ;
19283 char * kwnames[] = {
19284 (char *) "self",(char *) "rect", NULL
19285 };
19286
19287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
19288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19289 if (!SWIG_IsOK(res1)) {
19290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19291 }
19292 arg1 = reinterpret_cast< wxDC * >(argp1);
19293 {
19294 arg2 = &temp2;
19295 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19296 }
19297 {
19298 PyThreadState* __tstate = wxPyBeginAllowThreads();
19299 (arg1)->DrawRectangle((wxRect const &)*arg2);
19300 wxPyEndAllowThreads(__tstate);
19301 if (PyErr_Occurred()) SWIG_fail;
19302 }
19303 resultobj = SWIG_Py_Void();
19304 return resultobj;
19305 fail:
19306 return NULL;
19307 }
19308
19309
19310 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19311 PyObject *resultobj = 0;
19312 wxDC *arg1 = (wxDC *) 0 ;
19313 wxPoint *arg2 = 0 ;
19314 wxSize *arg3 = 0 ;
19315 void *argp1 = 0 ;
19316 int res1 = 0 ;
19317 wxPoint temp2 ;
19318 wxSize temp3 ;
19319 PyObject * obj0 = 0 ;
19320 PyObject * obj1 = 0 ;
19321 PyObject * obj2 = 0 ;
19322 char * kwnames[] = {
19323 (char *) "self",(char *) "pt",(char *) "sz", NULL
19324 };
19325
19326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19328 if (!SWIG_IsOK(res1)) {
19329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19330 }
19331 arg1 = reinterpret_cast< wxDC * >(argp1);
19332 {
19333 arg2 = &temp2;
19334 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19335 }
19336 {
19337 arg3 = &temp3;
19338 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19339 }
19340 {
19341 PyThreadState* __tstate = wxPyBeginAllowThreads();
19342 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
19343 wxPyEndAllowThreads(__tstate);
19344 if (PyErr_Occurred()) SWIG_fail;
19345 }
19346 resultobj = SWIG_Py_Void();
19347 return resultobj;
19348 fail:
19349 return NULL;
19350 }
19351
19352
19353 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19354 PyObject *resultobj = 0;
19355 wxDC *arg1 = (wxDC *) 0 ;
19356 int arg2 ;
19357 int arg3 ;
19358 int arg4 ;
19359 int arg5 ;
19360 double arg6 ;
19361 void *argp1 = 0 ;
19362 int res1 = 0 ;
19363 int val2 ;
19364 int ecode2 = 0 ;
19365 int val3 ;
19366 int ecode3 = 0 ;
19367 int val4 ;
19368 int ecode4 = 0 ;
19369 int val5 ;
19370 int ecode5 = 0 ;
19371 double val6 ;
19372 int ecode6 = 0 ;
19373 PyObject * obj0 = 0 ;
19374 PyObject * obj1 = 0 ;
19375 PyObject * obj2 = 0 ;
19376 PyObject * obj3 = 0 ;
19377 PyObject * obj4 = 0 ;
19378 PyObject * obj5 = 0 ;
19379 char * kwnames[] = {
19380 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
19381 };
19382
19383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19385 if (!SWIG_IsOK(res1)) {
19386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19387 }
19388 arg1 = reinterpret_cast< wxDC * >(argp1);
19389 ecode2 = SWIG_AsVal_int(obj1, &val2);
19390 if (!SWIG_IsOK(ecode2)) {
19391 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
19392 }
19393 arg2 = static_cast< int >(val2);
19394 ecode3 = SWIG_AsVal_int(obj2, &val3);
19395 if (!SWIG_IsOK(ecode3)) {
19396 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
19397 }
19398 arg3 = static_cast< int >(val3);
19399 ecode4 = SWIG_AsVal_int(obj3, &val4);
19400 if (!SWIG_IsOK(ecode4)) {
19401 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
19402 }
19403 arg4 = static_cast< int >(val4);
19404 ecode5 = SWIG_AsVal_int(obj4, &val5);
19405 if (!SWIG_IsOK(ecode5)) {
19406 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
19407 }
19408 arg5 = static_cast< int >(val5);
19409 ecode6 = SWIG_AsVal_double(obj5, &val6);
19410 if (!SWIG_IsOK(ecode6)) {
19411 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
19412 }
19413 arg6 = static_cast< double >(val6);
19414 {
19415 PyThreadState* __tstate = wxPyBeginAllowThreads();
19416 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
19417 wxPyEndAllowThreads(__tstate);
19418 if (PyErr_Occurred()) SWIG_fail;
19419 }
19420 resultobj = SWIG_Py_Void();
19421 return resultobj;
19422 fail:
19423 return NULL;
19424 }
19425
19426
19427 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19428 PyObject *resultobj = 0;
19429 wxDC *arg1 = (wxDC *) 0 ;
19430 wxRect *arg2 = 0 ;
19431 double arg3 ;
19432 void *argp1 = 0 ;
19433 int res1 = 0 ;
19434 wxRect temp2 ;
19435 double val3 ;
19436 int ecode3 = 0 ;
19437 PyObject * obj0 = 0 ;
19438 PyObject * obj1 = 0 ;
19439 PyObject * obj2 = 0 ;
19440 char * kwnames[] = {
19441 (char *) "self",(char *) "r",(char *) "radius", NULL
19442 };
19443
19444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19446 if (!SWIG_IsOK(res1)) {
19447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19448 }
19449 arg1 = reinterpret_cast< wxDC * >(argp1);
19450 {
19451 arg2 = &temp2;
19452 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19453 }
19454 ecode3 = SWIG_AsVal_double(obj2, &val3);
19455 if (!SWIG_IsOK(ecode3)) {
19456 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
19457 }
19458 arg3 = static_cast< double >(val3);
19459 {
19460 PyThreadState* __tstate = wxPyBeginAllowThreads();
19461 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
19462 wxPyEndAllowThreads(__tstate);
19463 if (PyErr_Occurred()) SWIG_fail;
19464 }
19465 resultobj = SWIG_Py_Void();
19466 return resultobj;
19467 fail:
19468 return NULL;
19469 }
19470
19471
19472 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19473 PyObject *resultobj = 0;
19474 wxDC *arg1 = (wxDC *) 0 ;
19475 wxPoint *arg2 = 0 ;
19476 wxSize *arg3 = 0 ;
19477 double arg4 ;
19478 void *argp1 = 0 ;
19479 int res1 = 0 ;
19480 wxPoint temp2 ;
19481 wxSize temp3 ;
19482 double val4 ;
19483 int ecode4 = 0 ;
19484 PyObject * obj0 = 0 ;
19485 PyObject * obj1 = 0 ;
19486 PyObject * obj2 = 0 ;
19487 PyObject * obj3 = 0 ;
19488 char * kwnames[] = {
19489 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
19490 };
19491
19492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19494 if (!SWIG_IsOK(res1)) {
19495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19496 }
19497 arg1 = reinterpret_cast< wxDC * >(argp1);
19498 {
19499 arg2 = &temp2;
19500 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19501 }
19502 {
19503 arg3 = &temp3;
19504 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19505 }
19506 ecode4 = SWIG_AsVal_double(obj3, &val4);
19507 if (!SWIG_IsOK(ecode4)) {
19508 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
19509 }
19510 arg4 = static_cast< double >(val4);
19511 {
19512 PyThreadState* __tstate = wxPyBeginAllowThreads();
19513 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
19514 wxPyEndAllowThreads(__tstate);
19515 if (PyErr_Occurred()) SWIG_fail;
19516 }
19517 resultobj = SWIG_Py_Void();
19518 return resultobj;
19519 fail:
19520 return NULL;
19521 }
19522
19523
19524 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19525 PyObject *resultobj = 0;
19526 wxDC *arg1 = (wxDC *) 0 ;
19527 int arg2 ;
19528 int arg3 ;
19529 int arg4 ;
19530 void *argp1 = 0 ;
19531 int res1 = 0 ;
19532 int val2 ;
19533 int ecode2 = 0 ;
19534 int val3 ;
19535 int ecode3 = 0 ;
19536 int val4 ;
19537 int ecode4 = 0 ;
19538 PyObject * obj0 = 0 ;
19539 PyObject * obj1 = 0 ;
19540 PyObject * obj2 = 0 ;
19541 PyObject * obj3 = 0 ;
19542 char * kwnames[] = {
19543 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
19544 };
19545
19546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19548 if (!SWIG_IsOK(res1)) {
19549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
19550 }
19551 arg1 = reinterpret_cast< wxDC * >(argp1);
19552 ecode2 = SWIG_AsVal_int(obj1, &val2);
19553 if (!SWIG_IsOK(ecode2)) {
19554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
19555 }
19556 arg2 = static_cast< int >(val2);
19557 ecode3 = SWIG_AsVal_int(obj2, &val3);
19558 if (!SWIG_IsOK(ecode3)) {
19559 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19560 }
19561 arg3 = static_cast< int >(val3);
19562 ecode4 = SWIG_AsVal_int(obj3, &val4);
19563 if (!SWIG_IsOK(ecode4)) {
19564 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19565 }
19566 arg4 = static_cast< int >(val4);
19567 {
19568 PyThreadState* __tstate = wxPyBeginAllowThreads();
19569 (arg1)->DrawCircle(arg2,arg3,arg4);
19570 wxPyEndAllowThreads(__tstate);
19571 if (PyErr_Occurred()) SWIG_fail;
19572 }
19573 resultobj = SWIG_Py_Void();
19574 return resultobj;
19575 fail:
19576 return NULL;
19577 }
19578
19579
19580 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19581 PyObject *resultobj = 0;
19582 wxDC *arg1 = (wxDC *) 0 ;
19583 wxPoint *arg2 = 0 ;
19584 int arg3 ;
19585 void *argp1 = 0 ;
19586 int res1 = 0 ;
19587 wxPoint temp2 ;
19588 int val3 ;
19589 int ecode3 = 0 ;
19590 PyObject * obj0 = 0 ;
19591 PyObject * obj1 = 0 ;
19592 PyObject * obj2 = 0 ;
19593 char * kwnames[] = {
19594 (char *) "self",(char *) "pt",(char *) "radius", NULL
19595 };
19596
19597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19599 if (!SWIG_IsOK(res1)) {
19600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19601 }
19602 arg1 = reinterpret_cast< wxDC * >(argp1);
19603 {
19604 arg2 = &temp2;
19605 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19606 }
19607 ecode3 = SWIG_AsVal_int(obj2, &val3);
19608 if (!SWIG_IsOK(ecode3)) {
19609 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19610 }
19611 arg3 = static_cast< int >(val3);
19612 {
19613 PyThreadState* __tstate = wxPyBeginAllowThreads();
19614 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19615 wxPyEndAllowThreads(__tstate);
19616 if (PyErr_Occurred()) SWIG_fail;
19617 }
19618 resultobj = SWIG_Py_Void();
19619 return resultobj;
19620 fail:
19621 return NULL;
19622 }
19623
19624
19625 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19626 PyObject *resultobj = 0;
19627 wxDC *arg1 = (wxDC *) 0 ;
19628 int arg2 ;
19629 int arg3 ;
19630 int arg4 ;
19631 int arg5 ;
19632 void *argp1 = 0 ;
19633 int res1 = 0 ;
19634 int val2 ;
19635 int ecode2 = 0 ;
19636 int val3 ;
19637 int ecode3 = 0 ;
19638 int val4 ;
19639 int ecode4 = 0 ;
19640 int val5 ;
19641 int ecode5 = 0 ;
19642 PyObject * obj0 = 0 ;
19643 PyObject * obj1 = 0 ;
19644 PyObject * obj2 = 0 ;
19645 PyObject * obj3 = 0 ;
19646 PyObject * obj4 = 0 ;
19647 char * kwnames[] = {
19648 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19649 };
19650
19651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19653 if (!SWIG_IsOK(res1)) {
19654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19655 }
19656 arg1 = reinterpret_cast< wxDC * >(argp1);
19657 ecode2 = SWIG_AsVal_int(obj1, &val2);
19658 if (!SWIG_IsOK(ecode2)) {
19659 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19660 }
19661 arg2 = static_cast< int >(val2);
19662 ecode3 = SWIG_AsVal_int(obj2, &val3);
19663 if (!SWIG_IsOK(ecode3)) {
19664 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19665 }
19666 arg3 = static_cast< int >(val3);
19667 ecode4 = SWIG_AsVal_int(obj3, &val4);
19668 if (!SWIG_IsOK(ecode4)) {
19669 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19670 }
19671 arg4 = static_cast< int >(val4);
19672 ecode5 = SWIG_AsVal_int(obj4, &val5);
19673 if (!SWIG_IsOK(ecode5)) {
19674 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19675 }
19676 arg5 = static_cast< int >(val5);
19677 {
19678 PyThreadState* __tstate = wxPyBeginAllowThreads();
19679 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19680 wxPyEndAllowThreads(__tstate);
19681 if (PyErr_Occurred()) SWIG_fail;
19682 }
19683 resultobj = SWIG_Py_Void();
19684 return resultobj;
19685 fail:
19686 return NULL;
19687 }
19688
19689
19690 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19691 PyObject *resultobj = 0;
19692 wxDC *arg1 = (wxDC *) 0 ;
19693 wxRect *arg2 = 0 ;
19694 void *argp1 = 0 ;
19695 int res1 = 0 ;
19696 wxRect temp2 ;
19697 PyObject * obj0 = 0 ;
19698 PyObject * obj1 = 0 ;
19699 char * kwnames[] = {
19700 (char *) "self",(char *) "rect", NULL
19701 };
19702
19703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19705 if (!SWIG_IsOK(res1)) {
19706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19707 }
19708 arg1 = reinterpret_cast< wxDC * >(argp1);
19709 {
19710 arg2 = &temp2;
19711 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19712 }
19713 {
19714 PyThreadState* __tstate = wxPyBeginAllowThreads();
19715 (arg1)->DrawEllipse((wxRect const &)*arg2);
19716 wxPyEndAllowThreads(__tstate);
19717 if (PyErr_Occurred()) SWIG_fail;
19718 }
19719 resultobj = SWIG_Py_Void();
19720 return resultobj;
19721 fail:
19722 return NULL;
19723 }
19724
19725
19726 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19727 PyObject *resultobj = 0;
19728 wxDC *arg1 = (wxDC *) 0 ;
19729 wxPoint *arg2 = 0 ;
19730 wxSize *arg3 = 0 ;
19731 void *argp1 = 0 ;
19732 int res1 = 0 ;
19733 wxPoint temp2 ;
19734 wxSize temp3 ;
19735 PyObject * obj0 = 0 ;
19736 PyObject * obj1 = 0 ;
19737 PyObject * obj2 = 0 ;
19738 char * kwnames[] = {
19739 (char *) "self",(char *) "pt",(char *) "sz", NULL
19740 };
19741
19742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19744 if (!SWIG_IsOK(res1)) {
19745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19746 }
19747 arg1 = reinterpret_cast< wxDC * >(argp1);
19748 {
19749 arg2 = &temp2;
19750 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19751 }
19752 {
19753 arg3 = &temp3;
19754 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19755 }
19756 {
19757 PyThreadState* __tstate = wxPyBeginAllowThreads();
19758 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19759 wxPyEndAllowThreads(__tstate);
19760 if (PyErr_Occurred()) SWIG_fail;
19761 }
19762 resultobj = SWIG_Py_Void();
19763 return resultobj;
19764 fail:
19765 return NULL;
19766 }
19767
19768
19769 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19770 PyObject *resultobj = 0;
19771 wxDC *arg1 = (wxDC *) 0 ;
19772 wxIcon *arg2 = 0 ;
19773 int arg3 ;
19774 int arg4 ;
19775 void *argp1 = 0 ;
19776 int res1 = 0 ;
19777 void *argp2 = 0 ;
19778 int res2 = 0 ;
19779 int val3 ;
19780 int ecode3 = 0 ;
19781 int val4 ;
19782 int ecode4 = 0 ;
19783 PyObject * obj0 = 0 ;
19784 PyObject * obj1 = 0 ;
19785 PyObject * obj2 = 0 ;
19786 PyObject * obj3 = 0 ;
19787 char * kwnames[] = {
19788 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19789 };
19790
19791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19793 if (!SWIG_IsOK(res1)) {
19794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19795 }
19796 arg1 = reinterpret_cast< wxDC * >(argp1);
19797 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19798 if (!SWIG_IsOK(res2)) {
19799 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19800 }
19801 if (!argp2) {
19802 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19803 }
19804 arg2 = reinterpret_cast< wxIcon * >(argp2);
19805 ecode3 = SWIG_AsVal_int(obj2, &val3);
19806 if (!SWIG_IsOK(ecode3)) {
19807 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19808 }
19809 arg3 = static_cast< int >(val3);
19810 ecode4 = SWIG_AsVal_int(obj3, &val4);
19811 if (!SWIG_IsOK(ecode4)) {
19812 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19813 }
19814 arg4 = static_cast< int >(val4);
19815 {
19816 PyThreadState* __tstate = wxPyBeginAllowThreads();
19817 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19818 wxPyEndAllowThreads(__tstate);
19819 if (PyErr_Occurred()) SWIG_fail;
19820 }
19821 resultobj = SWIG_Py_Void();
19822 return resultobj;
19823 fail:
19824 return NULL;
19825 }
19826
19827
19828 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19829 PyObject *resultobj = 0;
19830 wxDC *arg1 = (wxDC *) 0 ;
19831 wxIcon *arg2 = 0 ;
19832 wxPoint *arg3 = 0 ;
19833 void *argp1 = 0 ;
19834 int res1 = 0 ;
19835 void *argp2 = 0 ;
19836 int res2 = 0 ;
19837 wxPoint temp3 ;
19838 PyObject * obj0 = 0 ;
19839 PyObject * obj1 = 0 ;
19840 PyObject * obj2 = 0 ;
19841 char * kwnames[] = {
19842 (char *) "self",(char *) "icon",(char *) "pt", NULL
19843 };
19844
19845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19847 if (!SWIG_IsOK(res1)) {
19848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19849 }
19850 arg1 = reinterpret_cast< wxDC * >(argp1);
19851 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19852 if (!SWIG_IsOK(res2)) {
19853 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19854 }
19855 if (!argp2) {
19856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19857 }
19858 arg2 = reinterpret_cast< wxIcon * >(argp2);
19859 {
19860 arg3 = &temp3;
19861 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19862 }
19863 {
19864 PyThreadState* __tstate = wxPyBeginAllowThreads();
19865 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19866 wxPyEndAllowThreads(__tstate);
19867 if (PyErr_Occurred()) SWIG_fail;
19868 }
19869 resultobj = SWIG_Py_Void();
19870 return resultobj;
19871 fail:
19872 return NULL;
19873 }
19874
19875
19876 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19877 PyObject *resultobj = 0;
19878 wxDC *arg1 = (wxDC *) 0 ;
19879 wxBitmap *arg2 = 0 ;
19880 int arg3 ;
19881 int arg4 ;
19882 bool arg5 = (bool) false ;
19883 void *argp1 = 0 ;
19884 int res1 = 0 ;
19885 void *argp2 = 0 ;
19886 int res2 = 0 ;
19887 int val3 ;
19888 int ecode3 = 0 ;
19889 int val4 ;
19890 int ecode4 = 0 ;
19891 bool val5 ;
19892 int ecode5 = 0 ;
19893 PyObject * obj0 = 0 ;
19894 PyObject * obj1 = 0 ;
19895 PyObject * obj2 = 0 ;
19896 PyObject * obj3 = 0 ;
19897 PyObject * obj4 = 0 ;
19898 char * kwnames[] = {
19899 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19900 };
19901
19902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19904 if (!SWIG_IsOK(res1)) {
19905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19906 }
19907 arg1 = reinterpret_cast< wxDC * >(argp1);
19908 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19909 if (!SWIG_IsOK(res2)) {
19910 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19911 }
19912 if (!argp2) {
19913 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19914 }
19915 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19916 ecode3 = SWIG_AsVal_int(obj2, &val3);
19917 if (!SWIG_IsOK(ecode3)) {
19918 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19919 }
19920 arg3 = static_cast< int >(val3);
19921 ecode4 = SWIG_AsVal_int(obj3, &val4);
19922 if (!SWIG_IsOK(ecode4)) {
19923 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19924 }
19925 arg4 = static_cast< int >(val4);
19926 if (obj4) {
19927 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19928 if (!SWIG_IsOK(ecode5)) {
19929 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19930 }
19931 arg5 = static_cast< bool >(val5);
19932 }
19933 {
19934 PyThreadState* __tstate = wxPyBeginAllowThreads();
19935 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19936 wxPyEndAllowThreads(__tstate);
19937 if (PyErr_Occurred()) SWIG_fail;
19938 }
19939 resultobj = SWIG_Py_Void();
19940 return resultobj;
19941 fail:
19942 return NULL;
19943 }
19944
19945
19946 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19947 PyObject *resultobj = 0;
19948 wxDC *arg1 = (wxDC *) 0 ;
19949 wxBitmap *arg2 = 0 ;
19950 wxPoint *arg3 = 0 ;
19951 bool arg4 = (bool) false ;
19952 void *argp1 = 0 ;
19953 int res1 = 0 ;
19954 void *argp2 = 0 ;
19955 int res2 = 0 ;
19956 wxPoint temp3 ;
19957 bool val4 ;
19958 int ecode4 = 0 ;
19959 PyObject * obj0 = 0 ;
19960 PyObject * obj1 = 0 ;
19961 PyObject * obj2 = 0 ;
19962 PyObject * obj3 = 0 ;
19963 char * kwnames[] = {
19964 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19965 };
19966
19967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19969 if (!SWIG_IsOK(res1)) {
19970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19971 }
19972 arg1 = reinterpret_cast< wxDC * >(argp1);
19973 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19974 if (!SWIG_IsOK(res2)) {
19975 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19976 }
19977 if (!argp2) {
19978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19979 }
19980 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19981 {
19982 arg3 = &temp3;
19983 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19984 }
19985 if (obj3) {
19986 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19987 if (!SWIG_IsOK(ecode4)) {
19988 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19989 }
19990 arg4 = static_cast< bool >(val4);
19991 }
19992 {
19993 PyThreadState* __tstate = wxPyBeginAllowThreads();
19994 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19995 wxPyEndAllowThreads(__tstate);
19996 if (PyErr_Occurred()) SWIG_fail;
19997 }
19998 resultobj = SWIG_Py_Void();
19999 return resultobj;
20000 fail:
20001 return NULL;
20002 }
20003
20004
20005 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20006 PyObject *resultobj = 0;
20007 wxDC *arg1 = (wxDC *) 0 ;
20008 wxString *arg2 = 0 ;
20009 int arg3 ;
20010 int arg4 ;
20011 void *argp1 = 0 ;
20012 int res1 = 0 ;
20013 bool temp2 = false ;
20014 int val3 ;
20015 int ecode3 = 0 ;
20016 int val4 ;
20017 int ecode4 = 0 ;
20018 PyObject * obj0 = 0 ;
20019 PyObject * obj1 = 0 ;
20020 PyObject * obj2 = 0 ;
20021 PyObject * obj3 = 0 ;
20022 char * kwnames[] = {
20023 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
20024 };
20025
20026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20028 if (!SWIG_IsOK(res1)) {
20029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
20030 }
20031 arg1 = reinterpret_cast< wxDC * >(argp1);
20032 {
20033 arg2 = wxString_in_helper(obj1);
20034 if (arg2 == NULL) SWIG_fail;
20035 temp2 = true;
20036 }
20037 ecode3 = SWIG_AsVal_int(obj2, &val3);
20038 if (!SWIG_IsOK(ecode3)) {
20039 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
20040 }
20041 arg3 = static_cast< int >(val3);
20042 ecode4 = SWIG_AsVal_int(obj3, &val4);
20043 if (!SWIG_IsOK(ecode4)) {
20044 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
20045 }
20046 arg4 = static_cast< int >(val4);
20047 {
20048 PyThreadState* __tstate = wxPyBeginAllowThreads();
20049 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
20050 wxPyEndAllowThreads(__tstate);
20051 if (PyErr_Occurred()) SWIG_fail;
20052 }
20053 resultobj = SWIG_Py_Void();
20054 {
20055 if (temp2)
20056 delete arg2;
20057 }
20058 return resultobj;
20059 fail:
20060 {
20061 if (temp2)
20062 delete arg2;
20063 }
20064 return NULL;
20065 }
20066
20067
20068 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20069 PyObject *resultobj = 0;
20070 wxDC *arg1 = (wxDC *) 0 ;
20071 wxString *arg2 = 0 ;
20072 wxPoint *arg3 = 0 ;
20073 void *argp1 = 0 ;
20074 int res1 = 0 ;
20075 bool temp2 = false ;
20076 wxPoint temp3 ;
20077 PyObject * obj0 = 0 ;
20078 PyObject * obj1 = 0 ;
20079 PyObject * obj2 = 0 ;
20080 char * kwnames[] = {
20081 (char *) "self",(char *) "text",(char *) "pt", NULL
20082 };
20083
20084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20086 if (!SWIG_IsOK(res1)) {
20087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20088 }
20089 arg1 = reinterpret_cast< wxDC * >(argp1);
20090 {
20091 arg2 = wxString_in_helper(obj1);
20092 if (arg2 == NULL) SWIG_fail;
20093 temp2 = true;
20094 }
20095 {
20096 arg3 = &temp3;
20097 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20098 }
20099 {
20100 PyThreadState* __tstate = wxPyBeginAllowThreads();
20101 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
20102 wxPyEndAllowThreads(__tstate);
20103 if (PyErr_Occurred()) SWIG_fail;
20104 }
20105 resultobj = SWIG_Py_Void();
20106 {
20107 if (temp2)
20108 delete arg2;
20109 }
20110 return resultobj;
20111 fail:
20112 {
20113 if (temp2)
20114 delete arg2;
20115 }
20116 return NULL;
20117 }
20118
20119
20120 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20121 PyObject *resultobj = 0;
20122 wxDC *arg1 = (wxDC *) 0 ;
20123 wxString *arg2 = 0 ;
20124 int arg3 ;
20125 int arg4 ;
20126 double arg5 ;
20127 void *argp1 = 0 ;
20128 int res1 = 0 ;
20129 bool temp2 = false ;
20130 int val3 ;
20131 int ecode3 = 0 ;
20132 int val4 ;
20133 int ecode4 = 0 ;
20134 double val5 ;
20135 int ecode5 = 0 ;
20136 PyObject * obj0 = 0 ;
20137 PyObject * obj1 = 0 ;
20138 PyObject * obj2 = 0 ;
20139 PyObject * obj3 = 0 ;
20140 PyObject * obj4 = 0 ;
20141 char * kwnames[] = {
20142 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
20143 };
20144
20145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20147 if (!SWIG_IsOK(res1)) {
20148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
20149 }
20150 arg1 = reinterpret_cast< wxDC * >(argp1);
20151 {
20152 arg2 = wxString_in_helper(obj1);
20153 if (arg2 == NULL) SWIG_fail;
20154 temp2 = true;
20155 }
20156 ecode3 = SWIG_AsVal_int(obj2, &val3);
20157 if (!SWIG_IsOK(ecode3)) {
20158 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
20159 }
20160 arg3 = static_cast< int >(val3);
20161 ecode4 = SWIG_AsVal_int(obj3, &val4);
20162 if (!SWIG_IsOK(ecode4)) {
20163 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
20164 }
20165 arg4 = static_cast< int >(val4);
20166 ecode5 = SWIG_AsVal_double(obj4, &val5);
20167 if (!SWIG_IsOK(ecode5)) {
20168 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
20169 }
20170 arg5 = static_cast< double >(val5);
20171 {
20172 PyThreadState* __tstate = wxPyBeginAllowThreads();
20173 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
20174 wxPyEndAllowThreads(__tstate);
20175 if (PyErr_Occurred()) SWIG_fail;
20176 }
20177 resultobj = SWIG_Py_Void();
20178 {
20179 if (temp2)
20180 delete arg2;
20181 }
20182 return resultobj;
20183 fail:
20184 {
20185 if (temp2)
20186 delete arg2;
20187 }
20188 return NULL;
20189 }
20190
20191
20192 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20193 PyObject *resultobj = 0;
20194 wxDC *arg1 = (wxDC *) 0 ;
20195 wxString *arg2 = 0 ;
20196 wxPoint *arg3 = 0 ;
20197 double arg4 ;
20198 void *argp1 = 0 ;
20199 int res1 = 0 ;
20200 bool temp2 = false ;
20201 wxPoint temp3 ;
20202 double val4 ;
20203 int ecode4 = 0 ;
20204 PyObject * obj0 = 0 ;
20205 PyObject * obj1 = 0 ;
20206 PyObject * obj2 = 0 ;
20207 PyObject * obj3 = 0 ;
20208 char * kwnames[] = {
20209 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
20210 };
20211
20212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20214 if (!SWIG_IsOK(res1)) {
20215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20216 }
20217 arg1 = reinterpret_cast< wxDC * >(argp1);
20218 {
20219 arg2 = wxString_in_helper(obj1);
20220 if (arg2 == NULL) SWIG_fail;
20221 temp2 = true;
20222 }
20223 {
20224 arg3 = &temp3;
20225 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20226 }
20227 ecode4 = SWIG_AsVal_double(obj3, &val4);
20228 if (!SWIG_IsOK(ecode4)) {
20229 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
20230 }
20231 arg4 = static_cast< double >(val4);
20232 {
20233 PyThreadState* __tstate = wxPyBeginAllowThreads();
20234 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
20235 wxPyEndAllowThreads(__tstate);
20236 if (PyErr_Occurred()) SWIG_fail;
20237 }
20238 resultobj = SWIG_Py_Void();
20239 {
20240 if (temp2)
20241 delete arg2;
20242 }
20243 return resultobj;
20244 fail:
20245 {
20246 if (temp2)
20247 delete arg2;
20248 }
20249 return NULL;
20250 }
20251
20252
20253 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20254 PyObject *resultobj = 0;
20255 wxDC *arg1 = (wxDC *) 0 ;
20256 int arg2 ;
20257 int arg3 ;
20258 int arg4 ;
20259 int arg5 ;
20260 wxDC *arg6 = (wxDC *) 0 ;
20261 int arg7 ;
20262 int arg8 ;
20263 int arg9 = (int) wxCOPY ;
20264 bool arg10 = (bool) false ;
20265 int arg11 = (int) -1 ;
20266 int arg12 = (int) -1 ;
20267 bool result;
20268 void *argp1 = 0 ;
20269 int res1 = 0 ;
20270 int val2 ;
20271 int ecode2 = 0 ;
20272 int val3 ;
20273 int ecode3 = 0 ;
20274 int val4 ;
20275 int ecode4 = 0 ;
20276 int val5 ;
20277 int ecode5 = 0 ;
20278 void *argp6 = 0 ;
20279 int res6 = 0 ;
20280 int val7 ;
20281 int ecode7 = 0 ;
20282 int val8 ;
20283 int ecode8 = 0 ;
20284 int val9 ;
20285 int ecode9 = 0 ;
20286 bool val10 ;
20287 int ecode10 = 0 ;
20288 int val11 ;
20289 int ecode11 = 0 ;
20290 int val12 ;
20291 int ecode12 = 0 ;
20292 PyObject * obj0 = 0 ;
20293 PyObject * obj1 = 0 ;
20294 PyObject * obj2 = 0 ;
20295 PyObject * obj3 = 0 ;
20296 PyObject * obj4 = 0 ;
20297 PyObject * obj5 = 0 ;
20298 PyObject * obj6 = 0 ;
20299 PyObject * obj7 = 0 ;
20300 PyObject * obj8 = 0 ;
20301 PyObject * obj9 = 0 ;
20302 PyObject * obj10 = 0 ;
20303 PyObject * obj11 = 0 ;
20304 char * kwnames[] = {
20305 (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
20306 };
20307
20308 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;
20309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20310 if (!SWIG_IsOK(res1)) {
20311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
20312 }
20313 arg1 = reinterpret_cast< wxDC * >(argp1);
20314 ecode2 = SWIG_AsVal_int(obj1, &val2);
20315 if (!SWIG_IsOK(ecode2)) {
20316 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
20317 }
20318 arg2 = static_cast< int >(val2);
20319 ecode3 = SWIG_AsVal_int(obj2, &val3);
20320 if (!SWIG_IsOK(ecode3)) {
20321 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
20322 }
20323 arg3 = static_cast< int >(val3);
20324 ecode4 = SWIG_AsVal_int(obj3, &val4);
20325 if (!SWIG_IsOK(ecode4)) {
20326 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
20327 }
20328 arg4 = static_cast< int >(val4);
20329 ecode5 = SWIG_AsVal_int(obj4, &val5);
20330 if (!SWIG_IsOK(ecode5)) {
20331 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
20332 }
20333 arg5 = static_cast< int >(val5);
20334 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
20335 if (!SWIG_IsOK(res6)) {
20336 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
20337 }
20338 arg6 = reinterpret_cast< wxDC * >(argp6);
20339 ecode7 = SWIG_AsVal_int(obj6, &val7);
20340 if (!SWIG_IsOK(ecode7)) {
20341 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
20342 }
20343 arg7 = static_cast< int >(val7);
20344 ecode8 = SWIG_AsVal_int(obj7, &val8);
20345 if (!SWIG_IsOK(ecode8)) {
20346 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
20347 }
20348 arg8 = static_cast< int >(val8);
20349 if (obj8) {
20350 ecode9 = SWIG_AsVal_int(obj8, &val9);
20351 if (!SWIG_IsOK(ecode9)) {
20352 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
20353 }
20354 arg9 = static_cast< int >(val9);
20355 }
20356 if (obj9) {
20357 ecode10 = SWIG_AsVal_bool(obj9, &val10);
20358 if (!SWIG_IsOK(ecode10)) {
20359 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
20360 }
20361 arg10 = static_cast< bool >(val10);
20362 }
20363 if (obj10) {
20364 ecode11 = SWIG_AsVal_int(obj10, &val11);
20365 if (!SWIG_IsOK(ecode11)) {
20366 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
20367 }
20368 arg11 = static_cast< int >(val11);
20369 }
20370 if (obj11) {
20371 ecode12 = SWIG_AsVal_int(obj11, &val12);
20372 if (!SWIG_IsOK(ecode12)) {
20373 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
20374 }
20375 arg12 = static_cast< int >(val12);
20376 }
20377 {
20378 PyThreadState* __tstate = wxPyBeginAllowThreads();
20379 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
20380 wxPyEndAllowThreads(__tstate);
20381 if (PyErr_Occurred()) SWIG_fail;
20382 }
20383 {
20384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20385 }
20386 return resultobj;
20387 fail:
20388 return NULL;
20389 }
20390
20391
20392 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20393 PyObject *resultobj = 0;
20394 wxDC *arg1 = (wxDC *) 0 ;
20395 wxPoint *arg2 = 0 ;
20396 wxSize *arg3 = 0 ;
20397 wxDC *arg4 = (wxDC *) 0 ;
20398 wxPoint *arg5 = 0 ;
20399 int arg6 = (int) wxCOPY ;
20400 bool arg7 = (bool) false ;
20401 wxPoint const &arg8_defvalue = wxDefaultPosition ;
20402 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
20403 bool result;
20404 void *argp1 = 0 ;
20405 int res1 = 0 ;
20406 wxPoint temp2 ;
20407 wxSize temp3 ;
20408 void *argp4 = 0 ;
20409 int res4 = 0 ;
20410 wxPoint temp5 ;
20411 int val6 ;
20412 int ecode6 = 0 ;
20413 bool val7 ;
20414 int ecode7 = 0 ;
20415 wxPoint temp8 ;
20416 PyObject * obj0 = 0 ;
20417 PyObject * obj1 = 0 ;
20418 PyObject * obj2 = 0 ;
20419 PyObject * obj3 = 0 ;
20420 PyObject * obj4 = 0 ;
20421 PyObject * obj5 = 0 ;
20422 PyObject * obj6 = 0 ;
20423 PyObject * obj7 = 0 ;
20424 char * kwnames[] = {
20425 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
20426 };
20427
20428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
20429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20430 if (!SWIG_IsOK(res1)) {
20431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20432 }
20433 arg1 = reinterpret_cast< wxDC * >(argp1);
20434 {
20435 arg2 = &temp2;
20436 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20437 }
20438 {
20439 arg3 = &temp3;
20440 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20441 }
20442 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20443 if (!SWIG_IsOK(res4)) {
20444 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20445 }
20446 arg4 = reinterpret_cast< wxDC * >(argp4);
20447 {
20448 arg5 = &temp5;
20449 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20450 }
20451 if (obj5) {
20452 ecode6 = SWIG_AsVal_int(obj5, &val6);
20453 if (!SWIG_IsOK(ecode6)) {
20454 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
20455 }
20456 arg6 = static_cast< int >(val6);
20457 }
20458 if (obj6) {
20459 ecode7 = SWIG_AsVal_bool(obj6, &val7);
20460 if (!SWIG_IsOK(ecode7)) {
20461 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
20462 }
20463 arg7 = static_cast< bool >(val7);
20464 }
20465 if (obj7) {
20466 {
20467 arg8 = &temp8;
20468 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
20469 }
20470 }
20471 {
20472 PyThreadState* __tstate = wxPyBeginAllowThreads();
20473 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
20474 wxPyEndAllowThreads(__tstate);
20475 if (PyErr_Occurred()) SWIG_fail;
20476 }
20477 {
20478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20479 }
20480 return resultobj;
20481 fail:
20482 return NULL;
20483 }
20484
20485
20486 SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20487 PyObject *resultobj = 0;
20488 wxDC *arg1 = (wxDC *) 0 ;
20489 wxRect *arg2 = (wxRect *) NULL ;
20490 SwigValueWrapper<wxBitmap > result;
20491 void *argp1 = 0 ;
20492 int res1 = 0 ;
20493 void *argp2 = 0 ;
20494 int res2 = 0 ;
20495 PyObject * obj0 = 0 ;
20496 PyObject * obj1 = 0 ;
20497 char * kwnames[] = {
20498 (char *) "self",(char *) "subrect", NULL
20499 };
20500
20501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
20502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20503 if (!SWIG_IsOK(res1)) {
20504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
20505 }
20506 arg1 = reinterpret_cast< wxDC * >(argp1);
20507 if (obj1) {
20508 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
20509 if (!SWIG_IsOK(res2)) {
20510 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
20511 }
20512 arg2 = reinterpret_cast< wxRect * >(argp2);
20513 }
20514 {
20515 PyThreadState* __tstate = wxPyBeginAllowThreads();
20516 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
20517 wxPyEndAllowThreads(__tstate);
20518 if (PyErr_Occurred()) SWIG_fail;
20519 }
20520 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
20521 return resultobj;
20522 fail:
20523 return NULL;
20524 }
20525
20526
20527 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20528 PyObject *resultobj = 0;
20529 wxDC *arg1 = (wxDC *) 0 ;
20530 int arg2 ;
20531 int arg3 ;
20532 int arg4 ;
20533 int arg5 ;
20534 void *argp1 = 0 ;
20535 int res1 = 0 ;
20536 int val2 ;
20537 int ecode2 = 0 ;
20538 int val3 ;
20539 int ecode3 = 0 ;
20540 int val4 ;
20541 int ecode4 = 0 ;
20542 int val5 ;
20543 int ecode5 = 0 ;
20544 PyObject * obj0 = 0 ;
20545 PyObject * obj1 = 0 ;
20546 PyObject * obj2 = 0 ;
20547 PyObject * obj3 = 0 ;
20548 PyObject * obj4 = 0 ;
20549 char * kwnames[] = {
20550 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
20551 };
20552
20553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20555 if (!SWIG_IsOK(res1)) {
20556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20557 }
20558 arg1 = reinterpret_cast< wxDC * >(argp1);
20559 ecode2 = SWIG_AsVal_int(obj1, &val2);
20560 if (!SWIG_IsOK(ecode2)) {
20561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
20562 }
20563 arg2 = static_cast< int >(val2);
20564 ecode3 = SWIG_AsVal_int(obj2, &val3);
20565 if (!SWIG_IsOK(ecode3)) {
20566 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
20567 }
20568 arg3 = static_cast< int >(val3);
20569 ecode4 = SWIG_AsVal_int(obj3, &val4);
20570 if (!SWIG_IsOK(ecode4)) {
20571 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
20572 }
20573 arg4 = static_cast< int >(val4);
20574 ecode5 = SWIG_AsVal_int(obj4, &val5);
20575 if (!SWIG_IsOK(ecode5)) {
20576 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
20577 }
20578 arg5 = static_cast< int >(val5);
20579 {
20580 PyThreadState* __tstate = wxPyBeginAllowThreads();
20581 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
20582 wxPyEndAllowThreads(__tstate);
20583 if (PyErr_Occurred()) SWIG_fail;
20584 }
20585 resultobj = SWIG_Py_Void();
20586 return resultobj;
20587 fail:
20588 return NULL;
20589 }
20590
20591
20592 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20593 PyObject *resultobj = 0;
20594 wxDC *arg1 = (wxDC *) 0 ;
20595 wxPoint *arg2 = 0 ;
20596 wxSize *arg3 = 0 ;
20597 void *argp1 = 0 ;
20598 int res1 = 0 ;
20599 wxPoint temp2 ;
20600 wxSize temp3 ;
20601 PyObject * obj0 = 0 ;
20602 PyObject * obj1 = 0 ;
20603 PyObject * obj2 = 0 ;
20604 char * kwnames[] = {
20605 (char *) "self",(char *) "pt",(char *) "sz", NULL
20606 };
20607
20608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20610 if (!SWIG_IsOK(res1)) {
20611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20612 }
20613 arg1 = reinterpret_cast< wxDC * >(argp1);
20614 {
20615 arg2 = &temp2;
20616 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20617 }
20618 {
20619 arg3 = &temp3;
20620 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20621 }
20622 {
20623 PyThreadState* __tstate = wxPyBeginAllowThreads();
20624 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20625 wxPyEndAllowThreads(__tstate);
20626 if (PyErr_Occurred()) SWIG_fail;
20627 }
20628 resultobj = SWIG_Py_Void();
20629 return resultobj;
20630 fail:
20631 return NULL;
20632 }
20633
20634
20635 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20636 PyObject *resultobj = 0;
20637 wxDC *arg1 = (wxDC *) 0 ;
20638 wxRegion *arg2 = 0 ;
20639 void *argp1 = 0 ;
20640 int res1 = 0 ;
20641 void *argp2 = 0 ;
20642 int res2 = 0 ;
20643 PyObject * obj0 = 0 ;
20644 PyObject * obj1 = 0 ;
20645 char * kwnames[] = {
20646 (char *) "self",(char *) "region", NULL
20647 };
20648
20649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20651 if (!SWIG_IsOK(res1)) {
20652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20653 }
20654 arg1 = reinterpret_cast< wxDC * >(argp1);
20655 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20656 if (!SWIG_IsOK(res2)) {
20657 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20658 }
20659 if (!argp2) {
20660 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20661 }
20662 arg2 = reinterpret_cast< wxRegion * >(argp2);
20663 {
20664 PyThreadState* __tstate = wxPyBeginAllowThreads();
20665 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20666 wxPyEndAllowThreads(__tstate);
20667 if (PyErr_Occurred()) SWIG_fail;
20668 }
20669 resultobj = SWIG_Py_Void();
20670 return resultobj;
20671 fail:
20672 return NULL;
20673 }
20674
20675
20676 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20677 PyObject *resultobj = 0;
20678 wxDC *arg1 = (wxDC *) 0 ;
20679 wxRect *arg2 = 0 ;
20680 void *argp1 = 0 ;
20681 int res1 = 0 ;
20682 wxRect temp2 ;
20683 PyObject * obj0 = 0 ;
20684 PyObject * obj1 = 0 ;
20685 char * kwnames[] = {
20686 (char *) "self",(char *) "rect", NULL
20687 };
20688
20689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20691 if (!SWIG_IsOK(res1)) {
20692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20693 }
20694 arg1 = reinterpret_cast< wxDC * >(argp1);
20695 {
20696 arg2 = &temp2;
20697 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20698 }
20699 {
20700 PyThreadState* __tstate = wxPyBeginAllowThreads();
20701 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20702 wxPyEndAllowThreads(__tstate);
20703 if (PyErr_Occurred()) SWIG_fail;
20704 }
20705 resultobj = SWIG_Py_Void();
20706 return resultobj;
20707 fail:
20708 return NULL;
20709 }
20710
20711
20712 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20713 PyObject *resultobj = 0;
20714 wxDC *arg1 = (wxDC *) 0 ;
20715 int arg2 ;
20716 wxPoint *arg3 = (wxPoint *) 0 ;
20717 int arg4 = (int) 0 ;
20718 int arg5 = (int) 0 ;
20719 void *argp1 = 0 ;
20720 int res1 = 0 ;
20721 int val4 ;
20722 int ecode4 = 0 ;
20723 int val5 ;
20724 int ecode5 = 0 ;
20725 PyObject * obj0 = 0 ;
20726 PyObject * obj1 = 0 ;
20727 PyObject * obj2 = 0 ;
20728 PyObject * obj3 = 0 ;
20729 char * kwnames[] = {
20730 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20731 };
20732
20733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20735 if (!SWIG_IsOK(res1)) {
20736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20737 }
20738 arg1 = reinterpret_cast< wxDC * >(argp1);
20739 {
20740 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20741 if (arg3 == NULL) SWIG_fail;
20742 }
20743 if (obj2) {
20744 ecode4 = SWIG_AsVal_int(obj2, &val4);
20745 if (!SWIG_IsOK(ecode4)) {
20746 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20747 }
20748 arg4 = static_cast< int >(val4);
20749 }
20750 if (obj3) {
20751 ecode5 = SWIG_AsVal_int(obj3, &val5);
20752 if (!SWIG_IsOK(ecode5)) {
20753 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20754 }
20755 arg5 = static_cast< int >(val5);
20756 }
20757 {
20758 PyThreadState* __tstate = wxPyBeginAllowThreads();
20759 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20760 wxPyEndAllowThreads(__tstate);
20761 if (PyErr_Occurred()) SWIG_fail;
20762 }
20763 resultobj = SWIG_Py_Void();
20764 {
20765 if (arg3) delete [] arg3;
20766 }
20767 return resultobj;
20768 fail:
20769 {
20770 if (arg3) delete [] arg3;
20771 }
20772 return NULL;
20773 }
20774
20775
20776 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20777 PyObject *resultobj = 0;
20778 wxDC *arg1 = (wxDC *) 0 ;
20779 int arg2 ;
20780 wxPoint *arg3 = (wxPoint *) 0 ;
20781 int arg4 = (int) 0 ;
20782 int arg5 = (int) 0 ;
20783 int arg6 = (int) wxODDEVEN_RULE ;
20784 void *argp1 = 0 ;
20785 int res1 = 0 ;
20786 int val4 ;
20787 int ecode4 = 0 ;
20788 int val5 ;
20789 int ecode5 = 0 ;
20790 int val6 ;
20791 int ecode6 = 0 ;
20792 PyObject * obj0 = 0 ;
20793 PyObject * obj1 = 0 ;
20794 PyObject * obj2 = 0 ;
20795 PyObject * obj3 = 0 ;
20796 PyObject * obj4 = 0 ;
20797 char * kwnames[] = {
20798 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20799 };
20800
20801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20803 if (!SWIG_IsOK(res1)) {
20804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20805 }
20806 arg1 = reinterpret_cast< wxDC * >(argp1);
20807 {
20808 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20809 if (arg3 == NULL) SWIG_fail;
20810 }
20811 if (obj2) {
20812 ecode4 = SWIG_AsVal_int(obj2, &val4);
20813 if (!SWIG_IsOK(ecode4)) {
20814 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20815 }
20816 arg4 = static_cast< int >(val4);
20817 }
20818 if (obj3) {
20819 ecode5 = SWIG_AsVal_int(obj3, &val5);
20820 if (!SWIG_IsOK(ecode5)) {
20821 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20822 }
20823 arg5 = static_cast< int >(val5);
20824 }
20825 if (obj4) {
20826 ecode6 = SWIG_AsVal_int(obj4, &val6);
20827 if (!SWIG_IsOK(ecode6)) {
20828 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20829 }
20830 arg6 = static_cast< int >(val6);
20831 }
20832 {
20833 PyThreadState* __tstate = wxPyBeginAllowThreads();
20834 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20835 wxPyEndAllowThreads(__tstate);
20836 if (PyErr_Occurred()) SWIG_fail;
20837 }
20838 resultobj = SWIG_Py_Void();
20839 {
20840 if (arg3) delete [] arg3;
20841 }
20842 return resultobj;
20843 fail:
20844 {
20845 if (arg3) delete [] arg3;
20846 }
20847 return NULL;
20848 }
20849
20850
20851 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20852 PyObject *resultobj = 0;
20853 wxDC *arg1 = (wxDC *) 0 ;
20854 wxString *arg2 = 0 ;
20855 wxRect *arg3 = 0 ;
20856 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20857 int arg5 = (int) -1 ;
20858 void *argp1 = 0 ;
20859 int res1 = 0 ;
20860 bool temp2 = false ;
20861 wxRect temp3 ;
20862 int val4 ;
20863 int ecode4 = 0 ;
20864 int val5 ;
20865 int ecode5 = 0 ;
20866 PyObject * obj0 = 0 ;
20867 PyObject * obj1 = 0 ;
20868 PyObject * obj2 = 0 ;
20869 PyObject * obj3 = 0 ;
20870 PyObject * obj4 = 0 ;
20871 char * kwnames[] = {
20872 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20873 };
20874
20875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20877 if (!SWIG_IsOK(res1)) {
20878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20879 }
20880 arg1 = reinterpret_cast< wxDC * >(argp1);
20881 {
20882 arg2 = wxString_in_helper(obj1);
20883 if (arg2 == NULL) SWIG_fail;
20884 temp2 = true;
20885 }
20886 {
20887 arg3 = &temp3;
20888 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20889 }
20890 if (obj3) {
20891 ecode4 = SWIG_AsVal_int(obj3, &val4);
20892 if (!SWIG_IsOK(ecode4)) {
20893 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20894 }
20895 arg4 = static_cast< int >(val4);
20896 }
20897 if (obj4) {
20898 ecode5 = SWIG_AsVal_int(obj4, &val5);
20899 if (!SWIG_IsOK(ecode5)) {
20900 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20901 }
20902 arg5 = static_cast< int >(val5);
20903 }
20904 {
20905 PyThreadState* __tstate = wxPyBeginAllowThreads();
20906 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20907 wxPyEndAllowThreads(__tstate);
20908 if (PyErr_Occurred()) SWIG_fail;
20909 }
20910 resultobj = SWIG_Py_Void();
20911 {
20912 if (temp2)
20913 delete arg2;
20914 }
20915 return resultobj;
20916 fail:
20917 {
20918 if (temp2)
20919 delete arg2;
20920 }
20921 return NULL;
20922 }
20923
20924
20925 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20926 PyObject *resultobj = 0;
20927 wxDC *arg1 = (wxDC *) 0 ;
20928 wxString *arg2 = 0 ;
20929 wxBitmap *arg3 = 0 ;
20930 wxRect *arg4 = 0 ;
20931 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20932 int arg6 = (int) -1 ;
20933 wxRect result;
20934 void *argp1 = 0 ;
20935 int res1 = 0 ;
20936 bool temp2 = false ;
20937 void *argp3 = 0 ;
20938 int res3 = 0 ;
20939 wxRect temp4 ;
20940 int val5 ;
20941 int ecode5 = 0 ;
20942 int val6 ;
20943 int ecode6 = 0 ;
20944 PyObject * obj0 = 0 ;
20945 PyObject * obj1 = 0 ;
20946 PyObject * obj2 = 0 ;
20947 PyObject * obj3 = 0 ;
20948 PyObject * obj4 = 0 ;
20949 PyObject * obj5 = 0 ;
20950 char * kwnames[] = {
20951 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20952 };
20953
20954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20956 if (!SWIG_IsOK(res1)) {
20957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20958 }
20959 arg1 = reinterpret_cast< wxDC * >(argp1);
20960 {
20961 arg2 = wxString_in_helper(obj1);
20962 if (arg2 == NULL) SWIG_fail;
20963 temp2 = true;
20964 }
20965 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20966 if (!SWIG_IsOK(res3)) {
20967 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20968 }
20969 if (!argp3) {
20970 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20971 }
20972 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20973 {
20974 arg4 = &temp4;
20975 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20976 }
20977 if (obj4) {
20978 ecode5 = SWIG_AsVal_int(obj4, &val5);
20979 if (!SWIG_IsOK(ecode5)) {
20980 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20981 }
20982 arg5 = static_cast< int >(val5);
20983 }
20984 if (obj5) {
20985 ecode6 = SWIG_AsVal_int(obj5, &val6);
20986 if (!SWIG_IsOK(ecode6)) {
20987 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20988 }
20989 arg6 = static_cast< int >(val6);
20990 }
20991 {
20992 PyThreadState* __tstate = wxPyBeginAllowThreads();
20993 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20994 wxPyEndAllowThreads(__tstate);
20995 if (PyErr_Occurred()) SWIG_fail;
20996 }
20997 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20998 {
20999 if (temp2)
21000 delete arg2;
21001 }
21002 return resultobj;
21003 fail:
21004 {
21005 if (temp2)
21006 delete arg2;
21007 }
21008 return NULL;
21009 }
21010
21011
21012 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21013 PyObject *resultobj = 0;
21014 wxDC *arg1 = (wxDC *) 0 ;
21015 int arg2 ;
21016 wxPoint *arg3 = (wxPoint *) 0 ;
21017 void *argp1 = 0 ;
21018 int res1 = 0 ;
21019 PyObject * obj0 = 0 ;
21020 PyObject * obj1 = 0 ;
21021 char * kwnames[] = {
21022 (char *) "self",(char *) "points", NULL
21023 };
21024
21025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
21026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21027 if (!SWIG_IsOK(res1)) {
21028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
21029 }
21030 arg1 = reinterpret_cast< wxDC * >(argp1);
21031 {
21032 arg3 = wxPoint_LIST_helper(obj1, &arg2);
21033 if (arg3 == NULL) SWIG_fail;
21034 }
21035 {
21036 PyThreadState* __tstate = wxPyBeginAllowThreads();
21037 (arg1)->DrawSpline(arg2,arg3);
21038 wxPyEndAllowThreads(__tstate);
21039 if (PyErr_Occurred()) SWIG_fail;
21040 }
21041 resultobj = SWIG_Py_Void();
21042 {
21043 if (arg3) delete [] arg3;
21044 }
21045 return resultobj;
21046 fail:
21047 {
21048 if (arg3) delete [] arg3;
21049 }
21050 return NULL;
21051 }
21052
21053
21054 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21055 PyObject *resultobj = 0;
21056 wxDC *arg1 = (wxDC *) 0 ;
21057 void *argp1 = 0 ;
21058 int res1 = 0 ;
21059 PyObject *swig_obj[1] ;
21060
21061 if (!args) SWIG_fail;
21062 swig_obj[0] = args;
21063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21064 if (!SWIG_IsOK(res1)) {
21065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
21066 }
21067 arg1 = reinterpret_cast< wxDC * >(argp1);
21068 {
21069 PyThreadState* __tstate = wxPyBeginAllowThreads();
21070 (arg1)->Clear();
21071 wxPyEndAllowThreads(__tstate);
21072 if (PyErr_Occurred()) SWIG_fail;
21073 }
21074 resultobj = SWIG_Py_Void();
21075 return resultobj;
21076 fail:
21077 return NULL;
21078 }
21079
21080
21081 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21082 PyObject *resultobj = 0;
21083 wxDC *arg1 = (wxDC *) 0 ;
21084 wxString *arg2 = 0 ;
21085 bool result;
21086 void *argp1 = 0 ;
21087 int res1 = 0 ;
21088 bool temp2 = false ;
21089 PyObject * obj0 = 0 ;
21090 PyObject * obj1 = 0 ;
21091 char * kwnames[] = {
21092 (char *) "self",(char *) "message", NULL
21093 };
21094
21095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
21096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21097 if (!SWIG_IsOK(res1)) {
21098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
21099 }
21100 arg1 = reinterpret_cast< wxDC * >(argp1);
21101 {
21102 arg2 = wxString_in_helper(obj1);
21103 if (arg2 == NULL) SWIG_fail;
21104 temp2 = true;
21105 }
21106 {
21107 PyThreadState* __tstate = wxPyBeginAllowThreads();
21108 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
21109 wxPyEndAllowThreads(__tstate);
21110 if (PyErr_Occurred()) SWIG_fail;
21111 }
21112 {
21113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21114 }
21115 {
21116 if (temp2)
21117 delete arg2;
21118 }
21119 return resultobj;
21120 fail:
21121 {
21122 if (temp2)
21123 delete arg2;
21124 }
21125 return NULL;
21126 }
21127
21128
21129 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21130 PyObject *resultobj = 0;
21131 wxDC *arg1 = (wxDC *) 0 ;
21132 void *argp1 = 0 ;
21133 int res1 = 0 ;
21134 PyObject *swig_obj[1] ;
21135
21136 if (!args) SWIG_fail;
21137 swig_obj[0] = args;
21138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21139 if (!SWIG_IsOK(res1)) {
21140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
21141 }
21142 arg1 = reinterpret_cast< wxDC * >(argp1);
21143 {
21144 PyThreadState* __tstate = wxPyBeginAllowThreads();
21145 (arg1)->EndDoc();
21146 wxPyEndAllowThreads(__tstate);
21147 if (PyErr_Occurred()) SWIG_fail;
21148 }
21149 resultobj = SWIG_Py_Void();
21150 return resultobj;
21151 fail:
21152 return NULL;
21153 }
21154
21155
21156 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21157 PyObject *resultobj = 0;
21158 wxDC *arg1 = (wxDC *) 0 ;
21159 void *argp1 = 0 ;
21160 int res1 = 0 ;
21161 PyObject *swig_obj[1] ;
21162
21163 if (!args) SWIG_fail;
21164 swig_obj[0] = args;
21165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21166 if (!SWIG_IsOK(res1)) {
21167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
21168 }
21169 arg1 = reinterpret_cast< wxDC * >(argp1);
21170 {
21171 PyThreadState* __tstate = wxPyBeginAllowThreads();
21172 (arg1)->StartPage();
21173 wxPyEndAllowThreads(__tstate);
21174 if (PyErr_Occurred()) SWIG_fail;
21175 }
21176 resultobj = SWIG_Py_Void();
21177 return resultobj;
21178 fail:
21179 return NULL;
21180 }
21181
21182
21183 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21184 PyObject *resultobj = 0;
21185 wxDC *arg1 = (wxDC *) 0 ;
21186 void *argp1 = 0 ;
21187 int res1 = 0 ;
21188 PyObject *swig_obj[1] ;
21189
21190 if (!args) SWIG_fail;
21191 swig_obj[0] = args;
21192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21193 if (!SWIG_IsOK(res1)) {
21194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
21195 }
21196 arg1 = reinterpret_cast< wxDC * >(argp1);
21197 {
21198 PyThreadState* __tstate = wxPyBeginAllowThreads();
21199 (arg1)->EndPage();
21200 wxPyEndAllowThreads(__tstate);
21201 if (PyErr_Occurred()) SWIG_fail;
21202 }
21203 resultobj = SWIG_Py_Void();
21204 return resultobj;
21205 fail:
21206 return NULL;
21207 }
21208
21209
21210 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21211 PyObject *resultobj = 0;
21212 wxDC *arg1 = (wxDC *) 0 ;
21213 wxFont *arg2 = 0 ;
21214 void *argp1 = 0 ;
21215 int res1 = 0 ;
21216 void *argp2 = 0 ;
21217 int res2 = 0 ;
21218 PyObject * obj0 = 0 ;
21219 PyObject * obj1 = 0 ;
21220 char * kwnames[] = {
21221 (char *) "self",(char *) "font", NULL
21222 };
21223
21224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
21225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21226 if (!SWIG_IsOK(res1)) {
21227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
21228 }
21229 arg1 = reinterpret_cast< wxDC * >(argp1);
21230 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
21231 if (!SWIG_IsOK(res2)) {
21232 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21233 }
21234 if (!argp2) {
21235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21236 }
21237 arg2 = reinterpret_cast< wxFont * >(argp2);
21238 {
21239 PyThreadState* __tstate = wxPyBeginAllowThreads();
21240 (arg1)->SetFont((wxFont const &)*arg2);
21241 wxPyEndAllowThreads(__tstate);
21242 if (PyErr_Occurred()) SWIG_fail;
21243 }
21244 resultobj = SWIG_Py_Void();
21245 return resultobj;
21246 fail:
21247 return NULL;
21248 }
21249
21250
21251 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21252 PyObject *resultobj = 0;
21253 wxDC *arg1 = (wxDC *) 0 ;
21254 wxPen *arg2 = 0 ;
21255 void *argp1 = 0 ;
21256 int res1 = 0 ;
21257 void *argp2 = 0 ;
21258 int res2 = 0 ;
21259 PyObject * obj0 = 0 ;
21260 PyObject * obj1 = 0 ;
21261 char * kwnames[] = {
21262 (char *) "self",(char *) "pen", NULL
21263 };
21264
21265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
21266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21267 if (!SWIG_IsOK(res1)) {
21268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
21269 }
21270 arg1 = reinterpret_cast< wxDC * >(argp1);
21271 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
21272 if (!SWIG_IsOK(res2)) {
21273 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21274 }
21275 if (!argp2) {
21276 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21277 }
21278 arg2 = reinterpret_cast< wxPen * >(argp2);
21279 {
21280 PyThreadState* __tstate = wxPyBeginAllowThreads();
21281 (arg1)->SetPen((wxPen const &)*arg2);
21282 wxPyEndAllowThreads(__tstate);
21283 if (PyErr_Occurred()) SWIG_fail;
21284 }
21285 resultobj = SWIG_Py_Void();
21286 return resultobj;
21287 fail:
21288 return NULL;
21289 }
21290
21291
21292 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21293 PyObject *resultobj = 0;
21294 wxDC *arg1 = (wxDC *) 0 ;
21295 wxBrush *arg2 = 0 ;
21296 void *argp1 = 0 ;
21297 int res1 = 0 ;
21298 void *argp2 = 0 ;
21299 int res2 = 0 ;
21300 PyObject * obj0 = 0 ;
21301 PyObject * obj1 = 0 ;
21302 char * kwnames[] = {
21303 (char *) "self",(char *) "brush", NULL
21304 };
21305
21306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
21307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21308 if (!SWIG_IsOK(res1)) {
21309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
21310 }
21311 arg1 = reinterpret_cast< wxDC * >(argp1);
21312 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21313 if (!SWIG_IsOK(res2)) {
21314 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21315 }
21316 if (!argp2) {
21317 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21318 }
21319 arg2 = reinterpret_cast< wxBrush * >(argp2);
21320 {
21321 PyThreadState* __tstate = wxPyBeginAllowThreads();
21322 (arg1)->SetBrush((wxBrush const &)*arg2);
21323 wxPyEndAllowThreads(__tstate);
21324 if (PyErr_Occurred()) SWIG_fail;
21325 }
21326 resultobj = SWIG_Py_Void();
21327 return resultobj;
21328 fail:
21329 return NULL;
21330 }
21331
21332
21333 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21334 PyObject *resultobj = 0;
21335 wxDC *arg1 = (wxDC *) 0 ;
21336 wxBrush *arg2 = 0 ;
21337 void *argp1 = 0 ;
21338 int res1 = 0 ;
21339 void *argp2 = 0 ;
21340 int res2 = 0 ;
21341 PyObject * obj0 = 0 ;
21342 PyObject * obj1 = 0 ;
21343 char * kwnames[] = {
21344 (char *) "self",(char *) "brush", NULL
21345 };
21346
21347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21349 if (!SWIG_IsOK(res1)) {
21350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21351 }
21352 arg1 = reinterpret_cast< wxDC * >(argp1);
21353 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21354 if (!SWIG_IsOK(res2)) {
21355 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21356 }
21357 if (!argp2) {
21358 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21359 }
21360 arg2 = reinterpret_cast< wxBrush * >(argp2);
21361 {
21362 PyThreadState* __tstate = wxPyBeginAllowThreads();
21363 (arg1)->SetBackground((wxBrush const &)*arg2);
21364 wxPyEndAllowThreads(__tstate);
21365 if (PyErr_Occurred()) SWIG_fail;
21366 }
21367 resultobj = SWIG_Py_Void();
21368 return resultobj;
21369 fail:
21370 return NULL;
21371 }
21372
21373
21374 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21375 PyObject *resultobj = 0;
21376 wxDC *arg1 = (wxDC *) 0 ;
21377 int arg2 ;
21378 void *argp1 = 0 ;
21379 int res1 = 0 ;
21380 int val2 ;
21381 int ecode2 = 0 ;
21382 PyObject * obj0 = 0 ;
21383 PyObject * obj1 = 0 ;
21384 char * kwnames[] = {
21385 (char *) "self",(char *) "mode", NULL
21386 };
21387
21388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
21389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21390 if (!SWIG_IsOK(res1)) {
21391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
21392 }
21393 arg1 = reinterpret_cast< wxDC * >(argp1);
21394 ecode2 = SWIG_AsVal_int(obj1, &val2);
21395 if (!SWIG_IsOK(ecode2)) {
21396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
21397 }
21398 arg2 = static_cast< int >(val2);
21399 {
21400 PyThreadState* __tstate = wxPyBeginAllowThreads();
21401 (arg1)->SetBackgroundMode(arg2);
21402 wxPyEndAllowThreads(__tstate);
21403 if (PyErr_Occurred()) SWIG_fail;
21404 }
21405 resultobj = SWIG_Py_Void();
21406 return resultobj;
21407 fail:
21408 return NULL;
21409 }
21410
21411
21412 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21413 PyObject *resultobj = 0;
21414 wxDC *arg1 = (wxDC *) 0 ;
21415 wxPalette *arg2 = 0 ;
21416 void *argp1 = 0 ;
21417 int res1 = 0 ;
21418 void *argp2 = 0 ;
21419 int res2 = 0 ;
21420 PyObject * obj0 = 0 ;
21421 PyObject * obj1 = 0 ;
21422 char * kwnames[] = {
21423 (char *) "self",(char *) "palette", NULL
21424 };
21425
21426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
21427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21428 if (!SWIG_IsOK(res1)) {
21429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
21430 }
21431 arg1 = reinterpret_cast< wxDC * >(argp1);
21432 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
21433 if (!SWIG_IsOK(res2)) {
21434 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21435 }
21436 if (!argp2) {
21437 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21438 }
21439 arg2 = reinterpret_cast< wxPalette * >(argp2);
21440 {
21441 PyThreadState* __tstate = wxPyBeginAllowThreads();
21442 (arg1)->SetPalette((wxPalette const &)*arg2);
21443 wxPyEndAllowThreads(__tstate);
21444 if (PyErr_Occurred()) SWIG_fail;
21445 }
21446 resultobj = SWIG_Py_Void();
21447 return resultobj;
21448 fail:
21449 return NULL;
21450 }
21451
21452
21453 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21454 PyObject *resultobj = 0;
21455 wxDC *arg1 = (wxDC *) 0 ;
21456 void *argp1 = 0 ;
21457 int res1 = 0 ;
21458 PyObject *swig_obj[1] ;
21459
21460 if (!args) SWIG_fail;
21461 swig_obj[0] = args;
21462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21463 if (!SWIG_IsOK(res1)) {
21464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21465 }
21466 arg1 = reinterpret_cast< wxDC * >(argp1);
21467 {
21468 PyThreadState* __tstate = wxPyBeginAllowThreads();
21469 (arg1)->DestroyClippingRegion();
21470 wxPyEndAllowThreads(__tstate);
21471 if (PyErr_Occurred()) SWIG_fail;
21472 }
21473 resultobj = SWIG_Py_Void();
21474 return resultobj;
21475 fail:
21476 return NULL;
21477 }
21478
21479
21480 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21481 PyObject *resultobj = 0;
21482 wxDC *arg1 = (wxDC *) 0 ;
21483 int *arg2 = (int *) 0 ;
21484 int *arg3 = (int *) 0 ;
21485 int *arg4 = (int *) 0 ;
21486 int *arg5 = (int *) 0 ;
21487 void *argp1 = 0 ;
21488 int res1 = 0 ;
21489 int temp2 ;
21490 int res2 = SWIG_TMPOBJ ;
21491 int temp3 ;
21492 int res3 = SWIG_TMPOBJ ;
21493 int temp4 ;
21494 int res4 = SWIG_TMPOBJ ;
21495 int temp5 ;
21496 int res5 = SWIG_TMPOBJ ;
21497 PyObject *swig_obj[1] ;
21498
21499 arg2 = &temp2;
21500 arg3 = &temp3;
21501 arg4 = &temp4;
21502 arg5 = &temp5;
21503 if (!args) SWIG_fail;
21504 swig_obj[0] = args;
21505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21506 if (!SWIG_IsOK(res1)) {
21507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
21508 }
21509 arg1 = reinterpret_cast< wxDC * >(argp1);
21510 {
21511 PyThreadState* __tstate = wxPyBeginAllowThreads();
21512 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
21513 wxPyEndAllowThreads(__tstate);
21514 if (PyErr_Occurred()) SWIG_fail;
21515 }
21516 resultobj = SWIG_Py_Void();
21517 if (SWIG_IsTmpObj(res2)) {
21518 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21519 } else {
21520 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21521 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21522 }
21523 if (SWIG_IsTmpObj(res3)) {
21524 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21525 } else {
21526 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21527 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21528 }
21529 if (SWIG_IsTmpObj(res4)) {
21530 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21531 } else {
21532 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21533 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21534 }
21535 if (SWIG_IsTmpObj(res5)) {
21536 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21537 } else {
21538 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21539 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21540 }
21541 return resultobj;
21542 fail:
21543 return NULL;
21544 }
21545
21546
21547 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21548 PyObject *resultobj = 0;
21549 wxDC *arg1 = (wxDC *) 0 ;
21550 wxRect result;
21551 void *argp1 = 0 ;
21552 int res1 = 0 ;
21553 PyObject *swig_obj[1] ;
21554
21555 if (!args) SWIG_fail;
21556 swig_obj[0] = args;
21557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21558 if (!SWIG_IsOK(res1)) {
21559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21560 }
21561 arg1 = reinterpret_cast< wxDC * >(argp1);
21562 {
21563 PyThreadState* __tstate = wxPyBeginAllowThreads();
21564 result = wxDC_GetClippingRect(arg1);
21565 wxPyEndAllowThreads(__tstate);
21566 if (PyErr_Occurred()) SWIG_fail;
21567 }
21568 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21569 return resultobj;
21570 fail:
21571 return NULL;
21572 }
21573
21574
21575 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21576 PyObject *resultobj = 0;
21577 wxDC *arg1 = (wxDC *) 0 ;
21578 int result;
21579 void *argp1 = 0 ;
21580 int res1 = 0 ;
21581 PyObject *swig_obj[1] ;
21582
21583 if (!args) SWIG_fail;
21584 swig_obj[0] = args;
21585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21586 if (!SWIG_IsOK(res1)) {
21587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
21588 }
21589 arg1 = reinterpret_cast< wxDC * >(argp1);
21590 {
21591 PyThreadState* __tstate = wxPyBeginAllowThreads();
21592 result = (int)((wxDC const *)arg1)->GetCharHeight();
21593 wxPyEndAllowThreads(__tstate);
21594 if (PyErr_Occurred()) SWIG_fail;
21595 }
21596 resultobj = SWIG_From_int(static_cast< int >(result));
21597 return resultobj;
21598 fail:
21599 return NULL;
21600 }
21601
21602
21603 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21604 PyObject *resultobj = 0;
21605 wxDC *arg1 = (wxDC *) 0 ;
21606 int result;
21607 void *argp1 = 0 ;
21608 int res1 = 0 ;
21609 PyObject *swig_obj[1] ;
21610
21611 if (!args) SWIG_fail;
21612 swig_obj[0] = args;
21613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21614 if (!SWIG_IsOK(res1)) {
21615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21616 }
21617 arg1 = reinterpret_cast< wxDC * >(argp1);
21618 {
21619 PyThreadState* __tstate = wxPyBeginAllowThreads();
21620 result = (int)((wxDC const *)arg1)->GetCharWidth();
21621 wxPyEndAllowThreads(__tstate);
21622 if (PyErr_Occurred()) SWIG_fail;
21623 }
21624 resultobj = SWIG_From_int(static_cast< int >(result));
21625 return resultobj;
21626 fail:
21627 return NULL;
21628 }
21629
21630
21631 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21632 PyObject *resultobj = 0;
21633 wxDC *arg1 = (wxDC *) 0 ;
21634 wxString *arg2 = 0 ;
21635 int *arg3 = (int *) 0 ;
21636 int *arg4 = (int *) 0 ;
21637 void *argp1 = 0 ;
21638 int res1 = 0 ;
21639 bool temp2 = false ;
21640 int temp3 ;
21641 int res3 = SWIG_TMPOBJ ;
21642 int temp4 ;
21643 int res4 = SWIG_TMPOBJ ;
21644 PyObject * obj0 = 0 ;
21645 PyObject * obj1 = 0 ;
21646 char * kwnames[] = {
21647 (char *) "self",(char *) "string", NULL
21648 };
21649
21650 arg3 = &temp3;
21651 arg4 = &temp4;
21652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21654 if (!SWIG_IsOK(res1)) {
21655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21656 }
21657 arg1 = reinterpret_cast< wxDC * >(argp1);
21658 {
21659 arg2 = wxString_in_helper(obj1);
21660 if (arg2 == NULL) SWIG_fail;
21661 temp2 = true;
21662 }
21663 {
21664 PyThreadState* __tstate = wxPyBeginAllowThreads();
21665 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21666 wxPyEndAllowThreads(__tstate);
21667 if (PyErr_Occurred()) SWIG_fail;
21668 }
21669 resultobj = SWIG_Py_Void();
21670 if (SWIG_IsTmpObj(res3)) {
21671 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21672 } else {
21673 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21674 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21675 }
21676 if (SWIG_IsTmpObj(res4)) {
21677 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21678 } else {
21679 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21680 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21681 }
21682 {
21683 if (temp2)
21684 delete arg2;
21685 }
21686 return resultobj;
21687 fail:
21688 {
21689 if (temp2)
21690 delete arg2;
21691 }
21692 return NULL;
21693 }
21694
21695
21696 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21697 PyObject *resultobj = 0;
21698 wxDC *arg1 = (wxDC *) 0 ;
21699 wxString *arg2 = 0 ;
21700 int *arg3 = (int *) 0 ;
21701 int *arg4 = (int *) 0 ;
21702 int *arg5 = (int *) 0 ;
21703 int *arg6 = (int *) 0 ;
21704 wxFont *arg7 = (wxFont *) NULL ;
21705 void *argp1 = 0 ;
21706 int res1 = 0 ;
21707 bool temp2 = false ;
21708 int temp3 ;
21709 int res3 = SWIG_TMPOBJ ;
21710 int temp4 ;
21711 int res4 = SWIG_TMPOBJ ;
21712 int temp5 ;
21713 int res5 = SWIG_TMPOBJ ;
21714 int temp6 ;
21715 int res6 = SWIG_TMPOBJ ;
21716 void *argp7 = 0 ;
21717 int res7 = 0 ;
21718 PyObject * obj0 = 0 ;
21719 PyObject * obj1 = 0 ;
21720 PyObject * obj2 = 0 ;
21721 char * kwnames[] = {
21722 (char *) "self",(char *) "string",(char *) "font", NULL
21723 };
21724
21725 arg3 = &temp3;
21726 arg4 = &temp4;
21727 arg5 = &temp5;
21728 arg6 = &temp6;
21729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21731 if (!SWIG_IsOK(res1)) {
21732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21733 }
21734 arg1 = reinterpret_cast< wxDC * >(argp1);
21735 {
21736 arg2 = wxString_in_helper(obj1);
21737 if (arg2 == NULL) SWIG_fail;
21738 temp2 = true;
21739 }
21740 if (obj2) {
21741 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21742 if (!SWIG_IsOK(res7)) {
21743 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
21744 }
21745 arg7 = reinterpret_cast< wxFont * >(argp7);
21746 }
21747 {
21748 PyThreadState* __tstate = wxPyBeginAllowThreads();
21749 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21750 wxPyEndAllowThreads(__tstate);
21751 if (PyErr_Occurred()) SWIG_fail;
21752 }
21753 resultobj = SWIG_Py_Void();
21754 if (SWIG_IsTmpObj(res3)) {
21755 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21756 } else {
21757 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21758 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21759 }
21760 if (SWIG_IsTmpObj(res4)) {
21761 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21762 } else {
21763 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21764 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21765 }
21766 if (SWIG_IsTmpObj(res5)) {
21767 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21768 } else {
21769 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21770 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21771 }
21772 if (SWIG_IsTmpObj(res6)) {
21773 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21774 } else {
21775 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21776 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21777 }
21778 {
21779 if (temp2)
21780 delete arg2;
21781 }
21782 return resultobj;
21783 fail:
21784 {
21785 if (temp2)
21786 delete arg2;
21787 }
21788 return NULL;
21789 }
21790
21791
21792 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21793 PyObject *resultobj = 0;
21794 wxDC *arg1 = (wxDC *) 0 ;
21795 wxString *arg2 = 0 ;
21796 int *arg3 = (int *) 0 ;
21797 int *arg4 = (int *) 0 ;
21798 int *arg5 = (int *) 0 ;
21799 wxFont *arg6 = (wxFont *) NULL ;
21800 void *argp1 = 0 ;
21801 int res1 = 0 ;
21802 bool temp2 = false ;
21803 int temp3 ;
21804 int res3 = SWIG_TMPOBJ ;
21805 int temp4 ;
21806 int res4 = SWIG_TMPOBJ ;
21807 int temp5 ;
21808 int res5 = SWIG_TMPOBJ ;
21809 void *argp6 = 0 ;
21810 int res6 = 0 ;
21811 PyObject * obj0 = 0 ;
21812 PyObject * obj1 = 0 ;
21813 PyObject * obj2 = 0 ;
21814 char * kwnames[] = {
21815 (char *) "self",(char *) "text",(char *) "font", NULL
21816 };
21817
21818 arg3 = &temp3;
21819 arg4 = &temp4;
21820 arg5 = &temp5;
21821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21823 if (!SWIG_IsOK(res1)) {
21824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21825 }
21826 arg1 = reinterpret_cast< wxDC * >(argp1);
21827 {
21828 arg2 = wxString_in_helper(obj1);
21829 if (arg2 == NULL) SWIG_fail;
21830 temp2 = true;
21831 }
21832 if (obj2) {
21833 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21834 if (!SWIG_IsOK(res6)) {
21835 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
21836 }
21837 arg6 = reinterpret_cast< wxFont * >(argp6);
21838 }
21839 {
21840 PyThreadState* __tstate = wxPyBeginAllowThreads();
21841 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21842 wxPyEndAllowThreads(__tstate);
21843 if (PyErr_Occurred()) SWIG_fail;
21844 }
21845 resultobj = SWIG_Py_Void();
21846 if (SWIG_IsTmpObj(res3)) {
21847 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21848 } else {
21849 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21850 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21851 }
21852 if (SWIG_IsTmpObj(res4)) {
21853 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21854 } else {
21855 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21856 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21857 }
21858 if (SWIG_IsTmpObj(res5)) {
21859 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21860 } else {
21861 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21862 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21863 }
21864 {
21865 if (temp2)
21866 delete arg2;
21867 }
21868 return resultobj;
21869 fail:
21870 {
21871 if (temp2)
21872 delete arg2;
21873 }
21874 return NULL;
21875 }
21876
21877
21878 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21879 PyObject *resultobj = 0;
21880 wxDC *arg1 = (wxDC *) 0 ;
21881 wxString *arg2 = 0 ;
21882 wxArrayInt result;
21883 void *argp1 = 0 ;
21884 int res1 = 0 ;
21885 bool temp2 = false ;
21886 PyObject * obj0 = 0 ;
21887 PyObject * obj1 = 0 ;
21888 char * kwnames[] = {
21889 (char *) "self",(char *) "text", NULL
21890 };
21891
21892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21894 if (!SWIG_IsOK(res1)) {
21895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21896 }
21897 arg1 = reinterpret_cast< wxDC * >(argp1);
21898 {
21899 arg2 = wxString_in_helper(obj1);
21900 if (arg2 == NULL) SWIG_fail;
21901 temp2 = true;
21902 }
21903 {
21904 PyThreadState* __tstate = wxPyBeginAllowThreads();
21905 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21906 wxPyEndAllowThreads(__tstate);
21907 if (PyErr_Occurred()) SWIG_fail;
21908 }
21909 {
21910 resultobj = wxArrayInt2PyList_helper(result);
21911 }
21912 {
21913 if (temp2)
21914 delete arg2;
21915 }
21916 return resultobj;
21917 fail:
21918 {
21919 if (temp2)
21920 delete arg2;
21921 }
21922 return NULL;
21923 }
21924
21925
21926 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21927 PyObject *resultobj = 0;
21928 wxDC *arg1 = (wxDC *) 0 ;
21929 wxSize result;
21930 void *argp1 = 0 ;
21931 int res1 = 0 ;
21932 PyObject *swig_obj[1] ;
21933
21934 if (!args) SWIG_fail;
21935 swig_obj[0] = args;
21936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21937 if (!SWIG_IsOK(res1)) {
21938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21939 }
21940 arg1 = reinterpret_cast< wxDC * >(argp1);
21941 {
21942 PyThreadState* __tstate = wxPyBeginAllowThreads();
21943 result = (arg1)->GetSize();
21944 wxPyEndAllowThreads(__tstate);
21945 if (PyErr_Occurred()) SWIG_fail;
21946 }
21947 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21948 return resultobj;
21949 fail:
21950 return NULL;
21951 }
21952
21953
21954 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21955 PyObject *resultobj = 0;
21956 wxDC *arg1 = (wxDC *) 0 ;
21957 int *arg2 = (int *) 0 ;
21958 int *arg3 = (int *) 0 ;
21959 void *argp1 = 0 ;
21960 int res1 = 0 ;
21961 int temp2 ;
21962 int res2 = SWIG_TMPOBJ ;
21963 int temp3 ;
21964 int res3 = SWIG_TMPOBJ ;
21965 PyObject *swig_obj[1] ;
21966
21967 arg2 = &temp2;
21968 arg3 = &temp3;
21969 if (!args) SWIG_fail;
21970 swig_obj[0] = args;
21971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21972 if (!SWIG_IsOK(res1)) {
21973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21974 }
21975 arg1 = reinterpret_cast< wxDC * >(argp1);
21976 {
21977 PyThreadState* __tstate = wxPyBeginAllowThreads();
21978 (arg1)->GetSize(arg2,arg3);
21979 wxPyEndAllowThreads(__tstate);
21980 if (PyErr_Occurred()) SWIG_fail;
21981 }
21982 resultobj = SWIG_Py_Void();
21983 if (SWIG_IsTmpObj(res2)) {
21984 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21985 } else {
21986 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21987 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21988 }
21989 if (SWIG_IsTmpObj(res3)) {
21990 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21991 } else {
21992 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21993 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21994 }
21995 return resultobj;
21996 fail:
21997 return NULL;
21998 }
21999
22000
22001 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22002 PyObject *resultobj = 0;
22003 wxDC *arg1 = (wxDC *) 0 ;
22004 wxSize result;
22005 void *argp1 = 0 ;
22006 int res1 = 0 ;
22007 PyObject *swig_obj[1] ;
22008
22009 if (!args) SWIG_fail;
22010 swig_obj[0] = args;
22011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22012 if (!SWIG_IsOK(res1)) {
22013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
22014 }
22015 arg1 = reinterpret_cast< wxDC * >(argp1);
22016 {
22017 PyThreadState* __tstate = wxPyBeginAllowThreads();
22018 result = ((wxDC const *)arg1)->GetSizeMM();
22019 wxPyEndAllowThreads(__tstate);
22020 if (PyErr_Occurred()) SWIG_fail;
22021 }
22022 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22023 return resultobj;
22024 fail:
22025 return NULL;
22026 }
22027
22028
22029 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22030 PyObject *resultobj = 0;
22031 wxDC *arg1 = (wxDC *) 0 ;
22032 int *arg2 = (int *) 0 ;
22033 int *arg3 = (int *) 0 ;
22034 void *argp1 = 0 ;
22035 int res1 = 0 ;
22036 int temp2 ;
22037 int res2 = SWIG_TMPOBJ ;
22038 int temp3 ;
22039 int res3 = SWIG_TMPOBJ ;
22040 PyObject *swig_obj[1] ;
22041
22042 arg2 = &temp2;
22043 arg3 = &temp3;
22044 if (!args) SWIG_fail;
22045 swig_obj[0] = args;
22046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22047 if (!SWIG_IsOK(res1)) {
22048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22049 }
22050 arg1 = reinterpret_cast< wxDC * >(argp1);
22051 {
22052 PyThreadState* __tstate = wxPyBeginAllowThreads();
22053 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
22054 wxPyEndAllowThreads(__tstate);
22055 if (PyErr_Occurred()) SWIG_fail;
22056 }
22057 resultobj = SWIG_Py_Void();
22058 if (SWIG_IsTmpObj(res2)) {
22059 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22060 } else {
22061 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22062 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22063 }
22064 if (SWIG_IsTmpObj(res3)) {
22065 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22066 } else {
22067 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22068 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22069 }
22070 return resultobj;
22071 fail:
22072 return NULL;
22073 }
22074
22075
22076 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22077 PyObject *resultobj = 0;
22078 wxDC *arg1 = (wxDC *) 0 ;
22079 int arg2 ;
22080 int result;
22081 void *argp1 = 0 ;
22082 int res1 = 0 ;
22083 int val2 ;
22084 int ecode2 = 0 ;
22085 PyObject * obj0 = 0 ;
22086 PyObject * obj1 = 0 ;
22087 char * kwnames[] = {
22088 (char *) "self",(char *) "x", NULL
22089 };
22090
22091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
22092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22093 if (!SWIG_IsOK(res1)) {
22094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
22095 }
22096 arg1 = reinterpret_cast< wxDC * >(argp1);
22097 ecode2 = SWIG_AsVal_int(obj1, &val2);
22098 if (!SWIG_IsOK(ecode2)) {
22099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
22100 }
22101 arg2 = static_cast< int >(val2);
22102 {
22103 PyThreadState* __tstate = wxPyBeginAllowThreads();
22104 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
22105 wxPyEndAllowThreads(__tstate);
22106 if (PyErr_Occurred()) SWIG_fail;
22107 }
22108 resultobj = SWIG_From_int(static_cast< int >(result));
22109 return resultobj;
22110 fail:
22111 return NULL;
22112 }
22113
22114
22115 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22116 PyObject *resultobj = 0;
22117 wxDC *arg1 = (wxDC *) 0 ;
22118 int arg2 ;
22119 int result;
22120 void *argp1 = 0 ;
22121 int res1 = 0 ;
22122 int val2 ;
22123 int ecode2 = 0 ;
22124 PyObject * obj0 = 0 ;
22125 PyObject * obj1 = 0 ;
22126 char * kwnames[] = {
22127 (char *) "self",(char *) "y", NULL
22128 };
22129
22130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
22131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22132 if (!SWIG_IsOK(res1)) {
22133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
22134 }
22135 arg1 = reinterpret_cast< wxDC * >(argp1);
22136 ecode2 = SWIG_AsVal_int(obj1, &val2);
22137 if (!SWIG_IsOK(ecode2)) {
22138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
22139 }
22140 arg2 = static_cast< int >(val2);
22141 {
22142 PyThreadState* __tstate = wxPyBeginAllowThreads();
22143 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
22144 wxPyEndAllowThreads(__tstate);
22145 if (PyErr_Occurred()) SWIG_fail;
22146 }
22147 resultobj = SWIG_From_int(static_cast< int >(result));
22148 return resultobj;
22149 fail:
22150 return NULL;
22151 }
22152
22153
22154 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22155 PyObject *resultobj = 0;
22156 wxDC *arg1 = (wxDC *) 0 ;
22157 int arg2 ;
22158 int result;
22159 void *argp1 = 0 ;
22160 int res1 = 0 ;
22161 int val2 ;
22162 int ecode2 = 0 ;
22163 PyObject * obj0 = 0 ;
22164 PyObject * obj1 = 0 ;
22165 char * kwnames[] = {
22166 (char *) "self",(char *) "x", NULL
22167 };
22168
22169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22171 if (!SWIG_IsOK(res1)) {
22172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22173 }
22174 arg1 = reinterpret_cast< wxDC * >(argp1);
22175 ecode2 = SWIG_AsVal_int(obj1, &val2);
22176 if (!SWIG_IsOK(ecode2)) {
22177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
22178 }
22179 arg2 = static_cast< int >(val2);
22180 {
22181 PyThreadState* __tstate = wxPyBeginAllowThreads();
22182 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
22183 wxPyEndAllowThreads(__tstate);
22184 if (PyErr_Occurred()) SWIG_fail;
22185 }
22186 resultobj = SWIG_From_int(static_cast< int >(result));
22187 return resultobj;
22188 fail:
22189 return NULL;
22190 }
22191
22192
22193 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22194 PyObject *resultobj = 0;
22195 wxDC *arg1 = (wxDC *) 0 ;
22196 int arg2 ;
22197 int result;
22198 void *argp1 = 0 ;
22199 int res1 = 0 ;
22200 int val2 ;
22201 int ecode2 = 0 ;
22202 PyObject * obj0 = 0 ;
22203 PyObject * obj1 = 0 ;
22204 char * kwnames[] = {
22205 (char *) "self",(char *) "y", NULL
22206 };
22207
22208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22210 if (!SWIG_IsOK(res1)) {
22211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22212 }
22213 arg1 = reinterpret_cast< wxDC * >(argp1);
22214 ecode2 = SWIG_AsVal_int(obj1, &val2);
22215 if (!SWIG_IsOK(ecode2)) {
22216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
22217 }
22218 arg2 = static_cast< int >(val2);
22219 {
22220 PyThreadState* __tstate = wxPyBeginAllowThreads();
22221 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
22222 wxPyEndAllowThreads(__tstate);
22223 if (PyErr_Occurred()) SWIG_fail;
22224 }
22225 resultobj = SWIG_From_int(static_cast< int >(result));
22226 return resultobj;
22227 fail:
22228 return NULL;
22229 }
22230
22231
22232 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22233 PyObject *resultobj = 0;
22234 wxDC *arg1 = (wxDC *) 0 ;
22235 int arg2 ;
22236 int result;
22237 void *argp1 = 0 ;
22238 int res1 = 0 ;
22239 int val2 ;
22240 int ecode2 = 0 ;
22241 PyObject * obj0 = 0 ;
22242 PyObject * obj1 = 0 ;
22243 char * kwnames[] = {
22244 (char *) "self",(char *) "x", NULL
22245 };
22246
22247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
22248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22249 if (!SWIG_IsOK(res1)) {
22250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
22251 }
22252 arg1 = reinterpret_cast< wxDC * >(argp1);
22253 ecode2 = SWIG_AsVal_int(obj1, &val2);
22254 if (!SWIG_IsOK(ecode2)) {
22255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
22256 }
22257 arg2 = static_cast< int >(val2);
22258 {
22259 PyThreadState* __tstate = wxPyBeginAllowThreads();
22260 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
22261 wxPyEndAllowThreads(__tstate);
22262 if (PyErr_Occurred()) SWIG_fail;
22263 }
22264 resultobj = SWIG_From_int(static_cast< int >(result));
22265 return resultobj;
22266 fail:
22267 return NULL;
22268 }
22269
22270
22271 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22272 PyObject *resultobj = 0;
22273 wxDC *arg1 = (wxDC *) 0 ;
22274 int arg2 ;
22275 int result;
22276 void *argp1 = 0 ;
22277 int res1 = 0 ;
22278 int val2 ;
22279 int ecode2 = 0 ;
22280 PyObject * obj0 = 0 ;
22281 PyObject * obj1 = 0 ;
22282 char * kwnames[] = {
22283 (char *) "self",(char *) "y", NULL
22284 };
22285
22286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
22287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22288 if (!SWIG_IsOK(res1)) {
22289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
22290 }
22291 arg1 = reinterpret_cast< wxDC * >(argp1);
22292 ecode2 = SWIG_AsVal_int(obj1, &val2);
22293 if (!SWIG_IsOK(ecode2)) {
22294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
22295 }
22296 arg2 = static_cast< int >(val2);
22297 {
22298 PyThreadState* __tstate = wxPyBeginAllowThreads();
22299 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
22300 wxPyEndAllowThreads(__tstate);
22301 if (PyErr_Occurred()) SWIG_fail;
22302 }
22303 resultobj = SWIG_From_int(static_cast< int >(result));
22304 return resultobj;
22305 fail:
22306 return NULL;
22307 }
22308
22309
22310 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22311 PyObject *resultobj = 0;
22312 wxDC *arg1 = (wxDC *) 0 ;
22313 int arg2 ;
22314 int result;
22315 void *argp1 = 0 ;
22316 int res1 = 0 ;
22317 int val2 ;
22318 int ecode2 = 0 ;
22319 PyObject * obj0 = 0 ;
22320 PyObject * obj1 = 0 ;
22321 char * kwnames[] = {
22322 (char *) "self",(char *) "x", NULL
22323 };
22324
22325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22327 if (!SWIG_IsOK(res1)) {
22328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22329 }
22330 arg1 = reinterpret_cast< wxDC * >(argp1);
22331 ecode2 = SWIG_AsVal_int(obj1, &val2);
22332 if (!SWIG_IsOK(ecode2)) {
22333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
22334 }
22335 arg2 = static_cast< int >(val2);
22336 {
22337 PyThreadState* __tstate = wxPyBeginAllowThreads();
22338 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
22339 wxPyEndAllowThreads(__tstate);
22340 if (PyErr_Occurred()) SWIG_fail;
22341 }
22342 resultobj = SWIG_From_int(static_cast< int >(result));
22343 return resultobj;
22344 fail:
22345 return NULL;
22346 }
22347
22348
22349 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22350 PyObject *resultobj = 0;
22351 wxDC *arg1 = (wxDC *) 0 ;
22352 int arg2 ;
22353 int result;
22354 void *argp1 = 0 ;
22355 int res1 = 0 ;
22356 int val2 ;
22357 int ecode2 = 0 ;
22358 PyObject * obj0 = 0 ;
22359 PyObject * obj1 = 0 ;
22360 char * kwnames[] = {
22361 (char *) "self",(char *) "y", NULL
22362 };
22363
22364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22366 if (!SWIG_IsOK(res1)) {
22367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22368 }
22369 arg1 = reinterpret_cast< wxDC * >(argp1);
22370 ecode2 = SWIG_AsVal_int(obj1, &val2);
22371 if (!SWIG_IsOK(ecode2)) {
22372 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
22373 }
22374 arg2 = static_cast< int >(val2);
22375 {
22376 PyThreadState* __tstate = wxPyBeginAllowThreads();
22377 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
22378 wxPyEndAllowThreads(__tstate);
22379 if (PyErr_Occurred()) SWIG_fail;
22380 }
22381 resultobj = SWIG_From_int(static_cast< int >(result));
22382 return resultobj;
22383 fail:
22384 return NULL;
22385 }
22386
22387
22388 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22389 PyObject *resultobj = 0;
22390 wxDC *arg1 = (wxDC *) 0 ;
22391 bool result;
22392 void *argp1 = 0 ;
22393 int res1 = 0 ;
22394 PyObject *swig_obj[1] ;
22395
22396 if (!args) SWIG_fail;
22397 swig_obj[0] = args;
22398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22399 if (!SWIG_IsOK(res1)) {
22400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
22401 }
22402 arg1 = reinterpret_cast< wxDC * >(argp1);
22403 {
22404 PyThreadState* __tstate = wxPyBeginAllowThreads();
22405 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
22406 wxPyEndAllowThreads(__tstate);
22407 if (PyErr_Occurred()) SWIG_fail;
22408 }
22409 {
22410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22411 }
22412 return resultobj;
22413 fail:
22414 return NULL;
22415 }
22416
22417
22418 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22419 PyObject *resultobj = 0;
22420 wxDC *arg1 = (wxDC *) 0 ;
22421 bool result;
22422 void *argp1 = 0 ;
22423 int res1 = 0 ;
22424 PyObject *swig_obj[1] ;
22425
22426 if (!args) SWIG_fail;
22427 swig_obj[0] = args;
22428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22429 if (!SWIG_IsOK(res1)) {
22430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
22431 }
22432 arg1 = reinterpret_cast< wxDC * >(argp1);
22433 {
22434 PyThreadState* __tstate = wxPyBeginAllowThreads();
22435 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
22436 wxPyEndAllowThreads(__tstate);
22437 if (PyErr_Occurred()) SWIG_fail;
22438 }
22439 {
22440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22441 }
22442 return resultobj;
22443 fail:
22444 return NULL;
22445 }
22446
22447
22448 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22449 PyObject *resultobj = 0;
22450 wxDC *arg1 = (wxDC *) 0 ;
22451 int result;
22452 void *argp1 = 0 ;
22453 int res1 = 0 ;
22454 PyObject *swig_obj[1] ;
22455
22456 if (!args) SWIG_fail;
22457 swig_obj[0] = args;
22458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22459 if (!SWIG_IsOK(res1)) {
22460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
22461 }
22462 arg1 = reinterpret_cast< wxDC * >(argp1);
22463 {
22464 PyThreadState* __tstate = wxPyBeginAllowThreads();
22465 result = (int)((wxDC const *)arg1)->GetDepth();
22466 wxPyEndAllowThreads(__tstate);
22467 if (PyErr_Occurred()) SWIG_fail;
22468 }
22469 resultobj = SWIG_From_int(static_cast< int >(result));
22470 return resultobj;
22471 fail:
22472 return NULL;
22473 }
22474
22475
22476 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22477 PyObject *resultobj = 0;
22478 wxDC *arg1 = (wxDC *) 0 ;
22479 wxSize result;
22480 void *argp1 = 0 ;
22481 int res1 = 0 ;
22482 PyObject *swig_obj[1] ;
22483
22484 if (!args) SWIG_fail;
22485 swig_obj[0] = args;
22486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22487 if (!SWIG_IsOK(res1)) {
22488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
22489 }
22490 arg1 = reinterpret_cast< wxDC * >(argp1);
22491 {
22492 PyThreadState* __tstate = wxPyBeginAllowThreads();
22493 result = ((wxDC const *)arg1)->GetPPI();
22494 wxPyEndAllowThreads(__tstate);
22495 if (PyErr_Occurred()) SWIG_fail;
22496 }
22497 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22498 return resultobj;
22499 fail:
22500 return NULL;
22501 }
22502
22503
22504 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22505 PyObject *resultobj = 0;
22506 wxDC *arg1 = (wxDC *) 0 ;
22507 bool result;
22508 void *argp1 = 0 ;
22509 int res1 = 0 ;
22510 PyObject *swig_obj[1] ;
22511
22512 if (!args) SWIG_fail;
22513 swig_obj[0] = args;
22514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22515 if (!SWIG_IsOK(res1)) {
22516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
22517 }
22518 arg1 = reinterpret_cast< wxDC * >(argp1);
22519 {
22520 PyThreadState* __tstate = wxPyBeginAllowThreads();
22521 result = (bool)((wxDC const *)arg1)->IsOk();
22522 wxPyEndAllowThreads(__tstate);
22523 if (PyErr_Occurred()) SWIG_fail;
22524 }
22525 {
22526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22527 }
22528 return resultobj;
22529 fail:
22530 return NULL;
22531 }
22532
22533
22534 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22535 PyObject *resultobj = 0;
22536 wxDC *arg1 = (wxDC *) 0 ;
22537 int result;
22538 void *argp1 = 0 ;
22539 int res1 = 0 ;
22540 PyObject *swig_obj[1] ;
22541
22542 if (!args) SWIG_fail;
22543 swig_obj[0] = args;
22544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22545 if (!SWIG_IsOK(res1)) {
22546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22547 }
22548 arg1 = reinterpret_cast< wxDC * >(argp1);
22549 {
22550 PyThreadState* __tstate = wxPyBeginAllowThreads();
22551 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
22552 wxPyEndAllowThreads(__tstate);
22553 if (PyErr_Occurred()) SWIG_fail;
22554 }
22555 resultobj = SWIG_From_int(static_cast< int >(result));
22556 return resultobj;
22557 fail:
22558 return NULL;
22559 }
22560
22561
22562 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22563 PyObject *resultobj = 0;
22564 wxDC *arg1 = (wxDC *) 0 ;
22565 wxBrush *result = 0 ;
22566 void *argp1 = 0 ;
22567 int res1 = 0 ;
22568 PyObject *swig_obj[1] ;
22569
22570 if (!args) SWIG_fail;
22571 swig_obj[0] = args;
22572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22573 if (!SWIG_IsOK(res1)) {
22574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22575 }
22576 arg1 = reinterpret_cast< wxDC * >(argp1);
22577 {
22578 PyThreadState* __tstate = wxPyBeginAllowThreads();
22579 {
22580 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
22581 result = (wxBrush *) &_result_ref;
22582 }
22583 wxPyEndAllowThreads(__tstate);
22584 if (PyErr_Occurred()) SWIG_fail;
22585 }
22586 {
22587 wxBrush* resultptr = new wxBrush(*result);
22588 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22589 }
22590 return resultobj;
22591 fail:
22592 return NULL;
22593 }
22594
22595
22596 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22597 PyObject *resultobj = 0;
22598 wxDC *arg1 = (wxDC *) 0 ;
22599 wxBrush *result = 0 ;
22600 void *argp1 = 0 ;
22601 int res1 = 0 ;
22602 PyObject *swig_obj[1] ;
22603
22604 if (!args) SWIG_fail;
22605 swig_obj[0] = args;
22606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22607 if (!SWIG_IsOK(res1)) {
22608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22609 }
22610 arg1 = reinterpret_cast< wxDC * >(argp1);
22611 {
22612 PyThreadState* __tstate = wxPyBeginAllowThreads();
22613 {
22614 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22615 result = (wxBrush *) &_result_ref;
22616 }
22617 wxPyEndAllowThreads(__tstate);
22618 if (PyErr_Occurred()) SWIG_fail;
22619 }
22620 {
22621 wxBrush* resultptr = new wxBrush(*result);
22622 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22623 }
22624 return resultobj;
22625 fail:
22626 return NULL;
22627 }
22628
22629
22630 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22631 PyObject *resultobj = 0;
22632 wxDC *arg1 = (wxDC *) 0 ;
22633 wxFont *result = 0 ;
22634 void *argp1 = 0 ;
22635 int res1 = 0 ;
22636 PyObject *swig_obj[1] ;
22637
22638 if (!args) SWIG_fail;
22639 swig_obj[0] = args;
22640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22641 if (!SWIG_IsOK(res1)) {
22642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22643 }
22644 arg1 = reinterpret_cast< wxDC * >(argp1);
22645 {
22646 PyThreadState* __tstate = wxPyBeginAllowThreads();
22647 {
22648 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22649 result = (wxFont *) &_result_ref;
22650 }
22651 wxPyEndAllowThreads(__tstate);
22652 if (PyErr_Occurred()) SWIG_fail;
22653 }
22654 {
22655 wxFont* resultptr = new wxFont(*result);
22656 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22657 }
22658 return resultobj;
22659 fail:
22660 return NULL;
22661 }
22662
22663
22664 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22665 PyObject *resultobj = 0;
22666 wxDC *arg1 = (wxDC *) 0 ;
22667 wxPen *result = 0 ;
22668 void *argp1 = 0 ;
22669 int res1 = 0 ;
22670 PyObject *swig_obj[1] ;
22671
22672 if (!args) SWIG_fail;
22673 swig_obj[0] = args;
22674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22675 if (!SWIG_IsOK(res1)) {
22676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22677 }
22678 arg1 = reinterpret_cast< wxDC * >(argp1);
22679 {
22680 PyThreadState* __tstate = wxPyBeginAllowThreads();
22681 {
22682 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22683 result = (wxPen *) &_result_ref;
22684 }
22685 wxPyEndAllowThreads(__tstate);
22686 if (PyErr_Occurred()) SWIG_fail;
22687 }
22688 {
22689 wxPen* resultptr = new wxPen(*result);
22690 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22691 }
22692 return resultobj;
22693 fail:
22694 return NULL;
22695 }
22696
22697
22698 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22699 PyObject *resultobj = 0;
22700 wxDC *arg1 = (wxDC *) 0 ;
22701 wxColour *result = 0 ;
22702 void *argp1 = 0 ;
22703 int res1 = 0 ;
22704 PyObject *swig_obj[1] ;
22705
22706 if (!args) SWIG_fail;
22707 swig_obj[0] = args;
22708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22709 if (!SWIG_IsOK(res1)) {
22710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22711 }
22712 arg1 = reinterpret_cast< wxDC * >(argp1);
22713 {
22714 PyThreadState* __tstate = wxPyBeginAllowThreads();
22715 {
22716 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22717 result = (wxColour *) &_result_ref;
22718 }
22719 wxPyEndAllowThreads(__tstate);
22720 if (PyErr_Occurred()) SWIG_fail;
22721 }
22722 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22723 return resultobj;
22724 fail:
22725 return NULL;
22726 }
22727
22728
22729 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22730 PyObject *resultobj = 0;
22731 wxDC *arg1 = (wxDC *) 0 ;
22732 wxColour *result = 0 ;
22733 void *argp1 = 0 ;
22734 int res1 = 0 ;
22735 PyObject *swig_obj[1] ;
22736
22737 if (!args) SWIG_fail;
22738 swig_obj[0] = args;
22739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22740 if (!SWIG_IsOK(res1)) {
22741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22742 }
22743 arg1 = reinterpret_cast< wxDC * >(argp1);
22744 {
22745 PyThreadState* __tstate = wxPyBeginAllowThreads();
22746 {
22747 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22748 result = (wxColour *) &_result_ref;
22749 }
22750 wxPyEndAllowThreads(__tstate);
22751 if (PyErr_Occurred()) SWIG_fail;
22752 }
22753 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22754 return resultobj;
22755 fail:
22756 return NULL;
22757 }
22758
22759
22760 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22761 PyObject *resultobj = 0;
22762 wxDC *arg1 = (wxDC *) 0 ;
22763 wxColour *arg2 = 0 ;
22764 void *argp1 = 0 ;
22765 int res1 = 0 ;
22766 wxColour temp2 ;
22767 PyObject * obj0 = 0 ;
22768 PyObject * obj1 = 0 ;
22769 char * kwnames[] = {
22770 (char *) "self",(char *) "colour", NULL
22771 };
22772
22773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22775 if (!SWIG_IsOK(res1)) {
22776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22777 }
22778 arg1 = reinterpret_cast< wxDC * >(argp1);
22779 {
22780 arg2 = &temp2;
22781 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22782 }
22783 {
22784 PyThreadState* __tstate = wxPyBeginAllowThreads();
22785 (arg1)->SetTextForeground((wxColour const &)*arg2);
22786 wxPyEndAllowThreads(__tstate);
22787 if (PyErr_Occurred()) SWIG_fail;
22788 }
22789 resultobj = SWIG_Py_Void();
22790 return resultobj;
22791 fail:
22792 return NULL;
22793 }
22794
22795
22796 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22797 PyObject *resultobj = 0;
22798 wxDC *arg1 = (wxDC *) 0 ;
22799 wxColour *arg2 = 0 ;
22800 void *argp1 = 0 ;
22801 int res1 = 0 ;
22802 wxColour temp2 ;
22803 PyObject * obj0 = 0 ;
22804 PyObject * obj1 = 0 ;
22805 char * kwnames[] = {
22806 (char *) "self",(char *) "colour", NULL
22807 };
22808
22809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22811 if (!SWIG_IsOK(res1)) {
22812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22813 }
22814 arg1 = reinterpret_cast< wxDC * >(argp1);
22815 {
22816 arg2 = &temp2;
22817 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22818 }
22819 {
22820 PyThreadState* __tstate = wxPyBeginAllowThreads();
22821 (arg1)->SetTextBackground((wxColour const &)*arg2);
22822 wxPyEndAllowThreads(__tstate);
22823 if (PyErr_Occurred()) SWIG_fail;
22824 }
22825 resultobj = SWIG_Py_Void();
22826 return resultobj;
22827 fail:
22828 return NULL;
22829 }
22830
22831
22832 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22833 PyObject *resultobj = 0;
22834 wxDC *arg1 = (wxDC *) 0 ;
22835 int result;
22836 void *argp1 = 0 ;
22837 int res1 = 0 ;
22838 PyObject *swig_obj[1] ;
22839
22840 if (!args) SWIG_fail;
22841 swig_obj[0] = args;
22842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22843 if (!SWIG_IsOK(res1)) {
22844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22845 }
22846 arg1 = reinterpret_cast< wxDC * >(argp1);
22847 {
22848 PyThreadState* __tstate = wxPyBeginAllowThreads();
22849 result = (int)((wxDC const *)arg1)->GetMapMode();
22850 wxPyEndAllowThreads(__tstate);
22851 if (PyErr_Occurred()) SWIG_fail;
22852 }
22853 resultobj = SWIG_From_int(static_cast< int >(result));
22854 return resultobj;
22855 fail:
22856 return NULL;
22857 }
22858
22859
22860 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22861 PyObject *resultobj = 0;
22862 wxDC *arg1 = (wxDC *) 0 ;
22863 int arg2 ;
22864 void *argp1 = 0 ;
22865 int res1 = 0 ;
22866 int val2 ;
22867 int ecode2 = 0 ;
22868 PyObject * obj0 = 0 ;
22869 PyObject * obj1 = 0 ;
22870 char * kwnames[] = {
22871 (char *) "self",(char *) "mode", NULL
22872 };
22873
22874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22876 if (!SWIG_IsOK(res1)) {
22877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22878 }
22879 arg1 = reinterpret_cast< wxDC * >(argp1);
22880 ecode2 = SWIG_AsVal_int(obj1, &val2);
22881 if (!SWIG_IsOK(ecode2)) {
22882 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22883 }
22884 arg2 = static_cast< int >(val2);
22885 {
22886 PyThreadState* __tstate = wxPyBeginAllowThreads();
22887 (arg1)->SetMapMode(arg2);
22888 wxPyEndAllowThreads(__tstate);
22889 if (PyErr_Occurred()) SWIG_fail;
22890 }
22891 resultobj = SWIG_Py_Void();
22892 return resultobj;
22893 fail:
22894 return NULL;
22895 }
22896
22897
22898 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22899 PyObject *resultobj = 0;
22900 wxDC *arg1 = (wxDC *) 0 ;
22901 double *arg2 = (double *) 0 ;
22902 double *arg3 = (double *) 0 ;
22903 void *argp1 = 0 ;
22904 int res1 = 0 ;
22905 double temp2 ;
22906 int res2 = SWIG_TMPOBJ ;
22907 double temp3 ;
22908 int res3 = SWIG_TMPOBJ ;
22909 PyObject *swig_obj[1] ;
22910
22911 arg2 = &temp2;
22912 arg3 = &temp3;
22913 if (!args) SWIG_fail;
22914 swig_obj[0] = args;
22915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22916 if (!SWIG_IsOK(res1)) {
22917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22918 }
22919 arg1 = reinterpret_cast< wxDC * >(argp1);
22920 {
22921 PyThreadState* __tstate = wxPyBeginAllowThreads();
22922 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22923 wxPyEndAllowThreads(__tstate);
22924 if (PyErr_Occurred()) SWIG_fail;
22925 }
22926 resultobj = SWIG_Py_Void();
22927 if (SWIG_IsTmpObj(res2)) {
22928 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22929 } else {
22930 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22931 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22932 }
22933 if (SWIG_IsTmpObj(res3)) {
22934 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22935 } else {
22936 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22937 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22938 }
22939 return resultobj;
22940 fail:
22941 return NULL;
22942 }
22943
22944
22945 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22946 PyObject *resultobj = 0;
22947 wxDC *arg1 = (wxDC *) 0 ;
22948 double arg2 ;
22949 double arg3 ;
22950 void *argp1 = 0 ;
22951 int res1 = 0 ;
22952 double val2 ;
22953 int ecode2 = 0 ;
22954 double val3 ;
22955 int ecode3 = 0 ;
22956 PyObject * obj0 = 0 ;
22957 PyObject * obj1 = 0 ;
22958 PyObject * obj2 = 0 ;
22959 char * kwnames[] = {
22960 (char *) "self",(char *) "x",(char *) "y", NULL
22961 };
22962
22963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22965 if (!SWIG_IsOK(res1)) {
22966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22967 }
22968 arg1 = reinterpret_cast< wxDC * >(argp1);
22969 ecode2 = SWIG_AsVal_double(obj1, &val2);
22970 if (!SWIG_IsOK(ecode2)) {
22971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22972 }
22973 arg2 = static_cast< double >(val2);
22974 ecode3 = SWIG_AsVal_double(obj2, &val3);
22975 if (!SWIG_IsOK(ecode3)) {
22976 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22977 }
22978 arg3 = static_cast< double >(val3);
22979 {
22980 PyThreadState* __tstate = wxPyBeginAllowThreads();
22981 (arg1)->SetUserScale(arg2,arg3);
22982 wxPyEndAllowThreads(__tstate);
22983 if (PyErr_Occurred()) SWIG_fail;
22984 }
22985 resultobj = SWIG_Py_Void();
22986 return resultobj;
22987 fail:
22988 return NULL;
22989 }
22990
22991
22992 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22993 PyObject *resultobj = 0;
22994 wxDC *arg1 = (wxDC *) 0 ;
22995 double *arg2 = (double *) 0 ;
22996 double *arg3 = (double *) 0 ;
22997 void *argp1 = 0 ;
22998 int res1 = 0 ;
22999 double temp2 ;
23000 int res2 = SWIG_TMPOBJ ;
23001 double temp3 ;
23002 int res3 = SWIG_TMPOBJ ;
23003 PyObject *swig_obj[1] ;
23004
23005 arg2 = &temp2;
23006 arg3 = &temp3;
23007 if (!args) SWIG_fail;
23008 swig_obj[0] = args;
23009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23010 if (!SWIG_IsOK(res1)) {
23011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
23012 }
23013 arg1 = reinterpret_cast< wxDC * >(argp1);
23014 {
23015 PyThreadState* __tstate = wxPyBeginAllowThreads();
23016 (arg1)->GetLogicalScale(arg2,arg3);
23017 wxPyEndAllowThreads(__tstate);
23018 if (PyErr_Occurred()) SWIG_fail;
23019 }
23020 resultobj = SWIG_Py_Void();
23021 if (SWIG_IsTmpObj(res2)) {
23022 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
23023 } else {
23024 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23025 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
23026 }
23027 if (SWIG_IsTmpObj(res3)) {
23028 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
23029 } else {
23030 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23031 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
23032 }
23033 return resultobj;
23034 fail:
23035 return NULL;
23036 }
23037
23038
23039 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23040 PyObject *resultobj = 0;
23041 wxDC *arg1 = (wxDC *) 0 ;
23042 double arg2 ;
23043 double arg3 ;
23044 void *argp1 = 0 ;
23045 int res1 = 0 ;
23046 double val2 ;
23047 int ecode2 = 0 ;
23048 double val3 ;
23049 int ecode3 = 0 ;
23050 PyObject * obj0 = 0 ;
23051 PyObject * obj1 = 0 ;
23052 PyObject * obj2 = 0 ;
23053 char * kwnames[] = {
23054 (char *) "self",(char *) "x",(char *) "y", NULL
23055 };
23056
23057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23059 if (!SWIG_IsOK(res1)) {
23060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
23061 }
23062 arg1 = reinterpret_cast< wxDC * >(argp1);
23063 ecode2 = SWIG_AsVal_double(obj1, &val2);
23064 if (!SWIG_IsOK(ecode2)) {
23065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
23066 }
23067 arg2 = static_cast< double >(val2);
23068 ecode3 = SWIG_AsVal_double(obj2, &val3);
23069 if (!SWIG_IsOK(ecode3)) {
23070 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
23071 }
23072 arg3 = static_cast< double >(val3);
23073 {
23074 PyThreadState* __tstate = wxPyBeginAllowThreads();
23075 (arg1)->SetLogicalScale(arg2,arg3);
23076 wxPyEndAllowThreads(__tstate);
23077 if (PyErr_Occurred()) SWIG_fail;
23078 }
23079 resultobj = SWIG_Py_Void();
23080 return resultobj;
23081 fail:
23082 return NULL;
23083 }
23084
23085
23086 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23087 PyObject *resultobj = 0;
23088 wxDC *arg1 = (wxDC *) 0 ;
23089 wxPoint result;
23090 void *argp1 = 0 ;
23091 int res1 = 0 ;
23092 PyObject *swig_obj[1] ;
23093
23094 if (!args) SWIG_fail;
23095 swig_obj[0] = args;
23096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23097 if (!SWIG_IsOK(res1)) {
23098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23099 }
23100 arg1 = reinterpret_cast< wxDC * >(argp1);
23101 {
23102 PyThreadState* __tstate = wxPyBeginAllowThreads();
23103 result = ((wxDC const *)arg1)->GetLogicalOrigin();
23104 wxPyEndAllowThreads(__tstate);
23105 if (PyErr_Occurred()) SWIG_fail;
23106 }
23107 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23108 return resultobj;
23109 fail:
23110 return NULL;
23111 }
23112
23113
23114 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23115 PyObject *resultobj = 0;
23116 wxDC *arg1 = (wxDC *) 0 ;
23117 int *arg2 = (int *) 0 ;
23118 int *arg3 = (int *) 0 ;
23119 void *argp1 = 0 ;
23120 int res1 = 0 ;
23121 int temp2 ;
23122 int res2 = SWIG_TMPOBJ ;
23123 int temp3 ;
23124 int res3 = SWIG_TMPOBJ ;
23125 PyObject *swig_obj[1] ;
23126
23127 arg2 = &temp2;
23128 arg3 = &temp3;
23129 if (!args) SWIG_fail;
23130 swig_obj[0] = args;
23131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23132 if (!SWIG_IsOK(res1)) {
23133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23134 }
23135 arg1 = reinterpret_cast< wxDC * >(argp1);
23136 {
23137 PyThreadState* __tstate = wxPyBeginAllowThreads();
23138 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
23139 wxPyEndAllowThreads(__tstate);
23140 if (PyErr_Occurred()) SWIG_fail;
23141 }
23142 resultobj = SWIG_Py_Void();
23143 if (SWIG_IsTmpObj(res2)) {
23144 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23145 } else {
23146 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23147 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23148 }
23149 if (SWIG_IsTmpObj(res3)) {
23150 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23151 } else {
23152 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23153 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23154 }
23155 return resultobj;
23156 fail:
23157 return NULL;
23158 }
23159
23160
23161 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23162 PyObject *resultobj = 0;
23163 wxDC *arg1 = (wxDC *) 0 ;
23164 int arg2 ;
23165 int arg3 ;
23166 void *argp1 = 0 ;
23167 int res1 = 0 ;
23168 int val2 ;
23169 int ecode2 = 0 ;
23170 int val3 ;
23171 int ecode3 = 0 ;
23172 PyObject * obj0 = 0 ;
23173 PyObject * obj1 = 0 ;
23174 PyObject * obj2 = 0 ;
23175 char * kwnames[] = {
23176 (char *) "self",(char *) "x",(char *) "y", NULL
23177 };
23178
23179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23181 if (!SWIG_IsOK(res1)) {
23182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23183 }
23184 arg1 = reinterpret_cast< wxDC * >(argp1);
23185 ecode2 = SWIG_AsVal_int(obj1, &val2);
23186 if (!SWIG_IsOK(ecode2)) {
23187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
23188 }
23189 arg2 = static_cast< int >(val2);
23190 ecode3 = SWIG_AsVal_int(obj2, &val3);
23191 if (!SWIG_IsOK(ecode3)) {
23192 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
23193 }
23194 arg3 = static_cast< int >(val3);
23195 {
23196 PyThreadState* __tstate = wxPyBeginAllowThreads();
23197 (arg1)->SetLogicalOrigin(arg2,arg3);
23198 wxPyEndAllowThreads(__tstate);
23199 if (PyErr_Occurred()) SWIG_fail;
23200 }
23201 resultobj = SWIG_Py_Void();
23202 return resultobj;
23203 fail:
23204 return NULL;
23205 }
23206
23207
23208 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23209 PyObject *resultobj = 0;
23210 wxDC *arg1 = (wxDC *) 0 ;
23211 wxPoint *arg2 = 0 ;
23212 void *argp1 = 0 ;
23213 int res1 = 0 ;
23214 wxPoint temp2 ;
23215 PyObject * obj0 = 0 ;
23216 PyObject * obj1 = 0 ;
23217 char * kwnames[] = {
23218 (char *) "self",(char *) "point", NULL
23219 };
23220
23221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23223 if (!SWIG_IsOK(res1)) {
23224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23225 }
23226 arg1 = reinterpret_cast< wxDC * >(argp1);
23227 {
23228 arg2 = &temp2;
23229 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23230 }
23231 {
23232 PyThreadState* __tstate = wxPyBeginAllowThreads();
23233 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
23234 wxPyEndAllowThreads(__tstate);
23235 if (PyErr_Occurred()) SWIG_fail;
23236 }
23237 resultobj = SWIG_Py_Void();
23238 return resultobj;
23239 fail:
23240 return NULL;
23241 }
23242
23243
23244 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23245 PyObject *resultobj = 0;
23246 wxDC *arg1 = (wxDC *) 0 ;
23247 wxPoint result;
23248 void *argp1 = 0 ;
23249 int res1 = 0 ;
23250 PyObject *swig_obj[1] ;
23251
23252 if (!args) SWIG_fail;
23253 swig_obj[0] = args;
23254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23255 if (!SWIG_IsOK(res1)) {
23256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23257 }
23258 arg1 = reinterpret_cast< wxDC * >(argp1);
23259 {
23260 PyThreadState* __tstate = wxPyBeginAllowThreads();
23261 result = ((wxDC const *)arg1)->GetDeviceOrigin();
23262 wxPyEndAllowThreads(__tstate);
23263 if (PyErr_Occurred()) SWIG_fail;
23264 }
23265 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23266 return resultobj;
23267 fail:
23268 return NULL;
23269 }
23270
23271
23272 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23273 PyObject *resultobj = 0;
23274 wxDC *arg1 = (wxDC *) 0 ;
23275 int *arg2 = (int *) 0 ;
23276 int *arg3 = (int *) 0 ;
23277 void *argp1 = 0 ;
23278 int res1 = 0 ;
23279 int temp2 ;
23280 int res2 = SWIG_TMPOBJ ;
23281 int temp3 ;
23282 int res3 = SWIG_TMPOBJ ;
23283 PyObject *swig_obj[1] ;
23284
23285 arg2 = &temp2;
23286 arg3 = &temp3;
23287 if (!args) SWIG_fail;
23288 swig_obj[0] = args;
23289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23290 if (!SWIG_IsOK(res1)) {
23291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23292 }
23293 arg1 = reinterpret_cast< wxDC * >(argp1);
23294 {
23295 PyThreadState* __tstate = wxPyBeginAllowThreads();
23296 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
23297 wxPyEndAllowThreads(__tstate);
23298 if (PyErr_Occurred()) SWIG_fail;
23299 }
23300 resultobj = SWIG_Py_Void();
23301 if (SWIG_IsTmpObj(res2)) {
23302 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23303 } else {
23304 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23305 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23306 }
23307 if (SWIG_IsTmpObj(res3)) {
23308 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23309 } else {
23310 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23311 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23312 }
23313 return resultobj;
23314 fail:
23315 return NULL;
23316 }
23317
23318
23319 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23320 PyObject *resultobj = 0;
23321 wxDC *arg1 = (wxDC *) 0 ;
23322 int arg2 ;
23323 int arg3 ;
23324 void *argp1 = 0 ;
23325 int res1 = 0 ;
23326 int val2 ;
23327 int ecode2 = 0 ;
23328 int val3 ;
23329 int ecode3 = 0 ;
23330 PyObject * obj0 = 0 ;
23331 PyObject * obj1 = 0 ;
23332 PyObject * obj2 = 0 ;
23333 char * kwnames[] = {
23334 (char *) "self",(char *) "x",(char *) "y", NULL
23335 };
23336
23337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23339 if (!SWIG_IsOK(res1)) {
23340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23341 }
23342 arg1 = reinterpret_cast< wxDC * >(argp1);
23343 ecode2 = SWIG_AsVal_int(obj1, &val2);
23344 if (!SWIG_IsOK(ecode2)) {
23345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
23346 }
23347 arg2 = static_cast< int >(val2);
23348 ecode3 = SWIG_AsVal_int(obj2, &val3);
23349 if (!SWIG_IsOK(ecode3)) {
23350 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
23351 }
23352 arg3 = static_cast< int >(val3);
23353 {
23354 PyThreadState* __tstate = wxPyBeginAllowThreads();
23355 (arg1)->SetDeviceOrigin(arg2,arg3);
23356 wxPyEndAllowThreads(__tstate);
23357 if (PyErr_Occurred()) SWIG_fail;
23358 }
23359 resultobj = SWIG_Py_Void();
23360 return resultobj;
23361 fail:
23362 return NULL;
23363 }
23364
23365
23366 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23367 PyObject *resultobj = 0;
23368 wxDC *arg1 = (wxDC *) 0 ;
23369 wxPoint *arg2 = 0 ;
23370 void *argp1 = 0 ;
23371 int res1 = 0 ;
23372 wxPoint temp2 ;
23373 PyObject * obj0 = 0 ;
23374 PyObject * obj1 = 0 ;
23375 char * kwnames[] = {
23376 (char *) "self",(char *) "point", NULL
23377 };
23378
23379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23381 if (!SWIG_IsOK(res1)) {
23382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23383 }
23384 arg1 = reinterpret_cast< wxDC * >(argp1);
23385 {
23386 arg2 = &temp2;
23387 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23388 }
23389 {
23390 PyThreadState* __tstate = wxPyBeginAllowThreads();
23391 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
23392 wxPyEndAllowThreads(__tstate);
23393 if (PyErr_Occurred()) SWIG_fail;
23394 }
23395 resultobj = SWIG_Py_Void();
23396 return resultobj;
23397 fail:
23398 return NULL;
23399 }
23400
23401
23402 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23403 PyObject *resultobj = 0;
23404 wxDC *arg1 = (wxDC *) 0 ;
23405 bool arg2 ;
23406 bool arg3 ;
23407 void *argp1 = 0 ;
23408 int res1 = 0 ;
23409 bool val2 ;
23410 int ecode2 = 0 ;
23411 bool val3 ;
23412 int ecode3 = 0 ;
23413 PyObject * obj0 = 0 ;
23414 PyObject * obj1 = 0 ;
23415 PyObject * obj2 = 0 ;
23416 char * kwnames[] = {
23417 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
23418 };
23419
23420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23422 if (!SWIG_IsOK(res1)) {
23423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
23424 }
23425 arg1 = reinterpret_cast< wxDC * >(argp1);
23426 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23427 if (!SWIG_IsOK(ecode2)) {
23428 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
23429 }
23430 arg2 = static_cast< bool >(val2);
23431 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23432 if (!SWIG_IsOK(ecode3)) {
23433 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
23434 }
23435 arg3 = static_cast< bool >(val3);
23436 {
23437 PyThreadState* __tstate = wxPyBeginAllowThreads();
23438 (arg1)->SetAxisOrientation(arg2,arg3);
23439 wxPyEndAllowThreads(__tstate);
23440 if (PyErr_Occurred()) SWIG_fail;
23441 }
23442 resultobj = SWIG_Py_Void();
23443 return resultobj;
23444 fail:
23445 return NULL;
23446 }
23447
23448
23449 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23450 PyObject *resultobj = 0;
23451 wxDC *arg1 = (wxDC *) 0 ;
23452 int result;
23453 void *argp1 = 0 ;
23454 int res1 = 0 ;
23455 PyObject *swig_obj[1] ;
23456
23457 if (!args) SWIG_fail;
23458 swig_obj[0] = args;
23459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23460 if (!SWIG_IsOK(res1)) {
23461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
23462 }
23463 arg1 = reinterpret_cast< wxDC * >(argp1);
23464 {
23465 PyThreadState* __tstate = wxPyBeginAllowThreads();
23466 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
23467 wxPyEndAllowThreads(__tstate);
23468 if (PyErr_Occurred()) SWIG_fail;
23469 }
23470 resultobj = SWIG_From_int(static_cast< int >(result));
23471 return resultobj;
23472 fail:
23473 return NULL;
23474 }
23475
23476
23477 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23478 PyObject *resultobj = 0;
23479 wxDC *arg1 = (wxDC *) 0 ;
23480 int arg2 ;
23481 void *argp1 = 0 ;
23482 int res1 = 0 ;
23483 int val2 ;
23484 int ecode2 = 0 ;
23485 PyObject * obj0 = 0 ;
23486 PyObject * obj1 = 0 ;
23487 char * kwnames[] = {
23488 (char *) "self",(char *) "function", NULL
23489 };
23490
23491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
23492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23493 if (!SWIG_IsOK(res1)) {
23494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
23495 }
23496 arg1 = reinterpret_cast< wxDC * >(argp1);
23497 ecode2 = SWIG_AsVal_int(obj1, &val2);
23498 if (!SWIG_IsOK(ecode2)) {
23499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
23500 }
23501 arg2 = static_cast< int >(val2);
23502 {
23503 PyThreadState* __tstate = wxPyBeginAllowThreads();
23504 (arg1)->SetLogicalFunction(arg2);
23505 wxPyEndAllowThreads(__tstate);
23506 if (PyErr_Occurred()) SWIG_fail;
23507 }
23508 resultobj = SWIG_Py_Void();
23509 return resultobj;
23510 fail:
23511 return NULL;
23512 }
23513
23514
23515 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23516 PyObject *resultobj = 0;
23517 wxDC *arg1 = (wxDC *) 0 ;
23518 void *argp1 = 0 ;
23519 int res1 = 0 ;
23520 PyObject *swig_obj[1] ;
23521
23522 if (!args) SWIG_fail;
23523 swig_obj[0] = args;
23524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23525 if (!SWIG_IsOK(res1)) {
23526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23527 }
23528 arg1 = reinterpret_cast< wxDC * >(argp1);
23529 {
23530 PyThreadState* __tstate = wxPyBeginAllowThreads();
23531 (arg1)->ComputeScaleAndOrigin();
23532 wxPyEndAllowThreads(__tstate);
23533 if (PyErr_Occurred()) SWIG_fail;
23534 }
23535 resultobj = SWIG_Py_Void();
23536 return resultobj;
23537 fail:
23538 return NULL;
23539 }
23540
23541
23542 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23543 PyObject *resultobj = 0;
23544 wxDC *arg1 = (wxDC *) 0 ;
23545 int arg2 ;
23546 int arg3 ;
23547 void *argp1 = 0 ;
23548 int res1 = 0 ;
23549 int val2 ;
23550 int ecode2 = 0 ;
23551 int val3 ;
23552 int ecode3 = 0 ;
23553 PyObject * obj0 = 0 ;
23554 PyObject * obj1 = 0 ;
23555 PyObject * obj2 = 0 ;
23556 char * kwnames[] = {
23557 (char *) "self",(char *) "x",(char *) "y", NULL
23558 };
23559
23560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23562 if (!SWIG_IsOK(res1)) {
23563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23564 }
23565 arg1 = reinterpret_cast< wxDC * >(argp1);
23566 ecode2 = SWIG_AsVal_int(obj1, &val2);
23567 if (!SWIG_IsOK(ecode2)) {
23568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
23569 }
23570 arg2 = static_cast< int >(val2);
23571 ecode3 = SWIG_AsVal_int(obj2, &val3);
23572 if (!SWIG_IsOK(ecode3)) {
23573 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
23574 }
23575 arg3 = static_cast< int >(val3);
23576 {
23577 PyThreadState* __tstate = wxPyBeginAllowThreads();
23578 (arg1)->CalcBoundingBox(arg2,arg3);
23579 wxPyEndAllowThreads(__tstate);
23580 if (PyErr_Occurred()) SWIG_fail;
23581 }
23582 resultobj = SWIG_Py_Void();
23583 return resultobj;
23584 fail:
23585 return NULL;
23586 }
23587
23588
23589 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23590 PyObject *resultobj = 0;
23591 wxDC *arg1 = (wxDC *) 0 ;
23592 wxPoint *arg2 = 0 ;
23593 void *argp1 = 0 ;
23594 int res1 = 0 ;
23595 wxPoint temp2 ;
23596 PyObject * obj0 = 0 ;
23597 PyObject * obj1 = 0 ;
23598 char * kwnames[] = {
23599 (char *) "self",(char *) "point", NULL
23600 };
23601
23602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23604 if (!SWIG_IsOK(res1)) {
23605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23606 }
23607 arg1 = reinterpret_cast< wxDC * >(argp1);
23608 {
23609 arg2 = &temp2;
23610 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23611 }
23612 {
23613 PyThreadState* __tstate = wxPyBeginAllowThreads();
23614 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23615 wxPyEndAllowThreads(__tstate);
23616 if (PyErr_Occurred()) SWIG_fail;
23617 }
23618 resultobj = SWIG_Py_Void();
23619 return resultobj;
23620 fail:
23621 return NULL;
23622 }
23623
23624
23625 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23626 PyObject *resultobj = 0;
23627 wxDC *arg1 = (wxDC *) 0 ;
23628 void *argp1 = 0 ;
23629 int res1 = 0 ;
23630 PyObject *swig_obj[1] ;
23631
23632 if (!args) SWIG_fail;
23633 swig_obj[0] = args;
23634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23635 if (!SWIG_IsOK(res1)) {
23636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23637 }
23638 arg1 = reinterpret_cast< wxDC * >(argp1);
23639 {
23640 PyThreadState* __tstate = wxPyBeginAllowThreads();
23641 (arg1)->ResetBoundingBox();
23642 wxPyEndAllowThreads(__tstate);
23643 if (PyErr_Occurred()) SWIG_fail;
23644 }
23645 resultobj = SWIG_Py_Void();
23646 return resultobj;
23647 fail:
23648 return NULL;
23649 }
23650
23651
23652 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23653 PyObject *resultobj = 0;
23654 wxDC *arg1 = (wxDC *) 0 ;
23655 int result;
23656 void *argp1 = 0 ;
23657 int res1 = 0 ;
23658 PyObject *swig_obj[1] ;
23659
23660 if (!args) SWIG_fail;
23661 swig_obj[0] = args;
23662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23663 if (!SWIG_IsOK(res1)) {
23664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23665 }
23666 arg1 = reinterpret_cast< wxDC * >(argp1);
23667 {
23668 PyThreadState* __tstate = wxPyBeginAllowThreads();
23669 result = (int)((wxDC const *)arg1)->MinX();
23670 wxPyEndAllowThreads(__tstate);
23671 if (PyErr_Occurred()) SWIG_fail;
23672 }
23673 resultobj = SWIG_From_int(static_cast< int >(result));
23674 return resultobj;
23675 fail:
23676 return NULL;
23677 }
23678
23679
23680 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23681 PyObject *resultobj = 0;
23682 wxDC *arg1 = (wxDC *) 0 ;
23683 int result;
23684 void *argp1 = 0 ;
23685 int res1 = 0 ;
23686 PyObject *swig_obj[1] ;
23687
23688 if (!args) SWIG_fail;
23689 swig_obj[0] = args;
23690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23691 if (!SWIG_IsOK(res1)) {
23692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23693 }
23694 arg1 = reinterpret_cast< wxDC * >(argp1);
23695 {
23696 PyThreadState* __tstate = wxPyBeginAllowThreads();
23697 result = (int)((wxDC const *)arg1)->MaxX();
23698 wxPyEndAllowThreads(__tstate);
23699 if (PyErr_Occurred()) SWIG_fail;
23700 }
23701 resultobj = SWIG_From_int(static_cast< int >(result));
23702 return resultobj;
23703 fail:
23704 return NULL;
23705 }
23706
23707
23708 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23709 PyObject *resultobj = 0;
23710 wxDC *arg1 = (wxDC *) 0 ;
23711 int result;
23712 void *argp1 = 0 ;
23713 int res1 = 0 ;
23714 PyObject *swig_obj[1] ;
23715
23716 if (!args) SWIG_fail;
23717 swig_obj[0] = args;
23718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23719 if (!SWIG_IsOK(res1)) {
23720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23721 }
23722 arg1 = reinterpret_cast< wxDC * >(argp1);
23723 {
23724 PyThreadState* __tstate = wxPyBeginAllowThreads();
23725 result = (int)((wxDC const *)arg1)->MinY();
23726 wxPyEndAllowThreads(__tstate);
23727 if (PyErr_Occurred()) SWIG_fail;
23728 }
23729 resultobj = SWIG_From_int(static_cast< int >(result));
23730 return resultobj;
23731 fail:
23732 return NULL;
23733 }
23734
23735
23736 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23737 PyObject *resultobj = 0;
23738 wxDC *arg1 = (wxDC *) 0 ;
23739 int result;
23740 void *argp1 = 0 ;
23741 int res1 = 0 ;
23742 PyObject *swig_obj[1] ;
23743
23744 if (!args) SWIG_fail;
23745 swig_obj[0] = args;
23746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23747 if (!SWIG_IsOK(res1)) {
23748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23749 }
23750 arg1 = reinterpret_cast< wxDC * >(argp1);
23751 {
23752 PyThreadState* __tstate = wxPyBeginAllowThreads();
23753 result = (int)((wxDC const *)arg1)->MaxY();
23754 wxPyEndAllowThreads(__tstate);
23755 if (PyErr_Occurred()) SWIG_fail;
23756 }
23757 resultobj = SWIG_From_int(static_cast< int >(result));
23758 return resultobj;
23759 fail:
23760 return NULL;
23761 }
23762
23763
23764 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23765 PyObject *resultobj = 0;
23766 wxDC *arg1 = (wxDC *) 0 ;
23767 int *arg2 = (int *) 0 ;
23768 int *arg3 = (int *) 0 ;
23769 int *arg4 = (int *) 0 ;
23770 int *arg5 = (int *) 0 ;
23771 void *argp1 = 0 ;
23772 int res1 = 0 ;
23773 int temp2 ;
23774 int res2 = SWIG_TMPOBJ ;
23775 int temp3 ;
23776 int res3 = SWIG_TMPOBJ ;
23777 int temp4 ;
23778 int res4 = SWIG_TMPOBJ ;
23779 int temp5 ;
23780 int res5 = SWIG_TMPOBJ ;
23781 PyObject *swig_obj[1] ;
23782
23783 arg2 = &temp2;
23784 arg3 = &temp3;
23785 arg4 = &temp4;
23786 arg5 = &temp5;
23787 if (!args) SWIG_fail;
23788 swig_obj[0] = args;
23789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23790 if (!SWIG_IsOK(res1)) {
23791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23792 }
23793 arg1 = reinterpret_cast< wxDC * >(argp1);
23794 {
23795 PyThreadState* __tstate = wxPyBeginAllowThreads();
23796 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23797 wxPyEndAllowThreads(__tstate);
23798 if (PyErr_Occurred()) SWIG_fail;
23799 }
23800 resultobj = SWIG_Py_Void();
23801 if (SWIG_IsTmpObj(res2)) {
23802 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23803 } else {
23804 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23805 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23806 }
23807 if (SWIG_IsTmpObj(res3)) {
23808 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23809 } else {
23810 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23811 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23812 }
23813 if (SWIG_IsTmpObj(res4)) {
23814 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23815 } else {
23816 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23817 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23818 }
23819 if (SWIG_IsTmpObj(res5)) {
23820 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23821 } else {
23822 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23823 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23824 }
23825 return resultobj;
23826 fail:
23827 return NULL;
23828 }
23829
23830
23831 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23832 PyObject *resultobj = 0;
23833 wxDC *arg1 = (wxDC *) 0 ;
23834 wxLayoutDirection result;
23835 void *argp1 = 0 ;
23836 int res1 = 0 ;
23837 PyObject *swig_obj[1] ;
23838
23839 if (!args) SWIG_fail;
23840 swig_obj[0] = args;
23841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23842 if (!SWIG_IsOK(res1)) {
23843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23844 }
23845 arg1 = reinterpret_cast< wxDC * >(argp1);
23846 {
23847 PyThreadState* __tstate = wxPyBeginAllowThreads();
23848 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23849 wxPyEndAllowThreads(__tstate);
23850 if (PyErr_Occurred()) SWIG_fail;
23851 }
23852 resultobj = SWIG_From_int(static_cast< int >(result));
23853 return resultobj;
23854 fail:
23855 return NULL;
23856 }
23857
23858
23859 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23860 PyObject *resultobj = 0;
23861 wxDC *arg1 = (wxDC *) 0 ;
23862 wxLayoutDirection arg2 ;
23863 void *argp1 = 0 ;
23864 int res1 = 0 ;
23865 int val2 ;
23866 int ecode2 = 0 ;
23867 PyObject * obj0 = 0 ;
23868 PyObject * obj1 = 0 ;
23869 char * kwnames[] = {
23870 (char *) "self",(char *) "dir", NULL
23871 };
23872
23873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23875 if (!SWIG_IsOK(res1)) {
23876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23877 }
23878 arg1 = reinterpret_cast< wxDC * >(argp1);
23879 ecode2 = SWIG_AsVal_int(obj1, &val2);
23880 if (!SWIG_IsOK(ecode2)) {
23881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23882 }
23883 arg2 = static_cast< wxLayoutDirection >(val2);
23884 {
23885 PyThreadState* __tstate = wxPyBeginAllowThreads();
23886 (arg1)->SetLayoutDirection(arg2);
23887 wxPyEndAllowThreads(__tstate);
23888 if (PyErr_Occurred()) SWIG_fail;
23889 }
23890 resultobj = SWIG_Py_Void();
23891 return resultobj;
23892 fail:
23893 return NULL;
23894 }
23895
23896
23897 SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23898 PyObject *resultobj = 0;
23899 wxDC *arg1 = (wxDC *) 0 ;
23900 long result;
23901 void *argp1 = 0 ;
23902 int res1 = 0 ;
23903 PyObject *swig_obj[1] ;
23904
23905 if (!args) SWIG_fail;
23906 swig_obj[0] = args;
23907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23908 if (!SWIG_IsOK(res1)) {
23909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
23910 }
23911 arg1 = reinterpret_cast< wxDC * >(argp1);
23912 {
23913 PyThreadState* __tstate = wxPyBeginAllowThreads();
23914 result = (long)(arg1)->GetHDC();
23915 wxPyEndAllowThreads(__tstate);
23916 if (PyErr_Occurred()) SWIG_fail;
23917 }
23918 resultobj = SWIG_From_long(static_cast< long >(result));
23919 return resultobj;
23920 fail:
23921 return NULL;
23922 }
23923
23924
23925 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23926 PyObject *resultobj = 0;
23927 wxDC *arg1 = (wxDC *) 0 ;
23928 PyObject *arg2 = (PyObject *) 0 ;
23929 PyObject *arg3 = (PyObject *) 0 ;
23930 PyObject *arg4 = (PyObject *) 0 ;
23931 PyObject *result = 0 ;
23932 void *argp1 = 0 ;
23933 int res1 = 0 ;
23934 PyObject * obj0 = 0 ;
23935 PyObject * obj1 = 0 ;
23936 PyObject * obj2 = 0 ;
23937 PyObject * obj3 = 0 ;
23938 char * kwnames[] = {
23939 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23940 };
23941
23942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23944 if (!SWIG_IsOK(res1)) {
23945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23946 }
23947 arg1 = reinterpret_cast< wxDC * >(argp1);
23948 arg2 = obj1;
23949 arg3 = obj2;
23950 arg4 = obj3;
23951 {
23952 PyThreadState* __tstate = wxPyBeginAllowThreads();
23953 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23954 wxPyEndAllowThreads(__tstate);
23955 if (PyErr_Occurred()) SWIG_fail;
23956 }
23957 resultobj = result;
23958 return resultobj;
23959 fail:
23960 return NULL;
23961 }
23962
23963
23964 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23965 PyObject *resultobj = 0;
23966 wxDC *arg1 = (wxDC *) 0 ;
23967 PyObject *arg2 = (PyObject *) 0 ;
23968 PyObject *arg3 = (PyObject *) 0 ;
23969 PyObject *arg4 = (PyObject *) 0 ;
23970 PyObject *result = 0 ;
23971 void *argp1 = 0 ;
23972 int res1 = 0 ;
23973 PyObject * obj0 = 0 ;
23974 PyObject * obj1 = 0 ;
23975 PyObject * obj2 = 0 ;
23976 PyObject * obj3 = 0 ;
23977 char * kwnames[] = {
23978 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23979 };
23980
23981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23983 if (!SWIG_IsOK(res1)) {
23984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23985 }
23986 arg1 = reinterpret_cast< wxDC * >(argp1);
23987 arg2 = obj1;
23988 arg3 = obj2;
23989 arg4 = obj3;
23990 {
23991 PyThreadState* __tstate = wxPyBeginAllowThreads();
23992 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23993 wxPyEndAllowThreads(__tstate);
23994 if (PyErr_Occurred()) SWIG_fail;
23995 }
23996 resultobj = result;
23997 return resultobj;
23998 fail:
23999 return NULL;
24000 }
24001
24002
24003 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24004 PyObject *resultobj = 0;
24005 wxDC *arg1 = (wxDC *) 0 ;
24006 PyObject *arg2 = (PyObject *) 0 ;
24007 PyObject *arg3 = (PyObject *) 0 ;
24008 PyObject *arg4 = (PyObject *) 0 ;
24009 PyObject *result = 0 ;
24010 void *argp1 = 0 ;
24011 int res1 = 0 ;
24012 PyObject * obj0 = 0 ;
24013 PyObject * obj1 = 0 ;
24014 PyObject * obj2 = 0 ;
24015 PyObject * obj3 = 0 ;
24016 char * kwnames[] = {
24017 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24018 };
24019
24020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24022 if (!SWIG_IsOK(res1)) {
24023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
24024 }
24025 arg1 = reinterpret_cast< wxDC * >(argp1);
24026 arg2 = obj1;
24027 arg3 = obj2;
24028 arg4 = obj3;
24029 {
24030 PyThreadState* __tstate = wxPyBeginAllowThreads();
24031 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
24032 wxPyEndAllowThreads(__tstate);
24033 if (PyErr_Occurred()) SWIG_fail;
24034 }
24035 resultobj = result;
24036 return resultobj;
24037 fail:
24038 return NULL;
24039 }
24040
24041
24042 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24043 PyObject *resultobj = 0;
24044 wxDC *arg1 = (wxDC *) 0 ;
24045 PyObject *arg2 = (PyObject *) 0 ;
24046 PyObject *arg3 = (PyObject *) 0 ;
24047 PyObject *arg4 = (PyObject *) 0 ;
24048 PyObject *result = 0 ;
24049 void *argp1 = 0 ;
24050 int res1 = 0 ;
24051 PyObject * obj0 = 0 ;
24052 PyObject * obj1 = 0 ;
24053 PyObject * obj2 = 0 ;
24054 PyObject * obj3 = 0 ;
24055 char * kwnames[] = {
24056 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24057 };
24058
24059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24061 if (!SWIG_IsOK(res1)) {
24062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
24063 }
24064 arg1 = reinterpret_cast< wxDC * >(argp1);
24065 arg2 = obj1;
24066 arg3 = obj2;
24067 arg4 = obj3;
24068 {
24069 PyThreadState* __tstate = wxPyBeginAllowThreads();
24070 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
24071 wxPyEndAllowThreads(__tstate);
24072 if (PyErr_Occurred()) SWIG_fail;
24073 }
24074 resultobj = result;
24075 return resultobj;
24076 fail:
24077 return NULL;
24078 }
24079
24080
24081 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24082 PyObject *resultobj = 0;
24083 wxDC *arg1 = (wxDC *) 0 ;
24084 PyObject *arg2 = (PyObject *) 0 ;
24085 PyObject *arg3 = (PyObject *) 0 ;
24086 PyObject *arg4 = (PyObject *) 0 ;
24087 PyObject *result = 0 ;
24088 void *argp1 = 0 ;
24089 int res1 = 0 ;
24090 PyObject * obj0 = 0 ;
24091 PyObject * obj1 = 0 ;
24092 PyObject * obj2 = 0 ;
24093 PyObject * obj3 = 0 ;
24094 char * kwnames[] = {
24095 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24096 };
24097
24098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24100 if (!SWIG_IsOK(res1)) {
24101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
24102 }
24103 arg1 = reinterpret_cast< wxDC * >(argp1);
24104 arg2 = obj1;
24105 arg3 = obj2;
24106 arg4 = obj3;
24107 {
24108 PyThreadState* __tstate = wxPyBeginAllowThreads();
24109 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
24110 wxPyEndAllowThreads(__tstate);
24111 if (PyErr_Occurred()) SWIG_fail;
24112 }
24113 resultobj = result;
24114 return resultobj;
24115 fail:
24116 return NULL;
24117 }
24118
24119
24120 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24121 PyObject *resultobj = 0;
24122 wxDC *arg1 = (wxDC *) 0 ;
24123 PyObject *arg2 = (PyObject *) 0 ;
24124 PyObject *arg3 = (PyObject *) 0 ;
24125 PyObject *arg4 = (PyObject *) 0 ;
24126 PyObject *arg5 = (PyObject *) 0 ;
24127 PyObject *result = 0 ;
24128 void *argp1 = 0 ;
24129 int res1 = 0 ;
24130 PyObject * obj0 = 0 ;
24131 PyObject * obj1 = 0 ;
24132 PyObject * obj2 = 0 ;
24133 PyObject * obj3 = 0 ;
24134 PyObject * obj4 = 0 ;
24135 char * kwnames[] = {
24136 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
24137 };
24138
24139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24141 if (!SWIG_IsOK(res1)) {
24142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
24143 }
24144 arg1 = reinterpret_cast< wxDC * >(argp1);
24145 arg2 = obj1;
24146 arg3 = obj2;
24147 arg4 = obj3;
24148 arg5 = obj4;
24149 {
24150 PyThreadState* __tstate = wxPyBeginAllowThreads();
24151 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
24152 wxPyEndAllowThreads(__tstate);
24153 if (PyErr_Occurred()) SWIG_fail;
24154 }
24155 resultobj = result;
24156 return resultobj;
24157 fail:
24158 return NULL;
24159 }
24160
24161
24162 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24163 PyObject *obj;
24164 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24165 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
24166 return SWIG_Py_Void();
24167 }
24168
24169 SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24170 PyObject *resultobj = 0;
24171 wxDC *arg1 = 0 ;
24172 wxColour *arg2 = 0 ;
24173 wxDCTextColourChanger *result = 0 ;
24174 void *argp1 = 0 ;
24175 int res1 = 0 ;
24176 wxColour temp2 ;
24177 PyObject * obj0 = 0 ;
24178 PyObject * obj1 = 0 ;
24179 char * kwnames[] = {
24180 (char *) "dc",(char *) "col", NULL
24181 };
24182
24183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24184 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24185 if (!SWIG_IsOK(res1)) {
24186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24187 }
24188 if (!argp1) {
24189 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24190 }
24191 arg1 = reinterpret_cast< wxDC * >(argp1);
24192 {
24193 arg2 = &temp2;
24194 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24195 }
24196 {
24197 PyThreadState* __tstate = wxPyBeginAllowThreads();
24198 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
24199 wxPyEndAllowThreads(__tstate);
24200 if (PyErr_Occurred()) SWIG_fail;
24201 }
24202 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
24203 return resultobj;
24204 fail:
24205 return NULL;
24206 }
24207
24208
24209 SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24210 PyObject *resultobj = 0;
24211 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
24212 void *argp1 = 0 ;
24213 int res1 = 0 ;
24214 PyObject *swig_obj[1] ;
24215
24216 if (!args) SWIG_fail;
24217 swig_obj[0] = args;
24218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
24219 if (!SWIG_IsOK(res1)) {
24220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
24221 }
24222 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
24223 {
24224 PyThreadState* __tstate = wxPyBeginAllowThreads();
24225 delete arg1;
24226
24227 wxPyEndAllowThreads(__tstate);
24228 if (PyErr_Occurred()) SWIG_fail;
24229 }
24230 resultobj = SWIG_Py_Void();
24231 return resultobj;
24232 fail:
24233 return NULL;
24234 }
24235
24236
24237 SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24238 PyObject *obj;
24239 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24240 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
24241 return SWIG_Py_Void();
24242 }
24243
24244 SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24245 return SWIG_Python_InitShadowInstance(args);
24246 }
24247
24248 SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24249 PyObject *resultobj = 0;
24250 wxDC *arg1 = 0 ;
24251 wxPen *arg2 = 0 ;
24252 wxDCPenChanger *result = 0 ;
24253 void *argp1 = 0 ;
24254 int res1 = 0 ;
24255 void *argp2 = 0 ;
24256 int res2 = 0 ;
24257 PyObject * obj0 = 0 ;
24258 PyObject * obj1 = 0 ;
24259 char * kwnames[] = {
24260 (char *) "dc",(char *) "pen", NULL
24261 };
24262
24263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24264 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24265 if (!SWIG_IsOK(res1)) {
24266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24267 }
24268 if (!argp1) {
24269 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24270 }
24271 arg1 = reinterpret_cast< wxDC * >(argp1);
24272 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
24273 if (!SWIG_IsOK(res2)) {
24274 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24275 }
24276 if (!argp2) {
24277 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24278 }
24279 arg2 = reinterpret_cast< wxPen * >(argp2);
24280 {
24281 PyThreadState* __tstate = wxPyBeginAllowThreads();
24282 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
24283 wxPyEndAllowThreads(__tstate);
24284 if (PyErr_Occurred()) SWIG_fail;
24285 }
24286 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
24287 return resultobj;
24288 fail:
24289 return NULL;
24290 }
24291
24292
24293 SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24294 PyObject *resultobj = 0;
24295 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
24296 void *argp1 = 0 ;
24297 int res1 = 0 ;
24298 PyObject *swig_obj[1] ;
24299
24300 if (!args) SWIG_fail;
24301 swig_obj[0] = args;
24302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
24303 if (!SWIG_IsOK(res1)) {
24304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
24305 }
24306 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
24307 {
24308 PyThreadState* __tstate = wxPyBeginAllowThreads();
24309 delete arg1;
24310
24311 wxPyEndAllowThreads(__tstate);
24312 if (PyErr_Occurred()) SWIG_fail;
24313 }
24314 resultobj = SWIG_Py_Void();
24315 return resultobj;
24316 fail:
24317 return NULL;
24318 }
24319
24320
24321 SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24322 PyObject *obj;
24323 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24324 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
24325 return SWIG_Py_Void();
24326 }
24327
24328 SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24329 return SWIG_Python_InitShadowInstance(args);
24330 }
24331
24332 SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24333 PyObject *resultobj = 0;
24334 wxDC *arg1 = 0 ;
24335 wxBrush *arg2 = 0 ;
24336 wxDCBrushChanger *result = 0 ;
24337 void *argp1 = 0 ;
24338 int res1 = 0 ;
24339 void *argp2 = 0 ;
24340 int res2 = 0 ;
24341 PyObject * obj0 = 0 ;
24342 PyObject * obj1 = 0 ;
24343 char * kwnames[] = {
24344 (char *) "dc",(char *) "brush", NULL
24345 };
24346
24347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24348 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24349 if (!SWIG_IsOK(res1)) {
24350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24351 }
24352 if (!argp1) {
24353 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24354 }
24355 arg1 = reinterpret_cast< wxDC * >(argp1);
24356 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
24357 if (!SWIG_IsOK(res2)) {
24358 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24359 }
24360 if (!argp2) {
24361 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24362 }
24363 arg2 = reinterpret_cast< wxBrush * >(argp2);
24364 {
24365 PyThreadState* __tstate = wxPyBeginAllowThreads();
24366 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
24367 wxPyEndAllowThreads(__tstate);
24368 if (PyErr_Occurred()) SWIG_fail;
24369 }
24370 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
24371 return resultobj;
24372 fail:
24373 return NULL;
24374 }
24375
24376
24377 SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24378 PyObject *resultobj = 0;
24379 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
24380 void *argp1 = 0 ;
24381 int res1 = 0 ;
24382 PyObject *swig_obj[1] ;
24383
24384 if (!args) SWIG_fail;
24385 swig_obj[0] = args;
24386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
24387 if (!SWIG_IsOK(res1)) {
24388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
24389 }
24390 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
24391 {
24392 PyThreadState* __tstate = wxPyBeginAllowThreads();
24393 delete arg1;
24394
24395 wxPyEndAllowThreads(__tstate);
24396 if (PyErr_Occurred()) SWIG_fail;
24397 }
24398 resultobj = SWIG_Py_Void();
24399 return resultobj;
24400 fail:
24401 return NULL;
24402 }
24403
24404
24405 SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24406 PyObject *obj;
24407 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24408 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
24409 return SWIG_Py_Void();
24410 }
24411
24412 SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24413 return SWIG_Python_InitShadowInstance(args);
24414 }
24415
24416 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24417 PyObject *resultobj = 0;
24418 wxDC *arg1 = 0 ;
24419 wxRegion *arg2 = 0 ;
24420 wxDCClipper *result = 0 ;
24421 void *argp1 = 0 ;
24422 int res1 = 0 ;
24423 void *argp2 = 0 ;
24424 int res2 = 0 ;
24425
24426 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24428 if (!SWIG_IsOK(res1)) {
24429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24430 }
24431 if (!argp1) {
24432 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24433 }
24434 arg1 = reinterpret_cast< wxDC * >(argp1);
24435 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
24436 if (!SWIG_IsOK(res2)) {
24437 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24438 }
24439 if (!argp2) {
24440 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24441 }
24442 arg2 = reinterpret_cast< wxRegion * >(argp2);
24443 {
24444 PyThreadState* __tstate = wxPyBeginAllowThreads();
24445 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
24446 wxPyEndAllowThreads(__tstate);
24447 if (PyErr_Occurred()) SWIG_fail;
24448 }
24449 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24450 return resultobj;
24451 fail:
24452 return NULL;
24453 }
24454
24455
24456 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24457 PyObject *resultobj = 0;
24458 wxDC *arg1 = 0 ;
24459 wxRect *arg2 = 0 ;
24460 wxDCClipper *result = 0 ;
24461 void *argp1 = 0 ;
24462 int res1 = 0 ;
24463 wxRect temp2 ;
24464
24465 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24467 if (!SWIG_IsOK(res1)) {
24468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24469 }
24470 if (!argp1) {
24471 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24472 }
24473 arg1 = reinterpret_cast< wxDC * >(argp1);
24474 {
24475 arg2 = &temp2;
24476 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
24477 }
24478 {
24479 PyThreadState* __tstate = wxPyBeginAllowThreads();
24480 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
24481 wxPyEndAllowThreads(__tstate);
24482 if (PyErr_Occurred()) SWIG_fail;
24483 }
24484 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24485 return resultobj;
24486 fail:
24487 return NULL;
24488 }
24489
24490
24491 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24492 PyObject *resultobj = 0;
24493 wxDC *arg1 = 0 ;
24494 int arg2 ;
24495 int arg3 ;
24496 int arg4 ;
24497 int arg5 ;
24498 wxDCClipper *result = 0 ;
24499 void *argp1 = 0 ;
24500 int res1 = 0 ;
24501 int val2 ;
24502 int ecode2 = 0 ;
24503 int val3 ;
24504 int ecode3 = 0 ;
24505 int val4 ;
24506 int ecode4 = 0 ;
24507 int val5 ;
24508 int ecode5 = 0 ;
24509
24510 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
24511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24512 if (!SWIG_IsOK(res1)) {
24513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24514 }
24515 if (!argp1) {
24516 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24517 }
24518 arg1 = reinterpret_cast< wxDC * >(argp1);
24519 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
24520 if (!SWIG_IsOK(ecode2)) {
24521 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
24522 }
24523 arg2 = static_cast< int >(val2);
24524 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24525 if (!SWIG_IsOK(ecode3)) {
24526 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
24527 }
24528 arg3 = static_cast< int >(val3);
24529 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
24530 if (!SWIG_IsOK(ecode4)) {
24531 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
24532 }
24533 arg4 = static_cast< int >(val4);
24534 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
24535 if (!SWIG_IsOK(ecode5)) {
24536 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
24537 }
24538 arg5 = static_cast< int >(val5);
24539 {
24540 PyThreadState* __tstate = wxPyBeginAllowThreads();
24541 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
24542 wxPyEndAllowThreads(__tstate);
24543 if (PyErr_Occurred()) SWIG_fail;
24544 }
24545 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24546 return resultobj;
24547 fail:
24548 return NULL;
24549 }
24550
24551
24552 SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
24553 int argc;
24554 PyObject *argv[6];
24555
24556 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
24557 --argc;
24558 if (argc == 2) {
24559 int _v = 0;
24560 {
24561 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
24562 _v = SWIG_CheckState(res);
24563 }
24564 if (!_v) goto check_1;
24565 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
24566 }
24567 check_1:
24568
24569 if (argc == 2) {
24570 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
24571 }
24572 if (argc == 5) {
24573 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
24574 }
24575
24576 fail:
24577 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
24578 return NULL;
24579 }
24580
24581
24582 SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24583 PyObject *resultobj = 0;
24584 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
24585 void *argp1 = 0 ;
24586 int res1 = 0 ;
24587 PyObject *swig_obj[1] ;
24588
24589 if (!args) SWIG_fail;
24590 swig_obj[0] = args;
24591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
24592 if (!SWIG_IsOK(res1)) {
24593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
24594 }
24595 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
24596 {
24597 PyThreadState* __tstate = wxPyBeginAllowThreads();
24598 delete arg1;
24599
24600 wxPyEndAllowThreads(__tstate);
24601 if (PyErr_Occurred()) SWIG_fail;
24602 }
24603 resultobj = SWIG_Py_Void();
24604 return resultobj;
24605 fail:
24606 return NULL;
24607 }
24608
24609
24610 SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24611 PyObject *obj;
24612 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24613 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
24614 return SWIG_Py_Void();
24615 }
24616
24617 SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24618 return SWIG_Python_InitShadowInstance(args);
24619 }
24620
24621 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24622 PyObject *resultobj = 0;
24623 wxScreenDC *result = 0 ;
24624
24625 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
24626 {
24627 if (!wxPyCheckForApp()) SWIG_fail;
24628 PyThreadState* __tstate = wxPyBeginAllowThreads();
24629 result = (wxScreenDC *)new wxScreenDC();
24630 wxPyEndAllowThreads(__tstate);
24631 if (PyErr_Occurred()) SWIG_fail;
24632 }
24633 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
24634 return resultobj;
24635 fail:
24636 return NULL;
24637 }
24638
24639
24640 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24641 PyObject *resultobj = 0;
24642 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24643 wxWindow *arg2 = (wxWindow *) 0 ;
24644 bool result;
24645 void *argp1 = 0 ;
24646 int res1 = 0 ;
24647 void *argp2 = 0 ;
24648 int res2 = 0 ;
24649 PyObject * obj0 = 0 ;
24650 PyObject * obj1 = 0 ;
24651 char * kwnames[] = {
24652 (char *) "self",(char *) "window", NULL
24653 };
24654
24655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
24656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24657 if (!SWIG_IsOK(res1)) {
24658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24659 }
24660 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24661 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24662 if (!SWIG_IsOK(res2)) {
24663 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
24664 }
24665 arg2 = reinterpret_cast< wxWindow * >(argp2);
24666 {
24667 PyThreadState* __tstate = wxPyBeginAllowThreads();
24668 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24669 wxPyEndAllowThreads(__tstate);
24670 if (PyErr_Occurred()) SWIG_fail;
24671 }
24672 {
24673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24674 }
24675 return resultobj;
24676 fail:
24677 return NULL;
24678 }
24679
24680
24681 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24682 PyObject *resultobj = 0;
24683 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24684 wxRect *arg2 = (wxRect *) NULL ;
24685 bool result;
24686 void *argp1 = 0 ;
24687 int res1 = 0 ;
24688 void *argp2 = 0 ;
24689 int res2 = 0 ;
24690 PyObject * obj0 = 0 ;
24691 PyObject * obj1 = 0 ;
24692 char * kwnames[] = {
24693 (char *) "self",(char *) "rect", NULL
24694 };
24695
24696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24698 if (!SWIG_IsOK(res1)) {
24699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24700 }
24701 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24702 if (obj1) {
24703 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24704 if (!SWIG_IsOK(res2)) {
24705 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24706 }
24707 arg2 = reinterpret_cast< wxRect * >(argp2);
24708 }
24709 {
24710 PyThreadState* __tstate = wxPyBeginAllowThreads();
24711 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24712 wxPyEndAllowThreads(__tstate);
24713 if (PyErr_Occurred()) SWIG_fail;
24714 }
24715 {
24716 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24717 }
24718 return resultobj;
24719 fail:
24720 return NULL;
24721 }
24722
24723
24724 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24725 PyObject *resultobj = 0;
24726 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24727 bool result;
24728 void *argp1 = 0 ;
24729 int res1 = 0 ;
24730 PyObject *swig_obj[1] ;
24731
24732 if (!args) SWIG_fail;
24733 swig_obj[0] = args;
24734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24735 if (!SWIG_IsOK(res1)) {
24736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24737 }
24738 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24739 {
24740 PyThreadState* __tstate = wxPyBeginAllowThreads();
24741 result = (bool)(arg1)->EndDrawingOnTop();
24742 wxPyEndAllowThreads(__tstate);
24743 if (PyErr_Occurred()) SWIG_fail;
24744 }
24745 {
24746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24747 }
24748 return resultobj;
24749 fail:
24750 return NULL;
24751 }
24752
24753
24754 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24755 PyObject *obj;
24756 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24757 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24758 return SWIG_Py_Void();
24759 }
24760
24761 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24762 return SWIG_Python_InitShadowInstance(args);
24763 }
24764
24765 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24766 PyObject *resultobj = 0;
24767 wxWindow *arg1 = (wxWindow *) 0 ;
24768 wxWindowDC *result = 0 ;
24769 void *argp1 = 0 ;
24770 int res1 = 0 ;
24771 PyObject * obj0 = 0 ;
24772 char * kwnames[] = {
24773 (char *) "win", NULL
24774 };
24775
24776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24778 if (!SWIG_IsOK(res1)) {
24779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24780 }
24781 arg1 = reinterpret_cast< wxWindow * >(argp1);
24782 {
24783 if (!wxPyCheckForApp()) SWIG_fail;
24784 PyThreadState* __tstate = wxPyBeginAllowThreads();
24785 result = (wxWindowDC *)new wxWindowDC(arg1);
24786 wxPyEndAllowThreads(__tstate);
24787 if (PyErr_Occurred()) SWIG_fail;
24788 }
24789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24790 return resultobj;
24791 fail:
24792 return NULL;
24793 }
24794
24795
24796 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24797 PyObject *obj;
24798 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24799 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24800 return SWIG_Py_Void();
24801 }
24802
24803 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24804 return SWIG_Python_InitShadowInstance(args);
24805 }
24806
24807 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24808 PyObject *resultobj = 0;
24809 wxWindow *arg1 = (wxWindow *) 0 ;
24810 wxClientDC *result = 0 ;
24811 void *argp1 = 0 ;
24812 int res1 = 0 ;
24813 PyObject * obj0 = 0 ;
24814 char * kwnames[] = {
24815 (char *) "win", NULL
24816 };
24817
24818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24820 if (!SWIG_IsOK(res1)) {
24821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24822 }
24823 arg1 = reinterpret_cast< wxWindow * >(argp1);
24824 {
24825 if (!wxPyCheckForApp()) SWIG_fail;
24826 PyThreadState* __tstate = wxPyBeginAllowThreads();
24827 result = (wxClientDC *)new wxClientDC(arg1);
24828 wxPyEndAllowThreads(__tstate);
24829 if (PyErr_Occurred()) SWIG_fail;
24830 }
24831 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24832 return resultobj;
24833 fail:
24834 return NULL;
24835 }
24836
24837
24838 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24839 PyObject *obj;
24840 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24841 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24842 return SWIG_Py_Void();
24843 }
24844
24845 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24846 return SWIG_Python_InitShadowInstance(args);
24847 }
24848
24849 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24850 PyObject *resultobj = 0;
24851 wxWindow *arg1 = (wxWindow *) 0 ;
24852 wxPaintDC *result = 0 ;
24853 void *argp1 = 0 ;
24854 int res1 = 0 ;
24855 PyObject * obj0 = 0 ;
24856 char * kwnames[] = {
24857 (char *) "win", NULL
24858 };
24859
24860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24862 if (!SWIG_IsOK(res1)) {
24863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24864 }
24865 arg1 = reinterpret_cast< wxWindow * >(argp1);
24866 {
24867 if (!wxPyCheckForApp()) SWIG_fail;
24868 PyThreadState* __tstate = wxPyBeginAllowThreads();
24869 result = (wxPaintDC *)new wxPaintDC(arg1);
24870 wxPyEndAllowThreads(__tstate);
24871 if (PyErr_Occurred()) SWIG_fail;
24872 }
24873 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24874 return resultobj;
24875 fail:
24876 return NULL;
24877 }
24878
24879
24880 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24881 PyObject *obj;
24882 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24883 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24884 return SWIG_Py_Void();
24885 }
24886
24887 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24888 return SWIG_Python_InitShadowInstance(args);
24889 }
24890
24891 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24892 PyObject *resultobj = 0;
24893 wxBitmap &arg1_defvalue = wxNullBitmap ;
24894 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24895 wxMemoryDC *result = 0 ;
24896 void *argp1 = 0 ;
24897 int res1 = 0 ;
24898 PyObject * obj0 = 0 ;
24899 char * kwnames[] = {
24900 (char *) "bitmap", NULL
24901 };
24902
24903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24904 if (obj0) {
24905 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
24906 if (!SWIG_IsOK(res1)) {
24907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24908 }
24909 if (!argp1) {
24910 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24911 }
24912 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24913 }
24914 {
24915 if (!wxPyCheckForApp()) SWIG_fail;
24916 PyThreadState* __tstate = wxPyBeginAllowThreads();
24917 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
24918 wxPyEndAllowThreads(__tstate);
24919 if (PyErr_Occurred()) SWIG_fail;
24920 }
24921 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24922 return resultobj;
24923 fail:
24924 return NULL;
24925 }
24926
24927
24928 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24929 PyObject *resultobj = 0;
24930 wxDC *arg1 = (wxDC *) 0 ;
24931 wxMemoryDC *result = 0 ;
24932 void *argp1 = 0 ;
24933 int res1 = 0 ;
24934 PyObject * obj0 = 0 ;
24935 char * kwnames[] = {
24936 (char *) "oldDC", NULL
24937 };
24938
24939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24941 if (!SWIG_IsOK(res1)) {
24942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24943 }
24944 arg1 = reinterpret_cast< wxDC * >(argp1);
24945 {
24946 if (!wxPyCheckForApp()) SWIG_fail;
24947 PyThreadState* __tstate = wxPyBeginAllowThreads();
24948 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24949 wxPyEndAllowThreads(__tstate);
24950 if (PyErr_Occurred()) SWIG_fail;
24951 }
24952 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24953 return resultobj;
24954 fail:
24955 return NULL;
24956 }
24957
24958
24959 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24960 PyObject *resultobj = 0;
24961 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24962 wxBitmap *arg2 = 0 ;
24963 void *argp1 = 0 ;
24964 int res1 = 0 ;
24965 void *argp2 = 0 ;
24966 int res2 = 0 ;
24967 PyObject * obj0 = 0 ;
24968 PyObject * obj1 = 0 ;
24969 char * kwnames[] = {
24970 (char *) "self",(char *) "bitmap", NULL
24971 };
24972
24973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24975 if (!SWIG_IsOK(res1)) {
24976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24977 }
24978 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24979 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24980 if (!SWIG_IsOK(res2)) {
24981 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24982 }
24983 if (!argp2) {
24984 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24985 }
24986 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24987 {
24988 PyThreadState* __tstate = wxPyBeginAllowThreads();
24989 (arg1)->SelectObject(*arg2);
24990 wxPyEndAllowThreads(__tstate);
24991 if (PyErr_Occurred()) SWIG_fail;
24992 }
24993 resultobj = SWIG_Py_Void();
24994 return resultobj;
24995 fail:
24996 return NULL;
24997 }
24998
24999
25000 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25001 PyObject *resultobj = 0;
25002 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
25003 wxBitmap *arg2 = 0 ;
25004 void *argp1 = 0 ;
25005 int res1 = 0 ;
25006 void *argp2 = 0 ;
25007 int res2 = 0 ;
25008 PyObject * obj0 = 0 ;
25009 PyObject * obj1 = 0 ;
25010 char * kwnames[] = {
25011 (char *) "self",(char *) "bmp", NULL
25012 };
25013
25014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
25015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
25016 if (!SWIG_IsOK(res1)) {
25017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
25018 }
25019 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
25020 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
25021 if (!SWIG_IsOK(res2)) {
25022 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25023 }
25024 if (!argp2) {
25025 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25026 }
25027 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25028 {
25029 PyThreadState* __tstate = wxPyBeginAllowThreads();
25030 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
25031 wxPyEndAllowThreads(__tstate);
25032 if (PyErr_Occurred()) SWIG_fail;
25033 }
25034 resultobj = SWIG_Py_Void();
25035 return resultobj;
25036 fail:
25037 return NULL;
25038 }
25039
25040
25041 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25042 PyObject *obj;
25043 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25044 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
25045 return SWIG_Py_Void();
25046 }
25047
25048 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25049 return SWIG_Python_InitShadowInstance(args);
25050 }
25051
25052 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25053 PyObject *resultobj = 0;
25054 wxDC *arg1 = (wxDC *) 0 ;
25055 wxBitmap &arg2_defvalue = wxNullBitmap ;
25056 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25057 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25058 wxBufferedDC *result = 0 ;
25059 void *argp1 = 0 ;
25060 int res1 = 0 ;
25061 void *argp2 = 0 ;
25062 int res2 = 0 ;
25063 int val3 ;
25064 int ecode3 = 0 ;
25065
25066 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
25067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
25068 if (!SWIG_IsOK(res1)) {
25069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
25070 }
25071 arg1 = reinterpret_cast< wxDC * >(argp1);
25072 if (swig_obj[1]) {
25073 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
25074 if (!SWIG_IsOK(res2)) {
25075 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25076 }
25077 if (!argp2) {
25078 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25079 }
25080 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25081 }
25082 if (swig_obj[2]) {
25083 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
25084 if (!SWIG_IsOK(ecode3)) {
25085 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
25086 }
25087 arg3 = static_cast< int >(val3);
25088 }
25089 {
25090 if (!wxPyCheckForApp()) SWIG_fail;
25091 PyThreadState* __tstate = wxPyBeginAllowThreads();
25092 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
25093 wxPyEndAllowThreads(__tstate);
25094 if (PyErr_Occurred()) SWIG_fail;
25095 }
25096 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
25097 return resultobj;
25098 fail:
25099 return NULL;
25100 }
25101
25102
25103 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25104 PyObject *resultobj = 0;
25105 wxDC *arg1 = (wxDC *) 0 ;
25106 wxSize *arg2 = 0 ;
25107 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25108 wxBufferedDC *result = 0 ;
25109 void *argp1 = 0 ;
25110 int res1 = 0 ;
25111 wxSize temp2 ;
25112 int val3 ;
25113 int ecode3 = 0 ;
25114
25115 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
25116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
25117 if (!SWIG_IsOK(res1)) {
25118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
25119 }
25120 arg1 = reinterpret_cast< wxDC * >(argp1);
25121 {
25122 arg2 = &temp2;
25123 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
25124 }
25125 if (swig_obj[2]) {
25126 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
25127 if (!SWIG_IsOK(ecode3)) {
25128 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
25129 }
25130 arg3 = static_cast< int >(val3);
25131 }
25132 {
25133 if (!wxPyCheckForApp()) SWIG_fail;
25134 PyThreadState* __tstate = wxPyBeginAllowThreads();
25135 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
25136 wxPyEndAllowThreads(__tstate);
25137 if (PyErr_Occurred()) SWIG_fail;
25138 }
25139 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
25140 return resultobj;
25141 fail:
25142 return NULL;
25143 }
25144
25145
25146 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
25147 int argc;
25148 PyObject *argv[4];
25149
25150 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
25151 --argc;
25152 if ((argc >= 1) && (argc <= 3)) {
25153 int _v = 0;
25154 if (argc > 1) {
25155 {
25156 void *vptr = 0;
25157 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
25158 _v = SWIG_CheckState(res);
25159 }
25160 if (!_v) goto check_1;
25161 }
25162 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
25163 }
25164 check_1:
25165
25166 if ((argc >= 2) && (argc <= 3)) {
25167 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
25168 }
25169
25170 fail:
25171 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
25172 return NULL;
25173 }
25174
25175
25176 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25177 PyObject *resultobj = 0;
25178 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25179 void *argp1 = 0 ;
25180 int res1 = 0 ;
25181 PyObject *swig_obj[1] ;
25182
25183 if (!args) SWIG_fail;
25184 swig_obj[0] = args;
25185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
25186 if (!SWIG_IsOK(res1)) {
25187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25188 }
25189 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25190 {
25191 PyThreadState* __tstate = wxPyBeginAllowThreads();
25192 delete arg1;
25193
25194 wxPyEndAllowThreads(__tstate);
25195 if (PyErr_Occurred()) SWIG_fail;
25196 }
25197 resultobj = SWIG_Py_Void();
25198 return resultobj;
25199 fail:
25200 return NULL;
25201 }
25202
25203
25204 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25205 PyObject *resultobj = 0;
25206 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25207 void *argp1 = 0 ;
25208 int res1 = 0 ;
25209 PyObject *swig_obj[1] ;
25210
25211 if (!args) SWIG_fail;
25212 swig_obj[0] = args;
25213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25214 if (!SWIG_IsOK(res1)) {
25215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25216 }
25217 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25218 {
25219 PyThreadState* __tstate = wxPyBeginAllowThreads();
25220 (arg1)->UnMask();
25221 wxPyEndAllowThreads(__tstate);
25222 if (PyErr_Occurred()) SWIG_fail;
25223 }
25224 resultobj = SWIG_Py_Void();
25225 return resultobj;
25226 fail:
25227 return NULL;
25228 }
25229
25230
25231 SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25232 PyObject *resultobj = 0;
25233 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25234 int arg2 ;
25235 void *argp1 = 0 ;
25236 int res1 = 0 ;
25237 int val2 ;
25238 int ecode2 = 0 ;
25239 PyObject * obj0 = 0 ;
25240 PyObject * obj1 = 0 ;
25241 char * kwnames[] = {
25242 (char *) "self",(char *) "style", NULL
25243 };
25244
25245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
25246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25247 if (!SWIG_IsOK(res1)) {
25248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25249 }
25250 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25251 ecode2 = SWIG_AsVal_int(obj1, &val2);
25252 if (!SWIG_IsOK(ecode2)) {
25253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
25254 }
25255 arg2 = static_cast< int >(val2);
25256 {
25257 PyThreadState* __tstate = wxPyBeginAllowThreads();
25258 (arg1)->SetStyle(arg2);
25259 wxPyEndAllowThreads(__tstate);
25260 if (PyErr_Occurred()) SWIG_fail;
25261 }
25262 resultobj = SWIG_Py_Void();
25263 return resultobj;
25264 fail:
25265 return NULL;
25266 }
25267
25268
25269 SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25270 PyObject *resultobj = 0;
25271 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25272 int result;
25273 void *argp1 = 0 ;
25274 int res1 = 0 ;
25275 PyObject *swig_obj[1] ;
25276
25277 if (!args) SWIG_fail;
25278 swig_obj[0] = args;
25279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25280 if (!SWIG_IsOK(res1)) {
25281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
25282 }
25283 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25284 {
25285 PyThreadState* __tstate = wxPyBeginAllowThreads();
25286 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
25287 wxPyEndAllowThreads(__tstate);
25288 if (PyErr_Occurred()) SWIG_fail;
25289 }
25290 resultobj = SWIG_From_int(static_cast< int >(result));
25291 return resultobj;
25292 fail:
25293 return NULL;
25294 }
25295
25296
25297 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25298 PyObject *obj;
25299 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25300 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
25301 return SWIG_Py_Void();
25302 }
25303
25304 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25305 return SWIG_Python_InitShadowInstance(args);
25306 }
25307
25308 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25309 PyObject *resultobj = 0;
25310 wxWindow *arg1 = (wxWindow *) 0 ;
25311 wxBitmap &arg2_defvalue = wxNullBitmap ;
25312 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25313 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25314 wxBufferedPaintDC *result = 0 ;
25315 void *argp1 = 0 ;
25316 int res1 = 0 ;
25317 void *argp2 = 0 ;
25318 int res2 = 0 ;
25319 int val3 ;
25320 int ecode3 = 0 ;
25321 PyObject * obj0 = 0 ;
25322 PyObject * obj1 = 0 ;
25323 PyObject * obj2 = 0 ;
25324 char * kwnames[] = {
25325 (char *) "window",(char *) "buffer",(char *) "style", NULL
25326 };
25327
25328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25330 if (!SWIG_IsOK(res1)) {
25331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25332 }
25333 arg1 = reinterpret_cast< wxWindow * >(argp1);
25334 if (obj1) {
25335 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
25336 if (!SWIG_IsOK(res2)) {
25337 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25338 }
25339 if (!argp2) {
25340 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25341 }
25342 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25343 }
25344 if (obj2) {
25345 ecode3 = SWIG_AsVal_int(obj2, &val3);
25346 if (!SWIG_IsOK(ecode3)) {
25347 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
25348 }
25349 arg3 = static_cast< int >(val3);
25350 }
25351 {
25352 if (!wxPyCheckForApp()) SWIG_fail;
25353 PyThreadState* __tstate = wxPyBeginAllowThreads();
25354 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
25355 wxPyEndAllowThreads(__tstate);
25356 if (PyErr_Occurred()) SWIG_fail;
25357 }
25358 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25359 return resultobj;
25360 fail:
25361 return NULL;
25362 }
25363
25364
25365 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25366 PyObject *obj;
25367 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25368 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
25369 return SWIG_Py_Void();
25370 }
25371
25372 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25373 return SWIG_Python_InitShadowInstance(args);
25374 }
25375
25376 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25377 PyObject *resultobj = 0;
25378 wxWindow *arg1 = (wxWindow *) 0 ;
25379 wxAutoBufferedPaintDC *result = 0 ;
25380 void *argp1 = 0 ;
25381 int res1 = 0 ;
25382 PyObject * obj0 = 0 ;
25383 char * kwnames[] = {
25384 (char *) "win", NULL
25385 };
25386
25387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
25388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25389 if (!SWIG_IsOK(res1)) {
25390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25391 }
25392 arg1 = reinterpret_cast< wxWindow * >(argp1);
25393 {
25394 PyThreadState* __tstate = wxPyBeginAllowThreads();
25395 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
25396 wxPyEndAllowThreads(__tstate);
25397 if (PyErr_Occurred()) SWIG_fail;
25398 }
25399 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25400 return resultobj;
25401 fail:
25402 return NULL;
25403 }
25404
25405
25406 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25407 PyObject *obj;
25408 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25409 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
25410 return SWIG_Py_Void();
25411 }
25412
25413 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25414 return SWIG_Python_InitShadowInstance(args);
25415 }
25416
25417 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25418 PyObject *resultobj = 0;
25419 wxWindow *arg1 = (wxWindow *) 0 ;
25420 wxDC *result = 0 ;
25421 void *argp1 = 0 ;
25422 int res1 = 0 ;
25423 PyObject * obj0 = 0 ;
25424 char * kwnames[] = {
25425 (char *) "window", NULL
25426 };
25427
25428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
25429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25430 if (!SWIG_IsOK(res1)) {
25431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
25432 }
25433 arg1 = reinterpret_cast< wxWindow * >(argp1);
25434 {
25435 PyThreadState* __tstate = wxPyBeginAllowThreads();
25436 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
25437 wxPyEndAllowThreads(__tstate);
25438 if (PyErr_Occurred()) SWIG_fail;
25439 }
25440 {
25441 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
25442 }
25443 return resultobj;
25444 fail:
25445 return NULL;
25446 }
25447
25448
25449 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25450 PyObject *resultobj = 0;
25451 wxDC *arg1 = 0 ;
25452 bool arg2 ;
25453 wxMirrorDC *result = 0 ;
25454 void *argp1 = 0 ;
25455 int res1 = 0 ;
25456 bool val2 ;
25457 int ecode2 = 0 ;
25458 PyObject * obj0 = 0 ;
25459 PyObject * obj1 = 0 ;
25460 char * kwnames[] = {
25461 (char *) "dc",(char *) "mirror", NULL
25462 };
25463
25464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
25465 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
25466 if (!SWIG_IsOK(res1)) {
25467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25468 }
25469 if (!argp1) {
25470 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25471 }
25472 arg1 = reinterpret_cast< wxDC * >(argp1);
25473 ecode2 = SWIG_AsVal_bool(obj1, &val2);
25474 if (!SWIG_IsOK(ecode2)) {
25475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
25476 }
25477 arg2 = static_cast< bool >(val2);
25478 {
25479 if (!wxPyCheckForApp()) SWIG_fail;
25480 PyThreadState* __tstate = wxPyBeginAllowThreads();
25481 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
25482 wxPyEndAllowThreads(__tstate);
25483 if (PyErr_Occurred()) SWIG_fail;
25484 }
25485 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
25486 return resultobj;
25487 fail:
25488 return NULL;
25489 }
25490
25491
25492 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25493 PyObject *obj;
25494 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25495 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
25496 return SWIG_Py_Void();
25497 }
25498
25499 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25500 return SWIG_Python_InitShadowInstance(args);
25501 }
25502
25503 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25504 PyObject *resultobj = 0;
25505 wxPrintData *arg1 = 0 ;
25506 wxPostScriptDC *result = 0 ;
25507 void *argp1 = 0 ;
25508 int res1 = 0 ;
25509 PyObject * obj0 = 0 ;
25510 char * kwnames[] = {
25511 (char *) "printData", NULL
25512 };
25513
25514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
25515 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25516 if (!SWIG_IsOK(res1)) {
25517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25518 }
25519 if (!argp1) {
25520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25521 }
25522 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25523 {
25524 if (!wxPyCheckForApp()) SWIG_fail;
25525 PyThreadState* __tstate = wxPyBeginAllowThreads();
25526 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
25527 wxPyEndAllowThreads(__tstate);
25528 if (PyErr_Occurred()) SWIG_fail;
25529 }
25530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
25531 return resultobj;
25532 fail:
25533 return NULL;
25534 }
25535
25536
25537 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25538 PyObject *resultobj = 0;
25539 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25540 wxPrintData *result = 0 ;
25541 void *argp1 = 0 ;
25542 int res1 = 0 ;
25543 PyObject *swig_obj[1] ;
25544
25545 if (!args) SWIG_fail;
25546 swig_obj[0] = args;
25547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25548 if (!SWIG_IsOK(res1)) {
25549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25550 }
25551 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25552 {
25553 PyThreadState* __tstate = wxPyBeginAllowThreads();
25554 {
25555 wxPrintData &_result_ref = (arg1)->GetPrintData();
25556 result = (wxPrintData *) &_result_ref;
25557 }
25558 wxPyEndAllowThreads(__tstate);
25559 if (PyErr_Occurred()) SWIG_fail;
25560 }
25561 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
25562 return resultobj;
25563 fail:
25564 return NULL;
25565 }
25566
25567
25568 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25569 PyObject *resultobj = 0;
25570 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
25571 wxPrintData *arg2 = 0 ;
25572 void *argp1 = 0 ;
25573 int res1 = 0 ;
25574 void *argp2 = 0 ;
25575 int res2 = 0 ;
25576 PyObject * obj0 = 0 ;
25577 PyObject * obj1 = 0 ;
25578 char * kwnames[] = {
25579 (char *) "self",(char *) "data", NULL
25580 };
25581
25582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
25583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
25584 if (!SWIG_IsOK(res1)) {
25585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
25586 }
25587 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
25588 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
25589 if (!SWIG_IsOK(res2)) {
25590 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25591 }
25592 if (!argp2) {
25593 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
25594 }
25595 arg2 = reinterpret_cast< wxPrintData * >(argp2);
25596 {
25597 PyThreadState* __tstate = wxPyBeginAllowThreads();
25598 (arg1)->SetPrintData((wxPrintData const &)*arg2);
25599 wxPyEndAllowThreads(__tstate);
25600 if (PyErr_Occurred()) SWIG_fail;
25601 }
25602 resultobj = SWIG_Py_Void();
25603 return resultobj;
25604 fail:
25605 return NULL;
25606 }
25607
25608
25609 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25610 PyObject *resultobj = 0;
25611 int arg1 ;
25612 int val1 ;
25613 int ecode1 = 0 ;
25614 PyObject * obj0 = 0 ;
25615 char * kwnames[] = {
25616 (char *) "ppi", NULL
25617 };
25618
25619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
25620 ecode1 = SWIG_AsVal_int(obj0, &val1);
25621 if (!SWIG_IsOK(ecode1)) {
25622 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
25623 }
25624 arg1 = static_cast< int >(val1);
25625 {
25626 PyThreadState* __tstate = wxPyBeginAllowThreads();
25627 wxPostScriptDC::SetResolution(arg1);
25628 wxPyEndAllowThreads(__tstate);
25629 if (PyErr_Occurred()) SWIG_fail;
25630 }
25631 resultobj = SWIG_Py_Void();
25632 return resultobj;
25633 fail:
25634 return NULL;
25635 }
25636
25637
25638 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25639 PyObject *resultobj = 0;
25640 int result;
25641
25642 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
25643 {
25644 PyThreadState* __tstate = wxPyBeginAllowThreads();
25645 result = (int)wxPostScriptDC::GetResolution();
25646 wxPyEndAllowThreads(__tstate);
25647 if (PyErr_Occurred()) SWIG_fail;
25648 }
25649 resultobj = SWIG_From_int(static_cast< int >(result));
25650 return resultobj;
25651 fail:
25652 return NULL;
25653 }
25654
25655
25656 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25657 PyObject *obj;
25658 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25659 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
25660 return SWIG_Py_Void();
25661 }
25662
25663 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25664 return SWIG_Python_InitShadowInstance(args);
25665 }
25666
25667 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25668 PyObject *resultobj = 0;
25669 wxString const &arg1_defvalue = wxPyEmptyString ;
25670 wxString *arg1 = (wxString *) &arg1_defvalue ;
25671 wxMetaFile *result = 0 ;
25672 bool temp1 = false ;
25673 PyObject * obj0 = 0 ;
25674 char * kwnames[] = {
25675 (char *) "filename", NULL
25676 };
25677
25678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
25679 if (obj0) {
25680 {
25681 arg1 = wxString_in_helper(obj0);
25682 if (arg1 == NULL) SWIG_fail;
25683 temp1 = true;
25684 }
25685 }
25686 {
25687 if (!wxPyCheckForApp()) SWIG_fail;
25688 PyThreadState* __tstate = wxPyBeginAllowThreads();
25689 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
25690 wxPyEndAllowThreads(__tstate);
25691 if (PyErr_Occurred()) SWIG_fail;
25692 }
25693 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
25694 {
25695 if (temp1)
25696 delete arg1;
25697 }
25698 return resultobj;
25699 fail:
25700 {
25701 if (temp1)
25702 delete arg1;
25703 }
25704 return NULL;
25705 }
25706
25707
25708 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25709 PyObject *resultobj = 0;
25710 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25711 void *argp1 = 0 ;
25712 int res1 = 0 ;
25713 PyObject *swig_obj[1] ;
25714
25715 if (!args) SWIG_fail;
25716 swig_obj[0] = args;
25717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
25718 if (!SWIG_IsOK(res1)) {
25719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25720 }
25721 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25722 {
25723 PyThreadState* __tstate = wxPyBeginAllowThreads();
25724 delete arg1;
25725
25726 wxPyEndAllowThreads(__tstate);
25727 if (PyErr_Occurred()) SWIG_fail;
25728 }
25729 resultobj = SWIG_Py_Void();
25730 return resultobj;
25731 fail:
25732 return NULL;
25733 }
25734
25735
25736 SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25737 PyObject *resultobj = 0;
25738 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25739 bool result;
25740 void *argp1 = 0 ;
25741 int res1 = 0 ;
25742 PyObject *swig_obj[1] ;
25743
25744 if (!args) SWIG_fail;
25745 swig_obj[0] = args;
25746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25747 if (!SWIG_IsOK(res1)) {
25748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25749 }
25750 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25751 {
25752 PyThreadState* __tstate = wxPyBeginAllowThreads();
25753 result = (bool)(arg1)->IsOk();
25754 wxPyEndAllowThreads(__tstate);
25755 if (PyErr_Occurred()) SWIG_fail;
25756 }
25757 {
25758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25759 }
25760 return resultobj;
25761 fail:
25762 return NULL;
25763 }
25764
25765
25766 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25767 PyObject *resultobj = 0;
25768 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25769 int arg2 = (int) 0 ;
25770 int arg3 = (int) 0 ;
25771 bool result;
25772 void *argp1 = 0 ;
25773 int res1 = 0 ;
25774 int val2 ;
25775 int ecode2 = 0 ;
25776 int val3 ;
25777 int ecode3 = 0 ;
25778 PyObject * obj0 = 0 ;
25779 PyObject * obj1 = 0 ;
25780 PyObject * obj2 = 0 ;
25781 char * kwnames[] = {
25782 (char *) "self",(char *) "width",(char *) "height", NULL
25783 };
25784
25785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25787 if (!SWIG_IsOK(res1)) {
25788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25789 }
25790 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25791 if (obj1) {
25792 ecode2 = SWIG_AsVal_int(obj1, &val2);
25793 if (!SWIG_IsOK(ecode2)) {
25794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
25795 }
25796 arg2 = static_cast< int >(val2);
25797 }
25798 if (obj2) {
25799 ecode3 = SWIG_AsVal_int(obj2, &val3);
25800 if (!SWIG_IsOK(ecode3)) {
25801 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
25802 }
25803 arg3 = static_cast< int >(val3);
25804 }
25805 {
25806 PyThreadState* __tstate = wxPyBeginAllowThreads();
25807 result = (bool)(arg1)->SetClipboard(arg2,arg3);
25808 wxPyEndAllowThreads(__tstate);
25809 if (PyErr_Occurred()) SWIG_fail;
25810 }
25811 {
25812 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25813 }
25814 return resultobj;
25815 fail:
25816 return NULL;
25817 }
25818
25819
25820 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25821 PyObject *resultobj = 0;
25822 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25823 wxSize result;
25824 void *argp1 = 0 ;
25825 int res1 = 0 ;
25826 PyObject *swig_obj[1] ;
25827
25828 if (!args) SWIG_fail;
25829 swig_obj[0] = args;
25830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25831 if (!SWIG_IsOK(res1)) {
25832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25833 }
25834 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25835 {
25836 PyThreadState* __tstate = wxPyBeginAllowThreads();
25837 result = (arg1)->GetSize();
25838 wxPyEndAllowThreads(__tstate);
25839 if (PyErr_Occurred()) SWIG_fail;
25840 }
25841 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25842 return resultobj;
25843 fail:
25844 return NULL;
25845 }
25846
25847
25848 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25849 PyObject *resultobj = 0;
25850 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25851 int result;
25852 void *argp1 = 0 ;
25853 int res1 = 0 ;
25854 PyObject *swig_obj[1] ;
25855
25856 if (!args) SWIG_fail;
25857 swig_obj[0] = args;
25858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25859 if (!SWIG_IsOK(res1)) {
25860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25861 }
25862 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25863 {
25864 PyThreadState* __tstate = wxPyBeginAllowThreads();
25865 result = (int)(arg1)->GetWidth();
25866 wxPyEndAllowThreads(__tstate);
25867 if (PyErr_Occurred()) SWIG_fail;
25868 }
25869 resultobj = SWIG_From_int(static_cast< int >(result));
25870 return resultobj;
25871 fail:
25872 return NULL;
25873 }
25874
25875
25876 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25877 PyObject *resultobj = 0;
25878 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25879 int result;
25880 void *argp1 = 0 ;
25881 int res1 = 0 ;
25882 PyObject *swig_obj[1] ;
25883
25884 if (!args) SWIG_fail;
25885 swig_obj[0] = args;
25886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25887 if (!SWIG_IsOK(res1)) {
25888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25889 }
25890 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25891 {
25892 PyThreadState* __tstate = wxPyBeginAllowThreads();
25893 result = (int)(arg1)->GetHeight();
25894 wxPyEndAllowThreads(__tstate);
25895 if (PyErr_Occurred()) SWIG_fail;
25896 }
25897 resultobj = SWIG_From_int(static_cast< int >(result));
25898 return resultobj;
25899 fail:
25900 return NULL;
25901 }
25902
25903
25904 SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25905 PyObject *resultobj = 0;
25906 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25907 wxString *result = 0 ;
25908 void *argp1 = 0 ;
25909 int res1 = 0 ;
25910 PyObject *swig_obj[1] ;
25911
25912 if (!args) SWIG_fail;
25913 swig_obj[0] = args;
25914 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25915 if (!SWIG_IsOK(res1)) {
25916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
25917 }
25918 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25919 {
25920 PyThreadState* __tstate = wxPyBeginAllowThreads();
25921 {
25922 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
25923 result = (wxString *) &_result_ref;
25924 }
25925 wxPyEndAllowThreads(__tstate);
25926 if (PyErr_Occurred()) SWIG_fail;
25927 }
25928 {
25929 #if wxUSE_UNICODE
25930 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
25931 #else
25932 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
25933 #endif
25934 }
25935 return resultobj;
25936 fail:
25937 return NULL;
25938 }
25939
25940
25941 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25942 PyObject *obj;
25943 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25944 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25945 return SWIG_Py_Void();
25946 }
25947
25948 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25949 return SWIG_Python_InitShadowInstance(args);
25950 }
25951
25952 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25953 PyObject *resultobj = 0;
25954 wxString const &arg1_defvalue = wxPyEmptyString ;
25955 wxString *arg1 = (wxString *) &arg1_defvalue ;
25956 int arg2 = (int) 0 ;
25957 int arg3 = (int) 0 ;
25958 wxString const &arg4_defvalue = wxPyEmptyString ;
25959 wxString *arg4 = (wxString *) &arg4_defvalue ;
25960 wxMetaFileDC *result = 0 ;
25961 bool temp1 = false ;
25962 int val2 ;
25963 int ecode2 = 0 ;
25964 int val3 ;
25965 int ecode3 = 0 ;
25966 bool temp4 = false ;
25967 PyObject * obj0 = 0 ;
25968 PyObject * obj1 = 0 ;
25969 PyObject * obj2 = 0 ;
25970 PyObject * obj3 = 0 ;
25971 char * kwnames[] = {
25972 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25973 };
25974
25975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25976 if (obj0) {
25977 {
25978 arg1 = wxString_in_helper(obj0);
25979 if (arg1 == NULL) SWIG_fail;
25980 temp1 = true;
25981 }
25982 }
25983 if (obj1) {
25984 ecode2 = SWIG_AsVal_int(obj1, &val2);
25985 if (!SWIG_IsOK(ecode2)) {
25986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25987 }
25988 arg2 = static_cast< int >(val2);
25989 }
25990 if (obj2) {
25991 ecode3 = SWIG_AsVal_int(obj2, &val3);
25992 if (!SWIG_IsOK(ecode3)) {
25993 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25994 }
25995 arg3 = static_cast< int >(val3);
25996 }
25997 if (obj3) {
25998 {
25999 arg4 = wxString_in_helper(obj3);
26000 if (arg4 == NULL) SWIG_fail;
26001 temp4 = true;
26002 }
26003 }
26004 {
26005 if (!wxPyCheckForApp()) SWIG_fail;
26006 PyThreadState* __tstate = wxPyBeginAllowThreads();
26007 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
26008 wxPyEndAllowThreads(__tstate);
26009 if (PyErr_Occurred()) SWIG_fail;
26010 }
26011 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
26012 {
26013 if (temp1)
26014 delete arg1;
26015 }
26016 {
26017 if (temp4)
26018 delete arg4;
26019 }
26020 return resultobj;
26021 fail:
26022 {
26023 if (temp1)
26024 delete arg1;
26025 }
26026 {
26027 if (temp4)
26028 delete arg4;
26029 }
26030 return NULL;
26031 }
26032
26033
26034 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26035 PyObject *resultobj = 0;
26036 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
26037 wxMetaFile *result = 0 ;
26038 void *argp1 = 0 ;
26039 int res1 = 0 ;
26040 PyObject *swig_obj[1] ;
26041
26042 if (!args) SWIG_fail;
26043 swig_obj[0] = args;
26044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
26045 if (!SWIG_IsOK(res1)) {
26046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
26047 }
26048 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
26049 {
26050 PyThreadState* __tstate = wxPyBeginAllowThreads();
26051 result = (wxMetaFile *)(arg1)->Close();
26052 wxPyEndAllowThreads(__tstate);
26053 if (PyErr_Occurred()) SWIG_fail;
26054 }
26055 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
26056 return resultobj;
26057 fail:
26058 return NULL;
26059 }
26060
26061
26062 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26063 PyObject *obj;
26064 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26065 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
26066 return SWIG_Py_Void();
26067 }
26068
26069 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26070 return SWIG_Python_InitShadowInstance(args);
26071 }
26072
26073 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26074 PyObject *resultobj = 0;
26075 wxPrintData *arg1 = 0 ;
26076 wxPrinterDC *result = 0 ;
26077 void *argp1 = 0 ;
26078 int res1 = 0 ;
26079 PyObject * obj0 = 0 ;
26080 char * kwnames[] = {
26081 (char *) "printData", NULL
26082 };
26083
26084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
26085 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
26086 if (!SWIG_IsOK(res1)) {
26087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26088 }
26089 if (!argp1) {
26090 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26091 }
26092 arg1 = reinterpret_cast< wxPrintData * >(argp1);
26093 {
26094 if (!wxPyCheckForApp()) SWIG_fail;
26095 PyThreadState* __tstate = wxPyBeginAllowThreads();
26096 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
26097 wxPyEndAllowThreads(__tstate);
26098 if (PyErr_Occurred()) SWIG_fail;
26099 }
26100 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
26101 return resultobj;
26102 fail:
26103 return NULL;
26104 }
26105
26106
26107 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26108 PyObject *obj;
26109 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26110 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
26111 return SWIG_Py_Void();
26112 }
26113
26114 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26115 return SWIG_Python_InitShadowInstance(args);
26116 }
26117
26118 SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26119 PyObject *resultobj = 0;
26120 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
26121 wxGraphicsObject *result = 0 ;
26122 void *argp1 = 0 ;
26123 int res1 = 0 ;
26124 PyObject * obj0 = 0 ;
26125 char * kwnames[] = {
26126 (char *) "renderer", NULL
26127 };
26128
26129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
26130 if (obj0) {
26131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
26132 if (!SWIG_IsOK(res1)) {
26133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
26134 }
26135 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
26136 }
26137 {
26138 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
26139 if (PyErr_Occurred()) SWIG_fail;
26140 }
26141 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
26142 return resultobj;
26143 fail:
26144 return NULL;
26145 }
26146
26147
26148 SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26149 PyObject *resultobj = 0;
26150 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26151 void *argp1 = 0 ;
26152 int res1 = 0 ;
26153 PyObject *swig_obj[1] ;
26154
26155 if (!args) SWIG_fail;
26156 swig_obj[0] = args;
26157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
26158 if (!SWIG_IsOK(res1)) {
26159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
26160 }
26161 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26162 {
26163 delete arg1;
26164
26165 if (PyErr_Occurred()) SWIG_fail;
26166 }
26167 resultobj = SWIG_Py_Void();
26168 return resultobj;
26169 fail:
26170 return NULL;
26171 }
26172
26173
26174 SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26175 PyObject *resultobj = 0;
26176 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26177 bool result;
26178 void *argp1 = 0 ;
26179 int res1 = 0 ;
26180 PyObject *swig_obj[1] ;
26181
26182 if (!args) SWIG_fail;
26183 swig_obj[0] = args;
26184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
26185 if (!SWIG_IsOK(res1)) {
26186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
26187 }
26188 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26189 {
26190 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
26191 if (PyErr_Occurred()) SWIG_fail;
26192 }
26193 {
26194 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26195 }
26196 return resultobj;
26197 fail:
26198 return NULL;
26199 }
26200
26201
26202 SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26203 PyObject *resultobj = 0;
26204 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26205 wxGraphicsRenderer *result = 0 ;
26206 void *argp1 = 0 ;
26207 int res1 = 0 ;
26208 PyObject *swig_obj[1] ;
26209
26210 if (!args) SWIG_fail;
26211 swig_obj[0] = args;
26212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
26213 if (!SWIG_IsOK(res1)) {
26214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
26215 }
26216 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26217 {
26218 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
26219 if (PyErr_Occurred()) SWIG_fail;
26220 }
26221 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
26222 return resultobj;
26223 fail:
26224 return NULL;
26225 }
26226
26227
26228 SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26229 PyObject *obj;
26230 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26231 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
26232 return SWIG_Py_Void();
26233 }
26234
26235 SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26236 return SWIG_Python_InitShadowInstance(args);
26237 }
26238
26239 SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26240 PyObject *resultobj = 0;
26241 wxGraphicsPen *result = 0 ;
26242
26243 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
26244 {
26245 result = (wxGraphicsPen *)new wxGraphicsPen();
26246 if (PyErr_Occurred()) SWIG_fail;
26247 }
26248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
26249 return resultobj;
26250 fail:
26251 return NULL;
26252 }
26253
26254
26255 SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26256 PyObject *resultobj = 0;
26257 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
26258 void *argp1 = 0 ;
26259 int res1 = 0 ;
26260 PyObject *swig_obj[1] ;
26261
26262 if (!args) SWIG_fail;
26263 swig_obj[0] = args;
26264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
26265 if (!SWIG_IsOK(res1)) {
26266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
26267 }
26268 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
26269 {
26270 delete arg1;
26271
26272 if (PyErr_Occurred()) SWIG_fail;
26273 }
26274 resultobj = SWIG_Py_Void();
26275 return resultobj;
26276 fail:
26277 return NULL;
26278 }
26279
26280
26281 SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26282 PyObject *obj;
26283 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26284 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
26285 return SWIG_Py_Void();
26286 }
26287
26288 SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26289 return SWIG_Python_InitShadowInstance(args);
26290 }
26291
26292 SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26293 PyObject *resultobj = 0;
26294 wxGraphicsBrush *result = 0 ;
26295
26296 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
26297 {
26298 result = (wxGraphicsBrush *)new wxGraphicsBrush();
26299 if (PyErr_Occurred()) SWIG_fail;
26300 }
26301 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
26302 return resultobj;
26303 fail:
26304 return NULL;
26305 }
26306
26307
26308 SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26309 PyObject *resultobj = 0;
26310 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
26311 void *argp1 = 0 ;
26312 int res1 = 0 ;
26313 PyObject *swig_obj[1] ;
26314
26315 if (!args) SWIG_fail;
26316 swig_obj[0] = args;
26317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
26318 if (!SWIG_IsOK(res1)) {
26319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
26320 }
26321 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
26322 {
26323 delete arg1;
26324
26325 if (PyErr_Occurred()) SWIG_fail;
26326 }
26327 resultobj = SWIG_Py_Void();
26328 return resultobj;
26329 fail:
26330 return NULL;
26331 }
26332
26333
26334 SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26335 PyObject *obj;
26336 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26337 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
26338 return SWIG_Py_Void();
26339 }
26340
26341 SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26342 return SWIG_Python_InitShadowInstance(args);
26343 }
26344
26345 SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26346 PyObject *resultobj = 0;
26347 wxGraphicsFont *result = 0 ;
26348
26349 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
26350 {
26351 result = (wxGraphicsFont *)new wxGraphicsFont();
26352 if (PyErr_Occurred()) SWIG_fail;
26353 }
26354 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
26355 return resultobj;
26356 fail:
26357 return NULL;
26358 }
26359
26360
26361 SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26362 PyObject *resultobj = 0;
26363 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
26364 void *argp1 = 0 ;
26365 int res1 = 0 ;
26366 PyObject *swig_obj[1] ;
26367
26368 if (!args) SWIG_fail;
26369 swig_obj[0] = args;
26370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
26371 if (!SWIG_IsOK(res1)) {
26372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
26373 }
26374 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
26375 {
26376 delete arg1;
26377
26378 if (PyErr_Occurred()) SWIG_fail;
26379 }
26380 resultobj = SWIG_Py_Void();
26381 return resultobj;
26382 fail:
26383 return NULL;
26384 }
26385
26386
26387 SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26388 PyObject *obj;
26389 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26390 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
26391 return SWIG_Py_Void();
26392 }
26393
26394 SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26395 return SWIG_Python_InitShadowInstance(args);
26396 }
26397
26398 SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26399 PyObject *resultobj = 0;
26400 wxGraphicsMatrix *result = 0 ;
26401
26402 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
26403 {
26404 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
26405 if (PyErr_Occurred()) SWIG_fail;
26406 }
26407 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
26408 return resultobj;
26409 fail:
26410 return NULL;
26411 }
26412
26413
26414 SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26415 PyObject *resultobj = 0;
26416 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26417 void *argp1 = 0 ;
26418 int res1 = 0 ;
26419 PyObject *swig_obj[1] ;
26420
26421 if (!args) SWIG_fail;
26422 swig_obj[0] = args;
26423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
26424 if (!SWIG_IsOK(res1)) {
26425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26426 }
26427 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26428 {
26429 delete arg1;
26430
26431 if (PyErr_Occurred()) SWIG_fail;
26432 }
26433 resultobj = SWIG_Py_Void();
26434 return resultobj;
26435 fail:
26436 return NULL;
26437 }
26438
26439
26440 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26441 PyObject *resultobj = 0;
26442 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26443 wxGraphicsMatrix *arg2 = 0 ;
26444 void *argp1 = 0 ;
26445 int res1 = 0 ;
26446 void *argp2 = 0 ;
26447 int res2 = 0 ;
26448 PyObject * obj0 = 0 ;
26449 PyObject * obj1 = 0 ;
26450 char * kwnames[] = {
26451 (char *) "self",(char *) "t", NULL
26452 };
26453
26454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
26455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26456 if (!SWIG_IsOK(res1)) {
26457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26458 }
26459 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26460 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26461 if (!SWIG_IsOK(res2)) {
26462 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26463 }
26464 if (!argp2) {
26465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26466 }
26467 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26468 {
26469 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
26470 if (PyErr_Occurred()) SWIG_fail;
26471 }
26472 resultobj = SWIG_Py_Void();
26473 return resultobj;
26474 fail:
26475 return NULL;
26476 }
26477
26478
26479 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26480 PyObject *resultobj = 0;
26481 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26482 wxDouble arg2 = (wxDouble) 1.0 ;
26483 wxDouble arg3 = (wxDouble) 0.0 ;
26484 wxDouble arg4 = (wxDouble) 0.0 ;
26485 wxDouble arg5 = (wxDouble) 1.0 ;
26486 wxDouble arg6 = (wxDouble) 0.0 ;
26487 wxDouble arg7 = (wxDouble) 0.0 ;
26488 void *argp1 = 0 ;
26489 int res1 = 0 ;
26490 double val2 ;
26491 int ecode2 = 0 ;
26492 double val3 ;
26493 int ecode3 = 0 ;
26494 double val4 ;
26495 int ecode4 = 0 ;
26496 double val5 ;
26497 int ecode5 = 0 ;
26498 double val6 ;
26499 int ecode6 = 0 ;
26500 double val7 ;
26501 int ecode7 = 0 ;
26502 PyObject * obj0 = 0 ;
26503 PyObject * obj1 = 0 ;
26504 PyObject * obj2 = 0 ;
26505 PyObject * obj3 = 0 ;
26506 PyObject * obj4 = 0 ;
26507 PyObject * obj5 = 0 ;
26508 PyObject * obj6 = 0 ;
26509 char * kwnames[] = {
26510 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
26511 };
26512
26513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26515 if (!SWIG_IsOK(res1)) {
26516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26517 }
26518 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26519 if (obj1) {
26520 ecode2 = SWIG_AsVal_double(obj1, &val2);
26521 if (!SWIG_IsOK(ecode2)) {
26522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
26523 }
26524 arg2 = static_cast< wxDouble >(val2);
26525 }
26526 if (obj2) {
26527 ecode3 = SWIG_AsVal_double(obj2, &val3);
26528 if (!SWIG_IsOK(ecode3)) {
26529 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
26530 }
26531 arg3 = static_cast< wxDouble >(val3);
26532 }
26533 if (obj3) {
26534 ecode4 = SWIG_AsVal_double(obj3, &val4);
26535 if (!SWIG_IsOK(ecode4)) {
26536 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
26537 }
26538 arg4 = static_cast< wxDouble >(val4);
26539 }
26540 if (obj4) {
26541 ecode5 = SWIG_AsVal_double(obj4, &val5);
26542 if (!SWIG_IsOK(ecode5)) {
26543 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
26544 }
26545 arg5 = static_cast< wxDouble >(val5);
26546 }
26547 if (obj5) {
26548 ecode6 = SWIG_AsVal_double(obj5, &val6);
26549 if (!SWIG_IsOK(ecode6)) {
26550 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
26551 }
26552 arg6 = static_cast< wxDouble >(val6);
26553 }
26554 if (obj6) {
26555 ecode7 = SWIG_AsVal_double(obj6, &val7);
26556 if (!SWIG_IsOK(ecode7)) {
26557 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
26558 }
26559 arg7 = static_cast< wxDouble >(val7);
26560 }
26561 {
26562 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
26563 if (PyErr_Occurred()) SWIG_fail;
26564 }
26565 resultobj = SWIG_Py_Void();
26566 return resultobj;
26567 fail:
26568 return NULL;
26569 }
26570
26571
26572 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26573 PyObject *resultobj = 0;
26574 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26575 void *argp1 = 0 ;
26576 int res1 = 0 ;
26577 PyObject *swig_obj[1] ;
26578
26579 if (!args) SWIG_fail;
26580 swig_obj[0] = args;
26581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26582 if (!SWIG_IsOK(res1)) {
26583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26584 }
26585 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26586 {
26587 (arg1)->Invert();
26588 if (PyErr_Occurred()) SWIG_fail;
26589 }
26590 resultobj = SWIG_Py_Void();
26591 return resultobj;
26592 fail:
26593 return NULL;
26594 }
26595
26596
26597 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26598 PyObject *resultobj = 0;
26599 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26600 wxGraphicsMatrix *arg2 = 0 ;
26601 bool result;
26602 void *argp1 = 0 ;
26603 int res1 = 0 ;
26604 void *argp2 = 0 ;
26605 int res2 = 0 ;
26606 PyObject * obj0 = 0 ;
26607 PyObject * obj1 = 0 ;
26608 char * kwnames[] = {
26609 (char *) "self",(char *) "t", NULL
26610 };
26611
26612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
26613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26614 if (!SWIG_IsOK(res1)) {
26615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26616 }
26617 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26618 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26619 if (!SWIG_IsOK(res2)) {
26620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26621 }
26622 if (!argp2) {
26623 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26624 }
26625 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26626 {
26627 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
26628 if (PyErr_Occurred()) SWIG_fail;
26629 }
26630 {
26631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26632 }
26633 return resultobj;
26634 fail:
26635 return NULL;
26636 }
26637
26638
26639 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26640 PyObject *resultobj = 0;
26641 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26642 bool result;
26643 void *argp1 = 0 ;
26644 int res1 = 0 ;
26645 PyObject *swig_obj[1] ;
26646
26647 if (!args) SWIG_fail;
26648 swig_obj[0] = args;
26649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26650 if (!SWIG_IsOK(res1)) {
26651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26652 }
26653 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26654 {
26655 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
26656 if (PyErr_Occurred()) SWIG_fail;
26657 }
26658 {
26659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26660 }
26661 return resultobj;
26662 fail:
26663 return NULL;
26664 }
26665
26666
26667 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26668 PyObject *resultobj = 0;
26669 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26670 wxDouble arg2 ;
26671 wxDouble arg3 ;
26672 void *argp1 = 0 ;
26673 int res1 = 0 ;
26674 double val2 ;
26675 int ecode2 = 0 ;
26676 double val3 ;
26677 int ecode3 = 0 ;
26678 PyObject * obj0 = 0 ;
26679 PyObject * obj1 = 0 ;
26680 PyObject * obj2 = 0 ;
26681 char * kwnames[] = {
26682 (char *) "self",(char *) "dx",(char *) "dy", NULL
26683 };
26684
26685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26687 if (!SWIG_IsOK(res1)) {
26688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26689 }
26690 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26691 ecode2 = SWIG_AsVal_double(obj1, &val2);
26692 if (!SWIG_IsOK(ecode2)) {
26693 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
26694 }
26695 arg2 = static_cast< wxDouble >(val2);
26696 ecode3 = SWIG_AsVal_double(obj2, &val3);
26697 if (!SWIG_IsOK(ecode3)) {
26698 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
26699 }
26700 arg3 = static_cast< wxDouble >(val3);
26701 {
26702 (arg1)->Translate(arg2,arg3);
26703 if (PyErr_Occurred()) SWIG_fail;
26704 }
26705 resultobj = SWIG_Py_Void();
26706 return resultobj;
26707 fail:
26708 return NULL;
26709 }
26710
26711
26712 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26713 PyObject *resultobj = 0;
26714 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26715 wxDouble arg2 ;
26716 wxDouble arg3 ;
26717 void *argp1 = 0 ;
26718 int res1 = 0 ;
26719 double val2 ;
26720 int ecode2 = 0 ;
26721 double val3 ;
26722 int ecode3 = 0 ;
26723 PyObject * obj0 = 0 ;
26724 PyObject * obj1 = 0 ;
26725 PyObject * obj2 = 0 ;
26726 char * kwnames[] = {
26727 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26728 };
26729
26730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26732 if (!SWIG_IsOK(res1)) {
26733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26734 }
26735 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26736 ecode2 = SWIG_AsVal_double(obj1, &val2);
26737 if (!SWIG_IsOK(ecode2)) {
26738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26739 }
26740 arg2 = static_cast< wxDouble >(val2);
26741 ecode3 = SWIG_AsVal_double(obj2, &val3);
26742 if (!SWIG_IsOK(ecode3)) {
26743 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26744 }
26745 arg3 = static_cast< wxDouble >(val3);
26746 {
26747 (arg1)->Scale(arg2,arg3);
26748 if (PyErr_Occurred()) SWIG_fail;
26749 }
26750 resultobj = SWIG_Py_Void();
26751 return resultobj;
26752 fail:
26753 return NULL;
26754 }
26755
26756
26757 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26758 PyObject *resultobj = 0;
26759 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26760 wxDouble arg2 ;
26761 void *argp1 = 0 ;
26762 int res1 = 0 ;
26763 double val2 ;
26764 int ecode2 = 0 ;
26765 PyObject * obj0 = 0 ;
26766 PyObject * obj1 = 0 ;
26767 char * kwnames[] = {
26768 (char *) "self",(char *) "angle", NULL
26769 };
26770
26771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26773 if (!SWIG_IsOK(res1)) {
26774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26775 }
26776 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26777 ecode2 = SWIG_AsVal_double(obj1, &val2);
26778 if (!SWIG_IsOK(ecode2)) {
26779 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26780 }
26781 arg2 = static_cast< wxDouble >(val2);
26782 {
26783 (arg1)->Rotate(arg2);
26784 if (PyErr_Occurred()) SWIG_fail;
26785 }
26786 resultobj = SWIG_Py_Void();
26787 return resultobj;
26788 fail:
26789 return NULL;
26790 }
26791
26792
26793 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26794 PyObject *resultobj = 0;
26795 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26796 wxDouble *arg2 = (wxDouble *) 0 ;
26797 wxDouble *arg3 = (wxDouble *) 0 ;
26798 void *argp1 = 0 ;
26799 int res1 = 0 ;
26800 wxDouble temp2 ;
26801 int res2 = 0 ;
26802 wxDouble temp3 ;
26803 int res3 = 0 ;
26804 PyObject * obj0 = 0 ;
26805 PyObject * obj1 = 0 ;
26806 PyObject * obj2 = 0 ;
26807 char * kwnames[] = {
26808 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26809 };
26810
26811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26813 if (!SWIG_IsOK(res1)) {
26814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26815 }
26816 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26817 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26818 double val;
26819 int ecode = SWIG_AsVal_double(obj1, &val);
26820 if (!SWIG_IsOK(ecode)) {
26821 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26822 }
26823 temp2 = static_cast< wxDouble >(val);
26824 arg2 = &temp2;
26825 res2 = SWIG_AddTmpMask(ecode);
26826 }
26827 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26828 double val;
26829 int ecode = SWIG_AsVal_double(obj2, &val);
26830 if (!SWIG_IsOK(ecode)) {
26831 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26832 }
26833 temp3 = static_cast< wxDouble >(val);
26834 arg3 = &temp3;
26835 res3 = SWIG_AddTmpMask(ecode);
26836 }
26837 {
26838 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
26839 if (PyErr_Occurred()) SWIG_fail;
26840 }
26841 resultobj = SWIG_Py_Void();
26842 if (SWIG_IsTmpObj(res2)) {
26843 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26844 } else {
26845 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26846 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26847 }
26848 if (SWIG_IsTmpObj(res3)) {
26849 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26850 } else {
26851 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26852 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26853 }
26854 return resultobj;
26855 fail:
26856 return NULL;
26857 }
26858
26859
26860 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26861 PyObject *resultobj = 0;
26862 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26863 wxDouble *arg2 = (wxDouble *) 0 ;
26864 wxDouble *arg3 = (wxDouble *) 0 ;
26865 void *argp1 = 0 ;
26866 int res1 = 0 ;
26867 wxDouble temp2 ;
26868 int res2 = 0 ;
26869 wxDouble temp3 ;
26870 int res3 = 0 ;
26871 PyObject * obj0 = 0 ;
26872 PyObject * obj1 = 0 ;
26873 PyObject * obj2 = 0 ;
26874 char * kwnames[] = {
26875 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26876 };
26877
26878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26880 if (!SWIG_IsOK(res1)) {
26881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26882 }
26883 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26884 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26885 double val;
26886 int ecode = SWIG_AsVal_double(obj1, &val);
26887 if (!SWIG_IsOK(ecode)) {
26888 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26889 }
26890 temp2 = static_cast< wxDouble >(val);
26891 arg2 = &temp2;
26892 res2 = SWIG_AddTmpMask(ecode);
26893 }
26894 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26895 double val;
26896 int ecode = SWIG_AsVal_double(obj2, &val);
26897 if (!SWIG_IsOK(ecode)) {
26898 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
26899 }
26900 temp3 = static_cast< wxDouble >(val);
26901 arg3 = &temp3;
26902 res3 = SWIG_AddTmpMask(ecode);
26903 }
26904 {
26905 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
26906 if (PyErr_Occurred()) SWIG_fail;
26907 }
26908 resultobj = SWIG_Py_Void();
26909 if (SWIG_IsTmpObj(res2)) {
26910 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26911 } else {
26912 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26913 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26914 }
26915 if (SWIG_IsTmpObj(res3)) {
26916 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26917 } else {
26918 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26919 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26920 }
26921 return resultobj;
26922 fail:
26923 return NULL;
26924 }
26925
26926
26927 SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26928 PyObject *resultobj = 0;
26929 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26930 void *result = 0 ;
26931 void *argp1 = 0 ;
26932 int res1 = 0 ;
26933 PyObject *swig_obj[1] ;
26934
26935 if (!args) SWIG_fail;
26936 swig_obj[0] = args;
26937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26938 if (!SWIG_IsOK(res1)) {
26939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26940 }
26941 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26942 {
26943 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26944 if (PyErr_Occurred()) SWIG_fail;
26945 }
26946 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26947 return resultobj;
26948 fail:
26949 return NULL;
26950 }
26951
26952
26953 SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26954 PyObject *obj;
26955 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26956 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26957 return SWIG_Py_Void();
26958 }
26959
26960 SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26961 return SWIG_Python_InitShadowInstance(args);
26962 }
26963
26964 SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26965 PyObject *resultobj = 0;
26966 wxGraphicsPath *result = 0 ;
26967
26968 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
26969 {
26970 if (!wxPyCheckForApp()) SWIG_fail;
26971 PyThreadState* __tstate = wxPyBeginAllowThreads();
26972 result = (wxGraphicsPath *)new wxGraphicsPath();
26973 wxPyEndAllowThreads(__tstate);
26974 if (PyErr_Occurred()) SWIG_fail;
26975 }
26976 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
26977 return resultobj;
26978 fail:
26979 return NULL;
26980 }
26981
26982
26983 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26984 PyObject *resultobj = 0;
26985 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26986 void *argp1 = 0 ;
26987 int res1 = 0 ;
26988 PyObject *swig_obj[1] ;
26989
26990 if (!args) SWIG_fail;
26991 swig_obj[0] = args;
26992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
26993 if (!SWIG_IsOK(res1)) {
26994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26995 }
26996 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26997 {
26998 delete arg1;
26999
27000 if (PyErr_Occurred()) SWIG_fail;
27001 }
27002 resultobj = SWIG_Py_Void();
27003 return resultobj;
27004 fail:
27005 return NULL;
27006 }
27007
27008
27009 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27010 PyObject *resultobj = 0;
27011 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27012 wxDouble arg2 ;
27013 wxDouble arg3 ;
27014 void *argp1 = 0 ;
27015 int res1 = 0 ;
27016 double val2 ;
27017 int ecode2 = 0 ;
27018 double val3 ;
27019 int ecode3 = 0 ;
27020
27021 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
27022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27023 if (!SWIG_IsOK(res1)) {
27024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27025 }
27026 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27027 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27028 if (!SWIG_IsOK(ecode2)) {
27029 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27030 }
27031 arg2 = static_cast< wxDouble >(val2);
27032 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27033 if (!SWIG_IsOK(ecode3)) {
27034 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27035 }
27036 arg3 = static_cast< wxDouble >(val3);
27037 {
27038 (arg1)->MoveToPoint(arg2,arg3);
27039 if (PyErr_Occurred()) SWIG_fail;
27040 }
27041 resultobj = SWIG_Py_Void();
27042 return resultobj;
27043 fail:
27044 return NULL;
27045 }
27046
27047
27048 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27049 PyObject *resultobj = 0;
27050 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27051 wxPoint2D *arg2 = 0 ;
27052 void *argp1 = 0 ;
27053 int res1 = 0 ;
27054 wxPoint2D temp2 ;
27055
27056 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27058 if (!SWIG_IsOK(res1)) {
27059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27060 }
27061 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27062 {
27063 arg2 = &temp2;
27064 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27065 }
27066 {
27067 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
27068 if (PyErr_Occurred()) SWIG_fail;
27069 }
27070 resultobj = SWIG_Py_Void();
27071 return resultobj;
27072 fail:
27073 return NULL;
27074 }
27075
27076
27077 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
27078 int argc;
27079 PyObject *argv[4];
27080
27081 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
27082 --argc;
27083 if (argc == 2) {
27084 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
27085 }
27086 if (argc == 3) {
27087 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
27088 }
27089
27090 fail:
27091 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
27092 return NULL;
27093 }
27094
27095
27096 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27097 PyObject *resultobj = 0;
27098 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27099 wxDouble arg2 ;
27100 wxDouble arg3 ;
27101 void *argp1 = 0 ;
27102 int res1 = 0 ;
27103 double val2 ;
27104 int ecode2 = 0 ;
27105 double val3 ;
27106 int ecode3 = 0 ;
27107
27108 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
27109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27110 if (!SWIG_IsOK(res1)) {
27111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27112 }
27113 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27114 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27115 if (!SWIG_IsOK(ecode2)) {
27116 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27117 }
27118 arg2 = static_cast< wxDouble >(val2);
27119 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27120 if (!SWIG_IsOK(ecode3)) {
27121 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27122 }
27123 arg3 = static_cast< wxDouble >(val3);
27124 {
27125 (arg1)->AddLineToPoint(arg2,arg3);
27126 if (PyErr_Occurred()) SWIG_fail;
27127 }
27128 resultobj = SWIG_Py_Void();
27129 return resultobj;
27130 fail:
27131 return NULL;
27132 }
27133
27134
27135 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27136 PyObject *resultobj = 0;
27137 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27138 wxPoint2D *arg2 = 0 ;
27139 void *argp1 = 0 ;
27140 int res1 = 0 ;
27141 wxPoint2D temp2 ;
27142
27143 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27145 if (!SWIG_IsOK(res1)) {
27146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27147 }
27148 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27149 {
27150 arg2 = &temp2;
27151 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27152 }
27153 {
27154 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
27155 if (PyErr_Occurred()) SWIG_fail;
27156 }
27157 resultobj = SWIG_Py_Void();
27158 return resultobj;
27159 fail:
27160 return NULL;
27161 }
27162
27163
27164 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
27165 int argc;
27166 PyObject *argv[4];
27167
27168 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
27169 --argc;
27170 if (argc == 2) {
27171 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
27172 }
27173 if (argc == 3) {
27174 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
27175 }
27176
27177 fail:
27178 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
27179 return NULL;
27180 }
27181
27182
27183 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27184 PyObject *resultobj = 0;
27185 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27186 wxDouble arg2 ;
27187 wxDouble arg3 ;
27188 wxDouble arg4 ;
27189 wxDouble arg5 ;
27190 wxDouble arg6 ;
27191 wxDouble arg7 ;
27192 void *argp1 = 0 ;
27193 int res1 = 0 ;
27194 double val2 ;
27195 int ecode2 = 0 ;
27196 double val3 ;
27197 int ecode3 = 0 ;
27198 double val4 ;
27199 int ecode4 = 0 ;
27200 double val5 ;
27201 int ecode5 = 0 ;
27202 double val6 ;
27203 int ecode6 = 0 ;
27204 double val7 ;
27205 int ecode7 = 0 ;
27206
27207 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
27208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27209 if (!SWIG_IsOK(res1)) {
27210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27211 }
27212 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27213 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27214 if (!SWIG_IsOK(ecode2)) {
27215 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27216 }
27217 arg2 = static_cast< wxDouble >(val2);
27218 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27219 if (!SWIG_IsOK(ecode3)) {
27220 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27221 }
27222 arg3 = static_cast< wxDouble >(val3);
27223 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27224 if (!SWIG_IsOK(ecode4)) {
27225 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27226 }
27227 arg4 = static_cast< wxDouble >(val4);
27228 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27229 if (!SWIG_IsOK(ecode5)) {
27230 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27231 }
27232 arg5 = static_cast< wxDouble >(val5);
27233 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
27234 if (!SWIG_IsOK(ecode6)) {
27235 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27236 }
27237 arg6 = static_cast< wxDouble >(val6);
27238 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
27239 if (!SWIG_IsOK(ecode7)) {
27240 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
27241 }
27242 arg7 = static_cast< wxDouble >(val7);
27243 {
27244 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
27245 if (PyErr_Occurred()) SWIG_fail;
27246 }
27247 resultobj = SWIG_Py_Void();
27248 return resultobj;
27249 fail:
27250 return NULL;
27251 }
27252
27253
27254 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27255 PyObject *resultobj = 0;
27256 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27257 wxPoint2D *arg2 = 0 ;
27258 wxPoint2D *arg3 = 0 ;
27259 wxPoint2D *arg4 = 0 ;
27260 void *argp1 = 0 ;
27261 int res1 = 0 ;
27262 wxPoint2D temp2 ;
27263 wxPoint2D temp3 ;
27264 wxPoint2D temp4 ;
27265
27266 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
27267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27268 if (!SWIG_IsOK(res1)) {
27269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27270 }
27271 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27272 {
27273 arg2 = &temp2;
27274 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27275 }
27276 {
27277 arg3 = &temp3;
27278 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
27279 }
27280 {
27281 arg4 = &temp4;
27282 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
27283 }
27284 {
27285 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
27286 if (PyErr_Occurred()) SWIG_fail;
27287 }
27288 resultobj = SWIG_Py_Void();
27289 return resultobj;
27290 fail:
27291 return NULL;
27292 }
27293
27294
27295 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
27296 int argc;
27297 PyObject *argv[8];
27298
27299 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
27300 --argc;
27301 if (argc == 4) {
27302 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
27303 }
27304 if (argc == 7) {
27305 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
27306 }
27307
27308 fail:
27309 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
27310 return NULL;
27311 }
27312
27313
27314 SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27315 PyObject *resultobj = 0;
27316 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27317 wxGraphicsPath *arg2 = 0 ;
27318 void *argp1 = 0 ;
27319 int res1 = 0 ;
27320 void *argp2 = 0 ;
27321 int res2 = 0 ;
27322 PyObject * obj0 = 0 ;
27323 PyObject * obj1 = 0 ;
27324 char * kwnames[] = {
27325 (char *) "self",(char *) "path", NULL
27326 };
27327
27328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
27329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27330 if (!SWIG_IsOK(res1)) {
27331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27332 }
27333 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27334 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
27335 if (!SWIG_IsOK(res2)) {
27336 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
27337 }
27338 if (!argp2) {
27339 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
27340 }
27341 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
27342 {
27343 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
27344 if (PyErr_Occurred()) SWIG_fail;
27345 }
27346 resultobj = SWIG_Py_Void();
27347 return resultobj;
27348 fail:
27349 return NULL;
27350 }
27351
27352
27353 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27354 PyObject *resultobj = 0;
27355 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27356 void *argp1 = 0 ;
27357 int res1 = 0 ;
27358 PyObject *swig_obj[1] ;
27359
27360 if (!args) SWIG_fail;
27361 swig_obj[0] = args;
27362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27363 if (!SWIG_IsOK(res1)) {
27364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27365 }
27366 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27367 {
27368 (arg1)->CloseSubpath();
27369 if (PyErr_Occurred()) SWIG_fail;
27370 }
27371 resultobj = SWIG_Py_Void();
27372 return resultobj;
27373 fail:
27374 return NULL;
27375 }
27376
27377
27378 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27379 PyObject *resultobj = 0;
27380 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27381 wxPoint2D result;
27382 void *argp1 = 0 ;
27383 int res1 = 0 ;
27384 PyObject *swig_obj[1] ;
27385
27386 if (!args) SWIG_fail;
27387 swig_obj[0] = args;
27388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27389 if (!SWIG_IsOK(res1)) {
27390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27391 }
27392 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27393 {
27394 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
27395 if (PyErr_Occurred()) SWIG_fail;
27396 }
27397 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
27398 return resultobj;
27399 fail:
27400 return NULL;
27401 }
27402
27403
27404 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27405 PyObject *resultobj = 0;
27406 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27407 wxDouble arg2 ;
27408 wxDouble arg3 ;
27409 wxDouble arg4 ;
27410 wxDouble arg5 ;
27411 wxDouble arg6 ;
27412 bool arg7 ;
27413 void *argp1 = 0 ;
27414 int res1 = 0 ;
27415 double val2 ;
27416 int ecode2 = 0 ;
27417 double val3 ;
27418 int ecode3 = 0 ;
27419 double val4 ;
27420 int ecode4 = 0 ;
27421 double val5 ;
27422 int ecode5 = 0 ;
27423 double val6 ;
27424 int ecode6 = 0 ;
27425 bool val7 ;
27426 int ecode7 = 0 ;
27427
27428 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
27429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27430 if (!SWIG_IsOK(res1)) {
27431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27432 }
27433 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27434 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27435 if (!SWIG_IsOK(ecode2)) {
27436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
27437 }
27438 arg2 = static_cast< wxDouble >(val2);
27439 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27440 if (!SWIG_IsOK(ecode3)) {
27441 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
27442 }
27443 arg3 = static_cast< wxDouble >(val3);
27444 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27445 if (!SWIG_IsOK(ecode4)) {
27446 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27447 }
27448 arg4 = static_cast< wxDouble >(val4);
27449 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27450 if (!SWIG_IsOK(ecode5)) {
27451 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27452 }
27453 arg5 = static_cast< wxDouble >(val5);
27454 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
27455 if (!SWIG_IsOK(ecode6)) {
27456 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
27457 }
27458 arg6 = static_cast< wxDouble >(val6);
27459 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
27460 if (!SWIG_IsOK(ecode7)) {
27461 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
27462 }
27463 arg7 = static_cast< bool >(val7);
27464 {
27465 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
27466 if (PyErr_Occurred()) SWIG_fail;
27467 }
27468 resultobj = SWIG_Py_Void();
27469 return resultobj;
27470 fail:
27471 return NULL;
27472 }
27473
27474
27475 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27476 PyObject *resultobj = 0;
27477 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27478 wxPoint2D *arg2 = 0 ;
27479 wxDouble arg3 ;
27480 wxDouble arg4 ;
27481 wxDouble arg5 ;
27482 bool arg6 ;
27483 void *argp1 = 0 ;
27484 int res1 = 0 ;
27485 wxPoint2D temp2 ;
27486 double val3 ;
27487 int ecode3 = 0 ;
27488 double val4 ;
27489 int ecode4 = 0 ;
27490 double val5 ;
27491 int ecode5 = 0 ;
27492 bool val6 ;
27493 int ecode6 = 0 ;
27494
27495 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
27496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27497 if (!SWIG_IsOK(res1)) {
27498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27499 }
27500 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27501 {
27502 arg2 = &temp2;
27503 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27504 }
27505 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27506 if (!SWIG_IsOK(ecode3)) {
27507 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
27508 }
27509 arg3 = static_cast< wxDouble >(val3);
27510 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27511 if (!SWIG_IsOK(ecode4)) {
27512 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
27513 }
27514 arg4 = static_cast< wxDouble >(val4);
27515 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27516 if (!SWIG_IsOK(ecode5)) {
27517 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
27518 }
27519 arg5 = static_cast< wxDouble >(val5);
27520 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
27521 if (!SWIG_IsOK(ecode6)) {
27522 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
27523 }
27524 arg6 = static_cast< bool >(val6);
27525 {
27526 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
27527 if (PyErr_Occurred()) SWIG_fail;
27528 }
27529 resultobj = SWIG_Py_Void();
27530 return resultobj;
27531 fail:
27532 return NULL;
27533 }
27534
27535
27536 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
27537 int argc;
27538 PyObject *argv[8];
27539
27540 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
27541 --argc;
27542 if (argc == 6) {
27543 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
27544 }
27545 if (argc == 7) {
27546 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
27547 }
27548
27549 fail:
27550 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
27551 return NULL;
27552 }
27553
27554
27555 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27556 PyObject *resultobj = 0;
27557 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27558 wxDouble arg2 ;
27559 wxDouble arg3 ;
27560 wxDouble arg4 ;
27561 wxDouble arg5 ;
27562 void *argp1 = 0 ;
27563 int res1 = 0 ;
27564 double val2 ;
27565 int ecode2 = 0 ;
27566 double val3 ;
27567 int ecode3 = 0 ;
27568 double val4 ;
27569 int ecode4 = 0 ;
27570 double val5 ;
27571 int ecode5 = 0 ;
27572 PyObject * obj0 = 0 ;
27573 PyObject * obj1 = 0 ;
27574 PyObject * obj2 = 0 ;
27575 PyObject * obj3 = 0 ;
27576 PyObject * obj4 = 0 ;
27577 char * kwnames[] = {
27578 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
27579 };
27580
27581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27583 if (!SWIG_IsOK(res1)) {
27584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27585 }
27586 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27587 ecode2 = SWIG_AsVal_double(obj1, &val2);
27588 if (!SWIG_IsOK(ecode2)) {
27589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27590 }
27591 arg2 = static_cast< wxDouble >(val2);
27592 ecode3 = SWIG_AsVal_double(obj2, &val3);
27593 if (!SWIG_IsOK(ecode3)) {
27594 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27595 }
27596 arg3 = static_cast< wxDouble >(val3);
27597 ecode4 = SWIG_AsVal_double(obj3, &val4);
27598 if (!SWIG_IsOK(ecode4)) {
27599 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27600 }
27601 arg4 = static_cast< wxDouble >(val4);
27602 ecode5 = SWIG_AsVal_double(obj4, &val5);
27603 if (!SWIG_IsOK(ecode5)) {
27604 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27605 }
27606 arg5 = static_cast< wxDouble >(val5);
27607 {
27608 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
27609 if (PyErr_Occurred()) SWIG_fail;
27610 }
27611 resultobj = SWIG_Py_Void();
27612 return resultobj;
27613 fail:
27614 return NULL;
27615 }
27616
27617
27618 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27619 PyObject *resultobj = 0;
27620 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27621 wxDouble arg2 ;
27622 wxDouble arg3 ;
27623 wxDouble arg4 ;
27624 wxDouble arg5 ;
27625 void *argp1 = 0 ;
27626 int res1 = 0 ;
27627 double val2 ;
27628 int ecode2 = 0 ;
27629 double val3 ;
27630 int ecode3 = 0 ;
27631 double val4 ;
27632 int ecode4 = 0 ;
27633 double val5 ;
27634 int ecode5 = 0 ;
27635 PyObject * obj0 = 0 ;
27636 PyObject * obj1 = 0 ;
27637 PyObject * obj2 = 0 ;
27638 PyObject * obj3 = 0 ;
27639 PyObject * obj4 = 0 ;
27640 char * kwnames[] = {
27641 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27642 };
27643
27644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27646 if (!SWIG_IsOK(res1)) {
27647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27648 }
27649 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27650 ecode2 = SWIG_AsVal_double(obj1, &val2);
27651 if (!SWIG_IsOK(ecode2)) {
27652 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27653 }
27654 arg2 = static_cast< wxDouble >(val2);
27655 ecode3 = SWIG_AsVal_double(obj2, &val3);
27656 if (!SWIG_IsOK(ecode3)) {
27657 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27658 }
27659 arg3 = static_cast< wxDouble >(val3);
27660 ecode4 = SWIG_AsVal_double(obj3, &val4);
27661 if (!SWIG_IsOK(ecode4)) {
27662 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27663 }
27664 arg4 = static_cast< wxDouble >(val4);
27665 ecode5 = SWIG_AsVal_double(obj4, &val5);
27666 if (!SWIG_IsOK(ecode5)) {
27667 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27668 }
27669 arg5 = static_cast< wxDouble >(val5);
27670 {
27671 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
27672 if (PyErr_Occurred()) SWIG_fail;
27673 }
27674 resultobj = SWIG_Py_Void();
27675 return resultobj;
27676 fail:
27677 return NULL;
27678 }
27679
27680
27681 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27682 PyObject *resultobj = 0;
27683 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27684 wxDouble arg2 ;
27685 wxDouble arg3 ;
27686 wxDouble arg4 ;
27687 void *argp1 = 0 ;
27688 int res1 = 0 ;
27689 double val2 ;
27690 int ecode2 = 0 ;
27691 double val3 ;
27692 int ecode3 = 0 ;
27693 double val4 ;
27694 int ecode4 = 0 ;
27695 PyObject * obj0 = 0 ;
27696 PyObject * obj1 = 0 ;
27697 PyObject * obj2 = 0 ;
27698 PyObject * obj3 = 0 ;
27699 char * kwnames[] = {
27700 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
27701 };
27702
27703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27705 if (!SWIG_IsOK(res1)) {
27706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27707 }
27708 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27709 ecode2 = SWIG_AsVal_double(obj1, &val2);
27710 if (!SWIG_IsOK(ecode2)) {
27711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
27712 }
27713 arg2 = static_cast< wxDouble >(val2);
27714 ecode3 = SWIG_AsVal_double(obj2, &val3);
27715 if (!SWIG_IsOK(ecode3)) {
27716 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
27717 }
27718 arg3 = static_cast< wxDouble >(val3);
27719 ecode4 = SWIG_AsVal_double(obj3, &val4);
27720 if (!SWIG_IsOK(ecode4)) {
27721 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
27722 }
27723 arg4 = static_cast< wxDouble >(val4);
27724 {
27725 (arg1)->AddCircle(arg2,arg3,arg4);
27726 if (PyErr_Occurred()) SWIG_fail;
27727 }
27728 resultobj = SWIG_Py_Void();
27729 return resultobj;
27730 fail:
27731 return NULL;
27732 }
27733
27734
27735 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27736 PyObject *resultobj = 0;
27737 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27738 wxDouble arg2 ;
27739 wxDouble arg3 ;
27740 wxDouble arg4 ;
27741 wxDouble arg5 ;
27742 wxDouble arg6 ;
27743 void *argp1 = 0 ;
27744 int res1 = 0 ;
27745 double val2 ;
27746 int ecode2 = 0 ;
27747 double val3 ;
27748 int ecode3 = 0 ;
27749 double val4 ;
27750 int ecode4 = 0 ;
27751 double val5 ;
27752 int ecode5 = 0 ;
27753 double val6 ;
27754 int ecode6 = 0 ;
27755 PyObject * obj0 = 0 ;
27756 PyObject * obj1 = 0 ;
27757 PyObject * obj2 = 0 ;
27758 PyObject * obj3 = 0 ;
27759 PyObject * obj4 = 0 ;
27760 PyObject * obj5 = 0 ;
27761 char * kwnames[] = {
27762 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
27763 };
27764
27765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27767 if (!SWIG_IsOK(res1)) {
27768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27769 }
27770 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27771 ecode2 = SWIG_AsVal_double(obj1, &val2);
27772 if (!SWIG_IsOK(ecode2)) {
27773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27774 }
27775 arg2 = static_cast< wxDouble >(val2);
27776 ecode3 = SWIG_AsVal_double(obj2, &val3);
27777 if (!SWIG_IsOK(ecode3)) {
27778 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27779 }
27780 arg3 = static_cast< wxDouble >(val3);
27781 ecode4 = SWIG_AsVal_double(obj3, &val4);
27782 if (!SWIG_IsOK(ecode4)) {
27783 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27784 }
27785 arg4 = static_cast< wxDouble >(val4);
27786 ecode5 = SWIG_AsVal_double(obj4, &val5);
27787 if (!SWIG_IsOK(ecode5)) {
27788 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27789 }
27790 arg5 = static_cast< wxDouble >(val5);
27791 ecode6 = SWIG_AsVal_double(obj5, &val6);
27792 if (!SWIG_IsOK(ecode6)) {
27793 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27794 }
27795 arg6 = static_cast< wxDouble >(val6);
27796 {
27797 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
27798 if (PyErr_Occurred()) SWIG_fail;
27799 }
27800 resultobj = SWIG_Py_Void();
27801 return resultobj;
27802 fail:
27803 return NULL;
27804 }
27805
27806
27807 SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27808 PyObject *resultobj = 0;
27809 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27810 wxDouble arg2 ;
27811 wxDouble arg3 ;
27812 wxDouble arg4 ;
27813 wxDouble arg5 ;
27814 void *argp1 = 0 ;
27815 int res1 = 0 ;
27816 double val2 ;
27817 int ecode2 = 0 ;
27818 double val3 ;
27819 int ecode3 = 0 ;
27820 double val4 ;
27821 int ecode4 = 0 ;
27822 double val5 ;
27823 int ecode5 = 0 ;
27824 PyObject * obj0 = 0 ;
27825 PyObject * obj1 = 0 ;
27826 PyObject * obj2 = 0 ;
27827 PyObject * obj3 = 0 ;
27828 PyObject * obj4 = 0 ;
27829 char * kwnames[] = {
27830 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27831 };
27832
27833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27835 if (!SWIG_IsOK(res1)) {
27836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27837 }
27838 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27839 ecode2 = SWIG_AsVal_double(obj1, &val2);
27840 if (!SWIG_IsOK(ecode2)) {
27841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27842 }
27843 arg2 = static_cast< wxDouble >(val2);
27844 ecode3 = SWIG_AsVal_double(obj2, &val3);
27845 if (!SWIG_IsOK(ecode3)) {
27846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27847 }
27848 arg3 = static_cast< wxDouble >(val3);
27849 ecode4 = SWIG_AsVal_double(obj3, &val4);
27850 if (!SWIG_IsOK(ecode4)) {
27851 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27852 }
27853 arg4 = static_cast< wxDouble >(val4);
27854 ecode5 = SWIG_AsVal_double(obj4, &val5);
27855 if (!SWIG_IsOK(ecode5)) {
27856 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27857 }
27858 arg5 = static_cast< wxDouble >(val5);
27859 {
27860 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
27861 if (PyErr_Occurred()) SWIG_fail;
27862 }
27863 resultobj = SWIG_Py_Void();
27864 return resultobj;
27865 fail:
27866 return NULL;
27867 }
27868
27869
27870 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27871 PyObject *resultobj = 0;
27872 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27873 wxDouble arg2 ;
27874 wxDouble arg3 ;
27875 wxDouble arg4 ;
27876 wxDouble arg5 ;
27877 wxDouble arg6 ;
27878 void *argp1 = 0 ;
27879 int res1 = 0 ;
27880 double val2 ;
27881 int ecode2 = 0 ;
27882 double val3 ;
27883 int ecode3 = 0 ;
27884 double val4 ;
27885 int ecode4 = 0 ;
27886 double val5 ;
27887 int ecode5 = 0 ;
27888 double val6 ;
27889 int ecode6 = 0 ;
27890 PyObject * obj0 = 0 ;
27891 PyObject * obj1 = 0 ;
27892 PyObject * obj2 = 0 ;
27893 PyObject * obj3 = 0 ;
27894 PyObject * obj4 = 0 ;
27895 PyObject * obj5 = 0 ;
27896 char * kwnames[] = {
27897 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
27898 };
27899
27900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27902 if (!SWIG_IsOK(res1)) {
27903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27904 }
27905 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27906 ecode2 = SWIG_AsVal_double(obj1, &val2);
27907 if (!SWIG_IsOK(ecode2)) {
27908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27909 }
27910 arg2 = static_cast< wxDouble >(val2);
27911 ecode3 = SWIG_AsVal_double(obj2, &val3);
27912 if (!SWIG_IsOK(ecode3)) {
27913 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27914 }
27915 arg3 = static_cast< wxDouble >(val3);
27916 ecode4 = SWIG_AsVal_double(obj3, &val4);
27917 if (!SWIG_IsOK(ecode4)) {
27918 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27919 }
27920 arg4 = static_cast< wxDouble >(val4);
27921 ecode5 = SWIG_AsVal_double(obj4, &val5);
27922 if (!SWIG_IsOK(ecode5)) {
27923 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27924 }
27925 arg5 = static_cast< wxDouble >(val5);
27926 ecode6 = SWIG_AsVal_double(obj5, &val6);
27927 if (!SWIG_IsOK(ecode6)) {
27928 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27929 }
27930 arg6 = static_cast< wxDouble >(val6);
27931 {
27932 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
27933 if (PyErr_Occurred()) SWIG_fail;
27934 }
27935 resultobj = SWIG_Py_Void();
27936 return resultobj;
27937 fail:
27938 return NULL;
27939 }
27940
27941
27942 SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27943 PyObject *resultobj = 0;
27944 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27945 void *result = 0 ;
27946 void *argp1 = 0 ;
27947 int res1 = 0 ;
27948 PyObject *swig_obj[1] ;
27949
27950 if (!args) SWIG_fail;
27951 swig_obj[0] = args;
27952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27953 if (!SWIG_IsOK(res1)) {
27954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27955 }
27956 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27957 {
27958 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
27959 if (PyErr_Occurred()) SWIG_fail;
27960 }
27961 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
27962 return resultobj;
27963 fail:
27964 return NULL;
27965 }
27966
27967
27968 SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27969 PyObject *resultobj = 0;
27970 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27971 void *arg2 = (void *) 0 ;
27972 void *argp1 = 0 ;
27973 int res1 = 0 ;
27974 int res2 ;
27975 PyObject * obj0 = 0 ;
27976 PyObject * obj1 = 0 ;
27977 char * kwnames[] = {
27978 (char *) "self",(char *) "p", NULL
27979 };
27980
27981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27983 if (!SWIG_IsOK(res1)) {
27984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27985 }
27986 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27987 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27988 if (!SWIG_IsOK(res2)) {
27989 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
27990 }
27991 {
27992 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
27993 if (PyErr_Occurred()) SWIG_fail;
27994 }
27995 resultobj = SWIG_Py_Void();
27996 return resultobj;
27997 fail:
27998 return NULL;
27999 }
28000
28001
28002 SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28003 PyObject *resultobj = 0;
28004 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28005 wxGraphicsMatrix *arg2 = 0 ;
28006 void *argp1 = 0 ;
28007 int res1 = 0 ;
28008 void *argp2 = 0 ;
28009 int res2 = 0 ;
28010 PyObject * obj0 = 0 ;
28011 PyObject * obj1 = 0 ;
28012 char * kwnames[] = {
28013 (char *) "self",(char *) "matrix", NULL
28014 };
28015
28016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
28017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28018 if (!SWIG_IsOK(res1)) {
28019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
28020 }
28021 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28022 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28023 if (!SWIG_IsOK(res2)) {
28024 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28025 }
28026 if (!argp2) {
28027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28028 }
28029 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28030 {
28031 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
28032 if (PyErr_Occurred()) SWIG_fail;
28033 }
28034 resultobj = SWIG_Py_Void();
28035 return resultobj;
28036 fail:
28037 return NULL;
28038 }
28039
28040
28041 SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28042 PyObject *resultobj = 0;
28043 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28044 wxRect2DDouble result;
28045 void *argp1 = 0 ;
28046 int res1 = 0 ;
28047 PyObject *swig_obj[1] ;
28048
28049 if (!args) SWIG_fail;
28050 swig_obj[0] = args;
28051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28052 if (!SWIG_IsOK(res1)) {
28053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28054 }
28055 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28056 {
28057 result = ((wxGraphicsPath const *)arg1)->GetBox();
28058 if (PyErr_Occurred()) SWIG_fail;
28059 }
28060 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
28061 return resultobj;
28062 fail:
28063 return NULL;
28064 }
28065
28066
28067 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28068 PyObject *resultobj = 0;
28069 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28070 wxDouble arg2 ;
28071 wxDouble arg3 ;
28072 int arg4 = (int) wxODDEVEN_RULE ;
28073 bool result;
28074 void *argp1 = 0 ;
28075 int res1 = 0 ;
28076 double val2 ;
28077 int ecode2 = 0 ;
28078 double val3 ;
28079 int ecode3 = 0 ;
28080 int val4 ;
28081 int ecode4 = 0 ;
28082
28083 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
28084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28085 if (!SWIG_IsOK(res1)) {
28086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28087 }
28088 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28089 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
28090 if (!SWIG_IsOK(ecode2)) {
28091 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
28092 }
28093 arg2 = static_cast< wxDouble >(val2);
28094 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28095 if (!SWIG_IsOK(ecode3)) {
28096 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
28097 }
28098 arg3 = static_cast< wxDouble >(val3);
28099 if (swig_obj[3]) {
28100 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
28101 if (!SWIG_IsOK(ecode4)) {
28102 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
28103 }
28104 arg4 = static_cast< int >(val4);
28105 }
28106 {
28107 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
28108 if (PyErr_Occurred()) SWIG_fail;
28109 }
28110 {
28111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28112 }
28113 return resultobj;
28114 fail:
28115 return NULL;
28116 }
28117
28118
28119 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28120 PyObject *resultobj = 0;
28121 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28122 wxPoint2DDouble *arg2 = 0 ;
28123 int arg3 = (int) wxODDEVEN_RULE ;
28124 bool result;
28125 void *argp1 = 0 ;
28126 int res1 = 0 ;
28127 void *argp2 = 0 ;
28128 int res2 = 0 ;
28129 int val3 ;
28130 int ecode3 = 0 ;
28131
28132 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28134 if (!SWIG_IsOK(res1)) {
28135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28136 }
28137 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28138 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
28139 if (!SWIG_IsOK(res2)) {
28140 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
28141 }
28142 if (!argp2) {
28143 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
28144 }
28145 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
28146 if (swig_obj[2]) {
28147 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
28148 if (!SWIG_IsOK(ecode3)) {
28149 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
28150 }
28151 arg3 = static_cast< int >(val3);
28152 }
28153 {
28154 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
28155 if (PyErr_Occurred()) SWIG_fail;
28156 }
28157 {
28158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28159 }
28160 return resultobj;
28161 fail:
28162 return NULL;
28163 }
28164
28165
28166 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
28167 int argc;
28168 PyObject *argv[5];
28169
28170 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
28171 --argc;
28172 if ((argc >= 2) && (argc <= 3)) {
28173 int _v = 0;
28174 {
28175 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
28176 _v = SWIG_CheckState(res);
28177 }
28178 if (!_v) goto check_1;
28179 if (argc > 2) {
28180 {
28181 {
28182 int res = SWIG_AsVal_int(argv[2], NULL);
28183 _v = SWIG_CheckState(res);
28184 }
28185 }
28186 if (!_v) goto check_1;
28187 }
28188 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
28189 }
28190 check_1:
28191
28192 if ((argc >= 3) && (argc <= 4)) {
28193 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
28194 }
28195
28196 fail:
28197 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
28198 return NULL;
28199 }
28200
28201
28202 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28203 PyObject *obj;
28204 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28205 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
28206 return SWIG_Py_Void();
28207 }
28208
28209 SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28210 return SWIG_Python_InitShadowInstance(args);
28211 }
28212
28213 SWIGINTERN int NullGraphicsPen_set(PyObject *) {
28214 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
28215 return 1;
28216 }
28217
28218
28219 SWIGINTERN PyObject *NullGraphicsPen_get(void) {
28220 PyObject *pyobj = 0;
28221
28222 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
28223 return pyobj;
28224 }
28225
28226
28227 SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
28228 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
28229 return 1;
28230 }
28231
28232
28233 SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
28234 PyObject *pyobj = 0;
28235
28236 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
28237 return pyobj;
28238 }
28239
28240
28241 SWIGINTERN int NullGraphicsFont_set(PyObject *) {
28242 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
28243 return 1;
28244 }
28245
28246
28247 SWIGINTERN PyObject *NullGraphicsFont_get(void) {
28248 PyObject *pyobj = 0;
28249
28250 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
28251 return pyobj;
28252 }
28253
28254
28255 SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
28256 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
28257 return 1;
28258 }
28259
28260
28261 SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
28262 PyObject *pyobj = 0;
28263
28264 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
28265 return pyobj;
28266 }
28267
28268
28269 SWIGINTERN int NullGraphicsPath_set(PyObject *) {
28270 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
28271 return 1;
28272 }
28273
28274
28275 SWIGINTERN PyObject *NullGraphicsPath_get(void) {
28276 PyObject *pyobj = 0;
28277
28278 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
28279 return pyobj;
28280 }
28281
28282
28283 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28284 PyObject *resultobj = 0;
28285 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28286 void *argp1 = 0 ;
28287 int res1 = 0 ;
28288 PyObject *swig_obj[1] ;
28289
28290 if (!args) SWIG_fail;
28291 swig_obj[0] = args;
28292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
28293 if (!SWIG_IsOK(res1)) {
28294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28295 }
28296 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28297 {
28298 delete arg1;
28299
28300 if (PyErr_Occurred()) SWIG_fail;
28301 }
28302 resultobj = SWIG_Py_Void();
28303 return resultobj;
28304 fail:
28305 return NULL;
28306 }
28307
28308
28309 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28310 PyObject *resultobj = 0;
28311 wxWindowDC *arg1 = 0 ;
28312 wxGraphicsContext *result = 0 ;
28313 void *argp1 = 0 ;
28314 int res1 = 0 ;
28315
28316 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
28318 if (!SWIG_IsOK(res1)) {
28319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28320 }
28321 if (!argp1) {
28322 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28323 }
28324 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
28325 {
28326 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
28327 if (PyErr_Occurred()) SWIG_fail;
28328 }
28329 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28330 return resultobj;
28331 fail:
28332 return NULL;
28333 }
28334
28335
28336 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28337 PyObject *resultobj = 0;
28338 wxWindow *arg1 = (wxWindow *) 0 ;
28339 wxGraphicsContext *result = 0 ;
28340 void *argp1 = 0 ;
28341 int res1 = 0 ;
28342
28343 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28345 if (!SWIG_IsOK(res1)) {
28346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
28347 }
28348 arg1 = reinterpret_cast< wxWindow * >(argp1);
28349 {
28350 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
28351 if (PyErr_Occurred()) SWIG_fail;
28352 }
28353 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28354 return resultobj;
28355 fail:
28356 return NULL;
28357 }
28358
28359
28360 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
28361 int argc;
28362 PyObject *argv[2];
28363
28364 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
28365 --argc;
28366 if (argc == 1) {
28367 int _v = 0;
28368 {
28369 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
28370 _v = SWIG_CheckState(res);
28371 }
28372 if (!_v) goto check_1;
28373 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
28374 }
28375 check_1:
28376
28377 if (argc == 1) {
28378 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
28379 }
28380
28381 fail:
28382 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
28383 return NULL;
28384 }
28385
28386
28387 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28388 PyObject *resultobj = 0;
28389 wxGraphicsContext *result = 0 ;
28390
28391 if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail;
28392 {
28393 result = (wxGraphicsContext *)wxGraphicsContext::Create();
28394 if (PyErr_Occurred()) SWIG_fail;
28395 }
28396 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28397 return resultobj;
28398 fail:
28399 return NULL;
28400 }
28401
28402
28403 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28404 PyObject *resultobj = 0;
28405 void *arg1 = (void *) 0 ;
28406 wxGraphicsContext *result = 0 ;
28407 int res1 ;
28408 PyObject * obj0 = 0 ;
28409 char * kwnames[] = {
28410 (char *) "context", NULL
28411 };
28412
28413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
28414 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28415 if (!SWIG_IsOK(res1)) {
28416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
28417 }
28418 {
28419 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
28420 if (PyErr_Occurred()) SWIG_fail;
28421 }
28422 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28423 return resultobj;
28424 fail:
28425 return NULL;
28426 }
28427
28428
28429 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28430 PyObject *resultobj = 0;
28431 void *arg1 = (void *) 0 ;
28432 wxGraphicsContext *result = 0 ;
28433 int res1 ;
28434 PyObject * obj0 = 0 ;
28435 char * kwnames[] = {
28436 (char *) "window", NULL
28437 };
28438
28439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
28440 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28441 if (!SWIG_IsOK(res1)) {
28442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
28443 }
28444 {
28445 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
28446 if (PyErr_Occurred()) SWIG_fail;
28447 }
28448 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28449 return resultobj;
28450 fail:
28451 return NULL;
28452 }
28453
28454
28455 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28456 PyObject *resultobj = 0;
28457 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28458 wxGraphicsPath result;
28459 void *argp1 = 0 ;
28460 int res1 = 0 ;
28461 PyObject *swig_obj[1] ;
28462
28463 if (!args) SWIG_fail;
28464 swig_obj[0] = args;
28465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28466 if (!SWIG_IsOK(res1)) {
28467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28468 }
28469 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28470 {
28471 result = (arg1)->CreatePath();
28472 if (PyErr_Occurred()) SWIG_fail;
28473 }
28474 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
28475 return resultobj;
28476 fail:
28477 return NULL;
28478 }
28479
28480
28481 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28482 PyObject *resultobj = 0;
28483 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28484 wxPen *arg2 = 0 ;
28485 wxGraphicsPen result;
28486 void *argp1 = 0 ;
28487 int res1 = 0 ;
28488 void *argp2 = 0 ;
28489 int res2 = 0 ;
28490 PyObject * obj0 = 0 ;
28491 PyObject * obj1 = 0 ;
28492 char * kwnames[] = {
28493 (char *) "self",(char *) "pen", NULL
28494 };
28495
28496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
28497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28498 if (!SWIG_IsOK(res1)) {
28499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28500 }
28501 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28502 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
28503 if (!SWIG_IsOK(res2)) {
28504 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28505 }
28506 if (!argp2) {
28507 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
28508 }
28509 arg2 = reinterpret_cast< wxPen * >(argp2);
28510 {
28511 result = (arg1)->CreatePen((wxPen const &)*arg2);
28512 if (PyErr_Occurred()) SWIG_fail;
28513 }
28514 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
28515 return resultobj;
28516 fail:
28517 return NULL;
28518 }
28519
28520
28521 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28522 PyObject *resultobj = 0;
28523 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28524 wxBrush *arg2 = 0 ;
28525 wxGraphicsBrush result;
28526 void *argp1 = 0 ;
28527 int res1 = 0 ;
28528 void *argp2 = 0 ;
28529 int res2 = 0 ;
28530 PyObject * obj0 = 0 ;
28531 PyObject * obj1 = 0 ;
28532 char * kwnames[] = {
28533 (char *) "self",(char *) "brush", NULL
28534 };
28535
28536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28538 if (!SWIG_IsOK(res1)) {
28539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28540 }
28541 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28542 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28543 if (!SWIG_IsOK(res2)) {
28544 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28545 }
28546 if (!argp2) {
28547 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28548 }
28549 arg2 = reinterpret_cast< wxBrush * >(argp2);
28550 {
28551 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
28552 if (PyErr_Occurred()) SWIG_fail;
28553 }
28554 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28555 return resultobj;
28556 fail:
28557 return NULL;
28558 }
28559
28560
28561 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28562 PyObject *resultobj = 0;
28563 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28564 wxDouble arg2 ;
28565 wxDouble arg3 ;
28566 wxDouble arg4 ;
28567 wxDouble arg5 ;
28568 wxColour *arg6 = 0 ;
28569 wxColour *arg7 = 0 ;
28570 wxGraphicsBrush result;
28571 void *argp1 = 0 ;
28572 int res1 = 0 ;
28573 double val2 ;
28574 int ecode2 = 0 ;
28575 double val3 ;
28576 int ecode3 = 0 ;
28577 double val4 ;
28578 int ecode4 = 0 ;
28579 double val5 ;
28580 int ecode5 = 0 ;
28581 wxColour temp6 ;
28582 wxColour temp7 ;
28583 PyObject * obj0 = 0 ;
28584 PyObject * obj1 = 0 ;
28585 PyObject * obj2 = 0 ;
28586 PyObject * obj3 = 0 ;
28587 PyObject * obj4 = 0 ;
28588 PyObject * obj5 = 0 ;
28589 PyObject * obj6 = 0 ;
28590 char * kwnames[] = {
28591 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
28592 };
28593
28594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28596 if (!SWIG_IsOK(res1)) {
28597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28598 }
28599 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28600 ecode2 = SWIG_AsVal_double(obj1, &val2);
28601 if (!SWIG_IsOK(ecode2)) {
28602 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
28603 }
28604 arg2 = static_cast< wxDouble >(val2);
28605 ecode3 = SWIG_AsVal_double(obj2, &val3);
28606 if (!SWIG_IsOK(ecode3)) {
28607 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
28608 }
28609 arg3 = static_cast< wxDouble >(val3);
28610 ecode4 = SWIG_AsVal_double(obj3, &val4);
28611 if (!SWIG_IsOK(ecode4)) {
28612 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
28613 }
28614 arg4 = static_cast< wxDouble >(val4);
28615 ecode5 = SWIG_AsVal_double(obj4, &val5);
28616 if (!SWIG_IsOK(ecode5)) {
28617 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
28618 }
28619 arg5 = static_cast< wxDouble >(val5);
28620 {
28621 arg6 = &temp6;
28622 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
28623 }
28624 {
28625 arg7 = &temp7;
28626 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28627 }
28628 {
28629 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
28630 if (PyErr_Occurred()) SWIG_fail;
28631 }
28632 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28633 return resultobj;
28634 fail:
28635 return NULL;
28636 }
28637
28638
28639 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28640 PyObject *resultobj = 0;
28641 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28642 wxDouble arg2 ;
28643 wxDouble arg3 ;
28644 wxDouble arg4 ;
28645 wxDouble arg5 ;
28646 wxDouble arg6 ;
28647 wxColour *arg7 = 0 ;
28648 wxColour *arg8 = 0 ;
28649 wxGraphicsBrush result;
28650 void *argp1 = 0 ;
28651 int res1 = 0 ;
28652 double val2 ;
28653 int ecode2 = 0 ;
28654 double val3 ;
28655 int ecode3 = 0 ;
28656 double val4 ;
28657 int ecode4 = 0 ;
28658 double val5 ;
28659 int ecode5 = 0 ;
28660 double val6 ;
28661 int ecode6 = 0 ;
28662 wxColour temp7 ;
28663 wxColour temp8 ;
28664 PyObject * obj0 = 0 ;
28665 PyObject * obj1 = 0 ;
28666 PyObject * obj2 = 0 ;
28667 PyObject * obj3 = 0 ;
28668 PyObject * obj4 = 0 ;
28669 PyObject * obj5 = 0 ;
28670 PyObject * obj6 = 0 ;
28671 PyObject * obj7 = 0 ;
28672 char * kwnames[] = {
28673 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
28674 };
28675
28676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28678 if (!SWIG_IsOK(res1)) {
28679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28680 }
28681 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28682 ecode2 = SWIG_AsVal_double(obj1, &val2);
28683 if (!SWIG_IsOK(ecode2)) {
28684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
28685 }
28686 arg2 = static_cast< wxDouble >(val2);
28687 ecode3 = SWIG_AsVal_double(obj2, &val3);
28688 if (!SWIG_IsOK(ecode3)) {
28689 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
28690 }
28691 arg3 = static_cast< wxDouble >(val3);
28692 ecode4 = SWIG_AsVal_double(obj3, &val4);
28693 if (!SWIG_IsOK(ecode4)) {
28694 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
28695 }
28696 arg4 = static_cast< wxDouble >(val4);
28697 ecode5 = SWIG_AsVal_double(obj4, &val5);
28698 if (!SWIG_IsOK(ecode5)) {
28699 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
28700 }
28701 arg5 = static_cast< wxDouble >(val5);
28702 ecode6 = SWIG_AsVal_double(obj5, &val6);
28703 if (!SWIG_IsOK(ecode6)) {
28704 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
28705 }
28706 arg6 = static_cast< wxDouble >(val6);
28707 {
28708 arg7 = &temp7;
28709 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28710 }
28711 {
28712 arg8 = &temp8;
28713 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
28714 }
28715 {
28716 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
28717 if (PyErr_Occurred()) SWIG_fail;
28718 }
28719 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
28720 return resultobj;
28721 fail:
28722 return NULL;
28723 }
28724
28725
28726 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28727 PyObject *resultobj = 0;
28728 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28729 wxFont *arg2 = 0 ;
28730 wxColour const &arg3_defvalue = *wxBLACK ;
28731 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28732 wxGraphicsFont result;
28733 void *argp1 = 0 ;
28734 int res1 = 0 ;
28735 void *argp2 = 0 ;
28736 int res2 = 0 ;
28737 wxColour temp3 ;
28738 PyObject * obj0 = 0 ;
28739 PyObject * obj1 = 0 ;
28740 PyObject * obj2 = 0 ;
28741 char * kwnames[] = {
28742 (char *) "self",(char *) "font",(char *) "col", NULL
28743 };
28744
28745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28747 if (!SWIG_IsOK(res1)) {
28748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28749 }
28750 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28751 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28752 if (!SWIG_IsOK(res2)) {
28753 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28754 }
28755 if (!argp2) {
28756 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28757 }
28758 arg2 = reinterpret_cast< wxFont * >(argp2);
28759 if (obj2) {
28760 {
28761 arg3 = &temp3;
28762 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28763 }
28764 }
28765 {
28766 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
28767 if (PyErr_Occurred()) SWIG_fail;
28768 }
28769 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
28770 return resultobj;
28771 fail:
28772 return NULL;
28773 }
28774
28775
28776 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28777 PyObject *resultobj = 0;
28778 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28779 wxDouble arg2 = (wxDouble) 1.0 ;
28780 wxDouble arg3 = (wxDouble) 0.0 ;
28781 wxDouble arg4 = (wxDouble) 0.0 ;
28782 wxDouble arg5 = (wxDouble) 1.0 ;
28783 wxDouble arg6 = (wxDouble) 0.0 ;
28784 wxDouble arg7 = (wxDouble) 0.0 ;
28785 wxGraphicsMatrix result;
28786 void *argp1 = 0 ;
28787 int res1 = 0 ;
28788 double val2 ;
28789 int ecode2 = 0 ;
28790 double val3 ;
28791 int ecode3 = 0 ;
28792 double val4 ;
28793 int ecode4 = 0 ;
28794 double val5 ;
28795 int ecode5 = 0 ;
28796 double val6 ;
28797 int ecode6 = 0 ;
28798 double val7 ;
28799 int ecode7 = 0 ;
28800 PyObject * obj0 = 0 ;
28801 PyObject * obj1 = 0 ;
28802 PyObject * obj2 = 0 ;
28803 PyObject * obj3 = 0 ;
28804 PyObject * obj4 = 0 ;
28805 PyObject * obj5 = 0 ;
28806 PyObject * obj6 = 0 ;
28807 char * kwnames[] = {
28808 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28809 };
28810
28811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28813 if (!SWIG_IsOK(res1)) {
28814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28815 }
28816 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28817 if (obj1) {
28818 ecode2 = SWIG_AsVal_double(obj1, &val2);
28819 if (!SWIG_IsOK(ecode2)) {
28820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28821 }
28822 arg2 = static_cast< wxDouble >(val2);
28823 }
28824 if (obj2) {
28825 ecode3 = SWIG_AsVal_double(obj2, &val3);
28826 if (!SWIG_IsOK(ecode3)) {
28827 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28828 }
28829 arg3 = static_cast< wxDouble >(val3);
28830 }
28831 if (obj3) {
28832 ecode4 = SWIG_AsVal_double(obj3, &val4);
28833 if (!SWIG_IsOK(ecode4)) {
28834 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28835 }
28836 arg4 = static_cast< wxDouble >(val4);
28837 }
28838 if (obj4) {
28839 ecode5 = SWIG_AsVal_double(obj4, &val5);
28840 if (!SWIG_IsOK(ecode5)) {
28841 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28842 }
28843 arg5 = static_cast< wxDouble >(val5);
28844 }
28845 if (obj5) {
28846 ecode6 = SWIG_AsVal_double(obj5, &val6);
28847 if (!SWIG_IsOK(ecode6)) {
28848 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28849 }
28850 arg6 = static_cast< wxDouble >(val6);
28851 }
28852 if (obj6) {
28853 ecode7 = SWIG_AsVal_double(obj6, &val7);
28854 if (!SWIG_IsOK(ecode7)) {
28855 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28856 }
28857 arg7 = static_cast< wxDouble >(val7);
28858 }
28859 {
28860 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
28861 if (PyErr_Occurred()) SWIG_fail;
28862 }
28863 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28864 return resultobj;
28865 fail:
28866 return NULL;
28867 }
28868
28869
28870 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28871 PyObject *resultobj = 0;
28872 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28873 void *argp1 = 0 ;
28874 int res1 = 0 ;
28875 PyObject *swig_obj[1] ;
28876
28877 if (!args) SWIG_fail;
28878 swig_obj[0] = args;
28879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28880 if (!SWIG_IsOK(res1)) {
28881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28882 }
28883 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28884 {
28885 (arg1)->PushState();
28886 if (PyErr_Occurred()) SWIG_fail;
28887 }
28888 resultobj = SWIG_Py_Void();
28889 return resultobj;
28890 fail:
28891 return NULL;
28892 }
28893
28894
28895 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28896 PyObject *resultobj = 0;
28897 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28898 void *argp1 = 0 ;
28899 int res1 = 0 ;
28900 PyObject *swig_obj[1] ;
28901
28902 if (!args) SWIG_fail;
28903 swig_obj[0] = args;
28904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28905 if (!SWIG_IsOK(res1)) {
28906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28907 }
28908 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28909 {
28910 (arg1)->PopState();
28911 if (PyErr_Occurred()) SWIG_fail;
28912 }
28913 resultobj = SWIG_Py_Void();
28914 return resultobj;
28915 fail:
28916 return NULL;
28917 }
28918
28919
28920 SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28921 PyObject *resultobj = 0;
28922 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28923 wxRegion *arg2 = 0 ;
28924 void *argp1 = 0 ;
28925 int res1 = 0 ;
28926 void *argp2 = 0 ;
28927 int res2 = 0 ;
28928 PyObject * obj0 = 0 ;
28929 PyObject * obj1 = 0 ;
28930 char * kwnames[] = {
28931 (char *) "self",(char *) "region", NULL
28932 };
28933
28934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
28935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28936 if (!SWIG_IsOK(res1)) {
28937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28938 }
28939 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28940 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28941 if (!SWIG_IsOK(res2)) {
28942 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
28943 }
28944 if (!argp2) {
28945 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
28946 }
28947 arg2 = reinterpret_cast< wxRegion * >(argp2);
28948 {
28949 (arg1)->Clip((wxRegion const &)*arg2);
28950 if (PyErr_Occurred()) SWIG_fail;
28951 }
28952 resultobj = SWIG_Py_Void();
28953 return resultobj;
28954 fail:
28955 return NULL;
28956 }
28957
28958
28959 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28960 PyObject *resultobj = 0;
28961 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28962 wxDouble arg2 ;
28963 wxDouble arg3 ;
28964 wxDouble arg4 ;
28965 wxDouble arg5 ;
28966 void *argp1 = 0 ;
28967 int res1 = 0 ;
28968 double val2 ;
28969 int ecode2 = 0 ;
28970 double val3 ;
28971 int ecode3 = 0 ;
28972 double val4 ;
28973 int ecode4 = 0 ;
28974 double val5 ;
28975 int ecode5 = 0 ;
28976 PyObject * obj0 = 0 ;
28977 PyObject * obj1 = 0 ;
28978 PyObject * obj2 = 0 ;
28979 PyObject * obj3 = 0 ;
28980 PyObject * obj4 = 0 ;
28981 char * kwnames[] = {
28982 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28983 };
28984
28985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28987 if (!SWIG_IsOK(res1)) {
28988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28989 }
28990 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28991 ecode2 = SWIG_AsVal_double(obj1, &val2);
28992 if (!SWIG_IsOK(ecode2)) {
28993 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28994 }
28995 arg2 = static_cast< wxDouble >(val2);
28996 ecode3 = SWIG_AsVal_double(obj2, &val3);
28997 if (!SWIG_IsOK(ecode3)) {
28998 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28999 }
29000 arg3 = static_cast< wxDouble >(val3);
29001 ecode4 = SWIG_AsVal_double(obj3, &val4);
29002 if (!SWIG_IsOK(ecode4)) {
29003 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
29004 }
29005 arg4 = static_cast< wxDouble >(val4);
29006 ecode5 = SWIG_AsVal_double(obj4, &val5);
29007 if (!SWIG_IsOK(ecode5)) {
29008 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
29009 }
29010 arg5 = static_cast< wxDouble >(val5);
29011 {
29012 (arg1)->Clip(arg2,arg3,arg4,arg5);
29013 if (PyErr_Occurred()) SWIG_fail;
29014 }
29015 resultobj = SWIG_Py_Void();
29016 return resultobj;
29017 fail:
29018 return NULL;
29019 }
29020
29021
29022 SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29023 PyObject *resultobj = 0;
29024 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29025 void *argp1 = 0 ;
29026 int res1 = 0 ;
29027 PyObject *swig_obj[1] ;
29028
29029 if (!args) SWIG_fail;
29030 swig_obj[0] = args;
29031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29032 if (!SWIG_IsOK(res1)) {
29033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29034 }
29035 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29036 {
29037 (arg1)->ResetClip();
29038 if (PyErr_Occurred()) SWIG_fail;
29039 }
29040 resultobj = SWIG_Py_Void();
29041 return resultobj;
29042 fail:
29043 return NULL;
29044 }
29045
29046
29047 SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29048 PyObject *resultobj = 0;
29049 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29050 void *result = 0 ;
29051 void *argp1 = 0 ;
29052 int res1 = 0 ;
29053 PyObject *swig_obj[1] ;
29054
29055 if (!args) SWIG_fail;
29056 swig_obj[0] = args;
29057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29058 if (!SWIG_IsOK(res1)) {
29059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29060 }
29061 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29062 {
29063 result = (void *)(arg1)->GetNativeContext();
29064 if (PyErr_Occurred()) SWIG_fail;
29065 }
29066 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
29067 return resultobj;
29068 fail:
29069 return NULL;
29070 }
29071
29072
29073 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29074 PyObject *resultobj = 0;
29075 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29076 wxDouble arg2 ;
29077 wxDouble arg3 ;
29078 void *argp1 = 0 ;
29079 int res1 = 0 ;
29080 double val2 ;
29081 int ecode2 = 0 ;
29082 double val3 ;
29083 int ecode3 = 0 ;
29084 PyObject * obj0 = 0 ;
29085 PyObject * obj1 = 0 ;
29086 PyObject * obj2 = 0 ;
29087 char * kwnames[] = {
29088 (char *) "self",(char *) "dx",(char *) "dy", NULL
29089 };
29090
29091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29093 if (!SWIG_IsOK(res1)) {
29094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29095 }
29096 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29097 ecode2 = SWIG_AsVal_double(obj1, &val2);
29098 if (!SWIG_IsOK(ecode2)) {
29099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
29100 }
29101 arg2 = static_cast< wxDouble >(val2);
29102 ecode3 = SWIG_AsVal_double(obj2, &val3);
29103 if (!SWIG_IsOK(ecode3)) {
29104 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
29105 }
29106 arg3 = static_cast< wxDouble >(val3);
29107 {
29108 (arg1)->Translate(arg2,arg3);
29109 if (PyErr_Occurred()) SWIG_fail;
29110 }
29111 resultobj = SWIG_Py_Void();
29112 return resultobj;
29113 fail:
29114 return NULL;
29115 }
29116
29117
29118 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29119 PyObject *resultobj = 0;
29120 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29121 wxDouble arg2 ;
29122 wxDouble arg3 ;
29123 void *argp1 = 0 ;
29124 int res1 = 0 ;
29125 double val2 ;
29126 int ecode2 = 0 ;
29127 double val3 ;
29128 int ecode3 = 0 ;
29129 PyObject * obj0 = 0 ;
29130 PyObject * obj1 = 0 ;
29131 PyObject * obj2 = 0 ;
29132 char * kwnames[] = {
29133 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
29134 };
29135
29136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29138 if (!SWIG_IsOK(res1)) {
29139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29140 }
29141 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29142 ecode2 = SWIG_AsVal_double(obj1, &val2);
29143 if (!SWIG_IsOK(ecode2)) {
29144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
29145 }
29146 arg2 = static_cast< wxDouble >(val2);
29147 ecode3 = SWIG_AsVal_double(obj2, &val3);
29148 if (!SWIG_IsOK(ecode3)) {
29149 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
29150 }
29151 arg3 = static_cast< wxDouble >(val3);
29152 {
29153 (arg1)->Scale(arg2,arg3);
29154 if (PyErr_Occurred()) SWIG_fail;
29155 }
29156 resultobj = SWIG_Py_Void();
29157 return resultobj;
29158 fail:
29159 return NULL;
29160 }
29161
29162
29163 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29164 PyObject *resultobj = 0;
29165 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29166 wxDouble arg2 ;
29167 void *argp1 = 0 ;
29168 int res1 = 0 ;
29169 double val2 ;
29170 int ecode2 = 0 ;
29171 PyObject * obj0 = 0 ;
29172 PyObject * obj1 = 0 ;
29173 char * kwnames[] = {
29174 (char *) "self",(char *) "angle", NULL
29175 };
29176
29177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
29178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29179 if (!SWIG_IsOK(res1)) {
29180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29181 }
29182 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29183 ecode2 = SWIG_AsVal_double(obj1, &val2);
29184 if (!SWIG_IsOK(ecode2)) {
29185 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
29186 }
29187 arg2 = static_cast< wxDouble >(val2);
29188 {
29189 (arg1)->Rotate(arg2);
29190 if (PyErr_Occurred()) SWIG_fail;
29191 }
29192 resultobj = SWIG_Py_Void();
29193 return resultobj;
29194 fail:
29195 return NULL;
29196 }
29197
29198
29199 SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29200 PyObject *resultobj = 0;
29201 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29202 wxGraphicsMatrix *arg2 = 0 ;
29203 void *argp1 = 0 ;
29204 int res1 = 0 ;
29205 void *argp2 = 0 ;
29206 int res2 = 0 ;
29207 PyObject * obj0 = 0 ;
29208 PyObject * obj1 = 0 ;
29209 char * kwnames[] = {
29210 (char *) "self",(char *) "matrix", NULL
29211 };
29212
29213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
29214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29215 if (!SWIG_IsOK(res1)) {
29216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29217 }
29218 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29219 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29220 if (!SWIG_IsOK(res2)) {
29221 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29222 }
29223 if (!argp2) {
29224 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29225 }
29226 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29227 {
29228 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
29229 if (PyErr_Occurred()) SWIG_fail;
29230 }
29231 resultobj = SWIG_Py_Void();
29232 return resultobj;
29233 fail:
29234 return NULL;
29235 }
29236
29237
29238 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29239 PyObject *resultobj = 0;
29240 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29241 wxGraphicsMatrix *arg2 = 0 ;
29242 void *argp1 = 0 ;
29243 int res1 = 0 ;
29244 void *argp2 = 0 ;
29245 int res2 = 0 ;
29246 PyObject * obj0 = 0 ;
29247 PyObject * obj1 = 0 ;
29248 char * kwnames[] = {
29249 (char *) "self",(char *) "matrix", NULL
29250 };
29251
29252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
29253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29254 if (!SWIG_IsOK(res1)) {
29255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29256 }
29257 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29258 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29259 if (!SWIG_IsOK(res2)) {
29260 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29261 }
29262 if (!argp2) {
29263 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29264 }
29265 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29266 {
29267 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
29268 if (PyErr_Occurred()) SWIG_fail;
29269 }
29270 resultobj = SWIG_Py_Void();
29271 return resultobj;
29272 fail:
29273 return NULL;
29274 }
29275
29276
29277 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29278 PyObject *resultobj = 0;
29279 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29280 wxGraphicsMatrix result;
29281 void *argp1 = 0 ;
29282 int res1 = 0 ;
29283 PyObject *swig_obj[1] ;
29284
29285 if (!args) SWIG_fail;
29286 swig_obj[0] = args;
29287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29288 if (!SWIG_IsOK(res1)) {
29289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29290 }
29291 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29292 {
29293 result = ((wxGraphicsContext const *)arg1)->GetTransform();
29294 if (PyErr_Occurred()) SWIG_fail;
29295 }
29296 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
29297 return resultobj;
29298 fail:
29299 return NULL;
29300 }
29301
29302
29303 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29304 PyObject *resultobj = 0;
29305 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29306 wxGraphicsPen *arg2 = 0 ;
29307 void *argp1 = 0 ;
29308 int res1 = 0 ;
29309 void *argp2 = 0 ;
29310 int res2 = 0 ;
29311
29312 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29314 if (!SWIG_IsOK(res1)) {
29315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29316 }
29317 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29318 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
29319 if (!SWIG_IsOK(res2)) {
29320 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29321 }
29322 if (!argp2) {
29323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29324 }
29325 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
29326 {
29327 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
29328 if (PyErr_Occurred()) SWIG_fail;
29329 }
29330 resultobj = SWIG_Py_Void();
29331 return resultobj;
29332 fail:
29333 return NULL;
29334 }
29335
29336
29337 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29338 PyObject *resultobj = 0;
29339 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29340 wxPen *arg2 = 0 ;
29341 void *argp1 = 0 ;
29342 int res1 = 0 ;
29343 void *argp2 = 0 ;
29344 int res2 = 0 ;
29345
29346 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29348 if (!SWIG_IsOK(res1)) {
29349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29350 }
29351 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29352 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
29353 if (!SWIG_IsOK(res2)) {
29354 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29355 }
29356 if (!argp2) {
29357 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29358 }
29359 arg2 = reinterpret_cast< wxPen * >(argp2);
29360 {
29361 (arg1)->SetPen((wxPen const &)*arg2);
29362 if (PyErr_Occurred()) SWIG_fail;
29363 }
29364 resultobj = SWIG_Py_Void();
29365 return resultobj;
29366 fail:
29367 return NULL;
29368 }
29369
29370
29371 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
29372 int argc;
29373 PyObject *argv[3];
29374
29375 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
29376 --argc;
29377 if (argc == 2) {
29378 int _v = 0;
29379 {
29380 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
29381 _v = SWIG_CheckState(res);
29382 }
29383 if (!_v) goto check_1;
29384 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
29385 }
29386 check_1:
29387
29388 if (argc == 2) {
29389 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
29390 }
29391
29392 fail:
29393 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
29394 return NULL;
29395 }
29396
29397
29398 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29399 PyObject *resultobj = 0;
29400 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29401 wxGraphicsBrush *arg2 = 0 ;
29402 void *argp1 = 0 ;
29403 int res1 = 0 ;
29404 void *argp2 = 0 ;
29405 int res2 = 0 ;
29406
29407 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29409 if (!SWIG_IsOK(res1)) {
29410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29411 }
29412 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29413 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29414 if (!SWIG_IsOK(res2)) {
29415 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29416 }
29417 if (!argp2) {
29418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
29419 }
29420 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
29421 {
29422 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
29423 if (PyErr_Occurred()) SWIG_fail;
29424 }
29425 resultobj = SWIG_Py_Void();
29426 return resultobj;
29427 fail:
29428 return NULL;
29429 }
29430
29431
29432 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29433 PyObject *resultobj = 0;
29434 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29435 wxBrush *arg2 = 0 ;
29436 void *argp1 = 0 ;
29437 int res1 = 0 ;
29438 void *argp2 = 0 ;
29439 int res2 = 0 ;
29440
29441 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29443 if (!SWIG_IsOK(res1)) {
29444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29445 }
29446 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29447 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
29448 if (!SWIG_IsOK(res2)) {
29449 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29450 }
29451 if (!argp2) {
29452 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29453 }
29454 arg2 = reinterpret_cast< wxBrush * >(argp2);
29455 {
29456 (arg1)->SetBrush((wxBrush const &)*arg2);
29457 if (PyErr_Occurred()) SWIG_fail;
29458 }
29459 resultobj = SWIG_Py_Void();
29460 return resultobj;
29461 fail:
29462 return NULL;
29463 }
29464
29465
29466 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
29467 int argc;
29468 PyObject *argv[3];
29469
29470 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
29471 --argc;
29472 if (argc == 2) {
29473 int _v = 0;
29474 {
29475 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
29476 _v = SWIG_CheckState(res);
29477 }
29478 if (!_v) goto check_1;
29479 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
29480 }
29481 check_1:
29482
29483 if (argc == 2) {
29484 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
29485 }
29486
29487 fail:
29488 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
29489 return NULL;
29490 }
29491
29492
29493 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29494 PyObject *resultobj = 0;
29495 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29496 wxGraphicsFont *arg2 = 0 ;
29497 void *argp1 = 0 ;
29498 int res1 = 0 ;
29499 void *argp2 = 0 ;
29500 int res2 = 0 ;
29501
29502 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29504 if (!SWIG_IsOK(res1)) {
29505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29506 }
29507 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29508 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
29509 if (!SWIG_IsOK(res2)) {
29510 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
29511 }
29512 if (!argp2) {
29513 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
29514 }
29515 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
29516 {
29517 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
29518 if (PyErr_Occurred()) SWIG_fail;
29519 }
29520 resultobj = SWIG_Py_Void();
29521 return resultobj;
29522 fail:
29523 return NULL;
29524 }
29525
29526
29527 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29528 PyObject *resultobj = 0;
29529 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29530 wxFont *arg2 = 0 ;
29531 wxColour const &arg3_defvalue = *wxBLACK ;
29532 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
29533 void *argp1 = 0 ;
29534 int res1 = 0 ;
29535 void *argp2 = 0 ;
29536 int res2 = 0 ;
29537 wxColour temp3 ;
29538
29539 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
29540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29541 if (!SWIG_IsOK(res1)) {
29542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29543 }
29544 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29545 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
29546 if (!SWIG_IsOK(res2)) {
29547 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29548 }
29549 if (!argp2) {
29550 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29551 }
29552 arg2 = reinterpret_cast< wxFont * >(argp2);
29553 if (swig_obj[2]) {
29554 {
29555 arg3 = &temp3;
29556 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
29557 }
29558 }
29559 {
29560 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
29561 if (PyErr_Occurred()) SWIG_fail;
29562 }
29563 resultobj = SWIG_Py_Void();
29564 return resultobj;
29565 fail:
29566 return NULL;
29567 }
29568
29569
29570 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
29571 int argc;
29572 PyObject *argv[4];
29573
29574 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
29575 --argc;
29576 if (argc == 2) {
29577 int _v = 0;
29578 {
29579 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
29580 _v = SWIG_CheckState(res);
29581 }
29582 if (!_v) goto check_1;
29583 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
29584 }
29585 check_1:
29586
29587 if ((argc >= 2) && (argc <= 3)) {
29588 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
29589 }
29590
29591 fail:
29592 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
29593 return NULL;
29594 }
29595
29596
29597 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29598 PyObject *resultobj = 0;
29599 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29600 wxGraphicsPath *arg2 = 0 ;
29601 void *argp1 = 0 ;
29602 int res1 = 0 ;
29603 void *argp2 = 0 ;
29604 int res2 = 0 ;
29605 PyObject * obj0 = 0 ;
29606 PyObject * obj1 = 0 ;
29607 char * kwnames[] = {
29608 (char *) "self",(char *) "path", NULL
29609 };
29610
29611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
29612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29613 if (!SWIG_IsOK(res1)) {
29614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29615 }
29616 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29617 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29618 if (!SWIG_IsOK(res2)) {
29619 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29620 }
29621 if (!argp2) {
29622 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29623 }
29624 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29625 {
29626 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
29627 if (PyErr_Occurred()) SWIG_fail;
29628 }
29629 resultobj = SWIG_Py_Void();
29630 return resultobj;
29631 fail:
29632 return NULL;
29633 }
29634
29635
29636 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29637 PyObject *resultobj = 0;
29638 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29639 wxGraphicsPath *arg2 = 0 ;
29640 int arg3 = (int) wxODDEVEN_RULE ;
29641 void *argp1 = 0 ;
29642 int res1 = 0 ;
29643 void *argp2 = 0 ;
29644 int res2 = 0 ;
29645 int val3 ;
29646 int ecode3 = 0 ;
29647 PyObject * obj0 = 0 ;
29648 PyObject * obj1 = 0 ;
29649 PyObject * obj2 = 0 ;
29650 char * kwnames[] = {
29651 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29652 };
29653
29654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29656 if (!SWIG_IsOK(res1)) {
29657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29658 }
29659 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29660 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29661 if (!SWIG_IsOK(res2)) {
29662 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29663 }
29664 if (!argp2) {
29665 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29666 }
29667 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29668 if (obj2) {
29669 ecode3 = SWIG_AsVal_int(obj2, &val3);
29670 if (!SWIG_IsOK(ecode3)) {
29671 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
29672 }
29673 arg3 = static_cast< int >(val3);
29674 }
29675 {
29676 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
29677 if (PyErr_Occurred()) SWIG_fail;
29678 }
29679 resultobj = SWIG_Py_Void();
29680 return resultobj;
29681 fail:
29682 return NULL;
29683 }
29684
29685
29686 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29687 PyObject *resultobj = 0;
29688 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29689 wxGraphicsPath *arg2 = 0 ;
29690 int arg3 = (int) wxODDEVEN_RULE ;
29691 void *argp1 = 0 ;
29692 int res1 = 0 ;
29693 void *argp2 = 0 ;
29694 int res2 = 0 ;
29695 int val3 ;
29696 int ecode3 = 0 ;
29697 PyObject * obj0 = 0 ;
29698 PyObject * obj1 = 0 ;
29699 PyObject * obj2 = 0 ;
29700 char * kwnames[] = {
29701 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29702 };
29703
29704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29706 if (!SWIG_IsOK(res1)) {
29707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29708 }
29709 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29710 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
29711 if (!SWIG_IsOK(res2)) {
29712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29713 }
29714 if (!argp2) {
29715 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29716 }
29717 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29718 if (obj2) {
29719 ecode3 = SWIG_AsVal_int(obj2, &val3);
29720 if (!SWIG_IsOK(ecode3)) {
29721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
29722 }
29723 arg3 = static_cast< int >(val3);
29724 }
29725 {
29726 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
29727 if (PyErr_Occurred()) SWIG_fail;
29728 }
29729 resultobj = SWIG_Py_Void();
29730 return resultobj;
29731 fail:
29732 return NULL;
29733 }
29734
29735
29736 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29737 PyObject *resultobj = 0;
29738 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29739 wxString *arg2 = 0 ;
29740 wxDouble arg3 ;
29741 wxDouble arg4 ;
29742 wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ;
29743 wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ;
29744 void *argp1 = 0 ;
29745 int res1 = 0 ;
29746 bool temp2 = false ;
29747 double val3 ;
29748 int ecode3 = 0 ;
29749 double val4 ;
29750 int ecode4 = 0 ;
29751 void *argp5 = 0 ;
29752 int res5 = 0 ;
29753 PyObject * obj0 = 0 ;
29754 PyObject * obj1 = 0 ;
29755 PyObject * obj2 = 0 ;
29756 PyObject * obj3 = 0 ;
29757 PyObject * obj4 = 0 ;
29758 char * kwnames[] = {
29759 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL
29760 };
29761
29762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29764 if (!SWIG_IsOK(res1)) {
29765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29766 }
29767 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29768 {
29769 arg2 = wxString_in_helper(obj1);
29770 if (arg2 == NULL) SWIG_fail;
29771 temp2 = true;
29772 }
29773 ecode3 = SWIG_AsVal_double(obj2, &val3);
29774 if (!SWIG_IsOK(ecode3)) {
29775 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
29776 }
29777 arg3 = static_cast< wxDouble >(val3);
29778 ecode4 = SWIG_AsVal_double(obj3, &val4);
29779 if (!SWIG_IsOK(ecode4)) {
29780 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
29781 }
29782 arg4 = static_cast< wxDouble >(val4);
29783 if (obj4) {
29784 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29785 if (!SWIG_IsOK(res5)) {
29786 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29787 }
29788 if (!argp5) {
29789 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29790 }
29791 arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5);
29792 }
29793 {
29794 wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5);
29795 if (PyErr_Occurred()) SWIG_fail;
29796 }
29797 resultobj = SWIG_Py_Void();
29798 {
29799 if (temp2)
29800 delete arg2;
29801 }
29802 return resultobj;
29803 fail:
29804 {
29805 if (temp2)
29806 delete arg2;
29807 }
29808 return NULL;
29809 }
29810
29811
29812 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29813 PyObject *resultobj = 0;
29814 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29815 wxString *arg2 = 0 ;
29816 wxDouble arg3 ;
29817 wxDouble arg4 ;
29818 wxDouble arg5 ;
29819 wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ;
29820 wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ;
29821 void *argp1 = 0 ;
29822 int res1 = 0 ;
29823 bool temp2 = false ;
29824 double val3 ;
29825 int ecode3 = 0 ;
29826 double val4 ;
29827 int ecode4 = 0 ;
29828 double val5 ;
29829 int ecode5 = 0 ;
29830 void *argp6 = 0 ;
29831 int res6 = 0 ;
29832 PyObject * obj0 = 0 ;
29833 PyObject * obj1 = 0 ;
29834 PyObject * obj2 = 0 ;
29835 PyObject * obj3 = 0 ;
29836 PyObject * obj4 = 0 ;
29837 PyObject * obj5 = 0 ;
29838 char * kwnames[] = {
29839 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL
29840 };
29841
29842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29844 if (!SWIG_IsOK(res1)) {
29845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29846 }
29847 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29848 {
29849 arg2 = wxString_in_helper(obj1);
29850 if (arg2 == NULL) SWIG_fail;
29851 temp2 = true;
29852 }
29853 ecode3 = SWIG_AsVal_double(obj2, &val3);
29854 if (!SWIG_IsOK(ecode3)) {
29855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
29856 }
29857 arg3 = static_cast< wxDouble >(val3);
29858 ecode4 = SWIG_AsVal_double(obj3, &val4);
29859 if (!SWIG_IsOK(ecode4)) {
29860 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
29861 }
29862 arg4 = static_cast< wxDouble >(val4);
29863 ecode5 = SWIG_AsVal_double(obj4, &val5);
29864 if (!SWIG_IsOK(ecode5)) {
29865 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
29866 }
29867 arg5 = static_cast< wxDouble >(val5);
29868 if (obj5) {
29869 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29870 if (!SWIG_IsOK(res6)) {
29871 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29872 }
29873 if (!argp6) {
29874 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29875 }
29876 arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6);
29877 }
29878 {
29879 wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6);
29880 if (PyErr_Occurred()) SWIG_fail;
29881 }
29882 resultobj = SWIG_Py_Void();
29883 {
29884 if (temp2)
29885 delete arg2;
29886 }
29887 return resultobj;
29888 fail:
29889 {
29890 if (temp2)
29891 delete arg2;
29892 }
29893 return NULL;
29894 }
29895
29896
29897 SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29898 PyObject *resultobj = 0;
29899 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29900 wxString *arg2 = 0 ;
29901 wxDouble *arg3 = (wxDouble *) 0 ;
29902 wxDouble *arg4 = (wxDouble *) 0 ;
29903 wxDouble *arg5 = (wxDouble *) 0 ;
29904 wxDouble *arg6 = (wxDouble *) 0 ;
29905 void *argp1 = 0 ;
29906 int res1 = 0 ;
29907 bool temp2 = false ;
29908 wxDouble temp3 ;
29909 int res3 = SWIG_TMPOBJ ;
29910 wxDouble temp4 ;
29911 int res4 = SWIG_TMPOBJ ;
29912 wxDouble temp5 ;
29913 int res5 = SWIG_TMPOBJ ;
29914 wxDouble temp6 ;
29915 int res6 = SWIG_TMPOBJ ;
29916 PyObject * obj0 = 0 ;
29917 PyObject * obj1 = 0 ;
29918 char * kwnames[] = {
29919 (char *) "self",(char *) "text", NULL
29920 };
29921
29922 arg3 = &temp3;
29923 arg4 = &temp4;
29924 arg5 = &temp5;
29925 arg6 = &temp6;
29926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29928 if (!SWIG_IsOK(res1)) {
29929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29930 }
29931 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29932 {
29933 arg2 = wxString_in_helper(obj1);
29934 if (arg2 == NULL) SWIG_fail;
29935 temp2 = true;
29936 }
29937 {
29938 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
29939 if (PyErr_Occurred()) SWIG_fail;
29940 }
29941 resultobj = SWIG_Py_Void();
29942 if (SWIG_IsTmpObj(res3)) {
29943 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29944 } else {
29945 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29946 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29947 }
29948 if (SWIG_IsTmpObj(res4)) {
29949 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29950 } else {
29951 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29952 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29953 }
29954 if (SWIG_IsTmpObj(res5)) {
29955 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29956 } else {
29957 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29958 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29959 }
29960 if (SWIG_IsTmpObj(res6)) {
29961 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29962 } else {
29963 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29964 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29965 }
29966 {
29967 if (temp2)
29968 delete arg2;
29969 }
29970 return resultobj;
29971 fail:
29972 {
29973 if (temp2)
29974 delete arg2;
29975 }
29976 return NULL;
29977 }
29978
29979
29980 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29981 PyObject *resultobj = 0;
29982 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29983 wxString *arg2 = 0 ;
29984 PyObject *result = 0 ;
29985 void *argp1 = 0 ;
29986 int res1 = 0 ;
29987 bool temp2 = false ;
29988 PyObject * obj0 = 0 ;
29989 PyObject * obj1 = 0 ;
29990 char * kwnames[] = {
29991 (char *) "self",(char *) "text", NULL
29992 };
29993
29994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29996 if (!SWIG_IsOK(res1)) {
29997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29998 }
29999 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30000 {
30001 arg2 = wxString_in_helper(obj1);
30002 if (arg2 == NULL) SWIG_fail;
30003 temp2 = true;
30004 }
30005 {
30006 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
30007 if (PyErr_Occurred()) SWIG_fail;
30008 }
30009 resultobj = result;
30010 {
30011 if (temp2)
30012 delete arg2;
30013 }
30014 return resultobj;
30015 fail:
30016 {
30017 if (temp2)
30018 delete arg2;
30019 }
30020 return NULL;
30021 }
30022
30023
30024 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30025 PyObject *resultobj = 0;
30026 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30027 wxString *arg2 = 0 ;
30028 wxArrayDouble result;
30029 void *argp1 = 0 ;
30030 int res1 = 0 ;
30031 bool temp2 = false ;
30032 PyObject * obj0 = 0 ;
30033 PyObject * obj1 = 0 ;
30034 char * kwnames[] = {
30035 (char *) "self",(char *) "text", NULL
30036 };
30037
30038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
30039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30040 if (!SWIG_IsOK(res1)) {
30041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30042 }
30043 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30044 {
30045 arg2 = wxString_in_helper(obj1);
30046 if (arg2 == NULL) SWIG_fail;
30047 temp2 = true;
30048 }
30049 {
30050 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
30051 if (PyErr_Occurred()) SWIG_fail;
30052 }
30053 {
30054 resultobj = wxArrayDouble2PyList_helper(result);
30055 }
30056 {
30057 if (temp2)
30058 delete arg2;
30059 }
30060 return resultobj;
30061 fail:
30062 {
30063 if (temp2)
30064 delete arg2;
30065 }
30066 return NULL;
30067 }
30068
30069
30070 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30071 PyObject *resultobj = 0;
30072 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30073 wxBitmap *arg2 = 0 ;
30074 wxDouble arg3 ;
30075 wxDouble arg4 ;
30076 wxDouble arg5 ;
30077 wxDouble arg6 ;
30078 void *argp1 = 0 ;
30079 int res1 = 0 ;
30080 void *argp2 = 0 ;
30081 int res2 = 0 ;
30082 double val3 ;
30083 int ecode3 = 0 ;
30084 double val4 ;
30085 int ecode4 = 0 ;
30086 double val5 ;
30087 int ecode5 = 0 ;
30088 double val6 ;
30089 int ecode6 = 0 ;
30090 PyObject * obj0 = 0 ;
30091 PyObject * obj1 = 0 ;
30092 PyObject * obj2 = 0 ;
30093 PyObject * obj3 = 0 ;
30094 PyObject * obj4 = 0 ;
30095 PyObject * obj5 = 0 ;
30096 char * kwnames[] = {
30097 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30098 };
30099
30100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30102 if (!SWIG_IsOK(res1)) {
30103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30104 }
30105 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30106 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30107 if (!SWIG_IsOK(res2)) {
30108 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30109 }
30110 if (!argp2) {
30111 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30112 }
30113 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30114 ecode3 = SWIG_AsVal_double(obj2, &val3);
30115 if (!SWIG_IsOK(ecode3)) {
30116 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
30117 }
30118 arg3 = static_cast< wxDouble >(val3);
30119 ecode4 = SWIG_AsVal_double(obj3, &val4);
30120 if (!SWIG_IsOK(ecode4)) {
30121 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
30122 }
30123 arg4 = static_cast< wxDouble >(val4);
30124 ecode5 = SWIG_AsVal_double(obj4, &val5);
30125 if (!SWIG_IsOK(ecode5)) {
30126 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
30127 }
30128 arg5 = static_cast< wxDouble >(val5);
30129 ecode6 = SWIG_AsVal_double(obj5, &val6);
30130 if (!SWIG_IsOK(ecode6)) {
30131 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
30132 }
30133 arg6 = static_cast< wxDouble >(val6);
30134 {
30135 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
30136 if (PyErr_Occurred()) SWIG_fail;
30137 }
30138 resultobj = SWIG_Py_Void();
30139 return resultobj;
30140 fail:
30141 return NULL;
30142 }
30143
30144
30145 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30146 PyObject *resultobj = 0;
30147 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30148 wxIcon *arg2 = 0 ;
30149 wxDouble arg3 ;
30150 wxDouble arg4 ;
30151 wxDouble arg5 ;
30152 wxDouble arg6 ;
30153 void *argp1 = 0 ;
30154 int res1 = 0 ;
30155 void *argp2 = 0 ;
30156 int res2 = 0 ;
30157 double val3 ;
30158 int ecode3 = 0 ;
30159 double val4 ;
30160 int ecode4 = 0 ;
30161 double val5 ;
30162 int ecode5 = 0 ;
30163 double val6 ;
30164 int ecode6 = 0 ;
30165 PyObject * obj0 = 0 ;
30166 PyObject * obj1 = 0 ;
30167 PyObject * obj2 = 0 ;
30168 PyObject * obj3 = 0 ;
30169 PyObject * obj4 = 0 ;
30170 PyObject * obj5 = 0 ;
30171 char * kwnames[] = {
30172 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30173 };
30174
30175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30177 if (!SWIG_IsOK(res1)) {
30178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30179 }
30180 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30181 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30182 if (!SWIG_IsOK(res2)) {
30183 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30184 }
30185 if (!argp2) {
30186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30187 }
30188 arg2 = reinterpret_cast< wxIcon * >(argp2);
30189 ecode3 = SWIG_AsVal_double(obj2, &val3);
30190 if (!SWIG_IsOK(ecode3)) {
30191 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
30192 }
30193 arg3 = static_cast< wxDouble >(val3);
30194 ecode4 = SWIG_AsVal_double(obj3, &val4);
30195 if (!SWIG_IsOK(ecode4)) {
30196 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
30197 }
30198 arg4 = static_cast< wxDouble >(val4);
30199 ecode5 = SWIG_AsVal_double(obj4, &val5);
30200 if (!SWIG_IsOK(ecode5)) {
30201 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
30202 }
30203 arg5 = static_cast< wxDouble >(val5);
30204 ecode6 = SWIG_AsVal_double(obj5, &val6);
30205 if (!SWIG_IsOK(ecode6)) {
30206 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
30207 }
30208 arg6 = static_cast< wxDouble >(val6);
30209 {
30210 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
30211 if (PyErr_Occurred()) SWIG_fail;
30212 }
30213 resultobj = SWIG_Py_Void();
30214 return resultobj;
30215 fail:
30216 return NULL;
30217 }
30218
30219
30220 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30221 PyObject *resultobj = 0;
30222 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30223 wxDouble arg2 ;
30224 wxDouble arg3 ;
30225 wxDouble arg4 ;
30226 wxDouble arg5 ;
30227 void *argp1 = 0 ;
30228 int res1 = 0 ;
30229 double val2 ;
30230 int ecode2 = 0 ;
30231 double val3 ;
30232 int ecode3 = 0 ;
30233 double val4 ;
30234 int ecode4 = 0 ;
30235 double val5 ;
30236 int ecode5 = 0 ;
30237 PyObject * obj0 = 0 ;
30238 PyObject * obj1 = 0 ;
30239 PyObject * obj2 = 0 ;
30240 PyObject * obj3 = 0 ;
30241 PyObject * obj4 = 0 ;
30242 char * kwnames[] = {
30243 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
30244 };
30245
30246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30248 if (!SWIG_IsOK(res1)) {
30249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30250 }
30251 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30252 ecode2 = SWIG_AsVal_double(obj1, &val2);
30253 if (!SWIG_IsOK(ecode2)) {
30254 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
30255 }
30256 arg2 = static_cast< wxDouble >(val2);
30257 ecode3 = SWIG_AsVal_double(obj2, &val3);
30258 if (!SWIG_IsOK(ecode3)) {
30259 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
30260 }
30261 arg3 = static_cast< wxDouble >(val3);
30262 ecode4 = SWIG_AsVal_double(obj3, &val4);
30263 if (!SWIG_IsOK(ecode4)) {
30264 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
30265 }
30266 arg4 = static_cast< wxDouble >(val4);
30267 ecode5 = SWIG_AsVal_double(obj4, &val5);
30268 if (!SWIG_IsOK(ecode5)) {
30269 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
30270 }
30271 arg5 = static_cast< wxDouble >(val5);
30272 {
30273 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
30274 if (PyErr_Occurred()) SWIG_fail;
30275 }
30276 resultobj = SWIG_Py_Void();
30277 return resultobj;
30278 fail:
30279 return NULL;
30280 }
30281
30282
30283 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30284 PyObject *resultobj = 0;
30285 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30286 size_t arg2 ;
30287 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
30288 void *argp1 = 0 ;
30289 int res1 = 0 ;
30290 PyObject * obj0 = 0 ;
30291 PyObject * obj1 = 0 ;
30292 char * kwnames[] = {
30293 (char *) "self",(char *) "points", NULL
30294 };
30295
30296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
30297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30298 if (!SWIG_IsOK(res1)) {
30299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30300 }
30301 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30302 {
30303 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30304 if (arg3 == NULL) SWIG_fail;
30305 }
30306 {
30307 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
30308 if (PyErr_Occurred()) SWIG_fail;
30309 }
30310 resultobj = SWIG_Py_Void();
30311 {
30312 if (arg3) delete [] arg3;
30313 }
30314 return resultobj;
30315 fail:
30316 {
30317 if (arg3) delete [] arg3;
30318 }
30319 return NULL;
30320 }
30321
30322
30323 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30324 PyObject *resultobj = 0;
30325 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30326 PyObject *arg2 = (PyObject *) 0 ;
30327 PyObject *arg3 = (PyObject *) 0 ;
30328 void *argp1 = 0 ;
30329 int res1 = 0 ;
30330 PyObject * obj0 = 0 ;
30331 PyObject * obj1 = 0 ;
30332 PyObject * obj2 = 0 ;
30333 char * kwnames[] = {
30334 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
30335 };
30336
30337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30339 if (!SWIG_IsOK(res1)) {
30340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30341 }
30342 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30343 arg2 = obj1;
30344 arg3 = obj2;
30345 {
30346 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
30347 if (PyErr_Occurred()) SWIG_fail;
30348 }
30349 resultobj = SWIG_Py_Void();
30350 return resultobj;
30351 fail:
30352 return NULL;
30353 }
30354
30355
30356 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30357 PyObject *resultobj = 0;
30358 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30359 size_t arg2 ;
30360 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
30361 int arg4 = (int) wxODDEVEN_RULE ;
30362 void *argp1 = 0 ;
30363 int res1 = 0 ;
30364 int val4 ;
30365 int ecode4 = 0 ;
30366 PyObject * obj0 = 0 ;
30367 PyObject * obj1 = 0 ;
30368 PyObject * obj2 = 0 ;
30369 char * kwnames[] = {
30370 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
30371 };
30372
30373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30375 if (!SWIG_IsOK(res1)) {
30376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30377 }
30378 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30379 {
30380 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30381 if (arg3 == NULL) SWIG_fail;
30382 }
30383 if (obj2) {
30384 ecode4 = SWIG_AsVal_int(obj2, &val4);
30385 if (!SWIG_IsOK(ecode4)) {
30386 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
30387 }
30388 arg4 = static_cast< int >(val4);
30389 }
30390 {
30391 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
30392 if (PyErr_Occurred()) SWIG_fail;
30393 }
30394 resultobj = SWIG_Py_Void();
30395 {
30396 if (arg3) delete [] arg3;
30397 }
30398 return resultobj;
30399 fail:
30400 {
30401 if (arg3) delete [] arg3;
30402 }
30403 return NULL;
30404 }
30405
30406
30407 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30408 PyObject *resultobj = 0;
30409 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30410 wxDouble arg2 ;
30411 wxDouble arg3 ;
30412 wxDouble arg4 ;
30413 wxDouble arg5 ;
30414 void *argp1 = 0 ;
30415 int res1 = 0 ;
30416 double val2 ;
30417 int ecode2 = 0 ;
30418 double val3 ;
30419 int ecode3 = 0 ;
30420 double val4 ;
30421 int ecode4 = 0 ;
30422 double val5 ;
30423 int ecode5 = 0 ;
30424 PyObject * obj0 = 0 ;
30425 PyObject * obj1 = 0 ;
30426 PyObject * obj2 = 0 ;
30427 PyObject * obj3 = 0 ;
30428 PyObject * obj4 = 0 ;
30429 char * kwnames[] = {
30430 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30431 };
30432
30433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30435 if (!SWIG_IsOK(res1)) {
30436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30437 }
30438 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30439 ecode2 = SWIG_AsVal_double(obj1, &val2);
30440 if (!SWIG_IsOK(ecode2)) {
30441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
30442 }
30443 arg2 = static_cast< wxDouble >(val2);
30444 ecode3 = SWIG_AsVal_double(obj2, &val3);
30445 if (!SWIG_IsOK(ecode3)) {
30446 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
30447 }
30448 arg3 = static_cast< wxDouble >(val3);
30449 ecode4 = SWIG_AsVal_double(obj3, &val4);
30450 if (!SWIG_IsOK(ecode4)) {
30451 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
30452 }
30453 arg4 = static_cast< wxDouble >(val4);
30454 ecode5 = SWIG_AsVal_double(obj4, &val5);
30455 if (!SWIG_IsOK(ecode5)) {
30456 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
30457 }
30458 arg5 = static_cast< wxDouble >(val5);
30459 {
30460 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
30461 if (PyErr_Occurred()) SWIG_fail;
30462 }
30463 resultobj = SWIG_Py_Void();
30464 return resultobj;
30465 fail:
30466 return NULL;
30467 }
30468
30469
30470 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30471 PyObject *resultobj = 0;
30472 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30473 wxDouble arg2 ;
30474 wxDouble arg3 ;
30475 wxDouble arg4 ;
30476 wxDouble arg5 ;
30477 void *argp1 = 0 ;
30478 int res1 = 0 ;
30479 double val2 ;
30480 int ecode2 = 0 ;
30481 double val3 ;
30482 int ecode3 = 0 ;
30483 double val4 ;
30484 int ecode4 = 0 ;
30485 double val5 ;
30486 int ecode5 = 0 ;
30487 PyObject * obj0 = 0 ;
30488 PyObject * obj1 = 0 ;
30489 PyObject * obj2 = 0 ;
30490 PyObject * obj3 = 0 ;
30491 PyObject * obj4 = 0 ;
30492 char * kwnames[] = {
30493 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30494 };
30495
30496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30498 if (!SWIG_IsOK(res1)) {
30499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30500 }
30501 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30502 ecode2 = SWIG_AsVal_double(obj1, &val2);
30503 if (!SWIG_IsOK(ecode2)) {
30504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
30505 }
30506 arg2 = static_cast< wxDouble >(val2);
30507 ecode3 = SWIG_AsVal_double(obj2, &val3);
30508 if (!SWIG_IsOK(ecode3)) {
30509 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
30510 }
30511 arg3 = static_cast< wxDouble >(val3);
30512 ecode4 = SWIG_AsVal_double(obj3, &val4);
30513 if (!SWIG_IsOK(ecode4)) {
30514 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
30515 }
30516 arg4 = static_cast< wxDouble >(val4);
30517 ecode5 = SWIG_AsVal_double(obj4, &val5);
30518 if (!SWIG_IsOK(ecode5)) {
30519 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
30520 }
30521 arg5 = static_cast< wxDouble >(val5);
30522 {
30523 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
30524 if (PyErr_Occurred()) SWIG_fail;
30525 }
30526 resultobj = SWIG_Py_Void();
30527 return resultobj;
30528 fail:
30529 return NULL;
30530 }
30531
30532
30533 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30534 PyObject *resultobj = 0;
30535 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30536 wxDouble arg2 ;
30537 wxDouble arg3 ;
30538 wxDouble arg4 ;
30539 wxDouble arg5 ;
30540 wxDouble arg6 ;
30541 void *argp1 = 0 ;
30542 int res1 = 0 ;
30543 double val2 ;
30544 int ecode2 = 0 ;
30545 double val3 ;
30546 int ecode3 = 0 ;
30547 double val4 ;
30548 int ecode4 = 0 ;
30549 double val5 ;
30550 int ecode5 = 0 ;
30551 double val6 ;
30552 int ecode6 = 0 ;
30553 PyObject * obj0 = 0 ;
30554 PyObject * obj1 = 0 ;
30555 PyObject * obj2 = 0 ;
30556 PyObject * obj3 = 0 ;
30557 PyObject * obj4 = 0 ;
30558 PyObject * obj5 = 0 ;
30559 char * kwnames[] = {
30560 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
30561 };
30562
30563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30565 if (!SWIG_IsOK(res1)) {
30566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30567 }
30568 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30569 ecode2 = SWIG_AsVal_double(obj1, &val2);
30570 if (!SWIG_IsOK(ecode2)) {
30571 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
30572 }
30573 arg2 = static_cast< wxDouble >(val2);
30574 ecode3 = SWIG_AsVal_double(obj2, &val3);
30575 if (!SWIG_IsOK(ecode3)) {
30576 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
30577 }
30578 arg3 = static_cast< wxDouble >(val3);
30579 ecode4 = SWIG_AsVal_double(obj3, &val4);
30580 if (!SWIG_IsOK(ecode4)) {
30581 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
30582 }
30583 arg4 = static_cast< wxDouble >(val4);
30584 ecode5 = SWIG_AsVal_double(obj4, &val5);
30585 if (!SWIG_IsOK(ecode5)) {
30586 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
30587 }
30588 arg5 = static_cast< wxDouble >(val5);
30589 ecode6 = SWIG_AsVal_double(obj5, &val6);
30590 if (!SWIG_IsOK(ecode6)) {
30591 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
30592 }
30593 arg6 = static_cast< wxDouble >(val6);
30594 {
30595 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
30596 if (PyErr_Occurred()) SWIG_fail;
30597 }
30598 resultobj = SWIG_Py_Void();
30599 return resultobj;
30600 fail:
30601 return NULL;
30602 }
30603
30604
30605 SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30606 PyObject *resultobj = 0;
30607 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30608 bool result;
30609 void *argp1 = 0 ;
30610 int res1 = 0 ;
30611 PyObject *swig_obj[1] ;
30612
30613 if (!args) SWIG_fail;
30614 swig_obj[0] = args;
30615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30616 if (!SWIG_IsOK(res1)) {
30617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
30618 }
30619 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30620 {
30621 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
30622 if (PyErr_Occurred()) SWIG_fail;
30623 }
30624 {
30625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30626 }
30627 return resultobj;
30628 fail:
30629 return NULL;
30630 }
30631
30632
30633 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30634 PyObject *obj;
30635 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30636 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
30637 return SWIG_Py_Void();
30638 }
30639
30640 SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30641 PyObject *resultobj = 0;
30642 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30643 void *argp1 = 0 ;
30644 int res1 = 0 ;
30645 PyObject *swig_obj[1] ;
30646
30647 if (!args) SWIG_fail;
30648 swig_obj[0] = args;
30649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
30650 if (!SWIG_IsOK(res1)) {
30651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30652 }
30653 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30654 {
30655 delete arg1;
30656
30657 if (PyErr_Occurred()) SWIG_fail;
30658 }
30659 resultobj = SWIG_Py_Void();
30660 return resultobj;
30661 fail:
30662 return NULL;
30663 }
30664
30665
30666 SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30667 PyObject *resultobj = 0;
30668 wxGraphicsRenderer *result = 0 ;
30669
30670 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
30671 {
30672 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
30673 if (PyErr_Occurred()) SWIG_fail;
30674 }
30675 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30676 return resultobj;
30677 fail:
30678 return NULL;
30679 }
30680
30681
30682 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30683 PyObject *resultobj = 0;
30684 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30685 wxWindowDC *arg2 = 0 ;
30686 wxGraphicsContext *result = 0 ;
30687 void *argp1 = 0 ;
30688 int res1 = 0 ;
30689 void *argp2 = 0 ;
30690 int res2 = 0 ;
30691
30692 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30694 if (!SWIG_IsOK(res1)) {
30695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30696 }
30697 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30698 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
30699 if (!SWIG_IsOK(res2)) {
30700 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30701 }
30702 if (!argp2) {
30703 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30704 }
30705 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30706 {
30707 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
30708 if (PyErr_Occurred()) SWIG_fail;
30709 }
30710 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30711 return resultobj;
30712 fail:
30713 return NULL;
30714 }
30715
30716
30717 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30718 PyObject *resultobj = 0;
30719 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30720 wxWindow *arg2 = (wxWindow *) 0 ;
30721 wxGraphicsContext *result = 0 ;
30722 void *argp1 = 0 ;
30723 int res1 = 0 ;
30724 void *argp2 = 0 ;
30725 int res2 = 0 ;
30726
30727 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30729 if (!SWIG_IsOK(res1)) {
30730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30731 }
30732 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30733 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30734 if (!SWIG_IsOK(res2)) {
30735 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
30736 }
30737 arg2 = reinterpret_cast< wxWindow * >(argp2);
30738 {
30739 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
30740 if (PyErr_Occurred()) SWIG_fail;
30741 }
30742 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30743 return resultobj;
30744 fail:
30745 return NULL;
30746 }
30747
30748
30749 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
30750 int argc;
30751 PyObject *argv[3];
30752
30753 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
30754 --argc;
30755 if (argc == 2) {
30756 int _v = 0;
30757 {
30758 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
30759 _v = SWIG_CheckState(res);
30760 }
30761 if (!_v) goto check_1;
30762 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
30763 }
30764 check_1:
30765
30766 if (argc == 2) {
30767 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
30768 }
30769
30770 fail:
30771 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
30772 return NULL;
30773 }
30774
30775
30776 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30777 PyObject *resultobj = 0;
30778 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30779 wxGraphicsContext *result = 0 ;
30780 void *argp1 = 0 ;
30781 int res1 = 0 ;
30782 PyObject *swig_obj[1] ;
30783
30784 if (!args) SWIG_fail;
30785 swig_obj[0] = args;
30786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30787 if (!SWIG_IsOK(res1)) {
30788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30789 }
30790 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30791 {
30792 result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext();
30793 if (PyErr_Occurred()) SWIG_fail;
30794 }
30795 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30796 return resultobj;
30797 fail:
30798 return NULL;
30799 }
30800
30801
30802 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30803 PyObject *resultobj = 0;
30804 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30805 void *arg2 = (void *) 0 ;
30806 wxGraphicsContext *result = 0 ;
30807 void *argp1 = 0 ;
30808 int res1 = 0 ;
30809 int res2 ;
30810 PyObject * obj0 = 0 ;
30811 PyObject * obj1 = 0 ;
30812 char * kwnames[] = {
30813 (char *) "self",(char *) "context", NULL
30814 };
30815
30816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
30817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30818 if (!SWIG_IsOK(res1)) {
30819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30820 }
30821 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30822 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30823 if (!SWIG_IsOK(res2)) {
30824 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
30825 }
30826 {
30827 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
30828 if (PyErr_Occurred()) SWIG_fail;
30829 }
30830 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30831 return resultobj;
30832 fail:
30833 return NULL;
30834 }
30835
30836
30837 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30838 PyObject *resultobj = 0;
30839 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30840 void *arg2 = (void *) 0 ;
30841 wxGraphicsContext *result = 0 ;
30842 void *argp1 = 0 ;
30843 int res1 = 0 ;
30844 int res2 ;
30845 PyObject * obj0 = 0 ;
30846 PyObject * obj1 = 0 ;
30847 char * kwnames[] = {
30848 (char *) "self",(char *) "window", NULL
30849 };
30850
30851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
30852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30853 if (!SWIG_IsOK(res1)) {
30854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30855 }
30856 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30857 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30858 if (!SWIG_IsOK(res2)) {
30859 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
30860 }
30861 {
30862 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
30863 if (PyErr_Occurred()) SWIG_fail;
30864 }
30865 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30866 return resultobj;
30867 fail:
30868 return NULL;
30869 }
30870
30871
30872 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30873 PyObject *resultobj = 0;
30874 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30875 wxGraphicsPath result;
30876 void *argp1 = 0 ;
30877 int res1 = 0 ;
30878 PyObject *swig_obj[1] ;
30879
30880 if (!args) SWIG_fail;
30881 swig_obj[0] = args;
30882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30883 if (!SWIG_IsOK(res1)) {
30884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30885 }
30886 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30887 {
30888 result = (arg1)->CreatePath();
30889 if (PyErr_Occurred()) SWIG_fail;
30890 }
30891 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
30892 return resultobj;
30893 fail:
30894 return NULL;
30895 }
30896
30897
30898 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30899 PyObject *resultobj = 0;
30900 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30901 wxDouble arg2 = (wxDouble) 1.0 ;
30902 wxDouble arg3 = (wxDouble) 0.0 ;
30903 wxDouble arg4 = (wxDouble) 0.0 ;
30904 wxDouble arg5 = (wxDouble) 1.0 ;
30905 wxDouble arg6 = (wxDouble) 0.0 ;
30906 wxDouble arg7 = (wxDouble) 0.0 ;
30907 wxGraphicsMatrix result;
30908 void *argp1 = 0 ;
30909 int res1 = 0 ;
30910 double val2 ;
30911 int ecode2 = 0 ;
30912 double val3 ;
30913 int ecode3 = 0 ;
30914 double val4 ;
30915 int ecode4 = 0 ;
30916 double val5 ;
30917 int ecode5 = 0 ;
30918 double val6 ;
30919 int ecode6 = 0 ;
30920 double val7 ;
30921 int ecode7 = 0 ;
30922 PyObject * obj0 = 0 ;
30923 PyObject * obj1 = 0 ;
30924 PyObject * obj2 = 0 ;
30925 PyObject * obj3 = 0 ;
30926 PyObject * obj4 = 0 ;
30927 PyObject * obj5 = 0 ;
30928 PyObject * obj6 = 0 ;
30929 char * kwnames[] = {
30930 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
30931 };
30932
30933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30935 if (!SWIG_IsOK(res1)) {
30936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30937 }
30938 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30939 if (obj1) {
30940 ecode2 = SWIG_AsVal_double(obj1, &val2);
30941 if (!SWIG_IsOK(ecode2)) {
30942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30943 }
30944 arg2 = static_cast< wxDouble >(val2);
30945 }
30946 if (obj2) {
30947 ecode3 = SWIG_AsVal_double(obj2, &val3);
30948 if (!SWIG_IsOK(ecode3)) {
30949 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30950 }
30951 arg3 = static_cast< wxDouble >(val3);
30952 }
30953 if (obj3) {
30954 ecode4 = SWIG_AsVal_double(obj3, &val4);
30955 if (!SWIG_IsOK(ecode4)) {
30956 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30957 }
30958 arg4 = static_cast< wxDouble >(val4);
30959 }
30960 if (obj4) {
30961 ecode5 = SWIG_AsVal_double(obj4, &val5);
30962 if (!SWIG_IsOK(ecode5)) {
30963 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30964 }
30965 arg5 = static_cast< wxDouble >(val5);
30966 }
30967 if (obj5) {
30968 ecode6 = SWIG_AsVal_double(obj5, &val6);
30969 if (!SWIG_IsOK(ecode6)) {
30970 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30971 }
30972 arg6 = static_cast< wxDouble >(val6);
30973 }
30974 if (obj6) {
30975 ecode7 = SWIG_AsVal_double(obj6, &val7);
30976 if (!SWIG_IsOK(ecode7)) {
30977 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30978 }
30979 arg7 = static_cast< wxDouble >(val7);
30980 }
30981 {
30982 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
30983 if (PyErr_Occurred()) SWIG_fail;
30984 }
30985 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
30986 return resultobj;
30987 fail:
30988 return NULL;
30989 }
30990
30991
30992 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30993 PyObject *resultobj = 0;
30994 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30995 wxPen *arg2 = 0 ;
30996 wxGraphicsPen result;
30997 void *argp1 = 0 ;
30998 int res1 = 0 ;
30999 void *argp2 = 0 ;
31000 int res2 = 0 ;
31001 PyObject * obj0 = 0 ;
31002 PyObject * obj1 = 0 ;
31003 char * kwnames[] = {
31004 (char *) "self",(char *) "pen", NULL
31005 };
31006
31007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
31008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31009 if (!SWIG_IsOK(res1)) {
31010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31011 }
31012 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31013 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
31014 if (!SWIG_IsOK(res2)) {
31015 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
31016 }
31017 if (!argp2) {
31018 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
31019 }
31020 arg2 = reinterpret_cast< wxPen * >(argp2);
31021 {
31022 result = (arg1)->CreatePen((wxPen const &)*arg2);
31023 if (PyErr_Occurred()) SWIG_fail;
31024 }
31025 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
31026 return resultobj;
31027 fail:
31028 return NULL;
31029 }
31030
31031
31032 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31033 PyObject *resultobj = 0;
31034 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31035 wxBrush *arg2 = 0 ;
31036 wxGraphicsBrush result;
31037 void *argp1 = 0 ;
31038 int res1 = 0 ;
31039 void *argp2 = 0 ;
31040 int res2 = 0 ;
31041 PyObject * obj0 = 0 ;
31042 PyObject * obj1 = 0 ;
31043 char * kwnames[] = {
31044 (char *) "self",(char *) "brush", NULL
31045 };
31046
31047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
31048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31049 if (!SWIG_IsOK(res1)) {
31050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31051 }
31052 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31053 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
31054 if (!SWIG_IsOK(res2)) {
31055 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31056 }
31057 if (!argp2) {
31058 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31059 }
31060 arg2 = reinterpret_cast< wxBrush * >(argp2);
31061 {
31062 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
31063 if (PyErr_Occurred()) SWIG_fail;
31064 }
31065 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
31066 return resultobj;
31067 fail:
31068 return NULL;
31069 }
31070
31071
31072 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31073 PyObject *resultobj = 0;
31074 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31075 wxDouble arg2 ;
31076 wxDouble arg3 ;
31077 wxDouble arg4 ;
31078 wxDouble arg5 ;
31079 wxColour *arg6 = 0 ;
31080 wxColour *arg7 = 0 ;
31081 wxGraphicsBrush result;
31082 void *argp1 = 0 ;
31083 int res1 = 0 ;
31084 double val2 ;
31085 int ecode2 = 0 ;
31086 double val3 ;
31087 int ecode3 = 0 ;
31088 double val4 ;
31089 int ecode4 = 0 ;
31090 double val5 ;
31091 int ecode5 = 0 ;
31092 wxColour temp6 ;
31093 wxColour temp7 ;
31094 PyObject * obj0 = 0 ;
31095 PyObject * obj1 = 0 ;
31096 PyObject * obj2 = 0 ;
31097 PyObject * obj3 = 0 ;
31098 PyObject * obj4 = 0 ;
31099 PyObject * obj5 = 0 ;
31100 PyObject * obj6 = 0 ;
31101 char * kwnames[] = {
31102 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
31103 };
31104
31105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31107 if (!SWIG_IsOK(res1)) {
31108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31109 }
31110 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31111 ecode2 = SWIG_AsVal_double(obj1, &val2);
31112 if (!SWIG_IsOK(ecode2)) {
31113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
31114 }
31115 arg2 = static_cast< wxDouble >(val2);
31116 ecode3 = SWIG_AsVal_double(obj2, &val3);
31117 if (!SWIG_IsOK(ecode3)) {
31118 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
31119 }
31120 arg3 = static_cast< wxDouble >(val3);
31121 ecode4 = SWIG_AsVal_double(obj3, &val4);
31122 if (!SWIG_IsOK(ecode4)) {
31123 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
31124 }
31125 arg4 = static_cast< wxDouble >(val4);
31126 ecode5 = SWIG_AsVal_double(obj4, &val5);
31127 if (!SWIG_IsOK(ecode5)) {
31128 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
31129 }
31130 arg5 = static_cast< wxDouble >(val5);
31131 {
31132 arg6 = &temp6;
31133 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
31134 }
31135 {
31136 arg7 = &temp7;
31137 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31138 }
31139 {
31140 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
31141 if (PyErr_Occurred()) SWIG_fail;
31142 }
31143 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
31144 return resultobj;
31145 fail:
31146 return NULL;
31147 }
31148
31149
31150 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31151 PyObject *resultobj = 0;
31152 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31153 wxDouble arg2 ;
31154 wxDouble arg3 ;
31155 wxDouble arg4 ;
31156 wxDouble arg5 ;
31157 wxDouble arg6 ;
31158 wxColour *arg7 = 0 ;
31159 wxColour *arg8 = 0 ;
31160 wxGraphicsBrush result;
31161 void *argp1 = 0 ;
31162 int res1 = 0 ;
31163 double val2 ;
31164 int ecode2 = 0 ;
31165 double val3 ;
31166 int ecode3 = 0 ;
31167 double val4 ;
31168 int ecode4 = 0 ;
31169 double val5 ;
31170 int ecode5 = 0 ;
31171 double val6 ;
31172 int ecode6 = 0 ;
31173 wxColour temp7 ;
31174 wxColour temp8 ;
31175 PyObject * obj0 = 0 ;
31176 PyObject * obj1 = 0 ;
31177 PyObject * obj2 = 0 ;
31178 PyObject * obj3 = 0 ;
31179 PyObject * obj4 = 0 ;
31180 PyObject * obj5 = 0 ;
31181 PyObject * obj6 = 0 ;
31182 PyObject * obj7 = 0 ;
31183 char * kwnames[] = {
31184 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
31185 };
31186
31187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31189 if (!SWIG_IsOK(res1)) {
31190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31191 }
31192 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31193 ecode2 = SWIG_AsVal_double(obj1, &val2);
31194 if (!SWIG_IsOK(ecode2)) {
31195 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
31196 }
31197 arg2 = static_cast< wxDouble >(val2);
31198 ecode3 = SWIG_AsVal_double(obj2, &val3);
31199 if (!SWIG_IsOK(ecode3)) {
31200 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
31201 }
31202 arg3 = static_cast< wxDouble >(val3);
31203 ecode4 = SWIG_AsVal_double(obj3, &val4);
31204 if (!SWIG_IsOK(ecode4)) {
31205 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
31206 }
31207 arg4 = static_cast< wxDouble >(val4);
31208 ecode5 = SWIG_AsVal_double(obj4, &val5);
31209 if (!SWIG_IsOK(ecode5)) {
31210 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
31211 }
31212 arg5 = static_cast< wxDouble >(val5);
31213 ecode6 = SWIG_AsVal_double(obj5, &val6);
31214 if (!SWIG_IsOK(ecode6)) {
31215 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
31216 }
31217 arg6 = static_cast< wxDouble >(val6);
31218 {
31219 arg7 = &temp7;
31220 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31221 }
31222 {
31223 arg8 = &temp8;
31224 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
31225 }
31226 {
31227 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
31228 if (PyErr_Occurred()) SWIG_fail;
31229 }
31230 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
31231 return resultobj;
31232 fail:
31233 return NULL;
31234 }
31235
31236
31237 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31238 PyObject *resultobj = 0;
31239 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31240 wxFont *arg2 = 0 ;
31241 wxColour const &arg3_defvalue = *wxBLACK ;
31242 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
31243 wxGraphicsFont result;
31244 void *argp1 = 0 ;
31245 int res1 = 0 ;
31246 void *argp2 = 0 ;
31247 int res2 = 0 ;
31248 wxColour temp3 ;
31249 PyObject * obj0 = 0 ;
31250 PyObject * obj1 = 0 ;
31251 PyObject * obj2 = 0 ;
31252 char * kwnames[] = {
31253 (char *) "self",(char *) "font",(char *) "col", NULL
31254 };
31255
31256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31258 if (!SWIG_IsOK(res1)) {
31259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31260 }
31261 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31262 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
31263 if (!SWIG_IsOK(res2)) {
31264 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31265 }
31266 if (!argp2) {
31267 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31268 }
31269 arg2 = reinterpret_cast< wxFont * >(argp2);
31270 if (obj2) {
31271 {
31272 arg3 = &temp3;
31273 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31274 }
31275 }
31276 {
31277 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
31278 if (PyErr_Occurred()) SWIG_fail;
31279 }
31280 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
31281 return resultobj;
31282 fail:
31283 return NULL;
31284 }
31285
31286
31287 SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31288 PyObject *obj;
31289 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31290 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
31291 return SWIG_Py_Void();
31292 }
31293
31294 SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31295 PyObject *resultobj = 0;
31296 wxWindowDC *arg1 = 0 ;
31297 wxGCDC *result = 0 ;
31298 void *argp1 = 0 ;
31299 int res1 = 0 ;
31300
31301 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
31303 if (!SWIG_IsOK(res1)) {
31304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31305 }
31306 if (!argp1) {
31307 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31308 }
31309 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
31310 {
31311 if (!wxPyCheckForApp()) SWIG_fail;
31312 PyThreadState* __tstate = wxPyBeginAllowThreads();
31313 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
31314 wxPyEndAllowThreads(__tstate);
31315 if (PyErr_Occurred()) SWIG_fail;
31316 }
31317 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
31318 return resultobj;
31319 fail:
31320 return NULL;
31321 }
31322
31323
31324 SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31325 PyObject *resultobj = 0;
31326 wxWindow *arg1 = (wxWindow *) 0 ;
31327 wxGCDC *result = 0 ;
31328 void *argp1 = 0 ;
31329 int res1 = 0 ;
31330
31331 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31333 if (!SWIG_IsOK(res1)) {
31334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'");
31335 }
31336 arg1 = reinterpret_cast< wxWindow * >(argp1);
31337 {
31338 if (!wxPyCheckForApp()) SWIG_fail;
31339 PyThreadState* __tstate = wxPyBeginAllowThreads();
31340 result = (wxGCDC *)new wxGCDC(arg1);
31341 wxPyEndAllowThreads(__tstate);
31342 if (PyErr_Occurred()) SWIG_fail;
31343 }
31344 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
31345 return resultobj;
31346 fail:
31347 return NULL;
31348 }
31349
31350
31351 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) {
31352 int argc;
31353 PyObject *argv[2];
31354
31355 if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail;
31356 --argc;
31357 if (argc == 1) {
31358 int _v = 0;
31359 {
31360 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
31361 _v = SWIG_CheckState(res);
31362 }
31363 if (!_v) goto check_1;
31364 return _wrap_new_GCDC__SWIG_0(self, argc, argv);
31365 }
31366 check_1:
31367
31368 if (argc == 1) {
31369 return _wrap_new_GCDC__SWIG_1(self, argc, argv);
31370 }
31371
31372 fail:
31373 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'");
31374 return NULL;
31375 }
31376
31377
31378 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31379 PyObject *resultobj = 0;
31380 wxGCDC *arg1 = (wxGCDC *) 0 ;
31381 void *argp1 = 0 ;
31382 int res1 = 0 ;
31383 PyObject *swig_obj[1] ;
31384
31385 if (!args) SWIG_fail;
31386 swig_obj[0] = args;
31387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
31388 if (!SWIG_IsOK(res1)) {
31389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
31390 }
31391 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31392 {
31393 delete arg1;
31394
31395 if (PyErr_Occurred()) SWIG_fail;
31396 }
31397 resultobj = SWIG_Py_Void();
31398 return resultobj;
31399 fail:
31400 return NULL;
31401 }
31402
31403
31404 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31405 PyObject *resultobj = 0;
31406 wxGCDC *arg1 = (wxGCDC *) 0 ;
31407 wxGraphicsContext *result = 0 ;
31408 void *argp1 = 0 ;
31409 int res1 = 0 ;
31410 PyObject *swig_obj[1] ;
31411
31412 if (!args) SWIG_fail;
31413 swig_obj[0] = args;
31414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31415 if (!SWIG_IsOK(res1)) {
31416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
31417 }
31418 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31419 {
31420 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
31421 if (PyErr_Occurred()) SWIG_fail;
31422 }
31423 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31424 return resultobj;
31425 fail:
31426 return NULL;
31427 }
31428
31429
31430 SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31431 PyObject *resultobj = 0;
31432 wxGCDC *arg1 = (wxGCDC *) 0 ;
31433 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
31434 void *argp1 = 0 ;
31435 int res1 = 0 ;
31436 void *argp2 = 0 ;
31437 int res2 = 0 ;
31438 PyObject * obj0 = 0 ;
31439 PyObject * obj1 = 0 ;
31440 char * kwnames[] = {
31441 (char *) "self",(char *) "ctx", NULL
31442 };
31443
31444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
31445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
31446 if (!SWIG_IsOK(res1)) {
31447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
31448 }
31449 arg1 = reinterpret_cast< wxGCDC * >(argp1);
31450 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31451 if (!SWIG_IsOK(res2)) {
31452 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
31453 }
31454 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
31455 {
31456 (arg1)->SetGraphicsContext(arg2);
31457 if (PyErr_Occurred()) SWIG_fail;
31458 }
31459 resultobj = SWIG_Py_Void();
31460 return resultobj;
31461 fail:
31462 return NULL;
31463 }
31464
31465
31466 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31467 PyObject *obj;
31468 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31469 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
31470 return SWIG_Py_Void();
31471 }
31472
31473 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31474 return SWIG_Python_InitShadowInstance(args);
31475 }
31476
31477 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31478 PyObject *resultobj = 0;
31479 wxOverlay *result = 0 ;
31480
31481 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
31482 {
31483 PyThreadState* __tstate = wxPyBeginAllowThreads();
31484 result = (wxOverlay *)new wxOverlay();
31485 wxPyEndAllowThreads(__tstate);
31486 if (PyErr_Occurred()) SWIG_fail;
31487 }
31488 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
31489 return resultobj;
31490 fail:
31491 return NULL;
31492 }
31493
31494
31495 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31496 PyObject *resultobj = 0;
31497 wxOverlay *arg1 = (wxOverlay *) 0 ;
31498 void *argp1 = 0 ;
31499 int res1 = 0 ;
31500 PyObject *swig_obj[1] ;
31501
31502 if (!args) SWIG_fail;
31503 swig_obj[0] = args;
31504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
31505 if (!SWIG_IsOK(res1)) {
31506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
31507 }
31508 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31509 {
31510 PyThreadState* __tstate = wxPyBeginAllowThreads();
31511 delete arg1;
31512
31513 wxPyEndAllowThreads(__tstate);
31514 if (PyErr_Occurred()) SWIG_fail;
31515 }
31516 resultobj = SWIG_Py_Void();
31517 return resultobj;
31518 fail:
31519 return NULL;
31520 }
31521
31522
31523 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31524 PyObject *resultobj = 0;
31525 wxOverlay *arg1 = (wxOverlay *) 0 ;
31526 void *argp1 = 0 ;
31527 int res1 = 0 ;
31528 PyObject *swig_obj[1] ;
31529
31530 if (!args) SWIG_fail;
31531 swig_obj[0] = args;
31532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
31533 if (!SWIG_IsOK(res1)) {
31534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
31535 }
31536 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31537 {
31538 PyThreadState* __tstate = wxPyBeginAllowThreads();
31539 (arg1)->Reset();
31540 wxPyEndAllowThreads(__tstate);
31541 if (PyErr_Occurred()) SWIG_fail;
31542 }
31543 resultobj = SWIG_Py_Void();
31544 return resultobj;
31545 fail:
31546 return NULL;
31547 }
31548
31549
31550 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31551 PyObject *obj;
31552 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31553 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
31554 return SWIG_Py_Void();
31555 }
31556
31557 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31558 return SWIG_Python_InitShadowInstance(args);
31559 }
31560
31561 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31562 PyObject *resultobj = 0;
31563 wxOverlay *arg1 = 0 ;
31564 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31565 int arg3 ;
31566 int arg4 ;
31567 int arg5 ;
31568 int arg6 ;
31569 wxDCOverlay *result = 0 ;
31570 void *argp1 = 0 ;
31571 int res1 = 0 ;
31572 void *argp2 = 0 ;
31573 int res2 = 0 ;
31574 int val3 ;
31575 int ecode3 = 0 ;
31576 int val4 ;
31577 int ecode4 = 0 ;
31578 int val5 ;
31579 int ecode5 = 0 ;
31580 int val6 ;
31581 int ecode6 = 0 ;
31582
31583 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
31584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31585 if (!SWIG_IsOK(res1)) {
31586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31587 }
31588 if (!argp1) {
31589 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31590 }
31591 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31592 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31593 if (!SWIG_IsOK(res2)) {
31594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31595 }
31596 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31597 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
31598 if (!SWIG_IsOK(ecode3)) {
31599 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
31600 }
31601 arg3 = static_cast< int >(val3);
31602 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
31603 if (!SWIG_IsOK(ecode4)) {
31604 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
31605 }
31606 arg4 = static_cast< int >(val4);
31607 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
31608 if (!SWIG_IsOK(ecode5)) {
31609 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
31610 }
31611 arg5 = static_cast< int >(val5);
31612 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
31613 if (!SWIG_IsOK(ecode6)) {
31614 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
31615 }
31616 arg6 = static_cast< int >(val6);
31617 {
31618 PyThreadState* __tstate = wxPyBeginAllowThreads();
31619 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
31620 wxPyEndAllowThreads(__tstate);
31621 if (PyErr_Occurred()) SWIG_fail;
31622 }
31623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31624 return resultobj;
31625 fail:
31626 return NULL;
31627 }
31628
31629
31630 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31631 PyObject *resultobj = 0;
31632 wxOverlay *arg1 = 0 ;
31633 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31634 wxDCOverlay *result = 0 ;
31635 void *argp1 = 0 ;
31636 int res1 = 0 ;
31637 void *argp2 = 0 ;
31638 int res2 = 0 ;
31639
31640 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31642 if (!SWIG_IsOK(res1)) {
31643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31644 }
31645 if (!argp1) {
31646 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31647 }
31648 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31649 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31650 if (!SWIG_IsOK(res2)) {
31651 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31652 }
31653 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31654 {
31655 PyThreadState* __tstate = wxPyBeginAllowThreads();
31656 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
31657 wxPyEndAllowThreads(__tstate);
31658 if (PyErr_Occurred()) SWIG_fail;
31659 }
31660 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31661 return resultobj;
31662 fail:
31663 return NULL;
31664 }
31665
31666
31667 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
31668 int argc;
31669 PyObject *argv[7];
31670
31671 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
31672 --argc;
31673 if (argc == 2) {
31674 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
31675 }
31676 if (argc == 6) {
31677 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
31678 }
31679
31680 fail:
31681 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
31682 return NULL;
31683 }
31684
31685
31686 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31687 PyObject *resultobj = 0;
31688 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31689 void *argp1 = 0 ;
31690 int res1 = 0 ;
31691 PyObject *swig_obj[1] ;
31692
31693 if (!args) SWIG_fail;
31694 swig_obj[0] = args;
31695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
31696 if (!SWIG_IsOK(res1)) {
31697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31698 }
31699 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31700 {
31701 PyThreadState* __tstate = wxPyBeginAllowThreads();
31702 delete arg1;
31703
31704 wxPyEndAllowThreads(__tstate);
31705 if (PyErr_Occurred()) SWIG_fail;
31706 }
31707 resultobj = SWIG_Py_Void();
31708 return resultobj;
31709 fail:
31710 return NULL;
31711 }
31712
31713
31714 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31715 PyObject *resultobj = 0;
31716 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31717 void *argp1 = 0 ;
31718 int res1 = 0 ;
31719 PyObject *swig_obj[1] ;
31720
31721 if (!args) SWIG_fail;
31722 swig_obj[0] = args;
31723 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
31724 if (!SWIG_IsOK(res1)) {
31725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31726 }
31727 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31728 {
31729 PyThreadState* __tstate = wxPyBeginAllowThreads();
31730 (arg1)->Clear();
31731 wxPyEndAllowThreads(__tstate);
31732 if (PyErr_Occurred()) SWIG_fail;
31733 }
31734 resultobj = SWIG_Py_Void();
31735 return resultobj;
31736 fail:
31737 return NULL;
31738 }
31739
31740
31741 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31742 PyObject *obj;
31743 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31744 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
31745 return SWIG_Py_Void();
31746 }
31747
31748 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31749 return SWIG_Python_InitShadowInstance(args);
31750 }
31751
31752 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31753 PyObject *resultobj = 0;
31754 int arg1 ;
31755 int arg2 ;
31756 int arg3 = (int) true ;
31757 int arg4 = (int) 1 ;
31758 wxImageList *result = 0 ;
31759 int val1 ;
31760 int ecode1 = 0 ;
31761 int val2 ;
31762 int ecode2 = 0 ;
31763 int val3 ;
31764 int ecode3 = 0 ;
31765 int val4 ;
31766 int ecode4 = 0 ;
31767 PyObject * obj0 = 0 ;
31768 PyObject * obj1 = 0 ;
31769 PyObject * obj2 = 0 ;
31770 PyObject * obj3 = 0 ;
31771 char * kwnames[] = {
31772 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
31773 };
31774
31775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31776 ecode1 = SWIG_AsVal_int(obj0, &val1);
31777 if (!SWIG_IsOK(ecode1)) {
31778 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
31779 }
31780 arg1 = static_cast< int >(val1);
31781 ecode2 = SWIG_AsVal_int(obj1, &val2);
31782 if (!SWIG_IsOK(ecode2)) {
31783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
31784 }
31785 arg2 = static_cast< int >(val2);
31786 if (obj2) {
31787 ecode3 = SWIG_AsVal_int(obj2, &val3);
31788 if (!SWIG_IsOK(ecode3)) {
31789 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
31790 }
31791 arg3 = static_cast< int >(val3);
31792 }
31793 if (obj3) {
31794 ecode4 = SWIG_AsVal_int(obj3, &val4);
31795 if (!SWIG_IsOK(ecode4)) {
31796 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
31797 }
31798 arg4 = static_cast< int >(val4);
31799 }
31800 {
31801 if (!wxPyCheckForApp()) SWIG_fail;
31802 PyThreadState* __tstate = wxPyBeginAllowThreads();
31803 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
31804 wxPyEndAllowThreads(__tstate);
31805 if (PyErr_Occurred()) SWIG_fail;
31806 }
31807 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
31808 return resultobj;
31809 fail:
31810 return NULL;
31811 }
31812
31813
31814 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31815 PyObject *resultobj = 0;
31816 wxImageList *arg1 = (wxImageList *) 0 ;
31817 void *argp1 = 0 ;
31818 int res1 = 0 ;
31819 PyObject *swig_obj[1] ;
31820
31821 if (!args) SWIG_fail;
31822 swig_obj[0] = args;
31823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
31824 if (!SWIG_IsOK(res1)) {
31825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
31826 }
31827 arg1 = reinterpret_cast< wxImageList * >(argp1);
31828 {
31829 PyThreadState* __tstate = wxPyBeginAllowThreads();
31830 delete arg1;
31831
31832 wxPyEndAllowThreads(__tstate);
31833 if (PyErr_Occurred()) SWIG_fail;
31834 }
31835 resultobj = SWIG_Py_Void();
31836 return resultobj;
31837 fail:
31838 return NULL;
31839 }
31840
31841
31842 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31843 PyObject *resultobj = 0;
31844 wxImageList *arg1 = (wxImageList *) 0 ;
31845 wxBitmap *arg2 = 0 ;
31846 wxBitmap const &arg3_defvalue = wxNullBitmap ;
31847 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
31848 int result;
31849 void *argp1 = 0 ;
31850 int res1 = 0 ;
31851 void *argp2 = 0 ;
31852 int res2 = 0 ;
31853 void *argp3 = 0 ;
31854 int res3 = 0 ;
31855 PyObject * obj0 = 0 ;
31856 PyObject * obj1 = 0 ;
31857 PyObject * obj2 = 0 ;
31858 char * kwnames[] = {
31859 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
31860 };
31861
31862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31864 if (!SWIG_IsOK(res1)) {
31865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
31866 }
31867 arg1 = reinterpret_cast< wxImageList * >(argp1);
31868 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31869 if (!SWIG_IsOK(res2)) {
31870 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31871 }
31872 if (!argp2) {
31873 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31874 }
31875 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31876 if (obj2) {
31877 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31878 if (!SWIG_IsOK(res3)) {
31879 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31880 }
31881 if (!argp3) {
31882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31883 }
31884 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31885 }
31886 {
31887 PyThreadState* __tstate = wxPyBeginAllowThreads();
31888 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
31889 wxPyEndAllowThreads(__tstate);
31890 if (PyErr_Occurred()) SWIG_fail;
31891 }
31892 resultobj = SWIG_From_int(static_cast< int >(result));
31893 return resultobj;
31894 fail:
31895 return NULL;
31896 }
31897
31898
31899 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31900 PyObject *resultobj = 0;
31901 wxImageList *arg1 = (wxImageList *) 0 ;
31902 wxBitmap *arg2 = 0 ;
31903 wxColour *arg3 = 0 ;
31904 int result;
31905 void *argp1 = 0 ;
31906 int res1 = 0 ;
31907 void *argp2 = 0 ;
31908 int res2 = 0 ;
31909 wxColour temp3 ;
31910 PyObject * obj0 = 0 ;
31911 PyObject * obj1 = 0 ;
31912 PyObject * obj2 = 0 ;
31913 char * kwnames[] = {
31914 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
31915 };
31916
31917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31919 if (!SWIG_IsOK(res1)) {
31920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
31921 }
31922 arg1 = reinterpret_cast< wxImageList * >(argp1);
31923 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31924 if (!SWIG_IsOK(res2)) {
31925 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31926 }
31927 if (!argp2) {
31928 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31929 }
31930 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31931 {
31932 arg3 = &temp3;
31933 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31934 }
31935 {
31936 PyThreadState* __tstate = wxPyBeginAllowThreads();
31937 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31938 wxPyEndAllowThreads(__tstate);
31939 if (PyErr_Occurred()) SWIG_fail;
31940 }
31941 resultobj = SWIG_From_int(static_cast< int >(result));
31942 return resultobj;
31943 fail:
31944 return NULL;
31945 }
31946
31947
31948 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31949 PyObject *resultobj = 0;
31950 wxImageList *arg1 = (wxImageList *) 0 ;
31951 wxIcon *arg2 = 0 ;
31952 int result;
31953 void *argp1 = 0 ;
31954 int res1 = 0 ;
31955 void *argp2 = 0 ;
31956 int res2 = 0 ;
31957 PyObject * obj0 = 0 ;
31958 PyObject * obj1 = 0 ;
31959 char * kwnames[] = {
31960 (char *) "self",(char *) "icon", NULL
31961 };
31962
31963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31965 if (!SWIG_IsOK(res1)) {
31966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31967 }
31968 arg1 = reinterpret_cast< wxImageList * >(argp1);
31969 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31970 if (!SWIG_IsOK(res2)) {
31971 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31972 }
31973 if (!argp2) {
31974 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31975 }
31976 arg2 = reinterpret_cast< wxIcon * >(argp2);
31977 {
31978 PyThreadState* __tstate = wxPyBeginAllowThreads();
31979 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31980 wxPyEndAllowThreads(__tstate);
31981 if (PyErr_Occurred()) SWIG_fail;
31982 }
31983 resultobj = SWIG_From_int(static_cast< int >(result));
31984 return resultobj;
31985 fail:
31986 return NULL;
31987 }
31988
31989
31990 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31991 PyObject *resultobj = 0;
31992 wxImageList *arg1 = (wxImageList *) 0 ;
31993 int arg2 ;
31994 SwigValueWrapper<wxBitmap > result;
31995 void *argp1 = 0 ;
31996 int res1 = 0 ;
31997 int val2 ;
31998 int ecode2 = 0 ;
31999 PyObject * obj0 = 0 ;
32000 PyObject * obj1 = 0 ;
32001 char * kwnames[] = {
32002 (char *) "self",(char *) "index", NULL
32003 };
32004
32005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
32006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32007 if (!SWIG_IsOK(res1)) {
32008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
32009 }
32010 arg1 = reinterpret_cast< wxImageList * >(argp1);
32011 ecode2 = SWIG_AsVal_int(obj1, &val2);
32012 if (!SWIG_IsOK(ecode2)) {
32013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
32014 }
32015 arg2 = static_cast< int >(val2);
32016 {
32017 PyThreadState* __tstate = wxPyBeginAllowThreads();
32018 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
32019 wxPyEndAllowThreads(__tstate);
32020 if (PyErr_Occurred()) SWIG_fail;
32021 }
32022 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
32023 return resultobj;
32024 fail:
32025 return NULL;
32026 }
32027
32028
32029 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32030 PyObject *resultobj = 0;
32031 wxImageList *arg1 = (wxImageList *) 0 ;
32032 int arg2 ;
32033 wxIcon result;
32034 void *argp1 = 0 ;
32035 int res1 = 0 ;
32036 int val2 ;
32037 int ecode2 = 0 ;
32038 PyObject * obj0 = 0 ;
32039 PyObject * obj1 = 0 ;
32040 char * kwnames[] = {
32041 (char *) "self",(char *) "index", NULL
32042 };
32043
32044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
32045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32046 if (!SWIG_IsOK(res1)) {
32047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
32048 }
32049 arg1 = reinterpret_cast< wxImageList * >(argp1);
32050 ecode2 = SWIG_AsVal_int(obj1, &val2);
32051 if (!SWIG_IsOK(ecode2)) {
32052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
32053 }
32054 arg2 = static_cast< int >(val2);
32055 {
32056 PyThreadState* __tstate = wxPyBeginAllowThreads();
32057 result = ((wxImageList const *)arg1)->GetIcon(arg2);
32058 wxPyEndAllowThreads(__tstate);
32059 if (PyErr_Occurred()) SWIG_fail;
32060 }
32061 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
32062 return resultobj;
32063 fail:
32064 return NULL;
32065 }
32066
32067
32068 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32069 PyObject *resultobj = 0;
32070 wxImageList *arg1 = (wxImageList *) 0 ;
32071 int arg2 ;
32072 wxBitmap *arg3 = 0 ;
32073 wxBitmap const &arg4_defvalue = wxNullBitmap ;
32074 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
32075 bool result;
32076 void *argp1 = 0 ;
32077 int res1 = 0 ;
32078 int val2 ;
32079 int ecode2 = 0 ;
32080 void *argp3 = 0 ;
32081 int res3 = 0 ;
32082 void *argp4 = 0 ;
32083 int res4 = 0 ;
32084 PyObject * obj0 = 0 ;
32085 PyObject * obj1 = 0 ;
32086 PyObject * obj2 = 0 ;
32087 PyObject * obj3 = 0 ;
32088 char * kwnames[] = {
32089 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
32090 };
32091
32092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32094 if (!SWIG_IsOK(res1)) {
32095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
32096 }
32097 arg1 = reinterpret_cast< wxImageList * >(argp1);
32098 ecode2 = SWIG_AsVal_int(obj1, &val2);
32099 if (!SWIG_IsOK(ecode2)) {
32100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
32101 }
32102 arg2 = static_cast< int >(val2);
32103 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
32104 if (!SWIG_IsOK(res3)) {
32105 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32106 }
32107 if (!argp3) {
32108 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32109 }
32110 arg3 = reinterpret_cast< wxBitmap * >(argp3);
32111 if (obj3) {
32112 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
32113 if (!SWIG_IsOK(res4)) {
32114 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
32115 }
32116 if (!argp4) {
32117 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
32118 }
32119 arg4 = reinterpret_cast< wxBitmap * >(argp4);
32120 }
32121 {
32122 PyThreadState* __tstate = wxPyBeginAllowThreads();
32123 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
32124 wxPyEndAllowThreads(__tstate);
32125 if (PyErr_Occurred()) SWIG_fail;
32126 }
32127 {
32128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32129 }
32130 return resultobj;
32131 fail:
32132 return NULL;
32133 }
32134
32135
32136 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32137 PyObject *resultobj = 0;
32138 wxImageList *arg1 = (wxImageList *) 0 ;
32139 int arg2 ;
32140 wxDC *arg3 = 0 ;
32141 int arg4 ;
32142 int arg5 ;
32143 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
32144 bool arg7 = (bool) (bool)false ;
32145 bool result;
32146 void *argp1 = 0 ;
32147 int res1 = 0 ;
32148 int val2 ;
32149 int ecode2 = 0 ;
32150 void *argp3 = 0 ;
32151 int res3 = 0 ;
32152 int val4 ;
32153 int ecode4 = 0 ;
32154 int val5 ;
32155 int ecode5 = 0 ;
32156 int val6 ;
32157 int ecode6 = 0 ;
32158 bool val7 ;
32159 int ecode7 = 0 ;
32160 PyObject * obj0 = 0 ;
32161 PyObject * obj1 = 0 ;
32162 PyObject * obj2 = 0 ;
32163 PyObject * obj3 = 0 ;
32164 PyObject * obj4 = 0 ;
32165 PyObject * obj5 = 0 ;
32166 PyObject * obj6 = 0 ;
32167 char * kwnames[] = {
32168 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
32169 };
32170
32171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32173 if (!SWIG_IsOK(res1)) {
32174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
32175 }
32176 arg1 = reinterpret_cast< wxImageList * >(argp1);
32177 ecode2 = SWIG_AsVal_int(obj1, &val2);
32178 if (!SWIG_IsOK(ecode2)) {
32179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
32180 }
32181 arg2 = static_cast< int >(val2);
32182 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
32183 if (!SWIG_IsOK(res3)) {
32184 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32185 }
32186 if (!argp3) {
32187 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32188 }
32189 arg3 = reinterpret_cast< wxDC * >(argp3);
32190 ecode4 = SWIG_AsVal_int(obj3, &val4);
32191 if (!SWIG_IsOK(ecode4)) {
32192 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
32193 }
32194 arg4 = static_cast< int >(val4);
32195 ecode5 = SWIG_AsVal_int(obj4, &val5);
32196 if (!SWIG_IsOK(ecode5)) {
32197 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
32198 }
32199 arg5 = static_cast< int >(val5);
32200 if (obj5) {
32201 ecode6 = SWIG_AsVal_int(obj5, &val6);
32202 if (!SWIG_IsOK(ecode6)) {
32203 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
32204 }
32205 arg6 = static_cast< int >(val6);
32206 }
32207 if (obj6) {
32208 ecode7 = SWIG_AsVal_bool(obj6, &val7);
32209 if (!SWIG_IsOK(ecode7)) {
32210 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
32211 }
32212 arg7 = static_cast< bool >(val7);
32213 }
32214 {
32215 PyThreadState* __tstate = wxPyBeginAllowThreads();
32216 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
32217 wxPyEndAllowThreads(__tstate);
32218 if (PyErr_Occurred()) SWIG_fail;
32219 }
32220 {
32221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32222 }
32223 return resultobj;
32224 fail:
32225 return NULL;
32226 }
32227
32228
32229 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32230 PyObject *resultobj = 0;
32231 wxImageList *arg1 = (wxImageList *) 0 ;
32232 int result;
32233 void *argp1 = 0 ;
32234 int res1 = 0 ;
32235 PyObject *swig_obj[1] ;
32236
32237 if (!args) SWIG_fail;
32238 swig_obj[0] = args;
32239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32240 if (!SWIG_IsOK(res1)) {
32241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
32242 }
32243 arg1 = reinterpret_cast< wxImageList * >(argp1);
32244 {
32245 PyThreadState* __tstate = wxPyBeginAllowThreads();
32246 result = (int)(arg1)->GetImageCount();
32247 wxPyEndAllowThreads(__tstate);
32248 if (PyErr_Occurred()) SWIG_fail;
32249 }
32250 resultobj = SWIG_From_int(static_cast< int >(result));
32251 return resultobj;
32252 fail:
32253 return NULL;
32254 }
32255
32256
32257 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32258 PyObject *resultobj = 0;
32259 wxImageList *arg1 = (wxImageList *) 0 ;
32260 int arg2 ;
32261 bool result;
32262 void *argp1 = 0 ;
32263 int res1 = 0 ;
32264 int val2 ;
32265 int ecode2 = 0 ;
32266 PyObject * obj0 = 0 ;
32267 PyObject * obj1 = 0 ;
32268 char * kwnames[] = {
32269 (char *) "self",(char *) "index", NULL
32270 };
32271
32272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
32273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32274 if (!SWIG_IsOK(res1)) {
32275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
32276 }
32277 arg1 = reinterpret_cast< wxImageList * >(argp1);
32278 ecode2 = SWIG_AsVal_int(obj1, &val2);
32279 if (!SWIG_IsOK(ecode2)) {
32280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
32281 }
32282 arg2 = static_cast< int >(val2);
32283 {
32284 PyThreadState* __tstate = wxPyBeginAllowThreads();
32285 result = (bool)(arg1)->Remove(arg2);
32286 wxPyEndAllowThreads(__tstate);
32287 if (PyErr_Occurred()) SWIG_fail;
32288 }
32289 {
32290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32291 }
32292 return resultobj;
32293 fail:
32294 return NULL;
32295 }
32296
32297
32298 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32299 PyObject *resultobj = 0;
32300 wxImageList *arg1 = (wxImageList *) 0 ;
32301 bool result;
32302 void *argp1 = 0 ;
32303 int res1 = 0 ;
32304 PyObject *swig_obj[1] ;
32305
32306 if (!args) SWIG_fail;
32307 swig_obj[0] = args;
32308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32309 if (!SWIG_IsOK(res1)) {
32310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
32311 }
32312 arg1 = reinterpret_cast< wxImageList * >(argp1);
32313 {
32314 PyThreadState* __tstate = wxPyBeginAllowThreads();
32315 result = (bool)(arg1)->RemoveAll();
32316 wxPyEndAllowThreads(__tstate);
32317 if (PyErr_Occurred()) SWIG_fail;
32318 }
32319 {
32320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32321 }
32322 return resultobj;
32323 fail:
32324 return NULL;
32325 }
32326
32327
32328 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32329 PyObject *resultobj = 0;
32330 wxImageList *arg1 = (wxImageList *) 0 ;
32331 int arg2 ;
32332 int *arg3 = 0 ;
32333 int *arg4 = 0 ;
32334 void *argp1 = 0 ;
32335 int res1 = 0 ;
32336 int val2 ;
32337 int ecode2 = 0 ;
32338 int temp3 ;
32339 int res3 = SWIG_TMPOBJ ;
32340 int temp4 ;
32341 int res4 = SWIG_TMPOBJ ;
32342 PyObject * obj0 = 0 ;
32343 PyObject * obj1 = 0 ;
32344 char * kwnames[] = {
32345 (char *) "self",(char *) "index", NULL
32346 };
32347
32348 arg3 = &temp3;
32349 arg4 = &temp4;
32350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
32351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32352 if (!SWIG_IsOK(res1)) {
32353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
32354 }
32355 arg1 = reinterpret_cast< wxImageList * >(argp1);
32356 ecode2 = SWIG_AsVal_int(obj1, &val2);
32357 if (!SWIG_IsOK(ecode2)) {
32358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
32359 }
32360 arg2 = static_cast< int >(val2);
32361 {
32362 PyThreadState* __tstate = wxPyBeginAllowThreads();
32363 (arg1)->GetSize(arg2,*arg3,*arg4);
32364 wxPyEndAllowThreads(__tstate);
32365 if (PyErr_Occurred()) SWIG_fail;
32366 }
32367 resultobj = SWIG_Py_Void();
32368 if (SWIG_IsTmpObj(res3)) {
32369 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
32370 } else {
32371 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32372 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
32373 }
32374 if (SWIG_IsTmpObj(res4)) {
32375 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
32376 } else {
32377 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
32378 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
32379 }
32380 return resultobj;
32381 fail:
32382 return NULL;
32383 }
32384
32385
32386 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32387 PyObject *obj;
32388 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32389 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
32390 return SWIG_Py_Void();
32391 }
32392
32393 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32394 return SWIG_Python_InitShadowInstance(args);
32395 }
32396
32397 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32398 PyObject *resultobj = 0;
32399 wxStockGDI *result = 0 ;
32400
32401 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
32402 {
32403 PyThreadState* __tstate = wxPyBeginAllowThreads();
32404 result = (wxStockGDI *)new wxStockGDI();
32405 wxPyEndAllowThreads(__tstate);
32406 if (PyErr_Occurred()) SWIG_fail;
32407 }
32408 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
32409 return resultobj;
32410 fail:
32411 return NULL;
32412 }
32413
32414
32415 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32416 PyObject *resultobj = 0;
32417 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32418 void *argp1 = 0 ;
32419 int res1 = 0 ;
32420 PyObject *swig_obj[1] ;
32421
32422 if (!args) SWIG_fail;
32423 swig_obj[0] = args;
32424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
32425 if (!SWIG_IsOK(res1)) {
32426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32427 }
32428 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32429 {
32430 PyThreadState* __tstate = wxPyBeginAllowThreads();
32431 delete arg1;
32432
32433 wxPyEndAllowThreads(__tstate);
32434 if (PyErr_Occurred()) SWIG_fail;
32435 }
32436 resultobj = SWIG_Py_Void();
32437 return resultobj;
32438 fail:
32439 return NULL;
32440 }
32441
32442
32443 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32444 PyObject *resultobj = 0;
32445
32446 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
32447 {
32448 PyThreadState* __tstate = wxPyBeginAllowThreads();
32449 wxStockGDI::DeleteAll();
32450 wxPyEndAllowThreads(__tstate);
32451 if (PyErr_Occurred()) SWIG_fail;
32452 }
32453 resultobj = SWIG_Py_Void();
32454 return resultobj;
32455 fail:
32456 return NULL;
32457 }
32458
32459
32460 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32461 PyObject *resultobj = 0;
32462 wxStockGDI *result = 0 ;
32463
32464 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
32465 {
32466 PyThreadState* __tstate = wxPyBeginAllowThreads();
32467 {
32468 wxStockGDI &_result_ref = wxStockGDI::instance();
32469 result = (wxStockGDI *) &_result_ref;
32470 }
32471 wxPyEndAllowThreads(__tstate);
32472 if (PyErr_Occurred()) SWIG_fail;
32473 }
32474 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
32475 return resultobj;
32476 fail:
32477 return NULL;
32478 }
32479
32480
32481 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32482 PyObject *resultobj = 0;
32483 wxStockGDI::Item arg1 ;
32484 wxBrush *result = 0 ;
32485 int val1 ;
32486 int ecode1 = 0 ;
32487 PyObject * obj0 = 0 ;
32488 char * kwnames[] = {
32489 (char *) "item", NULL
32490 };
32491
32492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
32493 ecode1 = SWIG_AsVal_int(obj0, &val1);
32494 if (!SWIG_IsOK(ecode1)) {
32495 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32496 }
32497 arg1 = static_cast< wxStockGDI::Item >(val1);
32498 {
32499 PyThreadState* __tstate = wxPyBeginAllowThreads();
32500 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
32501 wxPyEndAllowThreads(__tstate);
32502 if (PyErr_Occurred()) SWIG_fail;
32503 }
32504 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32505 return resultobj;
32506 fail:
32507 return NULL;
32508 }
32509
32510
32511 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32512 PyObject *resultobj = 0;
32513 wxStockGDI::Item arg1 ;
32514 wxColour *result = 0 ;
32515 int val1 ;
32516 int ecode1 = 0 ;
32517 PyObject * obj0 = 0 ;
32518 char * kwnames[] = {
32519 (char *) "item", NULL
32520 };
32521
32522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
32523 ecode1 = SWIG_AsVal_int(obj0, &val1);
32524 if (!SWIG_IsOK(ecode1)) {
32525 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32526 }
32527 arg1 = static_cast< wxStockGDI::Item >(val1);
32528 {
32529 PyThreadState* __tstate = wxPyBeginAllowThreads();
32530 result = (wxColour *)wxStockGDI::GetColour(arg1);
32531 wxPyEndAllowThreads(__tstate);
32532 if (PyErr_Occurred()) SWIG_fail;
32533 }
32534 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
32535 return resultobj;
32536 fail:
32537 return NULL;
32538 }
32539
32540
32541 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32542 PyObject *resultobj = 0;
32543 wxStockGDI::Item arg1 ;
32544 wxCursor *result = 0 ;
32545 int val1 ;
32546 int ecode1 = 0 ;
32547 PyObject * obj0 = 0 ;
32548 char * kwnames[] = {
32549 (char *) "item", NULL
32550 };
32551
32552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
32553 ecode1 = SWIG_AsVal_int(obj0, &val1);
32554 if (!SWIG_IsOK(ecode1)) {
32555 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32556 }
32557 arg1 = static_cast< wxStockGDI::Item >(val1);
32558 {
32559 PyThreadState* __tstate = wxPyBeginAllowThreads();
32560 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
32561 wxPyEndAllowThreads(__tstate);
32562 if (PyErr_Occurred()) SWIG_fail;
32563 }
32564 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
32565 return resultobj;
32566 fail:
32567 return NULL;
32568 }
32569
32570
32571 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32572 PyObject *resultobj = 0;
32573 wxStockGDI::Item arg1 ;
32574 wxPen *result = 0 ;
32575 int val1 ;
32576 int ecode1 = 0 ;
32577 PyObject * obj0 = 0 ;
32578 char * kwnames[] = {
32579 (char *) "item", NULL
32580 };
32581
32582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
32583 ecode1 = SWIG_AsVal_int(obj0, &val1);
32584 if (!SWIG_IsOK(ecode1)) {
32585 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32586 }
32587 arg1 = static_cast< wxStockGDI::Item >(val1);
32588 {
32589 PyThreadState* __tstate = wxPyBeginAllowThreads();
32590 result = (wxPen *)wxStockGDI::GetPen(arg1);
32591 wxPyEndAllowThreads(__tstate);
32592 if (PyErr_Occurred()) SWIG_fail;
32593 }
32594 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32595 return resultobj;
32596 fail:
32597 return NULL;
32598 }
32599
32600
32601 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32602 PyObject *resultobj = 0;
32603 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32604 wxStockGDI::Item arg2 ;
32605 wxFont *result = 0 ;
32606 void *argp1 = 0 ;
32607 int res1 = 0 ;
32608 int val2 ;
32609 int ecode2 = 0 ;
32610 PyObject * obj0 = 0 ;
32611 PyObject * obj1 = 0 ;
32612 char * kwnames[] = {
32613 (char *) "self",(char *) "item", NULL
32614 };
32615
32616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
32617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
32618 if (!SWIG_IsOK(res1)) {
32619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32620 }
32621 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32622 ecode2 = SWIG_AsVal_int(obj1, &val2);
32623 if (!SWIG_IsOK(ecode2)) {
32624 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
32625 }
32626 arg2 = static_cast< wxStockGDI::Item >(val2);
32627 {
32628 PyThreadState* __tstate = wxPyBeginAllowThreads();
32629 result = (wxFont *)(arg1)->GetFont(arg2);
32630 wxPyEndAllowThreads(__tstate);
32631 if (PyErr_Occurred()) SWIG_fail;
32632 }
32633 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32634 return resultobj;
32635 fail:
32636 return NULL;
32637 }
32638
32639
32640 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32641 PyObject *obj;
32642 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32643 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
32644 return SWIG_Py_Void();
32645 }
32646
32647 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32648 return SWIG_Python_InitShadowInstance(args);
32649 }
32650
32651 SWIGINTERN int NullBitmap_set(PyObject *) {
32652 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
32653 return 1;
32654 }
32655
32656
32657 SWIGINTERN PyObject *NullBitmap_get(void) {
32658 PyObject *pyobj = 0;
32659
32660 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
32661 return pyobj;
32662 }
32663
32664
32665 SWIGINTERN int NullIcon_set(PyObject *) {
32666 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
32667 return 1;
32668 }
32669
32670
32671 SWIGINTERN PyObject *NullIcon_get(void) {
32672 PyObject *pyobj = 0;
32673
32674 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
32675 return pyobj;
32676 }
32677
32678
32679 SWIGINTERN int NullCursor_set(PyObject *) {
32680 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
32681 return 1;
32682 }
32683
32684
32685 SWIGINTERN PyObject *NullCursor_get(void) {
32686 PyObject *pyobj = 0;
32687
32688 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
32689 return pyobj;
32690 }
32691
32692
32693 SWIGINTERN int NullPen_set(PyObject *) {
32694 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
32695 return 1;
32696 }
32697
32698
32699 SWIGINTERN PyObject *NullPen_get(void) {
32700 PyObject *pyobj = 0;
32701
32702 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
32703 return pyobj;
32704 }
32705
32706
32707 SWIGINTERN int NullBrush_set(PyObject *) {
32708 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
32709 return 1;
32710 }
32711
32712
32713 SWIGINTERN PyObject *NullBrush_get(void) {
32714 PyObject *pyobj = 0;
32715
32716 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
32717 return pyobj;
32718 }
32719
32720
32721 SWIGINTERN int NullPalette_set(PyObject *) {
32722 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
32723 return 1;
32724 }
32725
32726
32727 SWIGINTERN PyObject *NullPalette_get(void) {
32728 PyObject *pyobj = 0;
32729
32730 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
32731 return pyobj;
32732 }
32733
32734
32735 SWIGINTERN int NullFont_set(PyObject *) {
32736 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
32737 return 1;
32738 }
32739
32740
32741 SWIGINTERN PyObject *NullFont_get(void) {
32742 PyObject *pyobj = 0;
32743
32744 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
32745 return pyobj;
32746 }
32747
32748
32749 SWIGINTERN int NullColour_set(PyObject *) {
32750 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
32751 return 1;
32752 }
32753
32754
32755 SWIGINTERN PyObject *NullColour_get(void) {
32756 PyObject *pyobj = 0;
32757
32758 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
32759 return pyobj;
32760 }
32761
32762
32763 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32764 PyObject *resultobj = 0;
32765 wxGDIObjListBase *result = 0 ;
32766
32767 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
32768 {
32769 PyThreadState* __tstate = wxPyBeginAllowThreads();
32770 result = (wxGDIObjListBase *)new wxGDIObjListBase();
32771 wxPyEndAllowThreads(__tstate);
32772 if (PyErr_Occurred()) SWIG_fail;
32773 }
32774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
32775 return resultobj;
32776 fail:
32777 return NULL;
32778 }
32779
32780
32781 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32782 PyObject *resultobj = 0;
32783 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
32784 void *argp1 = 0 ;
32785 int res1 = 0 ;
32786 PyObject *swig_obj[1] ;
32787
32788 if (!args) SWIG_fail;
32789 swig_obj[0] = args;
32790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
32791 if (!SWIG_IsOK(res1)) {
32792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
32793 }
32794 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
32795 {
32796 PyThreadState* __tstate = wxPyBeginAllowThreads();
32797 delete arg1;
32798
32799 wxPyEndAllowThreads(__tstate);
32800 if (PyErr_Occurred()) SWIG_fail;
32801 }
32802 resultobj = SWIG_Py_Void();
32803 return resultobj;
32804 fail:
32805 return NULL;
32806 }
32807
32808
32809 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32810 PyObject *obj;
32811 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32812 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
32813 return SWIG_Py_Void();
32814 }
32815
32816 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32817 return SWIG_Python_InitShadowInstance(args);
32818 }
32819
32820 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32821 PyObject *resultobj = 0;
32822 wxPenList *arg1 = (wxPenList *) 0 ;
32823 wxColour *arg2 = 0 ;
32824 int arg3 ;
32825 int arg4 ;
32826 wxPen *result = 0 ;
32827 void *argp1 = 0 ;
32828 int res1 = 0 ;
32829 wxColour temp2 ;
32830 int val3 ;
32831 int ecode3 = 0 ;
32832 int val4 ;
32833 int ecode4 = 0 ;
32834 PyObject * obj0 = 0 ;
32835 PyObject * obj1 = 0 ;
32836 PyObject * obj2 = 0 ;
32837 PyObject * obj3 = 0 ;
32838 char * kwnames[] = {
32839 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
32840 };
32841
32842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32844 if (!SWIG_IsOK(res1)) {
32845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32846 }
32847 arg1 = reinterpret_cast< wxPenList * >(argp1);
32848 {
32849 arg2 = &temp2;
32850 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32851 }
32852 ecode3 = SWIG_AsVal_int(obj2, &val3);
32853 if (!SWIG_IsOK(ecode3)) {
32854 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
32855 }
32856 arg3 = static_cast< int >(val3);
32857 ecode4 = SWIG_AsVal_int(obj3, &val4);
32858 if (!SWIG_IsOK(ecode4)) {
32859 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
32860 }
32861 arg4 = static_cast< int >(val4);
32862 {
32863 PyThreadState* __tstate = wxPyBeginAllowThreads();
32864 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
32865 wxPyEndAllowThreads(__tstate);
32866 if (PyErr_Occurred()) SWIG_fail;
32867 }
32868 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32869 return resultobj;
32870 fail:
32871 return NULL;
32872 }
32873
32874
32875 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32876 PyObject *resultobj = 0;
32877 wxPenList *arg1 = (wxPenList *) 0 ;
32878 wxPen *arg2 = (wxPen *) 0 ;
32879 void *argp1 = 0 ;
32880 int res1 = 0 ;
32881 void *argp2 = 0 ;
32882 int res2 = 0 ;
32883 PyObject * obj0 = 0 ;
32884 PyObject * obj1 = 0 ;
32885 char * kwnames[] = {
32886 (char *) "self",(char *) "pen", NULL
32887 };
32888
32889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
32890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32891 if (!SWIG_IsOK(res1)) {
32892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
32893 }
32894 arg1 = reinterpret_cast< wxPenList * >(argp1);
32895 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32896 if (!SWIG_IsOK(res2)) {
32897 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
32898 }
32899 arg2 = reinterpret_cast< wxPen * >(argp2);
32900 {
32901 PyThreadState* __tstate = wxPyBeginAllowThreads();
32902 (arg1)->AddPen(arg2);
32903 wxPyEndAllowThreads(__tstate);
32904 if (PyErr_Occurred()) SWIG_fail;
32905 }
32906 resultobj = SWIG_Py_Void();
32907 return resultobj;
32908 fail:
32909 return NULL;
32910 }
32911
32912
32913 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32914 PyObject *resultobj = 0;
32915 wxPenList *arg1 = (wxPenList *) 0 ;
32916 wxPen *arg2 = (wxPen *) 0 ;
32917 void *argp1 = 0 ;
32918 int res1 = 0 ;
32919 void *argp2 = 0 ;
32920 int res2 = 0 ;
32921 PyObject * obj0 = 0 ;
32922 PyObject * obj1 = 0 ;
32923 char * kwnames[] = {
32924 (char *) "self",(char *) "pen", NULL
32925 };
32926
32927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
32928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32929 if (!SWIG_IsOK(res1)) {
32930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32931 }
32932 arg1 = reinterpret_cast< wxPenList * >(argp1);
32933 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32934 if (!SWIG_IsOK(res2)) {
32935 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
32936 }
32937 arg2 = reinterpret_cast< wxPen * >(argp2);
32938 {
32939 PyThreadState* __tstate = wxPyBeginAllowThreads();
32940 (arg1)->RemovePen(arg2);
32941 wxPyEndAllowThreads(__tstate);
32942 if (PyErr_Occurred()) SWIG_fail;
32943 }
32944 resultobj = SWIG_Py_Void();
32945 return resultobj;
32946 fail:
32947 return NULL;
32948 }
32949
32950
32951 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32952 PyObject *obj;
32953 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32954 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32955 return SWIG_Py_Void();
32956 }
32957
32958 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32959 PyObject *resultobj = 0;
32960 wxBrushList *arg1 = (wxBrushList *) 0 ;
32961 wxColour *arg2 = 0 ;
32962 int arg3 = (int) wxSOLID ;
32963 wxBrush *result = 0 ;
32964 void *argp1 = 0 ;
32965 int res1 = 0 ;
32966 wxColour temp2 ;
32967 int val3 ;
32968 int ecode3 = 0 ;
32969 PyObject * obj0 = 0 ;
32970 PyObject * obj1 = 0 ;
32971 PyObject * obj2 = 0 ;
32972 char * kwnames[] = {
32973 (char *) "self",(char *) "colour",(char *) "style", NULL
32974 };
32975
32976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32978 if (!SWIG_IsOK(res1)) {
32979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32980 }
32981 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32982 {
32983 arg2 = &temp2;
32984 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32985 }
32986 if (obj2) {
32987 ecode3 = SWIG_AsVal_int(obj2, &val3);
32988 if (!SWIG_IsOK(ecode3)) {
32989 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32990 }
32991 arg3 = static_cast< int >(val3);
32992 }
32993 {
32994 PyThreadState* __tstate = wxPyBeginAllowThreads();
32995 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32996 wxPyEndAllowThreads(__tstate);
32997 if (PyErr_Occurred()) SWIG_fail;
32998 }
32999 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
33000 return resultobj;
33001 fail:
33002 return NULL;
33003 }
33004
33005
33006 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33007 PyObject *resultobj = 0;
33008 wxBrushList *arg1 = (wxBrushList *) 0 ;
33009 wxBrush *arg2 = (wxBrush *) 0 ;
33010 void *argp1 = 0 ;
33011 int res1 = 0 ;
33012 void *argp2 = 0 ;
33013 int res2 = 0 ;
33014 PyObject * obj0 = 0 ;
33015 PyObject * obj1 = 0 ;
33016 char * kwnames[] = {
33017 (char *) "self",(char *) "brush", NULL
33018 };
33019
33020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
33021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
33022 if (!SWIG_IsOK(res1)) {
33023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
33024 }
33025 arg1 = reinterpret_cast< wxBrushList * >(argp1);
33026 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
33027 if (!SWIG_IsOK(res2)) {
33028 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
33029 }
33030 arg2 = reinterpret_cast< wxBrush * >(argp2);
33031 {
33032 PyThreadState* __tstate = wxPyBeginAllowThreads();
33033 (arg1)->AddBrush(arg2);
33034 wxPyEndAllowThreads(__tstate);
33035 if (PyErr_Occurred()) SWIG_fail;
33036 }
33037 resultobj = SWIG_Py_Void();
33038 return resultobj;
33039 fail:
33040 return NULL;
33041 }
33042
33043
33044 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33045 PyObject *resultobj = 0;
33046 wxBrushList *arg1 = (wxBrushList *) 0 ;
33047 wxBrush *arg2 = (wxBrush *) 0 ;
33048 void *argp1 = 0 ;
33049 int res1 = 0 ;
33050 void *argp2 = 0 ;
33051 int res2 = 0 ;
33052 PyObject * obj0 = 0 ;
33053 PyObject * obj1 = 0 ;
33054 char * kwnames[] = {
33055 (char *) "self",(char *) "brush", NULL
33056 };
33057
33058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
33059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
33060 if (!SWIG_IsOK(res1)) {
33061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
33062 }
33063 arg1 = reinterpret_cast< wxBrushList * >(argp1);
33064 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
33065 if (!SWIG_IsOK(res2)) {
33066 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
33067 }
33068 arg2 = reinterpret_cast< wxBrush * >(argp2);
33069 {
33070 PyThreadState* __tstate = wxPyBeginAllowThreads();
33071 (arg1)->RemoveBrush(arg2);
33072 wxPyEndAllowThreads(__tstate);
33073 if (PyErr_Occurred()) SWIG_fail;
33074 }
33075 resultobj = SWIG_Py_Void();
33076 return resultobj;
33077 fail:
33078 return NULL;
33079 }
33080
33081
33082 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33083 PyObject *obj;
33084 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33085 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
33086 return SWIG_Py_Void();
33087 }
33088
33089 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33090 PyObject *resultobj = 0;
33091 wxFontList *arg1 = (wxFontList *) 0 ;
33092 int arg2 ;
33093 int arg3 ;
33094 int arg4 ;
33095 int arg5 ;
33096 bool arg6 = (bool) false ;
33097 wxString const &arg7_defvalue = wxPyEmptyString ;
33098 wxString *arg7 = (wxString *) &arg7_defvalue ;
33099 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
33100 wxFont *result = 0 ;
33101 void *argp1 = 0 ;
33102 int res1 = 0 ;
33103 int val2 ;
33104 int ecode2 = 0 ;
33105 int val3 ;
33106 int ecode3 = 0 ;
33107 int val4 ;
33108 int ecode4 = 0 ;
33109 int val5 ;
33110 int ecode5 = 0 ;
33111 bool val6 ;
33112 int ecode6 = 0 ;
33113 bool temp7 = false ;
33114 int val8 ;
33115 int ecode8 = 0 ;
33116 PyObject * obj0 = 0 ;
33117 PyObject * obj1 = 0 ;
33118 PyObject * obj2 = 0 ;
33119 PyObject * obj3 = 0 ;
33120 PyObject * obj4 = 0 ;
33121 PyObject * obj5 = 0 ;
33122 PyObject * obj6 = 0 ;
33123 PyObject * obj7 = 0 ;
33124 char * kwnames[] = {
33125 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
33126 };
33127
33128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
33130 if (!SWIG_IsOK(res1)) {
33131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
33132 }
33133 arg1 = reinterpret_cast< wxFontList * >(argp1);
33134 ecode2 = SWIG_AsVal_int(obj1, &val2);
33135 if (!SWIG_IsOK(ecode2)) {
33136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
33137 }
33138 arg2 = static_cast< int >(val2);
33139 ecode3 = SWIG_AsVal_int(obj2, &val3);
33140 if (!SWIG_IsOK(ecode3)) {
33141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
33142 }
33143 arg3 = static_cast< int >(val3);
33144 ecode4 = SWIG_AsVal_int(obj3, &val4);
33145 if (!SWIG_IsOK(ecode4)) {
33146 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
33147 }
33148 arg4 = static_cast< int >(val4);
33149 ecode5 = SWIG_AsVal_int(obj4, &val5);
33150 if (!SWIG_IsOK(ecode5)) {
33151 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
33152 }
33153 arg5 = static_cast< int >(val5);
33154 if (obj5) {
33155 ecode6 = SWIG_AsVal_bool(obj5, &val6);
33156 if (!SWIG_IsOK(ecode6)) {
33157 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
33158 }
33159 arg6 = static_cast< bool >(val6);
33160 }
33161 if (obj6) {
33162 {
33163 arg7 = wxString_in_helper(obj6);
33164 if (arg7 == NULL) SWIG_fail;
33165 temp7 = true;
33166 }
33167 }
33168 if (obj7) {
33169 ecode8 = SWIG_AsVal_int(obj7, &val8);
33170 if (!SWIG_IsOK(ecode8)) {
33171 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
33172 }
33173 arg8 = static_cast< wxFontEncoding >(val8);
33174 }
33175 {
33176 PyThreadState* __tstate = wxPyBeginAllowThreads();
33177 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
33178 wxPyEndAllowThreads(__tstate);
33179 if (PyErr_Occurred()) SWIG_fail;
33180 }
33181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33182 {
33183 if (temp7)
33184 delete arg7;
33185 }
33186 return resultobj;
33187 fail:
33188 {
33189 if (temp7)
33190 delete arg7;
33191 }
33192 return NULL;
33193 }
33194
33195
33196 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33197 PyObject *resultobj = 0;
33198 wxFontList *arg1 = (wxFontList *) 0 ;
33199 wxFont *arg2 = (wxFont *) 0 ;
33200 void *argp1 = 0 ;
33201 int res1 = 0 ;
33202 void *argp2 = 0 ;
33203 int res2 = 0 ;
33204 PyObject * obj0 = 0 ;
33205 PyObject * obj1 = 0 ;
33206 char * kwnames[] = {
33207 (char *) "self",(char *) "font", NULL
33208 };
33209
33210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
33211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
33212 if (!SWIG_IsOK(res1)) {
33213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
33214 }
33215 arg1 = reinterpret_cast< wxFontList * >(argp1);
33216 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33217 if (!SWIG_IsOK(res2)) {
33218 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
33219 }
33220 arg2 = reinterpret_cast< wxFont * >(argp2);
33221 {
33222 PyThreadState* __tstate = wxPyBeginAllowThreads();
33223 (arg1)->AddFont(arg2);
33224 wxPyEndAllowThreads(__tstate);
33225 if (PyErr_Occurred()) SWIG_fail;
33226 }
33227 resultobj = SWIG_Py_Void();
33228 return resultobj;
33229 fail:
33230 return NULL;
33231 }
33232
33233
33234 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33235 PyObject *resultobj = 0;
33236 wxFontList *arg1 = (wxFontList *) 0 ;
33237 wxFont *arg2 = (wxFont *) 0 ;
33238 void *argp1 = 0 ;
33239 int res1 = 0 ;
33240 void *argp2 = 0 ;
33241 int res2 = 0 ;
33242 PyObject * obj0 = 0 ;
33243 PyObject * obj1 = 0 ;
33244 char * kwnames[] = {
33245 (char *) "self",(char *) "font", NULL
33246 };
33247
33248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
33249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
33250 if (!SWIG_IsOK(res1)) {
33251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
33252 }
33253 arg1 = reinterpret_cast< wxFontList * >(argp1);
33254 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33255 if (!SWIG_IsOK(res2)) {
33256 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
33257 }
33258 arg2 = reinterpret_cast< wxFont * >(argp2);
33259 {
33260 PyThreadState* __tstate = wxPyBeginAllowThreads();
33261 (arg1)->RemoveFont(arg2);
33262 wxPyEndAllowThreads(__tstate);
33263 if (PyErr_Occurred()) SWIG_fail;
33264 }
33265 resultobj = SWIG_Py_Void();
33266 return resultobj;
33267 fail:
33268 return NULL;
33269 }
33270
33271
33272 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33273 PyObject *obj;
33274 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33275 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
33276 return SWIG_Py_Void();
33277 }
33278
33279 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33280 PyObject *resultobj = 0;
33281 wxColourDatabase *result = 0 ;
33282
33283 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
33284 {
33285 if (!wxPyCheckForApp()) SWIG_fail;
33286 PyThreadState* __tstate = wxPyBeginAllowThreads();
33287 result = (wxColourDatabase *)new wxColourDatabase();
33288 wxPyEndAllowThreads(__tstate);
33289 if (PyErr_Occurred()) SWIG_fail;
33290 }
33291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
33292 return resultobj;
33293 fail:
33294 return NULL;
33295 }
33296
33297
33298 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33299 PyObject *resultobj = 0;
33300 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33301 void *argp1 = 0 ;
33302 int res1 = 0 ;
33303 PyObject *swig_obj[1] ;
33304
33305 if (!args) SWIG_fail;
33306 swig_obj[0] = args;
33307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
33308 if (!SWIG_IsOK(res1)) {
33309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33310 }
33311 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33312 {
33313 PyThreadState* __tstate = wxPyBeginAllowThreads();
33314 delete arg1;
33315
33316 wxPyEndAllowThreads(__tstate);
33317 if (PyErr_Occurred()) SWIG_fail;
33318 }
33319 resultobj = SWIG_Py_Void();
33320 return resultobj;
33321 fail:
33322 return NULL;
33323 }
33324
33325
33326 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33327 PyObject *resultobj = 0;
33328 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33329 wxString *arg2 = 0 ;
33330 wxColour result;
33331 void *argp1 = 0 ;
33332 int res1 = 0 ;
33333 bool temp2 = false ;
33334 PyObject * obj0 = 0 ;
33335 PyObject * obj1 = 0 ;
33336 char * kwnames[] = {
33337 (char *) "self",(char *) "name", NULL
33338 };
33339
33340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
33341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33342 if (!SWIG_IsOK(res1)) {
33343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33344 }
33345 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33346 {
33347 arg2 = wxString_in_helper(obj1);
33348 if (arg2 == NULL) SWIG_fail;
33349 temp2 = true;
33350 }
33351 {
33352 PyThreadState* __tstate = wxPyBeginAllowThreads();
33353 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
33354 wxPyEndAllowThreads(__tstate);
33355 if (PyErr_Occurred()) SWIG_fail;
33356 }
33357 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33358 {
33359 if (temp2)
33360 delete arg2;
33361 }
33362 return resultobj;
33363 fail:
33364 {
33365 if (temp2)
33366 delete arg2;
33367 }
33368 return NULL;
33369 }
33370
33371
33372 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33373 PyObject *resultobj = 0;
33374 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33375 wxColour *arg2 = 0 ;
33376 wxString result;
33377 void *argp1 = 0 ;
33378 int res1 = 0 ;
33379 wxColour temp2 ;
33380 PyObject * obj0 = 0 ;
33381 PyObject * obj1 = 0 ;
33382 char * kwnames[] = {
33383 (char *) "self",(char *) "colour", NULL
33384 };
33385
33386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
33387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33388 if (!SWIG_IsOK(res1)) {
33389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33390 }
33391 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33392 {
33393 arg2 = &temp2;
33394 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33395 }
33396 {
33397 PyThreadState* __tstate = wxPyBeginAllowThreads();
33398 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
33399 wxPyEndAllowThreads(__tstate);
33400 if (PyErr_Occurred()) SWIG_fail;
33401 }
33402 {
33403 #if wxUSE_UNICODE
33404 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33405 #else
33406 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33407 #endif
33408 }
33409 return resultobj;
33410 fail:
33411 return NULL;
33412 }
33413
33414
33415 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33416 PyObject *resultobj = 0;
33417 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33418 wxString *arg2 = 0 ;
33419 wxColour *arg3 = 0 ;
33420 void *argp1 = 0 ;
33421 int res1 = 0 ;
33422 bool temp2 = false ;
33423 wxColour temp3 ;
33424 PyObject * obj0 = 0 ;
33425 PyObject * obj1 = 0 ;
33426 PyObject * obj2 = 0 ;
33427 char * kwnames[] = {
33428 (char *) "self",(char *) "name",(char *) "colour", NULL
33429 };
33430
33431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33433 if (!SWIG_IsOK(res1)) {
33434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33435 }
33436 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33437 {
33438 arg2 = wxString_in_helper(obj1);
33439 if (arg2 == NULL) SWIG_fail;
33440 temp2 = true;
33441 }
33442 {
33443 arg3 = &temp3;
33444 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33445 }
33446 {
33447 PyThreadState* __tstate = wxPyBeginAllowThreads();
33448 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
33449 wxPyEndAllowThreads(__tstate);
33450 if (PyErr_Occurred()) SWIG_fail;
33451 }
33452 resultobj = SWIG_Py_Void();
33453 {
33454 if (temp2)
33455 delete arg2;
33456 }
33457 return resultobj;
33458 fail:
33459 {
33460 if (temp2)
33461 delete arg2;
33462 }
33463 return NULL;
33464 }
33465
33466
33467 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33468 PyObject *resultobj = 0;
33469 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33470 wxString *arg2 = 0 ;
33471 int arg3 ;
33472 int arg4 ;
33473 int arg5 ;
33474 void *argp1 = 0 ;
33475 int res1 = 0 ;
33476 bool temp2 = false ;
33477 int val3 ;
33478 int ecode3 = 0 ;
33479 int val4 ;
33480 int ecode4 = 0 ;
33481 int val5 ;
33482 int ecode5 = 0 ;
33483 PyObject * obj0 = 0 ;
33484 PyObject * obj1 = 0 ;
33485 PyObject * obj2 = 0 ;
33486 PyObject * obj3 = 0 ;
33487 PyObject * obj4 = 0 ;
33488 char * kwnames[] = {
33489 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
33490 };
33491
33492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33494 if (!SWIG_IsOK(res1)) {
33495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33496 }
33497 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33498 {
33499 arg2 = wxString_in_helper(obj1);
33500 if (arg2 == NULL) SWIG_fail;
33501 temp2 = true;
33502 }
33503 ecode3 = SWIG_AsVal_int(obj2, &val3);
33504 if (!SWIG_IsOK(ecode3)) {
33505 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
33506 }
33507 arg3 = static_cast< int >(val3);
33508 ecode4 = SWIG_AsVal_int(obj3, &val4);
33509 if (!SWIG_IsOK(ecode4)) {
33510 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
33511 }
33512 arg4 = static_cast< int >(val4);
33513 ecode5 = SWIG_AsVal_int(obj4, &val5);
33514 if (!SWIG_IsOK(ecode5)) {
33515 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
33516 }
33517 arg5 = static_cast< int >(val5);
33518 {
33519 PyThreadState* __tstate = wxPyBeginAllowThreads();
33520 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
33521 wxPyEndAllowThreads(__tstate);
33522 if (PyErr_Occurred()) SWIG_fail;
33523 }
33524 resultobj = SWIG_Py_Void();
33525 {
33526 if (temp2)
33527 delete arg2;
33528 }
33529 return resultobj;
33530 fail:
33531 {
33532 if (temp2)
33533 delete arg2;
33534 }
33535 return NULL;
33536 }
33537
33538
33539 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33540 PyObject *obj;
33541 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33542 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
33543 return SWIG_Py_Void();
33544 }
33545
33546 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33547 return SWIG_Python_InitShadowInstance(args);
33548 }
33549
33550 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33551 PyObject *resultobj = 0;
33552 wxFontList *result = 0 ;
33553
33554 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
33555 {
33556 PyThreadState* __tstate = wxPyBeginAllowThreads();
33557 result = (wxFontList *)_wxPyInitTheFontList();
33558 wxPyEndAllowThreads(__tstate);
33559 if (PyErr_Occurred()) SWIG_fail;
33560 }
33561 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
33562 return resultobj;
33563 fail:
33564 return NULL;
33565 }
33566
33567
33568 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33569 PyObject *resultobj = 0;
33570 wxPenList *result = 0 ;
33571
33572 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
33573 {
33574 PyThreadState* __tstate = wxPyBeginAllowThreads();
33575 result = (wxPenList *)_wxPyInitThePenList();
33576 wxPyEndAllowThreads(__tstate);
33577 if (PyErr_Occurred()) SWIG_fail;
33578 }
33579 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
33580 return resultobj;
33581 fail:
33582 return NULL;
33583 }
33584
33585
33586 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33587 PyObject *resultobj = 0;
33588 wxBrushList *result = 0 ;
33589
33590 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
33591 {
33592 PyThreadState* __tstate = wxPyBeginAllowThreads();
33593 result = (wxBrushList *)_wxPyInitTheBrushList();
33594 wxPyEndAllowThreads(__tstate);
33595 if (PyErr_Occurred()) SWIG_fail;
33596 }
33597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
33598 return resultobj;
33599 fail:
33600 return NULL;
33601 }
33602
33603
33604 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33605 PyObject *resultobj = 0;
33606 wxColourDatabase *result = 0 ;
33607
33608 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
33609 {
33610 PyThreadState* __tstate = wxPyBeginAllowThreads();
33611 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
33612 wxPyEndAllowThreads(__tstate);
33613 if (PyErr_Occurred()) SWIG_fail;
33614 }
33615 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33616 return resultobj;
33617 fail:
33618 return NULL;
33619 }
33620
33621
33622 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33623 PyObject *resultobj = 0;
33624 wxEffects *result = 0 ;
33625
33626 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
33627 {
33628 PyThreadState* __tstate = wxPyBeginAllowThreads();
33629 result = (wxEffects *)new wxEffects();
33630 wxPyEndAllowThreads(__tstate);
33631 if (PyErr_Occurred()) SWIG_fail;
33632 }
33633 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
33634 return resultobj;
33635 fail:
33636 return NULL;
33637 }
33638
33639
33640 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33641 PyObject *resultobj = 0;
33642 wxEffects *arg1 = (wxEffects *) 0 ;
33643 wxColour result;
33644 void *argp1 = 0 ;
33645 int res1 = 0 ;
33646 PyObject *swig_obj[1] ;
33647
33648 if (!args) SWIG_fail;
33649 swig_obj[0] = args;
33650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33651 if (!SWIG_IsOK(res1)) {
33652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33653 }
33654 arg1 = reinterpret_cast< wxEffects * >(argp1);
33655 {
33656 PyThreadState* __tstate = wxPyBeginAllowThreads();
33657 result = ((wxEffects const *)arg1)->GetHighlightColour();
33658 wxPyEndAllowThreads(__tstate);
33659 if (PyErr_Occurred()) SWIG_fail;
33660 }
33661 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33662 return resultobj;
33663 fail:
33664 return NULL;
33665 }
33666
33667
33668 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33669 PyObject *resultobj = 0;
33670 wxEffects *arg1 = (wxEffects *) 0 ;
33671 wxColour result;
33672 void *argp1 = 0 ;
33673 int res1 = 0 ;
33674 PyObject *swig_obj[1] ;
33675
33676 if (!args) SWIG_fail;
33677 swig_obj[0] = args;
33678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33679 if (!SWIG_IsOK(res1)) {
33680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33681 }
33682 arg1 = reinterpret_cast< wxEffects * >(argp1);
33683 {
33684 PyThreadState* __tstate = wxPyBeginAllowThreads();
33685 result = ((wxEffects const *)arg1)->GetLightShadow();
33686 wxPyEndAllowThreads(__tstate);
33687 if (PyErr_Occurred()) SWIG_fail;
33688 }
33689 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33690 return resultobj;
33691 fail:
33692 return NULL;
33693 }
33694
33695
33696 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33697 PyObject *resultobj = 0;
33698 wxEffects *arg1 = (wxEffects *) 0 ;
33699 wxColour result;
33700 void *argp1 = 0 ;
33701 int res1 = 0 ;
33702 PyObject *swig_obj[1] ;
33703
33704 if (!args) SWIG_fail;
33705 swig_obj[0] = args;
33706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33707 if (!SWIG_IsOK(res1)) {
33708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33709 }
33710 arg1 = reinterpret_cast< wxEffects * >(argp1);
33711 {
33712 PyThreadState* __tstate = wxPyBeginAllowThreads();
33713 result = ((wxEffects const *)arg1)->GetFaceColour();
33714 wxPyEndAllowThreads(__tstate);
33715 if (PyErr_Occurred()) SWIG_fail;
33716 }
33717 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33718 return resultobj;
33719 fail:
33720 return NULL;
33721 }
33722
33723
33724 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33725 PyObject *resultobj = 0;
33726 wxEffects *arg1 = (wxEffects *) 0 ;
33727 wxColour result;
33728 void *argp1 = 0 ;
33729 int res1 = 0 ;
33730 PyObject *swig_obj[1] ;
33731
33732 if (!args) SWIG_fail;
33733 swig_obj[0] = args;
33734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33735 if (!SWIG_IsOK(res1)) {
33736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33737 }
33738 arg1 = reinterpret_cast< wxEffects * >(argp1);
33739 {
33740 PyThreadState* __tstate = wxPyBeginAllowThreads();
33741 result = ((wxEffects const *)arg1)->GetMediumShadow();
33742 wxPyEndAllowThreads(__tstate);
33743 if (PyErr_Occurred()) SWIG_fail;
33744 }
33745 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33746 return resultobj;
33747 fail:
33748 return NULL;
33749 }
33750
33751
33752 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33753 PyObject *resultobj = 0;
33754 wxEffects *arg1 = (wxEffects *) 0 ;
33755 wxColour result;
33756 void *argp1 = 0 ;
33757 int res1 = 0 ;
33758 PyObject *swig_obj[1] ;
33759
33760 if (!args) SWIG_fail;
33761 swig_obj[0] = args;
33762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33763 if (!SWIG_IsOK(res1)) {
33764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33765 }
33766 arg1 = reinterpret_cast< wxEffects * >(argp1);
33767 {
33768 PyThreadState* __tstate = wxPyBeginAllowThreads();
33769 result = ((wxEffects const *)arg1)->GetDarkShadow();
33770 wxPyEndAllowThreads(__tstate);
33771 if (PyErr_Occurred()) SWIG_fail;
33772 }
33773 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33774 return resultobj;
33775 fail:
33776 return NULL;
33777 }
33778
33779
33780 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33781 PyObject *resultobj = 0;
33782 wxEffects *arg1 = (wxEffects *) 0 ;
33783 wxColour *arg2 = 0 ;
33784 void *argp1 = 0 ;
33785 int res1 = 0 ;
33786 wxColour temp2 ;
33787 PyObject * obj0 = 0 ;
33788 PyObject * obj1 = 0 ;
33789 char * kwnames[] = {
33790 (char *) "self",(char *) "c", NULL
33791 };
33792
33793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
33794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33795 if (!SWIG_IsOK(res1)) {
33796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33797 }
33798 arg1 = reinterpret_cast< wxEffects * >(argp1);
33799 {
33800 arg2 = &temp2;
33801 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33802 }
33803 {
33804 PyThreadState* __tstate = wxPyBeginAllowThreads();
33805 (arg1)->SetHighlightColour((wxColour const &)*arg2);
33806 wxPyEndAllowThreads(__tstate);
33807 if (PyErr_Occurred()) SWIG_fail;
33808 }
33809 resultobj = SWIG_Py_Void();
33810 return resultobj;
33811 fail:
33812 return NULL;
33813 }
33814
33815
33816 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33817 PyObject *resultobj = 0;
33818 wxEffects *arg1 = (wxEffects *) 0 ;
33819 wxColour *arg2 = 0 ;
33820 void *argp1 = 0 ;
33821 int res1 = 0 ;
33822 wxColour temp2 ;
33823 PyObject * obj0 = 0 ;
33824 PyObject * obj1 = 0 ;
33825 char * kwnames[] = {
33826 (char *) "self",(char *) "c", NULL
33827 };
33828
33829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33831 if (!SWIG_IsOK(res1)) {
33832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33833 }
33834 arg1 = reinterpret_cast< wxEffects * >(argp1);
33835 {
33836 arg2 = &temp2;
33837 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33838 }
33839 {
33840 PyThreadState* __tstate = wxPyBeginAllowThreads();
33841 (arg1)->SetLightShadow((wxColour const &)*arg2);
33842 wxPyEndAllowThreads(__tstate);
33843 if (PyErr_Occurred()) SWIG_fail;
33844 }
33845 resultobj = SWIG_Py_Void();
33846 return resultobj;
33847 fail:
33848 return NULL;
33849 }
33850
33851
33852 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33853 PyObject *resultobj = 0;
33854 wxEffects *arg1 = (wxEffects *) 0 ;
33855 wxColour *arg2 = 0 ;
33856 void *argp1 = 0 ;
33857 int res1 = 0 ;
33858 wxColour temp2 ;
33859 PyObject * obj0 = 0 ;
33860 PyObject * obj1 = 0 ;
33861 char * kwnames[] = {
33862 (char *) "self",(char *) "c", NULL
33863 };
33864
33865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
33866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33867 if (!SWIG_IsOK(res1)) {
33868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33869 }
33870 arg1 = reinterpret_cast< wxEffects * >(argp1);
33871 {
33872 arg2 = &temp2;
33873 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33874 }
33875 {
33876 PyThreadState* __tstate = wxPyBeginAllowThreads();
33877 (arg1)->SetFaceColour((wxColour const &)*arg2);
33878 wxPyEndAllowThreads(__tstate);
33879 if (PyErr_Occurred()) SWIG_fail;
33880 }
33881 resultobj = SWIG_Py_Void();
33882 return resultobj;
33883 fail:
33884 return NULL;
33885 }
33886
33887
33888 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33889 PyObject *resultobj = 0;
33890 wxEffects *arg1 = (wxEffects *) 0 ;
33891 wxColour *arg2 = 0 ;
33892 void *argp1 = 0 ;
33893 int res1 = 0 ;
33894 wxColour temp2 ;
33895 PyObject * obj0 = 0 ;
33896 PyObject * obj1 = 0 ;
33897 char * kwnames[] = {
33898 (char *) "self",(char *) "c", NULL
33899 };
33900
33901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33903 if (!SWIG_IsOK(res1)) {
33904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33905 }
33906 arg1 = reinterpret_cast< wxEffects * >(argp1);
33907 {
33908 arg2 = &temp2;
33909 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33910 }
33911 {
33912 PyThreadState* __tstate = wxPyBeginAllowThreads();
33913 (arg1)->SetMediumShadow((wxColour const &)*arg2);
33914 wxPyEndAllowThreads(__tstate);
33915 if (PyErr_Occurred()) SWIG_fail;
33916 }
33917 resultobj = SWIG_Py_Void();
33918 return resultobj;
33919 fail:
33920 return NULL;
33921 }
33922
33923
33924 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33925 PyObject *resultobj = 0;
33926 wxEffects *arg1 = (wxEffects *) 0 ;
33927 wxColour *arg2 = 0 ;
33928 void *argp1 = 0 ;
33929 int res1 = 0 ;
33930 wxColour temp2 ;
33931 PyObject * obj0 = 0 ;
33932 PyObject * obj1 = 0 ;
33933 char * kwnames[] = {
33934 (char *) "self",(char *) "c", NULL
33935 };
33936
33937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33939 if (!SWIG_IsOK(res1)) {
33940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33941 }
33942 arg1 = reinterpret_cast< wxEffects * >(argp1);
33943 {
33944 arg2 = &temp2;
33945 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33946 }
33947 {
33948 PyThreadState* __tstate = wxPyBeginAllowThreads();
33949 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33950 wxPyEndAllowThreads(__tstate);
33951 if (PyErr_Occurred()) SWIG_fail;
33952 }
33953 resultobj = SWIG_Py_Void();
33954 return resultobj;
33955 fail:
33956 return NULL;
33957 }
33958
33959
33960 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33961 PyObject *resultobj = 0;
33962 wxEffects *arg1 = (wxEffects *) 0 ;
33963 wxColour *arg2 = 0 ;
33964 wxColour *arg3 = 0 ;
33965 wxColour *arg4 = 0 ;
33966 wxColour *arg5 = 0 ;
33967 wxColour *arg6 = 0 ;
33968 void *argp1 = 0 ;
33969 int res1 = 0 ;
33970 wxColour temp2 ;
33971 wxColour temp3 ;
33972 wxColour temp4 ;
33973 wxColour temp5 ;
33974 wxColour temp6 ;
33975 PyObject * obj0 = 0 ;
33976 PyObject * obj1 = 0 ;
33977 PyObject * obj2 = 0 ;
33978 PyObject * obj3 = 0 ;
33979 PyObject * obj4 = 0 ;
33980 PyObject * obj5 = 0 ;
33981 char * kwnames[] = {
33982 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33983 };
33984
33985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33987 if (!SWIG_IsOK(res1)) {
33988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33989 }
33990 arg1 = reinterpret_cast< wxEffects * >(argp1);
33991 {
33992 arg2 = &temp2;
33993 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33994 }
33995 {
33996 arg3 = &temp3;
33997 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33998 }
33999 {
34000 arg4 = &temp4;
34001 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
34002 }
34003 {
34004 arg5 = &temp5;
34005 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
34006 }
34007 {
34008 arg6 = &temp6;
34009 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
34010 }
34011 {
34012 PyThreadState* __tstate = wxPyBeginAllowThreads();
34013 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
34014 wxPyEndAllowThreads(__tstate);
34015 if (PyErr_Occurred()) SWIG_fail;
34016 }
34017 resultobj = SWIG_Py_Void();
34018 return resultobj;
34019 fail:
34020 return NULL;
34021 }
34022
34023
34024 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34025 PyObject *resultobj = 0;
34026 wxEffects *arg1 = (wxEffects *) 0 ;
34027 wxDC *arg2 = 0 ;
34028 wxRect *arg3 = 0 ;
34029 int arg4 = (int) 1 ;
34030 void *argp1 = 0 ;
34031 int res1 = 0 ;
34032 void *argp2 = 0 ;
34033 int res2 = 0 ;
34034 wxRect temp3 ;
34035 int val4 ;
34036 int ecode4 = 0 ;
34037 PyObject * obj0 = 0 ;
34038 PyObject * obj1 = 0 ;
34039 PyObject * obj2 = 0 ;
34040 PyObject * obj3 = 0 ;
34041 char * kwnames[] = {
34042 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
34043 };
34044
34045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34047 if (!SWIG_IsOK(res1)) {
34048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
34049 }
34050 arg1 = reinterpret_cast< wxEffects * >(argp1);
34051 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
34052 if (!SWIG_IsOK(res2)) {
34053 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
34054 }
34055 if (!argp2) {
34056 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
34057 }
34058 arg2 = reinterpret_cast< wxDC * >(argp2);
34059 {
34060 arg3 = &temp3;
34061 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
34062 }
34063 if (obj3) {
34064 ecode4 = SWIG_AsVal_int(obj3, &val4);
34065 if (!SWIG_IsOK(ecode4)) {
34066 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
34067 }
34068 arg4 = static_cast< int >(val4);
34069 }
34070 {
34071 PyThreadState* __tstate = wxPyBeginAllowThreads();
34072 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
34073 wxPyEndAllowThreads(__tstate);
34074 if (PyErr_Occurred()) SWIG_fail;
34075 }
34076 resultobj = SWIG_Py_Void();
34077 return resultobj;
34078 fail:
34079 return NULL;
34080 }
34081
34082
34083 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34084 PyObject *resultobj = 0;
34085 wxEffects *arg1 = (wxEffects *) 0 ;
34086 wxRect *arg2 = 0 ;
34087 wxDC *arg3 = 0 ;
34088 wxBitmap *arg4 = 0 ;
34089 bool result;
34090 void *argp1 = 0 ;
34091 int res1 = 0 ;
34092 wxRect temp2 ;
34093 void *argp3 = 0 ;
34094 int res3 = 0 ;
34095 void *argp4 = 0 ;
34096 int res4 = 0 ;
34097 PyObject * obj0 = 0 ;
34098 PyObject * obj1 = 0 ;
34099 PyObject * obj2 = 0 ;
34100 PyObject * obj3 = 0 ;
34101 char * kwnames[] = {
34102 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
34103 };
34104
34105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34107 if (!SWIG_IsOK(res1)) {
34108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
34109 }
34110 arg1 = reinterpret_cast< wxEffects * >(argp1);
34111 {
34112 arg2 = &temp2;
34113 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
34114 }
34115 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34116 if (!SWIG_IsOK(res3)) {
34117 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
34118 }
34119 if (!argp3) {
34120 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
34121 }
34122 arg3 = reinterpret_cast< wxDC * >(argp3);
34123 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
34124 if (!SWIG_IsOK(res4)) {
34125 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
34126 }
34127 if (!argp4) {
34128 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
34129 }
34130 arg4 = reinterpret_cast< wxBitmap * >(argp4);
34131 {
34132 PyThreadState* __tstate = wxPyBeginAllowThreads();
34133 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
34134 wxPyEndAllowThreads(__tstate);
34135 if (PyErr_Occurred()) SWIG_fail;
34136 }
34137 {
34138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34139 }
34140 return resultobj;
34141 fail:
34142 return NULL;
34143 }
34144
34145
34146 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34147 PyObject *obj;
34148 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34149 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
34150 return SWIG_Py_Void();
34151 }
34152
34153 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34154 return SWIG_Python_InitShadowInstance(args);
34155 }
34156
34157 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34158 PyObject *resultobj = 0;
34159 int arg1 ;
34160 int arg2 ;
34161 bool arg3 ;
34162 wxSplitterRenderParams *result = 0 ;
34163 int val1 ;
34164 int ecode1 = 0 ;
34165 int val2 ;
34166 int ecode2 = 0 ;
34167 bool val3 ;
34168 int ecode3 = 0 ;
34169 PyObject * obj0 = 0 ;
34170 PyObject * obj1 = 0 ;
34171 PyObject * obj2 = 0 ;
34172 char * kwnames[] = {
34173 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
34174 };
34175
34176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34177 ecode1 = SWIG_AsVal_int(obj0, &val1);
34178 if (!SWIG_IsOK(ecode1)) {
34179 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
34180 }
34181 arg1 = static_cast< int >(val1);
34182 ecode2 = SWIG_AsVal_int(obj1, &val2);
34183 if (!SWIG_IsOK(ecode2)) {
34184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
34185 }
34186 arg2 = static_cast< int >(val2);
34187 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34188 if (!SWIG_IsOK(ecode3)) {
34189 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
34190 }
34191 arg3 = static_cast< bool >(val3);
34192 {
34193 PyThreadState* __tstate = wxPyBeginAllowThreads();
34194 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
34195 wxPyEndAllowThreads(__tstate);
34196 if (PyErr_Occurred()) SWIG_fail;
34197 }
34198 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
34199 return resultobj;
34200 fail:
34201 return NULL;
34202 }
34203
34204
34205 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34206 PyObject *resultobj = 0;
34207 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34208 void *argp1 = 0 ;
34209 int res1 = 0 ;
34210 PyObject *swig_obj[1] ;
34211
34212 if (!args) SWIG_fail;
34213 swig_obj[0] = args;
34214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
34215 if (!SWIG_IsOK(res1)) {
34216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34217 }
34218 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34219 {
34220 PyThreadState* __tstate = wxPyBeginAllowThreads();
34221 delete arg1;
34222
34223 wxPyEndAllowThreads(__tstate);
34224 if (PyErr_Occurred()) SWIG_fail;
34225 }
34226 resultobj = SWIG_Py_Void();
34227 return resultobj;
34228 fail:
34229 return NULL;
34230 }
34231
34232
34233 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34234 PyObject *resultobj = 0;
34235 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34236 int result;
34237 void *argp1 = 0 ;
34238 int res1 = 0 ;
34239 PyObject *swig_obj[1] ;
34240
34241 if (!args) SWIG_fail;
34242 swig_obj[0] = args;
34243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34244 if (!SWIG_IsOK(res1)) {
34245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34246 }
34247 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34248 result = (int)(int) ((arg1)->widthSash);
34249 resultobj = SWIG_From_int(static_cast< int >(result));
34250 return resultobj;
34251 fail:
34252 return NULL;
34253 }
34254
34255
34256 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34257 PyObject *resultobj = 0;
34258 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34259 int result;
34260 void *argp1 = 0 ;
34261 int res1 = 0 ;
34262 PyObject *swig_obj[1] ;
34263
34264 if (!args) SWIG_fail;
34265 swig_obj[0] = args;
34266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34267 if (!SWIG_IsOK(res1)) {
34268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34269 }
34270 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34271 result = (int)(int) ((arg1)->border);
34272 resultobj = SWIG_From_int(static_cast< int >(result));
34273 return resultobj;
34274 fail:
34275 return NULL;
34276 }
34277
34278
34279 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34280 PyObject *resultobj = 0;
34281 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34282 bool result;
34283 void *argp1 = 0 ;
34284 int res1 = 0 ;
34285 PyObject *swig_obj[1] ;
34286
34287 if (!args) SWIG_fail;
34288 swig_obj[0] = args;
34289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34290 if (!SWIG_IsOK(res1)) {
34291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34292 }
34293 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34294 result = (bool)(bool) ((arg1)->isHotSensitive);
34295 resultobj = SWIG_From_bool(static_cast< bool >(result));
34296 return resultobj;
34297 fail:
34298 return NULL;
34299 }
34300
34301
34302 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34303 PyObject *obj;
34304 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34305 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
34306 return SWIG_Py_Void();
34307 }
34308
34309 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34310 return SWIG_Python_InitShadowInstance(args);
34311 }
34312
34313 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34314 PyObject *resultobj = 0;
34315 wxHeaderButtonParams *result = 0 ;
34316
34317 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
34318 {
34319 PyThreadState* __tstate = wxPyBeginAllowThreads();
34320 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
34321 wxPyEndAllowThreads(__tstate);
34322 if (PyErr_Occurred()) SWIG_fail;
34323 }
34324 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
34325 return resultobj;
34326 fail:
34327 return NULL;
34328 }
34329
34330
34331 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34332 PyObject *resultobj = 0;
34333 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34334 void *argp1 = 0 ;
34335 int res1 = 0 ;
34336 PyObject *swig_obj[1] ;
34337
34338 if (!args) SWIG_fail;
34339 swig_obj[0] = args;
34340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
34341 if (!SWIG_IsOK(res1)) {
34342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34343 }
34344 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34345 {
34346 PyThreadState* __tstate = wxPyBeginAllowThreads();
34347 delete arg1;
34348
34349 wxPyEndAllowThreads(__tstate);
34350 if (PyErr_Occurred()) SWIG_fail;
34351 }
34352 resultobj = SWIG_Py_Void();
34353 return resultobj;
34354 fail:
34355 return NULL;
34356 }
34357
34358
34359 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34360 PyObject *resultobj = 0;
34361 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34362 wxColour *arg2 = (wxColour *) 0 ;
34363 void *argp1 = 0 ;
34364 int res1 = 0 ;
34365 wxColour temp2 ;
34366 PyObject *swig_obj[2] ;
34367
34368 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
34369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34370 if (!SWIG_IsOK(res1)) {
34371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34372 }
34373 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34374 {
34375 arg2 = &temp2;
34376 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34377 }
34378 if (arg1) (arg1)->m_arrowColour = *arg2;
34379
34380 resultobj = SWIG_Py_Void();
34381 return resultobj;
34382 fail:
34383 return NULL;
34384 }
34385
34386
34387 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34388 PyObject *resultobj = 0;
34389 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34390 wxColour *result = 0 ;
34391 void *argp1 = 0 ;
34392 int res1 = 0 ;
34393 PyObject *swig_obj[1] ;
34394
34395 if (!args) SWIG_fail;
34396 swig_obj[0] = args;
34397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34398 if (!SWIG_IsOK(res1)) {
34399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34400 }
34401 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34402 result = (wxColour *)& ((arg1)->m_arrowColour);
34403 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34404 return resultobj;
34405 fail:
34406 return NULL;
34407 }
34408
34409
34410 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34411 PyObject *resultobj = 0;
34412 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34413 wxColour *arg2 = (wxColour *) 0 ;
34414 void *argp1 = 0 ;
34415 int res1 = 0 ;
34416 wxColour temp2 ;
34417 PyObject *swig_obj[2] ;
34418
34419 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
34420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34421 if (!SWIG_IsOK(res1)) {
34422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34423 }
34424 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34425 {
34426 arg2 = &temp2;
34427 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34428 }
34429 if (arg1) (arg1)->m_selectionColour = *arg2;
34430
34431 resultobj = SWIG_Py_Void();
34432 return resultobj;
34433 fail:
34434 return NULL;
34435 }
34436
34437
34438 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34439 PyObject *resultobj = 0;
34440 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34441 wxColour *result = 0 ;
34442 void *argp1 = 0 ;
34443 int res1 = 0 ;
34444 PyObject *swig_obj[1] ;
34445
34446 if (!args) SWIG_fail;
34447 swig_obj[0] = args;
34448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34449 if (!SWIG_IsOK(res1)) {
34450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34451 }
34452 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34453 result = (wxColour *)& ((arg1)->m_selectionColour);
34454 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34455 return resultobj;
34456 fail:
34457 return NULL;
34458 }
34459
34460
34461 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34462 PyObject *resultobj = 0;
34463 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34464 wxString *arg2 = (wxString *) 0 ;
34465 void *argp1 = 0 ;
34466 int res1 = 0 ;
34467 bool temp2 = false ;
34468 PyObject *swig_obj[2] ;
34469
34470 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
34471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34472 if (!SWIG_IsOK(res1)) {
34473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34474 }
34475 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34476 {
34477 arg2 = wxString_in_helper(swig_obj[1]);
34478 if (arg2 == NULL) SWIG_fail;
34479 temp2 = true;
34480 }
34481 if (arg1) (arg1)->m_labelText = *arg2;
34482
34483 resultobj = SWIG_Py_Void();
34484 {
34485 if (temp2)
34486 delete arg2;
34487 }
34488 return resultobj;
34489 fail:
34490 {
34491 if (temp2)
34492 delete arg2;
34493 }
34494 return NULL;
34495 }
34496
34497
34498 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34499 PyObject *resultobj = 0;
34500 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34501 wxString *result = 0 ;
34502 void *argp1 = 0 ;
34503 int res1 = 0 ;
34504 PyObject *swig_obj[1] ;
34505
34506 if (!args) SWIG_fail;
34507 swig_obj[0] = args;
34508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34509 if (!SWIG_IsOK(res1)) {
34510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34511 }
34512 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34513 result = (wxString *)& ((arg1)->m_labelText);
34514 {
34515 #if wxUSE_UNICODE
34516 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
34517 #else
34518 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
34519 #endif
34520 }
34521 return resultobj;
34522 fail:
34523 return NULL;
34524 }
34525
34526
34527 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34528 PyObject *resultobj = 0;
34529 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34530 wxFont *arg2 = (wxFont *) 0 ;
34531 void *argp1 = 0 ;
34532 int res1 = 0 ;
34533 void *argp2 = 0 ;
34534 int res2 = 0 ;
34535 PyObject *swig_obj[2] ;
34536
34537 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
34538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34539 if (!SWIG_IsOK(res1)) {
34540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34541 }
34542 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34543 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
34544 if (!SWIG_IsOK(res2)) {
34545 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
34546 }
34547 arg2 = reinterpret_cast< wxFont * >(argp2);
34548 if (arg1) (arg1)->m_labelFont = *arg2;
34549
34550 resultobj = SWIG_Py_Void();
34551 return resultobj;
34552 fail:
34553 return NULL;
34554 }
34555
34556
34557 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34558 PyObject *resultobj = 0;
34559 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34560 wxFont *result = 0 ;
34561 void *argp1 = 0 ;
34562 int res1 = 0 ;
34563 PyObject *swig_obj[1] ;
34564
34565 if (!args) SWIG_fail;
34566 swig_obj[0] = args;
34567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34568 if (!SWIG_IsOK(res1)) {
34569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34570 }
34571 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34572 result = (wxFont *)& ((arg1)->m_labelFont);
34573 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
34574 return resultobj;
34575 fail:
34576 return NULL;
34577 }
34578
34579
34580 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34581 PyObject *resultobj = 0;
34582 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34583 wxColour *arg2 = (wxColour *) 0 ;
34584 void *argp1 = 0 ;
34585 int res1 = 0 ;
34586 wxColour temp2 ;
34587 PyObject *swig_obj[2] ;
34588
34589 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
34590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34591 if (!SWIG_IsOK(res1)) {
34592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34593 }
34594 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34595 {
34596 arg2 = &temp2;
34597 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34598 }
34599 if (arg1) (arg1)->m_labelColour = *arg2;
34600
34601 resultobj = SWIG_Py_Void();
34602 return resultobj;
34603 fail:
34604 return NULL;
34605 }
34606
34607
34608 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34609 PyObject *resultobj = 0;
34610 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34611 wxColour *result = 0 ;
34612 void *argp1 = 0 ;
34613 int res1 = 0 ;
34614 PyObject *swig_obj[1] ;
34615
34616 if (!args) SWIG_fail;
34617 swig_obj[0] = args;
34618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34619 if (!SWIG_IsOK(res1)) {
34620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34621 }
34622 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34623 result = (wxColour *)& ((arg1)->m_labelColour);
34624 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34625 return resultobj;
34626 fail:
34627 return NULL;
34628 }
34629
34630
34631 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34632 PyObject *resultobj = 0;
34633 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34634 wxBitmap *arg2 = (wxBitmap *) 0 ;
34635 void *argp1 = 0 ;
34636 int res1 = 0 ;
34637 void *argp2 = 0 ;
34638 int res2 = 0 ;
34639 PyObject *swig_obj[2] ;
34640
34641 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
34642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34643 if (!SWIG_IsOK(res1)) {
34644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34645 }
34646 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34647 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
34648 if (!SWIG_IsOK(res2)) {
34649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
34650 }
34651 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34652 if (arg1) (arg1)->m_labelBitmap = *arg2;
34653
34654 resultobj = SWIG_Py_Void();
34655 return resultobj;
34656 fail:
34657 return NULL;
34658 }
34659
34660
34661 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34662 PyObject *resultobj = 0;
34663 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34664 wxBitmap *result = 0 ;
34665 void *argp1 = 0 ;
34666 int res1 = 0 ;
34667 PyObject *swig_obj[1] ;
34668
34669 if (!args) SWIG_fail;
34670 swig_obj[0] = args;
34671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34672 if (!SWIG_IsOK(res1)) {
34673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34674 }
34675 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34676 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
34677 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
34678 return resultobj;
34679 fail:
34680 return NULL;
34681 }
34682
34683
34684 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34685 PyObject *resultobj = 0;
34686 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34687 int arg2 ;
34688 void *argp1 = 0 ;
34689 int res1 = 0 ;
34690 int val2 ;
34691 int ecode2 = 0 ;
34692 PyObject *swig_obj[2] ;
34693
34694 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
34695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34696 if (!SWIG_IsOK(res1)) {
34697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34698 }
34699 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34700 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
34701 if (!SWIG_IsOK(ecode2)) {
34702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
34703 }
34704 arg2 = static_cast< int >(val2);
34705 if (arg1) (arg1)->m_labelAlignment = arg2;
34706
34707 resultobj = SWIG_Py_Void();
34708 return resultobj;
34709 fail:
34710 return NULL;
34711 }
34712
34713
34714 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34715 PyObject *resultobj = 0;
34716 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34717 int result;
34718 void *argp1 = 0 ;
34719 int res1 = 0 ;
34720 PyObject *swig_obj[1] ;
34721
34722 if (!args) SWIG_fail;
34723 swig_obj[0] = args;
34724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34725 if (!SWIG_IsOK(res1)) {
34726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34727 }
34728 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34729 result = (int) ((arg1)->m_labelAlignment);
34730 resultobj = SWIG_From_int(static_cast< int >(result));
34731 return resultobj;
34732 fail:
34733 return NULL;
34734 }
34735
34736
34737 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34738 PyObject *obj;
34739 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34740 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
34741 return SWIG_Py_Void();
34742 }
34743
34744 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34745 return SWIG_Python_InitShadowInstance(args);
34746 }
34747
34748 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34749 PyObject *resultobj = 0;
34750 int arg1 ;
34751 int arg2 ;
34752 wxRendererVersion *result = 0 ;
34753 int val1 ;
34754 int ecode1 = 0 ;
34755 int val2 ;
34756 int ecode2 = 0 ;
34757 PyObject * obj0 = 0 ;
34758 PyObject * obj1 = 0 ;
34759 char * kwnames[] = {
34760 (char *) "version_",(char *) "age_", NULL
34761 };
34762
34763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
34764 ecode1 = SWIG_AsVal_int(obj0, &val1);
34765 if (!SWIG_IsOK(ecode1)) {
34766 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
34767 }
34768 arg1 = static_cast< int >(val1);
34769 ecode2 = SWIG_AsVal_int(obj1, &val2);
34770 if (!SWIG_IsOK(ecode2)) {
34771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
34772 }
34773 arg2 = static_cast< int >(val2);
34774 {
34775 PyThreadState* __tstate = wxPyBeginAllowThreads();
34776 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
34777 wxPyEndAllowThreads(__tstate);
34778 if (PyErr_Occurred()) SWIG_fail;
34779 }
34780 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
34781 return resultobj;
34782 fail:
34783 return NULL;
34784 }
34785
34786
34787 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34788 PyObject *resultobj = 0;
34789 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34790 void *argp1 = 0 ;
34791 int res1 = 0 ;
34792 PyObject *swig_obj[1] ;
34793
34794 if (!args) SWIG_fail;
34795 swig_obj[0] = args;
34796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
34797 if (!SWIG_IsOK(res1)) {
34798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34799 }
34800 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34801 {
34802 PyThreadState* __tstate = wxPyBeginAllowThreads();
34803 delete arg1;
34804
34805 wxPyEndAllowThreads(__tstate);
34806 if (PyErr_Occurred()) SWIG_fail;
34807 }
34808 resultobj = SWIG_Py_Void();
34809 return resultobj;
34810 fail:
34811 return NULL;
34812 }
34813
34814
34815 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34816 PyObject *resultobj = 0;
34817 wxRendererVersion *arg1 = 0 ;
34818 bool result;
34819 void *argp1 = 0 ;
34820 int res1 = 0 ;
34821 PyObject * obj0 = 0 ;
34822 char * kwnames[] = {
34823 (char *) "ver", NULL
34824 };
34825
34826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
34827 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
34828 if (!SWIG_IsOK(res1)) {
34829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34830 }
34831 if (!argp1) {
34832 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34833 }
34834 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34835 {
34836 PyThreadState* __tstate = wxPyBeginAllowThreads();
34837 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
34838 wxPyEndAllowThreads(__tstate);
34839 if (PyErr_Occurred()) SWIG_fail;
34840 }
34841 {
34842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34843 }
34844 return resultobj;
34845 fail:
34846 return NULL;
34847 }
34848
34849
34850 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34851 PyObject *resultobj = 0;
34852 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34853 int result;
34854 void *argp1 = 0 ;
34855 int res1 = 0 ;
34856 PyObject *swig_obj[1] ;
34857
34858 if (!args) SWIG_fail;
34859 swig_obj[0] = args;
34860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34861 if (!SWIG_IsOK(res1)) {
34862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34863 }
34864 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34865 result = (int)(int) ((arg1)->version);
34866 resultobj = SWIG_From_int(static_cast< int >(result));
34867 return resultobj;
34868 fail:
34869 return NULL;
34870 }
34871
34872
34873 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34874 PyObject *resultobj = 0;
34875 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34876 int result;
34877 void *argp1 = 0 ;
34878 int res1 = 0 ;
34879 PyObject *swig_obj[1] ;
34880
34881 if (!args) SWIG_fail;
34882 swig_obj[0] = args;
34883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34884 if (!SWIG_IsOK(res1)) {
34885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34886 }
34887 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34888 result = (int)(int) ((arg1)->age);
34889 resultobj = SWIG_From_int(static_cast< int >(result));
34890 return resultobj;
34891 fail:
34892 return NULL;
34893 }
34894
34895
34896 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34897 PyObject *obj;
34898 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34899 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
34900 return SWIG_Py_Void();
34901 }
34902
34903 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34904 return SWIG_Python_InitShadowInstance(args);
34905 }
34906
34907 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34908 PyObject *resultobj = 0;
34909 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34910 wxWindow *arg2 = (wxWindow *) 0 ;
34911 wxDC *arg3 = 0 ;
34912 wxRect *arg4 = 0 ;
34913 int arg5 = (int) 0 ;
34914 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34915 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34916 void *argp1 = 0 ;
34917 int res1 = 0 ;
34918 void *argp2 = 0 ;
34919 int res2 = 0 ;
34920 void *argp3 = 0 ;
34921 int res3 = 0 ;
34922 wxRect temp4 ;
34923 int val5 ;
34924 int ecode5 = 0 ;
34925 int val6 ;
34926 int ecode6 = 0 ;
34927 void *argp7 = 0 ;
34928 int res7 = 0 ;
34929 PyObject * obj0 = 0 ;
34930 PyObject * obj1 = 0 ;
34931 PyObject * obj2 = 0 ;
34932 PyObject * obj3 = 0 ;
34933 PyObject * obj4 = 0 ;
34934 PyObject * obj5 = 0 ;
34935 PyObject * obj6 = 0 ;
34936 char * kwnames[] = {
34937 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34938 };
34939
34940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34942 if (!SWIG_IsOK(res1)) {
34943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34944 }
34945 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34946 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34947 if (!SWIG_IsOK(res2)) {
34948 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34949 }
34950 arg2 = reinterpret_cast< wxWindow * >(argp2);
34951 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34952 if (!SWIG_IsOK(res3)) {
34953 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34954 }
34955 if (!argp3) {
34956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34957 }
34958 arg3 = reinterpret_cast< wxDC * >(argp3);
34959 {
34960 arg4 = &temp4;
34961 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34962 }
34963 if (obj4) {
34964 ecode5 = SWIG_AsVal_int(obj4, &val5);
34965 if (!SWIG_IsOK(ecode5)) {
34966 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34967 }
34968 arg5 = static_cast< int >(val5);
34969 }
34970 if (obj5) {
34971 ecode6 = SWIG_AsVal_int(obj5, &val6);
34972 if (!SWIG_IsOK(ecode6)) {
34973 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34974 }
34975 arg6 = static_cast< wxHeaderSortIconType >(val6);
34976 }
34977 if (obj6) {
34978 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34979 if (!SWIG_IsOK(res7)) {
34980 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34981 }
34982 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34983 }
34984 {
34985 PyThreadState* __tstate = wxPyBeginAllowThreads();
34986 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34987 wxPyEndAllowThreads(__tstate);
34988 if (PyErr_Occurred()) SWIG_fail;
34989 }
34990 resultobj = SWIG_Py_Void();
34991 return resultobj;
34992 fail:
34993 return NULL;
34994 }
34995
34996
34997 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34998 PyObject *resultobj = 0;
34999 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35000 wxWindow *arg2 = (wxWindow *) 0 ;
35001 wxDC *arg3 = 0 ;
35002 wxRect *arg4 = 0 ;
35003 int arg5 = (int) 0 ;
35004 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
35005 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
35006 void *argp1 = 0 ;
35007 int res1 = 0 ;
35008 void *argp2 = 0 ;
35009 int res2 = 0 ;
35010 void *argp3 = 0 ;
35011 int res3 = 0 ;
35012 wxRect temp4 ;
35013 int val5 ;
35014 int ecode5 = 0 ;
35015 int val6 ;
35016 int ecode6 = 0 ;
35017 void *argp7 = 0 ;
35018 int res7 = 0 ;
35019 PyObject * obj0 = 0 ;
35020 PyObject * obj1 = 0 ;
35021 PyObject * obj2 = 0 ;
35022 PyObject * obj3 = 0 ;
35023 PyObject * obj4 = 0 ;
35024 PyObject * obj5 = 0 ;
35025 PyObject * obj6 = 0 ;
35026 char * kwnames[] = {
35027 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
35028 };
35029
35030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35032 if (!SWIG_IsOK(res1)) {
35033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35034 }
35035 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35036 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35037 if (!SWIG_IsOK(res2)) {
35038 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
35039 }
35040 arg2 = reinterpret_cast< wxWindow * >(argp2);
35041 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35042 if (!SWIG_IsOK(res3)) {
35043 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
35044 }
35045 if (!argp3) {
35046 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
35047 }
35048 arg3 = reinterpret_cast< wxDC * >(argp3);
35049 {
35050 arg4 = &temp4;
35051 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35052 }
35053 if (obj4) {
35054 ecode5 = SWIG_AsVal_int(obj4, &val5);
35055 if (!SWIG_IsOK(ecode5)) {
35056 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
35057 }
35058 arg5 = static_cast< int >(val5);
35059 }
35060 if (obj5) {
35061 ecode6 = SWIG_AsVal_int(obj5, &val6);
35062 if (!SWIG_IsOK(ecode6)) {
35063 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
35064 }
35065 arg6 = static_cast< wxHeaderSortIconType >(val6);
35066 }
35067 if (obj6) {
35068 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
35069 if (!SWIG_IsOK(res7)) {
35070 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
35071 }
35072 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
35073 }
35074 {
35075 PyThreadState* __tstate = wxPyBeginAllowThreads();
35076 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
35077 wxPyEndAllowThreads(__tstate);
35078 if (PyErr_Occurred()) SWIG_fail;
35079 }
35080 resultobj = SWIG_Py_Void();
35081 return resultobj;
35082 fail:
35083 return NULL;
35084 }
35085
35086
35087 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35088 PyObject *resultobj = 0;
35089 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35090 wxWindow *arg2 = (wxWindow *) 0 ;
35091 int result;
35092 void *argp1 = 0 ;
35093 int res1 = 0 ;
35094 void *argp2 = 0 ;
35095 int res2 = 0 ;
35096 PyObject * obj0 = 0 ;
35097 PyObject * obj1 = 0 ;
35098 char * kwnames[] = {
35099 (char *) "self",(char *) "win", NULL
35100 };
35101
35102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
35103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35104 if (!SWIG_IsOK(res1)) {
35105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35106 }
35107 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35108 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35109 if (!SWIG_IsOK(res2)) {
35110 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
35111 }
35112 arg2 = reinterpret_cast< wxWindow * >(argp2);
35113 {
35114 PyThreadState* __tstate = wxPyBeginAllowThreads();
35115 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
35116 wxPyEndAllowThreads(__tstate);
35117 if (PyErr_Occurred()) SWIG_fail;
35118 }
35119 resultobj = SWIG_From_int(static_cast< int >(result));
35120 return resultobj;
35121 fail:
35122 return NULL;
35123 }
35124
35125
35126 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35127 PyObject *resultobj = 0;
35128 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35129 wxWindow *arg2 = (wxWindow *) 0 ;
35130 wxDC *arg3 = 0 ;
35131 wxRect *arg4 = 0 ;
35132 int arg5 = (int) 0 ;
35133 void *argp1 = 0 ;
35134 int res1 = 0 ;
35135 void *argp2 = 0 ;
35136 int res2 = 0 ;
35137 void *argp3 = 0 ;
35138 int res3 = 0 ;
35139 wxRect temp4 ;
35140 int val5 ;
35141 int ecode5 = 0 ;
35142 PyObject * obj0 = 0 ;
35143 PyObject * obj1 = 0 ;
35144 PyObject * obj2 = 0 ;
35145 PyObject * obj3 = 0 ;
35146 PyObject * obj4 = 0 ;
35147 char * kwnames[] = {
35148 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35149 };
35150
35151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35153 if (!SWIG_IsOK(res1)) {
35154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35155 }
35156 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35157 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35158 if (!SWIG_IsOK(res2)) {
35159 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35160 }
35161 arg2 = reinterpret_cast< wxWindow * >(argp2);
35162 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35163 if (!SWIG_IsOK(res3)) {
35164 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
35165 }
35166 if (!argp3) {
35167 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
35168 }
35169 arg3 = reinterpret_cast< wxDC * >(argp3);
35170 {
35171 arg4 = &temp4;
35172 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35173 }
35174 if (obj4) {
35175 ecode5 = SWIG_AsVal_int(obj4, &val5);
35176 if (!SWIG_IsOK(ecode5)) {
35177 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
35178 }
35179 arg5 = static_cast< int >(val5);
35180 }
35181 {
35182 PyThreadState* __tstate = wxPyBeginAllowThreads();
35183 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35184 wxPyEndAllowThreads(__tstate);
35185 if (PyErr_Occurred()) SWIG_fail;
35186 }
35187 resultobj = SWIG_Py_Void();
35188 return resultobj;
35189 fail:
35190 return NULL;
35191 }
35192
35193
35194 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35195 PyObject *resultobj = 0;
35196 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35197 wxWindow *arg2 = (wxWindow *) 0 ;
35198 wxDC *arg3 = 0 ;
35199 wxRect *arg4 = 0 ;
35200 int arg5 = (int) 0 ;
35201 void *argp1 = 0 ;
35202 int res1 = 0 ;
35203 void *argp2 = 0 ;
35204 int res2 = 0 ;
35205 void *argp3 = 0 ;
35206 int res3 = 0 ;
35207 wxRect temp4 ;
35208 int val5 ;
35209 int ecode5 = 0 ;
35210 PyObject * obj0 = 0 ;
35211 PyObject * obj1 = 0 ;
35212 PyObject * obj2 = 0 ;
35213 PyObject * obj3 = 0 ;
35214 PyObject * obj4 = 0 ;
35215 char * kwnames[] = {
35216 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35217 };
35218
35219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35221 if (!SWIG_IsOK(res1)) {
35222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35223 }
35224 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35225 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35226 if (!SWIG_IsOK(res2)) {
35227 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
35228 }
35229 arg2 = reinterpret_cast< wxWindow * >(argp2);
35230 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35231 if (!SWIG_IsOK(res3)) {
35232 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
35233 }
35234 if (!argp3) {
35235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
35236 }
35237 arg3 = reinterpret_cast< wxDC * >(argp3);
35238 {
35239 arg4 = &temp4;
35240 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35241 }
35242 if (obj4) {
35243 ecode5 = SWIG_AsVal_int(obj4, &val5);
35244 if (!SWIG_IsOK(ecode5)) {
35245 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
35246 }
35247 arg5 = static_cast< int >(val5);
35248 }
35249 {
35250 PyThreadState* __tstate = wxPyBeginAllowThreads();
35251 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
35252 wxPyEndAllowThreads(__tstate);
35253 if (PyErr_Occurred()) SWIG_fail;
35254 }
35255 resultobj = SWIG_Py_Void();
35256 return resultobj;
35257 fail:
35258 return NULL;
35259 }
35260
35261
35262 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35263 PyObject *resultobj = 0;
35264 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35265 wxWindow *arg2 = (wxWindow *) 0 ;
35266 wxDC *arg3 = 0 ;
35267 wxSize *arg4 = 0 ;
35268 int arg5 ;
35269 wxOrientation arg6 ;
35270 int arg7 = (int) 0 ;
35271 void *argp1 = 0 ;
35272 int res1 = 0 ;
35273 void *argp2 = 0 ;
35274 int res2 = 0 ;
35275 void *argp3 = 0 ;
35276 int res3 = 0 ;
35277 wxSize temp4 ;
35278 int val5 ;
35279 int ecode5 = 0 ;
35280 int val6 ;
35281 int ecode6 = 0 ;
35282 int val7 ;
35283 int ecode7 = 0 ;
35284 PyObject * obj0 = 0 ;
35285 PyObject * obj1 = 0 ;
35286 PyObject * obj2 = 0 ;
35287 PyObject * obj3 = 0 ;
35288 PyObject * obj4 = 0 ;
35289 PyObject * obj5 = 0 ;
35290 PyObject * obj6 = 0 ;
35291 char * kwnames[] = {
35292 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
35293 };
35294
35295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35297 if (!SWIG_IsOK(res1)) {
35298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35299 }
35300 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35301 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35302 if (!SWIG_IsOK(res2)) {
35303 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
35304 }
35305 arg2 = reinterpret_cast< wxWindow * >(argp2);
35306 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35307 if (!SWIG_IsOK(res3)) {
35308 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
35309 }
35310 if (!argp3) {
35311 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
35312 }
35313 arg3 = reinterpret_cast< wxDC * >(argp3);
35314 {
35315 arg4 = &temp4;
35316 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
35317 }
35318 ecode5 = SWIG_AsVal_int(obj4, &val5);
35319 if (!SWIG_IsOK(ecode5)) {
35320 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
35321 }
35322 arg5 = static_cast< int >(val5);
35323 ecode6 = SWIG_AsVal_int(obj5, &val6);
35324 if (!SWIG_IsOK(ecode6)) {
35325 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
35326 }
35327 arg6 = static_cast< wxOrientation >(val6);
35328 if (obj6) {
35329 ecode7 = SWIG_AsVal_int(obj6, &val7);
35330 if (!SWIG_IsOK(ecode7)) {
35331 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
35332 }
35333 arg7 = static_cast< int >(val7);
35334 }
35335 {
35336 PyThreadState* __tstate = wxPyBeginAllowThreads();
35337 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
35338 wxPyEndAllowThreads(__tstate);
35339 if (PyErr_Occurred()) SWIG_fail;
35340 }
35341 resultobj = SWIG_Py_Void();
35342 return resultobj;
35343 fail:
35344 return NULL;
35345 }
35346
35347
35348 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35349 PyObject *resultobj = 0;
35350 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35351 wxWindow *arg2 = (wxWindow *) 0 ;
35352 wxDC *arg3 = 0 ;
35353 wxRect *arg4 = 0 ;
35354 int arg5 = (int) 0 ;
35355 void *argp1 = 0 ;
35356 int res1 = 0 ;
35357 void *argp2 = 0 ;
35358 int res2 = 0 ;
35359 void *argp3 = 0 ;
35360 int res3 = 0 ;
35361 wxRect temp4 ;
35362 int val5 ;
35363 int ecode5 = 0 ;
35364 PyObject * obj0 = 0 ;
35365 PyObject * obj1 = 0 ;
35366 PyObject * obj2 = 0 ;
35367 PyObject * obj3 = 0 ;
35368 PyObject * obj4 = 0 ;
35369 char * kwnames[] = {
35370 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35371 };
35372
35373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35375 if (!SWIG_IsOK(res1)) {
35376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35377 }
35378 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35379 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35380 if (!SWIG_IsOK(res2)) {
35381 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35382 }
35383 arg2 = reinterpret_cast< wxWindow * >(argp2);
35384 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35385 if (!SWIG_IsOK(res3)) {
35386 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35387 }
35388 if (!argp3) {
35389 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35390 }
35391 arg3 = reinterpret_cast< wxDC * >(argp3);
35392 {
35393 arg4 = &temp4;
35394 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35395 }
35396 if (obj4) {
35397 ecode5 = SWIG_AsVal_int(obj4, &val5);
35398 if (!SWIG_IsOK(ecode5)) {
35399 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
35400 }
35401 arg5 = static_cast< int >(val5);
35402 }
35403 {
35404 PyThreadState* __tstate = wxPyBeginAllowThreads();
35405 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35406 wxPyEndAllowThreads(__tstate);
35407 if (PyErr_Occurred()) SWIG_fail;
35408 }
35409 resultobj = SWIG_Py_Void();
35410 return resultobj;
35411 fail:
35412 return NULL;
35413 }
35414
35415
35416 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35417 PyObject *resultobj = 0;
35418 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35419 wxWindow *arg2 = (wxWindow *) 0 ;
35420 wxDC *arg3 = 0 ;
35421 wxRect *arg4 = 0 ;
35422 int arg5 = (int) 0 ;
35423 void *argp1 = 0 ;
35424 int res1 = 0 ;
35425 void *argp2 = 0 ;
35426 int res2 = 0 ;
35427 void *argp3 = 0 ;
35428 int res3 = 0 ;
35429 wxRect temp4 ;
35430 int val5 ;
35431 int ecode5 = 0 ;
35432 PyObject * obj0 = 0 ;
35433 PyObject * obj1 = 0 ;
35434 PyObject * obj2 = 0 ;
35435 PyObject * obj3 = 0 ;
35436 PyObject * obj4 = 0 ;
35437 char * kwnames[] = {
35438 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35439 };
35440
35441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35443 if (!SWIG_IsOK(res1)) {
35444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35445 }
35446 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35447 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35448 if (!SWIG_IsOK(res2)) {
35449 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
35450 }
35451 arg2 = reinterpret_cast< wxWindow * >(argp2);
35452 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35453 if (!SWIG_IsOK(res3)) {
35454 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35455 }
35456 if (!argp3) {
35457 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35458 }
35459 arg3 = reinterpret_cast< wxDC * >(argp3);
35460 {
35461 arg4 = &temp4;
35462 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35463 }
35464 if (obj4) {
35465 ecode5 = SWIG_AsVal_int(obj4, &val5);
35466 if (!SWIG_IsOK(ecode5)) {
35467 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
35468 }
35469 arg5 = static_cast< int >(val5);
35470 }
35471 {
35472 PyThreadState* __tstate = wxPyBeginAllowThreads();
35473 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
35474 wxPyEndAllowThreads(__tstate);
35475 if (PyErr_Occurred()) SWIG_fail;
35476 }
35477 resultobj = SWIG_Py_Void();
35478 return resultobj;
35479 fail:
35480 return NULL;
35481 }
35482
35483
35484 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35485 PyObject *resultobj = 0;
35486 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35487 wxWindow *arg2 = (wxWindow *) 0 ;
35488 wxDC *arg3 = 0 ;
35489 wxRect *arg4 = 0 ;
35490 int arg5 = (int) 0 ;
35491 void *argp1 = 0 ;
35492 int res1 = 0 ;
35493 void *argp2 = 0 ;
35494 int res2 = 0 ;
35495 void *argp3 = 0 ;
35496 int res3 = 0 ;
35497 wxRect temp4 ;
35498 int val5 ;
35499 int ecode5 = 0 ;
35500 PyObject * obj0 = 0 ;
35501 PyObject * obj1 = 0 ;
35502 PyObject * obj2 = 0 ;
35503 PyObject * obj3 = 0 ;
35504 PyObject * obj4 = 0 ;
35505 char * kwnames[] = {
35506 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35507 };
35508
35509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35511 if (!SWIG_IsOK(res1)) {
35512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35513 }
35514 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35515 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35516 if (!SWIG_IsOK(res2)) {
35517 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
35518 }
35519 arg2 = reinterpret_cast< wxWindow * >(argp2);
35520 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35521 if (!SWIG_IsOK(res3)) {
35522 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35523 }
35524 if (!argp3) {
35525 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35526 }
35527 arg3 = reinterpret_cast< wxDC * >(argp3);
35528 {
35529 arg4 = &temp4;
35530 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35531 }
35532 if (obj4) {
35533 ecode5 = SWIG_AsVal_int(obj4, &val5);
35534 if (!SWIG_IsOK(ecode5)) {
35535 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
35536 }
35537 arg5 = static_cast< int >(val5);
35538 }
35539 {
35540 PyThreadState* __tstate = wxPyBeginAllowThreads();
35541 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
35542 wxPyEndAllowThreads(__tstate);
35543 if (PyErr_Occurred()) SWIG_fail;
35544 }
35545 resultobj = SWIG_Py_Void();
35546 return resultobj;
35547 fail:
35548 return NULL;
35549 }
35550
35551
35552 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35553 PyObject *resultobj = 0;
35554 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35555 wxWindow *arg2 = (wxWindow *) 0 ;
35556 wxDC *arg3 = 0 ;
35557 wxRect *arg4 = 0 ;
35558 int arg5 = (int) 0 ;
35559 void *argp1 = 0 ;
35560 int res1 = 0 ;
35561 void *argp2 = 0 ;
35562 int res2 = 0 ;
35563 void *argp3 = 0 ;
35564 int res3 = 0 ;
35565 wxRect temp4 ;
35566 int val5 ;
35567 int ecode5 = 0 ;
35568 PyObject * obj0 = 0 ;
35569 PyObject * obj1 = 0 ;
35570 PyObject * obj2 = 0 ;
35571 PyObject * obj3 = 0 ;
35572 PyObject * obj4 = 0 ;
35573 char * kwnames[] = {
35574 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35575 };
35576
35577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35579 if (!SWIG_IsOK(res1)) {
35580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35581 }
35582 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35583 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35584 if (!SWIG_IsOK(res2)) {
35585 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35586 }
35587 arg2 = reinterpret_cast< wxWindow * >(argp2);
35588 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35589 if (!SWIG_IsOK(res3)) {
35590 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35591 }
35592 if (!argp3) {
35593 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35594 }
35595 arg3 = reinterpret_cast< wxDC * >(argp3);
35596 {
35597 arg4 = &temp4;
35598 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35599 }
35600 if (obj4) {
35601 ecode5 = SWIG_AsVal_int(obj4, &val5);
35602 if (!SWIG_IsOK(ecode5)) {
35603 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
35604 }
35605 arg5 = static_cast< int >(val5);
35606 }
35607 {
35608 PyThreadState* __tstate = wxPyBeginAllowThreads();
35609 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35610 wxPyEndAllowThreads(__tstate);
35611 if (PyErr_Occurred()) SWIG_fail;
35612 }
35613 resultobj = SWIG_Py_Void();
35614 return resultobj;
35615 fail:
35616 return NULL;
35617 }
35618
35619
35620 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35621 PyObject *resultobj = 0;
35622 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35623 wxWindow *arg2 = (wxWindow *) 0 ;
35624 wxDC *arg3 = 0 ;
35625 wxRect *arg4 = 0 ;
35626 int arg5 = (int) 0 ;
35627 void *argp1 = 0 ;
35628 int res1 = 0 ;
35629 void *argp2 = 0 ;
35630 int res2 = 0 ;
35631 void *argp3 = 0 ;
35632 int res3 = 0 ;
35633 wxRect temp4 ;
35634 int val5 ;
35635 int ecode5 = 0 ;
35636 PyObject * obj0 = 0 ;
35637 PyObject * obj1 = 0 ;
35638 PyObject * obj2 = 0 ;
35639 PyObject * obj3 = 0 ;
35640 PyObject * obj4 = 0 ;
35641 char * kwnames[] = {
35642 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35643 };
35644
35645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35647 if (!SWIG_IsOK(res1)) {
35648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35649 }
35650 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35651 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35652 if (!SWIG_IsOK(res2)) {
35653 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
35654 }
35655 arg2 = reinterpret_cast< wxWindow * >(argp2);
35656 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35657 if (!SWIG_IsOK(res3)) {
35658 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35659 }
35660 if (!argp3) {
35661 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35662 }
35663 arg3 = reinterpret_cast< wxDC * >(argp3);
35664 {
35665 arg4 = &temp4;
35666 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35667 }
35668 if (obj4) {
35669 ecode5 = SWIG_AsVal_int(obj4, &val5);
35670 if (!SWIG_IsOK(ecode5)) {
35671 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
35672 }
35673 arg5 = static_cast< int >(val5);
35674 }
35675 {
35676 PyThreadState* __tstate = wxPyBeginAllowThreads();
35677 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
35678 wxPyEndAllowThreads(__tstate);
35679 if (PyErr_Occurred()) SWIG_fail;
35680 }
35681 resultobj = SWIG_Py_Void();
35682 return resultobj;
35683 fail:
35684 return NULL;
35685 }
35686
35687
35688 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35689 PyObject *resultobj = 0;
35690 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35691 wxWindow *arg2 = (wxWindow *) 0 ;
35692 SwigValueWrapper<wxSplitterRenderParams > result;
35693 void *argp1 = 0 ;
35694 int res1 = 0 ;
35695 void *argp2 = 0 ;
35696 int res2 = 0 ;
35697 PyObject * obj0 = 0 ;
35698 PyObject * obj1 = 0 ;
35699 char * kwnames[] = {
35700 (char *) "self",(char *) "win", NULL
35701 };
35702
35703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
35704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35705 if (!SWIG_IsOK(res1)) {
35706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35707 }
35708 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35709 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35710 if (!SWIG_IsOK(res2)) {
35711 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
35712 }
35713 arg2 = reinterpret_cast< wxWindow * >(argp2);
35714 {
35715 PyThreadState* __tstate = wxPyBeginAllowThreads();
35716 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
35717 wxPyEndAllowThreads(__tstate);
35718 if (PyErr_Occurred()) SWIG_fail;
35719 }
35720 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
35721 return resultobj;
35722 fail:
35723 return NULL;
35724 }
35725
35726
35727 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35728 PyObject *resultobj = 0;
35729 wxRendererNative *result = 0 ;
35730
35731 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
35732 {
35733 if (!wxPyCheckForApp()) SWIG_fail;
35734 PyThreadState* __tstate = wxPyBeginAllowThreads();
35735 {
35736 wxRendererNative &_result_ref = wxRendererNative::Get();
35737 result = (wxRendererNative *) &_result_ref;
35738 }
35739 wxPyEndAllowThreads(__tstate);
35740 if (PyErr_Occurred()) SWIG_fail;
35741 }
35742 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35743 return resultobj;
35744 fail:
35745 return NULL;
35746 }
35747
35748
35749 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35750 PyObject *resultobj = 0;
35751 wxRendererNative *result = 0 ;
35752
35753 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
35754 {
35755 if (!wxPyCheckForApp()) SWIG_fail;
35756 PyThreadState* __tstate = wxPyBeginAllowThreads();
35757 {
35758 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
35759 result = (wxRendererNative *) &_result_ref;
35760 }
35761 wxPyEndAllowThreads(__tstate);
35762 if (PyErr_Occurred()) SWIG_fail;
35763 }
35764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35765 return resultobj;
35766 fail:
35767 return NULL;
35768 }
35769
35770
35771 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35772 PyObject *resultobj = 0;
35773 wxRendererNative *result = 0 ;
35774
35775 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
35776 {
35777 if (!wxPyCheckForApp()) SWIG_fail;
35778 PyThreadState* __tstate = wxPyBeginAllowThreads();
35779 {
35780 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
35781 result = (wxRendererNative *) &_result_ref;
35782 }
35783 wxPyEndAllowThreads(__tstate);
35784 if (PyErr_Occurred()) SWIG_fail;
35785 }
35786 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35787 return resultobj;
35788 fail:
35789 return NULL;
35790 }
35791
35792
35793 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35794 PyObject *resultobj = 0;
35795 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35796 wxRendererNative *result = 0 ;
35797 void *argp1 = 0 ;
35798 int res1 = 0 ;
35799 PyObject * obj0 = 0 ;
35800 char * kwnames[] = {
35801 (char *) "renderer", NULL
35802 };
35803
35804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
35805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35806 if (!SWIG_IsOK(res1)) {
35807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35808 }
35809 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35810 {
35811 if (!wxPyCheckForApp()) SWIG_fail;
35812 PyThreadState* __tstate = wxPyBeginAllowThreads();
35813 result = (wxRendererNative *)wxRendererNative::Set(arg1);
35814 wxPyEndAllowThreads(__tstate);
35815 if (PyErr_Occurred()) SWIG_fail;
35816 }
35817 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35818 return resultobj;
35819 fail:
35820 return NULL;
35821 }
35822
35823
35824 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35825 PyObject *resultobj = 0;
35826 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35827 SwigValueWrapper<wxRendererVersion > result;
35828 void *argp1 = 0 ;
35829 int res1 = 0 ;
35830 PyObject *swig_obj[1] ;
35831
35832 if (!args) SWIG_fail;
35833 swig_obj[0] = args;
35834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35835 if (!SWIG_IsOK(res1)) {
35836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
35837 }
35838 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35839 {
35840 PyThreadState* __tstate = wxPyBeginAllowThreads();
35841 result = ((wxRendererNative const *)arg1)->GetVersion();
35842 wxPyEndAllowThreads(__tstate);
35843 if (PyErr_Occurred()) SWIG_fail;
35844 }
35845 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
35846 return resultobj;
35847 fail:
35848 return NULL;
35849 }
35850
35851
35852 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35853 PyObject *obj;
35854 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35855 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
35856 return SWIG_Py_Void();
35857 }
35858
35859 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35860 PyObject *resultobj = 0;
35861 wxPseudoDC *result = 0 ;
35862
35863 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
35864 {
35865 PyThreadState* __tstate = wxPyBeginAllowThreads();
35866 result = (wxPseudoDC *)new wxPseudoDC();
35867 wxPyEndAllowThreads(__tstate);
35868 if (PyErr_Occurred()) SWIG_fail;
35869 }
35870 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
35871 return resultobj;
35872 fail:
35873 return NULL;
35874 }
35875
35876
35877 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35878 PyObject *resultobj = 0;
35879 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35880 void *argp1 = 0 ;
35881 int res1 = 0 ;
35882 PyObject *swig_obj[1] ;
35883
35884 if (!args) SWIG_fail;
35885 swig_obj[0] = args;
35886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35887 if (!SWIG_IsOK(res1)) {
35888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35889 }
35890 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35891 {
35892 PyThreadState* __tstate = wxPyBeginAllowThreads();
35893 (arg1)->BeginDrawing();
35894 wxPyEndAllowThreads(__tstate);
35895 if (PyErr_Occurred()) SWIG_fail;
35896 }
35897 resultobj = SWIG_Py_Void();
35898 return resultobj;
35899 fail:
35900 return NULL;
35901 }
35902
35903
35904 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35905 PyObject *resultobj = 0;
35906 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35907 void *argp1 = 0 ;
35908 int res1 = 0 ;
35909 PyObject *swig_obj[1] ;
35910
35911 if (!args) SWIG_fail;
35912 swig_obj[0] = args;
35913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35914 if (!SWIG_IsOK(res1)) {
35915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35916 }
35917 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35918 {
35919 PyThreadState* __tstate = wxPyBeginAllowThreads();
35920 (arg1)->EndDrawing();
35921 wxPyEndAllowThreads(__tstate);
35922 if (PyErr_Occurred()) SWIG_fail;
35923 }
35924 resultobj = SWIG_Py_Void();
35925 return resultobj;
35926 fail:
35927 return NULL;
35928 }
35929
35930
35931 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35932 PyObject *resultobj = 0;
35933 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35934 void *argp1 = 0 ;
35935 int res1 = 0 ;
35936 PyObject *swig_obj[1] ;
35937
35938 if (!args) SWIG_fail;
35939 swig_obj[0] = args;
35940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35941 if (!SWIG_IsOK(res1)) {
35942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35943 }
35944 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35945 {
35946 PyThreadState* __tstate = wxPyBeginAllowThreads();
35947 delete arg1;
35948
35949 wxPyEndAllowThreads(__tstate);
35950 if (PyErr_Occurred()) SWIG_fail;
35951 }
35952 resultobj = SWIG_Py_Void();
35953 return resultobj;
35954 fail:
35955 return NULL;
35956 }
35957
35958
35959 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35960 PyObject *resultobj = 0;
35961 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35962 void *argp1 = 0 ;
35963 int res1 = 0 ;
35964 PyObject *swig_obj[1] ;
35965
35966 if (!args) SWIG_fail;
35967 swig_obj[0] = args;
35968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35969 if (!SWIG_IsOK(res1)) {
35970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35971 }
35972 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35973 {
35974 PyThreadState* __tstate = wxPyBeginAllowThreads();
35975 (arg1)->RemoveAll();
35976 wxPyEndAllowThreads(__tstate);
35977 if (PyErr_Occurred()) SWIG_fail;
35978 }
35979 resultobj = SWIG_Py_Void();
35980 return resultobj;
35981 fail:
35982 return NULL;
35983 }
35984
35985
35986 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35987 PyObject *resultobj = 0;
35988 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35989 int result;
35990 void *argp1 = 0 ;
35991 int res1 = 0 ;
35992 PyObject *swig_obj[1] ;
35993
35994 if (!args) SWIG_fail;
35995 swig_obj[0] = args;
35996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35997 if (!SWIG_IsOK(res1)) {
35998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35999 }
36000 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36001 {
36002 PyThreadState* __tstate = wxPyBeginAllowThreads();
36003 result = (int)(arg1)->GetLen();
36004 wxPyEndAllowThreads(__tstate);
36005 if (PyErr_Occurred()) SWIG_fail;
36006 }
36007 resultobj = SWIG_From_int(static_cast< int >(result));
36008 return resultobj;
36009 fail:
36010 return NULL;
36011 }
36012
36013
36014 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36015 PyObject *resultobj = 0;
36016 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36017 int arg2 ;
36018 void *argp1 = 0 ;
36019 int res1 = 0 ;
36020 int val2 ;
36021 int ecode2 = 0 ;
36022 PyObject * obj0 = 0 ;
36023 PyObject * obj1 = 0 ;
36024 char * kwnames[] = {
36025 (char *) "self",(char *) "id", NULL
36026 };
36027
36028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
36029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36030 if (!SWIG_IsOK(res1)) {
36031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36032 }
36033 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36034 ecode2 = SWIG_AsVal_int(obj1, &val2);
36035 if (!SWIG_IsOK(ecode2)) {
36036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
36037 }
36038 arg2 = static_cast< int >(val2);
36039 {
36040 PyThreadState* __tstate = wxPyBeginAllowThreads();
36041 (arg1)->SetId(arg2);
36042 wxPyEndAllowThreads(__tstate);
36043 if (PyErr_Occurred()) SWIG_fail;
36044 }
36045 resultobj = SWIG_Py_Void();
36046 return resultobj;
36047 fail:
36048 return NULL;
36049 }
36050
36051
36052 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36053 PyObject *resultobj = 0;
36054 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36055 int arg2 ;
36056 void *argp1 = 0 ;
36057 int res1 = 0 ;
36058 int val2 ;
36059 int ecode2 = 0 ;
36060 PyObject * obj0 = 0 ;
36061 PyObject * obj1 = 0 ;
36062 char * kwnames[] = {
36063 (char *) "self",(char *) "id", NULL
36064 };
36065
36066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
36067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36068 if (!SWIG_IsOK(res1)) {
36069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36070 }
36071 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36072 ecode2 = SWIG_AsVal_int(obj1, &val2);
36073 if (!SWIG_IsOK(ecode2)) {
36074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
36075 }
36076 arg2 = static_cast< int >(val2);
36077 {
36078 PyThreadState* __tstate = wxPyBeginAllowThreads();
36079 (arg1)->ClearId(arg2);
36080 wxPyEndAllowThreads(__tstate);
36081 if (PyErr_Occurred()) SWIG_fail;
36082 }
36083 resultobj = SWIG_Py_Void();
36084 return resultobj;
36085 fail:
36086 return NULL;
36087 }
36088
36089
36090 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36091 PyObject *resultobj = 0;
36092 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36093 int arg2 ;
36094 void *argp1 = 0 ;
36095 int res1 = 0 ;
36096 int val2 ;
36097 int ecode2 = 0 ;
36098 PyObject * obj0 = 0 ;
36099 PyObject * obj1 = 0 ;
36100 char * kwnames[] = {
36101 (char *) "self",(char *) "id", NULL
36102 };
36103
36104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
36105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36106 if (!SWIG_IsOK(res1)) {
36107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36108 }
36109 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36110 ecode2 = SWIG_AsVal_int(obj1, &val2);
36111 if (!SWIG_IsOK(ecode2)) {
36112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
36113 }
36114 arg2 = static_cast< int >(val2);
36115 {
36116 PyThreadState* __tstate = wxPyBeginAllowThreads();
36117 (arg1)->RemoveId(arg2);
36118 wxPyEndAllowThreads(__tstate);
36119 if (PyErr_Occurred()) SWIG_fail;
36120 }
36121 resultobj = SWIG_Py_Void();
36122 return resultobj;
36123 fail:
36124 return NULL;
36125 }
36126
36127
36128 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36129 PyObject *resultobj = 0;
36130 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36131 int arg2 ;
36132 int arg3 ;
36133 int arg4 ;
36134 void *argp1 = 0 ;
36135 int res1 = 0 ;
36136 int val2 ;
36137 int ecode2 = 0 ;
36138 int val3 ;
36139 int ecode3 = 0 ;
36140 int val4 ;
36141 int ecode4 = 0 ;
36142 PyObject * obj0 = 0 ;
36143 PyObject * obj1 = 0 ;
36144 PyObject * obj2 = 0 ;
36145 PyObject * obj3 = 0 ;
36146 char * kwnames[] = {
36147 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
36148 };
36149
36150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36152 if (!SWIG_IsOK(res1)) {
36153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36154 }
36155 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36156 ecode2 = SWIG_AsVal_int(obj1, &val2);
36157 if (!SWIG_IsOK(ecode2)) {
36158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
36159 }
36160 arg2 = static_cast< int >(val2);
36161 ecode3 = SWIG_AsVal_int(obj2, &val3);
36162 if (!SWIG_IsOK(ecode3)) {
36163 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
36164 }
36165 arg3 = static_cast< int >(val3);
36166 ecode4 = SWIG_AsVal_int(obj3, &val4);
36167 if (!SWIG_IsOK(ecode4)) {
36168 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
36169 }
36170 arg4 = static_cast< int >(val4);
36171 {
36172 PyThreadState* __tstate = wxPyBeginAllowThreads();
36173 (arg1)->TranslateId(arg2,arg3,arg4);
36174 wxPyEndAllowThreads(__tstate);
36175 if (PyErr_Occurred()) SWIG_fail;
36176 }
36177 resultobj = SWIG_Py_Void();
36178 return resultobj;
36179 fail:
36180 return NULL;
36181 }
36182
36183
36184 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36185 PyObject *resultobj = 0;
36186 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36187 int arg2 ;
36188 bool arg3 = (bool) true ;
36189 void *argp1 = 0 ;
36190 int res1 = 0 ;
36191 int val2 ;
36192 int ecode2 = 0 ;
36193 bool val3 ;
36194 int ecode3 = 0 ;
36195 PyObject * obj0 = 0 ;
36196 PyObject * obj1 = 0 ;
36197 PyObject * obj2 = 0 ;
36198 char * kwnames[] = {
36199 (char *) "self",(char *) "id",(char *) "greyout", NULL
36200 };
36201
36202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36204 if (!SWIG_IsOK(res1)) {
36205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36206 }
36207 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36208 ecode2 = SWIG_AsVal_int(obj1, &val2);
36209 if (!SWIG_IsOK(ecode2)) {
36210 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
36211 }
36212 arg2 = static_cast< int >(val2);
36213 if (obj2) {
36214 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36215 if (!SWIG_IsOK(ecode3)) {
36216 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
36217 }
36218 arg3 = static_cast< bool >(val3);
36219 }
36220 {
36221 PyThreadState* __tstate = wxPyBeginAllowThreads();
36222 (arg1)->SetIdGreyedOut(arg2,arg3);
36223 wxPyEndAllowThreads(__tstate);
36224 if (PyErr_Occurred()) SWIG_fail;
36225 }
36226 resultobj = SWIG_Py_Void();
36227 return resultobj;
36228 fail:
36229 return NULL;
36230 }
36231
36232
36233 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36234 PyObject *resultobj = 0;
36235 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36236 int arg2 ;
36237 bool result;
36238 void *argp1 = 0 ;
36239 int res1 = 0 ;
36240 int val2 ;
36241 int ecode2 = 0 ;
36242 PyObject * obj0 = 0 ;
36243 PyObject * obj1 = 0 ;
36244 char * kwnames[] = {
36245 (char *) "self",(char *) "id", NULL
36246 };
36247
36248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
36249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36250 if (!SWIG_IsOK(res1)) {
36251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36252 }
36253 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36254 ecode2 = SWIG_AsVal_int(obj1, &val2);
36255 if (!SWIG_IsOK(ecode2)) {
36256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
36257 }
36258 arg2 = static_cast< int >(val2);
36259 {
36260 PyThreadState* __tstate = wxPyBeginAllowThreads();
36261 result = (bool)(arg1)->GetIdGreyedOut(arg2);
36262 wxPyEndAllowThreads(__tstate);
36263 if (PyErr_Occurred()) SWIG_fail;
36264 }
36265 {
36266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36267 }
36268 return resultobj;
36269 fail:
36270 return NULL;
36271 }
36272
36273
36274 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36275 PyObject *resultobj = 0;
36276 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36277 int arg2 ;
36278 int arg3 ;
36279 int arg4 = (int) 1 ;
36280 wxColor const &arg5_defvalue = *wxWHITE ;
36281 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
36282 PyObject *result = 0 ;
36283 void *argp1 = 0 ;
36284 int res1 = 0 ;
36285 int val2 ;
36286 int ecode2 = 0 ;
36287 int val3 ;
36288 int ecode3 = 0 ;
36289 int val4 ;
36290 int ecode4 = 0 ;
36291 void *argp5 = 0 ;
36292 int res5 = 0 ;
36293 PyObject * obj0 = 0 ;
36294 PyObject * obj1 = 0 ;
36295 PyObject * obj2 = 0 ;
36296 PyObject * obj3 = 0 ;
36297 PyObject * obj4 = 0 ;
36298 char * kwnames[] = {
36299 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
36300 };
36301
36302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36304 if (!SWIG_IsOK(res1)) {
36305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36306 }
36307 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36308 ecode2 = SWIG_AsVal_int(obj1, &val2);
36309 if (!SWIG_IsOK(ecode2)) {
36310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
36311 }
36312 arg2 = static_cast< int >(val2);
36313 ecode3 = SWIG_AsVal_int(obj2, &val3);
36314 if (!SWIG_IsOK(ecode3)) {
36315 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
36316 }
36317 arg3 = static_cast< int >(val3);
36318 if (obj3) {
36319 ecode4 = SWIG_AsVal_int(obj3, &val4);
36320 if (!SWIG_IsOK(ecode4)) {
36321 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
36322 }
36323 arg4 = static_cast< int >(val4);
36324 }
36325 if (obj4) {
36326 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
36327 if (!SWIG_IsOK(res5)) {
36328 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
36329 }
36330 if (!argp5) {
36331 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
36332 }
36333 arg5 = reinterpret_cast< wxColor * >(argp5);
36334 }
36335 {
36336 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
36337 if (PyErr_Occurred()) SWIG_fail;
36338 }
36339 resultobj = result;
36340 return resultobj;
36341 fail:
36342 return NULL;
36343 }
36344
36345
36346 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36347 PyObject *resultobj = 0;
36348 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36349 int arg2 ;
36350 int arg3 ;
36351 PyObject *result = 0 ;
36352 void *argp1 = 0 ;
36353 int res1 = 0 ;
36354 int val2 ;
36355 int ecode2 = 0 ;
36356 int val3 ;
36357 int ecode3 = 0 ;
36358 PyObject * obj0 = 0 ;
36359 PyObject * obj1 = 0 ;
36360 PyObject * obj2 = 0 ;
36361 char * kwnames[] = {
36362 (char *) "self",(char *) "x",(char *) "y", NULL
36363 };
36364
36365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36367 if (!SWIG_IsOK(res1)) {
36368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36369 }
36370 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36371 ecode2 = SWIG_AsVal_int(obj1, &val2);
36372 if (!SWIG_IsOK(ecode2)) {
36373 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
36374 }
36375 arg2 = static_cast< int >(val2);
36376 ecode3 = SWIG_AsVal_int(obj2, &val3);
36377 if (!SWIG_IsOK(ecode3)) {
36378 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
36379 }
36380 arg3 = static_cast< int >(val3);
36381 {
36382 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
36383 if (PyErr_Occurred()) SWIG_fail;
36384 }
36385 resultobj = result;
36386 return resultobj;
36387 fail:
36388 return NULL;
36389 }
36390
36391
36392 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36393 PyObject *resultobj = 0;
36394 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36395 int arg2 ;
36396 wxDC *arg3 = (wxDC *) 0 ;
36397 void *argp1 = 0 ;
36398 int res1 = 0 ;
36399 int val2 ;
36400 int ecode2 = 0 ;
36401 void *argp3 = 0 ;
36402 int res3 = 0 ;
36403 PyObject * obj0 = 0 ;
36404 PyObject * obj1 = 0 ;
36405 PyObject * obj2 = 0 ;
36406 char * kwnames[] = {
36407 (char *) "self",(char *) "id",(char *) "dc", NULL
36408 };
36409
36410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36412 if (!SWIG_IsOK(res1)) {
36413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36414 }
36415 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36416 ecode2 = SWIG_AsVal_int(obj1, &val2);
36417 if (!SWIG_IsOK(ecode2)) {
36418 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
36419 }
36420 arg2 = static_cast< int >(val2);
36421 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
36422 if (!SWIG_IsOK(res3)) {
36423 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
36424 }
36425 arg3 = reinterpret_cast< wxDC * >(argp3);
36426 {
36427 PyThreadState* __tstate = wxPyBeginAllowThreads();
36428 (arg1)->DrawIdToDC(arg2,arg3);
36429 wxPyEndAllowThreads(__tstate);
36430 if (PyErr_Occurred()) SWIG_fail;
36431 }
36432 resultobj = SWIG_Py_Void();
36433 return resultobj;
36434 fail:
36435 return NULL;
36436 }
36437
36438
36439 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36440 PyObject *resultobj = 0;
36441 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36442 int arg2 ;
36443 wxRect *arg3 = 0 ;
36444 void *argp1 = 0 ;
36445 int res1 = 0 ;
36446 int val2 ;
36447 int ecode2 = 0 ;
36448 wxRect temp3 ;
36449 PyObject * obj0 = 0 ;
36450 PyObject * obj1 = 0 ;
36451 PyObject * obj2 = 0 ;
36452 char * kwnames[] = {
36453 (char *) "self",(char *) "id",(char *) "rect", NULL
36454 };
36455
36456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36458 if (!SWIG_IsOK(res1)) {
36459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36460 }
36461 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36462 ecode2 = SWIG_AsVal_int(obj1, &val2);
36463 if (!SWIG_IsOK(ecode2)) {
36464 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
36465 }
36466 arg2 = static_cast< int >(val2);
36467 {
36468 arg3 = &temp3;
36469 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36470 }
36471 {
36472 PyThreadState* __tstate = wxPyBeginAllowThreads();
36473 (arg1)->SetIdBounds(arg2,*arg3);
36474 wxPyEndAllowThreads(__tstate);
36475 if (PyErr_Occurred()) SWIG_fail;
36476 }
36477 resultobj = SWIG_Py_Void();
36478 return resultobj;
36479 fail:
36480 return NULL;
36481 }
36482
36483
36484 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36485 PyObject *resultobj = 0;
36486 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36487 int arg2 ;
36488 wxRect result;
36489 void *argp1 = 0 ;
36490 int res1 = 0 ;
36491 int val2 ;
36492 int ecode2 = 0 ;
36493 PyObject * obj0 = 0 ;
36494 PyObject * obj1 = 0 ;
36495 char * kwnames[] = {
36496 (char *) "self",(char *) "id", NULL
36497 };
36498
36499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
36500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36501 if (!SWIG_IsOK(res1)) {
36502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36503 }
36504 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36505 ecode2 = SWIG_AsVal_int(obj1, &val2);
36506 if (!SWIG_IsOK(ecode2)) {
36507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
36508 }
36509 arg2 = static_cast< int >(val2);
36510 {
36511 PyThreadState* __tstate = wxPyBeginAllowThreads();
36512 result = wxPseudoDC_GetIdBounds(arg1,arg2);
36513 wxPyEndAllowThreads(__tstate);
36514 if (PyErr_Occurred()) SWIG_fail;
36515 }
36516 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
36517 return resultobj;
36518 fail:
36519 return NULL;
36520 }
36521
36522
36523 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36524 PyObject *resultobj = 0;
36525 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36526 wxDC *arg2 = (wxDC *) 0 ;
36527 wxRect *arg3 = 0 ;
36528 void *argp1 = 0 ;
36529 int res1 = 0 ;
36530 void *argp2 = 0 ;
36531 int res2 = 0 ;
36532 wxRect temp3 ;
36533 PyObject * obj0 = 0 ;
36534 PyObject * obj1 = 0 ;
36535 PyObject * obj2 = 0 ;
36536 char * kwnames[] = {
36537 (char *) "self",(char *) "dc",(char *) "rect", NULL
36538 };
36539
36540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36542 if (!SWIG_IsOK(res1)) {
36543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36544 }
36545 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36546 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36547 if (!SWIG_IsOK(res2)) {
36548 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
36549 }
36550 arg2 = reinterpret_cast< wxDC * >(argp2);
36551 {
36552 arg3 = &temp3;
36553 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36554 }
36555 {
36556 PyThreadState* __tstate = wxPyBeginAllowThreads();
36557 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
36558 wxPyEndAllowThreads(__tstate);
36559 if (PyErr_Occurred()) SWIG_fail;
36560 }
36561 resultobj = SWIG_Py_Void();
36562 return resultobj;
36563 fail:
36564 return NULL;
36565 }
36566
36567
36568 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36569 PyObject *resultobj = 0;
36570 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36571 wxDC *arg2 = (wxDC *) 0 ;
36572 wxRegion *arg3 = 0 ;
36573 void *argp1 = 0 ;
36574 int res1 = 0 ;
36575 void *argp2 = 0 ;
36576 int res2 = 0 ;
36577 void *argp3 = 0 ;
36578 int res3 = 0 ;
36579 PyObject * obj0 = 0 ;
36580 PyObject * obj1 = 0 ;
36581 PyObject * obj2 = 0 ;
36582 char * kwnames[] = {
36583 (char *) "self",(char *) "dc",(char *) "region", NULL
36584 };
36585
36586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36588 if (!SWIG_IsOK(res1)) {
36589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36590 }
36591 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36592 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36593 if (!SWIG_IsOK(res2)) {
36594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
36595 }
36596 arg2 = reinterpret_cast< wxDC * >(argp2);
36597 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
36598 if (!SWIG_IsOK(res3)) {
36599 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36600 }
36601 if (!argp3) {
36602 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36603 }
36604 arg3 = reinterpret_cast< wxRegion * >(argp3);
36605 {
36606 PyThreadState* __tstate = wxPyBeginAllowThreads();
36607 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
36608 wxPyEndAllowThreads(__tstate);
36609 if (PyErr_Occurred()) SWIG_fail;
36610 }
36611 resultobj = SWIG_Py_Void();
36612 return resultobj;
36613 fail:
36614 return NULL;
36615 }
36616
36617
36618 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36619 PyObject *resultobj = 0;
36620 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36621 wxDC *arg2 = (wxDC *) 0 ;
36622 void *argp1 = 0 ;
36623 int res1 = 0 ;
36624 void *argp2 = 0 ;
36625 int res2 = 0 ;
36626 PyObject * obj0 = 0 ;
36627 PyObject * obj1 = 0 ;
36628 char * kwnames[] = {
36629 (char *) "self",(char *) "dc", NULL
36630 };
36631
36632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
36633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36634 if (!SWIG_IsOK(res1)) {
36635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36636 }
36637 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36638 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36639 if (!SWIG_IsOK(res2)) {
36640 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
36641 }
36642 arg2 = reinterpret_cast< wxDC * >(argp2);
36643 {
36644 PyThreadState* __tstate = wxPyBeginAllowThreads();
36645 (arg1)->DrawToDC(arg2);
36646 wxPyEndAllowThreads(__tstate);
36647 if (PyErr_Occurred()) SWIG_fail;
36648 }
36649 resultobj = SWIG_Py_Void();
36650 return resultobj;
36651 fail:
36652 return NULL;
36653 }
36654
36655
36656 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36657 PyObject *resultobj = 0;
36658 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36659 int arg2 ;
36660 int arg3 ;
36661 wxColour *arg4 = 0 ;
36662 int arg5 = (int) wxFLOOD_SURFACE ;
36663 void *argp1 = 0 ;
36664 int res1 = 0 ;
36665 int val2 ;
36666 int ecode2 = 0 ;
36667 int val3 ;
36668 int ecode3 = 0 ;
36669 wxColour temp4 ;
36670 int val5 ;
36671 int ecode5 = 0 ;
36672 PyObject * obj0 = 0 ;
36673 PyObject * obj1 = 0 ;
36674 PyObject * obj2 = 0 ;
36675 PyObject * obj3 = 0 ;
36676 PyObject * obj4 = 0 ;
36677 char * kwnames[] = {
36678 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
36679 };
36680
36681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36683 if (!SWIG_IsOK(res1)) {
36684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36685 }
36686 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36687 ecode2 = SWIG_AsVal_int(obj1, &val2);
36688 if (!SWIG_IsOK(ecode2)) {
36689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
36690 }
36691 arg2 = static_cast< int >(val2);
36692 ecode3 = SWIG_AsVal_int(obj2, &val3);
36693 if (!SWIG_IsOK(ecode3)) {
36694 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
36695 }
36696 arg3 = static_cast< int >(val3);
36697 {
36698 arg4 = &temp4;
36699 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
36700 }
36701 if (obj4) {
36702 ecode5 = SWIG_AsVal_int(obj4, &val5);
36703 if (!SWIG_IsOK(ecode5)) {
36704 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
36705 }
36706 arg5 = static_cast< int >(val5);
36707 }
36708 {
36709 PyThreadState* __tstate = wxPyBeginAllowThreads();
36710 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
36711 wxPyEndAllowThreads(__tstate);
36712 if (PyErr_Occurred()) SWIG_fail;
36713 }
36714 resultobj = SWIG_Py_Void();
36715 return resultobj;
36716 fail:
36717 return NULL;
36718 }
36719
36720
36721 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36722 PyObject *resultobj = 0;
36723 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36724 wxPoint *arg2 = 0 ;
36725 wxColour *arg3 = 0 ;
36726 int arg4 = (int) wxFLOOD_SURFACE ;
36727 void *argp1 = 0 ;
36728 int res1 = 0 ;
36729 wxPoint temp2 ;
36730 wxColour temp3 ;
36731 int val4 ;
36732 int ecode4 = 0 ;
36733 PyObject * obj0 = 0 ;
36734 PyObject * obj1 = 0 ;
36735 PyObject * obj2 = 0 ;
36736 PyObject * obj3 = 0 ;
36737 char * kwnames[] = {
36738 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
36739 };
36740
36741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36743 if (!SWIG_IsOK(res1)) {
36744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36745 }
36746 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36747 {
36748 arg2 = &temp2;
36749 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36750 }
36751 {
36752 arg3 = &temp3;
36753 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
36754 }
36755 if (obj3) {
36756 ecode4 = SWIG_AsVal_int(obj3, &val4);
36757 if (!SWIG_IsOK(ecode4)) {
36758 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
36759 }
36760 arg4 = static_cast< int >(val4);
36761 }
36762 {
36763 PyThreadState* __tstate = wxPyBeginAllowThreads();
36764 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
36765 wxPyEndAllowThreads(__tstate);
36766 if (PyErr_Occurred()) SWIG_fail;
36767 }
36768 resultobj = SWIG_Py_Void();
36769 return resultobj;
36770 fail:
36771 return NULL;
36772 }
36773
36774
36775 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36776 PyObject *resultobj = 0;
36777 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36778 int arg2 ;
36779 int arg3 ;
36780 int arg4 ;
36781 int arg5 ;
36782 void *argp1 = 0 ;
36783 int res1 = 0 ;
36784 int val2 ;
36785 int ecode2 = 0 ;
36786 int val3 ;
36787 int ecode3 = 0 ;
36788 int val4 ;
36789 int ecode4 = 0 ;
36790 int val5 ;
36791 int ecode5 = 0 ;
36792 PyObject * obj0 = 0 ;
36793 PyObject * obj1 = 0 ;
36794 PyObject * obj2 = 0 ;
36795 PyObject * obj3 = 0 ;
36796 PyObject * obj4 = 0 ;
36797 char * kwnames[] = {
36798 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
36799 };
36800
36801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36803 if (!SWIG_IsOK(res1)) {
36804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36805 }
36806 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36807 ecode2 = SWIG_AsVal_int(obj1, &val2);
36808 if (!SWIG_IsOK(ecode2)) {
36809 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
36810 }
36811 arg2 = static_cast< int >(val2);
36812 ecode3 = SWIG_AsVal_int(obj2, &val3);
36813 if (!SWIG_IsOK(ecode3)) {
36814 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
36815 }
36816 arg3 = static_cast< int >(val3);
36817 ecode4 = SWIG_AsVal_int(obj3, &val4);
36818 if (!SWIG_IsOK(ecode4)) {
36819 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
36820 }
36821 arg4 = static_cast< int >(val4);
36822 ecode5 = SWIG_AsVal_int(obj4, &val5);
36823 if (!SWIG_IsOK(ecode5)) {
36824 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
36825 }
36826 arg5 = static_cast< int >(val5);
36827 {
36828 PyThreadState* __tstate = wxPyBeginAllowThreads();
36829 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
36830 wxPyEndAllowThreads(__tstate);
36831 if (PyErr_Occurred()) SWIG_fail;
36832 }
36833 resultobj = SWIG_Py_Void();
36834 return resultobj;
36835 fail:
36836 return NULL;
36837 }
36838
36839
36840 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36841 PyObject *resultobj = 0;
36842 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36843 wxPoint *arg2 = 0 ;
36844 wxPoint *arg3 = 0 ;
36845 void *argp1 = 0 ;
36846 int res1 = 0 ;
36847 wxPoint temp2 ;
36848 wxPoint temp3 ;
36849 PyObject * obj0 = 0 ;
36850 PyObject * obj1 = 0 ;
36851 PyObject * obj2 = 0 ;
36852 char * kwnames[] = {
36853 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
36854 };
36855
36856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36858 if (!SWIG_IsOK(res1)) {
36859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36860 }
36861 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36862 {
36863 arg2 = &temp2;
36864 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36865 }
36866 {
36867 arg3 = &temp3;
36868 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36869 }
36870 {
36871 PyThreadState* __tstate = wxPyBeginAllowThreads();
36872 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
36873 wxPyEndAllowThreads(__tstate);
36874 if (PyErr_Occurred()) SWIG_fail;
36875 }
36876 resultobj = SWIG_Py_Void();
36877 return resultobj;
36878 fail:
36879 return NULL;
36880 }
36881
36882
36883 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36884 PyObject *resultobj = 0;
36885 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36886 int arg2 ;
36887 int arg3 ;
36888 void *argp1 = 0 ;
36889 int res1 = 0 ;
36890 int val2 ;
36891 int ecode2 = 0 ;
36892 int val3 ;
36893 int ecode3 = 0 ;
36894 PyObject * obj0 = 0 ;
36895 PyObject * obj1 = 0 ;
36896 PyObject * obj2 = 0 ;
36897 char * kwnames[] = {
36898 (char *) "self",(char *) "x",(char *) "y", NULL
36899 };
36900
36901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36903 if (!SWIG_IsOK(res1)) {
36904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36905 }
36906 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36907 ecode2 = SWIG_AsVal_int(obj1, &val2);
36908 if (!SWIG_IsOK(ecode2)) {
36909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
36910 }
36911 arg2 = static_cast< int >(val2);
36912 ecode3 = SWIG_AsVal_int(obj2, &val3);
36913 if (!SWIG_IsOK(ecode3)) {
36914 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
36915 }
36916 arg3 = static_cast< int >(val3);
36917 {
36918 PyThreadState* __tstate = wxPyBeginAllowThreads();
36919 (arg1)->CrossHair(arg2,arg3);
36920 wxPyEndAllowThreads(__tstate);
36921 if (PyErr_Occurred()) SWIG_fail;
36922 }
36923 resultobj = SWIG_Py_Void();
36924 return resultobj;
36925 fail:
36926 return NULL;
36927 }
36928
36929
36930 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36931 PyObject *resultobj = 0;
36932 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36933 wxPoint *arg2 = 0 ;
36934 void *argp1 = 0 ;
36935 int res1 = 0 ;
36936 wxPoint temp2 ;
36937 PyObject * obj0 = 0 ;
36938 PyObject * obj1 = 0 ;
36939 char * kwnames[] = {
36940 (char *) "self",(char *) "pt", NULL
36941 };
36942
36943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36945 if (!SWIG_IsOK(res1)) {
36946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36947 }
36948 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36949 {
36950 arg2 = &temp2;
36951 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36952 }
36953 {
36954 PyThreadState* __tstate = wxPyBeginAllowThreads();
36955 (arg1)->CrossHair((wxPoint const &)*arg2);
36956 wxPyEndAllowThreads(__tstate);
36957 if (PyErr_Occurred()) SWIG_fail;
36958 }
36959 resultobj = SWIG_Py_Void();
36960 return resultobj;
36961 fail:
36962 return NULL;
36963 }
36964
36965
36966 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36967 PyObject *resultobj = 0;
36968 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36969 int arg2 ;
36970 int arg3 ;
36971 int arg4 ;
36972 int arg5 ;
36973 int arg6 ;
36974 int arg7 ;
36975 void *argp1 = 0 ;
36976 int res1 = 0 ;
36977 int val2 ;
36978 int ecode2 = 0 ;
36979 int val3 ;
36980 int ecode3 = 0 ;
36981 int val4 ;
36982 int ecode4 = 0 ;
36983 int val5 ;
36984 int ecode5 = 0 ;
36985 int val6 ;
36986 int ecode6 = 0 ;
36987 int val7 ;
36988 int ecode7 = 0 ;
36989 PyObject * obj0 = 0 ;
36990 PyObject * obj1 = 0 ;
36991 PyObject * obj2 = 0 ;
36992 PyObject * obj3 = 0 ;
36993 PyObject * obj4 = 0 ;
36994 PyObject * obj5 = 0 ;
36995 PyObject * obj6 = 0 ;
36996 char * kwnames[] = {
36997 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36998 };
36999
37000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37002 if (!SWIG_IsOK(res1)) {
37003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37004 }
37005 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37006 ecode2 = SWIG_AsVal_int(obj1, &val2);
37007 if (!SWIG_IsOK(ecode2)) {
37008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
37009 }
37010 arg2 = static_cast< int >(val2);
37011 ecode3 = SWIG_AsVal_int(obj2, &val3);
37012 if (!SWIG_IsOK(ecode3)) {
37013 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
37014 }
37015 arg3 = static_cast< int >(val3);
37016 ecode4 = SWIG_AsVal_int(obj3, &val4);
37017 if (!SWIG_IsOK(ecode4)) {
37018 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
37019 }
37020 arg4 = static_cast< int >(val4);
37021 ecode5 = SWIG_AsVal_int(obj4, &val5);
37022 if (!SWIG_IsOK(ecode5)) {
37023 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
37024 }
37025 arg5 = static_cast< int >(val5);
37026 ecode6 = SWIG_AsVal_int(obj5, &val6);
37027 if (!SWIG_IsOK(ecode6)) {
37028 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
37029 }
37030 arg6 = static_cast< int >(val6);
37031 ecode7 = SWIG_AsVal_int(obj6, &val7);
37032 if (!SWIG_IsOK(ecode7)) {
37033 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
37034 }
37035 arg7 = static_cast< int >(val7);
37036 {
37037 PyThreadState* __tstate = wxPyBeginAllowThreads();
37038 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
37039 wxPyEndAllowThreads(__tstate);
37040 if (PyErr_Occurred()) SWIG_fail;
37041 }
37042 resultobj = SWIG_Py_Void();
37043 return resultobj;
37044 fail:
37045 return NULL;
37046 }
37047
37048
37049 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37050 PyObject *resultobj = 0;
37051 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37052 wxPoint *arg2 = 0 ;
37053 wxPoint *arg3 = 0 ;
37054 wxPoint *arg4 = 0 ;
37055 void *argp1 = 0 ;
37056 int res1 = 0 ;
37057 wxPoint temp2 ;
37058 wxPoint temp3 ;
37059 wxPoint temp4 ;
37060 PyObject * obj0 = 0 ;
37061 PyObject * obj1 = 0 ;
37062 PyObject * obj2 = 0 ;
37063 PyObject * obj3 = 0 ;
37064 char * kwnames[] = {
37065 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
37066 };
37067
37068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37070 if (!SWIG_IsOK(res1)) {
37071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37072 }
37073 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37074 {
37075 arg2 = &temp2;
37076 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37077 }
37078 {
37079 arg3 = &temp3;
37080 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37081 }
37082 {
37083 arg4 = &temp4;
37084 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37085 }
37086 {
37087 PyThreadState* __tstate = wxPyBeginAllowThreads();
37088 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
37089 wxPyEndAllowThreads(__tstate);
37090 if (PyErr_Occurred()) SWIG_fail;
37091 }
37092 resultobj = SWIG_Py_Void();
37093 return resultobj;
37094 fail:
37095 return NULL;
37096 }
37097
37098
37099 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37100 PyObject *resultobj = 0;
37101 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37102 int arg2 ;
37103 int arg3 ;
37104 int arg4 ;
37105 int arg5 ;
37106 void *argp1 = 0 ;
37107 int res1 = 0 ;
37108 int val2 ;
37109 int ecode2 = 0 ;
37110 int val3 ;
37111 int ecode3 = 0 ;
37112 int val4 ;
37113 int ecode4 = 0 ;
37114 int val5 ;
37115 int ecode5 = 0 ;
37116 PyObject * obj0 = 0 ;
37117 PyObject * obj1 = 0 ;
37118 PyObject * obj2 = 0 ;
37119 PyObject * obj3 = 0 ;
37120 PyObject * obj4 = 0 ;
37121 char * kwnames[] = {
37122 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37123 };
37124
37125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37127 if (!SWIG_IsOK(res1)) {
37128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37129 }
37130 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37131 ecode2 = SWIG_AsVal_int(obj1, &val2);
37132 if (!SWIG_IsOK(ecode2)) {
37133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
37134 }
37135 arg2 = static_cast< int >(val2);
37136 ecode3 = SWIG_AsVal_int(obj2, &val3);
37137 if (!SWIG_IsOK(ecode3)) {
37138 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
37139 }
37140 arg3 = static_cast< int >(val3);
37141 ecode4 = SWIG_AsVal_int(obj3, &val4);
37142 if (!SWIG_IsOK(ecode4)) {
37143 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
37144 }
37145 arg4 = static_cast< int >(val4);
37146 ecode5 = SWIG_AsVal_int(obj4, &val5);
37147 if (!SWIG_IsOK(ecode5)) {
37148 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
37149 }
37150 arg5 = static_cast< int >(val5);
37151 {
37152 PyThreadState* __tstate = wxPyBeginAllowThreads();
37153 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
37154 wxPyEndAllowThreads(__tstate);
37155 if (PyErr_Occurred()) SWIG_fail;
37156 }
37157 resultobj = SWIG_Py_Void();
37158 return resultobj;
37159 fail:
37160 return NULL;
37161 }
37162
37163
37164 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37165 PyObject *resultobj = 0;
37166 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37167 wxRect *arg2 = 0 ;
37168 void *argp1 = 0 ;
37169 int res1 = 0 ;
37170 wxRect temp2 ;
37171 PyObject * obj0 = 0 ;
37172 PyObject * obj1 = 0 ;
37173 char * kwnames[] = {
37174 (char *) "self",(char *) "rect", NULL
37175 };
37176
37177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
37178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37179 if (!SWIG_IsOK(res1)) {
37180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37181 }
37182 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37183 {
37184 arg2 = &temp2;
37185 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37186 }
37187 {
37188 PyThreadState* __tstate = wxPyBeginAllowThreads();
37189 (arg1)->DrawCheckMark((wxRect const &)*arg2);
37190 wxPyEndAllowThreads(__tstate);
37191 if (PyErr_Occurred()) SWIG_fail;
37192 }
37193 resultobj = SWIG_Py_Void();
37194 return resultobj;
37195 fail:
37196 return NULL;
37197 }
37198
37199
37200 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37201 PyObject *resultobj = 0;
37202 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37203 int arg2 ;
37204 int arg3 ;
37205 int arg4 ;
37206 int arg5 ;
37207 double arg6 ;
37208 double arg7 ;
37209 void *argp1 = 0 ;
37210 int res1 = 0 ;
37211 int val2 ;
37212 int ecode2 = 0 ;
37213 int val3 ;
37214 int ecode3 = 0 ;
37215 int val4 ;
37216 int ecode4 = 0 ;
37217 int val5 ;
37218 int ecode5 = 0 ;
37219 double val6 ;
37220 int ecode6 = 0 ;
37221 double val7 ;
37222 int ecode7 = 0 ;
37223 PyObject * obj0 = 0 ;
37224 PyObject * obj1 = 0 ;
37225 PyObject * obj2 = 0 ;
37226 PyObject * obj3 = 0 ;
37227 PyObject * obj4 = 0 ;
37228 PyObject * obj5 = 0 ;
37229 PyObject * obj6 = 0 ;
37230 char * kwnames[] = {
37231 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
37232 };
37233
37234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37236 if (!SWIG_IsOK(res1)) {
37237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37238 }
37239 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37240 ecode2 = SWIG_AsVal_int(obj1, &val2);
37241 if (!SWIG_IsOK(ecode2)) {
37242 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
37243 }
37244 arg2 = static_cast< int >(val2);
37245 ecode3 = SWIG_AsVal_int(obj2, &val3);
37246 if (!SWIG_IsOK(ecode3)) {
37247 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
37248 }
37249 arg3 = static_cast< int >(val3);
37250 ecode4 = SWIG_AsVal_int(obj3, &val4);
37251 if (!SWIG_IsOK(ecode4)) {
37252 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
37253 }
37254 arg4 = static_cast< int >(val4);
37255 ecode5 = SWIG_AsVal_int(obj4, &val5);
37256 if (!SWIG_IsOK(ecode5)) {
37257 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
37258 }
37259 arg5 = static_cast< int >(val5);
37260 ecode6 = SWIG_AsVal_double(obj5, &val6);
37261 if (!SWIG_IsOK(ecode6)) {
37262 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
37263 }
37264 arg6 = static_cast< double >(val6);
37265 ecode7 = SWIG_AsVal_double(obj6, &val7);
37266 if (!SWIG_IsOK(ecode7)) {
37267 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
37268 }
37269 arg7 = static_cast< double >(val7);
37270 {
37271 PyThreadState* __tstate = wxPyBeginAllowThreads();
37272 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
37273 wxPyEndAllowThreads(__tstate);
37274 if (PyErr_Occurred()) SWIG_fail;
37275 }
37276 resultobj = SWIG_Py_Void();
37277 return resultobj;
37278 fail:
37279 return NULL;
37280 }
37281
37282
37283 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37284 PyObject *resultobj = 0;
37285 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37286 wxPoint *arg2 = 0 ;
37287 wxSize *arg3 = 0 ;
37288 double arg4 ;
37289 double arg5 ;
37290 void *argp1 = 0 ;
37291 int res1 = 0 ;
37292 wxPoint temp2 ;
37293 wxSize temp3 ;
37294 double val4 ;
37295 int ecode4 = 0 ;
37296 double val5 ;
37297 int ecode5 = 0 ;
37298 PyObject * obj0 = 0 ;
37299 PyObject * obj1 = 0 ;
37300 PyObject * obj2 = 0 ;
37301 PyObject * obj3 = 0 ;
37302 PyObject * obj4 = 0 ;
37303 char * kwnames[] = {
37304 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
37305 };
37306
37307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37309 if (!SWIG_IsOK(res1)) {
37310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37311 }
37312 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37313 {
37314 arg2 = &temp2;
37315 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37316 }
37317 {
37318 arg3 = &temp3;
37319 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37320 }
37321 ecode4 = SWIG_AsVal_double(obj3, &val4);
37322 if (!SWIG_IsOK(ecode4)) {
37323 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
37324 }
37325 arg4 = static_cast< double >(val4);
37326 ecode5 = SWIG_AsVal_double(obj4, &val5);
37327 if (!SWIG_IsOK(ecode5)) {
37328 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
37329 }
37330 arg5 = static_cast< double >(val5);
37331 {
37332 PyThreadState* __tstate = wxPyBeginAllowThreads();
37333 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
37334 wxPyEndAllowThreads(__tstate);
37335 if (PyErr_Occurred()) SWIG_fail;
37336 }
37337 resultobj = SWIG_Py_Void();
37338 return resultobj;
37339 fail:
37340 return NULL;
37341 }
37342
37343
37344 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37345 PyObject *resultobj = 0;
37346 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37347 int arg2 ;
37348 int arg3 ;
37349 void *argp1 = 0 ;
37350 int res1 = 0 ;
37351 int val2 ;
37352 int ecode2 = 0 ;
37353 int val3 ;
37354 int ecode3 = 0 ;
37355 PyObject * obj0 = 0 ;
37356 PyObject * obj1 = 0 ;
37357 PyObject * obj2 = 0 ;
37358 char * kwnames[] = {
37359 (char *) "self",(char *) "x",(char *) "y", NULL
37360 };
37361
37362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37364 if (!SWIG_IsOK(res1)) {
37365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37366 }
37367 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37368 ecode2 = SWIG_AsVal_int(obj1, &val2);
37369 if (!SWIG_IsOK(ecode2)) {
37370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
37371 }
37372 arg2 = static_cast< int >(val2);
37373 ecode3 = SWIG_AsVal_int(obj2, &val3);
37374 if (!SWIG_IsOK(ecode3)) {
37375 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
37376 }
37377 arg3 = static_cast< int >(val3);
37378 {
37379 PyThreadState* __tstate = wxPyBeginAllowThreads();
37380 (arg1)->DrawPoint(arg2,arg3);
37381 wxPyEndAllowThreads(__tstate);
37382 if (PyErr_Occurred()) SWIG_fail;
37383 }
37384 resultobj = SWIG_Py_Void();
37385 return resultobj;
37386 fail:
37387 return NULL;
37388 }
37389
37390
37391 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37392 PyObject *resultobj = 0;
37393 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37394 wxPoint *arg2 = 0 ;
37395 void *argp1 = 0 ;
37396 int res1 = 0 ;
37397 wxPoint temp2 ;
37398 PyObject * obj0 = 0 ;
37399 PyObject * obj1 = 0 ;
37400 char * kwnames[] = {
37401 (char *) "self",(char *) "pt", NULL
37402 };
37403
37404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
37405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37406 if (!SWIG_IsOK(res1)) {
37407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37408 }
37409 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37410 {
37411 arg2 = &temp2;
37412 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37413 }
37414 {
37415 PyThreadState* __tstate = wxPyBeginAllowThreads();
37416 (arg1)->DrawPoint((wxPoint const &)*arg2);
37417 wxPyEndAllowThreads(__tstate);
37418 if (PyErr_Occurred()) SWIG_fail;
37419 }
37420 resultobj = SWIG_Py_Void();
37421 return resultobj;
37422 fail:
37423 return NULL;
37424 }
37425
37426
37427 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37428 PyObject *resultobj = 0;
37429 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37430 int arg2 ;
37431 int arg3 ;
37432 int arg4 ;
37433 int arg5 ;
37434 void *argp1 = 0 ;
37435 int res1 = 0 ;
37436 int val2 ;
37437 int ecode2 = 0 ;
37438 int val3 ;
37439 int ecode3 = 0 ;
37440 int val4 ;
37441 int ecode4 = 0 ;
37442 int val5 ;
37443 int ecode5 = 0 ;
37444 PyObject * obj0 = 0 ;
37445 PyObject * obj1 = 0 ;
37446 PyObject * obj2 = 0 ;
37447 PyObject * obj3 = 0 ;
37448 PyObject * obj4 = 0 ;
37449 char * kwnames[] = {
37450 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37451 };
37452
37453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37455 if (!SWIG_IsOK(res1)) {
37456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37457 }
37458 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37459 ecode2 = SWIG_AsVal_int(obj1, &val2);
37460 if (!SWIG_IsOK(ecode2)) {
37461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
37462 }
37463 arg2 = static_cast< int >(val2);
37464 ecode3 = SWIG_AsVal_int(obj2, &val3);
37465 if (!SWIG_IsOK(ecode3)) {
37466 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
37467 }
37468 arg3 = static_cast< int >(val3);
37469 ecode4 = SWIG_AsVal_int(obj3, &val4);
37470 if (!SWIG_IsOK(ecode4)) {
37471 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
37472 }
37473 arg4 = static_cast< int >(val4);
37474 ecode5 = SWIG_AsVal_int(obj4, &val5);
37475 if (!SWIG_IsOK(ecode5)) {
37476 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
37477 }
37478 arg5 = static_cast< int >(val5);
37479 {
37480 PyThreadState* __tstate = wxPyBeginAllowThreads();
37481 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
37482 wxPyEndAllowThreads(__tstate);
37483 if (PyErr_Occurred()) SWIG_fail;
37484 }
37485 resultobj = SWIG_Py_Void();
37486 return resultobj;
37487 fail:
37488 return NULL;
37489 }
37490
37491
37492 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37493 PyObject *resultobj = 0;
37494 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37495 wxRect *arg2 = 0 ;
37496 void *argp1 = 0 ;
37497 int res1 = 0 ;
37498 wxRect temp2 ;
37499 PyObject * obj0 = 0 ;
37500 PyObject * obj1 = 0 ;
37501 char * kwnames[] = {
37502 (char *) "self",(char *) "rect", NULL
37503 };
37504
37505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
37506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37507 if (!SWIG_IsOK(res1)) {
37508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37509 }
37510 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37511 {
37512 arg2 = &temp2;
37513 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37514 }
37515 {
37516 PyThreadState* __tstate = wxPyBeginAllowThreads();
37517 (arg1)->DrawRectangle((wxRect const &)*arg2);
37518 wxPyEndAllowThreads(__tstate);
37519 if (PyErr_Occurred()) SWIG_fail;
37520 }
37521 resultobj = SWIG_Py_Void();
37522 return resultobj;
37523 fail:
37524 return NULL;
37525 }
37526
37527
37528 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37529 PyObject *resultobj = 0;
37530 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37531 wxPoint *arg2 = 0 ;
37532 wxSize *arg3 = 0 ;
37533 void *argp1 = 0 ;
37534 int res1 = 0 ;
37535 wxPoint temp2 ;
37536 wxSize temp3 ;
37537 PyObject * obj0 = 0 ;
37538 PyObject * obj1 = 0 ;
37539 PyObject * obj2 = 0 ;
37540 char * kwnames[] = {
37541 (char *) "self",(char *) "pt",(char *) "sz", NULL
37542 };
37543
37544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37546 if (!SWIG_IsOK(res1)) {
37547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37548 }
37549 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37550 {
37551 arg2 = &temp2;
37552 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37553 }
37554 {
37555 arg3 = &temp3;
37556 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37557 }
37558 {
37559 PyThreadState* __tstate = wxPyBeginAllowThreads();
37560 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
37561 wxPyEndAllowThreads(__tstate);
37562 if (PyErr_Occurred()) SWIG_fail;
37563 }
37564 resultobj = SWIG_Py_Void();
37565 return resultobj;
37566 fail:
37567 return NULL;
37568 }
37569
37570
37571 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37572 PyObject *resultobj = 0;
37573 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37574 int arg2 ;
37575 int arg3 ;
37576 int arg4 ;
37577 int arg5 ;
37578 double arg6 ;
37579 void *argp1 = 0 ;
37580 int res1 = 0 ;
37581 int val2 ;
37582 int ecode2 = 0 ;
37583 int val3 ;
37584 int ecode3 = 0 ;
37585 int val4 ;
37586 int ecode4 = 0 ;
37587 int val5 ;
37588 int ecode5 = 0 ;
37589 double val6 ;
37590 int ecode6 = 0 ;
37591 PyObject * obj0 = 0 ;
37592 PyObject * obj1 = 0 ;
37593 PyObject * obj2 = 0 ;
37594 PyObject * obj3 = 0 ;
37595 PyObject * obj4 = 0 ;
37596 PyObject * obj5 = 0 ;
37597 char * kwnames[] = {
37598 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
37599 };
37600
37601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37603 if (!SWIG_IsOK(res1)) {
37604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37605 }
37606 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37607 ecode2 = SWIG_AsVal_int(obj1, &val2);
37608 if (!SWIG_IsOK(ecode2)) {
37609 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
37610 }
37611 arg2 = static_cast< int >(val2);
37612 ecode3 = SWIG_AsVal_int(obj2, &val3);
37613 if (!SWIG_IsOK(ecode3)) {
37614 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
37615 }
37616 arg3 = static_cast< int >(val3);
37617 ecode4 = SWIG_AsVal_int(obj3, &val4);
37618 if (!SWIG_IsOK(ecode4)) {
37619 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
37620 }
37621 arg4 = static_cast< int >(val4);
37622 ecode5 = SWIG_AsVal_int(obj4, &val5);
37623 if (!SWIG_IsOK(ecode5)) {
37624 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
37625 }
37626 arg5 = static_cast< int >(val5);
37627 ecode6 = SWIG_AsVal_double(obj5, &val6);
37628 if (!SWIG_IsOK(ecode6)) {
37629 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
37630 }
37631 arg6 = static_cast< double >(val6);
37632 {
37633 PyThreadState* __tstate = wxPyBeginAllowThreads();
37634 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
37635 wxPyEndAllowThreads(__tstate);
37636 if (PyErr_Occurred()) SWIG_fail;
37637 }
37638 resultobj = SWIG_Py_Void();
37639 return resultobj;
37640 fail:
37641 return NULL;
37642 }
37643
37644
37645 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37646 PyObject *resultobj = 0;
37647 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37648 wxRect *arg2 = 0 ;
37649 double arg3 ;
37650 void *argp1 = 0 ;
37651 int res1 = 0 ;
37652 wxRect temp2 ;
37653 double val3 ;
37654 int ecode3 = 0 ;
37655 PyObject * obj0 = 0 ;
37656 PyObject * obj1 = 0 ;
37657 PyObject * obj2 = 0 ;
37658 char * kwnames[] = {
37659 (char *) "self",(char *) "r",(char *) "radius", NULL
37660 };
37661
37662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37664 if (!SWIG_IsOK(res1)) {
37665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37666 }
37667 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37668 {
37669 arg2 = &temp2;
37670 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37671 }
37672 ecode3 = SWIG_AsVal_double(obj2, &val3);
37673 if (!SWIG_IsOK(ecode3)) {
37674 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
37675 }
37676 arg3 = static_cast< double >(val3);
37677 {
37678 PyThreadState* __tstate = wxPyBeginAllowThreads();
37679 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
37680 wxPyEndAllowThreads(__tstate);
37681 if (PyErr_Occurred()) SWIG_fail;
37682 }
37683 resultobj = SWIG_Py_Void();
37684 return resultobj;
37685 fail:
37686 return NULL;
37687 }
37688
37689
37690 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37691 PyObject *resultobj = 0;
37692 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37693 wxPoint *arg2 = 0 ;
37694 wxSize *arg3 = 0 ;
37695 double arg4 ;
37696 void *argp1 = 0 ;
37697 int res1 = 0 ;
37698 wxPoint temp2 ;
37699 wxSize temp3 ;
37700 double val4 ;
37701 int ecode4 = 0 ;
37702 PyObject * obj0 = 0 ;
37703 PyObject * obj1 = 0 ;
37704 PyObject * obj2 = 0 ;
37705 PyObject * obj3 = 0 ;
37706 char * kwnames[] = {
37707 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
37708 };
37709
37710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37712 if (!SWIG_IsOK(res1)) {
37713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37714 }
37715 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37716 {
37717 arg2 = &temp2;
37718 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37719 }
37720 {
37721 arg3 = &temp3;
37722 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37723 }
37724 ecode4 = SWIG_AsVal_double(obj3, &val4);
37725 if (!SWIG_IsOK(ecode4)) {
37726 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
37727 }
37728 arg4 = static_cast< double >(val4);
37729 {
37730 PyThreadState* __tstate = wxPyBeginAllowThreads();
37731 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
37732 wxPyEndAllowThreads(__tstate);
37733 if (PyErr_Occurred()) SWIG_fail;
37734 }
37735 resultobj = SWIG_Py_Void();
37736 return resultobj;
37737 fail:
37738 return NULL;
37739 }
37740
37741
37742 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37743 PyObject *resultobj = 0;
37744 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37745 int arg2 ;
37746 int arg3 ;
37747 int arg4 ;
37748 void *argp1 = 0 ;
37749 int res1 = 0 ;
37750 int val2 ;
37751 int ecode2 = 0 ;
37752 int val3 ;
37753 int ecode3 = 0 ;
37754 int val4 ;
37755 int ecode4 = 0 ;
37756 PyObject * obj0 = 0 ;
37757 PyObject * obj1 = 0 ;
37758 PyObject * obj2 = 0 ;
37759 PyObject * obj3 = 0 ;
37760 char * kwnames[] = {
37761 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
37762 };
37763
37764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37766 if (!SWIG_IsOK(res1)) {
37767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37768 }
37769 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37770 ecode2 = SWIG_AsVal_int(obj1, &val2);
37771 if (!SWIG_IsOK(ecode2)) {
37772 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
37773 }
37774 arg2 = static_cast< int >(val2);
37775 ecode3 = SWIG_AsVal_int(obj2, &val3);
37776 if (!SWIG_IsOK(ecode3)) {
37777 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
37778 }
37779 arg3 = static_cast< int >(val3);
37780 ecode4 = SWIG_AsVal_int(obj3, &val4);
37781 if (!SWIG_IsOK(ecode4)) {
37782 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
37783 }
37784 arg4 = static_cast< int >(val4);
37785 {
37786 PyThreadState* __tstate = wxPyBeginAllowThreads();
37787 (arg1)->DrawCircle(arg2,arg3,arg4);
37788 wxPyEndAllowThreads(__tstate);
37789 if (PyErr_Occurred()) SWIG_fail;
37790 }
37791 resultobj = SWIG_Py_Void();
37792 return resultobj;
37793 fail:
37794 return NULL;
37795 }
37796
37797
37798 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37799 PyObject *resultobj = 0;
37800 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37801 wxPoint *arg2 = 0 ;
37802 int arg3 ;
37803 void *argp1 = 0 ;
37804 int res1 = 0 ;
37805 wxPoint temp2 ;
37806 int val3 ;
37807 int ecode3 = 0 ;
37808 PyObject * obj0 = 0 ;
37809 PyObject * obj1 = 0 ;
37810 PyObject * obj2 = 0 ;
37811 char * kwnames[] = {
37812 (char *) "self",(char *) "pt",(char *) "radius", NULL
37813 };
37814
37815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37817 if (!SWIG_IsOK(res1)) {
37818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37819 }
37820 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37821 {
37822 arg2 = &temp2;
37823 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37824 }
37825 ecode3 = SWIG_AsVal_int(obj2, &val3);
37826 if (!SWIG_IsOK(ecode3)) {
37827 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
37828 }
37829 arg3 = static_cast< int >(val3);
37830 {
37831 PyThreadState* __tstate = wxPyBeginAllowThreads();
37832 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
37833 wxPyEndAllowThreads(__tstate);
37834 if (PyErr_Occurred()) SWIG_fail;
37835 }
37836 resultobj = SWIG_Py_Void();
37837 return resultobj;
37838 fail:
37839 return NULL;
37840 }
37841
37842
37843 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37844 PyObject *resultobj = 0;
37845 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37846 int arg2 ;
37847 int arg3 ;
37848 int arg4 ;
37849 int arg5 ;
37850 void *argp1 = 0 ;
37851 int res1 = 0 ;
37852 int val2 ;
37853 int ecode2 = 0 ;
37854 int val3 ;
37855 int ecode3 = 0 ;
37856 int val4 ;
37857 int ecode4 = 0 ;
37858 int val5 ;
37859 int ecode5 = 0 ;
37860 PyObject * obj0 = 0 ;
37861 PyObject * obj1 = 0 ;
37862 PyObject * obj2 = 0 ;
37863 PyObject * obj3 = 0 ;
37864 PyObject * obj4 = 0 ;
37865 char * kwnames[] = {
37866 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37867 };
37868
37869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37871 if (!SWIG_IsOK(res1)) {
37872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37873 }
37874 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37875 ecode2 = SWIG_AsVal_int(obj1, &val2);
37876 if (!SWIG_IsOK(ecode2)) {
37877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
37878 }
37879 arg2 = static_cast< int >(val2);
37880 ecode3 = SWIG_AsVal_int(obj2, &val3);
37881 if (!SWIG_IsOK(ecode3)) {
37882 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
37883 }
37884 arg3 = static_cast< int >(val3);
37885 ecode4 = SWIG_AsVal_int(obj3, &val4);
37886 if (!SWIG_IsOK(ecode4)) {
37887 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
37888 }
37889 arg4 = static_cast< int >(val4);
37890 ecode5 = SWIG_AsVal_int(obj4, &val5);
37891 if (!SWIG_IsOK(ecode5)) {
37892 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
37893 }
37894 arg5 = static_cast< int >(val5);
37895 {
37896 PyThreadState* __tstate = wxPyBeginAllowThreads();
37897 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
37898 wxPyEndAllowThreads(__tstate);
37899 if (PyErr_Occurred()) SWIG_fail;
37900 }
37901 resultobj = SWIG_Py_Void();
37902 return resultobj;
37903 fail:
37904 return NULL;
37905 }
37906
37907
37908 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37909 PyObject *resultobj = 0;
37910 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37911 wxRect *arg2 = 0 ;
37912 void *argp1 = 0 ;
37913 int res1 = 0 ;
37914 wxRect temp2 ;
37915 PyObject * obj0 = 0 ;
37916 PyObject * obj1 = 0 ;
37917 char * kwnames[] = {
37918 (char *) "self",(char *) "rect", NULL
37919 };
37920
37921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
37922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37923 if (!SWIG_IsOK(res1)) {
37924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37925 }
37926 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37927 {
37928 arg2 = &temp2;
37929 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37930 }
37931 {
37932 PyThreadState* __tstate = wxPyBeginAllowThreads();
37933 (arg1)->DrawEllipse((wxRect const &)*arg2);
37934 wxPyEndAllowThreads(__tstate);
37935 if (PyErr_Occurred()) SWIG_fail;
37936 }
37937 resultobj = SWIG_Py_Void();
37938 return resultobj;
37939 fail:
37940 return NULL;
37941 }
37942
37943
37944 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37945 PyObject *resultobj = 0;
37946 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37947 wxPoint *arg2 = 0 ;
37948 wxSize *arg3 = 0 ;
37949 void *argp1 = 0 ;
37950 int res1 = 0 ;
37951 wxPoint temp2 ;
37952 wxSize temp3 ;
37953 PyObject * obj0 = 0 ;
37954 PyObject * obj1 = 0 ;
37955 PyObject * obj2 = 0 ;
37956 char * kwnames[] = {
37957 (char *) "self",(char *) "pt",(char *) "sz", NULL
37958 };
37959
37960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37962 if (!SWIG_IsOK(res1)) {
37963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37964 }
37965 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37966 {
37967 arg2 = &temp2;
37968 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37969 }
37970 {
37971 arg3 = &temp3;
37972 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37973 }
37974 {
37975 PyThreadState* __tstate = wxPyBeginAllowThreads();
37976 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37977 wxPyEndAllowThreads(__tstate);
37978 if (PyErr_Occurred()) SWIG_fail;
37979 }
37980 resultobj = SWIG_Py_Void();
37981 return resultobj;
37982 fail:
37983 return NULL;
37984 }
37985
37986
37987 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37988 PyObject *resultobj = 0;
37989 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37990 wxIcon *arg2 = 0 ;
37991 int arg3 ;
37992 int arg4 ;
37993 void *argp1 = 0 ;
37994 int res1 = 0 ;
37995 void *argp2 = 0 ;
37996 int res2 = 0 ;
37997 int val3 ;
37998 int ecode3 = 0 ;
37999 int val4 ;
38000 int ecode4 = 0 ;
38001 PyObject * obj0 = 0 ;
38002 PyObject * obj1 = 0 ;
38003 PyObject * obj2 = 0 ;
38004 PyObject * obj3 = 0 ;
38005 char * kwnames[] = {
38006 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
38007 };
38008
38009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38011 if (!SWIG_IsOK(res1)) {
38012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38013 }
38014 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38015 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
38016 if (!SWIG_IsOK(res2)) {
38017 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
38018 }
38019 if (!argp2) {
38020 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
38021 }
38022 arg2 = reinterpret_cast< wxIcon * >(argp2);
38023 ecode3 = SWIG_AsVal_int(obj2, &val3);
38024 if (!SWIG_IsOK(ecode3)) {
38025 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
38026 }
38027 arg3 = static_cast< int >(val3);
38028 ecode4 = SWIG_AsVal_int(obj3, &val4);
38029 if (!SWIG_IsOK(ecode4)) {
38030 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
38031 }
38032 arg4 = static_cast< int >(val4);
38033 {
38034 PyThreadState* __tstate = wxPyBeginAllowThreads();
38035 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
38036 wxPyEndAllowThreads(__tstate);
38037 if (PyErr_Occurred()) SWIG_fail;
38038 }
38039 resultobj = SWIG_Py_Void();
38040 return resultobj;
38041 fail:
38042 return NULL;
38043 }
38044
38045
38046 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38047 PyObject *resultobj = 0;
38048 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38049 wxIcon *arg2 = 0 ;
38050 wxPoint *arg3 = 0 ;
38051 void *argp1 = 0 ;
38052 int res1 = 0 ;
38053 void *argp2 = 0 ;
38054 int res2 = 0 ;
38055 wxPoint temp3 ;
38056 PyObject * obj0 = 0 ;
38057 PyObject * obj1 = 0 ;
38058 PyObject * obj2 = 0 ;
38059 char * kwnames[] = {
38060 (char *) "self",(char *) "icon",(char *) "pt", NULL
38061 };
38062
38063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38065 if (!SWIG_IsOK(res1)) {
38066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38067 }
38068 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38069 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
38070 if (!SWIG_IsOK(res2)) {
38071 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
38072 }
38073 if (!argp2) {
38074 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
38075 }
38076 arg2 = reinterpret_cast< wxIcon * >(argp2);
38077 {
38078 arg3 = &temp3;
38079 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38080 }
38081 {
38082 PyThreadState* __tstate = wxPyBeginAllowThreads();
38083 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
38084 wxPyEndAllowThreads(__tstate);
38085 if (PyErr_Occurred()) SWIG_fail;
38086 }
38087 resultobj = SWIG_Py_Void();
38088 return resultobj;
38089 fail:
38090 return NULL;
38091 }
38092
38093
38094 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38095 PyObject *resultobj = 0;
38096 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38097 wxBitmap *arg2 = 0 ;
38098 int arg3 ;
38099 int arg4 ;
38100 bool arg5 = (bool) false ;
38101 void *argp1 = 0 ;
38102 int res1 = 0 ;
38103 void *argp2 = 0 ;
38104 int res2 = 0 ;
38105 int val3 ;
38106 int ecode3 = 0 ;
38107 int val4 ;
38108 int ecode4 = 0 ;
38109 bool val5 ;
38110 int ecode5 = 0 ;
38111 PyObject * obj0 = 0 ;
38112 PyObject * obj1 = 0 ;
38113 PyObject * obj2 = 0 ;
38114 PyObject * obj3 = 0 ;
38115 PyObject * obj4 = 0 ;
38116 char * kwnames[] = {
38117 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
38118 };
38119
38120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38122 if (!SWIG_IsOK(res1)) {
38123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38124 }
38125 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38126 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
38127 if (!SWIG_IsOK(res2)) {
38128 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38129 }
38130 if (!argp2) {
38131 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38132 }
38133 arg2 = reinterpret_cast< wxBitmap * >(argp2);
38134 ecode3 = SWIG_AsVal_int(obj2, &val3);
38135 if (!SWIG_IsOK(ecode3)) {
38136 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
38137 }
38138 arg3 = static_cast< int >(val3);
38139 ecode4 = SWIG_AsVal_int(obj3, &val4);
38140 if (!SWIG_IsOK(ecode4)) {
38141 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
38142 }
38143 arg4 = static_cast< int >(val4);
38144 if (obj4) {
38145 ecode5 = SWIG_AsVal_bool(obj4, &val5);
38146 if (!SWIG_IsOK(ecode5)) {
38147 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
38148 }
38149 arg5 = static_cast< bool >(val5);
38150 }
38151 {
38152 PyThreadState* __tstate = wxPyBeginAllowThreads();
38153 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
38154 wxPyEndAllowThreads(__tstate);
38155 if (PyErr_Occurred()) SWIG_fail;
38156 }
38157 resultobj = SWIG_Py_Void();
38158 return resultobj;
38159 fail:
38160 return NULL;
38161 }
38162
38163
38164 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38165 PyObject *resultobj = 0;
38166 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38167 wxBitmap *arg2 = 0 ;
38168 wxPoint *arg3 = 0 ;
38169 bool arg4 = (bool) false ;
38170 void *argp1 = 0 ;
38171 int res1 = 0 ;
38172 void *argp2 = 0 ;
38173 int res2 = 0 ;
38174 wxPoint temp3 ;
38175 bool val4 ;
38176 int ecode4 = 0 ;
38177 PyObject * obj0 = 0 ;
38178 PyObject * obj1 = 0 ;
38179 PyObject * obj2 = 0 ;
38180 PyObject * obj3 = 0 ;
38181 char * kwnames[] = {
38182 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
38183 };
38184
38185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38187 if (!SWIG_IsOK(res1)) {
38188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38189 }
38190 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38191 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
38192 if (!SWIG_IsOK(res2)) {
38193 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38194 }
38195 if (!argp2) {
38196 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38197 }
38198 arg2 = reinterpret_cast< wxBitmap * >(argp2);
38199 {
38200 arg3 = &temp3;
38201 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38202 }
38203 if (obj3) {
38204 ecode4 = SWIG_AsVal_bool(obj3, &val4);
38205 if (!SWIG_IsOK(ecode4)) {
38206 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
38207 }
38208 arg4 = static_cast< bool >(val4);
38209 }
38210 {
38211 PyThreadState* __tstate = wxPyBeginAllowThreads();
38212 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
38213 wxPyEndAllowThreads(__tstate);
38214 if (PyErr_Occurred()) SWIG_fail;
38215 }
38216 resultobj = SWIG_Py_Void();
38217 return resultobj;
38218 fail:
38219 return NULL;
38220 }
38221
38222
38223 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38224 PyObject *resultobj = 0;
38225 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38226 wxString *arg2 = 0 ;
38227 int arg3 ;
38228 int arg4 ;
38229 void *argp1 = 0 ;
38230 int res1 = 0 ;
38231 bool temp2 = false ;
38232 int val3 ;
38233 int ecode3 = 0 ;
38234 int val4 ;
38235 int ecode4 = 0 ;
38236 PyObject * obj0 = 0 ;
38237 PyObject * obj1 = 0 ;
38238 PyObject * obj2 = 0 ;
38239 PyObject * obj3 = 0 ;
38240 char * kwnames[] = {
38241 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
38242 };
38243
38244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38246 if (!SWIG_IsOK(res1)) {
38247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38248 }
38249 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38250 {
38251 arg2 = wxString_in_helper(obj1);
38252 if (arg2 == NULL) SWIG_fail;
38253 temp2 = true;
38254 }
38255 ecode3 = SWIG_AsVal_int(obj2, &val3);
38256 if (!SWIG_IsOK(ecode3)) {
38257 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
38258 }
38259 arg3 = static_cast< int >(val3);
38260 ecode4 = SWIG_AsVal_int(obj3, &val4);
38261 if (!SWIG_IsOK(ecode4)) {
38262 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
38263 }
38264 arg4 = static_cast< int >(val4);
38265 {
38266 PyThreadState* __tstate = wxPyBeginAllowThreads();
38267 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
38268 wxPyEndAllowThreads(__tstate);
38269 if (PyErr_Occurred()) SWIG_fail;
38270 }
38271 resultobj = SWIG_Py_Void();
38272 {
38273 if (temp2)
38274 delete arg2;
38275 }
38276 return resultobj;
38277 fail:
38278 {
38279 if (temp2)
38280 delete arg2;
38281 }
38282 return NULL;
38283 }
38284
38285
38286 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38287 PyObject *resultobj = 0;
38288 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38289 wxString *arg2 = 0 ;
38290 wxPoint *arg3 = 0 ;
38291 void *argp1 = 0 ;
38292 int res1 = 0 ;
38293 bool temp2 = false ;
38294 wxPoint temp3 ;
38295 PyObject * obj0 = 0 ;
38296 PyObject * obj1 = 0 ;
38297 PyObject * obj2 = 0 ;
38298 char * kwnames[] = {
38299 (char *) "self",(char *) "text",(char *) "pt", NULL
38300 };
38301
38302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38304 if (!SWIG_IsOK(res1)) {
38305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38306 }
38307 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38308 {
38309 arg2 = wxString_in_helper(obj1);
38310 if (arg2 == NULL) SWIG_fail;
38311 temp2 = true;
38312 }
38313 {
38314 arg3 = &temp3;
38315 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38316 }
38317 {
38318 PyThreadState* __tstate = wxPyBeginAllowThreads();
38319 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
38320 wxPyEndAllowThreads(__tstate);
38321 if (PyErr_Occurred()) SWIG_fail;
38322 }
38323 resultobj = SWIG_Py_Void();
38324 {
38325 if (temp2)
38326 delete arg2;
38327 }
38328 return resultobj;
38329 fail:
38330 {
38331 if (temp2)
38332 delete arg2;
38333 }
38334 return NULL;
38335 }
38336
38337
38338 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38339 PyObject *resultobj = 0;
38340 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38341 wxString *arg2 = 0 ;
38342 int arg3 ;
38343 int arg4 ;
38344 double arg5 ;
38345 void *argp1 = 0 ;
38346 int res1 = 0 ;
38347 bool temp2 = false ;
38348 int val3 ;
38349 int ecode3 = 0 ;
38350 int val4 ;
38351 int ecode4 = 0 ;
38352 double val5 ;
38353 int ecode5 = 0 ;
38354 PyObject * obj0 = 0 ;
38355 PyObject * obj1 = 0 ;
38356 PyObject * obj2 = 0 ;
38357 PyObject * obj3 = 0 ;
38358 PyObject * obj4 = 0 ;
38359 char * kwnames[] = {
38360 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
38361 };
38362
38363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38365 if (!SWIG_IsOK(res1)) {
38366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38367 }
38368 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38369 {
38370 arg2 = wxString_in_helper(obj1);
38371 if (arg2 == NULL) SWIG_fail;
38372 temp2 = true;
38373 }
38374 ecode3 = SWIG_AsVal_int(obj2, &val3);
38375 if (!SWIG_IsOK(ecode3)) {
38376 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
38377 }
38378 arg3 = static_cast< int >(val3);
38379 ecode4 = SWIG_AsVal_int(obj3, &val4);
38380 if (!SWIG_IsOK(ecode4)) {
38381 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
38382 }
38383 arg4 = static_cast< int >(val4);
38384 ecode5 = SWIG_AsVal_double(obj4, &val5);
38385 if (!SWIG_IsOK(ecode5)) {
38386 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
38387 }
38388 arg5 = static_cast< double >(val5);
38389 {
38390 PyThreadState* __tstate = wxPyBeginAllowThreads();
38391 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
38392 wxPyEndAllowThreads(__tstate);
38393 if (PyErr_Occurred()) SWIG_fail;
38394 }
38395 resultobj = SWIG_Py_Void();
38396 {
38397 if (temp2)
38398 delete arg2;
38399 }
38400 return resultobj;
38401 fail:
38402 {
38403 if (temp2)
38404 delete arg2;
38405 }
38406 return NULL;
38407 }
38408
38409
38410 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38411 PyObject *resultobj = 0;
38412 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38413 wxString *arg2 = 0 ;
38414 wxPoint *arg3 = 0 ;
38415 double arg4 ;
38416 void *argp1 = 0 ;
38417 int res1 = 0 ;
38418 bool temp2 = false ;
38419 wxPoint temp3 ;
38420 double val4 ;
38421 int ecode4 = 0 ;
38422 PyObject * obj0 = 0 ;
38423 PyObject * obj1 = 0 ;
38424 PyObject * obj2 = 0 ;
38425 PyObject * obj3 = 0 ;
38426 char * kwnames[] = {
38427 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
38428 };
38429
38430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38432 if (!SWIG_IsOK(res1)) {
38433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38434 }
38435 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38436 {
38437 arg2 = wxString_in_helper(obj1);
38438 if (arg2 == NULL) SWIG_fail;
38439 temp2 = true;
38440 }
38441 {
38442 arg3 = &temp3;
38443 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38444 }
38445 ecode4 = SWIG_AsVal_double(obj3, &val4);
38446 if (!SWIG_IsOK(ecode4)) {
38447 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
38448 }
38449 arg4 = static_cast< double >(val4);
38450 {
38451 PyThreadState* __tstate = wxPyBeginAllowThreads();
38452 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
38453 wxPyEndAllowThreads(__tstate);
38454 if (PyErr_Occurred()) SWIG_fail;
38455 }
38456 resultobj = SWIG_Py_Void();
38457 {
38458 if (temp2)
38459 delete arg2;
38460 }
38461 return resultobj;
38462 fail:
38463 {
38464 if (temp2)
38465 delete arg2;
38466 }
38467 return NULL;
38468 }
38469
38470
38471 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38472 PyObject *resultobj = 0;
38473 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38474 int arg2 ;
38475 wxPoint *arg3 = (wxPoint *) 0 ;
38476 int arg4 = (int) 0 ;
38477 int arg5 = (int) 0 ;
38478 void *argp1 = 0 ;
38479 int res1 = 0 ;
38480 int val4 ;
38481 int ecode4 = 0 ;
38482 int val5 ;
38483 int ecode5 = 0 ;
38484 PyObject * obj0 = 0 ;
38485 PyObject * obj1 = 0 ;
38486 PyObject * obj2 = 0 ;
38487 PyObject * obj3 = 0 ;
38488 char * kwnames[] = {
38489 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
38490 };
38491
38492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38494 if (!SWIG_IsOK(res1)) {
38495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38496 }
38497 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38498 {
38499 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38500 if (arg3 == NULL) SWIG_fail;
38501 }
38502 if (obj2) {
38503 ecode4 = SWIG_AsVal_int(obj2, &val4);
38504 if (!SWIG_IsOK(ecode4)) {
38505 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
38506 }
38507 arg4 = static_cast< int >(val4);
38508 }
38509 if (obj3) {
38510 ecode5 = SWIG_AsVal_int(obj3, &val5);
38511 if (!SWIG_IsOK(ecode5)) {
38512 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
38513 }
38514 arg5 = static_cast< int >(val5);
38515 }
38516 {
38517 PyThreadState* __tstate = wxPyBeginAllowThreads();
38518 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
38519 wxPyEndAllowThreads(__tstate);
38520 if (PyErr_Occurred()) SWIG_fail;
38521 }
38522 resultobj = SWIG_Py_Void();
38523 {
38524 if (arg3) delete [] arg3;
38525 }
38526 return resultobj;
38527 fail:
38528 {
38529 if (arg3) delete [] arg3;
38530 }
38531 return NULL;
38532 }
38533
38534
38535 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38536 PyObject *resultobj = 0;
38537 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38538 int arg2 ;
38539 wxPoint *arg3 = (wxPoint *) 0 ;
38540 int arg4 = (int) 0 ;
38541 int arg5 = (int) 0 ;
38542 int arg6 = (int) wxODDEVEN_RULE ;
38543 void *argp1 = 0 ;
38544 int res1 = 0 ;
38545 int val4 ;
38546 int ecode4 = 0 ;
38547 int val5 ;
38548 int ecode5 = 0 ;
38549 int val6 ;
38550 int ecode6 = 0 ;
38551 PyObject * obj0 = 0 ;
38552 PyObject * obj1 = 0 ;
38553 PyObject * obj2 = 0 ;
38554 PyObject * obj3 = 0 ;
38555 PyObject * obj4 = 0 ;
38556 char * kwnames[] = {
38557 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
38558 };
38559
38560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38562 if (!SWIG_IsOK(res1)) {
38563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38564 }
38565 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38566 {
38567 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38568 if (arg3 == NULL) SWIG_fail;
38569 }
38570 if (obj2) {
38571 ecode4 = SWIG_AsVal_int(obj2, &val4);
38572 if (!SWIG_IsOK(ecode4)) {
38573 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
38574 }
38575 arg4 = static_cast< int >(val4);
38576 }
38577 if (obj3) {
38578 ecode5 = SWIG_AsVal_int(obj3, &val5);
38579 if (!SWIG_IsOK(ecode5)) {
38580 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
38581 }
38582 arg5 = static_cast< int >(val5);
38583 }
38584 if (obj4) {
38585 ecode6 = SWIG_AsVal_int(obj4, &val6);
38586 if (!SWIG_IsOK(ecode6)) {
38587 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
38588 }
38589 arg6 = static_cast< int >(val6);
38590 }
38591 {
38592 PyThreadState* __tstate = wxPyBeginAllowThreads();
38593 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
38594 wxPyEndAllowThreads(__tstate);
38595 if (PyErr_Occurred()) SWIG_fail;
38596 }
38597 resultobj = SWIG_Py_Void();
38598 {
38599 if (arg3) delete [] arg3;
38600 }
38601 return resultobj;
38602 fail:
38603 {
38604 if (arg3) delete [] arg3;
38605 }
38606 return NULL;
38607 }
38608
38609
38610 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38611 PyObject *resultobj = 0;
38612 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38613 wxString *arg2 = 0 ;
38614 wxRect *arg3 = 0 ;
38615 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38616 int arg5 = (int) -1 ;
38617 void *argp1 = 0 ;
38618 int res1 = 0 ;
38619 bool temp2 = false ;
38620 wxRect temp3 ;
38621 int val4 ;
38622 int ecode4 = 0 ;
38623 int val5 ;
38624 int ecode5 = 0 ;
38625 PyObject * obj0 = 0 ;
38626 PyObject * obj1 = 0 ;
38627 PyObject * obj2 = 0 ;
38628 PyObject * obj3 = 0 ;
38629 PyObject * obj4 = 0 ;
38630 char * kwnames[] = {
38631 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38632 };
38633
38634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38636 if (!SWIG_IsOK(res1)) {
38637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38638 }
38639 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38640 {
38641 arg2 = wxString_in_helper(obj1);
38642 if (arg2 == NULL) SWIG_fail;
38643 temp2 = true;
38644 }
38645 {
38646 arg3 = &temp3;
38647 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
38648 }
38649 if (obj3) {
38650 ecode4 = SWIG_AsVal_int(obj3, &val4);
38651 if (!SWIG_IsOK(ecode4)) {
38652 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
38653 }
38654 arg4 = static_cast< int >(val4);
38655 }
38656 if (obj4) {
38657 ecode5 = SWIG_AsVal_int(obj4, &val5);
38658 if (!SWIG_IsOK(ecode5)) {
38659 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
38660 }
38661 arg5 = static_cast< int >(val5);
38662 }
38663 {
38664 PyThreadState* __tstate = wxPyBeginAllowThreads();
38665 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
38666 wxPyEndAllowThreads(__tstate);
38667 if (PyErr_Occurred()) SWIG_fail;
38668 }
38669 resultobj = SWIG_Py_Void();
38670 {
38671 if (temp2)
38672 delete arg2;
38673 }
38674 return resultobj;
38675 fail:
38676 {
38677 if (temp2)
38678 delete arg2;
38679 }
38680 return NULL;
38681 }
38682
38683
38684 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38685 PyObject *resultobj = 0;
38686 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38687 wxString *arg2 = 0 ;
38688 wxBitmap *arg3 = 0 ;
38689 wxRect *arg4 = 0 ;
38690 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38691 int arg6 = (int) -1 ;
38692 void *argp1 = 0 ;
38693 int res1 = 0 ;
38694 bool temp2 = false ;
38695 void *argp3 = 0 ;
38696 int res3 = 0 ;
38697 wxRect temp4 ;
38698 int val5 ;
38699 int ecode5 = 0 ;
38700 int val6 ;
38701 int ecode6 = 0 ;
38702 PyObject * obj0 = 0 ;
38703 PyObject * obj1 = 0 ;
38704 PyObject * obj2 = 0 ;
38705 PyObject * obj3 = 0 ;
38706 PyObject * obj4 = 0 ;
38707 PyObject * obj5 = 0 ;
38708 char * kwnames[] = {
38709 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38710 };
38711
38712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38714 if (!SWIG_IsOK(res1)) {
38715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38716 }
38717 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38718 {
38719 arg2 = wxString_in_helper(obj1);
38720 if (arg2 == NULL) SWIG_fail;
38721 temp2 = true;
38722 }
38723 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
38724 if (!SWIG_IsOK(res3)) {
38725 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38726 }
38727 if (!argp3) {
38728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38729 }
38730 arg3 = reinterpret_cast< wxBitmap * >(argp3);
38731 {
38732 arg4 = &temp4;
38733 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
38734 }
38735 if (obj4) {
38736 ecode5 = SWIG_AsVal_int(obj4, &val5);
38737 if (!SWIG_IsOK(ecode5)) {
38738 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
38739 }
38740 arg5 = static_cast< int >(val5);
38741 }
38742 if (obj5) {
38743 ecode6 = SWIG_AsVal_int(obj5, &val6);
38744 if (!SWIG_IsOK(ecode6)) {
38745 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
38746 }
38747 arg6 = static_cast< int >(val6);
38748 }
38749 {
38750 PyThreadState* __tstate = wxPyBeginAllowThreads();
38751 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
38752 wxPyEndAllowThreads(__tstate);
38753 if (PyErr_Occurred()) SWIG_fail;
38754 }
38755 resultobj = SWIG_Py_Void();
38756 {
38757 if (temp2)
38758 delete arg2;
38759 }
38760 return resultobj;
38761 fail:
38762 {
38763 if (temp2)
38764 delete arg2;
38765 }
38766 return NULL;
38767 }
38768
38769
38770 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38771 PyObject *resultobj = 0;
38772 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38773 int arg2 ;
38774 wxPoint *arg3 = (wxPoint *) 0 ;
38775 void *argp1 = 0 ;
38776 int res1 = 0 ;
38777 PyObject * obj0 = 0 ;
38778 PyObject * obj1 = 0 ;
38779 char * kwnames[] = {
38780 (char *) "self",(char *) "points", NULL
38781 };
38782
38783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
38784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38785 if (!SWIG_IsOK(res1)) {
38786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38787 }
38788 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38789 {
38790 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38791 if (arg3 == NULL) SWIG_fail;
38792 }
38793 {
38794 PyThreadState* __tstate = wxPyBeginAllowThreads();
38795 (arg1)->DrawSpline(arg2,arg3);
38796 wxPyEndAllowThreads(__tstate);
38797 if (PyErr_Occurred()) SWIG_fail;
38798 }
38799 resultobj = SWIG_Py_Void();
38800 {
38801 if (arg3) delete [] arg3;
38802 }
38803 return resultobj;
38804 fail:
38805 {
38806 if (arg3) delete [] arg3;
38807 }
38808 return NULL;
38809 }
38810
38811
38812 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38813 PyObject *resultobj = 0;
38814 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38815 void *argp1 = 0 ;
38816 int res1 = 0 ;
38817 PyObject *swig_obj[1] ;
38818
38819 if (!args) SWIG_fail;
38820 swig_obj[0] = args;
38821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38822 if (!SWIG_IsOK(res1)) {
38823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38824 }
38825 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38826 {
38827 PyThreadState* __tstate = wxPyBeginAllowThreads();
38828 (arg1)->Clear();
38829 wxPyEndAllowThreads(__tstate);
38830 if (PyErr_Occurred()) SWIG_fail;
38831 }
38832 resultobj = SWIG_Py_Void();
38833 return resultobj;
38834 fail:
38835 return NULL;
38836 }
38837
38838
38839 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38840 PyObject *resultobj = 0;
38841 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38842 wxFont *arg2 = 0 ;
38843 void *argp1 = 0 ;
38844 int res1 = 0 ;
38845 void *argp2 = 0 ;
38846 int res2 = 0 ;
38847 PyObject * obj0 = 0 ;
38848 PyObject * obj1 = 0 ;
38849 char * kwnames[] = {
38850 (char *) "self",(char *) "font", NULL
38851 };
38852
38853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
38854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38855 if (!SWIG_IsOK(res1)) {
38856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38857 }
38858 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38859 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
38860 if (!SWIG_IsOK(res2)) {
38861 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38862 }
38863 if (!argp2) {
38864 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38865 }
38866 arg2 = reinterpret_cast< wxFont * >(argp2);
38867 {
38868 PyThreadState* __tstate = wxPyBeginAllowThreads();
38869 (arg1)->SetFont((wxFont const &)*arg2);
38870 wxPyEndAllowThreads(__tstate);
38871 if (PyErr_Occurred()) SWIG_fail;
38872 }
38873 resultobj = SWIG_Py_Void();
38874 return resultobj;
38875 fail:
38876 return NULL;
38877 }
38878
38879
38880 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38881 PyObject *resultobj = 0;
38882 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38883 wxPen *arg2 = 0 ;
38884 void *argp1 = 0 ;
38885 int res1 = 0 ;
38886 void *argp2 = 0 ;
38887 int res2 = 0 ;
38888 PyObject * obj0 = 0 ;
38889 PyObject * obj1 = 0 ;
38890 char * kwnames[] = {
38891 (char *) "self",(char *) "pen", NULL
38892 };
38893
38894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
38895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38896 if (!SWIG_IsOK(res1)) {
38897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38898 }
38899 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38900 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
38901 if (!SWIG_IsOK(res2)) {
38902 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38903 }
38904 if (!argp2) {
38905 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38906 }
38907 arg2 = reinterpret_cast< wxPen * >(argp2);
38908 {
38909 PyThreadState* __tstate = wxPyBeginAllowThreads();
38910 (arg1)->SetPen((wxPen const &)*arg2);
38911 wxPyEndAllowThreads(__tstate);
38912 if (PyErr_Occurred()) SWIG_fail;
38913 }
38914 resultobj = SWIG_Py_Void();
38915 return resultobj;
38916 fail:
38917 return NULL;
38918 }
38919
38920
38921 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38922 PyObject *resultobj = 0;
38923 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38924 wxBrush *arg2 = 0 ;
38925 void *argp1 = 0 ;
38926 int res1 = 0 ;
38927 void *argp2 = 0 ;
38928 int res2 = 0 ;
38929 PyObject * obj0 = 0 ;
38930 PyObject * obj1 = 0 ;
38931 char * kwnames[] = {
38932 (char *) "self",(char *) "brush", NULL
38933 };
38934
38935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
38936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38937 if (!SWIG_IsOK(res1)) {
38938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38939 }
38940 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38941 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38942 if (!SWIG_IsOK(res2)) {
38943 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38944 }
38945 if (!argp2) {
38946 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38947 }
38948 arg2 = reinterpret_cast< wxBrush * >(argp2);
38949 {
38950 PyThreadState* __tstate = wxPyBeginAllowThreads();
38951 (arg1)->SetBrush((wxBrush const &)*arg2);
38952 wxPyEndAllowThreads(__tstate);
38953 if (PyErr_Occurred()) SWIG_fail;
38954 }
38955 resultobj = SWIG_Py_Void();
38956 return resultobj;
38957 fail:
38958 return NULL;
38959 }
38960
38961
38962 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38963 PyObject *resultobj = 0;
38964 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38965 wxBrush *arg2 = 0 ;
38966 void *argp1 = 0 ;
38967 int res1 = 0 ;
38968 void *argp2 = 0 ;
38969 int res2 = 0 ;
38970 PyObject * obj0 = 0 ;
38971 PyObject * obj1 = 0 ;
38972 char * kwnames[] = {
38973 (char *) "self",(char *) "brush", NULL
38974 };
38975
38976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38978 if (!SWIG_IsOK(res1)) {
38979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38980 }
38981 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38982 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38983 if (!SWIG_IsOK(res2)) {
38984 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38985 }
38986 if (!argp2) {
38987 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38988 }
38989 arg2 = reinterpret_cast< wxBrush * >(argp2);
38990 {
38991 PyThreadState* __tstate = wxPyBeginAllowThreads();
38992 (arg1)->SetBackground((wxBrush const &)*arg2);
38993 wxPyEndAllowThreads(__tstate);
38994 if (PyErr_Occurred()) SWIG_fail;
38995 }
38996 resultobj = SWIG_Py_Void();
38997 return resultobj;
38998 fail:
38999 return NULL;
39000 }
39001
39002
39003 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39004 PyObject *resultobj = 0;
39005 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39006 int arg2 ;
39007 void *argp1 = 0 ;
39008 int res1 = 0 ;
39009 int val2 ;
39010 int ecode2 = 0 ;
39011 PyObject * obj0 = 0 ;
39012 PyObject * obj1 = 0 ;
39013 char * kwnames[] = {
39014 (char *) "self",(char *) "mode", NULL
39015 };
39016
39017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
39018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39019 if (!SWIG_IsOK(res1)) {
39020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39021 }
39022 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39023 ecode2 = SWIG_AsVal_int(obj1, &val2);
39024 if (!SWIG_IsOK(ecode2)) {
39025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
39026 }
39027 arg2 = static_cast< int >(val2);
39028 {
39029 PyThreadState* __tstate = wxPyBeginAllowThreads();
39030 (arg1)->SetBackgroundMode(arg2);
39031 wxPyEndAllowThreads(__tstate);
39032 if (PyErr_Occurred()) SWIG_fail;
39033 }
39034 resultobj = SWIG_Py_Void();
39035 return resultobj;
39036 fail:
39037 return NULL;
39038 }
39039
39040
39041 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39042 PyObject *resultobj = 0;
39043 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39044 wxPalette *arg2 = 0 ;
39045 void *argp1 = 0 ;
39046 int res1 = 0 ;
39047 void *argp2 = 0 ;
39048 int res2 = 0 ;
39049 PyObject * obj0 = 0 ;
39050 PyObject * obj1 = 0 ;
39051 char * kwnames[] = {
39052 (char *) "self",(char *) "palette", NULL
39053 };
39054
39055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
39056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39057 if (!SWIG_IsOK(res1)) {
39058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39059 }
39060 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39061 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
39062 if (!SWIG_IsOK(res2)) {
39063 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
39064 }
39065 if (!argp2) {
39066 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
39067 }
39068 arg2 = reinterpret_cast< wxPalette * >(argp2);
39069 {
39070 PyThreadState* __tstate = wxPyBeginAllowThreads();
39071 (arg1)->SetPalette((wxPalette const &)*arg2);
39072 wxPyEndAllowThreads(__tstate);
39073 if (PyErr_Occurred()) SWIG_fail;
39074 }
39075 resultobj = SWIG_Py_Void();
39076 return resultobj;
39077 fail:
39078 return NULL;
39079 }
39080
39081
39082 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39083 PyObject *resultobj = 0;
39084 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39085 wxColour *arg2 = 0 ;
39086 void *argp1 = 0 ;
39087 int res1 = 0 ;
39088 wxColour temp2 ;
39089 PyObject * obj0 = 0 ;
39090 PyObject * obj1 = 0 ;
39091 char * kwnames[] = {
39092 (char *) "self",(char *) "colour", NULL
39093 };
39094
39095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
39096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39097 if (!SWIG_IsOK(res1)) {
39098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39099 }
39100 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39101 {
39102 arg2 = &temp2;
39103 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
39104 }
39105 {
39106 PyThreadState* __tstate = wxPyBeginAllowThreads();
39107 (arg1)->SetTextForeground((wxColour const &)*arg2);
39108 wxPyEndAllowThreads(__tstate);
39109 if (PyErr_Occurred()) SWIG_fail;
39110 }
39111 resultobj = SWIG_Py_Void();
39112 return resultobj;
39113 fail:
39114 return NULL;
39115 }
39116
39117
39118 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39119 PyObject *resultobj = 0;
39120 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39121 wxColour *arg2 = 0 ;
39122 void *argp1 = 0 ;
39123 int res1 = 0 ;
39124 wxColour temp2 ;
39125 PyObject * obj0 = 0 ;
39126 PyObject * obj1 = 0 ;
39127 char * kwnames[] = {
39128 (char *) "self",(char *) "colour", NULL
39129 };
39130
39131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
39132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39133 if (!SWIG_IsOK(res1)) {
39134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39135 }
39136 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39137 {
39138 arg2 = &temp2;
39139 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
39140 }
39141 {
39142 PyThreadState* __tstate = wxPyBeginAllowThreads();
39143 (arg1)->SetTextBackground((wxColour const &)*arg2);
39144 wxPyEndAllowThreads(__tstate);
39145 if (PyErr_Occurred()) SWIG_fail;
39146 }
39147 resultobj = SWIG_Py_Void();
39148 return resultobj;
39149 fail:
39150 return NULL;
39151 }
39152
39153
39154 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39155 PyObject *resultobj = 0;
39156 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39157 int arg2 ;
39158 void *argp1 = 0 ;
39159 int res1 = 0 ;
39160 int val2 ;
39161 int ecode2 = 0 ;
39162 PyObject * obj0 = 0 ;
39163 PyObject * obj1 = 0 ;
39164 char * kwnames[] = {
39165 (char *) "self",(char *) "function", NULL
39166 };
39167
39168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
39169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39170 if (!SWIG_IsOK(res1)) {
39171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39172 }
39173 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39174 ecode2 = SWIG_AsVal_int(obj1, &val2);
39175 if (!SWIG_IsOK(ecode2)) {
39176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
39177 }
39178 arg2 = static_cast< int >(val2);
39179 {
39180 PyThreadState* __tstate = wxPyBeginAllowThreads();
39181 (arg1)->SetLogicalFunction(arg2);
39182 wxPyEndAllowThreads(__tstate);
39183 if (PyErr_Occurred()) SWIG_fail;
39184 }
39185 resultobj = SWIG_Py_Void();
39186 return resultobj;
39187 fail:
39188 return NULL;
39189 }
39190
39191
39192 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39193 PyObject *obj;
39194 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39195 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
39196 return SWIG_Py_Void();
39197 }
39198
39199 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39200 return SWIG_Python_InitShadowInstance(args);
39201 }
39202
39203 static PyMethodDef SwigMethods[] = {
39204 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
39205 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
39206 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
39207 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
39208 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
39209 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
39210 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
39211 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39212 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
39213 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
39214 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
39215 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
39216 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
39217 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
39218 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39219 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39220 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
39221 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
39222 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
39223 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39224 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39225 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
39226 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
39227 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
39228 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
39229 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
39230 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
39231 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39232 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39233 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
39234 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
39235 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
39236 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
39237 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
39238 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
39239 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
39240 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
39241 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
39242 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
39243 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
39244 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
39245 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
39246 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39247 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
39248 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39249 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39250 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
39251 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
39252 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
39253 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
39254 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
39255 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
39256 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39257 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39258 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
39259 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
39260 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
39261 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39262 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
39263 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39264 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39265 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
39266 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
39267 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
39268 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
39269 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
39270 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
39271 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
39272 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
39273 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39274 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
39275 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39276 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39277 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
39278 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
39279 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
39280 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
39281 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
39282 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
39283 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
39284 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
39285 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
39286 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
39287 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
39288 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
39289 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
39290 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
39291 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39292 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
39293 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
39294 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
39295 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39296 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39297 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39298 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39299 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39300 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39301 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39302 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
39303 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
39304 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39305 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39306 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
39307 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
39308 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
39309 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
39310 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
39311 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
39312 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
39313 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
39314 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
39315 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
39316 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
39317 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
39318 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
39319 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
39320 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
39321 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
39322 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
39323 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
39324 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
39325 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
39326 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
39327 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
39328 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
39329 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39330 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
39331 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
39332 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39333 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39334 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
39335 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
39336 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
39337 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
39338 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
39339 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
39340 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
39341 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
39342 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
39343 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
39344 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
39345 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
39346 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
39347 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
39348 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
39349 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39350 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
39351 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
39352 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39353 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39354 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
39355 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
39356 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
39357 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
39358 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
39359 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
39360 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
39361 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
39362 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
39363 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
39364 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39365 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39366 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
39367 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
39368 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
39369 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
39370 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
39371 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
39372 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
39373 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
39374 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39375 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39376 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39377 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39378 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39379 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
39380 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
39381 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39382 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
39383 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
39384 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
39385 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
39386 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
39387 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
39388 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
39389 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
39390 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
39391 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39392 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39393 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
39394 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39395 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39396 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39397 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
39398 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
39399 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
39400 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
39401 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39402 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
39403 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
39404 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
39405 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
39406 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
39407 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
39408 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
39409 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39410 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39411 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39412 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39413 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
39414 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
39415 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
39416 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39417 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39418 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
39419 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
39420 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
39421 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39422 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
39423 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39424 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
39425 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
39426 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
39427 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
39428 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
39429 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39430 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
39431 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39432 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
39433 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
39434 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39435 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
39436 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
39437 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39438 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
39439 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
39440 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39441 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
39442 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39443 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39444 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
39445 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
39446 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
39447 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
39448 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
39449 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
39450 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
39451 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
39452 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
39453 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
39454 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
39455 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
39456 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
39457 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
39458 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
39459 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
39460 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
39461 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
39462 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
39463 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
39464 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
39465 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
39466 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
39467 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
39468 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
39469 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
39470 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
39471 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
39472 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
39473 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39474 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39475 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39476 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39477 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39478 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39479 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39480 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39481 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39482 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
39483 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
39484 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
39485 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
39486 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
39487 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
39488 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
39489 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
39490 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
39491 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
39492 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
39493 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
39494 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39495 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
39496 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
39497 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
39498 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39499 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39500 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
39501 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
39502 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
39503 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39504 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39505 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
39506 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39507 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
39508 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
39509 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
39510 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
39511 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
39512 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39513 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
39514 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
39515 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
39516 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
39517 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
39518 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
39519 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
39520 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39521 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
39522 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
39523 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39524 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39525 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
39526 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39527 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39528 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
39529 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
39530 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
39531 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
39532 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
39533 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
39534 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
39535 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
39536 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
39537 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
39538 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
39539 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
39540 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
39541 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39542 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39543 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39544 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39545 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39546 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39547 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39548 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39549 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39550 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
39551 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
39552 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
39553 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
39554 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
39555 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
39556 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
39557 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
39558 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39559 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
39560 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
39561 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
39562 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
39563 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39564 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
39565 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
39566 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
39567 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
39568 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
39569 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
39570 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
39571 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
39572 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
39573 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
39574 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
39575 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
39576 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
39577 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
39578 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
39579 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
39580 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
39581 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
39582 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
39583 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
39584 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
39585 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
39586 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
39587 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
39588 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
39589 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
39590 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
39591 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
39592 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
39593 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
39594 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39595 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
39596 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39597 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
39598 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
39599 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
39600 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
39601 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
39602 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
39603 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
39604 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39605 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
39606 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
39607 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
39608 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
39609 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
39610 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
39611 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
39612 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
39613 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
39614 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
39615 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39616 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39617 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
39618 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
39619 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
39620 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
39621 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39622 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39623 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
39624 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
39625 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39626 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39627 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39628 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39629 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39630 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39631 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39632 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39633 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39634 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39635 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39636 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39637 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39638 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39639 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39640 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39641 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39642 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39643 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39644 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39645 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39646 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39647 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39648 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39649 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39650 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39651 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39652 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39653 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39654 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39655 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39656 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39657 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39658 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
39659 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39660 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39661 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39662 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39663 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39664 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
39665 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39666 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39667 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39668 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39669 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39670 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
39671 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
39672 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
39673 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
39674 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
39675 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39676 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39677 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39678 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39679 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39680 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39681 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
39682 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
39683 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
39684 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
39685 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
39686 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39687 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39688 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39689 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39690 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
39691 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
39692 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
39693 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
39694 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
39695 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
39696 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39697 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39698 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
39699 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
39700 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39701 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39702 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
39703 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
39704 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
39705 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
39706 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
39707 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
39708 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
39709 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
39710 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
39711 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
39712 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
39713 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
39714 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39715 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39716 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
39717 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
39718 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
39719 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
39720 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
39721 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
39722 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
39723 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
39724 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39725 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39726 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
39727 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
39728 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39729 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39730 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
39731 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
39732 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39733 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
39734 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
39735 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39736 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
39737 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
39738 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
39739 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
39740 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
39741 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
39742 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
39743 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
39744 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
39745 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
39746 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
39747 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
39748 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
39749 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
39750 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
39751 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
39752 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39753 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
39754 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
39755 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
39756 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39757 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
39758 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
39759 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
39760 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39761 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
39762 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
39763 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
39764 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
39765 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
39766 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
39767 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
39768 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
39769 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
39770 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
39771 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
39772 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
39773 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
39774 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
39775 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
39776 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
39777 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
39778 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
39779 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
39780 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39781 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
39782 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
39783 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
39784 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
39785 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
39786 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
39787 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
39788 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
39789 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
39790 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
39791 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
39792 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39793 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
39794 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
39795 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
39796 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39797 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
39798 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
39799 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39800 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
39801 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
39802 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
39803 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
39804 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
39805 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
39806 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
39807 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
39808 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
39809 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
39810 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
39811 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
39812 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
39813 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
39814 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
39815 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
39816 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
39817 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
39818 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
39819 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
39820 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
39821 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
39822 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
39823 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
39824 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
39825 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
39826 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
39827 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
39828 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
39829 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
39830 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
39831 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
39832 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
39833 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
39834 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
39835 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
39836 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
39837 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
39838 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
39839 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
39840 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
39841 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
39842 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
39843 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
39844 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
39845 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
39846 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
39847 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
39848 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
39849 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
39850 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
39851 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39852 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
39853 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39854 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
39855 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39856 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39857 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39858 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39859 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
39860 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
39861 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
39862 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
39863 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
39864 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
39865 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
39866 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
39867 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
39868 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
39869 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
39870 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
39871 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
39872 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39873 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39874 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39875 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39876 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39877 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39878 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
39879 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
39880 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
39881 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
39882 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
39883 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
39884 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
39885 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
39886 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
39887 { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL},
39888 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
39889 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39890 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
39891 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39892 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39893 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39894 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39895 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39896 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39897 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
39898 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
39899 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39900 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
39901 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
39902 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
39903 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39904 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39905 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39906 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39907 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39908 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
39909 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
39910 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
39911 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
39912 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
39913 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
39914 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
39915 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39916 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39917 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39918 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39919 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39920 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39921 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39922 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
39923 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
39924 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
39925 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39926 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39927 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39928 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39929 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
39930 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
39931 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
39932 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
39933 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
39934 { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL},
39935 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
39936 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39937 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
39938 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39939 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39940 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39941 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39942 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39943 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39944 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
39945 { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL},
39946 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
39947 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
39948 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
39949 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
39950 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
39951 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
39952 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
39953 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
39954 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
39955 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
39956 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39957 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39958 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39959 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39960 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
39961 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39962 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39963 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39964 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39965 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39966 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39967 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39968 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39969 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39970 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39971 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39972 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39973 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39974 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39975 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
39976 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39977 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39978 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39979 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39980 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39981 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39982 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39983 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39984 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39985 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39986 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39987 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39988 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39989 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39990 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
39991 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39992 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
39993 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
39994 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
39995 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39996 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39997 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39998 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
39999 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
40000 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
40001 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
40002 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
40003 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
40004 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
40005 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
40006 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
40007 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
40008 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
40009 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
40010 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
40011 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
40012 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
40013 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
40014 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
40015 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
40016 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
40017 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
40018 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
40019 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
40020 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
40021 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
40022 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
40023 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
40024 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
40025 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
40026 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
40027 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
40028 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40029 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
40030 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
40031 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
40032 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
40033 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
40034 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
40035 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
40036 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
40037 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
40038 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
40039 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
40040 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
40041 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
40042 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
40043 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
40044 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
40045 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
40046 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
40047 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
40048 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
40049 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
40050 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
40051 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
40052 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
40053 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
40054 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
40055 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
40056 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
40057 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
40058 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
40059 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
40060 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
40061 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
40062 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
40063 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
40064 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
40065 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
40066 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
40067 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
40068 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
40069 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
40070 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
40071 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
40072 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
40073 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
40074 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
40075 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
40076 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
40077 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
40078 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
40079 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
40080 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
40081 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
40082 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
40083 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
40084 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
40085 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
40086 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
40087 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
40088 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
40089 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
40090 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
40091 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
40092 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
40093 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
40094 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
40095 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
40096 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
40097 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
40098 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
40099 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
40100 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
40101 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
40102 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40103 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
40104 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
40105 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
40106 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40107 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
40108 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40109 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
40110 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
40111 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
40112 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40113 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40114 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40115 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40116 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
40117 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40118 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40119 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
40120 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40121 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
40122 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
40123 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
40124 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
40125 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40126 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40127 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40128 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40129 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40130 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
40131 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40132 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
40133 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40134 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
40135 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
40136 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40137 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40138 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
40139 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
40140 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
40141 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
40142 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40143 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
40144 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
40145 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
40146 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
40147 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
40148 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
40149 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
40150 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
40151 { NULL, NULL, 0, NULL }
40152 };
40153
40154
40155 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
40156
40157 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
40158 return (void *)((wxClientDC *) ((wxPaintDC *) x));
40159 }
40160 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
40161 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
40162 }
40163 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
40164 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
40165 }
40166 static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
40167 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
40168 }
40169 static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
40170 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
40171 }
40172 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
40173 return (void *)((wxWindowDC *) ((wxClientDC *) x));
40174 }
40175 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
40176 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
40177 }
40178 static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
40179 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40180 }
40181 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
40182 return (void *)((wxLocale *) ((wxPyLocale *) x));
40183 }
40184 static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
40185 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
40186 }
40187 static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
40188 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
40189 }
40190 static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
40191 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40192 }
40193 static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
40194 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
40195 }
40196 static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
40197 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
40198 }
40199 static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
40200 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
40201 }
40202 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
40203 return (void *)((wxGDIObject *) ((wxIcon *) x));
40204 }
40205 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
40206 return (void *)((wxGDIObject *) ((wxPalette *) x));
40207 }
40208 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
40209 return (void *)((wxGDIObject *) ((wxPen *) x));
40210 }
40211 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
40212 return (void *)((wxGDIObject *) ((wxFont *) x));
40213 }
40214 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
40215 return (void *)((wxGDIObject *) ((wxCursor *) x));
40216 }
40217 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
40218 return (void *)((wxGDIObject *) ((wxBitmap *) x));
40219 }
40220 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
40221 return (void *)((wxGDIObject *) ((wxRegion *) x));
40222 }
40223 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
40224 return (void *)((wxGDIObject *) ((wxBrush *) x));
40225 }
40226 static void *_p_wxGCDCTo_p_wxDC(void *x) {
40227 return (void *)((wxDC *) ((wxGCDC *) x));
40228 }
40229 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
40230 return (void *)((wxDC *) ((wxScreenDC *) x));
40231 }
40232 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
40233 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
40234 }
40235 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
40236 return (void *)((wxDC *) ((wxMirrorDC *) x));
40237 }
40238 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
40239 return (void *)((wxDC *) ((wxWindowDC *) x));
40240 }
40241 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
40242 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
40243 }
40244 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
40245 return (void *)((wxDC *) ((wxMetaFileDC *) x));
40246 }
40247 static void *_p_wxClientDCTo_p_wxDC(void *x) {
40248 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
40249 }
40250 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
40251 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
40252 }
40253 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
40254 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40255 }
40256 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
40257 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
40258 }
40259 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
40260 return (void *)((wxDC *) ((wxPostScriptDC *) x));
40261 }
40262 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
40263 return (void *)((wxDC *) ((wxPrinterDC *) x));
40264 }
40265 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
40266 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
40267 }
40268 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
40269 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
40270 }
40271 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
40272 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
40273 }
40274 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
40275 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
40276 }
40277 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
40278 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
40279 }
40280 static void *_p_wxPenTo_p_wxObject(void *x) {
40281 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
40282 }
40283 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
40284 return (void *)((wxObject *) ((wxRegionIterator *) x));
40285 }
40286 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
40287 return (void *)((wxObject *) ((wxSizerItem *) x));
40288 }
40289 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
40290 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
40291 }
40292 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
40293 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
40294 }
40295 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
40296 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
40297 }
40298 static void *_p_wxIconTo_p_wxObject(void *x) {
40299 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
40300 }
40301 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
40302 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
40303 }
40304 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
40305 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
40306 }
40307 static void *_p_wxSizerTo_p_wxObject(void *x) {
40308 return (void *)((wxObject *) ((wxSizer *) x));
40309 }
40310 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
40311 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
40312 }
40313 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
40314 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
40315 }
40316 static void *_p_wxEventTo_p_wxObject(void *x) {
40317 return (void *)((wxObject *) ((wxEvent *) x));
40318 }
40319 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
40320 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
40321 }
40322 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
40323 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
40324 }
40325 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
40326 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
40327 }
40328 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
40329 return (void *)((wxObject *) ((wxPseudoDC *) x));
40330 }
40331 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
40332 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
40333 }
40334 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
40335 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
40336 }
40337 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
40338 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
40339 }
40340 static void *_p_wxDCTo_p_wxObject(void *x) {
40341 return (void *)((wxObject *) ((wxDC *) x));
40342 }
40343 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
40344 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
40345 }
40346 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
40347 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
40348 }
40349 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
40350 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
40351 }
40352 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
40353 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
40354 }
40355 static void *_p_wxControlTo_p_wxObject(void *x) {
40356 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
40357 }
40358 static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
40359 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
40360 }
40361 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
40362 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
40363 }
40364 static void *_p_wxClientDCTo_p_wxObject(void *x) {
40365 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
40366 }
40367 static void *_p_wxFSFileTo_p_wxObject(void *x) {
40368 return (void *)((wxObject *) ((wxFSFile *) x));
40369 }
40370 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
40371 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
40372 }
40373 static void *_p_wxRegionTo_p_wxObject(void *x) {
40374 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
40375 }
40376 static void *_p_wxPySizerTo_p_wxObject(void *x) {
40377 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
40378 }
40379 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
40380 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
40381 }
40382 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
40383 return (void *)((wxObject *) ((wxGDIObject *) x));
40384 }
40385 static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
40386 return (void *)((wxObject *) ((wxGraphicsObject *) x));
40387 }
40388 static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
40389 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
40390 }
40391 static void *_p_wxEffectsTo_p_wxObject(void *x) {
40392 return (void *)((wxObject *) ((wxEffects *) x));
40393 }
40394 static void *_p_wxPyEventTo_p_wxObject(void *x) {
40395 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
40396 }
40397 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
40398 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
40399 }
40400 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
40401 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
40402 }
40403 static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
40404 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
40405 }
40406 static void *_p_wxShowEventTo_p_wxObject(void *x) {
40407 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
40408 }
40409 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
40410 return (void *)((wxObject *) ((wxMenuItem *) x));
40411 }
40412 static void *_p_wxDateEventTo_p_wxObject(void *x) {
40413 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
40414 }
40415 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
40416 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
40417 }
40418 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
40419 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
40420 }
40421 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
40422 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
40423 }
40424 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
40425 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
40426 }
40427 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
40428 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
40429 }
40430 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
40431 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
40432 }
40433 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
40434 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
40435 }
40436 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
40437 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
40438 }
40439 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
40440 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
40441 }
40442 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
40443 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
40444 }
40445 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
40446 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
40447 }
40448 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
40449 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
40450 }
40451 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
40452 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
40453 }
40454 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
40455 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
40456 }
40457 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
40458 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
40459 }
40460 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
40461 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
40462 }
40463 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
40464 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
40465 }
40466 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
40467 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
40468 }
40469 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
40470 return (void *)((wxObject *) ((wxImageHandler *) x));
40471 }
40472 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
40473 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
40474 }
40475 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
40476 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
40477 }
40478 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
40479 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
40480 }
40481 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
40482 return (void *)((wxObject *) ((wxEvtHandler *) x));
40483 }
40484 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
40485 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
40486 }
40487 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
40488 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
40489 }
40490 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
40491 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40492 }
40493 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
40494 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
40495 }
40496 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
40497 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
40498 }
40499 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
40500 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
40501 }
40502 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
40503 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
40504 }
40505 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
40506 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
40507 }
40508 static void *_p_wxImageTo_p_wxObject(void *x) {
40509 return (void *)((wxObject *) ((wxImage *) x));
40510 }
40511 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
40512 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
40513 }
40514 static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
40515 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
40516 }
40517 static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
40518 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
40519 }
40520 static void *_p_wxPaletteTo_p_wxObject(void *x) {
40521 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
40522 }
40523 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
40524 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
40525 }
40526 static void *_p_wxImageListTo_p_wxObject(void *x) {
40527 return (void *)((wxObject *) ((wxImageList *) x));
40528 }
40529 static void *_p_wxGCDCTo_p_wxObject(void *x) {
40530 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
40531 }
40532 static void *_p_wxCursorTo_p_wxObject(void *x) {
40533 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
40534 }
40535 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
40536 return (void *)((wxObject *) ((wxEncodingConverter *) x));
40537 }
40538 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
40539 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
40540 }
40541 static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
40542 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
40543 }
40544 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
40545 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
40546 }
40547 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
40548 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
40549 }
40550 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
40551 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
40552 }
40553 static void *_p_wxWindowTo_p_wxObject(void *x) {
40554 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
40555 }
40556 static void *_p_wxMenuTo_p_wxObject(void *x) {
40557 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
40558 }
40559 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
40560 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
40561 }
40562 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
40563 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
40564 }
40565 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
40566 return (void *)((wxObject *) ((wxFileSystem *) x));
40567 }
40568 static void *_p_wxBitmapTo_p_wxObject(void *x) {
40569 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
40570 }
40571 static void *_p_wxMaskTo_p_wxObject(void *x) {
40572 return (void *)((wxObject *) ((wxMask *) x));
40573 }
40574 static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
40575 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40576 }
40577 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
40578 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
40579 }
40580 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
40581 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
40582 }
40583 static void *_p_wxPyAppTo_p_wxObject(void *x) {
40584 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
40585 }
40586 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
40587 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
40588 }
40589 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
40590 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
40591 }
40592 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
40593 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
40594 }
40595 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
40596 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
40597 }
40598 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
40599 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
40600 }
40601 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
40602 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
40603 }
40604 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
40605 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
40606 }
40607 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
40608 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
40609 }
40610 static void *_p_wxFontTo_p_wxObject(void *x) {
40611 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
40612 }
40613 static void *_p_wxBrushTo_p_wxObject(void *x) {
40614 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
40615 }
40616 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
40617 return (void *)((wxObject *) ((wxMetaFile *) x));
40618 }
40619 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
40620 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
40621 }
40622 static void *_p_wxColourTo_p_wxObject(void *x) {
40623 return (void *)((wxObject *) ((wxColour *) x));
40624 }
40625 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
40626 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
40627 }
40628 static void *_p_wxValidatorTo_p_wxObject(void *x) {
40629 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
40630 }
40631 static void *_p_wxControlTo_p_wxWindow(void *x) {
40632 return (void *)((wxWindow *) ((wxControl *) x));
40633 }
40634 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
40635 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
40636 }
40637 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
40638 return (void *)((wxWindow *) ((wxMenuBar *) x));
40639 }
40640 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
40641 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
40642 }
40643 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
40644 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
40645 }
40646 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
40647 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
40648 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
40649 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};
40650 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
40651 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
40652 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
40653 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
40654 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
40655 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
40656 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
40657 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
40658 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
40659 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
40660 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
40661 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
40662 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
40663 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
40664 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
40665 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
40666 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
40667 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
40668 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
40669 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
40670 static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
40671 static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
40672 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
40673 static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
40674 static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
40675 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
40676 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
40677 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
40678 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
40679 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
40680 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
40681 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
40682 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
40683 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
40684 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
40685 static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
40686 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
40687 static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
40688 static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
40689 static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
40690 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
40691 static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
40692 static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
40693 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
40694 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
40695 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
40696 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
40697 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
40698 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
40699 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
40700 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
40701 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
40702 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
40703 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
40704 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
40705 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
40706 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
40707 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
40708 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
40709 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
40710 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
40711 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
40712 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
40713 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
40714 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
40715 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
40716 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
40717 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
40718 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
40719 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
40720 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
40721 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
40722 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
40723 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
40724 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
40725 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
40726 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
40727 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
40728 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
40729 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
40730 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
40731 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
40732 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
40733 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
40734 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
40735 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
40736 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
40737 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
40738 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
40739 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
40740 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
40741 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
40742 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
40743 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
40744 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
40745 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
40746 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
40747 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
40748 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
40749 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
40750 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
40751 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
40752 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
40753 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
40754 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
40755 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
40756 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
40757 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
40758 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
40759 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
40760 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
40761 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
40762 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
40763 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
40764 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
40765 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
40766 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
40767 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
40768 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
40769 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
40770 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
40771 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
40772 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
40773 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
40774 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
40775 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
40776 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
40777 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
40778 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
40779 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
40780 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
40781 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
40782 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
40783 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
40784 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
40785 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
40786 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
40787 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
40788 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
40789 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
40790 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
40791 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
40792 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
40793 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
40794 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
40795 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
40796 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
40797 static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
40798 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
40799 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
40800 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
40801 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
40802 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
40803 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
40804 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
40805 static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
40806 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
40807 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
40808 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
40809 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
40810 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
40811 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
40812 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
40813 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
40814 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
40815 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
40816 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
40817
40818 static swig_type_info *swig_type_initial[] = {
40819 &_swigt__p_buffer,
40820 &_swigt__p_char,
40821 &_swigt__p_double,
40822 &_swigt__p_form_ops_t,
40823 &_swigt__p_int,
40824 &_swigt__p_unsigned_char,
40825 &_swigt__p_unsigned_int,
40826 &_swigt__p_unsigned_long,
40827 &_swigt__p_void,
40828 &_swigt__p_wxANIHandler,
40829 &_swigt__p_wxAcceleratorTable,
40830 &_swigt__p_wxActivateEvent,
40831 &_swigt__p_wxAlphaPixelData,
40832 &_swigt__p_wxAlphaPixelData_Accessor,
40833 &_swigt__p_wxAutoBufferedPaintDC,
40834 &_swigt__p_wxBMPHandler,
40835 &_swigt__p_wxBitmap,
40836 &_swigt__p_wxBoxSizer,
40837 &_swigt__p_wxBrush,
40838 &_swigt__p_wxBrushList,
40839 &_swigt__p_wxBufferedDC,
40840 &_swigt__p_wxBufferedPaintDC,
40841 &_swigt__p_wxCURHandler,
40842 &_swigt__p_wxChar,
40843 &_swigt__p_wxChildFocusEvent,
40844 &_swigt__p_wxClientDC,
40845 &_swigt__p_wxClipboardTextEvent,
40846 &_swigt__p_wxCloseEvent,
40847 &_swigt__p_wxColor,
40848 &_swigt__p_wxColour,
40849 &_swigt__p_wxColourDatabase,
40850 &_swigt__p_wxCommandEvent,
40851 &_swigt__p_wxContextMenuEvent,
40852 &_swigt__p_wxControl,
40853 &_swigt__p_wxControlWithItems,
40854 &_swigt__p_wxCursor,
40855 &_swigt__p_wxDC,
40856 &_swigt__p_wxDCBrushChanger,
40857 &_swigt__p_wxDCClipper,
40858 &_swigt__p_wxDCOverlay,
40859 &_swigt__p_wxDCPenChanger,
40860 &_swigt__p_wxDCTextColourChanger,
40861 &_swigt__p_wxDash,
40862 &_swigt__p_wxDateEvent,
40863 &_swigt__p_wxDisplayChangedEvent,
40864 &_swigt__p_wxDropFilesEvent,
40865 &_swigt__p_wxDuplexMode,
40866 &_swigt__p_wxEffects,
40867 &_swigt__p_wxEncodingConverter,
40868 &_swigt__p_wxEraseEvent,
40869 &_swigt__p_wxEvent,
40870 &_swigt__p_wxEvtHandler,
40871 &_swigt__p_wxFSFile,
40872 &_swigt__p_wxFileSystem,
40873 &_swigt__p_wxFlexGridSizer,
40874 &_swigt__p_wxFocusEvent,
40875 &_swigt__p_wxFont,
40876 &_swigt__p_wxFontList,
40877 &_swigt__p_wxFontMapper,
40878 &_swigt__p_wxGBSizerItem,
40879 &_swigt__p_wxGCDC,
40880 &_swigt__p_wxGDIObjListBase,
40881 &_swigt__p_wxGDIObject,
40882 &_swigt__p_wxGIFHandler,
40883 &_swigt__p_wxGraphicsBrush,
40884 &_swigt__p_wxGraphicsContext,
40885 &_swigt__p_wxGraphicsFont,
40886 &_swigt__p_wxGraphicsMatrix,
40887 &_swigt__p_wxGraphicsObject,
40888 &_swigt__p_wxGraphicsPath,
40889 &_swigt__p_wxGraphicsPen,
40890 &_swigt__p_wxGraphicsRenderer,
40891 &_swigt__p_wxGridBagSizer,
40892 &_swigt__p_wxGridSizer,
40893 &_swigt__p_wxHeaderButtonParams,
40894 &_swigt__p_wxICOHandler,
40895 &_swigt__p_wxIcon,
40896 &_swigt__p_wxIconBundle,
40897 &_swigt__p_wxIconLocation,
40898 &_swigt__p_wxIconizeEvent,
40899 &_swigt__p_wxIdleEvent,
40900 &_swigt__p_wxImage,
40901 &_swigt__p_wxImageHandler,
40902 &_swigt__p_wxImageList,
40903 &_swigt__p_wxIndividualLayoutConstraint,
40904 &_swigt__p_wxInitDialogEvent,
40905 &_swigt__p_wxJPEGHandler,
40906 &_swigt__p_wxKeyEvent,
40907 &_swigt__p_wxLanguageInfo,
40908 &_swigt__p_wxLayoutConstraints,
40909 &_swigt__p_wxLocale,
40910 &_swigt__p_wxMask,
40911 &_swigt__p_wxMaximizeEvent,
40912 &_swigt__p_wxMemoryDC,
40913 &_swigt__p_wxMenu,
40914 &_swigt__p_wxMenuBar,
40915 &_swigt__p_wxMenuEvent,
40916 &_swigt__p_wxMenuItem,
40917 &_swigt__p_wxMetaFile,
40918 &_swigt__p_wxMetaFileDC,
40919 &_swigt__p_wxMirrorDC,
40920 &_swigt__p_wxMouseCaptureChangedEvent,
40921 &_swigt__p_wxMouseCaptureLostEvent,
40922 &_swigt__p_wxMouseEvent,
40923 &_swigt__p_wxMoveEvent,
40924 &_swigt__p_wxNativeEncodingInfo,
40925 &_swigt__p_wxNativeFontInfo,
40926 &_swigt__p_wxNativePixelData,
40927 &_swigt__p_wxNativePixelData_Accessor,
40928 &_swigt__p_wxNavigationKeyEvent,
40929 &_swigt__p_wxNcPaintEvent,
40930 &_swigt__p_wxNotifyEvent,
40931 &_swigt__p_wxObject,
40932 &_swigt__p_wxOverlay,
40933 &_swigt__p_wxPCXHandler,
40934 &_swigt__p_wxPNGHandler,
40935 &_swigt__p_wxPNMHandler,
40936 &_swigt__p_wxPaintDC,
40937 &_swigt__p_wxPaintEvent,
40938 &_swigt__p_wxPalette,
40939 &_swigt__p_wxPaletteChangedEvent,
40940 &_swigt__p_wxPaperSize,
40941 &_swigt__p_wxPen,
40942 &_swigt__p_wxPenList,
40943 &_swigt__p_wxPixelDataBase,
40944 &_swigt__p_wxPoint,
40945 &_swigt__p_wxPoint2D,
40946 &_swigt__p_wxPoint2DDouble,
40947 &_swigt__p_wxPostScriptDC,
40948 &_swigt__p_wxPrintData,
40949 &_swigt__p_wxPrinterDC,
40950 &_swigt__p_wxPseudoDC,
40951 &_swigt__p_wxPyApp,
40952 &_swigt__p_wxPyCommandEvent,
40953 &_swigt__p_wxPyEvent,
40954 &_swigt__p_wxPyFontEnumerator,
40955 &_swigt__p_wxPyImageHandler,
40956 &_swigt__p_wxPyLocale,
40957 &_swigt__p_wxPySizer,
40958 &_swigt__p_wxPyValidator,
40959 &_swigt__p_wxQueryNewPaletteEvent,
40960 &_swigt__p_wxRect,
40961 &_swigt__p_wxRect2DDouble,
40962 &_swigt__p_wxRegion,
40963 &_swigt__p_wxRegionIterator,
40964 &_swigt__p_wxRendererNative,
40965 &_swigt__p_wxRendererVersion,
40966 &_swigt__p_wxScreenDC,
40967 &_swigt__p_wxScrollEvent,
40968 &_swigt__p_wxScrollWinEvent,
40969 &_swigt__p_wxSetCursorEvent,
40970 &_swigt__p_wxShowEvent,
40971 &_swigt__p_wxSize,
40972 &_swigt__p_wxSizeEvent,
40973 &_swigt__p_wxSizer,
40974 &_swigt__p_wxSizerItem,
40975 &_swigt__p_wxSplitterRenderParams,
40976 &_swigt__p_wxStaticBoxSizer,
40977 &_swigt__p_wxStdDialogButtonSizer,
40978 &_swigt__p_wxStockGDI,
40979 &_swigt__p_wxString,
40980 &_swigt__p_wxSysColourChangedEvent,
40981 &_swigt__p_wxTGAHandler,
40982 &_swigt__p_wxTIFFHandler,
40983 &_swigt__p_wxUpdateUIEvent,
40984 &_swigt__p_wxValidator,
40985 &_swigt__p_wxWindow,
40986 &_swigt__p_wxWindowCreateEvent,
40987 &_swigt__p_wxWindowDC,
40988 &_swigt__p_wxWindowDestroyEvent,
40989 &_swigt__p_wxXPMHandler,
40990 };
40991
40992 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
40993 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40994 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40995 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40996 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40997 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40998 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40999 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
41000 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
41001 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
41002 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
41003 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
41004 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
41005 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
41006 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
41007 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}};
41008 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
41009 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
41010 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}};
41011 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
41012 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
41013 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
41014 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
41015 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}};
41016 static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
41017 static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
41018 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
41019 static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
41020 static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
41021 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
41022 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
41023 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
41024 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
41025 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
41026 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
41027 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
41028 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
41029 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}};
41030 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}};
41031 static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
41032 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
41033 static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
41034 static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
41035 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}};
41036 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
41037 static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
41038 static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
41039 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
41040 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
41041 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
41042 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
41043 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
41044 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
41045 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
41046 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}};
41047 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
41048 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}};
41049 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
41050 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
41051 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
41052 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
41053 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
41054 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
41055 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
41056 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
41057 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
41058 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
41059 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
41060 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
41061 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
41062 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
41063 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
41064 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
41065 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
41066 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
41067 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
41068 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
41069 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
41070 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
41071 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
41072 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
41073 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
41074 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41075 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41076 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41077 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41078 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
41079 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
41080 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
41081 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
41082 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
41083 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
41084 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
41085 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
41086 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
41087 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
41088 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
41089 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
41090 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
41091 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
41092 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
41093 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
41094 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
41095 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
41096 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
41097 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
41098 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
41099 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
41100 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
41101 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
41102 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
41103 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
41104 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
41105 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
41106 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
41107 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
41108 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
41109 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
41110 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
41111 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
41112 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
41113 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
41114 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
41115 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
41116 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
41117 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
41118 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
41119 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
41120 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
41121 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
41122 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
41123 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
41124 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
41125 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
41126 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
41127 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
41128 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
41129 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
41130 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
41131 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
41132 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
41133 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}};
41134 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
41135 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
41136 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
41137 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
41138 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
41139 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
41140 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}};
41141 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
41142 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
41143 static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
41144 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
41145 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
41146 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
41147 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
41148 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
41149 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
41150 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
41151 static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
41152 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
41153 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
41154 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
41155 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
41156 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
41157 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
41158 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
41159 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
41160 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
41161 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}};
41162 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}};
41163
41164 static swig_cast_info *swig_cast_initial[] = {
41165 _swigc__p_buffer,
41166 _swigc__p_char,
41167 _swigc__p_double,
41168 _swigc__p_form_ops_t,
41169 _swigc__p_int,
41170 _swigc__p_unsigned_char,
41171 _swigc__p_unsigned_int,
41172 _swigc__p_unsigned_long,
41173 _swigc__p_void,
41174 _swigc__p_wxANIHandler,
41175 _swigc__p_wxAcceleratorTable,
41176 _swigc__p_wxActivateEvent,
41177 _swigc__p_wxAlphaPixelData,
41178 _swigc__p_wxAlphaPixelData_Accessor,
41179 _swigc__p_wxAutoBufferedPaintDC,
41180 _swigc__p_wxBMPHandler,
41181 _swigc__p_wxBitmap,
41182 _swigc__p_wxBoxSizer,
41183 _swigc__p_wxBrush,
41184 _swigc__p_wxBrushList,
41185 _swigc__p_wxBufferedDC,
41186 _swigc__p_wxBufferedPaintDC,
41187 _swigc__p_wxCURHandler,
41188 _swigc__p_wxChar,
41189 _swigc__p_wxChildFocusEvent,
41190 _swigc__p_wxClientDC,
41191 _swigc__p_wxClipboardTextEvent,
41192 _swigc__p_wxCloseEvent,
41193 _swigc__p_wxColor,
41194 _swigc__p_wxColour,
41195 _swigc__p_wxColourDatabase,
41196 _swigc__p_wxCommandEvent,
41197 _swigc__p_wxContextMenuEvent,
41198 _swigc__p_wxControl,
41199 _swigc__p_wxControlWithItems,
41200 _swigc__p_wxCursor,
41201 _swigc__p_wxDC,
41202 _swigc__p_wxDCBrushChanger,
41203 _swigc__p_wxDCClipper,
41204 _swigc__p_wxDCOverlay,
41205 _swigc__p_wxDCPenChanger,
41206 _swigc__p_wxDCTextColourChanger,
41207 _swigc__p_wxDash,
41208 _swigc__p_wxDateEvent,
41209 _swigc__p_wxDisplayChangedEvent,
41210 _swigc__p_wxDropFilesEvent,
41211 _swigc__p_wxDuplexMode,
41212 _swigc__p_wxEffects,
41213 _swigc__p_wxEncodingConverter,
41214 _swigc__p_wxEraseEvent,
41215 _swigc__p_wxEvent,
41216 _swigc__p_wxEvtHandler,
41217 _swigc__p_wxFSFile,
41218 _swigc__p_wxFileSystem,
41219 _swigc__p_wxFlexGridSizer,
41220 _swigc__p_wxFocusEvent,
41221 _swigc__p_wxFont,
41222 _swigc__p_wxFontList,
41223 _swigc__p_wxFontMapper,
41224 _swigc__p_wxGBSizerItem,
41225 _swigc__p_wxGCDC,
41226 _swigc__p_wxGDIObjListBase,
41227 _swigc__p_wxGDIObject,
41228 _swigc__p_wxGIFHandler,
41229 _swigc__p_wxGraphicsBrush,
41230 _swigc__p_wxGraphicsContext,
41231 _swigc__p_wxGraphicsFont,
41232 _swigc__p_wxGraphicsMatrix,
41233 _swigc__p_wxGraphicsObject,
41234 _swigc__p_wxGraphicsPath,
41235 _swigc__p_wxGraphicsPen,
41236 _swigc__p_wxGraphicsRenderer,
41237 _swigc__p_wxGridBagSizer,
41238 _swigc__p_wxGridSizer,
41239 _swigc__p_wxHeaderButtonParams,
41240 _swigc__p_wxICOHandler,
41241 _swigc__p_wxIcon,
41242 _swigc__p_wxIconBundle,
41243 _swigc__p_wxIconLocation,
41244 _swigc__p_wxIconizeEvent,
41245 _swigc__p_wxIdleEvent,
41246 _swigc__p_wxImage,
41247 _swigc__p_wxImageHandler,
41248 _swigc__p_wxImageList,
41249 _swigc__p_wxIndividualLayoutConstraint,
41250 _swigc__p_wxInitDialogEvent,
41251 _swigc__p_wxJPEGHandler,
41252 _swigc__p_wxKeyEvent,
41253 _swigc__p_wxLanguageInfo,
41254 _swigc__p_wxLayoutConstraints,
41255 _swigc__p_wxLocale,
41256 _swigc__p_wxMask,
41257 _swigc__p_wxMaximizeEvent,
41258 _swigc__p_wxMemoryDC,
41259 _swigc__p_wxMenu,
41260 _swigc__p_wxMenuBar,
41261 _swigc__p_wxMenuEvent,
41262 _swigc__p_wxMenuItem,
41263 _swigc__p_wxMetaFile,
41264 _swigc__p_wxMetaFileDC,
41265 _swigc__p_wxMirrorDC,
41266 _swigc__p_wxMouseCaptureChangedEvent,
41267 _swigc__p_wxMouseCaptureLostEvent,
41268 _swigc__p_wxMouseEvent,
41269 _swigc__p_wxMoveEvent,
41270 _swigc__p_wxNativeEncodingInfo,
41271 _swigc__p_wxNativeFontInfo,
41272 _swigc__p_wxNativePixelData,
41273 _swigc__p_wxNativePixelData_Accessor,
41274 _swigc__p_wxNavigationKeyEvent,
41275 _swigc__p_wxNcPaintEvent,
41276 _swigc__p_wxNotifyEvent,
41277 _swigc__p_wxObject,
41278 _swigc__p_wxOverlay,
41279 _swigc__p_wxPCXHandler,
41280 _swigc__p_wxPNGHandler,
41281 _swigc__p_wxPNMHandler,
41282 _swigc__p_wxPaintDC,
41283 _swigc__p_wxPaintEvent,
41284 _swigc__p_wxPalette,
41285 _swigc__p_wxPaletteChangedEvent,
41286 _swigc__p_wxPaperSize,
41287 _swigc__p_wxPen,
41288 _swigc__p_wxPenList,
41289 _swigc__p_wxPixelDataBase,
41290 _swigc__p_wxPoint,
41291 _swigc__p_wxPoint2D,
41292 _swigc__p_wxPoint2DDouble,
41293 _swigc__p_wxPostScriptDC,
41294 _swigc__p_wxPrintData,
41295 _swigc__p_wxPrinterDC,
41296 _swigc__p_wxPseudoDC,
41297 _swigc__p_wxPyApp,
41298 _swigc__p_wxPyCommandEvent,
41299 _swigc__p_wxPyEvent,
41300 _swigc__p_wxPyFontEnumerator,
41301 _swigc__p_wxPyImageHandler,
41302 _swigc__p_wxPyLocale,
41303 _swigc__p_wxPySizer,
41304 _swigc__p_wxPyValidator,
41305 _swigc__p_wxQueryNewPaletteEvent,
41306 _swigc__p_wxRect,
41307 _swigc__p_wxRect2DDouble,
41308 _swigc__p_wxRegion,
41309 _swigc__p_wxRegionIterator,
41310 _swigc__p_wxRendererNative,
41311 _swigc__p_wxRendererVersion,
41312 _swigc__p_wxScreenDC,
41313 _swigc__p_wxScrollEvent,
41314 _swigc__p_wxScrollWinEvent,
41315 _swigc__p_wxSetCursorEvent,
41316 _swigc__p_wxShowEvent,
41317 _swigc__p_wxSize,
41318 _swigc__p_wxSizeEvent,
41319 _swigc__p_wxSizer,
41320 _swigc__p_wxSizerItem,
41321 _swigc__p_wxSplitterRenderParams,
41322 _swigc__p_wxStaticBoxSizer,
41323 _swigc__p_wxStdDialogButtonSizer,
41324 _swigc__p_wxStockGDI,
41325 _swigc__p_wxString,
41326 _swigc__p_wxSysColourChangedEvent,
41327 _swigc__p_wxTGAHandler,
41328 _swigc__p_wxTIFFHandler,
41329 _swigc__p_wxUpdateUIEvent,
41330 _swigc__p_wxValidator,
41331 _swigc__p_wxWindow,
41332 _swigc__p_wxWindowCreateEvent,
41333 _swigc__p_wxWindowDC,
41334 _swigc__p_wxWindowDestroyEvent,
41335 _swigc__p_wxXPMHandler,
41336 };
41337
41338
41339 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
41340
41341 static swig_const_info swig_const_table[] = {
41342 {0, 0, 0, 0.0, 0, 0}};
41343
41344 #ifdef __cplusplus
41345 }
41346 #endif
41347 /* -----------------------------------------------------------------------------
41348 * Type initialization:
41349 * This problem is tough by the requirement that no dynamic
41350 * memory is used. Also, since swig_type_info structures store pointers to
41351 * swig_cast_info structures and swig_cast_info structures store pointers back
41352 * to swig_type_info structures, we need some lookup code at initialization.
41353 * The idea is that swig generates all the structures that are needed.
41354 * The runtime then collects these partially filled structures.
41355 * The SWIG_InitializeModule function takes these initial arrays out of
41356 * swig_module, and does all the lookup, filling in the swig_module.types
41357 * array with the correct data and linking the correct swig_cast_info
41358 * structures together.
41359 *
41360 * The generated swig_type_info structures are assigned staticly to an initial
41361 * array. We just loop though that array, and handle each type individually.
41362 * First we lookup if this type has been already loaded, and if so, use the
41363 * loaded structure instead of the generated one. Then we have to fill in the
41364 * cast linked list. The cast data is initially stored in something like a
41365 * two-dimensional array. Each row corresponds to a type (there are the same
41366 * number of rows as there are in the swig_type_initial array). Each entry in
41367 * a column is one of the swig_cast_info structures for that type.
41368 * The cast_initial array is actually an array of arrays, because each row has
41369 * a variable number of columns. So to actually build the cast linked list,
41370 * we find the array of casts associated with the type, and loop through it
41371 * adding the casts to the list. The one last trick we need to do is making
41372 * sure the type pointer in the swig_cast_info struct is correct.
41373 *
41374 * First off, we lookup the cast->type name to see if it is already loaded.
41375 * There are three cases to handle:
41376 * 1) If the cast->type has already been loaded AND the type we are adding
41377 * casting info to has not been loaded (it is in this module), THEN we
41378 * replace the cast->type pointer with the type pointer that has already
41379 * been loaded.
41380 * 2) If BOTH types (the one we are adding casting info to, and the
41381 * cast->type) are loaded, THEN the cast info has already been loaded by
41382 * the previous module so we just ignore it.
41383 * 3) Finally, if cast->type has not already been loaded, then we add that
41384 * swig_cast_info to the linked list (because the cast->type) pointer will
41385 * be correct.
41386 * ----------------------------------------------------------------------------- */
41387
41388 #ifdef __cplusplus
41389 extern "C" {
41390 #if 0
41391 } /* c-mode */
41392 #endif
41393 #endif
41394
41395 #if 0
41396 #define SWIGRUNTIME_DEBUG
41397 #endif
41398
41399 SWIGRUNTIME void
41400 SWIG_InitializeModule(void *clientdata) {
41401 size_t i;
41402 swig_module_info *module_head;
41403 static int init_run = 0;
41404
41405 clientdata = clientdata;
41406
41407 if (init_run) return;
41408 init_run = 1;
41409
41410 /* Initialize the swig_module */
41411 swig_module.type_initial = swig_type_initial;
41412 swig_module.cast_initial = swig_cast_initial;
41413
41414 /* Try and load any already created modules */
41415 module_head = SWIG_GetModule(clientdata);
41416 if (module_head) {
41417 swig_module.next = module_head->next;
41418 module_head->next = &swig_module;
41419 } else {
41420 /* This is the first module loaded */
41421 swig_module.next = &swig_module;
41422 SWIG_SetModule(clientdata, &swig_module);
41423 }
41424
41425 /* Now work on filling in swig_module.types */
41426 #ifdef SWIGRUNTIME_DEBUG
41427 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
41428 #endif
41429 for (i = 0; i < swig_module.size; ++i) {
41430 swig_type_info *type = 0;
41431 swig_type_info *ret;
41432 swig_cast_info *cast;
41433
41434 #ifdef SWIGRUNTIME_DEBUG
41435 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41436 #endif
41437
41438 /* if there is another module already loaded */
41439 if (swig_module.next != &swig_module) {
41440 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
41441 }
41442 if (type) {
41443 /* Overwrite clientdata field */
41444 #ifdef SWIGRUNTIME_DEBUG
41445 printf("SWIG_InitializeModule: found type %s\n", type->name);
41446 #endif
41447 if (swig_module.type_initial[i]->clientdata) {
41448 type->clientdata = swig_module.type_initial[i]->clientdata;
41449 #ifdef SWIGRUNTIME_DEBUG
41450 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
41451 #endif
41452 }
41453 } else {
41454 type = swig_module.type_initial[i];
41455 }
41456
41457 /* Insert casting types */
41458 cast = swig_module.cast_initial[i];
41459 while (cast->type) {
41460 /* Don't need to add information already in the list */
41461 ret = 0;
41462 #ifdef SWIGRUNTIME_DEBUG
41463 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
41464 #endif
41465 if (swig_module.next != &swig_module) {
41466 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
41467 #ifdef SWIGRUNTIME_DEBUG
41468 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
41469 #endif
41470 }
41471 if (ret) {
41472 if (type == swig_module.type_initial[i]) {
41473 #ifdef SWIGRUNTIME_DEBUG
41474 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
41475 #endif
41476 cast->type = ret;
41477 ret = 0;
41478 } else {
41479 /* Check for casting already in the list */
41480 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
41481 #ifdef SWIGRUNTIME_DEBUG
41482 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
41483 #endif
41484 if (!ocast) ret = 0;
41485 }
41486 }
41487
41488 if (!ret) {
41489 #ifdef SWIGRUNTIME_DEBUG
41490 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
41491 #endif
41492 if (type->cast) {
41493 type->cast->prev = cast;
41494 cast->next = type->cast;
41495 }
41496 type->cast = cast;
41497 }
41498 cast++;
41499 }
41500 /* Set entry in modules->types array equal to the type */
41501 swig_module.types[i] = type;
41502 }
41503 swig_module.types[i] = 0;
41504
41505 #ifdef SWIGRUNTIME_DEBUG
41506 printf("**** SWIG_InitializeModule: Cast List ******\n");
41507 for (i = 0; i < swig_module.size; ++i) {
41508 int j = 0;
41509 swig_cast_info *cast = swig_module.cast_initial[i];
41510 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41511 while (cast->type) {
41512 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
41513 cast++;
41514 ++j;
41515 }
41516 printf("---- Total casts: %d\n",j);
41517 }
41518 printf("**** SWIG_InitializeModule: Cast List ******\n");
41519 #endif
41520 }
41521
41522 /* This function will propagate the clientdata field of type to
41523 * any new swig_type_info structures that have been added into the list
41524 * of equivalent types. It is like calling
41525 * SWIG_TypeClientData(type, clientdata) a second time.
41526 */
41527 SWIGRUNTIME void
41528 SWIG_PropagateClientData(void) {
41529 size_t i;
41530 swig_cast_info *equiv;
41531 static int init_run = 0;
41532
41533 if (init_run) return;
41534 init_run = 1;
41535
41536 for (i = 0; i < swig_module.size; i++) {
41537 if (swig_module.types[i]->clientdata) {
41538 equiv = swig_module.types[i]->cast;
41539 while (equiv) {
41540 if (!equiv->converter) {
41541 if (equiv->type && !equiv->type->clientdata)
41542 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
41543 }
41544 equiv = equiv->next;
41545 }
41546 }
41547 }
41548 }
41549
41550 #ifdef __cplusplus
41551 #if 0
41552 {
41553 /* c-mode */
41554 #endif
41555 }
41556 #endif
41557
41558
41559
41560 #ifdef __cplusplus
41561 extern "C" {
41562 #endif
41563
41564 /* Python-specific SWIG API */
41565 #define SWIG_newvarlink() SWIG_Python_newvarlink()
41566 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
41567 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
41568
41569 /* -----------------------------------------------------------------------------
41570 * global variable support code.
41571 * ----------------------------------------------------------------------------- */
41572
41573 typedef struct swig_globalvar {
41574 char *name; /* Name of global variable */
41575 PyObject *(*get_attr)(void); /* Return the current value */
41576 int (*set_attr)(PyObject *); /* Set the value */
41577 struct swig_globalvar *next;
41578 } swig_globalvar;
41579
41580 typedef struct swig_varlinkobject {
41581 PyObject_HEAD
41582 swig_globalvar *vars;
41583 } swig_varlinkobject;
41584
41585 SWIGINTERN PyObject *
41586 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
41587 return PyString_FromString("<Swig global variables>");
41588 }
41589
41590 SWIGINTERN PyObject *
41591 swig_varlink_str(swig_varlinkobject *v) {
41592 PyObject *str = PyString_FromString("(");
41593 swig_globalvar *var;
41594 for (var = v->vars; var; var=var->next) {
41595 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
41596 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
41597 }
41598 PyString_ConcatAndDel(&str,PyString_FromString(")"));
41599 return str;
41600 }
41601
41602 SWIGINTERN int
41603 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
41604 PyObject *str = swig_varlink_str(v);
41605 fprintf(fp,"Swig global variables ");
41606 fprintf(fp,"%s\n", PyString_AsString(str));
41607 Py_DECREF(str);
41608 return 0;
41609 }
41610
41611 SWIGINTERN void
41612 swig_varlink_dealloc(swig_varlinkobject *v) {
41613 swig_globalvar *var = v->vars;
41614 while (var) {
41615 swig_globalvar *n = var->next;
41616 free(var->name);
41617 free(var);
41618 var = n;
41619 }
41620 }
41621
41622 SWIGINTERN PyObject *
41623 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
41624 PyObject *res = NULL;
41625 swig_globalvar *var = v->vars;
41626 while (var) {
41627 if (strcmp(var->name,n) == 0) {
41628 res = (*var->get_attr)();
41629 break;
41630 }
41631 var = var->next;
41632 }
41633 if (res == NULL && !PyErr_Occurred()) {
41634 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
41635 }
41636 return res;
41637 }
41638
41639 SWIGINTERN int
41640 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
41641 int res = 1;
41642 swig_globalvar *var = v->vars;
41643 while (var) {
41644 if (strcmp(var->name,n) == 0) {
41645 res = (*var->set_attr)(p);
41646 break;
41647 }
41648 var = var->next;
41649 }
41650 if (res == 1 && !PyErr_Occurred()) {
41651 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
41652 }
41653 return res;
41654 }
41655
41656 SWIGINTERN PyTypeObject*
41657 swig_varlink_type(void) {
41658 static char varlink__doc__[] = "Swig var link object";
41659 static PyTypeObject varlink_type;
41660 static int type_init = 0;
41661 if (!type_init) {
41662 const PyTypeObject tmp
41663 = {
41664 PyObject_HEAD_INIT(NULL)
41665 0, /* Number of items in variable part (ob_size) */
41666 (char *)"swigvarlink", /* Type name (tp_name) */
41667 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
41668 0, /* Itemsize (tp_itemsize) */
41669 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
41670 (printfunc) swig_varlink_print, /* Print (tp_print) */
41671 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
41672 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
41673 0, /* tp_compare */
41674 (reprfunc) swig_varlink_repr, /* tp_repr */
41675 0, /* tp_as_number */
41676 0, /* tp_as_sequence */
41677 0, /* tp_as_mapping */
41678 0, /* tp_hash */
41679 0, /* tp_call */
41680 (reprfunc)swig_varlink_str, /* tp_str */
41681 0, /* tp_getattro */
41682 0, /* tp_setattro */
41683 0, /* tp_as_buffer */
41684 0, /* tp_flags */
41685 varlink__doc__, /* tp_doc */
41686 0, /* tp_traverse */
41687 0, /* tp_clear */
41688 0, /* tp_richcompare */
41689 0, /* tp_weaklistoffset */
41690 #if PY_VERSION_HEX >= 0x02020000
41691 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
41692 #endif
41693 #if PY_VERSION_HEX >= 0x02030000
41694 0, /* tp_del */
41695 #endif
41696 #ifdef COUNT_ALLOCS
41697 0,0,0,0 /* tp_alloc -> tp_next */
41698 #endif
41699 };
41700 varlink_type = tmp;
41701 varlink_type.ob_type = &PyType_Type;
41702 type_init = 1;
41703 }
41704 return &varlink_type;
41705 }
41706
41707 /* Create a variable linking object for use later */
41708 SWIGINTERN PyObject *
41709 SWIG_Python_newvarlink(void) {
41710 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
41711 if (result) {
41712 result->vars = 0;
41713 }
41714 return ((PyObject*) result);
41715 }
41716
41717 SWIGINTERN void
41718 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
41719 swig_varlinkobject *v = (swig_varlinkobject *) p;
41720 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
41721 if (gv) {
41722 size_t size = strlen(name)+1;
41723 gv->name = (char *)malloc(size);
41724 if (gv->name) {
41725 strncpy(gv->name,name,size);
41726 gv->get_attr = get_attr;
41727 gv->set_attr = set_attr;
41728 gv->next = v->vars;
41729 }
41730 }
41731 v->vars = gv;
41732 }
41733
41734 SWIGINTERN PyObject *
41735 SWIG_globals() {
41736 static PyObject *_SWIG_globals = 0;
41737 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
41738 return _SWIG_globals;
41739 }
41740
41741 /* -----------------------------------------------------------------------------
41742 * constants/methods manipulation
41743 * ----------------------------------------------------------------------------- */
41744
41745 /* Install Constants */
41746 SWIGINTERN void
41747 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
41748 PyObject *obj = 0;
41749 size_t i;
41750 for (i = 0; constants[i].type; ++i) {
41751 switch(constants[i].type) {
41752 case SWIG_PY_POINTER:
41753 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
41754 break;
41755 case SWIG_PY_BINARY:
41756 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
41757 break;
41758 default:
41759 obj = 0;
41760 break;
41761 }
41762 if (obj) {
41763 PyDict_SetItemString(d, constants[i].name, obj);
41764 Py_DECREF(obj);
41765 }
41766 }
41767 }
41768
41769 /* -----------------------------------------------------------------------------*/
41770 /* Fix SwigMethods to carry the callback ptrs when needed */
41771 /* -----------------------------------------------------------------------------*/
41772
41773 SWIGINTERN void
41774 SWIG_Python_FixMethods(PyMethodDef *methods,
41775 swig_const_info *const_table,
41776 swig_type_info **types,
41777 swig_type_info **types_initial) {
41778 size_t i;
41779 for (i = 0; methods[i].ml_name; ++i) {
41780 const char *c = methods[i].ml_doc;
41781 if (c && (c = strstr(c, "swig_ptr: "))) {
41782 int j;
41783 swig_const_info *ci = 0;
41784 const char *name = c + 10;
41785 for (j = 0; const_table[j].type; ++j) {
41786 if (strncmp(const_table[j].name, name,
41787 strlen(const_table[j].name)) == 0) {
41788 ci = &(const_table[j]);
41789 break;
41790 }
41791 }
41792 if (ci) {
41793 size_t shift = (ci->ptype) - types;
41794 swig_type_info *ty = types_initial[shift];
41795 size_t ldoc = (c - methods[i].ml_doc);
41796 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
41797 char *ndoc = (char*)malloc(ldoc + lptr + 10);
41798 if (ndoc) {
41799 char *buff = ndoc;
41800 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
41801 if (ptr) {
41802 strncpy(buff, methods[i].ml_doc, ldoc);
41803 buff += ldoc;
41804 strncpy(buff, "swig_ptr: ", 10);
41805 buff += 10;
41806 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
41807 methods[i].ml_doc = ndoc;
41808 }
41809 }
41810 }
41811 }
41812 }
41813 }
41814
41815 #ifdef __cplusplus
41816 }
41817 #endif
41818
41819 /* -----------------------------------------------------------------------------*
41820 * Partial Init method
41821 * -----------------------------------------------------------------------------*/
41822
41823 #ifdef __cplusplus
41824 extern "C"
41825 #endif
41826 SWIGEXPORT void SWIG_init(void) {
41827 PyObject *m, *d;
41828
41829 /* Fix SwigMethods to carry the callback ptrs when needed */
41830 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
41831
41832 m = Py_InitModule((char *) SWIG_name, SwigMethods);
41833 d = PyModule_GetDict(m);
41834
41835 SWIG_InitializeModule(0);
41836 SWIG_InstallConstants(d,swig_const_table);
41837
41838
41839 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
41840 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
41841 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
41842 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
41843 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
41844 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
41845 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
41846 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
41847 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
41848 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
41849 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
41850 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
41851 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
41852 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
41853 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
41854 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
41855 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
41856 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
41857 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
41858 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
41859 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
41860 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
41861 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
41862 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
41863 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
41864 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
41865 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
41866 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
41867 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
41868 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
41869 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
41870 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
41871 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
41872 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
41873 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
41874 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
41875 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
41876 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
41877 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
41878 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
41879 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
41880 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
41881 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
41882 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
41883 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
41884 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
41885 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
41886 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
41887 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
41888 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
41889 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
41890 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
41891 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
41892 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
41893 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
41894 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
41895 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
41896 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
41897 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
41898 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
41899 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
41900 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
41901 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
41902 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
41903 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
41904 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
41905 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
41906 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
41907 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
41908 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
41909 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
41910 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
41911 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
41912 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
41913 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
41914 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
41915 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
41916 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
41917 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
41918 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
41919 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
41920 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
41921 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
41922 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
41923 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
41924 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
41925 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
41926 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
41927 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
41928 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
41929 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
41930 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
41931 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
41932 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
41933 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
41934 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
41935 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
41936 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
41937 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
41938 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
41939 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
41940 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
41941 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
41942 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
41943 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
41944 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
41945 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
41946 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
41947 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
41948 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
41949 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
41950 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
41951 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
41952 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
41953 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
41954 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
41955 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
41956 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41957 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41958 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41959 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41960 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41961 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41962 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41963 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41964 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41965 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41966 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41967 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41968 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41969 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41970 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41971
41972 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41973
41974 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41975 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41976 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41977 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41978 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41979 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41980 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41981 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41982 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41983 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41984 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41985 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41986 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41987 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41988 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41989 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41990 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41991 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41992 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41993 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41994 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41995 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41996 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41997 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41998 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41999 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
42000 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
42001 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
42002 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
42003 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
42004 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
42005 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
42006 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
42007 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
42008 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
42009 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
42010 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
42011 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
42012 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
42013 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
42014 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
42015 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
42016 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
42017 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
42018 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
42019 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
42020 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
42021 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
42022 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
42023 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
42024 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
42025 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
42026 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
42027 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
42028 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
42029 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
42030 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
42031 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
42032 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
42033 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
42034 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
42035 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
42036 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
42037 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
42038 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
42039 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
42040 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
42041 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
42042 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
42043 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
42044 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
42045 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
42046 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
42047 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
42048 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
42049 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
42050 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
42051 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
42052 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
42053 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
42054 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
42055 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
42056 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
42057 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
42058 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
42059 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
42060 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
42061 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
42062 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
42063 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
42064 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
42065 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
42066 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
42067 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
42068 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
42069 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
42070 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
42071 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
42072 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
42073 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
42074 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
42075 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
42076 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
42077 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
42078 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
42079 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
42080 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
42081 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
42082 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
42083 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
42084 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
42085 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
42086 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
42087 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
42088 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
42089 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
42090 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
42091 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
42092 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
42093 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
42094 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
42095 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
42096 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
42097 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
42098 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
42099 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
42100 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
42101 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
42102 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
42103 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
42104 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
42105 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
42106 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
42107 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
42108 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
42109 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
42110 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
42111 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
42112 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
42113 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
42114 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
42115 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
42116 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
42117 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
42118 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
42119 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
42120 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
42121 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
42122 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
42123 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
42124 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
42125 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
42126 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
42127 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
42128 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
42129 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
42130 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
42131 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
42132 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
42133 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
42134 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
42135 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
42136 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
42137 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
42138 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
42139 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
42140 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
42141 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
42142 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
42143 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
42144 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
42145 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
42146 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
42147 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
42148 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
42149 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
42150 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
42151 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
42152 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
42153 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
42154 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
42155 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
42156 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
42157 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
42158 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
42159 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
42160 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
42161 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
42162 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
42163 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
42164 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
42165 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
42166 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
42167 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
42168 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
42169 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
42170 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
42171 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
42172 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
42173 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
42174 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
42175 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
42176 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
42177 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
42178 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
42179 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
42180 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
42181 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
42182 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
42183 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
42184 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
42185 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
42186 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
42187 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
42188 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
42189 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
42190 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
42191 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
42192 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
42193 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
42194 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
42195 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
42196 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
42197 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
42198 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
42199 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
42200 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
42201 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
42202 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
42203 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
42204 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
42205 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
42206 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
42207 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
42208 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
42209 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
42210 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
42211 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
42212 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
42213 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
42214 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
42215 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
42216 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
42217 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
42218 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
42219 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
42220 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
42221 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
42222 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
42223 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
42224 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
42225 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
42226 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
42227 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
42228 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
42229 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
42230 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
42231 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
42232 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
42233 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
42234 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
42235 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
42236 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
42237 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
42238 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
42239 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
42240 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
42241 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
42242 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
42243 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
42244 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
42245 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
42246 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
42247 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
42248 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
42249 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
42250 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
42251 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
42252 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
42253 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
42254 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
42255 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
42256 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
42257 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
42258 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
42259 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
42260 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
42261 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
42262 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
42263 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
42264 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
42265 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
42266 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
42267 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
42268 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
42269 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
42270 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
42271 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
42272 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
42273 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
42274 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
42275 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
42276 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
42277 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
42278 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
42279 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
42280 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
42281 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
42282 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
42283 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
42284 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
42285 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
42286 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
42287 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
42288 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
42289 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
42290 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
42291 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
42292 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
42293 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
42294 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
42295 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
42296 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
42297 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
42298
42299 // Work around a chicken/egg problem in drawlist.cpp
42300 wxPyDrawList_SetAPIPtr();
42301
42302 }
42303