]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
Forward port recent changes on the 2.8 branch to HEAD
[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_wxChildFocusEvent swig_types[23]
2490 #define SWIGTYPE_p_wxClientDC swig_types[24]
2491 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[25]
2492 #define SWIGTYPE_p_wxCloseEvent swig_types[26]
2493 #define SWIGTYPE_p_wxColour swig_types[27]
2494 #define SWIGTYPE_p_wxColourDatabase swig_types[28]
2495 #define SWIGTYPE_p_wxCommandEvent swig_types[29]
2496 #define SWIGTYPE_p_wxContextMenuEvent swig_types[30]
2497 #define SWIGTYPE_p_wxControl swig_types[31]
2498 #define SWIGTYPE_p_wxControlWithItems swig_types[32]
2499 #define SWIGTYPE_p_wxCursor swig_types[33]
2500 #define SWIGTYPE_p_wxDC swig_types[34]
2501 #define SWIGTYPE_p_wxDCBrushChanger swig_types[35]
2502 #define SWIGTYPE_p_wxDCClipper swig_types[36]
2503 #define SWIGTYPE_p_wxDCOverlay swig_types[37]
2504 #define SWIGTYPE_p_wxDCPenChanger swig_types[38]
2505 #define SWIGTYPE_p_wxDCTextColourChanger swig_types[39]
2506 #define SWIGTYPE_p_wxDash swig_types[40]
2507 #define SWIGTYPE_p_wxDateEvent swig_types[41]
2508 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[42]
2509 #define SWIGTYPE_p_wxDropFilesEvent swig_types[43]
2510 #define SWIGTYPE_p_wxDuplexMode swig_types[44]
2511 #define SWIGTYPE_p_wxEffects swig_types[45]
2512 #define SWIGTYPE_p_wxEncodingConverter swig_types[46]
2513 #define SWIGTYPE_p_wxEraseEvent swig_types[47]
2514 #define SWIGTYPE_p_wxEvent swig_types[48]
2515 #define SWIGTYPE_p_wxEventBlocker swig_types[49]
2516 #define SWIGTYPE_p_wxEvtHandler swig_types[50]
2517 #define SWIGTYPE_p_wxFSFile swig_types[51]
2518 #define SWIGTYPE_p_wxFileSystem swig_types[52]
2519 #define SWIGTYPE_p_wxFlexGridSizer swig_types[53]
2520 #define SWIGTYPE_p_wxFocusEvent swig_types[54]
2521 #define SWIGTYPE_p_wxFont swig_types[55]
2522 #define SWIGTYPE_p_wxFontList swig_types[56]
2523 #define SWIGTYPE_p_wxFontMapper swig_types[57]
2524 #define SWIGTYPE_p_wxGBSizerItem swig_types[58]
2525 #define SWIGTYPE_p_wxGCDC swig_types[59]
2526 #define SWIGTYPE_p_wxGDIObjListBase swig_types[60]
2527 #define SWIGTYPE_p_wxGDIObject swig_types[61]
2528 #define SWIGTYPE_p_wxGIFHandler swig_types[62]
2529 #define SWIGTYPE_p_wxGraphicsBrush swig_types[63]
2530 #define SWIGTYPE_p_wxGraphicsContext swig_types[64]
2531 #define SWIGTYPE_p_wxGraphicsFont swig_types[65]
2532 #define SWIGTYPE_p_wxGraphicsMatrix swig_types[66]
2533 #define SWIGTYPE_p_wxGraphicsObject swig_types[67]
2534 #define SWIGTYPE_p_wxGraphicsPath swig_types[68]
2535 #define SWIGTYPE_p_wxGraphicsPen swig_types[69]
2536 #define SWIGTYPE_p_wxGraphicsRenderer swig_types[70]
2537 #define SWIGTYPE_p_wxGridBagSizer swig_types[71]
2538 #define SWIGTYPE_p_wxGridSizer swig_types[72]
2539 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[73]
2540 #define SWIGTYPE_p_wxICOHandler swig_types[74]
2541 #define SWIGTYPE_p_wxIcon swig_types[75]
2542 #define SWIGTYPE_p_wxIconBundle swig_types[76]
2543 #define SWIGTYPE_p_wxIconLocation swig_types[77]
2544 #define SWIGTYPE_p_wxIconizeEvent swig_types[78]
2545 #define SWIGTYPE_p_wxIdleEvent swig_types[79]
2546 #define SWIGTYPE_p_wxImage swig_types[80]
2547 #define SWIGTYPE_p_wxImageHandler swig_types[81]
2548 #define SWIGTYPE_p_wxImageList swig_types[82]
2549 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[83]
2550 #define SWIGTYPE_p_wxInitDialogEvent swig_types[84]
2551 #define SWIGTYPE_p_wxJPEGHandler swig_types[85]
2552 #define SWIGTYPE_p_wxKeyEvent swig_types[86]
2553 #define SWIGTYPE_p_wxLanguageInfo swig_types[87]
2554 #define SWIGTYPE_p_wxLayoutConstraints swig_types[88]
2555 #define SWIGTYPE_p_wxLocale swig_types[89]
2556 #define SWIGTYPE_p_wxMask swig_types[90]
2557 #define SWIGTYPE_p_wxMaximizeEvent swig_types[91]
2558 #define SWIGTYPE_p_wxMemoryDC swig_types[92]
2559 #define SWIGTYPE_p_wxMenu swig_types[93]
2560 #define SWIGTYPE_p_wxMenuBar swig_types[94]
2561 #define SWIGTYPE_p_wxMenuEvent swig_types[95]
2562 #define SWIGTYPE_p_wxMenuItem swig_types[96]
2563 #define SWIGTYPE_p_wxMetaFile swig_types[97]
2564 #define SWIGTYPE_p_wxMetaFileDC swig_types[98]
2565 #define SWIGTYPE_p_wxMirrorDC swig_types[99]
2566 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[100]
2567 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[101]
2568 #define SWIGTYPE_p_wxMouseEvent swig_types[102]
2569 #define SWIGTYPE_p_wxMoveEvent swig_types[103]
2570 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[104]
2571 #define SWIGTYPE_p_wxNativeFontInfo swig_types[105]
2572 #define SWIGTYPE_p_wxNativePixelData swig_types[106]
2573 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[107]
2574 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[108]
2575 #define SWIGTYPE_p_wxNcPaintEvent swig_types[109]
2576 #define SWIGTYPE_p_wxNotifyEvent swig_types[110]
2577 #define SWIGTYPE_p_wxObject swig_types[111]
2578 #define SWIGTYPE_p_wxOverlay swig_types[112]
2579 #define SWIGTYPE_p_wxPCXHandler swig_types[113]
2580 #define SWIGTYPE_p_wxPNGHandler swig_types[114]
2581 #define SWIGTYPE_p_wxPNMHandler swig_types[115]
2582 #define SWIGTYPE_p_wxPaintDC swig_types[116]
2583 #define SWIGTYPE_p_wxPaintEvent swig_types[117]
2584 #define SWIGTYPE_p_wxPalette swig_types[118]
2585 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[119]
2586 #define SWIGTYPE_p_wxPaperSize swig_types[120]
2587 #define SWIGTYPE_p_wxPen swig_types[121]
2588 #define SWIGTYPE_p_wxPenList swig_types[122]
2589 #define SWIGTYPE_p_wxPixelDataBase swig_types[123]
2590 #define SWIGTYPE_p_wxPoint swig_types[124]
2591 #define SWIGTYPE_p_wxPoint2D swig_types[125]
2592 #define SWIGTYPE_p_wxPostScriptDC swig_types[126]
2593 #define SWIGTYPE_p_wxPrintData swig_types[127]
2594 #define SWIGTYPE_p_wxPrinterDC swig_types[128]
2595 #define SWIGTYPE_p_wxPseudoDC swig_types[129]
2596 #define SWIGTYPE_p_wxPyApp swig_types[130]
2597 #define SWIGTYPE_p_wxPyCommandEvent swig_types[131]
2598 #define SWIGTYPE_p_wxPyEvent swig_types[132]
2599 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[133]
2600 #define SWIGTYPE_p_wxPyImageHandler swig_types[134]
2601 #define SWIGTYPE_p_wxPyLocale swig_types[135]
2602 #define SWIGTYPE_p_wxPySizer swig_types[136]
2603 #define SWIGTYPE_p_wxPyValidator swig_types[137]
2604 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[138]
2605 #define SWIGTYPE_p_wxRect swig_types[139]
2606 #define SWIGTYPE_p_wxRect2D swig_types[140]
2607 #define SWIGTYPE_p_wxRegion swig_types[141]
2608 #define SWIGTYPE_p_wxRegionIterator swig_types[142]
2609 #define SWIGTYPE_p_wxRendererNative swig_types[143]
2610 #define SWIGTYPE_p_wxRendererVersion swig_types[144]
2611 #define SWIGTYPE_p_wxSVGFileDC swig_types[145]
2612 #define SWIGTYPE_p_wxScreenDC swig_types[146]
2613 #define SWIGTYPE_p_wxScrollEvent swig_types[147]
2614 #define SWIGTYPE_p_wxScrollWinEvent swig_types[148]
2615 #define SWIGTYPE_p_wxSetCursorEvent swig_types[149]
2616 #define SWIGTYPE_p_wxShowEvent swig_types[150]
2617 #define SWIGTYPE_p_wxSize swig_types[151]
2618 #define SWIGTYPE_p_wxSizeEvent swig_types[152]
2619 #define SWIGTYPE_p_wxSizer swig_types[153]
2620 #define SWIGTYPE_p_wxSizerItem swig_types[154]
2621 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[155]
2622 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[156]
2623 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[157]
2624 #define SWIGTYPE_p_wxStockGDI swig_types[158]
2625 #define SWIGTYPE_p_wxString swig_types[159]
2626 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[160]
2627 #define SWIGTYPE_p_wxTGAHandler swig_types[161]
2628 #define SWIGTYPE_p_wxTIFFHandler swig_types[162]
2629 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[163]
2630 #define SWIGTYPE_p_wxValidator swig_types[164]
2631 #define SWIGTYPE_p_wxWindow swig_types[165]
2632 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[166]
2633 #define SWIGTYPE_p_wxWindowDC swig_types[167]
2634 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[168]
2635 #define SWIGTYPE_p_wxXPMHandler swig_types[169]
2636 static swig_type_info *swig_types[171];
2637 static swig_module_info swig_module = {swig_types, 170, 0, 0, 0, 0};
2638 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2639 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2640
2641 /* -------- TYPES TABLE (END) -------- */
2642
2643 #if (PY_VERSION_HEX <= 0x02000000)
2644 # if !defined(SWIG_PYTHON_CLASSIC)
2645 # error "This python version requires to use swig with the '-classic' option"
2646 # endif
2647 #endif
2648 #if (PY_VERSION_HEX <= 0x02020000)
2649 # error "This python version requires to use swig with the '-nomodern' option"
2650 #endif
2651 #if (PY_VERSION_HEX <= 0x02020000)
2652 # error "This python version requires to use swig with the '-nomodernargs' option"
2653 #endif
2654 #ifndef METH_O
2655 # error "This python version requires to use swig with the '-nofastunpack' option"
2656 #endif
2657
2658 /*-----------------------------------------------
2659 @(target):= _gdi_.so
2660 ------------------------------------------------*/
2661 #define SWIG_init init_gdi_
2662
2663 #define SWIG_name "_gdi_"
2664
2665 #define SWIGVERSION 0x010329
2666
2667
2668 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2669 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2670
2671
2672 #include <stdexcept>
2673
2674
2675 namespace swig {
2676 class PyObject_ptr {
2677 protected:
2678 PyObject *_obj;
2679
2680 public:
2681 PyObject_ptr() :_obj(0)
2682 {
2683 }
2684
2685 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2686 {
2687 Py_XINCREF(_obj);
2688 }
2689
2690 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2691 {
2692 if (initial_ref) Py_XINCREF(_obj);
2693 }
2694
2695 PyObject_ptr & operator=(const PyObject_ptr& item)
2696 {
2697 Py_XINCREF(item._obj);
2698 Py_XDECREF(_obj);
2699 _obj = item._obj;
2700 return *this;
2701 }
2702
2703 ~PyObject_ptr()
2704 {
2705 Py_XDECREF(_obj);
2706 }
2707
2708 operator PyObject *() const
2709 {
2710 return _obj;
2711 }
2712
2713 PyObject *operator->() const
2714 {
2715 return _obj;
2716 }
2717 };
2718 }
2719
2720
2721 namespace swig {
2722 struct PyObject_var : PyObject_ptr {
2723 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2724
2725 PyObject_var & operator = (PyObject* obj)
2726 {
2727 Py_XDECREF(_obj);
2728 _obj = obj;
2729 return *this;
2730 }
2731 };
2732 }
2733
2734
2735 #include "wx/wxPython/wxPython.h"
2736 #include "wx/wxPython/pyclasses.h"
2737
2738
2739 static const wxString wxPyEmptyString(wxEmptyString);
2740
2741 #define SWIG_From_long PyInt_FromLong
2742
2743
2744 SWIGINTERNINLINE PyObject *
2745 SWIG_From_int (int value)
2746 {
2747 return SWIG_From_long (value);
2748 }
2749
2750
2751 #include <limits.h>
2752 #ifndef LLONG_MIN
2753 # define LLONG_MIN LONG_LONG_MIN
2754 #endif
2755 #ifndef LLONG_MAX
2756 # define LLONG_MAX LONG_LONG_MAX
2757 #endif
2758 #ifndef ULLONG_MAX
2759 # define ULLONG_MAX ULONG_LONG_MAX
2760 #endif
2761
2762
2763 SWIGINTERN int
2764 SWIG_AsVal_long (PyObject* obj, long* val)
2765 {
2766 if (PyNumber_Check(obj)) {
2767 if (val) *val = PyInt_AsLong(obj);
2768 return SWIG_OK;
2769 }
2770 return SWIG_TypeError;
2771 }
2772
2773
2774 SWIGINTERN int
2775 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2776 {
2777 long v = 0;
2778 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2779 return SWIG_TypeError;
2780 }
2781 else if (val)
2782 *val = (unsigned long)v;
2783 return SWIG_OK;
2784 }
2785
2786
2787 SWIGINTERN int
2788 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2789 {
2790 unsigned long v;
2791 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2792 if (SWIG_IsOK(res)) {
2793 if ((v > UCHAR_MAX)) {
2794 return SWIG_OverflowError;
2795 } else {
2796 if (val) *val = static_cast< unsigned char >(v);
2797 }
2798 }
2799 return res;
2800 }
2801
2802
2803 SWIGINTERNINLINE PyObject*
2804 SWIG_From_unsigned_SS_long (unsigned long value)
2805 {
2806 return (value > LONG_MAX) ?
2807 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2808 }
2809
2810
2811 SWIGINTERNINLINE PyObject *
2812 SWIG_From_unsigned_SS_char (unsigned char value)
2813 {
2814 return SWIG_From_unsigned_SS_long (value);
2815 }
2816
2817 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2818 wxColour temp, *obj = &temp;
2819 if ( other == Py_None ) return false;
2820 if ( ! wxColour_helper(other, &obj) ) {
2821 PyErr_Clear();
2822 return false;
2823 }
2824 return self->operator==(*obj);
2825 }
2826 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2827 wxColour temp, *obj = &temp;
2828 if ( other == Py_None ) return true;
2829 if ( ! wxColour_helper(other, &obj)) {
2830 PyErr_Clear();
2831 return true;
2832 }
2833 return self->operator!=(*obj);
2834 }
2835
2836 SWIGINTERN int
2837 SWIG_AsVal_bool (PyObject *obj, bool *val)
2838 {
2839 if (obj == Py_True) {
2840 if (val) *val = true;
2841 return SWIG_OK;
2842 } else if (obj == Py_False) {
2843 if (val) *val = false;
2844 return SWIG_OK;
2845 } else {
2846 long v = 0;
2847 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2848 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2849 return res;
2850 }
2851 }
2852
2853 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2854 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2855 int red = -1;
2856 int green = -1;
2857 int blue = -1;
2858 int alpha = wxALPHA_OPAQUE;
2859 if (self->IsOk()) {
2860 red = self->Red();
2861 green = self->Green();
2862 blue = self->Blue();
2863 alpha = self->Alpha();
2864 }
2865 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2866 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2867 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2868 if (includeAlpha)
2869 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2870 return rv;
2871 }
2872 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2873 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2874 }
2875
2876 SWIGINTERN int
2877 SWIG_AsVal_int (PyObject * obj, int *val)
2878 {
2879 long v;
2880 int res = SWIG_AsVal_long (obj, &v);
2881 if (SWIG_IsOK(res)) {
2882 if ((v < INT_MIN || v > INT_MAX)) {
2883 return SWIG_OverflowError;
2884 } else {
2885 if (val) *val = static_cast< int >(v);
2886 }
2887 }
2888 return res;
2889 }
2890
2891 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2892 wxDash* dashes;
2893 int count = self->GetDashes(&dashes);
2894 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2895 PyObject* retval = PyList_New(0);
2896 for (int x=0; x<count; x++) {
2897 PyObject* pyint = PyInt_FromLong(dashes[x]);
2898 PyList_Append(retval, pyint);
2899 Py_DECREF(pyint);
2900 }
2901 wxPyEndBlockThreads(blocked);
2902 return retval;
2903 }
2904 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2905 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2906 int size = PyList_Size(pyDashes);
2907 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2908
2909 // black magic warning! The array of wxDashes needs to exist as
2910 // long as the pen does because wxPen does not copy the array. So
2911 // stick a copy in a Python string object and attach it to _self,
2912 // and then call SetDashes with a pointer to that array. Then
2913 // when the Python pen object is destroyed the array will be
2914 // cleaned up too.
2915 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2916 PyObject_SetAttrString(_self, "_dashes", strDashes);
2917
2918 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2919 delete [] dashes;
2920 Py_DECREF(strDashes);
2921 wxPyEndBlockThreads(blocked);
2922 }
2923 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2924 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2925
2926 #include <wx/rawbmp.h>
2927
2928
2929 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2930 // appears to me that the other platforms are already doing it, so I'll just
2931 // automatically do it for wxMSW here.
2932 #ifdef __WXMSW__
2933 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2934 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2935 #else
2936 #define wxPy_premultiply(p, a) (p)
2937 #define wxPy_unpremultiply(p, a) (p)
2938 #endif
2939
2940
2941 #include <wx/image.h>
2942
2943 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2944 char** cArray = NULL;
2945 int count;
2946
2947 if (!PyList_Check(listOfStrings)) {
2948 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2949 return NULL;
2950 }
2951 count = PyList_Size(listOfStrings);
2952 cArray = new char*[count];
2953
2954 for(int x=0; x<count; x++) {
2955 // TODO: Need some validation and error checking here
2956 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2957 }
2958 return cArray;
2959 }
2960
2961
2962 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2963 char** cArray = NULL;
2964 wxBitmap* bmp;
2965
2966 cArray = ConvertListOfStrings(listOfStrings);
2967 if (! cArray)
2968 return NULL;
2969 bmp = new wxBitmap(cArray);
2970 delete [] cArray;
2971 return bmp;
2972 }
2973 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2974 char* buf;
2975 Py_ssize_t length;
2976 PyString_AsStringAndSize(bits, &buf, &length);
2977 return new wxBitmap(buf, width, height, depth);
2978 }
2979 SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2980 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2981 wxSize size(self->GetWidth(), self->GetHeight());
2982 return size;
2983 }
2984 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2985 wxMask *mask = new wxMask(*self, colour);
2986 self->SetMask(mask);
2987 }
2988 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2989 self->SetWidth(size.x);
2990 self->SetHeight(size.y);
2991 }
2992 SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
2993 int height=self->GetHeight();
2994 int width=self->GetWidth();
2995
2996 if (DATASIZE != width * height * 3) {
2997 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2998 }
2999 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3000 if (! pixData) {
3001 // raise an exception...
3002 wxPyErr_SetString(PyExc_RuntimeError,
3003 "Failed to gain raw access to bitmap data.");
3004 return;
3005 }
3006
3007 wxNativePixelData::Iterator p(pixData);
3008 for (int y=0; y<height; y++) {
3009 wxNativePixelData::Iterator rowStart = p;
3010 for (int x=0; x<width; x++) {
3011 p.Red() = *(data++);
3012 p.Green() = *(data++);
3013 p.Blue() = *(data++);
3014 ++p;
3015 }
3016 p = rowStart;
3017 p.OffsetY(pixData, 1);
3018 }
3019 }
3020 SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3021 int height=self->GetHeight();
3022 int width=self->GetWidth();
3023
3024 if (DATASIZE != width * height * 4) {
3025 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3026 }
3027 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3028 if (! pixData) {
3029 // raise an exception...
3030 wxPyErr_SetString(PyExc_RuntimeError,
3031 "Failed to gain raw access to bitmap data.");
3032 return;
3033 }
3034
3035 pixData.UseAlpha();
3036 wxAlphaPixelData::Iterator p(pixData);
3037 for (int y=0; y<height; y++) {
3038 wxAlphaPixelData::Iterator rowStart = p;
3039 for (int x=0; x<width; x++) {
3040 byte a = data[3];
3041 p.Red() = wxPy_premultiply(*(data++), a);
3042 p.Green() = wxPy_premultiply(*(data++), a);
3043 p.Blue() = wxPy_premultiply(*(data++), a);
3044 p.Alpha() = a; data++;
3045 ++p;
3046 }
3047 p = rowStart;
3048 p.OffsetY(pixData, 1);
3049 }
3050 }
3051 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3052 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
3053
3054 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3055 buffer data, int DATASIZE,
3056 buffer alpha, int ALPHASIZE)
3057 {
3058 if (DATASIZE != width*height*3) {
3059 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3060 return NULL;
3061 }
3062
3063 if (ALPHASIZE != width*height) {
3064 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3065 return NULL;
3066 }
3067
3068 wxBitmap* bmp = new wxBitmap(width, height, 32);
3069 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3070 if (! pixData) {
3071 // raise an exception...
3072 wxPyErr_SetString(PyExc_RuntimeError,
3073 "Failed to gain raw access to bitmap data.");
3074 return NULL;
3075 }
3076
3077 pixData.UseAlpha();
3078 wxAlphaPixelData::Iterator p(pixData);
3079 for (int y=0; y<height; y++) {
3080 wxAlphaPixelData::Iterator rowStart = p;
3081 for (int x=0; x<width; x++) {
3082 byte a = *(alpha++);
3083 p.Red() = wxPy_premultiply(*(data++), a);
3084 p.Green() = wxPy_premultiply(*(data++), a);
3085 p.Blue() = wxPy_premultiply(*(data++), a);
3086 p.Alpha() = a;
3087 ++p;
3088 }
3089 p = rowStart;
3090 p.OffsetY(pixData, 1);
3091 }
3092 return bmp;
3093 }
3094
3095 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3096 {
3097 if (DATASIZE != width*height*3) {
3098 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3099 return NULL;
3100 }
3101
3102 wxBitmap* bmp = new wxBitmap(width, height, 24);
3103 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3104 if (! pixData) {
3105 // raise an exception...
3106 wxPyErr_SetString(PyExc_RuntimeError,
3107 "Failed to gain raw access to bitmap data.");
3108 return NULL;
3109 }
3110
3111 wxNativePixelData::Iterator p(pixData);
3112 for (int y=0; y<height; y++) {
3113 wxNativePixelData::Iterator rowStart = p;
3114 for (int x=0; x<width; x++) {
3115 p.Red() = *(data++);
3116 p.Green() = *(data++);
3117 p.Blue() = *(data++);
3118 ++p;
3119 }
3120 p = rowStart;
3121 p.OffsetY(pixData, 1);
3122 }
3123 return bmp;
3124 }
3125
3126
3127 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3128 {
3129 if (DATASIZE != width*height*4) {
3130 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3131 return NULL;
3132 }
3133
3134 wxBitmap* bmp = new wxBitmap(width, height, 32);
3135 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3136 if (! pixData) {
3137 // raise an exception...
3138 wxPyErr_SetString(PyExc_RuntimeError,
3139 "Failed to gain raw access to bitmap data.");
3140 return NULL;
3141 }
3142
3143 pixData.UseAlpha();
3144 wxAlphaPixelData::Iterator p(pixData);
3145 for (int y=0; y<height; y++) {
3146 wxAlphaPixelData::Iterator rowStart = p;
3147 for (int x=0; x<width; x++) {
3148 byte a = data[3];
3149 p.Red() = wxPy_premultiply(*(data++), a);
3150 p.Green() = wxPy_premultiply(*(data++), a);
3151 p.Blue() = wxPy_premultiply(*(data++), a);
3152 p.Alpha() = a; data++;
3153 ++p;
3154 }
3155 p = rowStart;
3156 p.OffsetY(pixData, 1);
3157 }
3158 return bmp;
3159 }
3160
3161
3162 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3163
3164 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3165 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3166 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3167 self->Red() = red;
3168 self->Green() = green;
3169 self->Blue() = blue;
3170 }
3171 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3172 PyObject* rv = PyTuple_New(3);
3173 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3174 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3175 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3176 return rv;
3177 }
3178
3179 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3180
3181 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3182 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3183 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3184 self->Red() = wxPy_premultiply(red, alpha);
3185 self->Green() = wxPy_premultiply(green, alpha);
3186 self->Blue() = wxPy_premultiply(blue, alpha);
3187 self->Alpha() = alpha;
3188 }
3189 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3190 PyObject* rv = PyTuple_New(4);
3191 int red = self->Red();
3192 int green = self->Green();
3193 int blue = self->Blue();
3194 int alpha = self->Alpha();
3195
3196 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3197 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3198 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3199 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3200 return rv;
3201 }
3202 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3203 if ( !colour.IsOk() )
3204 return new wxMask(bitmap, *wxBLACK);
3205 else
3206 return new wxMask(bitmap, colour);
3207 }
3208
3209 #include <wx/iconbndl.h>
3210
3211 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3212 wxIcon* icon = new wxIcon();
3213 icon->CopyFromBitmap(bmp);
3214 return icon;
3215 }
3216 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3217 char** cArray = NULL;
3218 wxIcon* icon;
3219
3220 cArray = ConvertListOfStrings(listOfStrings);
3221 if (! cArray)
3222 return NULL;
3223 icon = new wxIcon(cArray);
3224 delete [] cArray;
3225 return icon;
3226 }
3227 SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3228 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3229
3230 return new wxIconLocation(*filename, num);
3231
3232
3233
3234 }
3235 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3236
3237 self->SetIndex(num);
3238
3239
3240
3241 }
3242 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3243
3244 return self->GetIndex();
3245
3246
3247
3248 }
3249
3250 SWIGINTERNINLINE PyObject *
3251 SWIG_From_size_t (size_t value)
3252 {
3253 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3254 }
3255
3256
3257 SWIGINTERNINLINE int
3258 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3259 {
3260 unsigned long v;
3261 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3262 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3263 return res;
3264 }
3265
3266 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3267 #ifdef __WXGTK__
3268 wxImage img(cursorName, type);
3269 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3270 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3271 return new wxCursor(img);
3272 #else
3273 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3274 #endif
3275 }
3276 SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3277
3278
3279 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3280 (*self) ++;
3281 }
3282 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3283 return self->operator bool();
3284 }
3285
3286 #include <wx/fontutil.h>
3287 #include <wx/fontmap.h>
3288 #include <wx/fontenum.h>
3289
3290 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3291 return self->ToString();
3292 }
3293
3294 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3295 { wxPyRaiseNotImplemented(); return NULL; }
3296
3297 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3298 { wxPyRaiseNotImplemented(); return false; }
3299
3300 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3301 wxFontEncoding alt_enc;
3302 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3303 return PyInt_FromLong(alt_enc);
3304 else {
3305 Py_INCREF(Py_None);
3306 return Py_None;
3307 }
3308 }
3309 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3310 wxNativeFontInfo nfi;
3311 nfi.FromString(info);
3312 return new wxFont(nfi);
3313 }
3314 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3315 return wxFont::New(pointSize, family, flags, face, encoding);
3316 }
3317 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3318 return wxFontBase::New(pixelSize, family,
3319 style, weight, underlined,
3320 face, encoding);
3321 }
3322 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3323 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3324 }
3325 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3326 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3327
3328 class wxPyFontEnumerator : public wxFontEnumerator {
3329 public:
3330 wxPyFontEnumerator() {}
3331 ~wxPyFontEnumerator() {}
3332
3333 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3334 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3335
3336 PYPRIVATE;
3337 };
3338
3339 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3340 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3341
3342
3343 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3344 PyObject* ret;
3345 wxArrayString arr = wxFontEnumerator::GetEncodings();
3346 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3347 ret = wxArrayString2PyList_helper(arr);
3348 wxPyEndBlockThreads(blocked);
3349 return ret;
3350 }
3351 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3352 PyObject* ret;
3353 wxArrayString arr = wxFontEnumerator::GetFacenames();
3354 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3355 ret = wxArrayString2PyList_helper(arr);
3356 wxPyEndBlockThreads(blocked);
3357 return ret;
3358 }
3359
3360 #include <locale.h>
3361
3362 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3363 wxLocale* loc;
3364 if (language == -1)
3365 loc = new wxLocale();
3366 else
3367 loc = new wxLocale(language, flags);
3368 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3369 // for the floating point conversions and such to work right.
3370 #if PY_VERSION_HEX < 0x02040000
3371 setlocale(LC_NUMERIC, "C");
3372 #endif
3373 return loc;
3374 }
3375 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &name,wxString const &shortName=wxPyEmptyString,wxString const &locale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3376 bool rc = self->Init(name, shortName, locale, bLoadDefault, bConvertEncoding);
3377 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3378 // for the floating point conversions and such to work right.
3379 #if PY_VERSION_HEX < 0x02040000
3380 setlocale(LC_NUMERIC, "C");
3381 #endif
3382 return rc;
3383 }
3384 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3385 bool rc = self->Init(language, flags);
3386 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3387 // for the floating point conversions and such to work right.
3388 #if PY_VERSION_HEX < 0x02040000
3389 setlocale(LC_NUMERIC, "C");
3390 #endif
3391 return rc;
3392 }
3393
3394 class wxPyLocale : public wxLocale
3395 {
3396 public:
3397 wxPyLocale();
3398
3399 wxPyLocale(const wxString& name, // name (for messages)
3400 const wxString& shortName = wxPyEmptyString, // dir prefix (for msg files)
3401 const wxString& locale = wxPyEmptyString, // locale (for setlocale)
3402 bool bLoadDefault = true, // preload wxstd.mo?
3403 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3404
3405 wxPyLocale(int language, // wxLanguage id or custom language
3406 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3407
3408 ~wxPyLocale();
3409
3410 virtual const wxString& GetString(const wxString& origString,
3411 const wxString& domain = wxPyEmptyString) const;
3412 virtual const wxString& GetString(const wxString& origString,
3413 const wxString& origString2,
3414 size_t n,
3415 const wxString& domain = wxPyEmptyString) const;
3416
3417 virtual const wxString& GetSingularString(const wxString& origString,
3418 const wxString& domain = wxPyEmptyString) const;
3419 virtual const wxString& GetPluralString(const wxString& origString,
3420 const wxString& origString2,
3421 size_t n,
3422 const wxString& domain = wxPyEmptyString) const;
3423
3424
3425 PYPRIVATE;
3426 private:
3427 DECLARE_NO_COPY_CLASS(wxPyLocale)
3428 };
3429
3430 wxPyLocale::wxPyLocale() : wxLocale()
3431 {
3432 }
3433
3434 wxPyLocale::wxPyLocale(const wxString& name, // name (for messages)
3435 const wxString& shortName, // dir prefix (for msg files)
3436 const wxString& locale, // locale (for setlocale)
3437 bool bLoadDefault, // preload wxstd.mo?
3438 bool bConvertEncoding) // convert Win<->Unix if necessary?
3439 : wxLocale(name, shortName, locale, bLoadDefault, bConvertEncoding)
3440 {
3441 }
3442
3443 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3444 int flags) : wxLocale(language, flags)
3445 {
3446 }
3447
3448 wxPyLocale::~wxPyLocale()
3449 {
3450 }
3451
3452 const wxString& wxPyLocale::GetString(const wxString& origString,
3453 const wxString& domain) const
3454 {
3455 return GetSingularString(origString, domain);
3456 }
3457
3458 const wxString& wxPyLocale::GetString(const wxString& origString,
3459 const wxString& origString2,
3460 size_t n,
3461 const wxString& domain) const
3462 {
3463 return GetPluralString(origString, origString2, n, domain);
3464 }
3465
3466 const wxString& wxPyLocale::GetSingularString(const wxString& origString,
3467 const wxString& domain) const
3468 {
3469 bool found;
3470 wxString str( _T("error in translation"));
3471 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3472 if ((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3473 PyObject* param1 = wx2PyString(origString);
3474 PyObject* param2 = wx2PyString(domain);
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 ? str : wxLocale::GetString(origString, domain));
3485 }
3486
3487 const wxString& wxPyLocale::GetPluralString(const wxString& origString,
3488 const wxString& origString2, size_t n,
3489 const wxString& domain) const
3490 {
3491 bool found;
3492 wxString str( _T("error in translation"));
3493 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3494 if ((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3495 PyObject* param1 = wx2PyString(origString);
3496 PyObject* param2 = wx2PyString(origString2);
3497 PyObject* param4 = wx2PyString(domain);
3498 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst,
3499 Py_BuildValue("(OOiO)",
3500 param1, param2,
3501 (int)n, param4));
3502 Py_DECREF(param1);
3503 Py_DECREF(param2);
3504 Py_DECREF(param4);
3505 if( ret) {
3506 str = Py2wxString(ret);
3507 Py_DECREF(ret);
3508 }
3509 }
3510 wxPyEndBlockThreads(blocked);
3511 return (found ? str : wxLocale::GetString(origString, origString2, n, domain) );
3512 }
3513
3514 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3515 wxPyLocale* loc;
3516 if (language == -1)
3517 loc = new wxPyLocale();
3518 else
3519 loc = new wxPyLocale(language, flags);
3520 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3521 // for the floating point conversions and such to work right.
3522 #if PY_VERSION_HEX < 0x02040000
3523 setlocale(LC_NUMERIC, "C");
3524 #endif
3525 return loc;
3526 }
3527
3528 #include "wx/wxPython/pydrawxxx.h"
3529
3530 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3531 wxColour col;
3532 self->GetPixel(x, y, &col);
3533 return col;
3534 }
3535 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3536 wxColour col;
3537 self->GetPixel(pt, &col);
3538 return col;
3539 }
3540
3541 SWIGINTERN int
3542 SWIG_AsVal_double (PyObject *obj, double* val)
3543 {
3544 if (PyNumber_Check(obj)) {
3545 if (val) *val = PyFloat_AsDouble(obj);
3546 return SWIG_OK;
3547 }
3548 return SWIG_TypeError;
3549 }
3550
3551 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3552 wxRect rv;
3553 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3554 return rv;
3555 }
3556 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3557 wxRect rect;
3558 self->GetClippingBox(rect);
3559 return rect;
3560 }
3561 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3562 wxArrayInt widths;
3563 self->GetPartialTextExtents(text, widths);
3564 return widths;
3565 }
3566
3567 #define SWIG_From_double PyFloat_FromDouble
3568
3569 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3570 self->SetLogicalOrigin(point.x, point.y);
3571 }
3572 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3573 self->SetDeviceOrigin(point.x, point.y);
3574 }
3575 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3576 self->CalcBoundingBox(point.x, point.y);
3577 }
3578 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3579 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3580 }
3581 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3582 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3583 }
3584 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3585 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3586 }
3587 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3588 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3589 }
3590 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3591 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3592 }
3593 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3594 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3595 }
3596
3597 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3598 *x1 = dc->MinX();
3599 *y1 = dc->MinY();
3600 *x2 = dc->MaxX();
3601 *y2 = dc->MaxY();
3602 }
3603
3604
3605 #include <wx/dcbuffer.h>
3606
3607
3608 #include <wx/dcps.h>
3609
3610
3611 #include <wx/metafile.h>
3612
3613
3614 #include <wx/dcsvg.h>
3615
3616
3617 #include <wx/graphics.h>
3618
3619
3620 #if !wxUSE_GRAPHICS_CONTEXT
3621 // C++ stub classes for platforms or build configurations that don't have
3622 // wxGraphicsContext yet.
3623
3624 class wxGraphicsRenderer;
3625 class wxGraphicsMatrix;
3626
3627
3628 class wxGraphicsObject : public wxObject
3629 {
3630 public :
3631 wxGraphicsObject() {}
3632 wxGraphicsObject( wxGraphicsRenderer* ) {
3633 PyErr_SetString(PyExc_NotImplementedError,
3634 "wx.GraphicsObject is not available on this platform.");
3635 }
3636 wxGraphicsObject( const wxGraphicsObject& ) {}
3637 virtual ~wxGraphicsObject() {}
3638 bool IsNull() const { return false; }
3639 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3640 } ;
3641
3642
3643
3644 class wxGraphicsPen : public wxGraphicsObject
3645 {
3646 public:
3647 wxGraphicsPen() {}
3648 virtual ~wxGraphicsPen() {}
3649 } ;
3650 wxGraphicsPen wxNullGraphicsPen;
3651
3652
3653
3654 class wxGraphicsBrush : public wxGraphicsObject
3655 {
3656 public :
3657 wxGraphicsBrush() {}
3658 virtual ~wxGraphicsBrush() {}
3659 } ;
3660 wxGraphicsBrush wxNullGraphicsBrush;
3661
3662
3663
3664 class wxGraphicsFont : public wxGraphicsObject
3665 {
3666 public :
3667 wxGraphicsFont() {}
3668 virtual ~wxGraphicsFont() {}
3669 } ;
3670 wxGraphicsFont wxNullGraphicsFont;
3671
3672
3673
3674 class wxGraphicsPath : public wxGraphicsObject
3675 {
3676 public :
3677 wxGraphicsPath() { }
3678 wxGraphicsPath(wxGraphicsRenderer* ) {
3679 PyErr_SetString(PyExc_NotImplementedError,
3680 "wx.GraphicsPath is not available on this platform.");
3681 }
3682 virtual ~wxGraphicsPath() {}
3683
3684 void MoveToPoint( wxDouble, wxDouble ) {}
3685 void MoveToPoint( const wxPoint2DDouble& ) {}
3686 void AddLineToPoint( wxDouble, wxDouble ) {}
3687 void AddLineToPoint( const wxPoint2DDouble& ) {}
3688 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3689 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3690 void AddPath( const wxGraphicsPath& ) {}
3691 void CloseSubpath() {}
3692 void GetCurrentPoint( wxDouble&, wxDouble&) const {}
3693 wxPoint2DDouble GetCurrentPoint() const { return wxPoint2D(0,0); }
3694 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3695 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
3696
3697 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3698 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3699 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3700 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3701
3702 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3703 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3704 void * GetNativePath() const { return NULL; }
3705 void UnGetNativePath(void *) const {}
3706 void Transform( const wxGraphicsMatrix& ) {}
3707 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) const {}
3708 wxRect2D GetBox() const { return wxRect2D(0,0,0,0); }
3709
3710 bool Contains( wxDouble , wxDouble , int ) const { return false; }
3711 bool Contains( const wxPoint2DDouble& , int ) const { return false; }
3712 };
3713 wxGraphicsPath wxNullGraphicsPath;
3714
3715
3716 class wxGraphicsMatrix : public wxGraphicsObject
3717 {
3718 public :
3719 wxGraphicsMatrix() { }
3720 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3721 PyErr_SetString(PyExc_NotImplementedError,
3722 "wx.GraphicsMatrix is not available on this platform.");
3723 }
3724 virtual ~wxGraphicsMatrix() {}
3725 virtual void Concat( const wxGraphicsMatrix & ) {}
3726 virtual void Copy( const wxGraphicsMatrix & ) {}
3727 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3728 wxDouble , wxDouble ) {}
3729 virtual void Get(wxDouble*, wxDouble*, wxDouble*,
3730 wxDouble*, wxDouble*, wxDouble*) {}
3731 virtual void Invert() {}
3732 virtual bool IsEqual( const wxGraphicsMatrix& t) const { return false; }
3733 virtual bool IsIdentity() const { return false; }
3734 virtual void Translate( wxDouble , wxDouble ) {}
3735 virtual void Scale( wxDouble , wxDouble ) {}
3736 virtual void Rotate( wxDouble ) {}
3737 virtual void TransformPoint( wxDouble *, wxDouble * ) const {}
3738 virtual void TransformDistance( wxDouble *, wxDouble * ) const {}
3739 virtual void * GetNativeMatrix() const { return NULL; }
3740 };
3741 wxGraphicsMatrix wxNullGraphicsMatrix;
3742
3743
3744 class wxGraphicsContext : public wxGraphicsObject
3745 {
3746 public:
3747
3748 wxGraphicsContext(wxGraphicsRenderer* ) {
3749 PyErr_SetString(PyExc_NotImplementedError,
3750 "wx.GraphicsContext is not available on this platform.");
3751 }
3752
3753 virtual ~wxGraphicsContext() {}
3754
3755 static wxGraphicsContext* Create() {
3756 PyErr_SetString(PyExc_NotImplementedError,
3757 "wx.GraphicsContext is not available on this platform.");
3758 return NULL;
3759 }
3760 static wxGraphicsContext* Create( const wxWindowDC& ) {
3761 PyErr_SetString(PyExc_NotImplementedError,
3762 "wx.GraphicsContext is not available on this platform.");
3763 return NULL;
3764 }
3765
3766 static wxGraphicsContext* CreateFromNative( void * ) {
3767 PyErr_SetString(PyExc_NotImplementedError,
3768 "wx.GraphicsContext is not available on this platform.");
3769 return NULL;
3770 }
3771
3772 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3773 PyErr_SetString(PyExc_NotImplementedError,
3774 "wx.GraphicsContext is not available on this platform.");
3775 return NULL;
3776 }
3777
3778 static wxGraphicsContext* Create( wxWindow* ) {
3779 PyErr_SetString(PyExc_NotImplementedError,
3780 "wx.GraphicsContext is not available on this platform.");
3781 return NULL;
3782 }
3783
3784 wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
3785
3786 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3787
3788 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3789
3790 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3791 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
3792
3793 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3794 wxDouble xc, wxDouble yc, wxDouble radius,
3795 const wxColour &oColor, const wxColour &cColor) { return wxNullGraphicsBrush; }
3796
3797 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return wxNullGraphicsFont; }
3798
3799 virtual wxGraphicsMatrix CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3800 wxDouble, wxDouble) { return wxNullGraphicsMatrix; }
3801
3802 virtual void PushState() {}
3803 virtual void PopState() {}
3804 virtual void Clip( const wxRegion & ) {}
3805 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3806 virtual void ResetClip() {}
3807 virtual void * GetNativeContext() { return NULL; }
3808 virtual int GetLogicalFunction() const { return 0; }
3809 virtual bool SetLogicalFunction(int ) {}
3810 virtual void Translate( wxDouble , wxDouble ) {}
3811 virtual void Scale( wxDouble , wxDouble ) {}
3812 virtual void Rotate( wxDouble ) {}
3813 virtual void ConcatTransform( const wxGraphicsMatrix& ) {}
3814 virtual void SetTransform( const wxGraphicsMatrix& ) {}
3815 virtual wxGraphicsMatrix GetTransform() const { return wxNullGraphicsMatrix; }
3816
3817 virtual void SetPen( const wxGraphicsPen& ) {}
3818 void SetPen( const wxPen& ) {}
3819
3820 virtual void SetBrush( const wxGraphicsBrush& ) {}
3821 void SetBrush( const wxBrush& ) {}
3822
3823 virtual void SetFont( const wxGraphicsFont& ) {}
3824 void SetFont( const wxFont&, const wxColour& ) {}
3825
3826 virtual void StrokePath( const wxGraphicsPath & ) {}
3827 virtual void FillPath( const wxGraphicsPath &, int ) {}
3828 virtual void DrawPath( const wxGraphicsPath &, int ) {}
3829
3830 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3831 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3832 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxGraphicsBrush ) {}
3833 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble , wxGraphicsBrush ) {}
3834 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3835 wxDouble *, wxDouble * ) const {}
3836 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3837
3838 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3839 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3840
3841 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3842 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3843 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3844 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3845 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3846 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3847 virtual void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3848 virtual bool ShouldOffset() const { return false; }
3849 };
3850
3851
3852 class wxGraphicsRenderer : public wxObject
3853 {
3854 public :
3855 wxGraphicsRenderer() {
3856 PyErr_SetString(PyExc_NotImplementedError,
3857 "wx.GraphicsRenderer is not available on this platform.");
3858 }
3859
3860 virtual ~wxGraphicsRenderer() {}
3861
3862 static wxGraphicsRenderer* GetDefaultRenderer() {
3863 PyErr_SetString(PyExc_NotImplementedError,
3864 "wx.GraphicsRenderer is not available on this platform.");
3865 return NULL;
3866 }
3867
3868 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3869 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3870 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3871 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3872 virtual wxGraphicsContext * CreateMeasuringContext() { return NULL; }
3873
3874 virtual wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
3875
3876 virtual wxGraphicsMatrix CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3877 wxDouble , wxDouble ) { return wxNullGraphicsMatrix; }
3878
3879 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3880 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3881 virtual wxGraphicsBrush CreateLinearGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble ,
3882 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
3883 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3884 const wxColour &, const wxColour &) { return wxNullGraphicsBrush; }
3885 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGraphicsFont; }
3886 };
3887
3888
3889
3890 class wxGCDC: public wxWindowDC
3891 {
3892 public:
3893 wxGCDC(const wxWindowDC&) {
3894 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3895 PyErr_SetString(PyExc_NotImplementedError,
3896 "wxGCDC is not available on this platform.");
3897 wxPyEndBlockThreads(blocked);
3898 }
3899
3900 wxGCDC(const wxWindow*) {
3901 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3902 PyErr_SetString(PyExc_NotImplementedError,
3903 "wxGCDC is not available on this platform.");
3904 wxPyEndBlockThreads(blocked);
3905 }
3906
3907 wxGCDC() {
3908 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3909 PyErr_SetString(PyExc_NotImplementedError,
3910 "wxGCDC is not available on this platform.");
3911 wxPyEndBlockThreads(blocked);
3912 }
3913
3914 virtual ~wxGCDC() {}
3915
3916 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3917 void SetGraphicsContext( wxGraphicsContext* ) {}
3918 };
3919
3920 #endif
3921
3922 SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3923 if ( !backgroundBrush.IsNull() )
3924 self->DrawText(str, x, y, backgroundBrush);
3925 else
3926 self->DrawText(str, x, y);
3927 }
3928 SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3929 if ( !backgroundBrush.IsNull() )
3930 self->DrawText(str, x, y, angle, backgroundBrush);
3931 else
3932 self->DrawText(str, x, y, angle);
3933 }
3934 SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3935 wxDouble width = 0.0,
3936 height = 0.0;
3937 self->GetTextExtent(text, &width, &height, NULL, NULL);
3938 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3939 PyObject* rv = PyTuple_New(2);
3940 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3941 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3942 return rv;
3943 }
3944 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3945 wxArrayDouble widths;
3946 self->GetPartialTextExtents(text, widths);
3947 return widths;
3948 }
3949 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3950 size_t c1, c2, count;
3951 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3952 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3953
3954 if ( beginP != NULL && endP != NULL )
3955 {
3956 count = wxMin(c1, c2);
3957 self->StrokeLines(count, beginP, endP);
3958 }
3959 delete [] beginP;
3960 delete [] endP;
3961 }
3962
3963 #include "wx/dcgraph.h"
3964
3965
3966 #include <wx/overlay.h>
3967
3968
3969
3970 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3971 self->AddColour(name, wxColour(red, green, blue));
3972 }
3973
3974 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3975 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3976 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3977 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3978
3979
3980 #include <wx/effects.h>
3981
3982
3983 #include "wx/renderer.h"
3984
3985
3986 SWIGINTERNINLINE PyObject*
3987 SWIG_From_bool (bool value)
3988 {
3989 return PyBool_FromLong(value ? 1 : 0);
3990 }
3991
3992
3993 #include "wx/wxPython/pseudodc.h"
3994
3995 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3996 wxRect rect;
3997 self->GetIdBounds(id, rect);
3998 return rect;
3999 }
4000 #ifdef __cplusplus
4001 extern "C" {
4002 #endif
4003 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4004 PyObject *resultobj = 0;
4005 wxGDIObject *result = 0 ;
4006
4007 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
4008 {
4009 if (!wxPyCheckForApp()) SWIG_fail;
4010 PyThreadState* __tstate = wxPyBeginAllowThreads();
4011 result = (wxGDIObject *)new wxGDIObject();
4012 wxPyEndAllowThreads(__tstate);
4013 if (PyErr_Occurred()) SWIG_fail;
4014 }
4015 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
4016 return resultobj;
4017 fail:
4018 return NULL;
4019 }
4020
4021
4022 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4023 PyObject *resultobj = 0;
4024 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
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, SWIG_POINTER_DISOWN | 0 );
4032 if (!SWIG_IsOK(res1)) {
4033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4034 }
4035 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4036 {
4037 PyThreadState* __tstate = wxPyBeginAllowThreads();
4038 delete arg1;
4039
4040 wxPyEndAllowThreads(__tstate);
4041 if (PyErr_Occurred()) SWIG_fail;
4042 }
4043 resultobj = SWIG_Py_Void();
4044 return resultobj;
4045 fail:
4046 return NULL;
4047 }
4048
4049
4050 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4051 PyObject *resultobj = 0;
4052 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4053 bool result;
4054 void *argp1 = 0 ;
4055 int res1 = 0 ;
4056 PyObject *swig_obj[1] ;
4057
4058 if (!args) SWIG_fail;
4059 swig_obj[0] = args;
4060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4061 if (!SWIG_IsOK(res1)) {
4062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4063 }
4064 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4065 {
4066 PyThreadState* __tstate = wxPyBeginAllowThreads();
4067 result = (bool)(arg1)->IsNull();
4068 wxPyEndAllowThreads(__tstate);
4069 if (PyErr_Occurred()) SWIG_fail;
4070 }
4071 {
4072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4073 }
4074 return resultobj;
4075 fail:
4076 return NULL;
4077 }
4078
4079
4080 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4081 PyObject *obj;
4082 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4083 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4084 return SWIG_Py_Void();
4085 }
4086
4087 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4088 return SWIG_Python_InitShadowInstance(args);
4089 }
4090
4091 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4092 PyObject *resultobj = 0;
4093 byte arg1 = (byte) 0 ;
4094 byte arg2 = (byte) 0 ;
4095 byte arg3 = (byte) 0 ;
4096 byte arg4 = (byte) wxALPHA_OPAQUE ;
4097 wxColour *result = 0 ;
4098 unsigned char val1 ;
4099 int ecode1 = 0 ;
4100 unsigned char val2 ;
4101 int ecode2 = 0 ;
4102 unsigned char val3 ;
4103 int ecode3 = 0 ;
4104 unsigned char val4 ;
4105 int ecode4 = 0 ;
4106 PyObject * obj0 = 0 ;
4107 PyObject * obj1 = 0 ;
4108 PyObject * obj2 = 0 ;
4109 PyObject * obj3 = 0 ;
4110 char * kwnames[] = {
4111 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4112 };
4113
4114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4115 if (obj0) {
4116 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4117 if (!SWIG_IsOK(ecode1)) {
4118 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4119 }
4120 arg1 = static_cast< byte >(val1);
4121 }
4122 if (obj1) {
4123 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4124 if (!SWIG_IsOK(ecode2)) {
4125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4126 }
4127 arg2 = static_cast< byte >(val2);
4128 }
4129 if (obj2) {
4130 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4131 if (!SWIG_IsOK(ecode3)) {
4132 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4133 }
4134 arg3 = static_cast< byte >(val3);
4135 }
4136 if (obj3) {
4137 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4138 if (!SWIG_IsOK(ecode4)) {
4139 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4140 }
4141 arg4 = static_cast< byte >(val4);
4142 }
4143 {
4144 PyThreadState* __tstate = wxPyBeginAllowThreads();
4145 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
4146 wxPyEndAllowThreads(__tstate);
4147 if (PyErr_Occurred()) SWIG_fail;
4148 }
4149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4150 return resultobj;
4151 fail:
4152 return NULL;
4153 }
4154
4155
4156 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4157 PyObject *resultobj = 0;
4158 wxString *arg1 = 0 ;
4159 wxColour *result = 0 ;
4160 bool temp1 = false ;
4161 PyObject * obj0 = 0 ;
4162 char * kwnames[] = {
4163 (char *) "colorName", NULL
4164 };
4165
4166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4167 {
4168 arg1 = wxString_in_helper(obj0);
4169 if (arg1 == NULL) SWIG_fail;
4170 temp1 = true;
4171 }
4172 {
4173 if (!wxPyCheckForApp()) SWIG_fail;
4174 PyThreadState* __tstate = wxPyBeginAllowThreads();
4175 result = (wxColour *)new wxColour((wxString const &)*arg1);
4176 wxPyEndAllowThreads(__tstate);
4177 if (PyErr_Occurred()) SWIG_fail;
4178 }
4179 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4180 {
4181 if (temp1)
4182 delete arg1;
4183 }
4184 return resultobj;
4185 fail:
4186 {
4187 if (temp1)
4188 delete arg1;
4189 }
4190 return NULL;
4191 }
4192
4193
4194 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4195 PyObject *resultobj = 0;
4196 unsigned long arg1 ;
4197 wxColour *result = 0 ;
4198 unsigned long val1 ;
4199 int ecode1 = 0 ;
4200 PyObject * obj0 = 0 ;
4201 char * kwnames[] = {
4202 (char *) "colRGB", NULL
4203 };
4204
4205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4206 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4207 if (!SWIG_IsOK(ecode1)) {
4208 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4209 }
4210 arg1 = static_cast< unsigned long >(val1);
4211 {
4212 PyThreadState* __tstate = wxPyBeginAllowThreads();
4213 result = (wxColour *)new wxColour(arg1);
4214 wxPyEndAllowThreads(__tstate);
4215 if (PyErr_Occurred()) SWIG_fail;
4216 }
4217 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4218 return resultobj;
4219 fail:
4220 return NULL;
4221 }
4222
4223
4224 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4225 PyObject *resultobj = 0;
4226 wxColour *arg1 = (wxColour *) 0 ;
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, SWIG_POINTER_DISOWN | 0 );
4234 if (!SWIG_IsOK(res1)) {
4235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4236 }
4237 arg1 = reinterpret_cast< wxColour * >(argp1);
4238 {
4239 PyThreadState* __tstate = wxPyBeginAllowThreads();
4240 delete arg1;
4241
4242 wxPyEndAllowThreads(__tstate);
4243 if (PyErr_Occurred()) SWIG_fail;
4244 }
4245 resultobj = SWIG_Py_Void();
4246 return resultobj;
4247 fail:
4248 return NULL;
4249 }
4250
4251
4252 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4253 PyObject *resultobj = 0;
4254 wxColour *arg1 = (wxColour *) 0 ;
4255 byte result;
4256 void *argp1 = 0 ;
4257 int res1 = 0 ;
4258 PyObject *swig_obj[1] ;
4259
4260 if (!args) SWIG_fail;
4261 swig_obj[0] = args;
4262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4263 if (!SWIG_IsOK(res1)) {
4264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4265 }
4266 arg1 = reinterpret_cast< wxColour * >(argp1);
4267 {
4268 PyThreadState* __tstate = wxPyBeginAllowThreads();
4269 result = (byte)(arg1)->Red();
4270 wxPyEndAllowThreads(__tstate);
4271 if (PyErr_Occurred()) SWIG_fail;
4272 }
4273 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4274 return resultobj;
4275 fail:
4276 return NULL;
4277 }
4278
4279
4280 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4281 PyObject *resultobj = 0;
4282 wxColour *arg1 = (wxColour *) 0 ;
4283 byte result;
4284 void *argp1 = 0 ;
4285 int res1 = 0 ;
4286 PyObject *swig_obj[1] ;
4287
4288 if (!args) SWIG_fail;
4289 swig_obj[0] = args;
4290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4291 if (!SWIG_IsOK(res1)) {
4292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4293 }
4294 arg1 = reinterpret_cast< wxColour * >(argp1);
4295 {
4296 PyThreadState* __tstate = wxPyBeginAllowThreads();
4297 result = (byte)(arg1)->Green();
4298 wxPyEndAllowThreads(__tstate);
4299 if (PyErr_Occurred()) SWIG_fail;
4300 }
4301 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4302 return resultobj;
4303 fail:
4304 return NULL;
4305 }
4306
4307
4308 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4309 PyObject *resultobj = 0;
4310 wxColour *arg1 = (wxColour *) 0 ;
4311 byte result;
4312 void *argp1 = 0 ;
4313 int res1 = 0 ;
4314 PyObject *swig_obj[1] ;
4315
4316 if (!args) SWIG_fail;
4317 swig_obj[0] = args;
4318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4319 if (!SWIG_IsOK(res1)) {
4320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4321 }
4322 arg1 = reinterpret_cast< wxColour * >(argp1);
4323 {
4324 PyThreadState* __tstate = wxPyBeginAllowThreads();
4325 result = (byte)(arg1)->Blue();
4326 wxPyEndAllowThreads(__tstate);
4327 if (PyErr_Occurred()) SWIG_fail;
4328 }
4329 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4330 return resultobj;
4331 fail:
4332 return NULL;
4333 }
4334
4335
4336 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4337 PyObject *resultobj = 0;
4338 wxColour *arg1 = (wxColour *) 0 ;
4339 byte result;
4340 void *argp1 = 0 ;
4341 int res1 = 0 ;
4342 PyObject *swig_obj[1] ;
4343
4344 if (!args) SWIG_fail;
4345 swig_obj[0] = args;
4346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4347 if (!SWIG_IsOK(res1)) {
4348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4349 }
4350 arg1 = reinterpret_cast< wxColour * >(argp1);
4351 {
4352 PyThreadState* __tstate = wxPyBeginAllowThreads();
4353 result = (byte)(arg1)->Alpha();
4354 wxPyEndAllowThreads(__tstate);
4355 if (PyErr_Occurred()) SWIG_fail;
4356 }
4357 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4358 return resultobj;
4359 fail:
4360 return NULL;
4361 }
4362
4363
4364 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4365 PyObject *resultobj = 0;
4366 wxColour *arg1 = (wxColour *) 0 ;
4367 bool result;
4368 void *argp1 = 0 ;
4369 int res1 = 0 ;
4370 PyObject *swig_obj[1] ;
4371
4372 if (!args) SWIG_fail;
4373 swig_obj[0] = args;
4374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4375 if (!SWIG_IsOK(res1)) {
4376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4377 }
4378 arg1 = reinterpret_cast< wxColour * >(argp1);
4379 {
4380 PyThreadState* __tstate = wxPyBeginAllowThreads();
4381 result = (bool)(arg1)->IsOk();
4382 wxPyEndAllowThreads(__tstate);
4383 if (PyErr_Occurred()) SWIG_fail;
4384 }
4385 {
4386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4387 }
4388 return resultobj;
4389 fail:
4390 return NULL;
4391 }
4392
4393
4394 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4395 PyObject *resultobj = 0;
4396 wxColour *arg1 = (wxColour *) 0 ;
4397 byte arg2 ;
4398 byte arg3 ;
4399 byte arg4 ;
4400 byte arg5 = (byte) wxALPHA_OPAQUE ;
4401 void *argp1 = 0 ;
4402 int res1 = 0 ;
4403 unsigned char val2 ;
4404 int ecode2 = 0 ;
4405 unsigned char val3 ;
4406 int ecode3 = 0 ;
4407 unsigned char val4 ;
4408 int ecode4 = 0 ;
4409 unsigned char val5 ;
4410 int ecode5 = 0 ;
4411 PyObject * obj0 = 0 ;
4412 PyObject * obj1 = 0 ;
4413 PyObject * obj2 = 0 ;
4414 PyObject * obj3 = 0 ;
4415 PyObject * obj4 = 0 ;
4416 char * kwnames[] = {
4417 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4418 };
4419
4420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4422 if (!SWIG_IsOK(res1)) {
4423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4424 }
4425 arg1 = reinterpret_cast< wxColour * >(argp1);
4426 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4427 if (!SWIG_IsOK(ecode2)) {
4428 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4429 }
4430 arg2 = static_cast< byte >(val2);
4431 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4432 if (!SWIG_IsOK(ecode3)) {
4433 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4434 }
4435 arg3 = static_cast< byte >(val3);
4436 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4437 if (!SWIG_IsOK(ecode4)) {
4438 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4439 }
4440 arg4 = static_cast< byte >(val4);
4441 if (obj4) {
4442 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4443 if (!SWIG_IsOK(ecode5)) {
4444 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4445 }
4446 arg5 = static_cast< byte >(val5);
4447 }
4448 {
4449 PyThreadState* __tstate = wxPyBeginAllowThreads();
4450 (arg1)->Set(arg2,arg3,arg4,arg5);
4451 wxPyEndAllowThreads(__tstate);
4452 if (PyErr_Occurred()) SWIG_fail;
4453 }
4454 resultobj = SWIG_Py_Void();
4455 return resultobj;
4456 fail:
4457 return NULL;
4458 }
4459
4460
4461 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4462 PyObject *resultobj = 0;
4463 wxColour *arg1 = (wxColour *) 0 ;
4464 unsigned long arg2 ;
4465 void *argp1 = 0 ;
4466 int res1 = 0 ;
4467 unsigned long val2 ;
4468 int ecode2 = 0 ;
4469 PyObject * obj0 = 0 ;
4470 PyObject * obj1 = 0 ;
4471 char * kwnames[] = {
4472 (char *) "self",(char *) "colRGB", NULL
4473 };
4474
4475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4477 if (!SWIG_IsOK(res1)) {
4478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4479 }
4480 arg1 = reinterpret_cast< wxColour * >(argp1);
4481 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4482 if (!SWIG_IsOK(ecode2)) {
4483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4484 }
4485 arg2 = static_cast< unsigned long >(val2);
4486 {
4487 PyThreadState* __tstate = wxPyBeginAllowThreads();
4488 (arg1)->Set(arg2);
4489 wxPyEndAllowThreads(__tstate);
4490 if (PyErr_Occurred()) SWIG_fail;
4491 }
4492 resultobj = SWIG_Py_Void();
4493 return resultobj;
4494 fail:
4495 return NULL;
4496 }
4497
4498
4499 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4500 PyObject *resultobj = 0;
4501 wxColour *arg1 = (wxColour *) 0 ;
4502 wxString *arg2 = 0 ;
4503 void *argp1 = 0 ;
4504 int res1 = 0 ;
4505 bool temp2 = false ;
4506 PyObject * obj0 = 0 ;
4507 PyObject * obj1 = 0 ;
4508 char * kwnames[] = {
4509 (char *) "self",(char *) "colourName", NULL
4510 };
4511
4512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4514 if (!SWIG_IsOK(res1)) {
4515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4516 }
4517 arg1 = reinterpret_cast< wxColour * >(argp1);
4518 {
4519 arg2 = wxString_in_helper(obj1);
4520 if (arg2 == NULL) SWIG_fail;
4521 temp2 = true;
4522 }
4523 {
4524 PyThreadState* __tstate = wxPyBeginAllowThreads();
4525 (arg1)->Set((wxString const &)*arg2);
4526 wxPyEndAllowThreads(__tstate);
4527 if (PyErr_Occurred()) SWIG_fail;
4528 }
4529 resultobj = SWIG_Py_Void();
4530 {
4531 if (temp2)
4532 delete arg2;
4533 }
4534 return resultobj;
4535 fail:
4536 {
4537 if (temp2)
4538 delete arg2;
4539 }
4540 return NULL;
4541 }
4542
4543
4544 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4545 PyObject *resultobj = 0;
4546 wxColour *arg1 = (wxColour *) 0 ;
4547 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4548 wxString result;
4549 void *argp1 = 0 ;
4550 int res1 = 0 ;
4551 long val2 ;
4552 int ecode2 = 0 ;
4553 PyObject * obj0 = 0 ;
4554 PyObject * obj1 = 0 ;
4555 char * kwnames[] = {
4556 (char *) "self",(char *) "flags", NULL
4557 };
4558
4559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4561 if (!SWIG_IsOK(res1)) {
4562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4563 }
4564 arg1 = reinterpret_cast< wxColour * >(argp1);
4565 if (obj1) {
4566 ecode2 = SWIG_AsVal_long(obj1, &val2);
4567 if (!SWIG_IsOK(ecode2)) {
4568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4569 }
4570 arg2 = static_cast< long >(val2);
4571 }
4572 {
4573 PyThreadState* __tstate = wxPyBeginAllowThreads();
4574 result = ((wxColour const *)arg1)->GetAsString(arg2);
4575 wxPyEndAllowThreads(__tstate);
4576 if (PyErr_Occurred()) SWIG_fail;
4577 }
4578 {
4579 #if wxUSE_UNICODE
4580 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4581 #else
4582 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4583 #endif
4584 }
4585 return resultobj;
4586 fail:
4587 return NULL;
4588 }
4589
4590
4591 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4592 PyObject *resultobj = 0;
4593 wxColour *arg1 = (wxColour *) 0 ;
4594 long result;
4595 void *argp1 = 0 ;
4596 int res1 = 0 ;
4597 PyObject *swig_obj[1] ;
4598
4599 if (!args) SWIG_fail;
4600 swig_obj[0] = args;
4601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4602 if (!SWIG_IsOK(res1)) {
4603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4604 }
4605 arg1 = reinterpret_cast< wxColour * >(argp1);
4606 {
4607 PyThreadState* __tstate = wxPyBeginAllowThreads();
4608 result = (long)((wxColour const *)arg1)->GetPixel();
4609 wxPyEndAllowThreads(__tstate);
4610 if (PyErr_Occurred()) SWIG_fail;
4611 }
4612 resultobj = SWIG_From_long(static_cast< long >(result));
4613 return resultobj;
4614 fail:
4615 return NULL;
4616 }
4617
4618
4619 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4620 PyObject *resultobj = 0;
4621 wxColour *arg1 = (wxColour *) 0 ;
4622 PyObject *arg2 = (PyObject *) 0 ;
4623 bool result;
4624 void *argp1 = 0 ;
4625 int res1 = 0 ;
4626 PyObject * obj0 = 0 ;
4627 PyObject * obj1 = 0 ;
4628 char * kwnames[] = {
4629 (char *) "self",(char *) "other", NULL
4630 };
4631
4632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4634 if (!SWIG_IsOK(res1)) {
4635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4636 }
4637 arg1 = reinterpret_cast< wxColour * >(argp1);
4638 arg2 = obj1;
4639 {
4640 result = (bool)wxColour___eq__(arg1,arg2);
4641 if (PyErr_Occurred()) SWIG_fail;
4642 }
4643 {
4644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4645 }
4646 return resultobj;
4647 fail:
4648 return NULL;
4649 }
4650
4651
4652 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4653 PyObject *resultobj = 0;
4654 wxColour *arg1 = (wxColour *) 0 ;
4655 PyObject *arg2 = (PyObject *) 0 ;
4656 bool result;
4657 void *argp1 = 0 ;
4658 int res1 = 0 ;
4659 PyObject * obj0 = 0 ;
4660 PyObject * obj1 = 0 ;
4661 char * kwnames[] = {
4662 (char *) "self",(char *) "other", NULL
4663 };
4664
4665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4667 if (!SWIG_IsOK(res1)) {
4668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4669 }
4670 arg1 = reinterpret_cast< wxColour * >(argp1);
4671 arg2 = obj1;
4672 {
4673 result = (bool)wxColour___ne__(arg1,arg2);
4674 if (PyErr_Occurred()) SWIG_fail;
4675 }
4676 {
4677 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4678 }
4679 return resultobj;
4680 fail:
4681 return NULL;
4682 }
4683
4684
4685 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4686 PyObject *resultobj = 0;
4687 wxColour *arg1 = (wxColour *) 0 ;
4688 bool arg2 = (bool) false ;
4689 PyObject *result = 0 ;
4690 void *argp1 = 0 ;
4691 int res1 = 0 ;
4692 bool val2 ;
4693 int ecode2 = 0 ;
4694 PyObject * obj0 = 0 ;
4695 PyObject * obj1 = 0 ;
4696 char * kwnames[] = {
4697 (char *) "self",(char *) "includeAlpha", NULL
4698 };
4699
4700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4702 if (!SWIG_IsOK(res1)) {
4703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4704 }
4705 arg1 = reinterpret_cast< wxColour * >(argp1);
4706 if (obj1) {
4707 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4708 if (!SWIG_IsOK(ecode2)) {
4709 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4710 }
4711 arg2 = static_cast< bool >(val2);
4712 }
4713 {
4714 result = (PyObject *)wxColour_Get(arg1,arg2);
4715 if (PyErr_Occurred()) SWIG_fail;
4716 }
4717 resultobj = result;
4718 return resultobj;
4719 fail:
4720 return NULL;
4721 }
4722
4723
4724 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4725 PyObject *resultobj = 0;
4726 wxColour *arg1 = (wxColour *) 0 ;
4727 unsigned long result;
4728 void *argp1 = 0 ;
4729 int res1 = 0 ;
4730 PyObject *swig_obj[1] ;
4731
4732 if (!args) SWIG_fail;
4733 swig_obj[0] = args;
4734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4735 if (!SWIG_IsOK(res1)) {
4736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4737 }
4738 arg1 = reinterpret_cast< wxColour * >(argp1);
4739 {
4740 result = (unsigned long)wxColour_GetRGB(arg1);
4741 if (PyErr_Occurred()) SWIG_fail;
4742 }
4743 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4744 return resultobj;
4745 fail:
4746 return NULL;
4747 }
4748
4749
4750 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4751 PyObject *obj;
4752 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4753 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4754 return SWIG_Py_Void();
4755 }
4756
4757 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4758 return SWIG_Python_InitShadowInstance(args);
4759 }
4760
4761 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4762 PyObject *resultobj = 0;
4763 int arg1 ;
4764 unsigned char *arg2 = (unsigned char *) 0 ;
4765 unsigned char *arg3 = (unsigned char *) 0 ;
4766 unsigned char *arg4 = (unsigned char *) 0 ;
4767 wxPalette *result = 0 ;
4768 int val1 ;
4769 int ecode1 = 0 ;
4770 void *argp2 = 0 ;
4771 int res2 = 0 ;
4772 void *argp3 = 0 ;
4773 int res3 = 0 ;
4774 void *argp4 = 0 ;
4775 int res4 = 0 ;
4776 PyObject * obj0 = 0 ;
4777 PyObject * obj1 = 0 ;
4778 PyObject * obj2 = 0 ;
4779 PyObject * obj3 = 0 ;
4780 char * kwnames[] = {
4781 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4782 };
4783
4784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4785 ecode1 = SWIG_AsVal_int(obj0, &val1);
4786 if (!SWIG_IsOK(ecode1)) {
4787 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4788 }
4789 arg1 = static_cast< int >(val1);
4790 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4791 if (!SWIG_IsOK(res2)) {
4792 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4793 }
4794 arg2 = reinterpret_cast< unsigned char * >(argp2);
4795 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4796 if (!SWIG_IsOK(res3)) {
4797 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4798 }
4799 arg3 = reinterpret_cast< unsigned char * >(argp3);
4800 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4801 if (!SWIG_IsOK(res4)) {
4802 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4803 }
4804 arg4 = reinterpret_cast< unsigned char * >(argp4);
4805 {
4806 if (!wxPyCheckForApp()) SWIG_fail;
4807 PyThreadState* __tstate = wxPyBeginAllowThreads();
4808 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4809 wxPyEndAllowThreads(__tstate);
4810 if (PyErr_Occurred()) SWIG_fail;
4811 }
4812 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4813 return resultobj;
4814 fail:
4815 return NULL;
4816 }
4817
4818
4819 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4820 PyObject *resultobj = 0;
4821 wxPalette *arg1 = (wxPalette *) 0 ;
4822 void *argp1 = 0 ;
4823 int res1 = 0 ;
4824 PyObject *swig_obj[1] ;
4825
4826 if (!args) SWIG_fail;
4827 swig_obj[0] = args;
4828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4829 if (!SWIG_IsOK(res1)) {
4830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4831 }
4832 arg1 = reinterpret_cast< wxPalette * >(argp1);
4833 {
4834 PyThreadState* __tstate = wxPyBeginAllowThreads();
4835 delete arg1;
4836
4837 wxPyEndAllowThreads(__tstate);
4838 if (PyErr_Occurred()) SWIG_fail;
4839 }
4840 resultobj = SWIG_Py_Void();
4841 return resultobj;
4842 fail:
4843 return NULL;
4844 }
4845
4846
4847 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4848 PyObject *resultobj = 0;
4849 wxPalette *arg1 = (wxPalette *) 0 ;
4850 byte arg2 ;
4851 byte arg3 ;
4852 byte arg4 ;
4853 int result;
4854 void *argp1 = 0 ;
4855 int res1 = 0 ;
4856 unsigned char val2 ;
4857 int ecode2 = 0 ;
4858 unsigned char val3 ;
4859 int ecode3 = 0 ;
4860 unsigned char val4 ;
4861 int ecode4 = 0 ;
4862 PyObject * obj0 = 0 ;
4863 PyObject * obj1 = 0 ;
4864 PyObject * obj2 = 0 ;
4865 PyObject * obj3 = 0 ;
4866 char * kwnames[] = {
4867 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4868 };
4869
4870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4872 if (!SWIG_IsOK(res1)) {
4873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4874 }
4875 arg1 = reinterpret_cast< wxPalette * >(argp1);
4876 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4877 if (!SWIG_IsOK(ecode2)) {
4878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4879 }
4880 arg2 = static_cast< byte >(val2);
4881 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4882 if (!SWIG_IsOK(ecode3)) {
4883 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4884 }
4885 arg3 = static_cast< byte >(val3);
4886 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4887 if (!SWIG_IsOK(ecode4)) {
4888 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4889 }
4890 arg4 = static_cast< byte >(val4);
4891 {
4892 PyThreadState* __tstate = wxPyBeginAllowThreads();
4893 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4894 wxPyEndAllowThreads(__tstate);
4895 if (PyErr_Occurred()) SWIG_fail;
4896 }
4897 resultobj = SWIG_From_int(static_cast< int >(result));
4898 return resultobj;
4899 fail:
4900 return NULL;
4901 }
4902
4903
4904 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4905 PyObject *resultobj = 0;
4906 wxPalette *arg1 = (wxPalette *) 0 ;
4907 int arg2 ;
4908 byte *arg3 = (byte *) 0 ;
4909 byte *arg4 = (byte *) 0 ;
4910 byte *arg5 = (byte *) 0 ;
4911 bool result;
4912 void *argp1 = 0 ;
4913 int res1 = 0 ;
4914 int val2 ;
4915 int ecode2 = 0 ;
4916 byte temp3 ;
4917 int res3 = SWIG_TMPOBJ ;
4918 byte temp4 ;
4919 int res4 = SWIG_TMPOBJ ;
4920 byte temp5 ;
4921 int res5 = SWIG_TMPOBJ ;
4922 PyObject * obj0 = 0 ;
4923 PyObject * obj1 = 0 ;
4924 char * kwnames[] = {
4925 (char *) "self",(char *) "pixel", NULL
4926 };
4927
4928 arg3 = &temp3;
4929 arg4 = &temp4;
4930 arg5 = &temp5;
4931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4933 if (!SWIG_IsOK(res1)) {
4934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4935 }
4936 arg1 = reinterpret_cast< wxPalette * >(argp1);
4937 ecode2 = SWIG_AsVal_int(obj1, &val2);
4938 if (!SWIG_IsOK(ecode2)) {
4939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4940 }
4941 arg2 = static_cast< int >(val2);
4942 {
4943 PyThreadState* __tstate = wxPyBeginAllowThreads();
4944 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4945 wxPyEndAllowThreads(__tstate);
4946 if (PyErr_Occurred()) SWIG_fail;
4947 }
4948 {
4949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4950 }
4951 if (SWIG_IsTmpObj(res3)) {
4952 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4953 } else {
4954 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4955 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4956 }
4957 if (SWIG_IsTmpObj(res4)) {
4958 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4959 } else {
4960 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4961 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4962 }
4963 if (SWIG_IsTmpObj(res5)) {
4964 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4965 } else {
4966 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4967 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4968 }
4969 return resultobj;
4970 fail:
4971 return NULL;
4972 }
4973
4974
4975 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4976 PyObject *resultobj = 0;
4977 wxPalette *arg1 = (wxPalette *) 0 ;
4978 int result;
4979 void *argp1 = 0 ;
4980 int res1 = 0 ;
4981 PyObject *swig_obj[1] ;
4982
4983 if (!args) SWIG_fail;
4984 swig_obj[0] = args;
4985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4986 if (!SWIG_IsOK(res1)) {
4987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4988 }
4989 arg1 = reinterpret_cast< wxPalette * >(argp1);
4990 {
4991 PyThreadState* __tstate = wxPyBeginAllowThreads();
4992 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4993 wxPyEndAllowThreads(__tstate);
4994 if (PyErr_Occurred()) SWIG_fail;
4995 }
4996 resultobj = SWIG_From_int(static_cast< int >(result));
4997 return resultobj;
4998 fail:
4999 return NULL;
5000 }
5001
5002
5003 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5004 PyObject *resultobj = 0;
5005 wxPalette *arg1 = (wxPalette *) 0 ;
5006 bool result;
5007 void *argp1 = 0 ;
5008 int res1 = 0 ;
5009 PyObject *swig_obj[1] ;
5010
5011 if (!args) SWIG_fail;
5012 swig_obj[0] = args;
5013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5014 if (!SWIG_IsOK(res1)) {
5015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
5016 }
5017 arg1 = reinterpret_cast< wxPalette * >(argp1);
5018 {
5019 PyThreadState* __tstate = wxPyBeginAllowThreads();
5020 result = (bool)(arg1)->IsOk();
5021 wxPyEndAllowThreads(__tstate);
5022 if (PyErr_Occurred()) SWIG_fail;
5023 }
5024 {
5025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5026 }
5027 return resultobj;
5028 fail:
5029 return NULL;
5030 }
5031
5032
5033 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5034 PyObject *obj;
5035 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5036 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5037 return SWIG_Py_Void();
5038 }
5039
5040 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5041 return SWIG_Python_InitShadowInstance(args);
5042 }
5043
5044 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5045 PyObject *resultobj = 0;
5046 wxColour *arg1 = 0 ;
5047 int arg2 = (int) 1 ;
5048 int arg3 = (int) wxSOLID ;
5049 wxPen *result = 0 ;
5050 wxColour temp1 ;
5051 int val2 ;
5052 int ecode2 = 0 ;
5053 int val3 ;
5054 int ecode3 = 0 ;
5055 PyObject * obj0 = 0 ;
5056 PyObject * obj1 = 0 ;
5057 PyObject * obj2 = 0 ;
5058 char * kwnames[] = {
5059 (char *) "colour",(char *) "width",(char *) "style", NULL
5060 };
5061
5062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5063 {
5064 arg1 = &temp1;
5065 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5066 }
5067 if (obj1) {
5068 ecode2 = SWIG_AsVal_int(obj1, &val2);
5069 if (!SWIG_IsOK(ecode2)) {
5070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5071 }
5072 arg2 = static_cast< int >(val2);
5073 }
5074 if (obj2) {
5075 ecode3 = SWIG_AsVal_int(obj2, &val3);
5076 if (!SWIG_IsOK(ecode3)) {
5077 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5078 }
5079 arg3 = static_cast< int >(val3);
5080 }
5081 {
5082 if (!wxPyCheckForApp()) SWIG_fail;
5083 PyThreadState* __tstate = wxPyBeginAllowThreads();
5084 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5085 wxPyEndAllowThreads(__tstate);
5086 if (PyErr_Occurred()) SWIG_fail;
5087 }
5088 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5089 return resultobj;
5090 fail:
5091 return NULL;
5092 }
5093
5094
5095 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5096 PyObject *resultobj = 0;
5097 wxPen *arg1 = (wxPen *) 0 ;
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, SWIG_POINTER_DISOWN | 0 );
5105 if (!SWIG_IsOK(res1)) {
5106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5107 }
5108 arg1 = reinterpret_cast< wxPen * >(argp1);
5109 {
5110 PyThreadState* __tstate = wxPyBeginAllowThreads();
5111 delete arg1;
5112
5113 wxPyEndAllowThreads(__tstate);
5114 if (PyErr_Occurred()) SWIG_fail;
5115 }
5116 resultobj = SWIG_Py_Void();
5117 return resultobj;
5118 fail:
5119 return NULL;
5120 }
5121
5122
5123 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5124 PyObject *resultobj = 0;
5125 wxPen *arg1 = (wxPen *) 0 ;
5126 int result;
5127 void *argp1 = 0 ;
5128 int res1 = 0 ;
5129 PyObject *swig_obj[1] ;
5130
5131 if (!args) SWIG_fail;
5132 swig_obj[0] = args;
5133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5134 if (!SWIG_IsOK(res1)) {
5135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5136 }
5137 arg1 = reinterpret_cast< wxPen * >(argp1);
5138 {
5139 PyThreadState* __tstate = wxPyBeginAllowThreads();
5140 result = (int)(arg1)->GetCap();
5141 wxPyEndAllowThreads(__tstate);
5142 if (PyErr_Occurred()) SWIG_fail;
5143 }
5144 resultobj = SWIG_From_int(static_cast< int >(result));
5145 return resultobj;
5146 fail:
5147 return NULL;
5148 }
5149
5150
5151 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5152 PyObject *resultobj = 0;
5153 wxPen *arg1 = (wxPen *) 0 ;
5154 wxColour result;
5155 void *argp1 = 0 ;
5156 int res1 = 0 ;
5157 PyObject *swig_obj[1] ;
5158
5159 if (!args) SWIG_fail;
5160 swig_obj[0] = args;
5161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5162 if (!SWIG_IsOK(res1)) {
5163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5164 }
5165 arg1 = reinterpret_cast< wxPen * >(argp1);
5166 {
5167 PyThreadState* __tstate = wxPyBeginAllowThreads();
5168 result = (arg1)->GetColour();
5169 wxPyEndAllowThreads(__tstate);
5170 if (PyErr_Occurred()) SWIG_fail;
5171 }
5172 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5173 return resultobj;
5174 fail:
5175 return NULL;
5176 }
5177
5178
5179 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5180 PyObject *resultobj = 0;
5181 wxPen *arg1 = (wxPen *) 0 ;
5182 int result;
5183 void *argp1 = 0 ;
5184 int res1 = 0 ;
5185 PyObject *swig_obj[1] ;
5186
5187 if (!args) SWIG_fail;
5188 swig_obj[0] = args;
5189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5190 if (!SWIG_IsOK(res1)) {
5191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5192 }
5193 arg1 = reinterpret_cast< wxPen * >(argp1);
5194 {
5195 PyThreadState* __tstate = wxPyBeginAllowThreads();
5196 result = (int)(arg1)->GetJoin();
5197 wxPyEndAllowThreads(__tstate);
5198 if (PyErr_Occurred()) SWIG_fail;
5199 }
5200 resultobj = SWIG_From_int(static_cast< int >(result));
5201 return resultobj;
5202 fail:
5203 return NULL;
5204 }
5205
5206
5207 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5208 PyObject *resultobj = 0;
5209 wxPen *arg1 = (wxPen *) 0 ;
5210 int result;
5211 void *argp1 = 0 ;
5212 int res1 = 0 ;
5213 PyObject *swig_obj[1] ;
5214
5215 if (!args) SWIG_fail;
5216 swig_obj[0] = args;
5217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5218 if (!SWIG_IsOK(res1)) {
5219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5220 }
5221 arg1 = reinterpret_cast< wxPen * >(argp1);
5222 {
5223 PyThreadState* __tstate = wxPyBeginAllowThreads();
5224 result = (int)(arg1)->GetStyle();
5225 wxPyEndAllowThreads(__tstate);
5226 if (PyErr_Occurred()) SWIG_fail;
5227 }
5228 resultobj = SWIG_From_int(static_cast< int >(result));
5229 return resultobj;
5230 fail:
5231 return NULL;
5232 }
5233
5234
5235 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5236 PyObject *resultobj = 0;
5237 wxPen *arg1 = (wxPen *) 0 ;
5238 int result;
5239 void *argp1 = 0 ;
5240 int res1 = 0 ;
5241 PyObject *swig_obj[1] ;
5242
5243 if (!args) SWIG_fail;
5244 swig_obj[0] = args;
5245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5246 if (!SWIG_IsOK(res1)) {
5247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5248 }
5249 arg1 = reinterpret_cast< wxPen * >(argp1);
5250 {
5251 PyThreadState* __tstate = wxPyBeginAllowThreads();
5252 result = (int)(arg1)->GetWidth();
5253 wxPyEndAllowThreads(__tstate);
5254 if (PyErr_Occurred()) SWIG_fail;
5255 }
5256 resultobj = SWIG_From_int(static_cast< int >(result));
5257 return resultobj;
5258 fail:
5259 return NULL;
5260 }
5261
5262
5263 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5264 PyObject *resultobj = 0;
5265 wxPen *arg1 = (wxPen *) 0 ;
5266 bool result;
5267 void *argp1 = 0 ;
5268 int res1 = 0 ;
5269 PyObject *swig_obj[1] ;
5270
5271 if (!args) SWIG_fail;
5272 swig_obj[0] = args;
5273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5274 if (!SWIG_IsOK(res1)) {
5275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
5276 }
5277 arg1 = reinterpret_cast< wxPen * >(argp1);
5278 {
5279 PyThreadState* __tstate = wxPyBeginAllowThreads();
5280 result = (bool)(arg1)->IsOk();
5281 wxPyEndAllowThreads(__tstate);
5282 if (PyErr_Occurred()) SWIG_fail;
5283 }
5284 {
5285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5286 }
5287 return resultobj;
5288 fail:
5289 return NULL;
5290 }
5291
5292
5293 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5294 PyObject *resultobj = 0;
5295 wxPen *arg1 = (wxPen *) 0 ;
5296 int arg2 ;
5297 void *argp1 = 0 ;
5298 int res1 = 0 ;
5299 int val2 ;
5300 int ecode2 = 0 ;
5301 PyObject * obj0 = 0 ;
5302 PyObject * obj1 = 0 ;
5303 char * kwnames[] = {
5304 (char *) "self",(char *) "cap_style", NULL
5305 };
5306
5307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5309 if (!SWIG_IsOK(res1)) {
5310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5311 }
5312 arg1 = reinterpret_cast< wxPen * >(argp1);
5313 ecode2 = SWIG_AsVal_int(obj1, &val2);
5314 if (!SWIG_IsOK(ecode2)) {
5315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5316 }
5317 arg2 = static_cast< int >(val2);
5318 {
5319 PyThreadState* __tstate = wxPyBeginAllowThreads();
5320 (arg1)->SetCap(arg2);
5321 wxPyEndAllowThreads(__tstate);
5322 if (PyErr_Occurred()) SWIG_fail;
5323 }
5324 resultobj = SWIG_Py_Void();
5325 return resultobj;
5326 fail:
5327 return NULL;
5328 }
5329
5330
5331 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5332 PyObject *resultobj = 0;
5333 wxPen *arg1 = (wxPen *) 0 ;
5334 wxColour *arg2 = 0 ;
5335 void *argp1 = 0 ;
5336 int res1 = 0 ;
5337 wxColour temp2 ;
5338 PyObject * obj0 = 0 ;
5339 PyObject * obj1 = 0 ;
5340 char * kwnames[] = {
5341 (char *) "self",(char *) "colour", NULL
5342 };
5343
5344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5346 if (!SWIG_IsOK(res1)) {
5347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5348 }
5349 arg1 = reinterpret_cast< wxPen * >(argp1);
5350 {
5351 arg2 = &temp2;
5352 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5353 }
5354 {
5355 PyThreadState* __tstate = wxPyBeginAllowThreads();
5356 (arg1)->SetColour(*arg2);
5357 wxPyEndAllowThreads(__tstate);
5358 if (PyErr_Occurred()) SWIG_fail;
5359 }
5360 resultobj = SWIG_Py_Void();
5361 return resultobj;
5362 fail:
5363 return NULL;
5364 }
5365
5366
5367 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5368 PyObject *resultobj = 0;
5369 wxPen *arg1 = (wxPen *) 0 ;
5370 int arg2 ;
5371 void *argp1 = 0 ;
5372 int res1 = 0 ;
5373 int val2 ;
5374 int ecode2 = 0 ;
5375 PyObject * obj0 = 0 ;
5376 PyObject * obj1 = 0 ;
5377 char * kwnames[] = {
5378 (char *) "self",(char *) "join_style", NULL
5379 };
5380
5381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5383 if (!SWIG_IsOK(res1)) {
5384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5385 }
5386 arg1 = reinterpret_cast< wxPen * >(argp1);
5387 ecode2 = SWIG_AsVal_int(obj1, &val2);
5388 if (!SWIG_IsOK(ecode2)) {
5389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5390 }
5391 arg2 = static_cast< int >(val2);
5392 {
5393 PyThreadState* __tstate = wxPyBeginAllowThreads();
5394 (arg1)->SetJoin(arg2);
5395 wxPyEndAllowThreads(__tstate);
5396 if (PyErr_Occurred()) SWIG_fail;
5397 }
5398 resultobj = SWIG_Py_Void();
5399 return resultobj;
5400 fail:
5401 return NULL;
5402 }
5403
5404
5405 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5406 PyObject *resultobj = 0;
5407 wxPen *arg1 = (wxPen *) 0 ;
5408 int arg2 ;
5409 void *argp1 = 0 ;
5410 int res1 = 0 ;
5411 int val2 ;
5412 int ecode2 = 0 ;
5413 PyObject * obj0 = 0 ;
5414 PyObject * obj1 = 0 ;
5415 char * kwnames[] = {
5416 (char *) "self",(char *) "style", NULL
5417 };
5418
5419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5421 if (!SWIG_IsOK(res1)) {
5422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5423 }
5424 arg1 = reinterpret_cast< wxPen * >(argp1);
5425 ecode2 = SWIG_AsVal_int(obj1, &val2);
5426 if (!SWIG_IsOK(ecode2)) {
5427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5428 }
5429 arg2 = static_cast< int >(val2);
5430 {
5431 PyThreadState* __tstate = wxPyBeginAllowThreads();
5432 (arg1)->SetStyle(arg2);
5433 wxPyEndAllowThreads(__tstate);
5434 if (PyErr_Occurred()) SWIG_fail;
5435 }
5436 resultobj = SWIG_Py_Void();
5437 return resultobj;
5438 fail:
5439 return NULL;
5440 }
5441
5442
5443 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5444 PyObject *resultobj = 0;
5445 wxPen *arg1 = (wxPen *) 0 ;
5446 int arg2 ;
5447 void *argp1 = 0 ;
5448 int res1 = 0 ;
5449 int val2 ;
5450 int ecode2 = 0 ;
5451 PyObject * obj0 = 0 ;
5452 PyObject * obj1 = 0 ;
5453 char * kwnames[] = {
5454 (char *) "self",(char *) "width", NULL
5455 };
5456
5457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5459 if (!SWIG_IsOK(res1)) {
5460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5461 }
5462 arg1 = reinterpret_cast< wxPen * >(argp1);
5463 ecode2 = SWIG_AsVal_int(obj1, &val2);
5464 if (!SWIG_IsOK(ecode2)) {
5465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5466 }
5467 arg2 = static_cast< int >(val2);
5468 {
5469 PyThreadState* __tstate = wxPyBeginAllowThreads();
5470 (arg1)->SetWidth(arg2);
5471 wxPyEndAllowThreads(__tstate);
5472 if (PyErr_Occurred()) SWIG_fail;
5473 }
5474 resultobj = SWIG_Py_Void();
5475 return resultobj;
5476 fail:
5477 return NULL;
5478 }
5479
5480
5481 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5482 PyObject *resultobj = 0;
5483 wxPen *arg1 = (wxPen *) 0 ;
5484 int arg2 ;
5485 wxDash *arg3 = (wxDash *) 0 ;
5486 void *argp1 = 0 ;
5487 int res1 = 0 ;
5488 PyObject * obj0 = 0 ;
5489 PyObject * obj1 = 0 ;
5490 char * kwnames[] = {
5491 (char *) "self",(char *) "dashes", NULL
5492 };
5493
5494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5496 if (!SWIG_IsOK(res1)) {
5497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5498 }
5499 arg1 = reinterpret_cast< wxPen * >(argp1);
5500 {
5501 arg2 = PyList_Size(obj1);
5502 arg3 = (wxDash*)byte_LIST_helper(obj1);
5503 if (arg3 == NULL) SWIG_fail;
5504 }
5505 {
5506 PyThreadState* __tstate = wxPyBeginAllowThreads();
5507 (arg1)->SetDashes(arg2,arg3);
5508 wxPyEndAllowThreads(__tstate);
5509 if (PyErr_Occurred()) SWIG_fail;
5510 }
5511 resultobj = SWIG_Py_Void();
5512 {
5513 if (arg3) delete [] arg3;
5514 }
5515 return resultobj;
5516 fail:
5517 {
5518 if (arg3) delete [] arg3;
5519 }
5520 return NULL;
5521 }
5522
5523
5524 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5525 PyObject *resultobj = 0;
5526 wxPen *arg1 = (wxPen *) 0 ;
5527 PyObject *result = 0 ;
5528 void *argp1 = 0 ;
5529 int res1 = 0 ;
5530 PyObject *swig_obj[1] ;
5531
5532 if (!args) SWIG_fail;
5533 swig_obj[0] = args;
5534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5535 if (!SWIG_IsOK(res1)) {
5536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5537 }
5538 arg1 = reinterpret_cast< wxPen * >(argp1);
5539 {
5540 PyThreadState* __tstate = wxPyBeginAllowThreads();
5541 result = (PyObject *)wxPen_GetDashes(arg1);
5542 wxPyEndAllowThreads(__tstate);
5543 if (PyErr_Occurred()) SWIG_fail;
5544 }
5545 resultobj = result;
5546 return resultobj;
5547 fail:
5548 return NULL;
5549 }
5550
5551
5552 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5553 PyObject *resultobj = 0;
5554 wxPen *arg1 = (wxPen *) 0 ;
5555 PyObject *arg2 = (PyObject *) 0 ;
5556 PyObject *arg3 = (PyObject *) 0 ;
5557 void *argp1 = 0 ;
5558 int res1 = 0 ;
5559 PyObject * obj0 = 0 ;
5560 PyObject * obj1 = 0 ;
5561 PyObject * obj2 = 0 ;
5562 char * kwnames[] = {
5563 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5564 };
5565
5566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5568 if (!SWIG_IsOK(res1)) {
5569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5570 }
5571 arg1 = reinterpret_cast< wxPen * >(argp1);
5572 arg2 = obj1;
5573 arg3 = obj2;
5574 {
5575 PyThreadState* __tstate = wxPyBeginAllowThreads();
5576 wxPen__SetDashes(arg1,arg2,arg3);
5577 wxPyEndAllowThreads(__tstate);
5578 if (PyErr_Occurred()) SWIG_fail;
5579 }
5580 resultobj = SWIG_Py_Void();
5581 return resultobj;
5582 fail:
5583 return NULL;
5584 }
5585
5586
5587 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5588 PyObject *resultobj = 0;
5589 wxPen *arg1 = (wxPen *) 0 ;
5590 int result;
5591 void *argp1 = 0 ;
5592 int res1 = 0 ;
5593 PyObject *swig_obj[1] ;
5594
5595 if (!args) SWIG_fail;
5596 swig_obj[0] = args;
5597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5598 if (!SWIG_IsOK(res1)) {
5599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5600 }
5601 arg1 = reinterpret_cast< wxPen * >(argp1);
5602 {
5603 PyThreadState* __tstate = wxPyBeginAllowThreads();
5604 result = (int)((wxPen const *)arg1)->GetDashCount();
5605 wxPyEndAllowThreads(__tstate);
5606 if (PyErr_Occurred()) SWIG_fail;
5607 }
5608 resultobj = SWIG_From_int(static_cast< int >(result));
5609 return resultobj;
5610 fail:
5611 return NULL;
5612 }
5613
5614
5615 SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5616 PyObject *resultobj = 0;
5617 wxPen *arg1 = (wxPen *) 0 ;
5618 wxBitmap *result = 0 ;
5619 void *argp1 = 0 ;
5620 int res1 = 0 ;
5621 PyObject *swig_obj[1] ;
5622
5623 if (!args) SWIG_fail;
5624 swig_obj[0] = args;
5625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5626 if (!SWIG_IsOK(res1)) {
5627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5628 }
5629 arg1 = reinterpret_cast< wxPen * >(argp1);
5630 {
5631 PyThreadState* __tstate = wxPyBeginAllowThreads();
5632 result = (wxBitmap *)(arg1)->GetStipple();
5633 wxPyEndAllowThreads(__tstate);
5634 if (PyErr_Occurred()) SWIG_fail;
5635 }
5636 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5637 return resultobj;
5638 fail:
5639 return NULL;
5640 }
5641
5642
5643 SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5644 PyObject *resultobj = 0;
5645 wxPen *arg1 = (wxPen *) 0 ;
5646 wxBitmap *arg2 = 0 ;
5647 void *argp1 = 0 ;
5648 int res1 = 0 ;
5649 void *argp2 = 0 ;
5650 int res2 = 0 ;
5651 PyObject * obj0 = 0 ;
5652 PyObject * obj1 = 0 ;
5653 char * kwnames[] = {
5654 (char *) "self",(char *) "stipple", NULL
5655 };
5656
5657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5659 if (!SWIG_IsOK(res1)) {
5660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5661 }
5662 arg1 = reinterpret_cast< wxPen * >(argp1);
5663 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
5664 if (!SWIG_IsOK(res2)) {
5665 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5666 }
5667 if (!argp2) {
5668 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5669 }
5670 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5671 {
5672 PyThreadState* __tstate = wxPyBeginAllowThreads();
5673 (arg1)->SetStipple(*arg2);
5674 wxPyEndAllowThreads(__tstate);
5675 if (PyErr_Occurred()) SWIG_fail;
5676 }
5677 resultobj = SWIG_Py_Void();
5678 return resultobj;
5679 fail:
5680 return NULL;
5681 }
5682
5683
5684 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5685 PyObject *resultobj = 0;
5686 wxPen *arg1 = (wxPen *) 0 ;
5687 wxPen *arg2 = (wxPen *) 0 ;
5688 bool result;
5689 void *argp1 = 0 ;
5690 int res1 = 0 ;
5691 void *argp2 = 0 ;
5692 int res2 = 0 ;
5693 PyObject * obj0 = 0 ;
5694 PyObject * obj1 = 0 ;
5695 char * kwnames[] = {
5696 (char *) "self",(char *) "other", NULL
5697 };
5698
5699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5701 if (!SWIG_IsOK(res1)) {
5702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5703 }
5704 arg1 = reinterpret_cast< wxPen * >(argp1);
5705 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5706 if (!SWIG_IsOK(res2)) {
5707 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5708 }
5709 arg2 = reinterpret_cast< wxPen * >(argp2);
5710 {
5711 PyThreadState* __tstate = wxPyBeginAllowThreads();
5712 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5713 wxPyEndAllowThreads(__tstate);
5714 if (PyErr_Occurred()) SWIG_fail;
5715 }
5716 {
5717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5718 }
5719 return resultobj;
5720 fail:
5721 return NULL;
5722 }
5723
5724
5725 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5726 PyObject *resultobj = 0;
5727 wxPen *arg1 = (wxPen *) 0 ;
5728 wxPen *arg2 = (wxPen *) 0 ;
5729 bool result;
5730 void *argp1 = 0 ;
5731 int res1 = 0 ;
5732 void *argp2 = 0 ;
5733 int res2 = 0 ;
5734 PyObject * obj0 = 0 ;
5735 PyObject * obj1 = 0 ;
5736 char * kwnames[] = {
5737 (char *) "self",(char *) "other", NULL
5738 };
5739
5740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5742 if (!SWIG_IsOK(res1)) {
5743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5744 }
5745 arg1 = reinterpret_cast< wxPen * >(argp1);
5746 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5747 if (!SWIG_IsOK(res2)) {
5748 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5749 }
5750 arg2 = reinterpret_cast< wxPen * >(argp2);
5751 {
5752 PyThreadState* __tstate = wxPyBeginAllowThreads();
5753 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5754 wxPyEndAllowThreads(__tstate);
5755 if (PyErr_Occurred()) SWIG_fail;
5756 }
5757 {
5758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5759 }
5760 return resultobj;
5761 fail:
5762 return NULL;
5763 }
5764
5765
5766 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5767 PyObject *obj;
5768 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5769 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5770 return SWIG_Py_Void();
5771 }
5772
5773 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5774 return SWIG_Python_InitShadowInstance(args);
5775 }
5776
5777 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5778 PyObject *resultobj = 0;
5779 wxColour *arg1 = 0 ;
5780 int arg2 = (int) wxSOLID ;
5781 wxBrush *result = 0 ;
5782 wxColour temp1 ;
5783 int val2 ;
5784 int ecode2 = 0 ;
5785 PyObject * obj0 = 0 ;
5786 PyObject * obj1 = 0 ;
5787 char * kwnames[] = {
5788 (char *) "colour",(char *) "style", NULL
5789 };
5790
5791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5792 {
5793 arg1 = &temp1;
5794 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5795 }
5796 if (obj1) {
5797 ecode2 = SWIG_AsVal_int(obj1, &val2);
5798 if (!SWIG_IsOK(ecode2)) {
5799 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5800 }
5801 arg2 = static_cast< int >(val2);
5802 }
5803 {
5804 if (!wxPyCheckForApp()) SWIG_fail;
5805 PyThreadState* __tstate = wxPyBeginAllowThreads();
5806 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5807 wxPyEndAllowThreads(__tstate);
5808 if (PyErr_Occurred()) SWIG_fail;
5809 }
5810 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5811 return resultobj;
5812 fail:
5813 return NULL;
5814 }
5815
5816
5817 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5818 PyObject *resultobj = 0;
5819 wxBitmap *arg1 = 0 ;
5820 wxBrush *result = 0 ;
5821 void *argp1 = 0 ;
5822 int res1 = 0 ;
5823 PyObject * obj0 = 0 ;
5824 char * kwnames[] = {
5825 (char *) "stippleBitmap", NULL
5826 };
5827
5828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5829 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5830 if (!SWIG_IsOK(res1)) {
5831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5832 }
5833 if (!argp1) {
5834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5835 }
5836 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5837 {
5838 if (!wxPyCheckForApp()) SWIG_fail;
5839 PyThreadState* __tstate = wxPyBeginAllowThreads();
5840 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5841 wxPyEndAllowThreads(__tstate);
5842 if (PyErr_Occurred()) SWIG_fail;
5843 }
5844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5845 return resultobj;
5846 fail:
5847 return NULL;
5848 }
5849
5850
5851 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5852 PyObject *resultobj = 0;
5853 wxBrush *arg1 = (wxBrush *) 0 ;
5854 void *argp1 = 0 ;
5855 int res1 = 0 ;
5856 PyObject *swig_obj[1] ;
5857
5858 if (!args) SWIG_fail;
5859 swig_obj[0] = args;
5860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5861 if (!SWIG_IsOK(res1)) {
5862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5863 }
5864 arg1 = reinterpret_cast< wxBrush * >(argp1);
5865 {
5866 PyThreadState* __tstate = wxPyBeginAllowThreads();
5867 delete arg1;
5868
5869 wxPyEndAllowThreads(__tstate);
5870 if (PyErr_Occurred()) SWIG_fail;
5871 }
5872 resultobj = SWIG_Py_Void();
5873 return resultobj;
5874 fail:
5875 return NULL;
5876 }
5877
5878
5879 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5880 PyObject *resultobj = 0;
5881 wxBrush *arg1 = (wxBrush *) 0 ;
5882 wxColour *arg2 = 0 ;
5883 void *argp1 = 0 ;
5884 int res1 = 0 ;
5885 wxColour temp2 ;
5886 PyObject * obj0 = 0 ;
5887 PyObject * obj1 = 0 ;
5888 char * kwnames[] = {
5889 (char *) "self",(char *) "col", NULL
5890 };
5891
5892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5894 if (!SWIG_IsOK(res1)) {
5895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5896 }
5897 arg1 = reinterpret_cast< wxBrush * >(argp1);
5898 {
5899 arg2 = &temp2;
5900 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5901 }
5902 {
5903 PyThreadState* __tstate = wxPyBeginAllowThreads();
5904 (arg1)->SetColour((wxColour const &)*arg2);
5905 wxPyEndAllowThreads(__tstate);
5906 if (PyErr_Occurred()) SWIG_fail;
5907 }
5908 resultobj = SWIG_Py_Void();
5909 return resultobj;
5910 fail:
5911 return NULL;
5912 }
5913
5914
5915 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5916 PyObject *resultobj = 0;
5917 wxBrush *arg1 = (wxBrush *) 0 ;
5918 int arg2 ;
5919 void *argp1 = 0 ;
5920 int res1 = 0 ;
5921 int val2 ;
5922 int ecode2 = 0 ;
5923 PyObject * obj0 = 0 ;
5924 PyObject * obj1 = 0 ;
5925 char * kwnames[] = {
5926 (char *) "self",(char *) "style", NULL
5927 };
5928
5929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5931 if (!SWIG_IsOK(res1)) {
5932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5933 }
5934 arg1 = reinterpret_cast< wxBrush * >(argp1);
5935 ecode2 = SWIG_AsVal_int(obj1, &val2);
5936 if (!SWIG_IsOK(ecode2)) {
5937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5938 }
5939 arg2 = static_cast< int >(val2);
5940 {
5941 PyThreadState* __tstate = wxPyBeginAllowThreads();
5942 (arg1)->SetStyle(arg2);
5943 wxPyEndAllowThreads(__tstate);
5944 if (PyErr_Occurred()) SWIG_fail;
5945 }
5946 resultobj = SWIG_Py_Void();
5947 return resultobj;
5948 fail:
5949 return NULL;
5950 }
5951
5952
5953 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5954 PyObject *resultobj = 0;
5955 wxBrush *arg1 = (wxBrush *) 0 ;
5956 wxBitmap *arg2 = 0 ;
5957 void *argp1 = 0 ;
5958 int res1 = 0 ;
5959 void *argp2 = 0 ;
5960 int res2 = 0 ;
5961 PyObject * obj0 = 0 ;
5962 PyObject * obj1 = 0 ;
5963 char * kwnames[] = {
5964 (char *) "self",(char *) "stipple", NULL
5965 };
5966
5967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5969 if (!SWIG_IsOK(res1)) {
5970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5971 }
5972 arg1 = reinterpret_cast< wxBrush * >(argp1);
5973 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5974 if (!SWIG_IsOK(res2)) {
5975 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5976 }
5977 if (!argp2) {
5978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5979 }
5980 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5981 {
5982 PyThreadState* __tstate = wxPyBeginAllowThreads();
5983 (arg1)->SetStipple((wxBitmap const &)*arg2);
5984 wxPyEndAllowThreads(__tstate);
5985 if (PyErr_Occurred()) SWIG_fail;
5986 }
5987 resultobj = SWIG_Py_Void();
5988 return resultobj;
5989 fail:
5990 return NULL;
5991 }
5992
5993
5994 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5995 PyObject *resultobj = 0;
5996 wxBrush *arg1 = (wxBrush *) 0 ;
5997 wxColour result;
5998 void *argp1 = 0 ;
5999 int res1 = 0 ;
6000 PyObject *swig_obj[1] ;
6001
6002 if (!args) SWIG_fail;
6003 swig_obj[0] = args;
6004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6005 if (!SWIG_IsOK(res1)) {
6006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
6007 }
6008 arg1 = reinterpret_cast< wxBrush * >(argp1);
6009 {
6010 PyThreadState* __tstate = wxPyBeginAllowThreads();
6011 result = ((wxBrush const *)arg1)->GetColour();
6012 wxPyEndAllowThreads(__tstate);
6013 if (PyErr_Occurred()) SWIG_fail;
6014 }
6015 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
6016 return resultobj;
6017 fail:
6018 return NULL;
6019 }
6020
6021
6022 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6023 PyObject *resultobj = 0;
6024 wxBrush *arg1 = (wxBrush *) 0 ;
6025 int result;
6026 void *argp1 = 0 ;
6027 int res1 = 0 ;
6028 PyObject *swig_obj[1] ;
6029
6030 if (!args) SWIG_fail;
6031 swig_obj[0] = args;
6032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6033 if (!SWIG_IsOK(res1)) {
6034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
6035 }
6036 arg1 = reinterpret_cast< wxBrush * >(argp1);
6037 {
6038 PyThreadState* __tstate = wxPyBeginAllowThreads();
6039 result = (int)((wxBrush const *)arg1)->GetStyle();
6040 wxPyEndAllowThreads(__tstate);
6041 if (PyErr_Occurred()) SWIG_fail;
6042 }
6043 resultobj = SWIG_From_int(static_cast< int >(result));
6044 return resultobj;
6045 fail:
6046 return NULL;
6047 }
6048
6049
6050 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6051 PyObject *resultobj = 0;
6052 wxBrush *arg1 = (wxBrush *) 0 ;
6053 wxBitmap *result = 0 ;
6054 void *argp1 = 0 ;
6055 int res1 = 0 ;
6056 PyObject *swig_obj[1] ;
6057
6058 if (!args) SWIG_fail;
6059 swig_obj[0] = args;
6060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6061 if (!SWIG_IsOK(res1)) {
6062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
6063 }
6064 arg1 = reinterpret_cast< wxBrush * >(argp1);
6065 {
6066 PyThreadState* __tstate = wxPyBeginAllowThreads();
6067 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
6068 wxPyEndAllowThreads(__tstate);
6069 if (PyErr_Occurred()) SWIG_fail;
6070 }
6071 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
6072 return resultobj;
6073 fail:
6074 return NULL;
6075 }
6076
6077
6078 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6079 PyObject *resultobj = 0;
6080 wxBrush *arg1 = (wxBrush *) 0 ;
6081 bool result;
6082 void *argp1 = 0 ;
6083 int res1 = 0 ;
6084 PyObject *swig_obj[1] ;
6085
6086 if (!args) SWIG_fail;
6087 swig_obj[0] = args;
6088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6089 if (!SWIG_IsOK(res1)) {
6090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
6091 }
6092 arg1 = reinterpret_cast< wxBrush * >(argp1);
6093 {
6094 PyThreadState* __tstate = wxPyBeginAllowThreads();
6095 result = (bool)((wxBrush const *)arg1)->IsHatch();
6096 wxPyEndAllowThreads(__tstate);
6097 if (PyErr_Occurred()) SWIG_fail;
6098 }
6099 {
6100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6101 }
6102 return resultobj;
6103 fail:
6104 return NULL;
6105 }
6106
6107
6108 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6109 PyObject *resultobj = 0;
6110 wxBrush *arg1 = (wxBrush *) 0 ;
6111 bool result;
6112 void *argp1 = 0 ;
6113 int res1 = 0 ;
6114 PyObject *swig_obj[1] ;
6115
6116 if (!args) SWIG_fail;
6117 swig_obj[0] = args;
6118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6119 if (!SWIG_IsOK(res1)) {
6120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
6121 }
6122 arg1 = reinterpret_cast< wxBrush * >(argp1);
6123 {
6124 PyThreadState* __tstate = wxPyBeginAllowThreads();
6125 result = (bool)(arg1)->IsOk();
6126 wxPyEndAllowThreads(__tstate);
6127 if (PyErr_Occurred()) SWIG_fail;
6128 }
6129 {
6130 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6131 }
6132 return resultobj;
6133 fail:
6134 return NULL;
6135 }
6136
6137
6138 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6139 PyObject *obj;
6140 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6141 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6142 return SWIG_Py_Void();
6143 }
6144
6145 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6146 return SWIG_Python_InitShadowInstance(args);
6147 }
6148
6149 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6150 PyObject *resultobj = 0;
6151 wxString *arg1 = 0 ;
6152 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6153 wxBitmap *result = 0 ;
6154 bool temp1 = false ;
6155 int val2 ;
6156 int ecode2 = 0 ;
6157 PyObject * obj0 = 0 ;
6158 PyObject * obj1 = 0 ;
6159 char * kwnames[] = {
6160 (char *) "name",(char *) "type", NULL
6161 };
6162
6163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6164 {
6165 arg1 = wxString_in_helper(obj0);
6166 if (arg1 == NULL) SWIG_fail;
6167 temp1 = true;
6168 }
6169 if (obj1) {
6170 ecode2 = SWIG_AsVal_int(obj1, &val2);
6171 if (!SWIG_IsOK(ecode2)) {
6172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6173 }
6174 arg2 = static_cast< wxBitmapType >(val2);
6175 }
6176 {
6177 if (!wxPyCheckForApp()) SWIG_fail;
6178 PyThreadState* __tstate = wxPyBeginAllowThreads();
6179 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6180 wxPyEndAllowThreads(__tstate);
6181 if (PyErr_Occurred()) SWIG_fail;
6182 }
6183 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6184 {
6185 if (temp1)
6186 delete arg1;
6187 }
6188 return resultobj;
6189 fail:
6190 {
6191 if (temp1)
6192 delete arg1;
6193 }
6194 return NULL;
6195 }
6196
6197
6198 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6199 PyObject *resultobj = 0;
6200 wxBitmap *arg1 = (wxBitmap *) 0 ;
6201 void *argp1 = 0 ;
6202 int res1 = 0 ;
6203 PyObject *swig_obj[1] ;
6204
6205 if (!args) SWIG_fail;
6206 swig_obj[0] = args;
6207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6208 if (!SWIG_IsOK(res1)) {
6209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6210 }
6211 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6212 {
6213 delete arg1;
6214
6215 if (PyErr_Occurred()) SWIG_fail;
6216 }
6217 resultobj = SWIG_Py_Void();
6218 return resultobj;
6219 fail:
6220 return NULL;
6221 }
6222
6223
6224 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6225 PyObject *resultobj = 0;
6226 int arg1 ;
6227 int arg2 ;
6228 int arg3 = (int) -1 ;
6229 wxBitmap *result = 0 ;
6230 int val1 ;
6231 int ecode1 = 0 ;
6232 int val2 ;
6233 int ecode2 = 0 ;
6234 int val3 ;
6235 int ecode3 = 0 ;
6236 PyObject * obj0 = 0 ;
6237 PyObject * obj1 = 0 ;
6238 PyObject * obj2 = 0 ;
6239 char * kwnames[] = {
6240 (char *) "width",(char *) "height",(char *) "depth", NULL
6241 };
6242
6243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6244 ecode1 = SWIG_AsVal_int(obj0, &val1);
6245 if (!SWIG_IsOK(ecode1)) {
6246 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6247 }
6248 arg1 = static_cast< int >(val1);
6249 ecode2 = SWIG_AsVal_int(obj1, &val2);
6250 if (!SWIG_IsOK(ecode2)) {
6251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6252 }
6253 arg2 = static_cast< int >(val2);
6254 if (obj2) {
6255 ecode3 = SWIG_AsVal_int(obj2, &val3);
6256 if (!SWIG_IsOK(ecode3)) {
6257 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6258 }
6259 arg3 = static_cast< int >(val3);
6260 }
6261 {
6262 if (!wxPyCheckForApp()) SWIG_fail;
6263 PyThreadState* __tstate = wxPyBeginAllowThreads();
6264 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6265 wxPyEndAllowThreads(__tstate);
6266 if (PyErr_Occurred()) SWIG_fail;
6267 }
6268 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6269 return resultobj;
6270 fail:
6271 return NULL;
6272 }
6273
6274
6275 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6276 PyObject *resultobj = 0;
6277 wxIcon *arg1 = 0 ;
6278 wxBitmap *result = 0 ;
6279 void *argp1 = 0 ;
6280 int res1 = 0 ;
6281 PyObject * obj0 = 0 ;
6282 char * kwnames[] = {
6283 (char *) "icon", NULL
6284 };
6285
6286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6287 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6288 if (!SWIG_IsOK(res1)) {
6289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6290 }
6291 if (!argp1) {
6292 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6293 }
6294 arg1 = reinterpret_cast< wxIcon * >(argp1);
6295 {
6296 if (!wxPyCheckForApp()) SWIG_fail;
6297 PyThreadState* __tstate = wxPyBeginAllowThreads();
6298 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6299 wxPyEndAllowThreads(__tstate);
6300 if (PyErr_Occurred()) SWIG_fail;
6301 }
6302 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6303 return resultobj;
6304 fail:
6305 return NULL;
6306 }
6307
6308
6309 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6310 PyObject *resultobj = 0;
6311 wxImage *arg1 = 0 ;
6312 int arg2 = (int) -1 ;
6313 wxBitmap *result = 0 ;
6314 void *argp1 = 0 ;
6315 int res1 = 0 ;
6316 int val2 ;
6317 int ecode2 = 0 ;
6318 PyObject * obj0 = 0 ;
6319 PyObject * obj1 = 0 ;
6320 char * kwnames[] = {
6321 (char *) "image",(char *) "depth", NULL
6322 };
6323
6324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6325 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6326 if (!SWIG_IsOK(res1)) {
6327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6328 }
6329 if (!argp1) {
6330 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6331 }
6332 arg1 = reinterpret_cast< wxImage * >(argp1);
6333 if (obj1) {
6334 ecode2 = SWIG_AsVal_int(obj1, &val2);
6335 if (!SWIG_IsOK(ecode2)) {
6336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6337 }
6338 arg2 = static_cast< int >(val2);
6339 }
6340 {
6341 if (!wxPyCheckForApp()) SWIG_fail;
6342 PyThreadState* __tstate = wxPyBeginAllowThreads();
6343 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6344 wxPyEndAllowThreads(__tstate);
6345 if (PyErr_Occurred()) SWIG_fail;
6346 }
6347 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6348 return resultobj;
6349 fail:
6350 return NULL;
6351 }
6352
6353
6354 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6355 PyObject *resultobj = 0;
6356 PyObject *arg1 = (PyObject *) 0 ;
6357 wxBitmap *result = 0 ;
6358 PyObject * obj0 = 0 ;
6359 char * kwnames[] = {
6360 (char *) "listOfStrings", NULL
6361 };
6362
6363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6364 arg1 = obj0;
6365 {
6366 if (!wxPyCheckForApp()) SWIG_fail;
6367 PyThreadState* __tstate = wxPyBeginAllowThreads();
6368 result = (wxBitmap *)new_wxBitmap(arg1);
6369 wxPyEndAllowThreads(__tstate);
6370 if (PyErr_Occurred()) SWIG_fail;
6371 }
6372 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6373 return resultobj;
6374 fail:
6375 return NULL;
6376 }
6377
6378
6379 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6380 PyObject *resultobj = 0;
6381 PyObject *arg1 = (PyObject *) 0 ;
6382 int arg2 ;
6383 int arg3 ;
6384 int arg4 = (int) 1 ;
6385 wxBitmap *result = 0 ;
6386 int val2 ;
6387 int ecode2 = 0 ;
6388 int val3 ;
6389 int ecode3 = 0 ;
6390 int val4 ;
6391 int ecode4 = 0 ;
6392 PyObject * obj0 = 0 ;
6393 PyObject * obj1 = 0 ;
6394 PyObject * obj2 = 0 ;
6395 PyObject * obj3 = 0 ;
6396 char * kwnames[] = {
6397 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6398 };
6399
6400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6401 arg1 = obj0;
6402 ecode2 = SWIG_AsVal_int(obj1, &val2);
6403 if (!SWIG_IsOK(ecode2)) {
6404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6405 }
6406 arg2 = static_cast< int >(val2);
6407 ecode3 = SWIG_AsVal_int(obj2, &val3);
6408 if (!SWIG_IsOK(ecode3)) {
6409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6410 }
6411 arg3 = static_cast< int >(val3);
6412 if (obj3) {
6413 ecode4 = SWIG_AsVal_int(obj3, &val4);
6414 if (!SWIG_IsOK(ecode4)) {
6415 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6416 }
6417 arg4 = static_cast< int >(val4);
6418 }
6419 {
6420 if (!wxPyCheckForApp()) SWIG_fail;
6421 PyThreadState* __tstate = wxPyBeginAllowThreads();
6422 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6423 wxPyEndAllowThreads(__tstate);
6424 if (PyErr_Occurred()) SWIG_fail;
6425 }
6426 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6427 return resultobj;
6428 fail:
6429 return NULL;
6430 }
6431
6432
6433 SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6434 PyObject *resultobj = 0;
6435 wxBitmap *arg1 = (wxBitmap *) 0 ;
6436 long result;
6437 void *argp1 = 0 ;
6438 int res1 = 0 ;
6439 PyObject *swig_obj[1] ;
6440
6441 if (!args) SWIG_fail;
6442 swig_obj[0] = args;
6443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6444 if (!SWIG_IsOK(res1)) {
6445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6446 }
6447 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6448 {
6449 result = (long)(arg1)->GetHandle();
6450 if (PyErr_Occurred()) SWIG_fail;
6451 }
6452 resultobj = SWIG_From_long(static_cast< long >(result));
6453 return resultobj;
6454 fail:
6455 return NULL;
6456 }
6457
6458
6459 SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6460 PyObject *resultobj = 0;
6461 wxBitmap *arg1 = (wxBitmap *) 0 ;
6462 long arg2 ;
6463 void *argp1 = 0 ;
6464 int res1 = 0 ;
6465 long val2 ;
6466 int ecode2 = 0 ;
6467 PyObject * obj0 = 0 ;
6468 PyObject * obj1 = 0 ;
6469 char * kwnames[] = {
6470 (char *) "self",(char *) "handle", NULL
6471 };
6472
6473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6475 if (!SWIG_IsOK(res1)) {
6476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6477 }
6478 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6479 ecode2 = SWIG_AsVal_long(obj1, &val2);
6480 if (!SWIG_IsOK(ecode2)) {
6481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
6482 }
6483 arg2 = static_cast< long >(val2);
6484 {
6485 wxBitmap_SetHandle(arg1,arg2);
6486 if (PyErr_Occurred()) SWIG_fail;
6487 }
6488 resultobj = SWIG_Py_Void();
6489 return resultobj;
6490 fail:
6491 return NULL;
6492 }
6493
6494
6495 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6496 PyObject *resultobj = 0;
6497 wxBitmap *arg1 = (wxBitmap *) 0 ;
6498 bool result;
6499 void *argp1 = 0 ;
6500 int res1 = 0 ;
6501 PyObject *swig_obj[1] ;
6502
6503 if (!args) SWIG_fail;
6504 swig_obj[0] = args;
6505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6506 if (!SWIG_IsOK(res1)) {
6507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6508 }
6509 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6510 {
6511 result = (bool)(arg1)->IsOk();
6512 if (PyErr_Occurred()) SWIG_fail;
6513 }
6514 {
6515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6516 }
6517 return resultobj;
6518 fail:
6519 return NULL;
6520 }
6521
6522
6523 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6524 PyObject *resultobj = 0;
6525 wxBitmap *arg1 = (wxBitmap *) 0 ;
6526 int result;
6527 void *argp1 = 0 ;
6528 int res1 = 0 ;
6529 PyObject *swig_obj[1] ;
6530
6531 if (!args) SWIG_fail;
6532 swig_obj[0] = args;
6533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6534 if (!SWIG_IsOK(res1)) {
6535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6536 }
6537 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6538 {
6539 result = (int)(arg1)->GetWidth();
6540 if (PyErr_Occurred()) SWIG_fail;
6541 }
6542 resultobj = SWIG_From_int(static_cast< int >(result));
6543 return resultobj;
6544 fail:
6545 return NULL;
6546 }
6547
6548
6549 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6550 PyObject *resultobj = 0;
6551 wxBitmap *arg1 = (wxBitmap *) 0 ;
6552 int result;
6553 void *argp1 = 0 ;
6554 int res1 = 0 ;
6555 PyObject *swig_obj[1] ;
6556
6557 if (!args) SWIG_fail;
6558 swig_obj[0] = args;
6559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6560 if (!SWIG_IsOK(res1)) {
6561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6562 }
6563 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6564 {
6565 result = (int)(arg1)->GetHeight();
6566 if (PyErr_Occurred()) SWIG_fail;
6567 }
6568 resultobj = SWIG_From_int(static_cast< int >(result));
6569 return resultobj;
6570 fail:
6571 return NULL;
6572 }
6573
6574
6575 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6576 PyObject *resultobj = 0;
6577 wxBitmap *arg1 = (wxBitmap *) 0 ;
6578 int result;
6579 void *argp1 = 0 ;
6580 int res1 = 0 ;
6581 PyObject *swig_obj[1] ;
6582
6583 if (!args) SWIG_fail;
6584 swig_obj[0] = args;
6585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6586 if (!SWIG_IsOK(res1)) {
6587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6588 }
6589 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6590 {
6591 result = (int)(arg1)->GetDepth();
6592 if (PyErr_Occurred()) SWIG_fail;
6593 }
6594 resultobj = SWIG_From_int(static_cast< int >(result));
6595 return resultobj;
6596 fail:
6597 return NULL;
6598 }
6599
6600
6601 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6602 PyObject *resultobj = 0;
6603 wxBitmap *arg1 = (wxBitmap *) 0 ;
6604 wxSize result;
6605 void *argp1 = 0 ;
6606 int res1 = 0 ;
6607 PyObject *swig_obj[1] ;
6608
6609 if (!args) SWIG_fail;
6610 swig_obj[0] = args;
6611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6612 if (!SWIG_IsOK(res1)) {
6613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6614 }
6615 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6616 {
6617 result = wxBitmap_GetSize(arg1);
6618 if (PyErr_Occurred()) SWIG_fail;
6619 }
6620 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6621 return resultobj;
6622 fail:
6623 return NULL;
6624 }
6625
6626
6627 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6628 PyObject *resultobj = 0;
6629 wxBitmap *arg1 = (wxBitmap *) 0 ;
6630 SwigValueWrapper<wxImage > result;
6631 void *argp1 = 0 ;
6632 int res1 = 0 ;
6633 PyObject *swig_obj[1] ;
6634
6635 if (!args) SWIG_fail;
6636 swig_obj[0] = args;
6637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6638 if (!SWIG_IsOK(res1)) {
6639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6640 }
6641 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6642 {
6643 result = ((wxBitmap const *)arg1)->ConvertToImage();
6644 if (PyErr_Occurred()) SWIG_fail;
6645 }
6646 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6647 return resultobj;
6648 fail:
6649 return NULL;
6650 }
6651
6652
6653 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6654 PyObject *resultobj = 0;
6655 wxBitmap *arg1 = (wxBitmap *) 0 ;
6656 wxMask *result = 0 ;
6657 void *argp1 = 0 ;
6658 int res1 = 0 ;
6659 PyObject *swig_obj[1] ;
6660
6661 if (!args) SWIG_fail;
6662 swig_obj[0] = args;
6663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6664 if (!SWIG_IsOK(res1)) {
6665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6666 }
6667 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6668 {
6669 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6670 if (PyErr_Occurred()) SWIG_fail;
6671 }
6672 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6673 return resultobj;
6674 fail:
6675 return NULL;
6676 }
6677
6678
6679 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6680 PyObject *resultobj = 0;
6681 wxBitmap *arg1 = (wxBitmap *) 0 ;
6682 wxMask *arg2 = (wxMask *) 0 ;
6683 void *argp1 = 0 ;
6684 int res1 = 0 ;
6685 int res2 = 0 ;
6686 PyObject * obj0 = 0 ;
6687 PyObject * obj1 = 0 ;
6688 char * kwnames[] = {
6689 (char *) "self",(char *) "mask", NULL
6690 };
6691
6692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6694 if (!SWIG_IsOK(res1)) {
6695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6696 }
6697 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6698 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6699 if (!SWIG_IsOK(res2)) {
6700 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6701 }
6702 {
6703 (arg1)->SetMask(arg2);
6704 if (PyErr_Occurred()) SWIG_fail;
6705 }
6706 resultobj = SWIG_Py_Void();
6707 return resultobj;
6708 fail:
6709 return NULL;
6710 }
6711
6712
6713 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6714 PyObject *resultobj = 0;
6715 wxBitmap *arg1 = (wxBitmap *) 0 ;
6716 wxColour *arg2 = 0 ;
6717 void *argp1 = 0 ;
6718 int res1 = 0 ;
6719 wxColour temp2 ;
6720 PyObject * obj0 = 0 ;
6721 PyObject * obj1 = 0 ;
6722 char * kwnames[] = {
6723 (char *) "self",(char *) "colour", NULL
6724 };
6725
6726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6728 if (!SWIG_IsOK(res1)) {
6729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6730 }
6731 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6732 {
6733 arg2 = &temp2;
6734 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6735 }
6736 {
6737 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6738 if (PyErr_Occurred()) SWIG_fail;
6739 }
6740 resultobj = SWIG_Py_Void();
6741 return resultobj;
6742 fail:
6743 return NULL;
6744 }
6745
6746
6747 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6748 PyObject *resultobj = 0;
6749 wxBitmap *arg1 = (wxBitmap *) 0 ;
6750 wxRect *arg2 = 0 ;
6751 SwigValueWrapper<wxBitmap > result;
6752 void *argp1 = 0 ;
6753 int res1 = 0 ;
6754 wxRect temp2 ;
6755 PyObject * obj0 = 0 ;
6756 PyObject * obj1 = 0 ;
6757 char * kwnames[] = {
6758 (char *) "self",(char *) "rect", NULL
6759 };
6760
6761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6763 if (!SWIG_IsOK(res1)) {
6764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6765 }
6766 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6767 {
6768 arg2 = &temp2;
6769 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6770 }
6771 {
6772 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6773 if (PyErr_Occurred()) SWIG_fail;
6774 }
6775 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6776 return resultobj;
6777 fail:
6778 return NULL;
6779 }
6780
6781
6782 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6783 PyObject *resultobj = 0;
6784 wxBitmap *arg1 = (wxBitmap *) 0 ;
6785 wxString *arg2 = 0 ;
6786 wxBitmapType arg3 ;
6787 wxPalette *arg4 = (wxPalette *) NULL ;
6788 bool result;
6789 void *argp1 = 0 ;
6790 int res1 = 0 ;
6791 bool temp2 = false ;
6792 int val3 ;
6793 int ecode3 = 0 ;
6794 void *argp4 = 0 ;
6795 int res4 = 0 ;
6796 PyObject * obj0 = 0 ;
6797 PyObject * obj1 = 0 ;
6798 PyObject * obj2 = 0 ;
6799 PyObject * obj3 = 0 ;
6800 char * kwnames[] = {
6801 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6802 };
6803
6804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6806 if (!SWIG_IsOK(res1)) {
6807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6808 }
6809 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6810 {
6811 arg2 = wxString_in_helper(obj1);
6812 if (arg2 == NULL) SWIG_fail;
6813 temp2 = true;
6814 }
6815 ecode3 = SWIG_AsVal_int(obj2, &val3);
6816 if (!SWIG_IsOK(ecode3)) {
6817 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6818 }
6819 arg3 = static_cast< wxBitmapType >(val3);
6820 if (obj3) {
6821 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6822 if (!SWIG_IsOK(res4)) {
6823 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6824 }
6825 arg4 = reinterpret_cast< wxPalette * >(argp4);
6826 }
6827 {
6828 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6829 if (PyErr_Occurred()) SWIG_fail;
6830 }
6831 {
6832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6833 }
6834 {
6835 if (temp2)
6836 delete arg2;
6837 }
6838 return resultobj;
6839 fail:
6840 {
6841 if (temp2)
6842 delete arg2;
6843 }
6844 return NULL;
6845 }
6846
6847
6848 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6849 PyObject *resultobj = 0;
6850 wxBitmap *arg1 = (wxBitmap *) 0 ;
6851 wxString *arg2 = 0 ;
6852 wxBitmapType arg3 ;
6853 bool result;
6854 void *argp1 = 0 ;
6855 int res1 = 0 ;
6856 bool temp2 = false ;
6857 int val3 ;
6858 int ecode3 = 0 ;
6859 PyObject * obj0 = 0 ;
6860 PyObject * obj1 = 0 ;
6861 PyObject * obj2 = 0 ;
6862 char * kwnames[] = {
6863 (char *) "self",(char *) "name",(char *) "type", NULL
6864 };
6865
6866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6868 if (!SWIG_IsOK(res1)) {
6869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6870 }
6871 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6872 {
6873 arg2 = wxString_in_helper(obj1);
6874 if (arg2 == NULL) SWIG_fail;
6875 temp2 = true;
6876 }
6877 ecode3 = SWIG_AsVal_int(obj2, &val3);
6878 if (!SWIG_IsOK(ecode3)) {
6879 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6880 }
6881 arg3 = static_cast< wxBitmapType >(val3);
6882 {
6883 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6884 if (PyErr_Occurred()) SWIG_fail;
6885 }
6886 {
6887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6888 }
6889 {
6890 if (temp2)
6891 delete arg2;
6892 }
6893 return resultobj;
6894 fail:
6895 {
6896 if (temp2)
6897 delete arg2;
6898 }
6899 return NULL;
6900 }
6901
6902
6903 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6904 PyObject *resultobj = 0;
6905 wxBitmap *arg1 = (wxBitmap *) 0 ;
6906 wxPalette *result = 0 ;
6907 void *argp1 = 0 ;
6908 int res1 = 0 ;
6909 PyObject *swig_obj[1] ;
6910
6911 if (!args) SWIG_fail;
6912 swig_obj[0] = args;
6913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6914 if (!SWIG_IsOK(res1)) {
6915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6916 }
6917 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6918 {
6919 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6920 if (PyErr_Occurred()) SWIG_fail;
6921 }
6922 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6923 return resultobj;
6924 fail:
6925 return NULL;
6926 }
6927
6928
6929 SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6930 PyObject *resultobj = 0;
6931 wxBitmap *arg1 = (wxBitmap *) 0 ;
6932 wxPalette *arg2 = 0 ;
6933 void *argp1 = 0 ;
6934 int res1 = 0 ;
6935 void *argp2 = 0 ;
6936 int res2 = 0 ;
6937 PyObject * obj0 = 0 ;
6938 PyObject * obj1 = 0 ;
6939 char * kwnames[] = {
6940 (char *) "self",(char *) "palette", NULL
6941 };
6942
6943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6945 if (!SWIG_IsOK(res1)) {
6946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6947 }
6948 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6949 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6950 if (!SWIG_IsOK(res2)) {
6951 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6952 }
6953 if (!argp2) {
6954 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6955 }
6956 arg2 = reinterpret_cast< wxPalette * >(argp2);
6957 {
6958 (arg1)->SetPalette((wxPalette const &)*arg2);
6959 if (PyErr_Occurred()) SWIG_fail;
6960 }
6961 resultobj = SWIG_Py_Void();
6962 return resultobj;
6963 fail:
6964 return NULL;
6965 }
6966
6967
6968 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6969 PyObject *resultobj = 0;
6970 wxBitmap *arg1 = (wxBitmap *) 0 ;
6971 wxIcon *arg2 = 0 ;
6972 bool result;
6973 void *argp1 = 0 ;
6974 int res1 = 0 ;
6975 void *argp2 = 0 ;
6976 int res2 = 0 ;
6977 PyObject * obj0 = 0 ;
6978 PyObject * obj1 = 0 ;
6979 char * kwnames[] = {
6980 (char *) "self",(char *) "icon", NULL
6981 };
6982
6983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6985 if (!SWIG_IsOK(res1)) {
6986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6987 }
6988 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6989 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6990 if (!SWIG_IsOK(res2)) {
6991 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6992 }
6993 if (!argp2) {
6994 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6995 }
6996 arg2 = reinterpret_cast< wxIcon * >(argp2);
6997 {
6998 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6999 if (PyErr_Occurred()) SWIG_fail;
7000 }
7001 {
7002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7003 }
7004 return resultobj;
7005 fail:
7006 return NULL;
7007 }
7008
7009
7010 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7011 PyObject *resultobj = 0;
7012 wxBitmap *arg1 = (wxBitmap *) 0 ;
7013 int arg2 ;
7014 void *argp1 = 0 ;
7015 int res1 = 0 ;
7016 int val2 ;
7017 int ecode2 = 0 ;
7018 PyObject * obj0 = 0 ;
7019 PyObject * obj1 = 0 ;
7020 char * kwnames[] = {
7021 (char *) "self",(char *) "height", NULL
7022 };
7023
7024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
7025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7026 if (!SWIG_IsOK(res1)) {
7027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
7028 }
7029 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7030 ecode2 = SWIG_AsVal_int(obj1, &val2);
7031 if (!SWIG_IsOK(ecode2)) {
7032 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
7033 }
7034 arg2 = static_cast< int >(val2);
7035 {
7036 (arg1)->SetHeight(arg2);
7037 if (PyErr_Occurred()) SWIG_fail;
7038 }
7039 resultobj = SWIG_Py_Void();
7040 return resultobj;
7041 fail:
7042 return NULL;
7043 }
7044
7045
7046 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7047 PyObject *resultobj = 0;
7048 wxBitmap *arg1 = (wxBitmap *) 0 ;
7049 int arg2 ;
7050 void *argp1 = 0 ;
7051 int res1 = 0 ;
7052 int val2 ;
7053 int ecode2 = 0 ;
7054 PyObject * obj0 = 0 ;
7055 PyObject * obj1 = 0 ;
7056 char * kwnames[] = {
7057 (char *) "self",(char *) "width", NULL
7058 };
7059
7060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7062 if (!SWIG_IsOK(res1)) {
7063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
7064 }
7065 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7066 ecode2 = SWIG_AsVal_int(obj1, &val2);
7067 if (!SWIG_IsOK(ecode2)) {
7068 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
7069 }
7070 arg2 = static_cast< int >(val2);
7071 {
7072 (arg1)->SetWidth(arg2);
7073 if (PyErr_Occurred()) SWIG_fail;
7074 }
7075 resultobj = SWIG_Py_Void();
7076 return resultobj;
7077 fail:
7078 return NULL;
7079 }
7080
7081
7082 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7083 PyObject *resultobj = 0;
7084 wxBitmap *arg1 = (wxBitmap *) 0 ;
7085 int arg2 ;
7086 void *argp1 = 0 ;
7087 int res1 = 0 ;
7088 int val2 ;
7089 int ecode2 = 0 ;
7090 PyObject * obj0 = 0 ;
7091 PyObject * obj1 = 0 ;
7092 char * kwnames[] = {
7093 (char *) "self",(char *) "depth", NULL
7094 };
7095
7096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
7097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7098 if (!SWIG_IsOK(res1)) {
7099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
7100 }
7101 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7102 ecode2 = SWIG_AsVal_int(obj1, &val2);
7103 if (!SWIG_IsOK(ecode2)) {
7104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
7105 }
7106 arg2 = static_cast< int >(val2);
7107 {
7108 (arg1)->SetDepth(arg2);
7109 if (PyErr_Occurred()) SWIG_fail;
7110 }
7111 resultobj = SWIG_Py_Void();
7112 return resultobj;
7113 fail:
7114 return NULL;
7115 }
7116
7117
7118 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7119 PyObject *resultobj = 0;
7120 wxBitmap *arg1 = (wxBitmap *) 0 ;
7121 wxSize *arg2 = 0 ;
7122 void *argp1 = 0 ;
7123 int res1 = 0 ;
7124 wxSize temp2 ;
7125 PyObject * obj0 = 0 ;
7126 PyObject * obj1 = 0 ;
7127 char * kwnames[] = {
7128 (char *) "self",(char *) "size", NULL
7129 };
7130
7131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7133 if (!SWIG_IsOK(res1)) {
7134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
7135 }
7136 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7137 {
7138 arg2 = &temp2;
7139 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7140 }
7141 {
7142 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
7143 if (PyErr_Occurred()) SWIG_fail;
7144 }
7145 resultobj = SWIG_Py_Void();
7146 return resultobj;
7147 fail:
7148 return NULL;
7149 }
7150
7151
7152 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7153 PyObject *resultobj = 0;
7154 wxBitmap *arg1 = (wxBitmap *) 0 ;
7155 wxCursor *arg2 = 0 ;
7156 bool result;
7157 void *argp1 = 0 ;
7158 int res1 = 0 ;
7159 void *argp2 = 0 ;
7160 int res2 = 0 ;
7161 PyObject * obj0 = 0 ;
7162 PyObject * obj1 = 0 ;
7163 char * kwnames[] = {
7164 (char *) "self",(char *) "cursor", NULL
7165 };
7166
7167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
7168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7169 if (!SWIG_IsOK(res1)) {
7170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
7171 }
7172 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7173 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
7174 if (!SWIG_IsOK(res2)) {
7175 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
7176 }
7177 if (!argp2) {
7178 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
7179 }
7180 arg2 = reinterpret_cast< wxCursor * >(argp2);
7181 {
7182 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
7183 if (PyErr_Occurred()) SWIG_fail;
7184 }
7185 {
7186 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7187 }
7188 return resultobj;
7189 fail:
7190 return NULL;
7191 }
7192
7193
7194 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7195 PyObject *resultobj = 0;
7196 wxBitmap *arg1 = (wxBitmap *) 0 ;
7197 buffer arg2 ;
7198 int arg3 ;
7199 void *argp1 = 0 ;
7200 int res1 = 0 ;
7201 Py_ssize_t temp2 ;
7202 PyObject * obj0 = 0 ;
7203 PyObject * obj1 = 0 ;
7204 char * kwnames[] = {
7205 (char *) "self",(char *) "data", NULL
7206 };
7207
7208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7210 if (!SWIG_IsOK(res1)) {
7211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7212 }
7213 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7214 {
7215 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7216 arg3 = (int)temp2;
7217 }
7218 {
7219 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7220 if (PyErr_Occurred()) SWIG_fail;
7221 }
7222 resultobj = SWIG_Py_Void();
7223 return resultobj;
7224 fail:
7225 return NULL;
7226 }
7227
7228
7229 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7230 PyObject *resultobj = 0;
7231 wxBitmap *arg1 = (wxBitmap *) 0 ;
7232 buffer arg2 ;
7233 int arg3 ;
7234 void *argp1 = 0 ;
7235 int res1 = 0 ;
7236 Py_ssize_t temp2 ;
7237 PyObject * obj0 = 0 ;
7238 PyObject * obj1 = 0 ;
7239 char * kwnames[] = {
7240 (char *) "self",(char *) "data", NULL
7241 };
7242
7243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7245 if (!SWIG_IsOK(res1)) {
7246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7247 }
7248 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7249 {
7250 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7251 arg3 = (int)temp2;
7252 }
7253 {
7254 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7255 if (PyErr_Occurred()) SWIG_fail;
7256 }
7257 resultobj = SWIG_Py_Void();
7258 return resultobj;
7259 fail:
7260 return NULL;
7261 }
7262
7263
7264 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7265 PyObject *resultobj = 0;
7266 wxBitmap *arg1 = (wxBitmap *) 0 ;
7267 wxBitmap *arg2 = (wxBitmap *) 0 ;
7268 bool result;
7269 void *argp1 = 0 ;
7270 int res1 = 0 ;
7271 void *argp2 = 0 ;
7272 int res2 = 0 ;
7273 PyObject * obj0 = 0 ;
7274 PyObject * obj1 = 0 ;
7275 char * kwnames[] = {
7276 (char *) "self",(char *) "other", NULL
7277 };
7278
7279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7281 if (!SWIG_IsOK(res1)) {
7282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7283 }
7284 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7285 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7286 if (!SWIG_IsOK(res2)) {
7287 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7288 }
7289 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7290 {
7291 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
7292 if (PyErr_Occurred()) SWIG_fail;
7293 }
7294 {
7295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7296 }
7297 return resultobj;
7298 fail:
7299 return NULL;
7300 }
7301
7302
7303 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7304 PyObject *resultobj = 0;
7305 wxBitmap *arg1 = (wxBitmap *) 0 ;
7306 wxBitmap *arg2 = (wxBitmap *) 0 ;
7307 bool result;
7308 void *argp1 = 0 ;
7309 int res1 = 0 ;
7310 void *argp2 = 0 ;
7311 int res2 = 0 ;
7312 PyObject * obj0 = 0 ;
7313 PyObject * obj1 = 0 ;
7314 char * kwnames[] = {
7315 (char *) "self",(char *) "other", NULL
7316 };
7317
7318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7320 if (!SWIG_IsOK(res1)) {
7321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7322 }
7323 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7324 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7325 if (!SWIG_IsOK(res2)) {
7326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7327 }
7328 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7329 {
7330 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7331 if (PyErr_Occurred()) SWIG_fail;
7332 }
7333 {
7334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7335 }
7336 return resultobj;
7337 fail:
7338 return NULL;
7339 }
7340
7341
7342 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7343 PyObject *obj;
7344 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7345 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7346 return SWIG_Py_Void();
7347 }
7348
7349 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7350 return SWIG_Python_InitShadowInstance(args);
7351 }
7352
7353 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7354 PyObject *resultobj = 0;
7355 int arg1 ;
7356 int arg2 ;
7357 buffer arg3 ;
7358 int arg4 ;
7359 buffer arg5 ;
7360 int arg6 ;
7361 wxBitmap *result = 0 ;
7362 int val1 ;
7363 int ecode1 = 0 ;
7364 int val2 ;
7365 int ecode2 = 0 ;
7366 Py_ssize_t temp3 ;
7367 Py_ssize_t temp5 ;
7368 PyObject * obj0 = 0 ;
7369 PyObject * obj1 = 0 ;
7370 PyObject * obj2 = 0 ;
7371 PyObject * obj3 = 0 ;
7372 char * kwnames[] = {
7373 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7374 };
7375
7376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7377 ecode1 = SWIG_AsVal_int(obj0, &val1);
7378 if (!SWIG_IsOK(ecode1)) {
7379 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7380 }
7381 arg1 = static_cast< int >(val1);
7382 ecode2 = SWIG_AsVal_int(obj1, &val2);
7383 if (!SWIG_IsOK(ecode2)) {
7384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7385 }
7386 arg2 = static_cast< int >(val2);
7387 {
7388 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7389 arg4 = (int)temp3;
7390 }
7391 {
7392 if (obj3 != Py_None) {
7393 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7394 arg6 = (int)temp5;
7395 }
7396 }
7397 {
7398 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7399 if (PyErr_Occurred()) SWIG_fail;
7400 }
7401 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7402 return resultobj;
7403 fail:
7404 return NULL;
7405 }
7406
7407
7408 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7409 PyObject *resultobj = 0;
7410 int arg1 ;
7411 int arg2 ;
7412 buffer arg3 ;
7413 int arg4 ;
7414 wxBitmap *result = 0 ;
7415 int val1 ;
7416 int ecode1 = 0 ;
7417 int val2 ;
7418 int ecode2 = 0 ;
7419 Py_ssize_t temp3 ;
7420 PyObject * obj0 = 0 ;
7421 PyObject * obj1 = 0 ;
7422 PyObject * obj2 = 0 ;
7423 char * kwnames[] = {
7424 (char *) "width",(char *) "height",(char *) "data", NULL
7425 };
7426
7427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7428 ecode1 = SWIG_AsVal_int(obj0, &val1);
7429 if (!SWIG_IsOK(ecode1)) {
7430 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7431 }
7432 arg1 = static_cast< int >(val1);
7433 ecode2 = SWIG_AsVal_int(obj1, &val2);
7434 if (!SWIG_IsOK(ecode2)) {
7435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7436 }
7437 arg2 = static_cast< int >(val2);
7438 {
7439 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7440 arg4 = (int)temp3;
7441 }
7442 {
7443 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7444 if (PyErr_Occurred()) SWIG_fail;
7445 }
7446 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7447 return resultobj;
7448 fail:
7449 return NULL;
7450 }
7451
7452
7453 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7454 PyObject *resultobj = 0;
7455 int arg1 ;
7456 int arg2 ;
7457 buffer arg3 ;
7458 int arg4 ;
7459 wxBitmap *result = 0 ;
7460 int val1 ;
7461 int ecode1 = 0 ;
7462 int val2 ;
7463 int ecode2 = 0 ;
7464 Py_ssize_t temp3 ;
7465 PyObject * obj0 = 0 ;
7466 PyObject * obj1 = 0 ;
7467 PyObject * obj2 = 0 ;
7468 char * kwnames[] = {
7469 (char *) "width",(char *) "height",(char *) "data", NULL
7470 };
7471
7472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7473 ecode1 = SWIG_AsVal_int(obj0, &val1);
7474 if (!SWIG_IsOK(ecode1)) {
7475 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7476 }
7477 arg1 = static_cast< int >(val1);
7478 ecode2 = SWIG_AsVal_int(obj1, &val2);
7479 if (!SWIG_IsOK(ecode2)) {
7480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7481 }
7482 arg2 = static_cast< int >(val2);
7483 {
7484 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7485 arg4 = (int)temp3;
7486 }
7487 {
7488 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7489 if (PyErr_Occurred()) SWIG_fail;
7490 }
7491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7492 return resultobj;
7493 fail:
7494 return NULL;
7495 }
7496
7497
7498 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7499 PyObject *resultobj = 0;
7500 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7501 wxPoint result;
7502 void *argp1 = 0 ;
7503 int res1 = 0 ;
7504 PyObject *swig_obj[1] ;
7505
7506 if (!args) SWIG_fail;
7507 swig_obj[0] = args;
7508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7509 if (!SWIG_IsOK(res1)) {
7510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7511 }
7512 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7513 {
7514 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7515 if (PyErr_Occurred()) SWIG_fail;
7516 }
7517 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7518 return resultobj;
7519 fail:
7520 return NULL;
7521 }
7522
7523
7524 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7525 PyObject *resultobj = 0;
7526 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7527 int result;
7528 void *argp1 = 0 ;
7529 int res1 = 0 ;
7530 PyObject *swig_obj[1] ;
7531
7532 if (!args) SWIG_fail;
7533 swig_obj[0] = args;
7534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7535 if (!SWIG_IsOK(res1)) {
7536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7537 }
7538 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7539 {
7540 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7541 if (PyErr_Occurred()) SWIG_fail;
7542 }
7543 resultobj = SWIG_From_int(static_cast< int >(result));
7544 return resultobj;
7545 fail:
7546 return NULL;
7547 }
7548
7549
7550 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7551 PyObject *resultobj = 0;
7552 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7553 int result;
7554 void *argp1 = 0 ;
7555 int res1 = 0 ;
7556 PyObject *swig_obj[1] ;
7557
7558 if (!args) SWIG_fail;
7559 swig_obj[0] = args;
7560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7561 if (!SWIG_IsOK(res1)) {
7562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7563 }
7564 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7565 {
7566 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7567 if (PyErr_Occurred()) SWIG_fail;
7568 }
7569 resultobj = SWIG_From_int(static_cast< int >(result));
7570 return resultobj;
7571 fail:
7572 return NULL;
7573 }
7574
7575
7576 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7577 PyObject *resultobj = 0;
7578 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7579 wxSize result;
7580 void *argp1 = 0 ;
7581 int res1 = 0 ;
7582 PyObject *swig_obj[1] ;
7583
7584 if (!args) SWIG_fail;
7585 swig_obj[0] = args;
7586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7587 if (!SWIG_IsOK(res1)) {
7588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7589 }
7590 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7591 {
7592 result = ((wxPixelDataBase const *)arg1)->GetSize();
7593 if (PyErr_Occurred()) SWIG_fail;
7594 }
7595 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7596 return resultobj;
7597 fail:
7598 return NULL;
7599 }
7600
7601
7602 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7603 PyObject *resultobj = 0;
7604 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7605 int result;
7606 void *argp1 = 0 ;
7607 int res1 = 0 ;
7608 PyObject *swig_obj[1] ;
7609
7610 if (!args) SWIG_fail;
7611 swig_obj[0] = args;
7612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7613 if (!SWIG_IsOK(res1)) {
7614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7615 }
7616 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7617 {
7618 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7619 if (PyErr_Occurred()) SWIG_fail;
7620 }
7621 resultobj = SWIG_From_int(static_cast< int >(result));
7622 return resultobj;
7623 fail:
7624 return NULL;
7625 }
7626
7627
7628 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7629 PyObject *obj;
7630 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7631 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7632 return SWIG_Py_Void();
7633 }
7634
7635 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7636 PyObject *resultobj = 0;
7637 wxBitmap *arg1 = 0 ;
7638 wxNativePixelData *result = 0 ;
7639 void *argp1 = 0 ;
7640 int res1 = 0 ;
7641
7642 if ((nobjs < 1) || (nobjs > 1)) 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 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7653 if (PyErr_Occurred()) SWIG_fail;
7654 }
7655 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7656 return resultobj;
7657 fail:
7658 return NULL;
7659 }
7660
7661
7662 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7663 PyObject *resultobj = 0;
7664 wxBitmap *arg1 = 0 ;
7665 wxRect *arg2 = 0 ;
7666 wxNativePixelData *result = 0 ;
7667 void *argp1 = 0 ;
7668 int res1 = 0 ;
7669 wxRect temp2 ;
7670
7671 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7673 if (!SWIG_IsOK(res1)) {
7674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7675 }
7676 if (!argp1) {
7677 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7678 }
7679 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7680 {
7681 arg2 = &temp2;
7682 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7683 }
7684 {
7685 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7686 if (PyErr_Occurred()) SWIG_fail;
7687 }
7688 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7689 return resultobj;
7690 fail:
7691 return NULL;
7692 }
7693
7694
7695 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7696 PyObject *resultobj = 0;
7697 wxBitmap *arg1 = 0 ;
7698 wxPoint *arg2 = 0 ;
7699 wxSize *arg3 = 0 ;
7700 wxNativePixelData *result = 0 ;
7701 void *argp1 = 0 ;
7702 int res1 = 0 ;
7703 wxPoint temp2 ;
7704 wxSize temp3 ;
7705
7706 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7708 if (!SWIG_IsOK(res1)) {
7709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7710 }
7711 if (!argp1) {
7712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7713 }
7714 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7715 {
7716 arg2 = &temp2;
7717 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7718 }
7719 {
7720 arg3 = &temp3;
7721 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7722 }
7723 {
7724 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7725 if (PyErr_Occurred()) SWIG_fail;
7726 }
7727 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7728 return resultobj;
7729 fail:
7730 return NULL;
7731 }
7732
7733
7734 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7735 int argc;
7736 PyObject *argv[4];
7737
7738 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7739 --argc;
7740 if (argc == 1) {
7741 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7742 }
7743 if (argc == 2) {
7744 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7745 }
7746 if (argc == 3) {
7747 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7748 }
7749
7750 fail:
7751 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7752 return NULL;
7753 }
7754
7755
7756 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7757 PyObject *resultobj = 0;
7758 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7759 void *argp1 = 0 ;
7760 int res1 = 0 ;
7761 PyObject *swig_obj[1] ;
7762
7763 if (!args) SWIG_fail;
7764 swig_obj[0] = args;
7765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7766 if (!SWIG_IsOK(res1)) {
7767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7768 }
7769 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7770 {
7771 delete arg1;
7772
7773 if (PyErr_Occurred()) SWIG_fail;
7774 }
7775 resultobj = SWIG_Py_Void();
7776 return resultobj;
7777 fail:
7778 return NULL;
7779 }
7780
7781
7782 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7783 PyObject *resultobj = 0;
7784 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7785 wxNativePixelData_Accessor result;
7786 void *argp1 = 0 ;
7787 int res1 = 0 ;
7788 PyObject *swig_obj[1] ;
7789
7790 if (!args) SWIG_fail;
7791 swig_obj[0] = args;
7792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7793 if (!SWIG_IsOK(res1)) {
7794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7795 }
7796 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7797 {
7798 result = ((wxNativePixelData const *)arg1)->GetPixels();
7799 if (PyErr_Occurred()) SWIG_fail;
7800 }
7801 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7802 return resultobj;
7803 fail:
7804 return NULL;
7805 }
7806
7807
7808 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7809 PyObject *resultobj = 0;
7810 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7811 void *argp1 = 0 ;
7812 int res1 = 0 ;
7813 PyObject *swig_obj[1] ;
7814
7815 if (!args) SWIG_fail;
7816 swig_obj[0] = args;
7817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7818 if (!SWIG_IsOK(res1)) {
7819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7820 }
7821 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7822 {
7823 (arg1)->UseAlpha();
7824 if (PyErr_Occurred()) SWIG_fail;
7825 }
7826 resultobj = SWIG_Py_Void();
7827 return resultobj;
7828 fail:
7829 return NULL;
7830 }
7831
7832
7833 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7834 PyObject *resultobj = 0;
7835 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7836 bool result;
7837 void *argp1 = 0 ;
7838 int res1 = 0 ;
7839 PyObject *swig_obj[1] ;
7840
7841 if (!args) SWIG_fail;
7842 swig_obj[0] = args;
7843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7844 if (!SWIG_IsOK(res1)) {
7845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7846 }
7847 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7848 {
7849 result = (bool)wxNativePixelData___nonzero__(arg1);
7850 if (PyErr_Occurred()) SWIG_fail;
7851 }
7852 {
7853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7854 }
7855 return resultobj;
7856 fail:
7857 return NULL;
7858 }
7859
7860
7861 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7862 PyObject *obj;
7863 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7864 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7865 return SWIG_Py_Void();
7866 }
7867
7868 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7869 return SWIG_Python_InitShadowInstance(args);
7870 }
7871
7872 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7873 PyObject *resultobj = 0;
7874 wxNativePixelData *arg1 = 0 ;
7875 wxNativePixelData_Accessor *result = 0 ;
7876 void *argp1 = 0 ;
7877 int res1 = 0 ;
7878
7879 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7881 if (!SWIG_IsOK(res1)) {
7882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7883 }
7884 if (!argp1) {
7885 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7886 }
7887 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7888 {
7889 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7890 if (PyErr_Occurred()) SWIG_fail;
7891 }
7892 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7893 return resultobj;
7894 fail:
7895 return NULL;
7896 }
7897
7898
7899 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7900 PyObject *resultobj = 0;
7901 wxBitmap *arg1 = 0 ;
7902 wxNativePixelData *arg2 = 0 ;
7903 wxNativePixelData_Accessor *result = 0 ;
7904 void *argp1 = 0 ;
7905 int res1 = 0 ;
7906 void *argp2 = 0 ;
7907 int res2 = 0 ;
7908
7909 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7911 if (!SWIG_IsOK(res1)) {
7912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7913 }
7914 if (!argp1) {
7915 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7916 }
7917 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7918 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7919 if (!SWIG_IsOK(res2)) {
7920 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7921 }
7922 if (!argp2) {
7923 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7924 }
7925 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7926 {
7927 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7928 if (PyErr_Occurred()) SWIG_fail;
7929 }
7930 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7931 return resultobj;
7932 fail:
7933 return NULL;
7934 }
7935
7936
7937 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7938 PyObject *resultobj = 0;
7939 wxNativePixelData_Accessor *result = 0 ;
7940
7941 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7942 {
7943 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7944 if (PyErr_Occurred()) SWIG_fail;
7945 }
7946 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7947 return resultobj;
7948 fail:
7949 return NULL;
7950 }
7951
7952
7953 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7954 int argc;
7955 PyObject *argv[3];
7956
7957 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7958 --argc;
7959 if (argc == 0) {
7960 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7961 }
7962 if (argc == 1) {
7963 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7964 }
7965 if (argc == 2) {
7966 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7967 }
7968
7969 fail:
7970 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7971 return NULL;
7972 }
7973
7974
7975 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7976 PyObject *resultobj = 0;
7977 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7978 void *argp1 = 0 ;
7979 int res1 = 0 ;
7980 PyObject *swig_obj[1] ;
7981
7982 if (!args) SWIG_fail;
7983 swig_obj[0] = args;
7984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7985 if (!SWIG_IsOK(res1)) {
7986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7987 }
7988 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7989 {
7990 delete arg1;
7991
7992 if (PyErr_Occurred()) SWIG_fail;
7993 }
7994 resultobj = SWIG_Py_Void();
7995 return resultobj;
7996 fail:
7997 return NULL;
7998 }
7999
8000
8001 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8002 PyObject *resultobj = 0;
8003 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8004 wxNativePixelData *arg2 = 0 ;
8005 void *argp1 = 0 ;
8006 int res1 = 0 ;
8007 void *argp2 = 0 ;
8008 int res2 = 0 ;
8009 PyObject * obj0 = 0 ;
8010 PyObject * obj1 = 0 ;
8011 char * kwnames[] = {
8012 (char *) "self",(char *) "data", NULL
8013 };
8014
8015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8017 if (!SWIG_IsOK(res1)) {
8018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8019 }
8020 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8021 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8022 if (!SWIG_IsOK(res2)) {
8023 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8024 }
8025 if (!argp2) {
8026 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8027 }
8028 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8029 {
8030 (arg1)->Reset((wxNativePixelData const &)*arg2);
8031 if (PyErr_Occurred()) SWIG_fail;
8032 }
8033 resultobj = SWIG_Py_Void();
8034 return resultobj;
8035 fail:
8036 return NULL;
8037 }
8038
8039
8040 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8041 PyObject *resultobj = 0;
8042 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8043 bool result;
8044 void *argp1 = 0 ;
8045 int res1 = 0 ;
8046 PyObject *swig_obj[1] ;
8047
8048 if (!args) SWIG_fail;
8049 swig_obj[0] = args;
8050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8051 if (!SWIG_IsOK(res1)) {
8052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
8053 }
8054 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8055 {
8056 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
8057 if (PyErr_Occurred()) SWIG_fail;
8058 }
8059 {
8060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8061 }
8062 return resultobj;
8063 fail:
8064 return NULL;
8065 }
8066
8067
8068 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8069 PyObject *resultobj = 0;
8070 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8071 void *argp1 = 0 ;
8072 int res1 = 0 ;
8073 PyObject *swig_obj[1] ;
8074
8075 if (!args) SWIG_fail;
8076 swig_obj[0] = args;
8077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8078 if (!SWIG_IsOK(res1)) {
8079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8080 }
8081 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8082 {
8083 wxNativePixelData_Accessor_nextPixel(arg1);
8084 if (PyErr_Occurred()) SWIG_fail;
8085 }
8086 resultobj = SWIG_Py_Void();
8087 return resultobj;
8088 fail:
8089 return NULL;
8090 }
8091
8092
8093 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8094 PyObject *resultobj = 0;
8095 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8096 wxNativePixelData *arg2 = 0 ;
8097 int arg3 ;
8098 int arg4 ;
8099 void *argp1 = 0 ;
8100 int res1 = 0 ;
8101 void *argp2 = 0 ;
8102 int res2 = 0 ;
8103 int val3 ;
8104 int ecode3 = 0 ;
8105 int val4 ;
8106 int ecode4 = 0 ;
8107 PyObject * obj0 = 0 ;
8108 PyObject * obj1 = 0 ;
8109 PyObject * obj2 = 0 ;
8110 PyObject * obj3 = 0 ;
8111 char * kwnames[] = {
8112 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8113 };
8114
8115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8117 if (!SWIG_IsOK(res1)) {
8118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8119 }
8120 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8121 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8122 if (!SWIG_IsOK(res2)) {
8123 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8124 }
8125 if (!argp2) {
8126 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8127 }
8128 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8129 ecode3 = SWIG_AsVal_int(obj2, &val3);
8130 if (!SWIG_IsOK(ecode3)) {
8131 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8132 }
8133 arg3 = static_cast< int >(val3);
8134 ecode4 = SWIG_AsVal_int(obj3, &val4);
8135 if (!SWIG_IsOK(ecode4)) {
8136 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8137 }
8138 arg4 = static_cast< int >(val4);
8139 {
8140 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
8141 if (PyErr_Occurred()) SWIG_fail;
8142 }
8143 resultobj = SWIG_Py_Void();
8144 return resultobj;
8145 fail:
8146 return NULL;
8147 }
8148
8149
8150 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8151 PyObject *resultobj = 0;
8152 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8153 wxNativePixelData *arg2 = 0 ;
8154 int arg3 ;
8155 void *argp1 = 0 ;
8156 int res1 = 0 ;
8157 void *argp2 = 0 ;
8158 int res2 = 0 ;
8159 int val3 ;
8160 int ecode3 = 0 ;
8161 PyObject * obj0 = 0 ;
8162 PyObject * obj1 = 0 ;
8163 PyObject * obj2 = 0 ;
8164 char * kwnames[] = {
8165 (char *) "self",(char *) "data",(char *) "x", NULL
8166 };
8167
8168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8170 if (!SWIG_IsOK(res1)) {
8171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8172 }
8173 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8174 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8175 if (!SWIG_IsOK(res2)) {
8176 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8177 }
8178 if (!argp2) {
8179 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8180 }
8181 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8182 ecode3 = SWIG_AsVal_int(obj2, &val3);
8183 if (!SWIG_IsOK(ecode3)) {
8184 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8185 }
8186 arg3 = static_cast< int >(val3);
8187 {
8188 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
8189 if (PyErr_Occurred()) SWIG_fail;
8190 }
8191 resultobj = SWIG_Py_Void();
8192 return resultobj;
8193 fail:
8194 return NULL;
8195 }
8196
8197
8198 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8199 PyObject *resultobj = 0;
8200 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8201 wxNativePixelData *arg2 = 0 ;
8202 int arg3 ;
8203 void *argp1 = 0 ;
8204 int res1 = 0 ;
8205 void *argp2 = 0 ;
8206 int res2 = 0 ;
8207 int val3 ;
8208 int ecode3 = 0 ;
8209 PyObject * obj0 = 0 ;
8210 PyObject * obj1 = 0 ;
8211 PyObject * obj2 = 0 ;
8212 char * kwnames[] = {
8213 (char *) "self",(char *) "data",(char *) "y", NULL
8214 };
8215
8216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8218 if (!SWIG_IsOK(res1)) {
8219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8220 }
8221 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8222 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8223 if (!SWIG_IsOK(res2)) {
8224 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8225 }
8226 if (!argp2) {
8227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8228 }
8229 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8230 ecode3 = SWIG_AsVal_int(obj2, &val3);
8231 if (!SWIG_IsOK(ecode3)) {
8232 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8233 }
8234 arg3 = static_cast< int >(val3);
8235 {
8236 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8237 if (PyErr_Occurred()) SWIG_fail;
8238 }
8239 resultobj = SWIG_Py_Void();
8240 return resultobj;
8241 fail:
8242 return NULL;
8243 }
8244
8245
8246 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8247 PyObject *resultobj = 0;
8248 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8249 wxNativePixelData *arg2 = 0 ;
8250 int arg3 ;
8251 int arg4 ;
8252 void *argp1 = 0 ;
8253 int res1 = 0 ;
8254 void *argp2 = 0 ;
8255 int res2 = 0 ;
8256 int val3 ;
8257 int ecode3 = 0 ;
8258 int val4 ;
8259 int ecode4 = 0 ;
8260 PyObject * obj0 = 0 ;
8261 PyObject * obj1 = 0 ;
8262 PyObject * obj2 = 0 ;
8263 PyObject * obj3 = 0 ;
8264 char * kwnames[] = {
8265 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8266 };
8267
8268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8270 if (!SWIG_IsOK(res1)) {
8271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8272 }
8273 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8274 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8275 if (!SWIG_IsOK(res2)) {
8276 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8277 }
8278 if (!argp2) {
8279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8280 }
8281 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8282 ecode3 = SWIG_AsVal_int(obj2, &val3);
8283 if (!SWIG_IsOK(ecode3)) {
8284 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8285 }
8286 arg3 = static_cast< int >(val3);
8287 ecode4 = SWIG_AsVal_int(obj3, &val4);
8288 if (!SWIG_IsOK(ecode4)) {
8289 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8290 }
8291 arg4 = static_cast< int >(val4);
8292 {
8293 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8294 if (PyErr_Occurred()) SWIG_fail;
8295 }
8296 resultobj = SWIG_Py_Void();
8297 return resultobj;
8298 fail:
8299 return NULL;
8300 }
8301
8302
8303 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8304 PyObject *resultobj = 0;
8305 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8306 byte arg2 ;
8307 byte arg3 ;
8308 byte arg4 ;
8309 void *argp1 = 0 ;
8310 int res1 = 0 ;
8311 unsigned char val2 ;
8312 int ecode2 = 0 ;
8313 unsigned char val3 ;
8314 int ecode3 = 0 ;
8315 unsigned char val4 ;
8316 int ecode4 = 0 ;
8317 PyObject * obj0 = 0 ;
8318 PyObject * obj1 = 0 ;
8319 PyObject * obj2 = 0 ;
8320 PyObject * obj3 = 0 ;
8321 char * kwnames[] = {
8322 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8323 };
8324
8325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8327 if (!SWIG_IsOK(res1)) {
8328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8329 }
8330 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8331 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8332 if (!SWIG_IsOK(ecode2)) {
8333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8334 }
8335 arg2 = static_cast< byte >(val2);
8336 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8337 if (!SWIG_IsOK(ecode3)) {
8338 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8339 }
8340 arg3 = static_cast< byte >(val3);
8341 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8342 if (!SWIG_IsOK(ecode4)) {
8343 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8344 }
8345 arg4 = static_cast< byte >(val4);
8346 {
8347 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8348 if (PyErr_Occurred()) SWIG_fail;
8349 }
8350 resultobj = SWIG_Py_Void();
8351 return resultobj;
8352 fail:
8353 return NULL;
8354 }
8355
8356
8357 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8358 PyObject *resultobj = 0;
8359 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8360 PyObject *result = 0 ;
8361 void *argp1 = 0 ;
8362 int res1 = 0 ;
8363 PyObject *swig_obj[1] ;
8364
8365 if (!args) SWIG_fail;
8366 swig_obj[0] = args;
8367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8368 if (!SWIG_IsOK(res1)) {
8369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8370 }
8371 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8372 {
8373 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8374 if (PyErr_Occurred()) SWIG_fail;
8375 }
8376 resultobj = result;
8377 return resultobj;
8378 fail:
8379 return NULL;
8380 }
8381
8382
8383 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8384 PyObject *obj;
8385 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8386 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8387 return SWIG_Py_Void();
8388 }
8389
8390 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8391 return SWIG_Python_InitShadowInstance(args);
8392 }
8393
8394 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8395 PyObject *resultobj = 0;
8396 wxBitmap *arg1 = 0 ;
8397 wxAlphaPixelData *result = 0 ;
8398 void *argp1 = 0 ;
8399 int res1 = 0 ;
8400
8401 if ((nobjs < 1) || (nobjs > 1)) 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 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8412 if (PyErr_Occurred()) SWIG_fail;
8413 }
8414 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8415 return resultobj;
8416 fail:
8417 return NULL;
8418 }
8419
8420
8421 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8422 PyObject *resultobj = 0;
8423 wxBitmap *arg1 = 0 ;
8424 wxRect *arg2 = 0 ;
8425 wxAlphaPixelData *result = 0 ;
8426 void *argp1 = 0 ;
8427 int res1 = 0 ;
8428 wxRect temp2 ;
8429
8430 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8432 if (!SWIG_IsOK(res1)) {
8433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8434 }
8435 if (!argp1) {
8436 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8437 }
8438 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8439 {
8440 arg2 = &temp2;
8441 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8442 }
8443 {
8444 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8445 if (PyErr_Occurred()) SWIG_fail;
8446 }
8447 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8448 return resultobj;
8449 fail:
8450 return NULL;
8451 }
8452
8453
8454 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8455 PyObject *resultobj = 0;
8456 wxBitmap *arg1 = 0 ;
8457 wxPoint *arg2 = 0 ;
8458 wxSize *arg3 = 0 ;
8459 wxAlphaPixelData *result = 0 ;
8460 void *argp1 = 0 ;
8461 int res1 = 0 ;
8462 wxPoint temp2 ;
8463 wxSize temp3 ;
8464
8465 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8467 if (!SWIG_IsOK(res1)) {
8468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8469 }
8470 if (!argp1) {
8471 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8472 }
8473 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8474 {
8475 arg2 = &temp2;
8476 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8477 }
8478 {
8479 arg3 = &temp3;
8480 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8481 }
8482 {
8483 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8484 if (PyErr_Occurred()) SWIG_fail;
8485 }
8486 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8487 return resultobj;
8488 fail:
8489 return NULL;
8490 }
8491
8492
8493 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8494 int argc;
8495 PyObject *argv[4];
8496
8497 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8498 --argc;
8499 if (argc == 1) {
8500 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8501 }
8502 if (argc == 2) {
8503 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8504 }
8505 if (argc == 3) {
8506 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8507 }
8508
8509 fail:
8510 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8511 return NULL;
8512 }
8513
8514
8515 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8516 PyObject *resultobj = 0;
8517 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8518 void *argp1 = 0 ;
8519 int res1 = 0 ;
8520 PyObject *swig_obj[1] ;
8521
8522 if (!args) SWIG_fail;
8523 swig_obj[0] = args;
8524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8525 if (!SWIG_IsOK(res1)) {
8526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8527 }
8528 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8529 {
8530 delete arg1;
8531
8532 if (PyErr_Occurred()) SWIG_fail;
8533 }
8534 resultobj = SWIG_Py_Void();
8535 return resultobj;
8536 fail:
8537 return NULL;
8538 }
8539
8540
8541 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8542 PyObject *resultobj = 0;
8543 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8544 wxAlphaPixelData_Accessor result;
8545 void *argp1 = 0 ;
8546 int res1 = 0 ;
8547 PyObject *swig_obj[1] ;
8548
8549 if (!args) SWIG_fail;
8550 swig_obj[0] = args;
8551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8552 if (!SWIG_IsOK(res1)) {
8553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8554 }
8555 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8556 {
8557 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8558 if (PyErr_Occurred()) SWIG_fail;
8559 }
8560 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8561 return resultobj;
8562 fail:
8563 return NULL;
8564 }
8565
8566
8567 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8568 PyObject *resultobj = 0;
8569 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8570 void *argp1 = 0 ;
8571 int res1 = 0 ;
8572 PyObject *swig_obj[1] ;
8573
8574 if (!args) SWIG_fail;
8575 swig_obj[0] = args;
8576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8577 if (!SWIG_IsOK(res1)) {
8578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8579 }
8580 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8581 {
8582 (arg1)->UseAlpha();
8583 if (PyErr_Occurred()) SWIG_fail;
8584 }
8585 resultobj = SWIG_Py_Void();
8586 return resultobj;
8587 fail:
8588 return NULL;
8589 }
8590
8591
8592 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8593 PyObject *resultobj = 0;
8594 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8595 bool result;
8596 void *argp1 = 0 ;
8597 int res1 = 0 ;
8598 PyObject *swig_obj[1] ;
8599
8600 if (!args) SWIG_fail;
8601 swig_obj[0] = args;
8602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8603 if (!SWIG_IsOK(res1)) {
8604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8605 }
8606 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8607 {
8608 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8609 if (PyErr_Occurred()) SWIG_fail;
8610 }
8611 {
8612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8613 }
8614 return resultobj;
8615 fail:
8616 return NULL;
8617 }
8618
8619
8620 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8621 PyObject *obj;
8622 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8623 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8624 return SWIG_Py_Void();
8625 }
8626
8627 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8628 return SWIG_Python_InitShadowInstance(args);
8629 }
8630
8631 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8632 PyObject *resultobj = 0;
8633 wxAlphaPixelData *arg1 = 0 ;
8634 wxAlphaPixelData_Accessor *result = 0 ;
8635 void *argp1 = 0 ;
8636 int res1 = 0 ;
8637
8638 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8640 if (!SWIG_IsOK(res1)) {
8641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8642 }
8643 if (!argp1) {
8644 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8645 }
8646 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8647 {
8648 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8649 if (PyErr_Occurred()) SWIG_fail;
8650 }
8651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8652 return resultobj;
8653 fail:
8654 return NULL;
8655 }
8656
8657
8658 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8659 PyObject *resultobj = 0;
8660 wxBitmap *arg1 = 0 ;
8661 wxAlphaPixelData *arg2 = 0 ;
8662 wxAlphaPixelData_Accessor *result = 0 ;
8663 void *argp1 = 0 ;
8664 int res1 = 0 ;
8665 void *argp2 = 0 ;
8666 int res2 = 0 ;
8667
8668 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8670 if (!SWIG_IsOK(res1)) {
8671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8672 }
8673 if (!argp1) {
8674 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8675 }
8676 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8677 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8678 if (!SWIG_IsOK(res2)) {
8679 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8680 }
8681 if (!argp2) {
8682 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8683 }
8684 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8685 {
8686 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8687 if (PyErr_Occurred()) SWIG_fail;
8688 }
8689 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8690 return resultobj;
8691 fail:
8692 return NULL;
8693 }
8694
8695
8696 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8697 PyObject *resultobj = 0;
8698 wxAlphaPixelData_Accessor *result = 0 ;
8699
8700 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8701 {
8702 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8703 if (PyErr_Occurred()) SWIG_fail;
8704 }
8705 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8706 return resultobj;
8707 fail:
8708 return NULL;
8709 }
8710
8711
8712 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8713 int argc;
8714 PyObject *argv[3];
8715
8716 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8717 --argc;
8718 if (argc == 0) {
8719 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8720 }
8721 if (argc == 1) {
8722 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8723 }
8724 if (argc == 2) {
8725 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8726 }
8727
8728 fail:
8729 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8730 return NULL;
8731 }
8732
8733
8734 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8735 PyObject *resultobj = 0;
8736 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8737 void *argp1 = 0 ;
8738 int res1 = 0 ;
8739 PyObject *swig_obj[1] ;
8740
8741 if (!args) SWIG_fail;
8742 swig_obj[0] = args;
8743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8744 if (!SWIG_IsOK(res1)) {
8745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8746 }
8747 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8748 {
8749 delete arg1;
8750
8751 if (PyErr_Occurred()) SWIG_fail;
8752 }
8753 resultobj = SWIG_Py_Void();
8754 return resultobj;
8755 fail:
8756 return NULL;
8757 }
8758
8759
8760 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8761 PyObject *resultobj = 0;
8762 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8763 wxAlphaPixelData *arg2 = 0 ;
8764 void *argp1 = 0 ;
8765 int res1 = 0 ;
8766 void *argp2 = 0 ;
8767 int res2 = 0 ;
8768 PyObject * obj0 = 0 ;
8769 PyObject * obj1 = 0 ;
8770 char * kwnames[] = {
8771 (char *) "self",(char *) "data", NULL
8772 };
8773
8774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8776 if (!SWIG_IsOK(res1)) {
8777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8778 }
8779 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8780 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8781 if (!SWIG_IsOK(res2)) {
8782 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8783 }
8784 if (!argp2) {
8785 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8786 }
8787 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8788 {
8789 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8790 if (PyErr_Occurred()) SWIG_fail;
8791 }
8792 resultobj = SWIG_Py_Void();
8793 return resultobj;
8794 fail:
8795 return NULL;
8796 }
8797
8798
8799 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8800 PyObject *resultobj = 0;
8801 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8802 bool result;
8803 void *argp1 = 0 ;
8804 int res1 = 0 ;
8805 PyObject *swig_obj[1] ;
8806
8807 if (!args) SWIG_fail;
8808 swig_obj[0] = args;
8809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8810 if (!SWIG_IsOK(res1)) {
8811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8812 }
8813 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8814 {
8815 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8816 if (PyErr_Occurred()) SWIG_fail;
8817 }
8818 {
8819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8820 }
8821 return resultobj;
8822 fail:
8823 return NULL;
8824 }
8825
8826
8827 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8828 PyObject *resultobj = 0;
8829 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8830 void *argp1 = 0 ;
8831 int res1 = 0 ;
8832 PyObject *swig_obj[1] ;
8833
8834 if (!args) SWIG_fail;
8835 swig_obj[0] = args;
8836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8837 if (!SWIG_IsOK(res1)) {
8838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8839 }
8840 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8841 {
8842 wxAlphaPixelData_Accessor_nextPixel(arg1);
8843 if (PyErr_Occurred()) SWIG_fail;
8844 }
8845 resultobj = SWIG_Py_Void();
8846 return resultobj;
8847 fail:
8848 return NULL;
8849 }
8850
8851
8852 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8853 PyObject *resultobj = 0;
8854 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8855 wxAlphaPixelData *arg2 = 0 ;
8856 int arg3 ;
8857 int arg4 ;
8858 void *argp1 = 0 ;
8859 int res1 = 0 ;
8860 void *argp2 = 0 ;
8861 int res2 = 0 ;
8862 int val3 ;
8863 int ecode3 = 0 ;
8864 int val4 ;
8865 int ecode4 = 0 ;
8866 PyObject * obj0 = 0 ;
8867 PyObject * obj1 = 0 ;
8868 PyObject * obj2 = 0 ;
8869 PyObject * obj3 = 0 ;
8870 char * kwnames[] = {
8871 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8872 };
8873
8874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8876 if (!SWIG_IsOK(res1)) {
8877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8878 }
8879 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8880 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8881 if (!SWIG_IsOK(res2)) {
8882 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8883 }
8884 if (!argp2) {
8885 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8886 }
8887 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8888 ecode3 = SWIG_AsVal_int(obj2, &val3);
8889 if (!SWIG_IsOK(ecode3)) {
8890 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8891 }
8892 arg3 = static_cast< int >(val3);
8893 ecode4 = SWIG_AsVal_int(obj3, &val4);
8894 if (!SWIG_IsOK(ecode4)) {
8895 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8896 }
8897 arg4 = static_cast< int >(val4);
8898 {
8899 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8900 if (PyErr_Occurred()) SWIG_fail;
8901 }
8902 resultobj = SWIG_Py_Void();
8903 return resultobj;
8904 fail:
8905 return NULL;
8906 }
8907
8908
8909 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8910 PyObject *resultobj = 0;
8911 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8912 wxAlphaPixelData *arg2 = 0 ;
8913 int arg3 ;
8914 void *argp1 = 0 ;
8915 int res1 = 0 ;
8916 void *argp2 = 0 ;
8917 int res2 = 0 ;
8918 int val3 ;
8919 int ecode3 = 0 ;
8920 PyObject * obj0 = 0 ;
8921 PyObject * obj1 = 0 ;
8922 PyObject * obj2 = 0 ;
8923 char * kwnames[] = {
8924 (char *) "self",(char *) "data",(char *) "x", NULL
8925 };
8926
8927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8929 if (!SWIG_IsOK(res1)) {
8930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8931 }
8932 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8933 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8934 if (!SWIG_IsOK(res2)) {
8935 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8936 }
8937 if (!argp2) {
8938 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8939 }
8940 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8941 ecode3 = SWIG_AsVal_int(obj2, &val3);
8942 if (!SWIG_IsOK(ecode3)) {
8943 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8944 }
8945 arg3 = static_cast< int >(val3);
8946 {
8947 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8948 if (PyErr_Occurred()) SWIG_fail;
8949 }
8950 resultobj = SWIG_Py_Void();
8951 return resultobj;
8952 fail:
8953 return NULL;
8954 }
8955
8956
8957 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8958 PyObject *resultobj = 0;
8959 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8960 wxAlphaPixelData *arg2 = 0 ;
8961 int arg3 ;
8962 void *argp1 = 0 ;
8963 int res1 = 0 ;
8964 void *argp2 = 0 ;
8965 int res2 = 0 ;
8966 int val3 ;
8967 int ecode3 = 0 ;
8968 PyObject * obj0 = 0 ;
8969 PyObject * obj1 = 0 ;
8970 PyObject * obj2 = 0 ;
8971 char * kwnames[] = {
8972 (char *) "self",(char *) "data",(char *) "y", NULL
8973 };
8974
8975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8977 if (!SWIG_IsOK(res1)) {
8978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8979 }
8980 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8981 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8982 if (!SWIG_IsOK(res2)) {
8983 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8984 }
8985 if (!argp2) {
8986 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8987 }
8988 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8989 ecode3 = SWIG_AsVal_int(obj2, &val3);
8990 if (!SWIG_IsOK(ecode3)) {
8991 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8992 }
8993 arg3 = static_cast< int >(val3);
8994 {
8995 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8996 if (PyErr_Occurred()) SWIG_fail;
8997 }
8998 resultobj = SWIG_Py_Void();
8999 return resultobj;
9000 fail:
9001 return NULL;
9002 }
9003
9004
9005 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9006 PyObject *resultobj = 0;
9007 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9008 wxAlphaPixelData *arg2 = 0 ;
9009 int arg3 ;
9010 int arg4 ;
9011 void *argp1 = 0 ;
9012 int res1 = 0 ;
9013 void *argp2 = 0 ;
9014 int res2 = 0 ;
9015 int val3 ;
9016 int ecode3 = 0 ;
9017 int val4 ;
9018 int ecode4 = 0 ;
9019 PyObject * obj0 = 0 ;
9020 PyObject * obj1 = 0 ;
9021 PyObject * obj2 = 0 ;
9022 PyObject * obj3 = 0 ;
9023 char * kwnames[] = {
9024 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
9025 };
9026
9027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
9029 if (!SWIG_IsOK(res1)) {
9030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
9031 }
9032 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
9033 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
9034 if (!SWIG_IsOK(res2)) {
9035 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
9036 }
9037 if (!argp2) {
9038 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
9039 }
9040 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
9041 ecode3 = SWIG_AsVal_int(obj2, &val3);
9042 if (!SWIG_IsOK(ecode3)) {
9043 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
9044 }
9045 arg3 = static_cast< int >(val3);
9046 ecode4 = SWIG_AsVal_int(obj3, &val4);
9047 if (!SWIG_IsOK(ecode4)) {
9048 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
9049 }
9050 arg4 = static_cast< int >(val4);
9051 {
9052 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
9053 if (PyErr_Occurred()) SWIG_fail;
9054 }
9055 resultobj = SWIG_Py_Void();
9056 return resultobj;
9057 fail:
9058 return NULL;
9059 }
9060
9061
9062 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9063 PyObject *resultobj = 0;
9064 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9065 byte arg2 ;
9066 byte arg3 ;
9067 byte arg4 ;
9068 byte arg5 ;
9069 void *argp1 = 0 ;
9070 int res1 = 0 ;
9071 unsigned char val2 ;
9072 int ecode2 = 0 ;
9073 unsigned char val3 ;
9074 int ecode3 = 0 ;
9075 unsigned char val4 ;
9076 int ecode4 = 0 ;
9077 unsigned char val5 ;
9078 int ecode5 = 0 ;
9079 PyObject * obj0 = 0 ;
9080 PyObject * obj1 = 0 ;
9081 PyObject * obj2 = 0 ;
9082 PyObject * obj3 = 0 ;
9083 PyObject * obj4 = 0 ;
9084 char * kwnames[] = {
9085 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
9086 };
9087
9088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
9090 if (!SWIG_IsOK(res1)) {
9091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
9092 }
9093 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
9094 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
9095 if (!SWIG_IsOK(ecode2)) {
9096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
9097 }
9098 arg2 = static_cast< byte >(val2);
9099 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
9100 if (!SWIG_IsOK(ecode3)) {
9101 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
9102 }
9103 arg3 = static_cast< byte >(val3);
9104 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
9105 if (!SWIG_IsOK(ecode4)) {
9106 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
9107 }
9108 arg4 = static_cast< byte >(val4);
9109 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
9110 if (!SWIG_IsOK(ecode5)) {
9111 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
9112 }
9113 arg5 = static_cast< byte >(val5);
9114 {
9115 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
9116 if (PyErr_Occurred()) SWIG_fail;
9117 }
9118 resultobj = SWIG_Py_Void();
9119 return resultobj;
9120 fail:
9121 return NULL;
9122 }
9123
9124
9125 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9126 PyObject *resultobj = 0;
9127 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
9128 PyObject *result = 0 ;
9129 void *argp1 = 0 ;
9130 int res1 = 0 ;
9131 PyObject *swig_obj[1] ;
9132
9133 if (!args) SWIG_fail;
9134 swig_obj[0] = args;
9135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
9136 if (!SWIG_IsOK(res1)) {
9137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
9138 }
9139 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
9140 {
9141 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
9142 if (PyErr_Occurred()) SWIG_fail;
9143 }
9144 resultobj = result;
9145 return resultobj;
9146 fail:
9147 return NULL;
9148 }
9149
9150
9151 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9152 PyObject *obj;
9153 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9154 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
9155 return SWIG_Py_Void();
9156 }
9157
9158 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9159 return SWIG_Python_InitShadowInstance(args);
9160 }
9161
9162 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9163 PyObject *resultobj = 0;
9164 wxBitmap *arg1 = 0 ;
9165 wxColour const &arg2_defvalue = wxNullColour ;
9166 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
9167 wxMask *result = 0 ;
9168 void *argp1 = 0 ;
9169 int res1 = 0 ;
9170 wxColour temp2 ;
9171 PyObject * obj0 = 0 ;
9172 PyObject * obj1 = 0 ;
9173 char * kwnames[] = {
9174 (char *) "bitmap",(char *) "colour", NULL
9175 };
9176
9177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
9178 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9179 if (!SWIG_IsOK(res1)) {
9180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9181 }
9182 if (!argp1) {
9183 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9184 }
9185 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9186 if (obj1) {
9187 {
9188 arg2 = &temp2;
9189 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9190 }
9191 }
9192 {
9193 if (!wxPyCheckForApp()) SWIG_fail;
9194 PyThreadState* __tstate = wxPyBeginAllowThreads();
9195 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
9196 wxPyEndAllowThreads(__tstate);
9197 if (PyErr_Occurred()) SWIG_fail;
9198 }
9199 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9200 return resultobj;
9201 fail:
9202 return NULL;
9203 }
9204
9205
9206 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9207 PyObject *resultobj = 0;
9208 wxMask *arg1 = (wxMask *) 0 ;
9209 void *argp1 = 0 ;
9210 int res1 = 0 ;
9211 PyObject *swig_obj[1] ;
9212
9213 if (!args) SWIG_fail;
9214 swig_obj[0] = args;
9215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9216 if (!SWIG_IsOK(res1)) {
9217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9218 }
9219 arg1 = reinterpret_cast< wxMask * >(argp1);
9220 {
9221 delete arg1;
9222
9223 if (PyErr_Occurred()) SWIG_fail;
9224 }
9225 resultobj = SWIG_Py_Void();
9226 return resultobj;
9227 fail:
9228 return NULL;
9229 }
9230
9231
9232 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9233 PyObject *obj;
9234 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9235 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9236 return SWIG_Py_Void();
9237 }
9238
9239 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9240 return SWIG_Python_InitShadowInstance(args);
9241 }
9242
9243 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9244 PyObject *resultobj = 0;
9245 wxString *arg1 = 0 ;
9246 wxBitmapType arg2 ;
9247 int arg3 = (int) -1 ;
9248 int arg4 = (int) -1 ;
9249 wxIcon *result = 0 ;
9250 bool temp1 = false ;
9251 int val2 ;
9252 int ecode2 = 0 ;
9253 int val3 ;
9254 int ecode3 = 0 ;
9255 int val4 ;
9256 int ecode4 = 0 ;
9257 PyObject * obj0 = 0 ;
9258 PyObject * obj1 = 0 ;
9259 PyObject * obj2 = 0 ;
9260 PyObject * obj3 = 0 ;
9261 char * kwnames[] = {
9262 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9263 };
9264
9265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9266 {
9267 arg1 = wxString_in_helper(obj0);
9268 if (arg1 == NULL) SWIG_fail;
9269 temp1 = true;
9270 }
9271 ecode2 = SWIG_AsVal_int(obj1, &val2);
9272 if (!SWIG_IsOK(ecode2)) {
9273 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9274 }
9275 arg2 = static_cast< wxBitmapType >(val2);
9276 if (obj2) {
9277 ecode3 = SWIG_AsVal_int(obj2, &val3);
9278 if (!SWIG_IsOK(ecode3)) {
9279 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9280 }
9281 arg3 = static_cast< int >(val3);
9282 }
9283 if (obj3) {
9284 ecode4 = SWIG_AsVal_int(obj3, &val4);
9285 if (!SWIG_IsOK(ecode4)) {
9286 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9287 }
9288 arg4 = static_cast< int >(val4);
9289 }
9290 {
9291 if (!wxPyCheckForApp()) SWIG_fail;
9292 PyThreadState* __tstate = wxPyBeginAllowThreads();
9293 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9294 wxPyEndAllowThreads(__tstate);
9295 if (PyErr_Occurred()) SWIG_fail;
9296 }
9297 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9298 {
9299 if (temp1)
9300 delete arg1;
9301 }
9302 return resultobj;
9303 fail:
9304 {
9305 if (temp1)
9306 delete arg1;
9307 }
9308 return NULL;
9309 }
9310
9311
9312 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9313 PyObject *resultobj = 0;
9314 wxIcon *arg1 = (wxIcon *) 0 ;
9315 void *argp1 = 0 ;
9316 int res1 = 0 ;
9317 PyObject *swig_obj[1] ;
9318
9319 if (!args) SWIG_fail;
9320 swig_obj[0] = args;
9321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9322 if (!SWIG_IsOK(res1)) {
9323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9324 }
9325 arg1 = reinterpret_cast< wxIcon * >(argp1);
9326 {
9327 PyThreadState* __tstate = wxPyBeginAllowThreads();
9328 delete arg1;
9329
9330 wxPyEndAllowThreads(__tstate);
9331 if (PyErr_Occurred()) SWIG_fail;
9332 }
9333 resultobj = SWIG_Py_Void();
9334 return resultobj;
9335 fail:
9336 return NULL;
9337 }
9338
9339
9340 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9341 PyObject *resultobj = 0;
9342 wxIcon *result = 0 ;
9343
9344 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9345 {
9346 if (!wxPyCheckForApp()) SWIG_fail;
9347 PyThreadState* __tstate = wxPyBeginAllowThreads();
9348 result = (wxIcon *)new wxIcon();
9349 wxPyEndAllowThreads(__tstate);
9350 if (PyErr_Occurred()) SWIG_fail;
9351 }
9352 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9353 return resultobj;
9354 fail:
9355 return NULL;
9356 }
9357
9358
9359 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9360 PyObject *resultobj = 0;
9361 wxIconLocation *arg1 = 0 ;
9362 wxIcon *result = 0 ;
9363 void *argp1 = 0 ;
9364 int res1 = 0 ;
9365 PyObject * obj0 = 0 ;
9366 char * kwnames[] = {
9367 (char *) "loc", NULL
9368 };
9369
9370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9371 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9372 if (!SWIG_IsOK(res1)) {
9373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9374 }
9375 if (!argp1) {
9376 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9377 }
9378 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9379 {
9380 if (!wxPyCheckForApp()) SWIG_fail;
9381 PyThreadState* __tstate = wxPyBeginAllowThreads();
9382 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9383 wxPyEndAllowThreads(__tstate);
9384 if (PyErr_Occurred()) SWIG_fail;
9385 }
9386 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9387 return resultobj;
9388 fail:
9389 return NULL;
9390 }
9391
9392
9393 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9394 PyObject *resultobj = 0;
9395 wxBitmap *arg1 = 0 ;
9396 wxIcon *result = 0 ;
9397 void *argp1 = 0 ;
9398 int res1 = 0 ;
9399 PyObject * obj0 = 0 ;
9400 char * kwnames[] = {
9401 (char *) "bmp", NULL
9402 };
9403
9404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9405 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9406 if (!SWIG_IsOK(res1)) {
9407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9408 }
9409 if (!argp1) {
9410 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9411 }
9412 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9413 {
9414 if (!wxPyCheckForApp()) SWIG_fail;
9415 PyThreadState* __tstate = wxPyBeginAllowThreads();
9416 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9417 wxPyEndAllowThreads(__tstate);
9418 if (PyErr_Occurred()) SWIG_fail;
9419 }
9420 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9421 return resultobj;
9422 fail:
9423 return NULL;
9424 }
9425
9426
9427 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9428 PyObject *resultobj = 0;
9429 PyObject *arg1 = (PyObject *) 0 ;
9430 wxIcon *result = 0 ;
9431 PyObject * obj0 = 0 ;
9432 char * kwnames[] = {
9433 (char *) "listOfStrings", NULL
9434 };
9435
9436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9437 arg1 = obj0;
9438 {
9439 if (!wxPyCheckForApp()) SWIG_fail;
9440 PyThreadState* __tstate = wxPyBeginAllowThreads();
9441 result = (wxIcon *)new_wxIcon(arg1);
9442 wxPyEndAllowThreads(__tstate);
9443 if (PyErr_Occurred()) SWIG_fail;
9444 }
9445 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9446 return resultobj;
9447 fail:
9448 return NULL;
9449 }
9450
9451
9452 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9453 PyObject *resultobj = 0;
9454 wxIcon *arg1 = (wxIcon *) 0 ;
9455 wxString *arg2 = 0 ;
9456 wxBitmapType arg3 ;
9457 bool result;
9458 void *argp1 = 0 ;
9459 int res1 = 0 ;
9460 bool temp2 = false ;
9461 int val3 ;
9462 int ecode3 = 0 ;
9463 PyObject * obj0 = 0 ;
9464 PyObject * obj1 = 0 ;
9465 PyObject * obj2 = 0 ;
9466 char * kwnames[] = {
9467 (char *) "self",(char *) "name",(char *) "type", NULL
9468 };
9469
9470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9472 if (!SWIG_IsOK(res1)) {
9473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9474 }
9475 arg1 = reinterpret_cast< wxIcon * >(argp1);
9476 {
9477 arg2 = wxString_in_helper(obj1);
9478 if (arg2 == NULL) SWIG_fail;
9479 temp2 = true;
9480 }
9481 ecode3 = SWIG_AsVal_int(obj2, &val3);
9482 if (!SWIG_IsOK(ecode3)) {
9483 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9484 }
9485 arg3 = static_cast< wxBitmapType >(val3);
9486 {
9487 PyThreadState* __tstate = wxPyBeginAllowThreads();
9488 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9489 wxPyEndAllowThreads(__tstate);
9490 if (PyErr_Occurred()) SWIG_fail;
9491 }
9492 {
9493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9494 }
9495 {
9496 if (temp2)
9497 delete arg2;
9498 }
9499 return resultobj;
9500 fail:
9501 {
9502 if (temp2)
9503 delete arg2;
9504 }
9505 return NULL;
9506 }
9507
9508
9509 SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9510 PyObject *resultobj = 0;
9511 wxIcon *arg1 = (wxIcon *) 0 ;
9512 long result;
9513 void *argp1 = 0 ;
9514 int res1 = 0 ;
9515 PyObject *swig_obj[1] ;
9516
9517 if (!args) SWIG_fail;
9518 swig_obj[0] = args;
9519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9520 if (!SWIG_IsOK(res1)) {
9521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9522 }
9523 arg1 = reinterpret_cast< wxIcon * >(argp1);
9524 {
9525 PyThreadState* __tstate = wxPyBeginAllowThreads();
9526 result = (long)(arg1)->GetHandle();
9527 wxPyEndAllowThreads(__tstate);
9528 if (PyErr_Occurred()) SWIG_fail;
9529 }
9530 resultobj = SWIG_From_long(static_cast< long >(result));
9531 return resultobj;
9532 fail:
9533 return NULL;
9534 }
9535
9536
9537 SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9538 PyObject *resultobj = 0;
9539 wxIcon *arg1 = (wxIcon *) 0 ;
9540 long arg2 ;
9541 void *argp1 = 0 ;
9542 int res1 = 0 ;
9543 long val2 ;
9544 int ecode2 = 0 ;
9545 PyObject * obj0 = 0 ;
9546 PyObject * obj1 = 0 ;
9547 char * kwnames[] = {
9548 (char *) "self",(char *) "handle", NULL
9549 };
9550
9551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
9552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9553 if (!SWIG_IsOK(res1)) {
9554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9555 }
9556 arg1 = reinterpret_cast< wxIcon * >(argp1);
9557 ecode2 = SWIG_AsVal_long(obj1, &val2);
9558 if (!SWIG_IsOK(ecode2)) {
9559 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
9560 }
9561 arg2 = static_cast< long >(val2);
9562 {
9563 PyThreadState* __tstate = wxPyBeginAllowThreads();
9564 wxIcon_SetHandle(arg1,arg2);
9565 wxPyEndAllowThreads(__tstate);
9566 if (PyErr_Occurred()) SWIG_fail;
9567 }
9568 resultobj = SWIG_Py_Void();
9569 return resultobj;
9570 fail:
9571 return NULL;
9572 }
9573
9574
9575 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9576 PyObject *resultobj = 0;
9577 wxIcon *arg1 = (wxIcon *) 0 ;
9578 bool result;
9579 void *argp1 = 0 ;
9580 int res1 = 0 ;
9581 PyObject *swig_obj[1] ;
9582
9583 if (!args) SWIG_fail;
9584 swig_obj[0] = args;
9585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9586 if (!SWIG_IsOK(res1)) {
9587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
9588 }
9589 arg1 = reinterpret_cast< wxIcon * >(argp1);
9590 {
9591 PyThreadState* __tstate = wxPyBeginAllowThreads();
9592 result = (bool)(arg1)->IsOk();
9593 wxPyEndAllowThreads(__tstate);
9594 if (PyErr_Occurred()) SWIG_fail;
9595 }
9596 {
9597 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9598 }
9599 return resultobj;
9600 fail:
9601 return NULL;
9602 }
9603
9604
9605 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9606 PyObject *resultobj = 0;
9607 wxIcon *arg1 = (wxIcon *) 0 ;
9608 int result;
9609 void *argp1 = 0 ;
9610 int res1 = 0 ;
9611 PyObject *swig_obj[1] ;
9612
9613 if (!args) SWIG_fail;
9614 swig_obj[0] = args;
9615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9616 if (!SWIG_IsOK(res1)) {
9617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9618 }
9619 arg1 = reinterpret_cast< wxIcon * >(argp1);
9620 {
9621 PyThreadState* __tstate = wxPyBeginAllowThreads();
9622 result = (int)(arg1)->GetWidth();
9623 wxPyEndAllowThreads(__tstate);
9624 if (PyErr_Occurred()) SWIG_fail;
9625 }
9626 resultobj = SWIG_From_int(static_cast< int >(result));
9627 return resultobj;
9628 fail:
9629 return NULL;
9630 }
9631
9632
9633 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9634 PyObject *resultobj = 0;
9635 wxIcon *arg1 = (wxIcon *) 0 ;
9636 int result;
9637 void *argp1 = 0 ;
9638 int res1 = 0 ;
9639 PyObject *swig_obj[1] ;
9640
9641 if (!args) SWIG_fail;
9642 swig_obj[0] = args;
9643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9644 if (!SWIG_IsOK(res1)) {
9645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9646 }
9647 arg1 = reinterpret_cast< wxIcon * >(argp1);
9648 {
9649 PyThreadState* __tstate = wxPyBeginAllowThreads();
9650 result = (int)(arg1)->GetHeight();
9651 wxPyEndAllowThreads(__tstate);
9652 if (PyErr_Occurred()) SWIG_fail;
9653 }
9654 resultobj = SWIG_From_int(static_cast< int >(result));
9655 return resultobj;
9656 fail:
9657 return NULL;
9658 }
9659
9660
9661 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9662 PyObject *resultobj = 0;
9663 wxIcon *arg1 = (wxIcon *) 0 ;
9664 int result;
9665 void *argp1 = 0 ;
9666 int res1 = 0 ;
9667 PyObject *swig_obj[1] ;
9668
9669 if (!args) SWIG_fail;
9670 swig_obj[0] = args;
9671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9672 if (!SWIG_IsOK(res1)) {
9673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9674 }
9675 arg1 = reinterpret_cast< wxIcon * >(argp1);
9676 {
9677 PyThreadState* __tstate = wxPyBeginAllowThreads();
9678 result = (int)(arg1)->GetDepth();
9679 wxPyEndAllowThreads(__tstate);
9680 if (PyErr_Occurred()) SWIG_fail;
9681 }
9682 resultobj = SWIG_From_int(static_cast< int >(result));
9683 return resultobj;
9684 fail:
9685 return NULL;
9686 }
9687
9688
9689 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9690 PyObject *resultobj = 0;
9691 wxIcon *arg1 = (wxIcon *) 0 ;
9692 int arg2 ;
9693 void *argp1 = 0 ;
9694 int res1 = 0 ;
9695 int val2 ;
9696 int ecode2 = 0 ;
9697 PyObject * obj0 = 0 ;
9698 PyObject * obj1 = 0 ;
9699 char * kwnames[] = {
9700 (char *) "self",(char *) "w", NULL
9701 };
9702
9703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9705 if (!SWIG_IsOK(res1)) {
9706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9707 }
9708 arg1 = reinterpret_cast< wxIcon * >(argp1);
9709 ecode2 = SWIG_AsVal_int(obj1, &val2);
9710 if (!SWIG_IsOK(ecode2)) {
9711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9712 }
9713 arg2 = static_cast< int >(val2);
9714 {
9715 PyThreadState* __tstate = wxPyBeginAllowThreads();
9716 (arg1)->SetWidth(arg2);
9717 wxPyEndAllowThreads(__tstate);
9718 if (PyErr_Occurred()) SWIG_fail;
9719 }
9720 resultobj = SWIG_Py_Void();
9721 return resultobj;
9722 fail:
9723 return NULL;
9724 }
9725
9726
9727 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9728 PyObject *resultobj = 0;
9729 wxIcon *arg1 = (wxIcon *) 0 ;
9730 int arg2 ;
9731 void *argp1 = 0 ;
9732 int res1 = 0 ;
9733 int val2 ;
9734 int ecode2 = 0 ;
9735 PyObject * obj0 = 0 ;
9736 PyObject * obj1 = 0 ;
9737 char * kwnames[] = {
9738 (char *) "self",(char *) "h", NULL
9739 };
9740
9741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9743 if (!SWIG_IsOK(res1)) {
9744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9745 }
9746 arg1 = reinterpret_cast< wxIcon * >(argp1);
9747 ecode2 = SWIG_AsVal_int(obj1, &val2);
9748 if (!SWIG_IsOK(ecode2)) {
9749 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9750 }
9751 arg2 = static_cast< int >(val2);
9752 {
9753 PyThreadState* __tstate = wxPyBeginAllowThreads();
9754 (arg1)->SetHeight(arg2);
9755 wxPyEndAllowThreads(__tstate);
9756 if (PyErr_Occurred()) SWIG_fail;
9757 }
9758 resultobj = SWIG_Py_Void();
9759 return resultobj;
9760 fail:
9761 return NULL;
9762 }
9763
9764
9765 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9766 PyObject *resultobj = 0;
9767 wxIcon *arg1 = (wxIcon *) 0 ;
9768 int arg2 ;
9769 void *argp1 = 0 ;
9770 int res1 = 0 ;
9771 int val2 ;
9772 int ecode2 = 0 ;
9773 PyObject * obj0 = 0 ;
9774 PyObject * obj1 = 0 ;
9775 char * kwnames[] = {
9776 (char *) "self",(char *) "d", NULL
9777 };
9778
9779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9781 if (!SWIG_IsOK(res1)) {
9782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9783 }
9784 arg1 = reinterpret_cast< wxIcon * >(argp1);
9785 ecode2 = SWIG_AsVal_int(obj1, &val2);
9786 if (!SWIG_IsOK(ecode2)) {
9787 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9788 }
9789 arg2 = static_cast< int >(val2);
9790 {
9791 PyThreadState* __tstate = wxPyBeginAllowThreads();
9792 (arg1)->SetDepth(arg2);
9793 wxPyEndAllowThreads(__tstate);
9794 if (PyErr_Occurred()) SWIG_fail;
9795 }
9796 resultobj = SWIG_Py_Void();
9797 return resultobj;
9798 fail:
9799 return NULL;
9800 }
9801
9802
9803 SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9804 PyObject *resultobj = 0;
9805 wxIcon *arg1 = (wxIcon *) 0 ;
9806 wxSize *arg2 = 0 ;
9807 void *argp1 = 0 ;
9808 int res1 = 0 ;
9809 wxSize temp2 ;
9810 PyObject * obj0 = 0 ;
9811 PyObject * obj1 = 0 ;
9812 char * kwnames[] = {
9813 (char *) "self",(char *) "size", NULL
9814 };
9815
9816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
9817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9818 if (!SWIG_IsOK(res1)) {
9819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
9820 }
9821 arg1 = reinterpret_cast< wxIcon * >(argp1);
9822 {
9823 arg2 = &temp2;
9824 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9825 }
9826 {
9827 PyThreadState* __tstate = wxPyBeginAllowThreads();
9828 (arg1)->SetSize((wxSize const &)*arg2);
9829 wxPyEndAllowThreads(__tstate);
9830 if (PyErr_Occurred()) SWIG_fail;
9831 }
9832 resultobj = SWIG_Py_Void();
9833 return resultobj;
9834 fail:
9835 return NULL;
9836 }
9837
9838
9839 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9840 PyObject *resultobj = 0;
9841 wxIcon *arg1 = (wxIcon *) 0 ;
9842 wxBitmap *arg2 = 0 ;
9843 void *argp1 = 0 ;
9844 int res1 = 0 ;
9845 void *argp2 = 0 ;
9846 int res2 = 0 ;
9847 PyObject * obj0 = 0 ;
9848 PyObject * obj1 = 0 ;
9849 char * kwnames[] = {
9850 (char *) "self",(char *) "bmp", NULL
9851 };
9852
9853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9855 if (!SWIG_IsOK(res1)) {
9856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9857 }
9858 arg1 = reinterpret_cast< wxIcon * >(argp1);
9859 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9860 if (!SWIG_IsOK(res2)) {
9861 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9862 }
9863 if (!argp2) {
9864 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9865 }
9866 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9867 {
9868 PyThreadState* __tstate = wxPyBeginAllowThreads();
9869 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9870 wxPyEndAllowThreads(__tstate);
9871 if (PyErr_Occurred()) SWIG_fail;
9872 }
9873 resultobj = SWIG_Py_Void();
9874 return resultobj;
9875 fail:
9876 return NULL;
9877 }
9878
9879
9880 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9881 PyObject *obj;
9882 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9883 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9884 return SWIG_Py_Void();
9885 }
9886
9887 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9888 return SWIG_Python_InitShadowInstance(args);
9889 }
9890
9891 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9892 PyObject *resultobj = 0;
9893 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9894 int arg2 = (int) 0 ;
9895 wxIconLocation *result = 0 ;
9896 bool temp1 = false ;
9897 int val2 ;
9898 int ecode2 = 0 ;
9899 PyObject * obj0 = 0 ;
9900 PyObject * obj1 = 0 ;
9901 char * kwnames[] = {
9902 (char *) "filename",(char *) "num", NULL
9903 };
9904
9905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9906 if (obj0) {
9907 {
9908 arg1 = wxString_in_helper(obj0);
9909 if (arg1 == NULL) SWIG_fail;
9910 temp1 = true;
9911 }
9912 }
9913 if (obj1) {
9914 ecode2 = SWIG_AsVal_int(obj1, &val2);
9915 if (!SWIG_IsOK(ecode2)) {
9916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9917 }
9918 arg2 = static_cast< int >(val2);
9919 }
9920 {
9921 PyThreadState* __tstate = wxPyBeginAllowThreads();
9922 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9923 wxPyEndAllowThreads(__tstate);
9924 if (PyErr_Occurred()) SWIG_fail;
9925 }
9926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9927 {
9928 if (temp1)
9929 delete arg1;
9930 }
9931 return resultobj;
9932 fail:
9933 {
9934 if (temp1)
9935 delete arg1;
9936 }
9937 return NULL;
9938 }
9939
9940
9941 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9942 PyObject *resultobj = 0;
9943 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
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, SWIG_POINTER_DISOWN | 0 );
9951 if (!SWIG_IsOK(res1)) {
9952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9953 }
9954 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9955 {
9956 PyThreadState* __tstate = wxPyBeginAllowThreads();
9957 delete arg1;
9958
9959 wxPyEndAllowThreads(__tstate);
9960 if (PyErr_Occurred()) SWIG_fail;
9961 }
9962 resultobj = SWIG_Py_Void();
9963 return resultobj;
9964 fail:
9965 return NULL;
9966 }
9967
9968
9969 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9970 PyObject *resultobj = 0;
9971 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9972 bool result;
9973 void *argp1 = 0 ;
9974 int res1 = 0 ;
9975 PyObject *swig_obj[1] ;
9976
9977 if (!args) SWIG_fail;
9978 swig_obj[0] = args;
9979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9980 if (!SWIG_IsOK(res1)) {
9981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9982 }
9983 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9984 {
9985 PyThreadState* __tstate = wxPyBeginAllowThreads();
9986 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9987 wxPyEndAllowThreads(__tstate);
9988 if (PyErr_Occurred()) SWIG_fail;
9989 }
9990 {
9991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9992 }
9993 return resultobj;
9994 fail:
9995 return NULL;
9996 }
9997
9998
9999 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10000 PyObject *resultobj = 0;
10001 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10002 wxString *arg2 = 0 ;
10003 void *argp1 = 0 ;
10004 int res1 = 0 ;
10005 bool temp2 = false ;
10006 PyObject * obj0 = 0 ;
10007 PyObject * obj1 = 0 ;
10008 char * kwnames[] = {
10009 (char *) "self",(char *) "filename", NULL
10010 };
10011
10012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
10013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10014 if (!SWIG_IsOK(res1)) {
10015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10016 }
10017 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10018 {
10019 arg2 = wxString_in_helper(obj1);
10020 if (arg2 == NULL) SWIG_fail;
10021 temp2 = true;
10022 }
10023 {
10024 PyThreadState* __tstate = wxPyBeginAllowThreads();
10025 (arg1)->SetFileName((wxString const &)*arg2);
10026 wxPyEndAllowThreads(__tstate);
10027 if (PyErr_Occurred()) SWIG_fail;
10028 }
10029 resultobj = SWIG_Py_Void();
10030 {
10031 if (temp2)
10032 delete arg2;
10033 }
10034 return resultobj;
10035 fail:
10036 {
10037 if (temp2)
10038 delete arg2;
10039 }
10040 return NULL;
10041 }
10042
10043
10044 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10045 PyObject *resultobj = 0;
10046 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10047 wxString *result = 0 ;
10048 void *argp1 = 0 ;
10049 int res1 = 0 ;
10050 PyObject *swig_obj[1] ;
10051
10052 if (!args) SWIG_fail;
10053 swig_obj[0] = args;
10054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10055 if (!SWIG_IsOK(res1)) {
10056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
10057 }
10058 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10059 {
10060 PyThreadState* __tstate = wxPyBeginAllowThreads();
10061 {
10062 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
10063 result = (wxString *) &_result_ref;
10064 }
10065 wxPyEndAllowThreads(__tstate);
10066 if (PyErr_Occurred()) SWIG_fail;
10067 }
10068 {
10069 #if wxUSE_UNICODE
10070 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10071 #else
10072 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10073 #endif
10074 }
10075 return resultobj;
10076 fail:
10077 return NULL;
10078 }
10079
10080
10081 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10082 PyObject *resultobj = 0;
10083 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10084 int arg2 ;
10085 void *argp1 = 0 ;
10086 int res1 = 0 ;
10087 int val2 ;
10088 int ecode2 = 0 ;
10089 PyObject * obj0 = 0 ;
10090 PyObject * obj1 = 0 ;
10091 char * kwnames[] = {
10092 (char *) "self",(char *) "num", NULL
10093 };
10094
10095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
10096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10097 if (!SWIG_IsOK(res1)) {
10098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10099 }
10100 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10101 ecode2 = SWIG_AsVal_int(obj1, &val2);
10102 if (!SWIG_IsOK(ecode2)) {
10103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
10104 }
10105 arg2 = static_cast< int >(val2);
10106 {
10107 PyThreadState* __tstate = wxPyBeginAllowThreads();
10108 wxIconLocation_SetIndex(arg1,arg2);
10109 wxPyEndAllowThreads(__tstate);
10110 if (PyErr_Occurred()) SWIG_fail;
10111 }
10112 resultobj = SWIG_Py_Void();
10113 return resultobj;
10114 fail:
10115 return NULL;
10116 }
10117
10118
10119 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10120 PyObject *resultobj = 0;
10121 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
10122 int result;
10123 void *argp1 = 0 ;
10124 int res1 = 0 ;
10125 PyObject *swig_obj[1] ;
10126
10127 if (!args) SWIG_fail;
10128 swig_obj[0] = args;
10129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
10130 if (!SWIG_IsOK(res1)) {
10131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
10132 }
10133 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
10134 {
10135 PyThreadState* __tstate = wxPyBeginAllowThreads();
10136 result = (int)wxIconLocation_GetIndex(arg1);
10137 wxPyEndAllowThreads(__tstate);
10138 if (PyErr_Occurred()) SWIG_fail;
10139 }
10140 resultobj = SWIG_From_int(static_cast< int >(result));
10141 return resultobj;
10142 fail:
10143 return NULL;
10144 }
10145
10146
10147 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10148 PyObject *obj;
10149 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10150 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
10151 return SWIG_Py_Void();
10152 }
10153
10154 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10155 return SWIG_Python_InitShadowInstance(args);
10156 }
10157
10158 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10159 PyObject *resultobj = 0;
10160 wxIconBundle *result = 0 ;
10161
10162 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
10163 {
10164 PyThreadState* __tstate = wxPyBeginAllowThreads();
10165 result = (wxIconBundle *)new wxIconBundle();
10166 wxPyEndAllowThreads(__tstate);
10167 if (PyErr_Occurred()) SWIG_fail;
10168 }
10169 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
10170 return resultobj;
10171 fail:
10172 return NULL;
10173 }
10174
10175
10176 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10177 PyObject *resultobj = 0;
10178 wxString *arg1 = 0 ;
10179 long arg2 ;
10180 wxIconBundle *result = 0 ;
10181 bool temp1 = false ;
10182 long val2 ;
10183 int ecode2 = 0 ;
10184 PyObject * obj0 = 0 ;
10185 PyObject * obj1 = 0 ;
10186 char * kwnames[] = {
10187 (char *) "file",(char *) "type", NULL
10188 };
10189
10190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
10191 {
10192 arg1 = wxString_in_helper(obj0);
10193 if (arg1 == NULL) SWIG_fail;
10194 temp1 = true;
10195 }
10196 ecode2 = SWIG_AsVal_long(obj1, &val2);
10197 if (!SWIG_IsOK(ecode2)) {
10198 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
10199 }
10200 arg2 = static_cast< long >(val2);
10201 {
10202 PyThreadState* __tstate = wxPyBeginAllowThreads();
10203 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
10204 wxPyEndAllowThreads(__tstate);
10205 if (PyErr_Occurred()) SWIG_fail;
10206 }
10207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
10208 {
10209 if (temp1)
10210 delete arg1;
10211 }
10212 return resultobj;
10213 fail:
10214 {
10215 if (temp1)
10216 delete arg1;
10217 }
10218 return NULL;
10219 }
10220
10221
10222 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10223 PyObject *resultobj = 0;
10224 wxIcon *arg1 = 0 ;
10225 wxIconBundle *result = 0 ;
10226 void *argp1 = 0 ;
10227 int res1 = 0 ;
10228 PyObject * obj0 = 0 ;
10229 char * kwnames[] = {
10230 (char *) "icon", NULL
10231 };
10232
10233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
10234 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
10235 if (!SWIG_IsOK(res1)) {
10236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
10237 }
10238 if (!argp1) {
10239 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
10240 }
10241 arg1 = reinterpret_cast< wxIcon * >(argp1);
10242 {
10243 PyThreadState* __tstate = wxPyBeginAllowThreads();
10244 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
10245 wxPyEndAllowThreads(__tstate);
10246 if (PyErr_Occurred()) SWIG_fail;
10247 }
10248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
10249 return resultobj;
10250 fail:
10251 return NULL;
10252 }
10253
10254
10255 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10256 PyObject *resultobj = 0;
10257 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10258 void *argp1 = 0 ;
10259 int res1 = 0 ;
10260 PyObject *swig_obj[1] ;
10261
10262 if (!args) SWIG_fail;
10263 swig_obj[0] = args;
10264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
10265 if (!SWIG_IsOK(res1)) {
10266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10267 }
10268 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10269 {
10270 PyThreadState* __tstate = wxPyBeginAllowThreads();
10271 delete arg1;
10272
10273 wxPyEndAllowThreads(__tstate);
10274 if (PyErr_Occurred()) SWIG_fail;
10275 }
10276 resultobj = SWIG_Py_Void();
10277 return resultobj;
10278 fail:
10279 return NULL;
10280 }
10281
10282
10283 SWIGINTERN PyObject *_wrap_IconBundle_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10284 PyObject *resultobj = 0;
10285 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10286 bool result;
10287 void *argp1 = 0 ;
10288 int res1 = 0 ;
10289 PyObject *swig_obj[1] ;
10290
10291 if (!args) SWIG_fail;
10292 swig_obj[0] = args;
10293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10294 if (!SWIG_IsOK(res1)) {
10295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_IsOk" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10296 }
10297 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10298 {
10299 PyThreadState* __tstate = wxPyBeginAllowThreads();
10300 result = (bool)((wxIconBundle const *)arg1)->IsOk();
10301 wxPyEndAllowThreads(__tstate);
10302 if (PyErr_Occurred()) SWIG_fail;
10303 }
10304 {
10305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10306 }
10307 return resultobj;
10308 fail:
10309 return NULL;
10310 }
10311
10312
10313 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10314 PyObject *resultobj = 0;
10315 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10316 wxIcon *arg2 = 0 ;
10317 void *argp1 = 0 ;
10318 int res1 = 0 ;
10319 void *argp2 = 0 ;
10320 int res2 = 0 ;
10321 PyObject * obj0 = 0 ;
10322 PyObject * obj1 = 0 ;
10323 char * kwnames[] = {
10324 (char *) "self",(char *) "icon", NULL
10325 };
10326
10327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10329 if (!SWIG_IsOK(res1)) {
10330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10331 }
10332 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10333 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
10334 if (!SWIG_IsOK(res2)) {
10335 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10336 }
10337 if (!argp2) {
10338 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
10339 }
10340 arg2 = reinterpret_cast< wxIcon * >(argp2);
10341 {
10342 PyThreadState* __tstate = wxPyBeginAllowThreads();
10343 (arg1)->AddIcon((wxIcon const &)*arg2);
10344 wxPyEndAllowThreads(__tstate);
10345 if (PyErr_Occurred()) SWIG_fail;
10346 }
10347 resultobj = SWIG_Py_Void();
10348 return resultobj;
10349 fail:
10350 return NULL;
10351 }
10352
10353
10354 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10355 PyObject *resultobj = 0;
10356 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10357 wxString *arg2 = 0 ;
10358 long arg3 ;
10359 void *argp1 = 0 ;
10360 int res1 = 0 ;
10361 bool temp2 = false ;
10362 long val3 ;
10363 int ecode3 = 0 ;
10364 PyObject * obj0 = 0 ;
10365 PyObject * obj1 = 0 ;
10366 PyObject * obj2 = 0 ;
10367 char * kwnames[] = {
10368 (char *) "self",(char *) "file",(char *) "type", NULL
10369 };
10370
10371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10373 if (!SWIG_IsOK(res1)) {
10374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10375 }
10376 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10377 {
10378 arg2 = wxString_in_helper(obj1);
10379 if (arg2 == NULL) SWIG_fail;
10380 temp2 = true;
10381 }
10382 ecode3 = SWIG_AsVal_long(obj2, &val3);
10383 if (!SWIG_IsOK(ecode3)) {
10384 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10385 }
10386 arg3 = static_cast< long >(val3);
10387 {
10388 PyThreadState* __tstate = wxPyBeginAllowThreads();
10389 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10390 wxPyEndAllowThreads(__tstate);
10391 if (PyErr_Occurred()) SWIG_fail;
10392 }
10393 resultobj = SWIG_Py_Void();
10394 {
10395 if (temp2)
10396 delete arg2;
10397 }
10398 return resultobj;
10399 fail:
10400 {
10401 if (temp2)
10402 delete arg2;
10403 }
10404 return NULL;
10405 }
10406
10407
10408 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10409 PyObject *resultobj = 0;
10410 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10411 wxSize *arg2 = 0 ;
10412 wxIcon *result = 0 ;
10413 void *argp1 = 0 ;
10414 int res1 = 0 ;
10415 wxSize temp2 ;
10416 PyObject * obj0 = 0 ;
10417 PyObject * obj1 = 0 ;
10418 char * kwnames[] = {
10419 (char *) "self",(char *) "size", NULL
10420 };
10421
10422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10424 if (!SWIG_IsOK(res1)) {
10425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10426 }
10427 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10428 {
10429 arg2 = &temp2;
10430 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10431 }
10432 {
10433 PyThreadState* __tstate = wxPyBeginAllowThreads();
10434 {
10435 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10436 result = (wxIcon *) &_result_ref;
10437 }
10438 wxPyEndAllowThreads(__tstate);
10439 if (PyErr_Occurred()) SWIG_fail;
10440 }
10441 {
10442 wxIcon* resultptr = new wxIcon(*result);
10443 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10444 }
10445 return resultobj;
10446 fail:
10447 return NULL;
10448 }
10449
10450
10451 SWIGINTERN PyObject *_wrap_IconBundle_GetIconOfExactSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10452 PyObject *resultobj = 0;
10453 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10454 wxSize *arg2 = 0 ;
10455 wxIcon result;
10456 void *argp1 = 0 ;
10457 int res1 = 0 ;
10458 wxSize temp2 ;
10459 PyObject * obj0 = 0 ;
10460 PyObject * obj1 = 0 ;
10461 char * kwnames[] = {
10462 (char *) "self",(char *) "size", NULL
10463 };
10464
10465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIconOfExactSize",kwnames,&obj0,&obj1)) SWIG_fail;
10466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10467 if (!SWIG_IsOK(res1)) {
10468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIconOfExactSize" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10469 }
10470 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10471 {
10472 arg2 = &temp2;
10473 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10474 }
10475 {
10476 PyThreadState* __tstate = wxPyBeginAllowThreads();
10477 result = ((wxIconBundle const *)arg1)->GetIconOfExactSize((wxSize const &)*arg2);
10478 wxPyEndAllowThreads(__tstate);
10479 if (PyErr_Occurred()) SWIG_fail;
10480 }
10481 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
10482 return resultobj;
10483 fail:
10484 return NULL;
10485 }
10486
10487
10488 SWIGINTERN PyObject *_wrap_IconBundle_GetIconCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10489 PyObject *resultobj = 0;
10490 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10491 size_t result;
10492 void *argp1 = 0 ;
10493 int res1 = 0 ;
10494 PyObject *swig_obj[1] ;
10495
10496 if (!args) SWIG_fail;
10497 swig_obj[0] = args;
10498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10499 if (!SWIG_IsOK(res1)) {
10500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIconCount" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10501 }
10502 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10503 {
10504 PyThreadState* __tstate = wxPyBeginAllowThreads();
10505 result = (size_t)((wxIconBundle const *)arg1)->GetIconCount();
10506 wxPyEndAllowThreads(__tstate);
10507 if (PyErr_Occurred()) SWIG_fail;
10508 }
10509 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
10510 return resultobj;
10511 fail:
10512 return NULL;
10513 }
10514
10515
10516 SWIGINTERN PyObject *_wrap_IconBundle_GetIconByIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10517 PyObject *resultobj = 0;
10518 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10519 size_t arg2 ;
10520 wxIcon result;
10521 void *argp1 = 0 ;
10522 int res1 = 0 ;
10523 size_t val2 ;
10524 int ecode2 = 0 ;
10525 PyObject * obj0 = 0 ;
10526 PyObject * obj1 = 0 ;
10527 char * kwnames[] = {
10528 (char *) "self",(char *) "n", NULL
10529 };
10530
10531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIconByIndex",kwnames,&obj0,&obj1)) SWIG_fail;
10532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10533 if (!SWIG_IsOK(res1)) {
10534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIconByIndex" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10535 }
10536 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10537 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
10538 if (!SWIG_IsOK(ecode2)) {
10539 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconBundle_GetIconByIndex" "', expected argument " "2"" of type '" "size_t""'");
10540 }
10541 arg2 = static_cast< size_t >(val2);
10542 {
10543 PyThreadState* __tstate = wxPyBeginAllowThreads();
10544 result = ((wxIconBundle const *)arg1)->GetIconByIndex(arg2);
10545 wxPyEndAllowThreads(__tstate);
10546 if (PyErr_Occurred()) SWIG_fail;
10547 }
10548 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
10549 return resultobj;
10550 fail:
10551 return NULL;
10552 }
10553
10554
10555 SWIGINTERN PyObject *_wrap_IconBundle_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10556 PyObject *resultobj = 0;
10557 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10558 bool result;
10559 void *argp1 = 0 ;
10560 int res1 = 0 ;
10561 PyObject *swig_obj[1] ;
10562
10563 if (!args) SWIG_fail;
10564 swig_obj[0] = args;
10565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10566 if (!SWIG_IsOK(res1)) {
10567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_IsEmpty" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10568 }
10569 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10570 {
10571 PyThreadState* __tstate = wxPyBeginAllowThreads();
10572 result = (bool)((wxIconBundle const *)arg1)->IsEmpty();
10573 wxPyEndAllowThreads(__tstate);
10574 if (PyErr_Occurred()) SWIG_fail;
10575 }
10576 {
10577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10578 }
10579 return resultobj;
10580 fail:
10581 return NULL;
10582 }
10583
10584
10585 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10586 PyObject *obj;
10587 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10588 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10589 return SWIG_Py_Void();
10590 }
10591
10592 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10593 return SWIG_Python_InitShadowInstance(args);
10594 }
10595
10596 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10597 PyObject *resultobj = 0;
10598 wxString *arg1 = 0 ;
10599 long arg2 ;
10600 int arg3 = (int) 0 ;
10601 int arg4 = (int) 0 ;
10602 wxCursor *result = 0 ;
10603 bool temp1 = false ;
10604 long val2 ;
10605 int ecode2 = 0 ;
10606 int val3 ;
10607 int ecode3 = 0 ;
10608 int val4 ;
10609 int ecode4 = 0 ;
10610 PyObject * obj0 = 0 ;
10611 PyObject * obj1 = 0 ;
10612 PyObject * obj2 = 0 ;
10613 PyObject * obj3 = 0 ;
10614 char * kwnames[] = {
10615 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10616 };
10617
10618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10619 {
10620 arg1 = wxString_in_helper(obj0);
10621 if (arg1 == NULL) SWIG_fail;
10622 temp1 = true;
10623 }
10624 ecode2 = SWIG_AsVal_long(obj1, &val2);
10625 if (!SWIG_IsOK(ecode2)) {
10626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10627 }
10628 arg2 = static_cast< long >(val2);
10629 if (obj2) {
10630 ecode3 = SWIG_AsVal_int(obj2, &val3);
10631 if (!SWIG_IsOK(ecode3)) {
10632 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10633 }
10634 arg3 = static_cast< int >(val3);
10635 }
10636 if (obj3) {
10637 ecode4 = SWIG_AsVal_int(obj3, &val4);
10638 if (!SWIG_IsOK(ecode4)) {
10639 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10640 }
10641 arg4 = static_cast< int >(val4);
10642 }
10643 {
10644 if (!wxPyCheckForApp()) SWIG_fail;
10645 PyThreadState* __tstate = wxPyBeginAllowThreads();
10646 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10647 wxPyEndAllowThreads(__tstate);
10648 if (PyErr_Occurred()) SWIG_fail;
10649 }
10650 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10651 {
10652 if (temp1)
10653 delete arg1;
10654 }
10655 return resultobj;
10656 fail:
10657 {
10658 if (temp1)
10659 delete arg1;
10660 }
10661 return NULL;
10662 }
10663
10664
10665 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10666 PyObject *resultobj = 0;
10667 wxCursor *arg1 = (wxCursor *) 0 ;
10668 void *argp1 = 0 ;
10669 int res1 = 0 ;
10670 PyObject *swig_obj[1] ;
10671
10672 if (!args) SWIG_fail;
10673 swig_obj[0] = args;
10674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10675 if (!SWIG_IsOK(res1)) {
10676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10677 }
10678 arg1 = reinterpret_cast< wxCursor * >(argp1);
10679 {
10680 PyThreadState* __tstate = wxPyBeginAllowThreads();
10681 delete arg1;
10682
10683 wxPyEndAllowThreads(__tstate);
10684 if (PyErr_Occurred()) SWIG_fail;
10685 }
10686 resultobj = SWIG_Py_Void();
10687 return resultobj;
10688 fail:
10689 return NULL;
10690 }
10691
10692
10693 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10694 PyObject *resultobj = 0;
10695 int arg1 ;
10696 wxCursor *result = 0 ;
10697 int val1 ;
10698 int ecode1 = 0 ;
10699 PyObject * obj0 = 0 ;
10700 char * kwnames[] = {
10701 (char *) "id", NULL
10702 };
10703
10704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10705 ecode1 = SWIG_AsVal_int(obj0, &val1);
10706 if (!SWIG_IsOK(ecode1)) {
10707 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10708 }
10709 arg1 = static_cast< int >(val1);
10710 {
10711 if (!wxPyCheckForApp()) SWIG_fail;
10712 PyThreadState* __tstate = wxPyBeginAllowThreads();
10713 result = (wxCursor *)new wxCursor(arg1);
10714 wxPyEndAllowThreads(__tstate);
10715 if (PyErr_Occurred()) SWIG_fail;
10716 }
10717 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10718 return resultobj;
10719 fail:
10720 return NULL;
10721 }
10722
10723
10724 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10725 PyObject *resultobj = 0;
10726 wxImage *arg1 = 0 ;
10727 wxCursor *result = 0 ;
10728 void *argp1 = 0 ;
10729 int res1 = 0 ;
10730 PyObject * obj0 = 0 ;
10731 char * kwnames[] = {
10732 (char *) "image", NULL
10733 };
10734
10735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10736 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10737 if (!SWIG_IsOK(res1)) {
10738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10739 }
10740 if (!argp1) {
10741 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10742 }
10743 arg1 = reinterpret_cast< wxImage * >(argp1);
10744 {
10745 if (!wxPyCheckForApp()) SWIG_fail;
10746 PyThreadState* __tstate = wxPyBeginAllowThreads();
10747 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10748 wxPyEndAllowThreads(__tstate);
10749 if (PyErr_Occurred()) SWIG_fail;
10750 }
10751 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10752 return resultobj;
10753 fail:
10754 return NULL;
10755 }
10756
10757
10758 SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10759 PyObject *resultobj = 0;
10760 wxCursor *arg1 = (wxCursor *) 0 ;
10761 long result;
10762 void *argp1 = 0 ;
10763 int res1 = 0 ;
10764 PyObject *swig_obj[1] ;
10765
10766 if (!args) SWIG_fail;
10767 swig_obj[0] = args;
10768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10769 if (!SWIG_IsOK(res1)) {
10770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10771 }
10772 arg1 = reinterpret_cast< wxCursor * >(argp1);
10773 {
10774 PyThreadState* __tstate = wxPyBeginAllowThreads();
10775 result = (long)(arg1)->GetHandle();
10776 wxPyEndAllowThreads(__tstate);
10777 if (PyErr_Occurred()) SWIG_fail;
10778 }
10779 resultobj = SWIG_From_long(static_cast< long >(result));
10780 return resultobj;
10781 fail:
10782 return NULL;
10783 }
10784
10785
10786 SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10787 PyObject *resultobj = 0;
10788 wxCursor *arg1 = (wxCursor *) 0 ;
10789 long arg2 ;
10790 void *argp1 = 0 ;
10791 int res1 = 0 ;
10792 long val2 ;
10793 int ecode2 = 0 ;
10794 PyObject * obj0 = 0 ;
10795 PyObject * obj1 = 0 ;
10796 char * kwnames[] = {
10797 (char *) "self",(char *) "handle", NULL
10798 };
10799
10800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
10801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10802 if (!SWIG_IsOK(res1)) {
10803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10804 }
10805 arg1 = reinterpret_cast< wxCursor * >(argp1);
10806 ecode2 = SWIG_AsVal_long(obj1, &val2);
10807 if (!SWIG_IsOK(ecode2)) {
10808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
10809 }
10810 arg2 = static_cast< long >(val2);
10811 {
10812 PyThreadState* __tstate = wxPyBeginAllowThreads();
10813 wxCursor_SetHandle(arg1,arg2);
10814 wxPyEndAllowThreads(__tstate);
10815 if (PyErr_Occurred()) SWIG_fail;
10816 }
10817 resultobj = SWIG_Py_Void();
10818 return resultobj;
10819 fail:
10820 return NULL;
10821 }
10822
10823
10824 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10825 PyObject *resultobj = 0;
10826 wxCursor *arg1 = (wxCursor *) 0 ;
10827 bool result;
10828 void *argp1 = 0 ;
10829 int res1 = 0 ;
10830 PyObject *swig_obj[1] ;
10831
10832 if (!args) SWIG_fail;
10833 swig_obj[0] = args;
10834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10835 if (!SWIG_IsOK(res1)) {
10836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
10837 }
10838 arg1 = reinterpret_cast< wxCursor * >(argp1);
10839 {
10840 PyThreadState* __tstate = wxPyBeginAllowThreads();
10841 result = (bool)(arg1)->IsOk();
10842 wxPyEndAllowThreads(__tstate);
10843 if (PyErr_Occurred()) SWIG_fail;
10844 }
10845 {
10846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10847 }
10848 return resultobj;
10849 fail:
10850 return NULL;
10851 }
10852
10853
10854 SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10855 PyObject *resultobj = 0;
10856 wxCursor *arg1 = (wxCursor *) 0 ;
10857 int result;
10858 void *argp1 = 0 ;
10859 int res1 = 0 ;
10860 PyObject *swig_obj[1] ;
10861
10862 if (!args) SWIG_fail;
10863 swig_obj[0] = args;
10864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10865 if (!SWIG_IsOK(res1)) {
10866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10867 }
10868 arg1 = reinterpret_cast< wxCursor * >(argp1);
10869 {
10870 PyThreadState* __tstate = wxPyBeginAllowThreads();
10871 result = (int)(arg1)->GetWidth();
10872 wxPyEndAllowThreads(__tstate);
10873 if (PyErr_Occurred()) SWIG_fail;
10874 }
10875 resultobj = SWIG_From_int(static_cast< int >(result));
10876 return resultobj;
10877 fail:
10878 return NULL;
10879 }
10880
10881
10882 SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10883 PyObject *resultobj = 0;
10884 wxCursor *arg1 = (wxCursor *) 0 ;
10885 int result;
10886 void *argp1 = 0 ;
10887 int res1 = 0 ;
10888 PyObject *swig_obj[1] ;
10889
10890 if (!args) SWIG_fail;
10891 swig_obj[0] = args;
10892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10893 if (!SWIG_IsOK(res1)) {
10894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10895 }
10896 arg1 = reinterpret_cast< wxCursor * >(argp1);
10897 {
10898 PyThreadState* __tstate = wxPyBeginAllowThreads();
10899 result = (int)(arg1)->GetHeight();
10900 wxPyEndAllowThreads(__tstate);
10901 if (PyErr_Occurred()) SWIG_fail;
10902 }
10903 resultobj = SWIG_From_int(static_cast< int >(result));
10904 return resultobj;
10905 fail:
10906 return NULL;
10907 }
10908
10909
10910 SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10911 PyObject *resultobj = 0;
10912 wxCursor *arg1 = (wxCursor *) 0 ;
10913 int result;
10914 void *argp1 = 0 ;
10915 int res1 = 0 ;
10916 PyObject *swig_obj[1] ;
10917
10918 if (!args) SWIG_fail;
10919 swig_obj[0] = args;
10920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10921 if (!SWIG_IsOK(res1)) {
10922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10923 }
10924 arg1 = reinterpret_cast< wxCursor * >(argp1);
10925 {
10926 PyThreadState* __tstate = wxPyBeginAllowThreads();
10927 result = (int)(arg1)->GetDepth();
10928 wxPyEndAllowThreads(__tstate);
10929 if (PyErr_Occurred()) SWIG_fail;
10930 }
10931 resultobj = SWIG_From_int(static_cast< int >(result));
10932 return resultobj;
10933 fail:
10934 return NULL;
10935 }
10936
10937
10938 SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10939 PyObject *resultobj = 0;
10940 wxCursor *arg1 = (wxCursor *) 0 ;
10941 int arg2 ;
10942 void *argp1 = 0 ;
10943 int res1 = 0 ;
10944 int val2 ;
10945 int ecode2 = 0 ;
10946 PyObject * obj0 = 0 ;
10947 PyObject * obj1 = 0 ;
10948 char * kwnames[] = {
10949 (char *) "self",(char *) "w", NULL
10950 };
10951
10952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
10953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10954 if (!SWIG_IsOK(res1)) {
10955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10956 }
10957 arg1 = reinterpret_cast< wxCursor * >(argp1);
10958 ecode2 = SWIG_AsVal_int(obj1, &val2);
10959 if (!SWIG_IsOK(ecode2)) {
10960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
10961 }
10962 arg2 = static_cast< int >(val2);
10963 {
10964 PyThreadState* __tstate = wxPyBeginAllowThreads();
10965 (arg1)->SetWidth(arg2);
10966 wxPyEndAllowThreads(__tstate);
10967 if (PyErr_Occurred()) SWIG_fail;
10968 }
10969 resultobj = SWIG_Py_Void();
10970 return resultobj;
10971 fail:
10972 return NULL;
10973 }
10974
10975
10976 SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10977 PyObject *resultobj = 0;
10978 wxCursor *arg1 = (wxCursor *) 0 ;
10979 int arg2 ;
10980 void *argp1 = 0 ;
10981 int res1 = 0 ;
10982 int val2 ;
10983 int ecode2 = 0 ;
10984 PyObject * obj0 = 0 ;
10985 PyObject * obj1 = 0 ;
10986 char * kwnames[] = {
10987 (char *) "self",(char *) "h", NULL
10988 };
10989
10990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
10991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10992 if (!SWIG_IsOK(res1)) {
10993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10994 }
10995 arg1 = reinterpret_cast< wxCursor * >(argp1);
10996 ecode2 = SWIG_AsVal_int(obj1, &val2);
10997 if (!SWIG_IsOK(ecode2)) {
10998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
10999 }
11000 arg2 = static_cast< int >(val2);
11001 {
11002 PyThreadState* __tstate = wxPyBeginAllowThreads();
11003 (arg1)->SetHeight(arg2);
11004 wxPyEndAllowThreads(__tstate);
11005 if (PyErr_Occurred()) SWIG_fail;
11006 }
11007 resultobj = SWIG_Py_Void();
11008 return resultobj;
11009 fail:
11010 return NULL;
11011 }
11012
11013
11014 SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11015 PyObject *resultobj = 0;
11016 wxCursor *arg1 = (wxCursor *) 0 ;
11017 int arg2 ;
11018 void *argp1 = 0 ;
11019 int res1 = 0 ;
11020 int val2 ;
11021 int ecode2 = 0 ;
11022 PyObject * obj0 = 0 ;
11023 PyObject * obj1 = 0 ;
11024 char * kwnames[] = {
11025 (char *) "self",(char *) "d", NULL
11026 };
11027
11028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
11029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
11030 if (!SWIG_IsOK(res1)) {
11031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
11032 }
11033 arg1 = reinterpret_cast< wxCursor * >(argp1);
11034 ecode2 = SWIG_AsVal_int(obj1, &val2);
11035 if (!SWIG_IsOK(ecode2)) {
11036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
11037 }
11038 arg2 = static_cast< int >(val2);
11039 {
11040 PyThreadState* __tstate = wxPyBeginAllowThreads();
11041 (arg1)->SetDepth(arg2);
11042 wxPyEndAllowThreads(__tstate);
11043 if (PyErr_Occurred()) SWIG_fail;
11044 }
11045 resultobj = SWIG_Py_Void();
11046 return resultobj;
11047 fail:
11048 return NULL;
11049 }
11050
11051
11052 SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11053 PyObject *resultobj = 0;
11054 wxCursor *arg1 = (wxCursor *) 0 ;
11055 wxSize *arg2 = 0 ;
11056 void *argp1 = 0 ;
11057 int res1 = 0 ;
11058 wxSize temp2 ;
11059 PyObject * obj0 = 0 ;
11060 PyObject * obj1 = 0 ;
11061 char * kwnames[] = {
11062 (char *) "self",(char *) "size", NULL
11063 };
11064
11065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
11066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
11067 if (!SWIG_IsOK(res1)) {
11068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
11069 }
11070 arg1 = reinterpret_cast< wxCursor * >(argp1);
11071 {
11072 arg2 = &temp2;
11073 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
11074 }
11075 {
11076 PyThreadState* __tstate = wxPyBeginAllowThreads();
11077 (arg1)->SetSize((wxSize const &)*arg2);
11078 wxPyEndAllowThreads(__tstate);
11079 if (PyErr_Occurred()) SWIG_fail;
11080 }
11081 resultobj = SWIG_Py_Void();
11082 return resultobj;
11083 fail:
11084 return NULL;
11085 }
11086
11087
11088 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11089 PyObject *obj;
11090 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11091 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
11092 return SWIG_Py_Void();
11093 }
11094
11095 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11096 return SWIG_Python_InitShadowInstance(args);
11097 }
11098
11099 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11100 PyObject *resultobj = 0;
11101 int arg1 = (int) 0 ;
11102 int arg2 = (int) 0 ;
11103 int arg3 = (int) 0 ;
11104 int arg4 = (int) 0 ;
11105 wxRegion *result = 0 ;
11106 int val1 ;
11107 int ecode1 = 0 ;
11108 int val2 ;
11109 int ecode2 = 0 ;
11110 int val3 ;
11111 int ecode3 = 0 ;
11112 int val4 ;
11113 int ecode4 = 0 ;
11114 PyObject * obj0 = 0 ;
11115 PyObject * obj1 = 0 ;
11116 PyObject * obj2 = 0 ;
11117 PyObject * obj3 = 0 ;
11118 char * kwnames[] = {
11119 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11120 };
11121
11122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11123 if (obj0) {
11124 ecode1 = SWIG_AsVal_int(obj0, &val1);
11125 if (!SWIG_IsOK(ecode1)) {
11126 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
11127 }
11128 arg1 = static_cast< int >(val1);
11129 }
11130 if (obj1) {
11131 ecode2 = SWIG_AsVal_int(obj1, &val2);
11132 if (!SWIG_IsOK(ecode2)) {
11133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
11134 }
11135 arg2 = static_cast< int >(val2);
11136 }
11137 if (obj2) {
11138 ecode3 = SWIG_AsVal_int(obj2, &val3);
11139 if (!SWIG_IsOK(ecode3)) {
11140 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
11141 }
11142 arg3 = static_cast< int >(val3);
11143 }
11144 if (obj3) {
11145 ecode4 = SWIG_AsVal_int(obj3, &val4);
11146 if (!SWIG_IsOK(ecode4)) {
11147 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
11148 }
11149 arg4 = static_cast< int >(val4);
11150 }
11151 {
11152 if (!wxPyCheckForApp()) SWIG_fail;
11153 PyThreadState* __tstate = wxPyBeginAllowThreads();
11154 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
11155 wxPyEndAllowThreads(__tstate);
11156 if (PyErr_Occurred()) SWIG_fail;
11157 }
11158 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
11159 return resultobj;
11160 fail:
11161 return NULL;
11162 }
11163
11164
11165 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11166 PyObject *resultobj = 0;
11167 wxBitmap *arg1 = 0 ;
11168 wxRegion *result = 0 ;
11169 void *argp1 = 0 ;
11170 int res1 = 0 ;
11171 PyObject * obj0 = 0 ;
11172 char * kwnames[] = {
11173 (char *) "bmp", NULL
11174 };
11175
11176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
11177 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
11178 if (!SWIG_IsOK(res1)) {
11179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11180 }
11181 if (!argp1) {
11182 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11183 }
11184 arg1 = reinterpret_cast< wxBitmap * >(argp1);
11185 {
11186 if (!wxPyCheckForApp()) SWIG_fail;
11187 PyThreadState* __tstate = wxPyBeginAllowThreads();
11188 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
11189 wxPyEndAllowThreads(__tstate);
11190 if (PyErr_Occurred()) SWIG_fail;
11191 }
11192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11193 return resultobj;
11194 fail:
11195 return NULL;
11196 }
11197
11198
11199 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11200 PyObject *resultobj = 0;
11201 wxBitmap *arg1 = 0 ;
11202 wxColour *arg2 = 0 ;
11203 int arg3 = (int) 0 ;
11204 wxRegion *result = 0 ;
11205 void *argp1 = 0 ;
11206 int res1 = 0 ;
11207 wxColour temp2 ;
11208 int val3 ;
11209 int ecode3 = 0 ;
11210 PyObject * obj0 = 0 ;
11211 PyObject * obj1 = 0 ;
11212 PyObject * obj2 = 0 ;
11213 char * kwnames[] = {
11214 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11215 };
11216
11217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11218 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
11219 if (!SWIG_IsOK(res1)) {
11220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11221 }
11222 if (!argp1) {
11223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
11224 }
11225 arg1 = reinterpret_cast< wxBitmap * >(argp1);
11226 {
11227 arg2 = &temp2;
11228 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
11229 }
11230 if (obj2) {
11231 ecode3 = SWIG_AsVal_int(obj2, &val3);
11232 if (!SWIG_IsOK(ecode3)) {
11233 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
11234 }
11235 arg3 = static_cast< int >(val3);
11236 }
11237 {
11238 if (!wxPyCheckForApp()) SWIG_fail;
11239 PyThreadState* __tstate = wxPyBeginAllowThreads();
11240 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
11241 wxPyEndAllowThreads(__tstate);
11242 if (PyErr_Occurred()) SWIG_fail;
11243 }
11244 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11245 return resultobj;
11246 fail:
11247 return NULL;
11248 }
11249
11250
11251 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11252 PyObject *resultobj = 0;
11253 int arg1 ;
11254 wxPoint *arg2 = (wxPoint *) 0 ;
11255 int arg3 = (int) wxWINDING_RULE ;
11256 wxRegion *result = 0 ;
11257 int val3 ;
11258 int ecode3 = 0 ;
11259 PyObject * obj0 = 0 ;
11260 PyObject * obj1 = 0 ;
11261 char * kwnames[] = {
11262 (char *) "points",(char *) "fillStyle", NULL
11263 };
11264
11265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
11266 {
11267 arg2 = wxPoint_LIST_helper(obj0, &arg1);
11268 if (arg2 == NULL) SWIG_fail;
11269 }
11270 if (obj1) {
11271 ecode3 = SWIG_AsVal_int(obj1, &val3);
11272 if (!SWIG_IsOK(ecode3)) {
11273 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
11274 }
11275 arg3 = static_cast< int >(val3);
11276 }
11277 {
11278 if (!wxPyCheckForApp()) SWIG_fail;
11279 PyThreadState* __tstate = wxPyBeginAllowThreads();
11280 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
11281 wxPyEndAllowThreads(__tstate);
11282 if (PyErr_Occurred()) SWIG_fail;
11283 }
11284 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
11285 {
11286 if (arg2) delete [] arg2;
11287 }
11288 return resultobj;
11289 fail:
11290 {
11291 if (arg2) delete [] arg2;
11292 }
11293 return NULL;
11294 }
11295
11296
11297 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11298 PyObject *resultobj = 0;
11299 wxRegion *arg1 = (wxRegion *) 0 ;
11300 void *argp1 = 0 ;
11301 int res1 = 0 ;
11302 PyObject *swig_obj[1] ;
11303
11304 if (!args) SWIG_fail;
11305 swig_obj[0] = args;
11306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
11307 if (!SWIG_IsOK(res1)) {
11308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
11309 }
11310 arg1 = reinterpret_cast< wxRegion * >(argp1);
11311 {
11312 PyThreadState* __tstate = wxPyBeginAllowThreads();
11313 delete arg1;
11314
11315 wxPyEndAllowThreads(__tstate);
11316 if (PyErr_Occurred()) SWIG_fail;
11317 }
11318 resultobj = SWIG_Py_Void();
11319 return resultobj;
11320 fail:
11321 return NULL;
11322 }
11323
11324
11325 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11326 PyObject *resultobj = 0;
11327 wxRegion *arg1 = (wxRegion *) 0 ;
11328 void *argp1 = 0 ;
11329 int res1 = 0 ;
11330 PyObject *swig_obj[1] ;
11331
11332 if (!args) SWIG_fail;
11333 swig_obj[0] = args;
11334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11335 if (!SWIG_IsOK(res1)) {
11336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
11337 }
11338 arg1 = reinterpret_cast< wxRegion * >(argp1);
11339 {
11340 PyThreadState* __tstate = wxPyBeginAllowThreads();
11341 (arg1)->Clear();
11342 wxPyEndAllowThreads(__tstate);
11343 if (PyErr_Occurred()) SWIG_fail;
11344 }
11345 resultobj = SWIG_Py_Void();
11346 return resultobj;
11347 fail:
11348 return NULL;
11349 }
11350
11351
11352 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11353 PyObject *resultobj = 0;
11354 wxRegion *arg1 = (wxRegion *) 0 ;
11355 int arg2 ;
11356 int arg3 ;
11357 bool result;
11358 void *argp1 = 0 ;
11359 int res1 = 0 ;
11360 int val2 ;
11361 int ecode2 = 0 ;
11362 int val3 ;
11363 int ecode3 = 0 ;
11364 PyObject * obj0 = 0 ;
11365 PyObject * obj1 = 0 ;
11366 PyObject * obj2 = 0 ;
11367 char * kwnames[] = {
11368 (char *) "self",(char *) "x",(char *) "y", NULL
11369 };
11370
11371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11373 if (!SWIG_IsOK(res1)) {
11374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
11375 }
11376 arg1 = reinterpret_cast< wxRegion * >(argp1);
11377 ecode2 = SWIG_AsVal_int(obj1, &val2);
11378 if (!SWIG_IsOK(ecode2)) {
11379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
11380 }
11381 arg2 = static_cast< int >(val2);
11382 ecode3 = SWIG_AsVal_int(obj2, &val3);
11383 if (!SWIG_IsOK(ecode3)) {
11384 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
11385 }
11386 arg3 = static_cast< int >(val3);
11387 {
11388 PyThreadState* __tstate = wxPyBeginAllowThreads();
11389 result = (bool)(arg1)->Offset(arg2,arg3);
11390 wxPyEndAllowThreads(__tstate);
11391 if (PyErr_Occurred()) SWIG_fail;
11392 }
11393 {
11394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11395 }
11396 return resultobj;
11397 fail:
11398 return NULL;
11399 }
11400
11401
11402 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11403 PyObject *resultobj = 0;
11404 wxRegion *arg1 = (wxRegion *) 0 ;
11405 int arg2 ;
11406 int arg3 ;
11407 wxRegionContain result;
11408 void *argp1 = 0 ;
11409 int res1 = 0 ;
11410 int val2 ;
11411 int ecode2 = 0 ;
11412 int val3 ;
11413 int ecode3 = 0 ;
11414 PyObject * obj0 = 0 ;
11415 PyObject * obj1 = 0 ;
11416 PyObject * obj2 = 0 ;
11417 char * kwnames[] = {
11418 (char *) "self",(char *) "x",(char *) "y", NULL
11419 };
11420
11421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11423 if (!SWIG_IsOK(res1)) {
11424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
11425 }
11426 arg1 = reinterpret_cast< wxRegion * >(argp1);
11427 ecode2 = SWIG_AsVal_int(obj1, &val2);
11428 if (!SWIG_IsOK(ecode2)) {
11429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
11430 }
11431 arg2 = static_cast< int >(val2);
11432 ecode3 = SWIG_AsVal_int(obj2, &val3);
11433 if (!SWIG_IsOK(ecode3)) {
11434 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
11435 }
11436 arg3 = static_cast< int >(val3);
11437 {
11438 PyThreadState* __tstate = wxPyBeginAllowThreads();
11439 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
11440 wxPyEndAllowThreads(__tstate);
11441 if (PyErr_Occurred()) SWIG_fail;
11442 }
11443 resultobj = SWIG_From_int(static_cast< int >(result));
11444 return resultobj;
11445 fail:
11446 return NULL;
11447 }
11448
11449
11450 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11451 PyObject *resultobj = 0;
11452 wxRegion *arg1 = (wxRegion *) 0 ;
11453 wxPoint *arg2 = 0 ;
11454 wxRegionContain result;
11455 void *argp1 = 0 ;
11456 int res1 = 0 ;
11457 wxPoint temp2 ;
11458 PyObject * obj0 = 0 ;
11459 PyObject * obj1 = 0 ;
11460 char * kwnames[] = {
11461 (char *) "self",(char *) "pt", NULL
11462 };
11463
11464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
11465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11466 if (!SWIG_IsOK(res1)) {
11467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
11468 }
11469 arg1 = reinterpret_cast< wxRegion * >(argp1);
11470 {
11471 arg2 = &temp2;
11472 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11473 }
11474 {
11475 PyThreadState* __tstate = wxPyBeginAllowThreads();
11476 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
11477 wxPyEndAllowThreads(__tstate);
11478 if (PyErr_Occurred()) SWIG_fail;
11479 }
11480 resultobj = SWIG_From_int(static_cast< int >(result));
11481 return resultobj;
11482 fail:
11483 return NULL;
11484 }
11485
11486
11487 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11488 PyObject *resultobj = 0;
11489 wxRegion *arg1 = (wxRegion *) 0 ;
11490 wxRect *arg2 = 0 ;
11491 wxRegionContain result;
11492 void *argp1 = 0 ;
11493 int res1 = 0 ;
11494 wxRect temp2 ;
11495 PyObject * obj0 = 0 ;
11496 PyObject * obj1 = 0 ;
11497 char * kwnames[] = {
11498 (char *) "self",(char *) "rect", NULL
11499 };
11500
11501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
11502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11503 if (!SWIG_IsOK(res1)) {
11504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11505 }
11506 arg1 = reinterpret_cast< wxRegion * >(argp1);
11507 {
11508 arg2 = &temp2;
11509 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11510 }
11511 {
11512 PyThreadState* __tstate = wxPyBeginAllowThreads();
11513 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
11514 wxPyEndAllowThreads(__tstate);
11515 if (PyErr_Occurred()) SWIG_fail;
11516 }
11517 resultobj = SWIG_From_int(static_cast< int >(result));
11518 return resultobj;
11519 fail:
11520 return NULL;
11521 }
11522
11523
11524 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11525 PyObject *resultobj = 0;
11526 wxRegion *arg1 = (wxRegion *) 0 ;
11527 int arg2 ;
11528 int arg3 ;
11529 int arg4 ;
11530 int arg5 ;
11531 wxRegionContain result;
11532 void *argp1 = 0 ;
11533 int res1 = 0 ;
11534 int val2 ;
11535 int ecode2 = 0 ;
11536 int val3 ;
11537 int ecode3 = 0 ;
11538 int val4 ;
11539 int ecode4 = 0 ;
11540 int val5 ;
11541 int ecode5 = 0 ;
11542 PyObject * obj0 = 0 ;
11543 PyObject * obj1 = 0 ;
11544 PyObject * obj2 = 0 ;
11545 PyObject * obj3 = 0 ;
11546 PyObject * obj4 = 0 ;
11547 char * kwnames[] = {
11548 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
11549 };
11550
11551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11553 if (!SWIG_IsOK(res1)) {
11554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
11555 }
11556 arg1 = reinterpret_cast< wxRegion * >(argp1);
11557 ecode2 = SWIG_AsVal_int(obj1, &val2);
11558 if (!SWIG_IsOK(ecode2)) {
11559 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
11560 }
11561 arg2 = static_cast< int >(val2);
11562 ecode3 = SWIG_AsVal_int(obj2, &val3);
11563 if (!SWIG_IsOK(ecode3)) {
11564 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
11565 }
11566 arg3 = static_cast< int >(val3);
11567 ecode4 = SWIG_AsVal_int(obj3, &val4);
11568 if (!SWIG_IsOK(ecode4)) {
11569 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
11570 }
11571 arg4 = static_cast< int >(val4);
11572 ecode5 = SWIG_AsVal_int(obj4, &val5);
11573 if (!SWIG_IsOK(ecode5)) {
11574 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
11575 }
11576 arg5 = static_cast< int >(val5);
11577 {
11578 PyThreadState* __tstate = wxPyBeginAllowThreads();
11579 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
11580 wxPyEndAllowThreads(__tstate);
11581 if (PyErr_Occurred()) SWIG_fail;
11582 }
11583 resultobj = SWIG_From_int(static_cast< int >(result));
11584 return resultobj;
11585 fail:
11586 return NULL;
11587 }
11588
11589
11590 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11591 PyObject *resultobj = 0;
11592 wxRegion *arg1 = (wxRegion *) 0 ;
11593 wxRect result;
11594 void *argp1 = 0 ;
11595 int res1 = 0 ;
11596 PyObject *swig_obj[1] ;
11597
11598 if (!args) SWIG_fail;
11599 swig_obj[0] = args;
11600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11601 if (!SWIG_IsOK(res1)) {
11602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
11603 }
11604 arg1 = reinterpret_cast< wxRegion * >(argp1);
11605 {
11606 PyThreadState* __tstate = wxPyBeginAllowThreads();
11607 result = (arg1)->GetBox();
11608 wxPyEndAllowThreads(__tstate);
11609 if (PyErr_Occurred()) SWIG_fail;
11610 }
11611 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11612 return resultobj;
11613 fail:
11614 return NULL;
11615 }
11616
11617
11618 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11619 PyObject *resultobj = 0;
11620 wxRegion *arg1 = (wxRegion *) 0 ;
11621 int arg2 ;
11622 int arg3 ;
11623 int arg4 ;
11624 int arg5 ;
11625 bool result;
11626 void *argp1 = 0 ;
11627 int res1 = 0 ;
11628 int val2 ;
11629 int ecode2 = 0 ;
11630 int val3 ;
11631 int ecode3 = 0 ;
11632 int val4 ;
11633 int ecode4 = 0 ;
11634 int val5 ;
11635 int ecode5 = 0 ;
11636 PyObject * obj0 = 0 ;
11637 PyObject * obj1 = 0 ;
11638 PyObject * obj2 = 0 ;
11639 PyObject * obj3 = 0 ;
11640 PyObject * obj4 = 0 ;
11641 char * kwnames[] = {
11642 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11643 };
11644
11645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11647 if (!SWIG_IsOK(res1)) {
11648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
11649 }
11650 arg1 = reinterpret_cast< wxRegion * >(argp1);
11651 ecode2 = SWIG_AsVal_int(obj1, &val2);
11652 if (!SWIG_IsOK(ecode2)) {
11653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
11654 }
11655 arg2 = static_cast< int >(val2);
11656 ecode3 = SWIG_AsVal_int(obj2, &val3);
11657 if (!SWIG_IsOK(ecode3)) {
11658 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
11659 }
11660 arg3 = static_cast< int >(val3);
11661 ecode4 = SWIG_AsVal_int(obj3, &val4);
11662 if (!SWIG_IsOK(ecode4)) {
11663 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
11664 }
11665 arg4 = static_cast< int >(val4);
11666 ecode5 = SWIG_AsVal_int(obj4, &val5);
11667 if (!SWIG_IsOK(ecode5)) {
11668 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
11669 }
11670 arg5 = static_cast< int >(val5);
11671 {
11672 PyThreadState* __tstate = wxPyBeginAllowThreads();
11673 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
11674 wxPyEndAllowThreads(__tstate);
11675 if (PyErr_Occurred()) SWIG_fail;
11676 }
11677 {
11678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11679 }
11680 return resultobj;
11681 fail:
11682 return NULL;
11683 }
11684
11685
11686 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11687 PyObject *resultobj = 0;
11688 wxRegion *arg1 = (wxRegion *) 0 ;
11689 wxRect *arg2 = 0 ;
11690 bool result;
11691 void *argp1 = 0 ;
11692 int res1 = 0 ;
11693 wxRect temp2 ;
11694 PyObject * obj0 = 0 ;
11695 PyObject * obj1 = 0 ;
11696 char * kwnames[] = {
11697 (char *) "self",(char *) "rect", NULL
11698 };
11699
11700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
11701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11702 if (!SWIG_IsOK(res1)) {
11703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11704 }
11705 arg1 = reinterpret_cast< wxRegion * >(argp1);
11706 {
11707 arg2 = &temp2;
11708 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11709 }
11710 {
11711 PyThreadState* __tstate = wxPyBeginAllowThreads();
11712 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
11713 wxPyEndAllowThreads(__tstate);
11714 if (PyErr_Occurred()) SWIG_fail;
11715 }
11716 {
11717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11718 }
11719 return resultobj;
11720 fail:
11721 return NULL;
11722 }
11723
11724
11725 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11726 PyObject *resultobj = 0;
11727 wxRegion *arg1 = (wxRegion *) 0 ;
11728 wxRegion *arg2 = 0 ;
11729 bool result;
11730 void *argp1 = 0 ;
11731 int res1 = 0 ;
11732 void *argp2 = 0 ;
11733 int res2 = 0 ;
11734 PyObject * obj0 = 0 ;
11735 PyObject * obj1 = 0 ;
11736 char * kwnames[] = {
11737 (char *) "self",(char *) "region", NULL
11738 };
11739
11740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11742 if (!SWIG_IsOK(res1)) {
11743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11744 }
11745 arg1 = reinterpret_cast< wxRegion * >(argp1);
11746 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11747 if (!SWIG_IsOK(res2)) {
11748 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11749 }
11750 if (!argp2) {
11751 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11752 }
11753 arg2 = reinterpret_cast< wxRegion * >(argp2);
11754 {
11755 PyThreadState* __tstate = wxPyBeginAllowThreads();
11756 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
11757 wxPyEndAllowThreads(__tstate);
11758 if (PyErr_Occurred()) SWIG_fail;
11759 }
11760 {
11761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11762 }
11763 return resultobj;
11764 fail:
11765 return NULL;
11766 }
11767
11768
11769 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11770 PyObject *resultobj = 0;
11771 wxRegion *arg1 = (wxRegion *) 0 ;
11772 bool result;
11773 void *argp1 = 0 ;
11774 int res1 = 0 ;
11775 PyObject *swig_obj[1] ;
11776
11777 if (!args) SWIG_fail;
11778 swig_obj[0] = args;
11779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11780 if (!SWIG_IsOK(res1)) {
11781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11782 }
11783 arg1 = reinterpret_cast< wxRegion * >(argp1);
11784 {
11785 PyThreadState* __tstate = wxPyBeginAllowThreads();
11786 result = (bool)(arg1)->IsEmpty();
11787 wxPyEndAllowThreads(__tstate);
11788 if (PyErr_Occurred()) SWIG_fail;
11789 }
11790 {
11791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11792 }
11793 return resultobj;
11794 fail:
11795 return NULL;
11796 }
11797
11798
11799 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11800 PyObject *resultobj = 0;
11801 wxRegion *arg1 = (wxRegion *) 0 ;
11802 wxRegion *arg2 = 0 ;
11803 bool result;
11804 void *argp1 = 0 ;
11805 int res1 = 0 ;
11806 void *argp2 = 0 ;
11807 int res2 = 0 ;
11808 PyObject * obj0 = 0 ;
11809 PyObject * obj1 = 0 ;
11810 char * kwnames[] = {
11811 (char *) "self",(char *) "region", NULL
11812 };
11813
11814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11816 if (!SWIG_IsOK(res1)) {
11817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11818 }
11819 arg1 = reinterpret_cast< wxRegion * >(argp1);
11820 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11821 if (!SWIG_IsOK(res2)) {
11822 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11823 }
11824 if (!argp2) {
11825 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11826 }
11827 arg2 = reinterpret_cast< wxRegion * >(argp2);
11828 {
11829 PyThreadState* __tstate = wxPyBeginAllowThreads();
11830 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11831 wxPyEndAllowThreads(__tstate);
11832 if (PyErr_Occurred()) SWIG_fail;
11833 }
11834 {
11835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11836 }
11837 return resultobj;
11838 fail:
11839 return NULL;
11840 }
11841
11842
11843 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11844 PyObject *resultobj = 0;
11845 wxRegion *arg1 = (wxRegion *) 0 ;
11846 int arg2 ;
11847 int arg3 ;
11848 int arg4 ;
11849 int arg5 ;
11850 bool result;
11851 void *argp1 = 0 ;
11852 int res1 = 0 ;
11853 int val2 ;
11854 int ecode2 = 0 ;
11855 int val3 ;
11856 int ecode3 = 0 ;
11857 int val4 ;
11858 int ecode4 = 0 ;
11859 int val5 ;
11860 int ecode5 = 0 ;
11861 PyObject * obj0 = 0 ;
11862 PyObject * obj1 = 0 ;
11863 PyObject * obj2 = 0 ;
11864 PyObject * obj3 = 0 ;
11865 PyObject * obj4 = 0 ;
11866 char * kwnames[] = {
11867 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11868 };
11869
11870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11872 if (!SWIG_IsOK(res1)) {
11873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11874 }
11875 arg1 = reinterpret_cast< wxRegion * >(argp1);
11876 ecode2 = SWIG_AsVal_int(obj1, &val2);
11877 if (!SWIG_IsOK(ecode2)) {
11878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11879 }
11880 arg2 = static_cast< int >(val2);
11881 ecode3 = SWIG_AsVal_int(obj2, &val3);
11882 if (!SWIG_IsOK(ecode3)) {
11883 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11884 }
11885 arg3 = static_cast< int >(val3);
11886 ecode4 = SWIG_AsVal_int(obj3, &val4);
11887 if (!SWIG_IsOK(ecode4)) {
11888 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11889 }
11890 arg4 = static_cast< int >(val4);
11891 ecode5 = SWIG_AsVal_int(obj4, &val5);
11892 if (!SWIG_IsOK(ecode5)) {
11893 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11894 }
11895 arg5 = static_cast< int >(val5);
11896 {
11897 PyThreadState* __tstate = wxPyBeginAllowThreads();
11898 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11899 wxPyEndAllowThreads(__tstate);
11900 if (PyErr_Occurred()) SWIG_fail;
11901 }
11902 {
11903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11904 }
11905 return resultobj;
11906 fail:
11907 return NULL;
11908 }
11909
11910
11911 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11912 PyObject *resultobj = 0;
11913 wxRegion *arg1 = (wxRegion *) 0 ;
11914 wxRect *arg2 = 0 ;
11915 bool result;
11916 void *argp1 = 0 ;
11917 int res1 = 0 ;
11918 wxRect temp2 ;
11919 PyObject * obj0 = 0 ;
11920 PyObject * obj1 = 0 ;
11921 char * kwnames[] = {
11922 (char *) "self",(char *) "rect", NULL
11923 };
11924
11925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11927 if (!SWIG_IsOK(res1)) {
11928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11929 }
11930 arg1 = reinterpret_cast< wxRegion * >(argp1);
11931 {
11932 arg2 = &temp2;
11933 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11934 }
11935 {
11936 PyThreadState* __tstate = wxPyBeginAllowThreads();
11937 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11938 wxPyEndAllowThreads(__tstate);
11939 if (PyErr_Occurred()) SWIG_fail;
11940 }
11941 {
11942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11943 }
11944 return resultobj;
11945 fail:
11946 return NULL;
11947 }
11948
11949
11950 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11951 PyObject *resultobj = 0;
11952 wxRegion *arg1 = (wxRegion *) 0 ;
11953 wxRegion *arg2 = 0 ;
11954 bool result;
11955 void *argp1 = 0 ;
11956 int res1 = 0 ;
11957 void *argp2 = 0 ;
11958 int res2 = 0 ;
11959 PyObject * obj0 = 0 ;
11960 PyObject * obj1 = 0 ;
11961 char * kwnames[] = {
11962 (char *) "self",(char *) "region", NULL
11963 };
11964
11965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11967 if (!SWIG_IsOK(res1)) {
11968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11969 }
11970 arg1 = reinterpret_cast< wxRegion * >(argp1);
11971 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11972 if (!SWIG_IsOK(res2)) {
11973 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11974 }
11975 if (!argp2) {
11976 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11977 }
11978 arg2 = reinterpret_cast< wxRegion * >(argp2);
11979 {
11980 PyThreadState* __tstate = wxPyBeginAllowThreads();
11981 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11982 wxPyEndAllowThreads(__tstate);
11983 if (PyErr_Occurred()) SWIG_fail;
11984 }
11985 {
11986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11987 }
11988 return resultobj;
11989 fail:
11990 return NULL;
11991 }
11992
11993
11994 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11995 PyObject *resultobj = 0;
11996 wxRegion *arg1 = (wxRegion *) 0 ;
11997 int arg2 ;
11998 int arg3 ;
11999 int arg4 ;
12000 int arg5 ;
12001 bool result;
12002 void *argp1 = 0 ;
12003 int res1 = 0 ;
12004 int val2 ;
12005 int ecode2 = 0 ;
12006 int val3 ;
12007 int ecode3 = 0 ;
12008 int val4 ;
12009 int ecode4 = 0 ;
12010 int val5 ;
12011 int ecode5 = 0 ;
12012 PyObject * obj0 = 0 ;
12013 PyObject * obj1 = 0 ;
12014 PyObject * obj2 = 0 ;
12015 PyObject * obj3 = 0 ;
12016 PyObject * obj4 = 0 ;
12017 char * kwnames[] = {
12018 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12019 };
12020
12021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
12022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12023 if (!SWIG_IsOK(res1)) {
12024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
12025 }
12026 arg1 = reinterpret_cast< wxRegion * >(argp1);
12027 ecode2 = SWIG_AsVal_int(obj1, &val2);
12028 if (!SWIG_IsOK(ecode2)) {
12029 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
12030 }
12031 arg2 = static_cast< int >(val2);
12032 ecode3 = SWIG_AsVal_int(obj2, &val3);
12033 if (!SWIG_IsOK(ecode3)) {
12034 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
12035 }
12036 arg3 = static_cast< int >(val3);
12037 ecode4 = SWIG_AsVal_int(obj3, &val4);
12038 if (!SWIG_IsOK(ecode4)) {
12039 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
12040 }
12041 arg4 = static_cast< int >(val4);
12042 ecode5 = SWIG_AsVal_int(obj4, &val5);
12043 if (!SWIG_IsOK(ecode5)) {
12044 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
12045 }
12046 arg5 = static_cast< int >(val5);
12047 {
12048 PyThreadState* __tstate = wxPyBeginAllowThreads();
12049 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
12050 wxPyEndAllowThreads(__tstate);
12051 if (PyErr_Occurred()) SWIG_fail;
12052 }
12053 {
12054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12055 }
12056 return resultobj;
12057 fail:
12058 return NULL;
12059 }
12060
12061
12062 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12063 PyObject *resultobj = 0;
12064 wxRegion *arg1 = (wxRegion *) 0 ;
12065 wxRect *arg2 = 0 ;
12066 bool result;
12067 void *argp1 = 0 ;
12068 int res1 = 0 ;
12069 wxRect temp2 ;
12070 PyObject * obj0 = 0 ;
12071 PyObject * obj1 = 0 ;
12072 char * kwnames[] = {
12073 (char *) "self",(char *) "rect", NULL
12074 };
12075
12076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
12077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12078 if (!SWIG_IsOK(res1)) {
12079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
12080 }
12081 arg1 = reinterpret_cast< wxRegion * >(argp1);
12082 {
12083 arg2 = &temp2;
12084 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12085 }
12086 {
12087 PyThreadState* __tstate = wxPyBeginAllowThreads();
12088 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
12089 wxPyEndAllowThreads(__tstate);
12090 if (PyErr_Occurred()) SWIG_fail;
12091 }
12092 {
12093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12094 }
12095 return resultobj;
12096 fail:
12097 return NULL;
12098 }
12099
12100
12101 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12102 PyObject *resultobj = 0;
12103 wxRegion *arg1 = (wxRegion *) 0 ;
12104 wxRegion *arg2 = 0 ;
12105 bool result;
12106 void *argp1 = 0 ;
12107 int res1 = 0 ;
12108 void *argp2 = 0 ;
12109 int res2 = 0 ;
12110 PyObject * obj0 = 0 ;
12111 PyObject * obj1 = 0 ;
12112 char * kwnames[] = {
12113 (char *) "self",(char *) "region", NULL
12114 };
12115
12116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
12117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12118 if (!SWIG_IsOK(res1)) {
12119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
12120 }
12121 arg1 = reinterpret_cast< wxRegion * >(argp1);
12122 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
12123 if (!SWIG_IsOK(res2)) {
12124 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12125 }
12126 if (!argp2) {
12127 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12128 }
12129 arg2 = reinterpret_cast< wxRegion * >(argp2);
12130 {
12131 PyThreadState* __tstate = wxPyBeginAllowThreads();
12132 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
12133 wxPyEndAllowThreads(__tstate);
12134 if (PyErr_Occurred()) SWIG_fail;
12135 }
12136 {
12137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12138 }
12139 return resultobj;
12140 fail:
12141 return NULL;
12142 }
12143
12144
12145 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12146 PyObject *resultobj = 0;
12147 wxRegion *arg1 = (wxRegion *) 0 ;
12148 int arg2 ;
12149 int arg3 ;
12150 int arg4 ;
12151 int arg5 ;
12152 bool result;
12153 void *argp1 = 0 ;
12154 int res1 = 0 ;
12155 int val2 ;
12156 int ecode2 = 0 ;
12157 int val3 ;
12158 int ecode3 = 0 ;
12159 int val4 ;
12160 int ecode4 = 0 ;
12161 int val5 ;
12162 int ecode5 = 0 ;
12163 PyObject * obj0 = 0 ;
12164 PyObject * obj1 = 0 ;
12165 PyObject * obj2 = 0 ;
12166 PyObject * obj3 = 0 ;
12167 PyObject * obj4 = 0 ;
12168 char * kwnames[] = {
12169 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12170 };
12171
12172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
12173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12174 if (!SWIG_IsOK(res1)) {
12175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
12176 }
12177 arg1 = reinterpret_cast< wxRegion * >(argp1);
12178 ecode2 = SWIG_AsVal_int(obj1, &val2);
12179 if (!SWIG_IsOK(ecode2)) {
12180 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
12181 }
12182 arg2 = static_cast< int >(val2);
12183 ecode3 = SWIG_AsVal_int(obj2, &val3);
12184 if (!SWIG_IsOK(ecode3)) {
12185 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
12186 }
12187 arg3 = static_cast< int >(val3);
12188 ecode4 = SWIG_AsVal_int(obj3, &val4);
12189 if (!SWIG_IsOK(ecode4)) {
12190 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
12191 }
12192 arg4 = static_cast< int >(val4);
12193 ecode5 = SWIG_AsVal_int(obj4, &val5);
12194 if (!SWIG_IsOK(ecode5)) {
12195 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
12196 }
12197 arg5 = static_cast< int >(val5);
12198 {
12199 PyThreadState* __tstate = wxPyBeginAllowThreads();
12200 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
12201 wxPyEndAllowThreads(__tstate);
12202 if (PyErr_Occurred()) SWIG_fail;
12203 }
12204 {
12205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12206 }
12207 return resultobj;
12208 fail:
12209 return NULL;
12210 }
12211
12212
12213 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12214 PyObject *resultobj = 0;
12215 wxRegion *arg1 = (wxRegion *) 0 ;
12216 wxRect *arg2 = 0 ;
12217 bool result;
12218 void *argp1 = 0 ;
12219 int res1 = 0 ;
12220 wxRect temp2 ;
12221 PyObject * obj0 = 0 ;
12222 PyObject * obj1 = 0 ;
12223 char * kwnames[] = {
12224 (char *) "self",(char *) "rect", NULL
12225 };
12226
12227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
12228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12229 if (!SWIG_IsOK(res1)) {
12230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
12231 }
12232 arg1 = reinterpret_cast< wxRegion * >(argp1);
12233 {
12234 arg2 = &temp2;
12235 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12236 }
12237 {
12238 PyThreadState* __tstate = wxPyBeginAllowThreads();
12239 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
12240 wxPyEndAllowThreads(__tstate);
12241 if (PyErr_Occurred()) SWIG_fail;
12242 }
12243 {
12244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12245 }
12246 return resultobj;
12247 fail:
12248 return NULL;
12249 }
12250
12251
12252 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12253 PyObject *resultobj = 0;
12254 wxRegion *arg1 = (wxRegion *) 0 ;
12255 wxRegion *arg2 = 0 ;
12256 bool result;
12257 void *argp1 = 0 ;
12258 int res1 = 0 ;
12259 void *argp2 = 0 ;
12260 int res2 = 0 ;
12261 PyObject * obj0 = 0 ;
12262 PyObject * obj1 = 0 ;
12263 char * kwnames[] = {
12264 (char *) "self",(char *) "region", NULL
12265 };
12266
12267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
12268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12269 if (!SWIG_IsOK(res1)) {
12270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
12271 }
12272 arg1 = reinterpret_cast< wxRegion * >(argp1);
12273 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
12274 if (!SWIG_IsOK(res2)) {
12275 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12276 }
12277 if (!argp2) {
12278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
12279 }
12280 arg2 = reinterpret_cast< wxRegion * >(argp2);
12281 {
12282 PyThreadState* __tstate = wxPyBeginAllowThreads();
12283 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
12284 wxPyEndAllowThreads(__tstate);
12285 if (PyErr_Occurred()) SWIG_fail;
12286 }
12287 {
12288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12289 }
12290 return resultobj;
12291 fail:
12292 return NULL;
12293 }
12294
12295
12296 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12297 PyObject *resultobj = 0;
12298 wxRegion *arg1 = (wxRegion *) 0 ;
12299 SwigValueWrapper<wxBitmap > result;
12300 void *argp1 = 0 ;
12301 int res1 = 0 ;
12302 PyObject *swig_obj[1] ;
12303
12304 if (!args) SWIG_fail;
12305 swig_obj[0] = args;
12306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12307 if (!SWIG_IsOK(res1)) {
12308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
12309 }
12310 arg1 = reinterpret_cast< wxRegion * >(argp1);
12311 {
12312 PyThreadState* __tstate = wxPyBeginAllowThreads();
12313 result = (arg1)->ConvertToBitmap();
12314 wxPyEndAllowThreads(__tstate);
12315 if (PyErr_Occurred()) SWIG_fail;
12316 }
12317 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
12318 return resultobj;
12319 fail:
12320 return NULL;
12321 }
12322
12323
12324 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12325 PyObject *resultobj = 0;
12326 wxRegion *arg1 = (wxRegion *) 0 ;
12327 wxBitmap *arg2 = 0 ;
12328 bool result;
12329 void *argp1 = 0 ;
12330 int res1 = 0 ;
12331 void *argp2 = 0 ;
12332 int res2 = 0 ;
12333 PyObject * obj0 = 0 ;
12334 PyObject * obj1 = 0 ;
12335 char * kwnames[] = {
12336 (char *) "self",(char *) "bmp", NULL
12337 };
12338
12339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
12340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12341 if (!SWIG_IsOK(res1)) {
12342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
12343 }
12344 arg1 = reinterpret_cast< wxRegion * >(argp1);
12345 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12346 if (!SWIG_IsOK(res2)) {
12347 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12348 }
12349 if (!argp2) {
12350 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12351 }
12352 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12353 {
12354 PyThreadState* __tstate = wxPyBeginAllowThreads();
12355 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
12356 wxPyEndAllowThreads(__tstate);
12357 if (PyErr_Occurred()) SWIG_fail;
12358 }
12359 {
12360 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12361 }
12362 return resultobj;
12363 fail:
12364 return NULL;
12365 }
12366
12367
12368 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12369 PyObject *resultobj = 0;
12370 wxRegion *arg1 = (wxRegion *) 0 ;
12371 wxBitmap *arg2 = 0 ;
12372 wxColour *arg3 = 0 ;
12373 int arg4 = (int) 0 ;
12374 bool result;
12375 void *argp1 = 0 ;
12376 int res1 = 0 ;
12377 void *argp2 = 0 ;
12378 int res2 = 0 ;
12379 wxColour temp3 ;
12380 int val4 ;
12381 int ecode4 = 0 ;
12382 PyObject * obj0 = 0 ;
12383 PyObject * obj1 = 0 ;
12384 PyObject * obj2 = 0 ;
12385 PyObject * obj3 = 0 ;
12386 char * kwnames[] = {
12387 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
12388 };
12389
12390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
12392 if (!SWIG_IsOK(res1)) {
12393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
12394 }
12395 arg1 = reinterpret_cast< wxRegion * >(argp1);
12396 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
12397 if (!SWIG_IsOK(res2)) {
12398 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12399 }
12400 if (!argp2) {
12401 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
12402 }
12403 arg2 = reinterpret_cast< wxBitmap * >(argp2);
12404 {
12405 arg3 = &temp3;
12406 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
12407 }
12408 if (obj3) {
12409 ecode4 = SWIG_AsVal_int(obj3, &val4);
12410 if (!SWIG_IsOK(ecode4)) {
12411 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
12412 }
12413 arg4 = static_cast< int >(val4);
12414 }
12415 {
12416 PyThreadState* __tstate = wxPyBeginAllowThreads();
12417 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
12418 wxPyEndAllowThreads(__tstate);
12419 if (PyErr_Occurred()) SWIG_fail;
12420 }
12421 {
12422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12423 }
12424 return resultobj;
12425 fail:
12426 return NULL;
12427 }
12428
12429
12430 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12431 PyObject *obj;
12432 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12433 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
12434 return SWIG_Py_Void();
12435 }
12436
12437 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12438 return SWIG_Python_InitShadowInstance(args);
12439 }
12440
12441 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12442 PyObject *resultobj = 0;
12443 wxRegion *arg1 = 0 ;
12444 wxRegionIterator *result = 0 ;
12445 void *argp1 = 0 ;
12446 int res1 = 0 ;
12447 PyObject * obj0 = 0 ;
12448 char * kwnames[] = {
12449 (char *) "region", NULL
12450 };
12451
12452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
12453 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
12454 if (!SWIG_IsOK(res1)) {
12455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12456 }
12457 if (!argp1) {
12458 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
12459 }
12460 arg1 = reinterpret_cast< wxRegion * >(argp1);
12461 {
12462 if (!wxPyCheckForApp()) SWIG_fail;
12463 PyThreadState* __tstate = wxPyBeginAllowThreads();
12464 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
12465 wxPyEndAllowThreads(__tstate);
12466 if (PyErr_Occurred()) SWIG_fail;
12467 }
12468 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
12469 return resultobj;
12470 fail:
12471 return NULL;
12472 }
12473
12474
12475 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12476 PyObject *resultobj = 0;
12477 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12478 void *argp1 = 0 ;
12479 int res1 = 0 ;
12480 PyObject *swig_obj[1] ;
12481
12482 if (!args) SWIG_fail;
12483 swig_obj[0] = args;
12484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
12485 if (!SWIG_IsOK(res1)) {
12486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12487 }
12488 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12489 {
12490 PyThreadState* __tstate = wxPyBeginAllowThreads();
12491 delete arg1;
12492
12493 wxPyEndAllowThreads(__tstate);
12494 if (PyErr_Occurred()) SWIG_fail;
12495 }
12496 resultobj = SWIG_Py_Void();
12497 return resultobj;
12498 fail:
12499 return NULL;
12500 }
12501
12502
12503 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12504 PyObject *resultobj = 0;
12505 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12506 int result;
12507 void *argp1 = 0 ;
12508 int res1 = 0 ;
12509 PyObject *swig_obj[1] ;
12510
12511 if (!args) SWIG_fail;
12512 swig_obj[0] = args;
12513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12514 if (!SWIG_IsOK(res1)) {
12515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12516 }
12517 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12518 {
12519 PyThreadState* __tstate = wxPyBeginAllowThreads();
12520 result = (int)(arg1)->GetX();
12521 wxPyEndAllowThreads(__tstate);
12522 if (PyErr_Occurred()) SWIG_fail;
12523 }
12524 resultobj = SWIG_From_int(static_cast< int >(result));
12525 return resultobj;
12526 fail:
12527 return NULL;
12528 }
12529
12530
12531 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12532 PyObject *resultobj = 0;
12533 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12534 int result;
12535 void *argp1 = 0 ;
12536 int res1 = 0 ;
12537 PyObject *swig_obj[1] ;
12538
12539 if (!args) SWIG_fail;
12540 swig_obj[0] = args;
12541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12542 if (!SWIG_IsOK(res1)) {
12543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12544 }
12545 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12546 {
12547 PyThreadState* __tstate = wxPyBeginAllowThreads();
12548 result = (int)(arg1)->GetY();
12549 wxPyEndAllowThreads(__tstate);
12550 if (PyErr_Occurred()) SWIG_fail;
12551 }
12552 resultobj = SWIG_From_int(static_cast< int >(result));
12553 return resultobj;
12554 fail:
12555 return NULL;
12556 }
12557
12558
12559 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12560 PyObject *resultobj = 0;
12561 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12562 int result;
12563 void *argp1 = 0 ;
12564 int res1 = 0 ;
12565 PyObject *swig_obj[1] ;
12566
12567 if (!args) SWIG_fail;
12568 swig_obj[0] = args;
12569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12570 if (!SWIG_IsOK(res1)) {
12571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12572 }
12573 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12574 {
12575 PyThreadState* __tstate = wxPyBeginAllowThreads();
12576 result = (int)(arg1)->GetW();
12577 wxPyEndAllowThreads(__tstate);
12578 if (PyErr_Occurred()) SWIG_fail;
12579 }
12580 resultobj = SWIG_From_int(static_cast< int >(result));
12581 return resultobj;
12582 fail:
12583 return NULL;
12584 }
12585
12586
12587 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12588 PyObject *resultobj = 0;
12589 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12590 int result;
12591 void *argp1 = 0 ;
12592 int res1 = 0 ;
12593 PyObject *swig_obj[1] ;
12594
12595 if (!args) SWIG_fail;
12596 swig_obj[0] = args;
12597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12598 if (!SWIG_IsOK(res1)) {
12599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12600 }
12601 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12602 {
12603 PyThreadState* __tstate = wxPyBeginAllowThreads();
12604 result = (int)(arg1)->GetWidth();
12605 wxPyEndAllowThreads(__tstate);
12606 if (PyErr_Occurred()) SWIG_fail;
12607 }
12608 resultobj = SWIG_From_int(static_cast< int >(result));
12609 return resultobj;
12610 fail:
12611 return NULL;
12612 }
12613
12614
12615 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12616 PyObject *resultobj = 0;
12617 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12618 int result;
12619 void *argp1 = 0 ;
12620 int res1 = 0 ;
12621 PyObject *swig_obj[1] ;
12622
12623 if (!args) SWIG_fail;
12624 swig_obj[0] = args;
12625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12626 if (!SWIG_IsOK(res1)) {
12627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12628 }
12629 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12630 {
12631 PyThreadState* __tstate = wxPyBeginAllowThreads();
12632 result = (int)(arg1)->GetH();
12633 wxPyEndAllowThreads(__tstate);
12634 if (PyErr_Occurred()) SWIG_fail;
12635 }
12636 resultobj = SWIG_From_int(static_cast< int >(result));
12637 return resultobj;
12638 fail:
12639 return NULL;
12640 }
12641
12642
12643 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12644 PyObject *resultobj = 0;
12645 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12646 int result;
12647 void *argp1 = 0 ;
12648 int res1 = 0 ;
12649 PyObject *swig_obj[1] ;
12650
12651 if (!args) SWIG_fail;
12652 swig_obj[0] = args;
12653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12654 if (!SWIG_IsOK(res1)) {
12655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12656 }
12657 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12658 {
12659 PyThreadState* __tstate = wxPyBeginAllowThreads();
12660 result = (int)(arg1)->GetHeight();
12661 wxPyEndAllowThreads(__tstate);
12662 if (PyErr_Occurred()) SWIG_fail;
12663 }
12664 resultobj = SWIG_From_int(static_cast< int >(result));
12665 return resultobj;
12666 fail:
12667 return NULL;
12668 }
12669
12670
12671 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12672 PyObject *resultobj = 0;
12673 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12674 wxRect result;
12675 void *argp1 = 0 ;
12676 int res1 = 0 ;
12677 PyObject *swig_obj[1] ;
12678
12679 if (!args) SWIG_fail;
12680 swig_obj[0] = args;
12681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12682 if (!SWIG_IsOK(res1)) {
12683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12684 }
12685 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12686 {
12687 PyThreadState* __tstate = wxPyBeginAllowThreads();
12688 result = (arg1)->GetRect();
12689 wxPyEndAllowThreads(__tstate);
12690 if (PyErr_Occurred()) SWIG_fail;
12691 }
12692 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
12693 return resultobj;
12694 fail:
12695 return NULL;
12696 }
12697
12698
12699 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12700 PyObject *resultobj = 0;
12701 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12702 bool result;
12703 void *argp1 = 0 ;
12704 int res1 = 0 ;
12705 PyObject *swig_obj[1] ;
12706
12707 if (!args) SWIG_fail;
12708 swig_obj[0] = args;
12709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12710 if (!SWIG_IsOK(res1)) {
12711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12712 }
12713 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12714 {
12715 PyThreadState* __tstate = wxPyBeginAllowThreads();
12716 result = (bool)(arg1)->HaveRects();
12717 wxPyEndAllowThreads(__tstate);
12718 if (PyErr_Occurred()) SWIG_fail;
12719 }
12720 {
12721 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12722 }
12723 return resultobj;
12724 fail:
12725 return NULL;
12726 }
12727
12728
12729 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12730 PyObject *resultobj = 0;
12731 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12732 void *argp1 = 0 ;
12733 int res1 = 0 ;
12734 PyObject *swig_obj[1] ;
12735
12736 if (!args) SWIG_fail;
12737 swig_obj[0] = args;
12738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12739 if (!SWIG_IsOK(res1)) {
12740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12741 }
12742 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12743 {
12744 PyThreadState* __tstate = wxPyBeginAllowThreads();
12745 (arg1)->Reset();
12746 wxPyEndAllowThreads(__tstate);
12747 if (PyErr_Occurred()) SWIG_fail;
12748 }
12749 resultobj = SWIG_Py_Void();
12750 return resultobj;
12751 fail:
12752 return NULL;
12753 }
12754
12755
12756 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12757 PyObject *resultobj = 0;
12758 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12759 void *argp1 = 0 ;
12760 int res1 = 0 ;
12761 PyObject *swig_obj[1] ;
12762
12763 if (!args) SWIG_fail;
12764 swig_obj[0] = args;
12765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12766 if (!SWIG_IsOK(res1)) {
12767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12768 }
12769 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12770 {
12771 PyThreadState* __tstate = wxPyBeginAllowThreads();
12772 wxRegionIterator_Next(arg1);
12773 wxPyEndAllowThreads(__tstate);
12774 if (PyErr_Occurred()) SWIG_fail;
12775 }
12776 resultobj = SWIG_Py_Void();
12777 return resultobj;
12778 fail:
12779 return NULL;
12780 }
12781
12782
12783 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12784 PyObject *resultobj = 0;
12785 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12786 bool result;
12787 void *argp1 = 0 ;
12788 int res1 = 0 ;
12789 PyObject *swig_obj[1] ;
12790
12791 if (!args) SWIG_fail;
12792 swig_obj[0] = args;
12793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12794 if (!SWIG_IsOK(res1)) {
12795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12796 }
12797 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12798 {
12799 PyThreadState* __tstate = wxPyBeginAllowThreads();
12800 result = (bool)wxRegionIterator___nonzero__(arg1);
12801 wxPyEndAllowThreads(__tstate);
12802 if (PyErr_Occurred()) SWIG_fail;
12803 }
12804 {
12805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12806 }
12807 return resultobj;
12808 fail:
12809 return NULL;
12810 }
12811
12812
12813 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12814 PyObject *obj;
12815 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12816 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12817 return SWIG_Py_Void();
12818 }
12819
12820 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12821 return SWIG_Python_InitShadowInstance(args);
12822 }
12823
12824 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12825 PyObject *resultobj = 0;
12826 wxNativeFontInfo *result = 0 ;
12827
12828 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12829 {
12830 PyThreadState* __tstate = wxPyBeginAllowThreads();
12831 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12832 wxPyEndAllowThreads(__tstate);
12833 if (PyErr_Occurred()) SWIG_fail;
12834 }
12835 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12836 return resultobj;
12837 fail:
12838 return NULL;
12839 }
12840
12841
12842 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12843 PyObject *resultobj = 0;
12844 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12845 void *argp1 = 0 ;
12846 int res1 = 0 ;
12847 PyObject *swig_obj[1] ;
12848
12849 if (!args) SWIG_fail;
12850 swig_obj[0] = args;
12851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12852 if (!SWIG_IsOK(res1)) {
12853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12854 }
12855 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12856 {
12857 PyThreadState* __tstate = wxPyBeginAllowThreads();
12858 delete arg1;
12859
12860 wxPyEndAllowThreads(__tstate);
12861 if (PyErr_Occurred()) SWIG_fail;
12862 }
12863 resultobj = SWIG_Py_Void();
12864 return resultobj;
12865 fail:
12866 return NULL;
12867 }
12868
12869
12870 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12871 PyObject *resultobj = 0;
12872 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12873 void *argp1 = 0 ;
12874 int res1 = 0 ;
12875 PyObject *swig_obj[1] ;
12876
12877 if (!args) SWIG_fail;
12878 swig_obj[0] = args;
12879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12880 if (!SWIG_IsOK(res1)) {
12881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12882 }
12883 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12884 {
12885 PyThreadState* __tstate = wxPyBeginAllowThreads();
12886 (arg1)->Init();
12887 wxPyEndAllowThreads(__tstate);
12888 if (PyErr_Occurred()) SWIG_fail;
12889 }
12890 resultobj = SWIG_Py_Void();
12891 return resultobj;
12892 fail:
12893 return NULL;
12894 }
12895
12896
12897 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12898 PyObject *resultobj = 0;
12899 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12900 wxFont *arg2 = 0 ;
12901 void *argp1 = 0 ;
12902 int res1 = 0 ;
12903 void *argp2 = 0 ;
12904 int res2 = 0 ;
12905 PyObject * obj0 = 0 ;
12906 PyObject * obj1 = 0 ;
12907 char * kwnames[] = {
12908 (char *) "self",(char *) "font", NULL
12909 };
12910
12911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12913 if (!SWIG_IsOK(res1)) {
12914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12915 }
12916 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12917 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12918 if (!SWIG_IsOK(res2)) {
12919 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12920 }
12921 if (!argp2) {
12922 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12923 }
12924 arg2 = reinterpret_cast< wxFont * >(argp2);
12925 {
12926 PyThreadState* __tstate = wxPyBeginAllowThreads();
12927 (arg1)->InitFromFont((wxFont const &)*arg2);
12928 wxPyEndAllowThreads(__tstate);
12929 if (PyErr_Occurred()) SWIG_fail;
12930 }
12931 resultobj = SWIG_Py_Void();
12932 return resultobj;
12933 fail:
12934 return NULL;
12935 }
12936
12937
12938 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12939 PyObject *resultobj = 0;
12940 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12941 int result;
12942 void *argp1 = 0 ;
12943 int res1 = 0 ;
12944 PyObject *swig_obj[1] ;
12945
12946 if (!args) SWIG_fail;
12947 swig_obj[0] = args;
12948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12949 if (!SWIG_IsOK(res1)) {
12950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12951 }
12952 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12953 {
12954 PyThreadState* __tstate = wxPyBeginAllowThreads();
12955 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12956 wxPyEndAllowThreads(__tstate);
12957 if (PyErr_Occurred()) SWIG_fail;
12958 }
12959 resultobj = SWIG_From_int(static_cast< int >(result));
12960 return resultobj;
12961 fail:
12962 return NULL;
12963 }
12964
12965
12966 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12967 PyObject *resultobj = 0;
12968 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12969 wxSize result;
12970 void *argp1 = 0 ;
12971 int res1 = 0 ;
12972 PyObject *swig_obj[1] ;
12973
12974 if (!args) SWIG_fail;
12975 swig_obj[0] = args;
12976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12977 if (!SWIG_IsOK(res1)) {
12978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12979 }
12980 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12981 {
12982 PyThreadState* __tstate = wxPyBeginAllowThreads();
12983 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
12984 wxPyEndAllowThreads(__tstate);
12985 if (PyErr_Occurred()) SWIG_fail;
12986 }
12987 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12988 return resultobj;
12989 fail:
12990 return NULL;
12991 }
12992
12993
12994 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12995 PyObject *resultobj = 0;
12996 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12997 wxFontStyle result;
12998 void *argp1 = 0 ;
12999 int res1 = 0 ;
13000 PyObject *swig_obj[1] ;
13001
13002 if (!args) SWIG_fail;
13003 swig_obj[0] = args;
13004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13005 if (!SWIG_IsOK(res1)) {
13006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13007 }
13008 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13009 {
13010 PyThreadState* __tstate = wxPyBeginAllowThreads();
13011 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
13012 wxPyEndAllowThreads(__tstate);
13013 if (PyErr_Occurred()) SWIG_fail;
13014 }
13015 resultobj = SWIG_From_int(static_cast< int >(result));
13016 return resultobj;
13017 fail:
13018 return NULL;
13019 }
13020
13021
13022 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13023 PyObject *resultobj = 0;
13024 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13025 wxFontWeight result;
13026 void *argp1 = 0 ;
13027 int res1 = 0 ;
13028 PyObject *swig_obj[1] ;
13029
13030 if (!args) SWIG_fail;
13031 swig_obj[0] = args;
13032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13033 if (!SWIG_IsOK(res1)) {
13034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13035 }
13036 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13037 {
13038 PyThreadState* __tstate = wxPyBeginAllowThreads();
13039 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
13040 wxPyEndAllowThreads(__tstate);
13041 if (PyErr_Occurred()) SWIG_fail;
13042 }
13043 resultobj = SWIG_From_int(static_cast< int >(result));
13044 return resultobj;
13045 fail:
13046 return NULL;
13047 }
13048
13049
13050 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13051 PyObject *resultobj = 0;
13052 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13053 bool result;
13054 void *argp1 = 0 ;
13055 int res1 = 0 ;
13056 PyObject *swig_obj[1] ;
13057
13058 if (!args) SWIG_fail;
13059 swig_obj[0] = args;
13060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13061 if (!SWIG_IsOK(res1)) {
13062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13063 }
13064 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13065 {
13066 PyThreadState* __tstate = wxPyBeginAllowThreads();
13067 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
13068 wxPyEndAllowThreads(__tstate);
13069 if (PyErr_Occurred()) SWIG_fail;
13070 }
13071 {
13072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13073 }
13074 return resultobj;
13075 fail:
13076 return NULL;
13077 }
13078
13079
13080 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13081 PyObject *resultobj = 0;
13082 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13083 wxString result;
13084 void *argp1 = 0 ;
13085 int res1 = 0 ;
13086 PyObject *swig_obj[1] ;
13087
13088 if (!args) SWIG_fail;
13089 swig_obj[0] = args;
13090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13091 if (!SWIG_IsOK(res1)) {
13092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13093 }
13094 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13095 {
13096 PyThreadState* __tstate = wxPyBeginAllowThreads();
13097 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
13098 wxPyEndAllowThreads(__tstate);
13099 if (PyErr_Occurred()) SWIG_fail;
13100 }
13101 {
13102 #if wxUSE_UNICODE
13103 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13104 #else
13105 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13106 #endif
13107 }
13108 return resultobj;
13109 fail:
13110 return NULL;
13111 }
13112
13113
13114 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13115 PyObject *resultobj = 0;
13116 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13117 wxFontFamily result;
13118 void *argp1 = 0 ;
13119 int res1 = 0 ;
13120 PyObject *swig_obj[1] ;
13121
13122 if (!args) SWIG_fail;
13123 swig_obj[0] = args;
13124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13125 if (!SWIG_IsOK(res1)) {
13126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13127 }
13128 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13129 {
13130 PyThreadState* __tstate = wxPyBeginAllowThreads();
13131 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
13132 wxPyEndAllowThreads(__tstate);
13133 if (PyErr_Occurred()) SWIG_fail;
13134 }
13135 resultobj = SWIG_From_int(static_cast< int >(result));
13136 return resultobj;
13137 fail:
13138 return NULL;
13139 }
13140
13141
13142 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13143 PyObject *resultobj = 0;
13144 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13145 wxFontEncoding result;
13146 void *argp1 = 0 ;
13147 int res1 = 0 ;
13148 PyObject *swig_obj[1] ;
13149
13150 if (!args) SWIG_fail;
13151 swig_obj[0] = args;
13152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13153 if (!SWIG_IsOK(res1)) {
13154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13155 }
13156 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13157 {
13158 PyThreadState* __tstate = wxPyBeginAllowThreads();
13159 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
13160 wxPyEndAllowThreads(__tstate);
13161 if (PyErr_Occurred()) SWIG_fail;
13162 }
13163 resultobj = SWIG_From_int(static_cast< int >(result));
13164 return resultobj;
13165 fail:
13166 return NULL;
13167 }
13168
13169
13170 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13171 PyObject *resultobj = 0;
13172 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13173 int arg2 ;
13174 void *argp1 = 0 ;
13175 int res1 = 0 ;
13176 int val2 ;
13177 int ecode2 = 0 ;
13178 PyObject * obj0 = 0 ;
13179 PyObject * obj1 = 0 ;
13180 char * kwnames[] = {
13181 (char *) "self",(char *) "pointsize", NULL
13182 };
13183
13184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
13185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13186 if (!SWIG_IsOK(res1)) {
13187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13188 }
13189 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13190 ecode2 = SWIG_AsVal_int(obj1, &val2);
13191 if (!SWIG_IsOK(ecode2)) {
13192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
13193 }
13194 arg2 = static_cast< int >(val2);
13195 {
13196 PyThreadState* __tstate = wxPyBeginAllowThreads();
13197 (arg1)->SetPointSize(arg2);
13198 wxPyEndAllowThreads(__tstate);
13199 if (PyErr_Occurred()) SWIG_fail;
13200 }
13201 resultobj = SWIG_Py_Void();
13202 return resultobj;
13203 fail:
13204 return NULL;
13205 }
13206
13207
13208 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13209 PyObject *resultobj = 0;
13210 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13211 wxSize *arg2 = 0 ;
13212 void *argp1 = 0 ;
13213 int res1 = 0 ;
13214 wxSize temp2 ;
13215 PyObject * obj0 = 0 ;
13216 PyObject * obj1 = 0 ;
13217 char * kwnames[] = {
13218 (char *) "self",(char *) "pixelSize", NULL
13219 };
13220
13221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
13222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13223 if (!SWIG_IsOK(res1)) {
13224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13225 }
13226 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13227 {
13228 arg2 = &temp2;
13229 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
13230 }
13231 {
13232 PyThreadState* __tstate = wxPyBeginAllowThreads();
13233 (arg1)->SetPixelSize((wxSize const &)*arg2);
13234 wxPyEndAllowThreads(__tstate);
13235 if (PyErr_Occurred()) SWIG_fail;
13236 }
13237 resultobj = SWIG_Py_Void();
13238 return resultobj;
13239 fail:
13240 return NULL;
13241 }
13242
13243
13244 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13245 PyObject *resultobj = 0;
13246 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13247 wxFontStyle arg2 ;
13248 void *argp1 = 0 ;
13249 int res1 = 0 ;
13250 int val2 ;
13251 int ecode2 = 0 ;
13252 PyObject * obj0 = 0 ;
13253 PyObject * obj1 = 0 ;
13254 char * kwnames[] = {
13255 (char *) "self",(char *) "style", NULL
13256 };
13257
13258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
13259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13260 if (!SWIG_IsOK(res1)) {
13261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13262 }
13263 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13264 ecode2 = SWIG_AsVal_int(obj1, &val2);
13265 if (!SWIG_IsOK(ecode2)) {
13266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
13267 }
13268 arg2 = static_cast< wxFontStyle >(val2);
13269 {
13270 PyThreadState* __tstate = wxPyBeginAllowThreads();
13271 (arg1)->SetStyle(arg2);
13272 wxPyEndAllowThreads(__tstate);
13273 if (PyErr_Occurred()) SWIG_fail;
13274 }
13275 resultobj = SWIG_Py_Void();
13276 return resultobj;
13277 fail:
13278 return NULL;
13279 }
13280
13281
13282 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13283 PyObject *resultobj = 0;
13284 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13285 wxFontWeight arg2 ;
13286 void *argp1 = 0 ;
13287 int res1 = 0 ;
13288 int val2 ;
13289 int ecode2 = 0 ;
13290 PyObject * obj0 = 0 ;
13291 PyObject * obj1 = 0 ;
13292 char * kwnames[] = {
13293 (char *) "self",(char *) "weight", NULL
13294 };
13295
13296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
13297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13298 if (!SWIG_IsOK(res1)) {
13299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13300 }
13301 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13302 ecode2 = SWIG_AsVal_int(obj1, &val2);
13303 if (!SWIG_IsOK(ecode2)) {
13304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
13305 }
13306 arg2 = static_cast< wxFontWeight >(val2);
13307 {
13308 PyThreadState* __tstate = wxPyBeginAllowThreads();
13309 (arg1)->SetWeight(arg2);
13310 wxPyEndAllowThreads(__tstate);
13311 if (PyErr_Occurred()) SWIG_fail;
13312 }
13313 resultobj = SWIG_Py_Void();
13314 return resultobj;
13315 fail:
13316 return NULL;
13317 }
13318
13319
13320 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13321 PyObject *resultobj = 0;
13322 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13323 bool arg2 ;
13324 void *argp1 = 0 ;
13325 int res1 = 0 ;
13326 bool val2 ;
13327 int ecode2 = 0 ;
13328 PyObject * obj0 = 0 ;
13329 PyObject * obj1 = 0 ;
13330 char * kwnames[] = {
13331 (char *) "self",(char *) "underlined", NULL
13332 };
13333
13334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
13335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13336 if (!SWIG_IsOK(res1)) {
13337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13338 }
13339 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13340 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13341 if (!SWIG_IsOK(ecode2)) {
13342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
13343 }
13344 arg2 = static_cast< bool >(val2);
13345 {
13346 PyThreadState* __tstate = wxPyBeginAllowThreads();
13347 (arg1)->SetUnderlined(arg2);
13348 wxPyEndAllowThreads(__tstate);
13349 if (PyErr_Occurred()) SWIG_fail;
13350 }
13351 resultobj = SWIG_Py_Void();
13352 return resultobj;
13353 fail:
13354 return NULL;
13355 }
13356
13357
13358 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13359 PyObject *resultobj = 0;
13360 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13361 wxString arg2 ;
13362 bool result;
13363 void *argp1 = 0 ;
13364 int res1 = 0 ;
13365 PyObject * obj0 = 0 ;
13366 PyObject * obj1 = 0 ;
13367 char * kwnames[] = {
13368 (char *) "self",(char *) "facename", NULL
13369 };
13370
13371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
13372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13373 if (!SWIG_IsOK(res1)) {
13374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13375 }
13376 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13377 {
13378 wxString* sptr = wxString_in_helper(obj1);
13379 if (sptr == NULL) SWIG_fail;
13380 arg2 = *sptr;
13381 delete sptr;
13382 }
13383 {
13384 PyThreadState* __tstate = wxPyBeginAllowThreads();
13385 result = (bool)(arg1)->SetFaceName(arg2);
13386 wxPyEndAllowThreads(__tstate);
13387 if (PyErr_Occurred()) SWIG_fail;
13388 }
13389 {
13390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13391 }
13392 return resultobj;
13393 fail:
13394 return NULL;
13395 }
13396
13397
13398 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13399 PyObject *resultobj = 0;
13400 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13401 wxFontFamily arg2 ;
13402 void *argp1 = 0 ;
13403 int res1 = 0 ;
13404 int val2 ;
13405 int ecode2 = 0 ;
13406 PyObject * obj0 = 0 ;
13407 PyObject * obj1 = 0 ;
13408 char * kwnames[] = {
13409 (char *) "self",(char *) "family", NULL
13410 };
13411
13412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
13413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13414 if (!SWIG_IsOK(res1)) {
13415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13416 }
13417 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13418 ecode2 = SWIG_AsVal_int(obj1, &val2);
13419 if (!SWIG_IsOK(ecode2)) {
13420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
13421 }
13422 arg2 = static_cast< wxFontFamily >(val2);
13423 {
13424 PyThreadState* __tstate = wxPyBeginAllowThreads();
13425 (arg1)->SetFamily(arg2);
13426 wxPyEndAllowThreads(__tstate);
13427 if (PyErr_Occurred()) SWIG_fail;
13428 }
13429 resultobj = SWIG_Py_Void();
13430 return resultobj;
13431 fail:
13432 return NULL;
13433 }
13434
13435
13436 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13437 PyObject *resultobj = 0;
13438 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13439 wxFontEncoding arg2 ;
13440 void *argp1 = 0 ;
13441 int res1 = 0 ;
13442 int val2 ;
13443 int ecode2 = 0 ;
13444 PyObject * obj0 = 0 ;
13445 PyObject * obj1 = 0 ;
13446 char * kwnames[] = {
13447 (char *) "self",(char *) "encoding", NULL
13448 };
13449
13450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
13451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13452 if (!SWIG_IsOK(res1)) {
13453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13454 }
13455 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13456 ecode2 = SWIG_AsVal_int(obj1, &val2);
13457 if (!SWIG_IsOK(ecode2)) {
13458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13459 }
13460 arg2 = static_cast< wxFontEncoding >(val2);
13461 {
13462 PyThreadState* __tstate = wxPyBeginAllowThreads();
13463 (arg1)->SetEncoding(arg2);
13464 wxPyEndAllowThreads(__tstate);
13465 if (PyErr_Occurred()) SWIG_fail;
13466 }
13467 resultobj = SWIG_Py_Void();
13468 return resultobj;
13469 fail:
13470 return NULL;
13471 }
13472
13473
13474 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13475 PyObject *resultobj = 0;
13476 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13477 wxString *arg2 = 0 ;
13478 bool result;
13479 void *argp1 = 0 ;
13480 int res1 = 0 ;
13481 bool temp2 = false ;
13482 PyObject * obj0 = 0 ;
13483 PyObject * obj1 = 0 ;
13484 char * kwnames[] = {
13485 (char *) "self",(char *) "s", NULL
13486 };
13487
13488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13490 if (!SWIG_IsOK(res1)) {
13491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13492 }
13493 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13494 {
13495 arg2 = wxString_in_helper(obj1);
13496 if (arg2 == NULL) SWIG_fail;
13497 temp2 = true;
13498 }
13499 {
13500 PyThreadState* __tstate = wxPyBeginAllowThreads();
13501 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13502 wxPyEndAllowThreads(__tstate);
13503 if (PyErr_Occurred()) SWIG_fail;
13504 }
13505 {
13506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13507 }
13508 {
13509 if (temp2)
13510 delete arg2;
13511 }
13512 return resultobj;
13513 fail:
13514 {
13515 if (temp2)
13516 delete arg2;
13517 }
13518 return NULL;
13519 }
13520
13521
13522 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13523 PyObject *resultobj = 0;
13524 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13525 wxString result;
13526 void *argp1 = 0 ;
13527 int res1 = 0 ;
13528 PyObject *swig_obj[1] ;
13529
13530 if (!args) SWIG_fail;
13531 swig_obj[0] = args;
13532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13533 if (!SWIG_IsOK(res1)) {
13534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13535 }
13536 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13537 {
13538 PyThreadState* __tstate = wxPyBeginAllowThreads();
13539 result = ((wxNativeFontInfo const *)arg1)->ToString();
13540 wxPyEndAllowThreads(__tstate);
13541 if (PyErr_Occurred()) SWIG_fail;
13542 }
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_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13557 PyObject *resultobj = 0;
13558 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13559 wxString result;
13560 void *argp1 = 0 ;
13561 int res1 = 0 ;
13562 PyObject *swig_obj[1] ;
13563
13564 if (!args) SWIG_fail;
13565 swig_obj[0] = args;
13566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13567 if (!SWIG_IsOK(res1)) {
13568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13569 }
13570 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13571 {
13572 PyThreadState* __tstate = wxPyBeginAllowThreads();
13573 result = wxNativeFontInfo___str__(arg1);
13574 wxPyEndAllowThreads(__tstate);
13575 if (PyErr_Occurred()) SWIG_fail;
13576 }
13577 {
13578 #if wxUSE_UNICODE
13579 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13580 #else
13581 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13582 #endif
13583 }
13584 return resultobj;
13585 fail:
13586 return NULL;
13587 }
13588
13589
13590 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13591 PyObject *resultobj = 0;
13592 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13593 wxString *arg2 = 0 ;
13594 bool result;
13595 void *argp1 = 0 ;
13596 int res1 = 0 ;
13597 bool temp2 = false ;
13598 PyObject * obj0 = 0 ;
13599 PyObject * obj1 = 0 ;
13600 char * kwnames[] = {
13601 (char *) "self",(char *) "s", NULL
13602 };
13603
13604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
13605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13606 if (!SWIG_IsOK(res1)) {
13607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13608 }
13609 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13610 {
13611 arg2 = wxString_in_helper(obj1);
13612 if (arg2 == NULL) SWIG_fail;
13613 temp2 = true;
13614 }
13615 {
13616 PyThreadState* __tstate = wxPyBeginAllowThreads();
13617 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
13618 wxPyEndAllowThreads(__tstate);
13619 if (PyErr_Occurred()) SWIG_fail;
13620 }
13621 {
13622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13623 }
13624 {
13625 if (temp2)
13626 delete arg2;
13627 }
13628 return resultobj;
13629 fail:
13630 {
13631 if (temp2)
13632 delete arg2;
13633 }
13634 return NULL;
13635 }
13636
13637
13638 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13639 PyObject *resultobj = 0;
13640 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13641 wxString result;
13642 void *argp1 = 0 ;
13643 int res1 = 0 ;
13644 PyObject *swig_obj[1] ;
13645
13646 if (!args) SWIG_fail;
13647 swig_obj[0] = args;
13648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13649 if (!SWIG_IsOK(res1)) {
13650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13651 }
13652 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13653 {
13654 PyThreadState* __tstate = wxPyBeginAllowThreads();
13655 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
13656 wxPyEndAllowThreads(__tstate);
13657 if (PyErr_Occurred()) SWIG_fail;
13658 }
13659 {
13660 #if wxUSE_UNICODE
13661 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13662 #else
13663 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13664 #endif
13665 }
13666 return resultobj;
13667 fail:
13668 return NULL;
13669 }
13670
13671
13672 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13673 PyObject *obj;
13674 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13675 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
13676 return SWIG_Py_Void();
13677 }
13678
13679 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13680 return SWIG_Python_InitShadowInstance(args);
13681 }
13682
13683 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13684 PyObject *resultobj = 0;
13685 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13686 wxString *arg2 = (wxString *) 0 ;
13687 void *argp1 = 0 ;
13688 int res1 = 0 ;
13689 bool temp2 = false ;
13690 PyObject *swig_obj[2] ;
13691
13692 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
13693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13694 if (!SWIG_IsOK(res1)) {
13695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13696 }
13697 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13698 {
13699 arg2 = wxString_in_helper(swig_obj[1]);
13700 if (arg2 == NULL) SWIG_fail;
13701 temp2 = true;
13702 }
13703 if (arg1) (arg1)->facename = *arg2;
13704
13705 resultobj = SWIG_Py_Void();
13706 {
13707 if (temp2)
13708 delete arg2;
13709 }
13710 return resultobj;
13711 fail:
13712 {
13713 if (temp2)
13714 delete arg2;
13715 }
13716 return NULL;
13717 }
13718
13719
13720 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13721 PyObject *resultobj = 0;
13722 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13723 wxString *result = 0 ;
13724 void *argp1 = 0 ;
13725 int res1 = 0 ;
13726 PyObject *swig_obj[1] ;
13727
13728 if (!args) SWIG_fail;
13729 swig_obj[0] = args;
13730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13731 if (!SWIG_IsOK(res1)) {
13732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13733 }
13734 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13735 result = (wxString *)& ((arg1)->facename);
13736 {
13737 #if wxUSE_UNICODE
13738 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13739 #else
13740 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13741 #endif
13742 }
13743 return resultobj;
13744 fail:
13745 return NULL;
13746 }
13747
13748
13749 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13750 PyObject *resultobj = 0;
13751 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13752 wxFontEncoding arg2 ;
13753 void *argp1 = 0 ;
13754 int res1 = 0 ;
13755 int val2 ;
13756 int ecode2 = 0 ;
13757 PyObject *swig_obj[2] ;
13758
13759 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13761 if (!SWIG_IsOK(res1)) {
13762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13763 }
13764 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13765 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13766 if (!SWIG_IsOK(ecode2)) {
13767 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13768 }
13769 arg2 = static_cast< wxFontEncoding >(val2);
13770 if (arg1) (arg1)->encoding = arg2;
13771
13772 resultobj = SWIG_Py_Void();
13773 return resultobj;
13774 fail:
13775 return NULL;
13776 }
13777
13778
13779 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13780 PyObject *resultobj = 0;
13781 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13782 wxFontEncoding result;
13783 void *argp1 = 0 ;
13784 int res1 = 0 ;
13785 PyObject *swig_obj[1] ;
13786
13787 if (!args) SWIG_fail;
13788 swig_obj[0] = args;
13789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13790 if (!SWIG_IsOK(res1)) {
13791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13792 }
13793 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13794 result = (wxFontEncoding) ((arg1)->encoding);
13795 resultobj = SWIG_From_int(static_cast< int >(result));
13796 return resultobj;
13797 fail:
13798 return NULL;
13799 }
13800
13801
13802 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13803 PyObject *resultobj = 0;
13804 wxNativeEncodingInfo *result = 0 ;
13805
13806 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13807 {
13808 PyThreadState* __tstate = wxPyBeginAllowThreads();
13809 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13810 wxPyEndAllowThreads(__tstate);
13811 if (PyErr_Occurred()) SWIG_fail;
13812 }
13813 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13814 return resultobj;
13815 fail:
13816 return NULL;
13817 }
13818
13819
13820 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13821 PyObject *resultobj = 0;
13822 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13823 void *argp1 = 0 ;
13824 int res1 = 0 ;
13825 PyObject *swig_obj[1] ;
13826
13827 if (!args) SWIG_fail;
13828 swig_obj[0] = args;
13829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13830 if (!SWIG_IsOK(res1)) {
13831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13832 }
13833 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13834 {
13835 PyThreadState* __tstate = wxPyBeginAllowThreads();
13836 delete arg1;
13837
13838 wxPyEndAllowThreads(__tstate);
13839 if (PyErr_Occurred()) SWIG_fail;
13840 }
13841 resultobj = SWIG_Py_Void();
13842 return resultobj;
13843 fail:
13844 return NULL;
13845 }
13846
13847
13848 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13849 PyObject *resultobj = 0;
13850 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13851 wxString *arg2 = 0 ;
13852 bool result;
13853 void *argp1 = 0 ;
13854 int res1 = 0 ;
13855 bool temp2 = false ;
13856 PyObject * obj0 = 0 ;
13857 PyObject * obj1 = 0 ;
13858 char * kwnames[] = {
13859 (char *) "self",(char *) "s", NULL
13860 };
13861
13862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13864 if (!SWIG_IsOK(res1)) {
13865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13866 }
13867 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13868 {
13869 arg2 = wxString_in_helper(obj1);
13870 if (arg2 == NULL) SWIG_fail;
13871 temp2 = true;
13872 }
13873 {
13874 PyThreadState* __tstate = wxPyBeginAllowThreads();
13875 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13876 wxPyEndAllowThreads(__tstate);
13877 if (PyErr_Occurred()) SWIG_fail;
13878 }
13879 {
13880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13881 }
13882 {
13883 if (temp2)
13884 delete arg2;
13885 }
13886 return resultobj;
13887 fail:
13888 {
13889 if (temp2)
13890 delete arg2;
13891 }
13892 return NULL;
13893 }
13894
13895
13896 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13897 PyObject *resultobj = 0;
13898 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13899 wxString result;
13900 void *argp1 = 0 ;
13901 int res1 = 0 ;
13902 PyObject *swig_obj[1] ;
13903
13904 if (!args) SWIG_fail;
13905 swig_obj[0] = args;
13906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13907 if (!SWIG_IsOK(res1)) {
13908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13909 }
13910 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13911 {
13912 PyThreadState* __tstate = wxPyBeginAllowThreads();
13913 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13914 wxPyEndAllowThreads(__tstate);
13915 if (PyErr_Occurred()) SWIG_fail;
13916 }
13917 {
13918 #if wxUSE_UNICODE
13919 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13920 #else
13921 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13922 #endif
13923 }
13924 return resultobj;
13925 fail:
13926 return NULL;
13927 }
13928
13929
13930 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13931 PyObject *obj;
13932 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13933 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13934 return SWIG_Py_Void();
13935 }
13936
13937 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13938 return SWIG_Python_InitShadowInstance(args);
13939 }
13940
13941 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13942 PyObject *resultobj = 0;
13943 wxFontEncoding arg1 ;
13944 wxNativeEncodingInfo *result = 0 ;
13945 int val1 ;
13946 int ecode1 = 0 ;
13947 PyObject * obj0 = 0 ;
13948 char * kwnames[] = {
13949 (char *) "encoding", NULL
13950 };
13951
13952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13953 ecode1 = SWIG_AsVal_int(obj0, &val1);
13954 if (!SWIG_IsOK(ecode1)) {
13955 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13956 }
13957 arg1 = static_cast< wxFontEncoding >(val1);
13958 {
13959 PyThreadState* __tstate = wxPyBeginAllowThreads();
13960 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13961 wxPyEndAllowThreads(__tstate);
13962 if (PyErr_Occurred()) SWIG_fail;
13963 }
13964 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13965 return resultobj;
13966 fail:
13967 return NULL;
13968 }
13969
13970
13971 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13972 PyObject *resultobj = 0;
13973 wxNativeEncodingInfo *arg1 = 0 ;
13974 bool result;
13975 void *argp1 = 0 ;
13976 int res1 = 0 ;
13977 PyObject * obj0 = 0 ;
13978 char * kwnames[] = {
13979 (char *) "info", NULL
13980 };
13981
13982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13983 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13984 if (!SWIG_IsOK(res1)) {
13985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13986 }
13987 if (!argp1) {
13988 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13989 }
13990 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13991 {
13992 PyThreadState* __tstate = wxPyBeginAllowThreads();
13993 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13994 wxPyEndAllowThreads(__tstate);
13995 if (PyErr_Occurred()) SWIG_fail;
13996 }
13997 {
13998 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13999 }
14000 return resultobj;
14001 fail:
14002 return NULL;
14003 }
14004
14005
14006 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14007 PyObject *resultobj = 0;
14008 wxFontMapper *result = 0 ;
14009
14010 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
14011 {
14012 PyThreadState* __tstate = wxPyBeginAllowThreads();
14013 result = (wxFontMapper *)new wxFontMapper();
14014 wxPyEndAllowThreads(__tstate);
14015 if (PyErr_Occurred()) SWIG_fail;
14016 }
14017 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
14018 return resultobj;
14019 fail:
14020 return NULL;
14021 }
14022
14023
14024 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14025 PyObject *resultobj = 0;
14026 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14027 void *argp1 = 0 ;
14028 int res1 = 0 ;
14029 PyObject *swig_obj[1] ;
14030
14031 if (!args) SWIG_fail;
14032 swig_obj[0] = args;
14033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
14034 if (!SWIG_IsOK(res1)) {
14035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14036 }
14037 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14038 {
14039 PyThreadState* __tstate = wxPyBeginAllowThreads();
14040 delete arg1;
14041
14042 wxPyEndAllowThreads(__tstate);
14043 if (PyErr_Occurred()) SWIG_fail;
14044 }
14045 resultobj = SWIG_Py_Void();
14046 return resultobj;
14047 fail:
14048 return NULL;
14049 }
14050
14051
14052 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14053 PyObject *resultobj = 0;
14054 wxFontMapper *result = 0 ;
14055
14056 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
14057 {
14058 PyThreadState* __tstate = wxPyBeginAllowThreads();
14059 result = (wxFontMapper *)wxFontMapper::Get();
14060 wxPyEndAllowThreads(__tstate);
14061 if (PyErr_Occurred()) SWIG_fail;
14062 }
14063 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
14064 return resultobj;
14065 fail:
14066 return NULL;
14067 }
14068
14069
14070 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14071 PyObject *resultobj = 0;
14072 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14073 wxFontMapper *result = 0 ;
14074 void *argp1 = 0 ;
14075 int res1 = 0 ;
14076 PyObject * obj0 = 0 ;
14077 char * kwnames[] = {
14078 (char *) "mapper", NULL
14079 };
14080
14081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
14082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14083 if (!SWIG_IsOK(res1)) {
14084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14085 }
14086 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14087 {
14088 PyThreadState* __tstate = wxPyBeginAllowThreads();
14089 result = (wxFontMapper *)wxFontMapper::Set(arg1);
14090 wxPyEndAllowThreads(__tstate);
14091 if (PyErr_Occurred()) SWIG_fail;
14092 }
14093 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
14094 return resultobj;
14095 fail:
14096 return NULL;
14097 }
14098
14099
14100 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14101 PyObject *resultobj = 0;
14102 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14103 wxString *arg2 = 0 ;
14104 bool arg3 = (bool) true ;
14105 wxFontEncoding result;
14106 void *argp1 = 0 ;
14107 int res1 = 0 ;
14108 bool temp2 = false ;
14109 bool val3 ;
14110 int ecode3 = 0 ;
14111 PyObject * obj0 = 0 ;
14112 PyObject * obj1 = 0 ;
14113 PyObject * obj2 = 0 ;
14114 char * kwnames[] = {
14115 (char *) "self",(char *) "charset",(char *) "interactive", NULL
14116 };
14117
14118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14120 if (!SWIG_IsOK(res1)) {
14121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14122 }
14123 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14124 {
14125 arg2 = wxString_in_helper(obj1);
14126 if (arg2 == NULL) SWIG_fail;
14127 temp2 = true;
14128 }
14129 if (obj2) {
14130 ecode3 = SWIG_AsVal_bool(obj2, &val3);
14131 if (!SWIG_IsOK(ecode3)) {
14132 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
14133 }
14134 arg3 = static_cast< bool >(val3);
14135 }
14136 {
14137 PyThreadState* __tstate = wxPyBeginAllowThreads();
14138 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
14139 wxPyEndAllowThreads(__tstate);
14140 if (PyErr_Occurred()) SWIG_fail;
14141 }
14142 resultobj = SWIG_From_int(static_cast< int >(result));
14143 {
14144 if (temp2)
14145 delete arg2;
14146 }
14147 return resultobj;
14148 fail:
14149 {
14150 if (temp2)
14151 delete arg2;
14152 }
14153 return NULL;
14154 }
14155
14156
14157 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14158 PyObject *resultobj = 0;
14159 size_t result;
14160
14161 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
14162 {
14163 PyThreadState* __tstate = wxPyBeginAllowThreads();
14164 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
14165 wxPyEndAllowThreads(__tstate);
14166 if (PyErr_Occurred()) SWIG_fail;
14167 }
14168 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
14169 return resultobj;
14170 fail:
14171 return NULL;
14172 }
14173
14174
14175 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14176 PyObject *resultobj = 0;
14177 size_t arg1 ;
14178 wxFontEncoding result;
14179 size_t val1 ;
14180 int ecode1 = 0 ;
14181 PyObject * obj0 = 0 ;
14182 char * kwnames[] = {
14183 (char *) "n", NULL
14184 };
14185
14186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
14187 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
14188 if (!SWIG_IsOK(ecode1)) {
14189 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
14190 }
14191 arg1 = static_cast< size_t >(val1);
14192 {
14193 PyThreadState* __tstate = wxPyBeginAllowThreads();
14194 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
14195 wxPyEndAllowThreads(__tstate);
14196 if (PyErr_Occurred()) SWIG_fail;
14197 }
14198 resultobj = SWIG_From_int(static_cast< int >(result));
14199 return resultobj;
14200 fail:
14201 return NULL;
14202 }
14203
14204
14205 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14206 PyObject *resultobj = 0;
14207 wxFontEncoding arg1 ;
14208 wxString result;
14209 int val1 ;
14210 int ecode1 = 0 ;
14211 PyObject * obj0 = 0 ;
14212 char * kwnames[] = {
14213 (char *) "encoding", NULL
14214 };
14215
14216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
14217 ecode1 = SWIG_AsVal_int(obj0, &val1);
14218 if (!SWIG_IsOK(ecode1)) {
14219 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14220 }
14221 arg1 = static_cast< wxFontEncoding >(val1);
14222 {
14223 PyThreadState* __tstate = wxPyBeginAllowThreads();
14224 result = wxFontMapper::GetEncodingName(arg1);
14225 wxPyEndAllowThreads(__tstate);
14226 if (PyErr_Occurred()) SWIG_fail;
14227 }
14228 {
14229 #if wxUSE_UNICODE
14230 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14231 #else
14232 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14233 #endif
14234 }
14235 return resultobj;
14236 fail:
14237 return NULL;
14238 }
14239
14240
14241 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14242 PyObject *resultobj = 0;
14243 wxFontEncoding arg1 ;
14244 wxString result;
14245 int val1 ;
14246 int ecode1 = 0 ;
14247 PyObject * obj0 = 0 ;
14248 char * kwnames[] = {
14249 (char *) "encoding", NULL
14250 };
14251
14252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
14253 ecode1 = SWIG_AsVal_int(obj0, &val1);
14254 if (!SWIG_IsOK(ecode1)) {
14255 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14256 }
14257 arg1 = static_cast< wxFontEncoding >(val1);
14258 {
14259 PyThreadState* __tstate = wxPyBeginAllowThreads();
14260 result = wxFontMapper::GetEncodingDescription(arg1);
14261 wxPyEndAllowThreads(__tstate);
14262 if (PyErr_Occurred()) SWIG_fail;
14263 }
14264 {
14265 #if wxUSE_UNICODE
14266 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14267 #else
14268 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14269 #endif
14270 }
14271 return resultobj;
14272 fail:
14273 return NULL;
14274 }
14275
14276
14277 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14278 PyObject *resultobj = 0;
14279 wxString *arg1 = 0 ;
14280 wxFontEncoding result;
14281 bool temp1 = false ;
14282 PyObject * obj0 = 0 ;
14283 char * kwnames[] = {
14284 (char *) "name", NULL
14285 };
14286
14287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
14288 {
14289 arg1 = wxString_in_helper(obj0);
14290 if (arg1 == NULL) SWIG_fail;
14291 temp1 = true;
14292 }
14293 {
14294 PyThreadState* __tstate = wxPyBeginAllowThreads();
14295 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
14296 wxPyEndAllowThreads(__tstate);
14297 if (PyErr_Occurred()) SWIG_fail;
14298 }
14299 resultobj = SWIG_From_int(static_cast< int >(result));
14300 {
14301 if (temp1)
14302 delete arg1;
14303 }
14304 return resultobj;
14305 fail:
14306 {
14307 if (temp1)
14308 delete arg1;
14309 }
14310 return NULL;
14311 }
14312
14313
14314 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14315 PyObject *resultobj = 0;
14316 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14317 wxString *arg2 = 0 ;
14318 void *argp1 = 0 ;
14319 int res1 = 0 ;
14320 bool temp2 = false ;
14321 PyObject * obj0 = 0 ;
14322 PyObject * obj1 = 0 ;
14323 char * kwnames[] = {
14324 (char *) "self",(char *) "prefix", NULL
14325 };
14326
14327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
14328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14329 if (!SWIG_IsOK(res1)) {
14330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14331 }
14332 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14333 {
14334 arg2 = wxString_in_helper(obj1);
14335 if (arg2 == NULL) SWIG_fail;
14336 temp2 = true;
14337 }
14338 {
14339 PyThreadState* __tstate = wxPyBeginAllowThreads();
14340 (arg1)->SetConfigPath((wxString const &)*arg2);
14341 wxPyEndAllowThreads(__tstate);
14342 if (PyErr_Occurred()) SWIG_fail;
14343 }
14344 resultobj = SWIG_Py_Void();
14345 {
14346 if (temp2)
14347 delete arg2;
14348 }
14349 return resultobj;
14350 fail:
14351 {
14352 if (temp2)
14353 delete arg2;
14354 }
14355 return NULL;
14356 }
14357
14358
14359 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14360 PyObject *resultobj = 0;
14361 wxString result;
14362
14363 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
14364 {
14365 PyThreadState* __tstate = wxPyBeginAllowThreads();
14366 result = wxFontMapper::GetDefaultConfigPath();
14367 wxPyEndAllowThreads(__tstate);
14368 if (PyErr_Occurred()) SWIG_fail;
14369 }
14370 {
14371 #if wxUSE_UNICODE
14372 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14373 #else
14374 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14375 #endif
14376 }
14377 return resultobj;
14378 fail:
14379 return NULL;
14380 }
14381
14382
14383 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14384 PyObject *resultobj = 0;
14385 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14386 wxFontEncoding arg2 ;
14387 wxString const &arg3_defvalue = wxPyEmptyString ;
14388 wxString *arg3 = (wxString *) &arg3_defvalue ;
14389 bool arg4 = (bool) true ;
14390 PyObject *result = 0 ;
14391 void *argp1 = 0 ;
14392 int res1 = 0 ;
14393 int val2 ;
14394 int ecode2 = 0 ;
14395 bool temp3 = false ;
14396 bool val4 ;
14397 int ecode4 = 0 ;
14398 PyObject * obj0 = 0 ;
14399 PyObject * obj1 = 0 ;
14400 PyObject * obj2 = 0 ;
14401 PyObject * obj3 = 0 ;
14402 char * kwnames[] = {
14403 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
14404 };
14405
14406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14408 if (!SWIG_IsOK(res1)) {
14409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14410 }
14411 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14412 ecode2 = SWIG_AsVal_int(obj1, &val2);
14413 if (!SWIG_IsOK(ecode2)) {
14414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14415 }
14416 arg2 = static_cast< wxFontEncoding >(val2);
14417 if (obj2) {
14418 {
14419 arg3 = wxString_in_helper(obj2);
14420 if (arg3 == NULL) SWIG_fail;
14421 temp3 = true;
14422 }
14423 }
14424 if (obj3) {
14425 ecode4 = SWIG_AsVal_bool(obj3, &val4);
14426 if (!SWIG_IsOK(ecode4)) {
14427 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
14428 }
14429 arg4 = static_cast< bool >(val4);
14430 }
14431 {
14432 PyThreadState* __tstate = wxPyBeginAllowThreads();
14433 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
14434 wxPyEndAllowThreads(__tstate);
14435 if (PyErr_Occurred()) SWIG_fail;
14436 }
14437 resultobj = result;
14438 {
14439 if (temp3)
14440 delete arg3;
14441 }
14442 return resultobj;
14443 fail:
14444 {
14445 if (temp3)
14446 delete arg3;
14447 }
14448 return NULL;
14449 }
14450
14451
14452 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14453 PyObject *resultobj = 0;
14454 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14455 wxFontEncoding arg2 ;
14456 wxString const &arg3_defvalue = wxPyEmptyString ;
14457 wxString *arg3 = (wxString *) &arg3_defvalue ;
14458 bool result;
14459 void *argp1 = 0 ;
14460 int res1 = 0 ;
14461 int val2 ;
14462 int ecode2 = 0 ;
14463 bool temp3 = false ;
14464 PyObject * obj0 = 0 ;
14465 PyObject * obj1 = 0 ;
14466 PyObject * obj2 = 0 ;
14467 char * kwnames[] = {
14468 (char *) "self",(char *) "encoding",(char *) "facename", NULL
14469 };
14470
14471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14473 if (!SWIG_IsOK(res1)) {
14474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14475 }
14476 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14477 ecode2 = SWIG_AsVal_int(obj1, &val2);
14478 if (!SWIG_IsOK(ecode2)) {
14479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14480 }
14481 arg2 = static_cast< wxFontEncoding >(val2);
14482 if (obj2) {
14483 {
14484 arg3 = wxString_in_helper(obj2);
14485 if (arg3 == NULL) SWIG_fail;
14486 temp3 = true;
14487 }
14488 }
14489 {
14490 PyThreadState* __tstate = wxPyBeginAllowThreads();
14491 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
14492 wxPyEndAllowThreads(__tstate);
14493 if (PyErr_Occurred()) SWIG_fail;
14494 }
14495 {
14496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14497 }
14498 {
14499 if (temp3)
14500 delete arg3;
14501 }
14502 return resultobj;
14503 fail:
14504 {
14505 if (temp3)
14506 delete arg3;
14507 }
14508 return NULL;
14509 }
14510
14511
14512 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14513 PyObject *resultobj = 0;
14514 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14515 wxWindow *arg2 = (wxWindow *) 0 ;
14516 void *argp1 = 0 ;
14517 int res1 = 0 ;
14518 void *argp2 = 0 ;
14519 int res2 = 0 ;
14520 PyObject * obj0 = 0 ;
14521 PyObject * obj1 = 0 ;
14522 char * kwnames[] = {
14523 (char *) "self",(char *) "parent", NULL
14524 };
14525
14526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
14527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14528 if (!SWIG_IsOK(res1)) {
14529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14530 }
14531 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14532 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14533 if (!SWIG_IsOK(res2)) {
14534 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
14535 }
14536 arg2 = reinterpret_cast< wxWindow * >(argp2);
14537 {
14538 PyThreadState* __tstate = wxPyBeginAllowThreads();
14539 (arg1)->SetDialogParent(arg2);
14540 wxPyEndAllowThreads(__tstate);
14541 if (PyErr_Occurred()) SWIG_fail;
14542 }
14543 resultobj = SWIG_Py_Void();
14544 return resultobj;
14545 fail:
14546 return NULL;
14547 }
14548
14549
14550 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14551 PyObject *resultobj = 0;
14552 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14553 wxString *arg2 = 0 ;
14554 void *argp1 = 0 ;
14555 int res1 = 0 ;
14556 bool temp2 = false ;
14557 PyObject * obj0 = 0 ;
14558 PyObject * obj1 = 0 ;
14559 char * kwnames[] = {
14560 (char *) "self",(char *) "title", NULL
14561 };
14562
14563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
14564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14565 if (!SWIG_IsOK(res1)) {
14566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14567 }
14568 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14569 {
14570 arg2 = wxString_in_helper(obj1);
14571 if (arg2 == NULL) SWIG_fail;
14572 temp2 = true;
14573 }
14574 {
14575 PyThreadState* __tstate = wxPyBeginAllowThreads();
14576 (arg1)->SetDialogTitle((wxString const &)*arg2);
14577 wxPyEndAllowThreads(__tstate);
14578 if (PyErr_Occurred()) SWIG_fail;
14579 }
14580 resultobj = SWIG_Py_Void();
14581 {
14582 if (temp2)
14583 delete arg2;
14584 }
14585 return resultobj;
14586 fail:
14587 {
14588 if (temp2)
14589 delete arg2;
14590 }
14591 return NULL;
14592 }
14593
14594
14595 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14596 PyObject *obj;
14597 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14598 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
14599 return SWIG_Py_Void();
14600 }
14601
14602 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14603 return SWIG_Python_InitShadowInstance(args);
14604 }
14605
14606 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14607 PyObject *resultobj = 0;
14608 int arg1 ;
14609 int arg2 ;
14610 int arg3 ;
14611 int arg4 ;
14612 bool arg5 = (bool) false ;
14613 wxString const &arg6_defvalue = wxPyEmptyString ;
14614 wxString *arg6 = (wxString *) &arg6_defvalue ;
14615 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14616 wxFont *result = 0 ;
14617 int val1 ;
14618 int ecode1 = 0 ;
14619 int val2 ;
14620 int ecode2 = 0 ;
14621 int val3 ;
14622 int ecode3 = 0 ;
14623 int val4 ;
14624 int ecode4 = 0 ;
14625 bool val5 ;
14626 int ecode5 = 0 ;
14627 bool temp6 = false ;
14628 int val7 ;
14629 int ecode7 = 0 ;
14630 PyObject * obj0 = 0 ;
14631 PyObject * obj1 = 0 ;
14632 PyObject * obj2 = 0 ;
14633 PyObject * obj3 = 0 ;
14634 PyObject * obj4 = 0 ;
14635 PyObject * obj5 = 0 ;
14636 PyObject * obj6 = 0 ;
14637 char * kwnames[] = {
14638 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
14639 };
14640
14641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14642 ecode1 = SWIG_AsVal_int(obj0, &val1);
14643 if (!SWIG_IsOK(ecode1)) {
14644 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
14645 }
14646 arg1 = static_cast< int >(val1);
14647 ecode2 = SWIG_AsVal_int(obj1, &val2);
14648 if (!SWIG_IsOK(ecode2)) {
14649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
14650 }
14651 arg2 = static_cast< int >(val2);
14652 ecode3 = SWIG_AsVal_int(obj2, &val3);
14653 if (!SWIG_IsOK(ecode3)) {
14654 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
14655 }
14656 arg3 = static_cast< int >(val3);
14657 ecode4 = SWIG_AsVal_int(obj3, &val4);
14658 if (!SWIG_IsOK(ecode4)) {
14659 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
14660 }
14661 arg4 = static_cast< int >(val4);
14662 if (obj4) {
14663 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14664 if (!SWIG_IsOK(ecode5)) {
14665 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
14666 }
14667 arg5 = static_cast< bool >(val5);
14668 }
14669 if (obj5) {
14670 {
14671 arg6 = wxString_in_helper(obj5);
14672 if (arg6 == NULL) SWIG_fail;
14673 temp6 = true;
14674 }
14675 }
14676 if (obj6) {
14677 ecode7 = SWIG_AsVal_int(obj6, &val7);
14678 if (!SWIG_IsOK(ecode7)) {
14679 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14680 }
14681 arg7 = static_cast< wxFontEncoding >(val7);
14682 }
14683 {
14684 if (!wxPyCheckForApp()) SWIG_fail;
14685 PyThreadState* __tstate = wxPyBeginAllowThreads();
14686 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14687 wxPyEndAllowThreads(__tstate);
14688 if (PyErr_Occurred()) SWIG_fail;
14689 }
14690 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
14691 {
14692 if (temp6)
14693 delete arg6;
14694 }
14695 return resultobj;
14696 fail:
14697 {
14698 if (temp6)
14699 delete arg6;
14700 }
14701 return NULL;
14702 }
14703
14704
14705 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14706 PyObject *resultobj = 0;
14707 wxFont *arg1 = (wxFont *) 0 ;
14708 void *argp1 = 0 ;
14709 int res1 = 0 ;
14710 PyObject *swig_obj[1] ;
14711
14712 if (!args) SWIG_fail;
14713 swig_obj[0] = args;
14714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
14715 if (!SWIG_IsOK(res1)) {
14716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14717 }
14718 arg1 = reinterpret_cast< wxFont * >(argp1);
14719 {
14720 PyThreadState* __tstate = wxPyBeginAllowThreads();
14721 delete arg1;
14722
14723 wxPyEndAllowThreads(__tstate);
14724 if (PyErr_Occurred()) SWIG_fail;
14725 }
14726 resultobj = SWIG_Py_Void();
14727 return resultobj;
14728 fail:
14729 return NULL;
14730 }
14731
14732
14733 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14734 PyObject *resultobj = 0;
14735 wxNativeFontInfo *arg1 = 0 ;
14736 wxFont *result = 0 ;
14737 void *argp1 = 0 ;
14738 int res1 = 0 ;
14739 PyObject * obj0 = 0 ;
14740 char * kwnames[] = {
14741 (char *) "info", NULL
14742 };
14743
14744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14745 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14746 if (!SWIG_IsOK(res1)) {
14747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14748 }
14749 if (!argp1) {
14750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14751 }
14752 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14753 {
14754 if (!wxPyCheckForApp()) SWIG_fail;
14755 PyThreadState* __tstate = wxPyBeginAllowThreads();
14756 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14757 wxPyEndAllowThreads(__tstate);
14758 if (PyErr_Occurred()) SWIG_fail;
14759 }
14760 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14761 return resultobj;
14762 fail:
14763 return NULL;
14764 }
14765
14766
14767 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14768 PyObject *resultobj = 0;
14769 wxString *arg1 = 0 ;
14770 wxFont *result = 0 ;
14771 bool temp1 = false ;
14772 PyObject * obj0 = 0 ;
14773 char * kwnames[] = {
14774 (char *) "info", NULL
14775 };
14776
14777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14778 {
14779 arg1 = wxString_in_helper(obj0);
14780 if (arg1 == NULL) SWIG_fail;
14781 temp1 = true;
14782 }
14783 {
14784 if (!wxPyCheckForApp()) SWIG_fail;
14785 PyThreadState* __tstate = wxPyBeginAllowThreads();
14786 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14787 wxPyEndAllowThreads(__tstate);
14788 if (PyErr_Occurred()) SWIG_fail;
14789 }
14790 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14791 {
14792 if (temp1)
14793 delete arg1;
14794 }
14795 return resultobj;
14796 fail:
14797 {
14798 if (temp1)
14799 delete arg1;
14800 }
14801 return NULL;
14802 }
14803
14804
14805 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14806 PyObject *resultobj = 0;
14807 int arg1 ;
14808 wxFontFamily arg2 ;
14809 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14810 wxString const &arg4_defvalue = wxPyEmptyString ;
14811 wxString *arg4 = (wxString *) &arg4_defvalue ;
14812 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14813 wxFont *result = 0 ;
14814 int val1 ;
14815 int ecode1 = 0 ;
14816 int val2 ;
14817 int ecode2 = 0 ;
14818 int val3 ;
14819 int ecode3 = 0 ;
14820 bool temp4 = false ;
14821 int val5 ;
14822 int ecode5 = 0 ;
14823 PyObject * obj0 = 0 ;
14824 PyObject * obj1 = 0 ;
14825 PyObject * obj2 = 0 ;
14826 PyObject * obj3 = 0 ;
14827 PyObject * obj4 = 0 ;
14828 char * kwnames[] = {
14829 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14830 };
14831
14832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14833 ecode1 = SWIG_AsVal_int(obj0, &val1);
14834 if (!SWIG_IsOK(ecode1)) {
14835 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14836 }
14837 arg1 = static_cast< int >(val1);
14838 ecode2 = SWIG_AsVal_int(obj1, &val2);
14839 if (!SWIG_IsOK(ecode2)) {
14840 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14841 }
14842 arg2 = static_cast< wxFontFamily >(val2);
14843 if (obj2) {
14844 ecode3 = SWIG_AsVal_int(obj2, &val3);
14845 if (!SWIG_IsOK(ecode3)) {
14846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14847 }
14848 arg3 = static_cast< int >(val3);
14849 }
14850 if (obj3) {
14851 {
14852 arg4 = wxString_in_helper(obj3);
14853 if (arg4 == NULL) SWIG_fail;
14854 temp4 = true;
14855 }
14856 }
14857 if (obj4) {
14858 ecode5 = SWIG_AsVal_int(obj4, &val5);
14859 if (!SWIG_IsOK(ecode5)) {
14860 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14861 }
14862 arg5 = static_cast< wxFontEncoding >(val5);
14863 }
14864 {
14865 if (!wxPyCheckForApp()) SWIG_fail;
14866 PyThreadState* __tstate = wxPyBeginAllowThreads();
14867 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14868 wxPyEndAllowThreads(__tstate);
14869 if (PyErr_Occurred()) SWIG_fail;
14870 }
14871 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14872 {
14873 if (temp4)
14874 delete arg4;
14875 }
14876 return resultobj;
14877 fail:
14878 {
14879 if (temp4)
14880 delete arg4;
14881 }
14882 return NULL;
14883 }
14884
14885
14886 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14887 PyObject *resultobj = 0;
14888 wxSize *arg1 = 0 ;
14889 int arg2 ;
14890 int arg3 ;
14891 int arg4 ;
14892 bool arg5 = (bool) false ;
14893 wxString const &arg6_defvalue = wxEmptyString ;
14894 wxString *arg6 = (wxString *) &arg6_defvalue ;
14895 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14896 wxFont *result = 0 ;
14897 wxSize temp1 ;
14898 int val2 ;
14899 int ecode2 = 0 ;
14900 int val3 ;
14901 int ecode3 = 0 ;
14902 int val4 ;
14903 int ecode4 = 0 ;
14904 bool val5 ;
14905 int ecode5 = 0 ;
14906 bool temp6 = false ;
14907 int val7 ;
14908 int ecode7 = 0 ;
14909 PyObject * obj0 = 0 ;
14910 PyObject * obj1 = 0 ;
14911 PyObject * obj2 = 0 ;
14912 PyObject * obj3 = 0 ;
14913 PyObject * obj4 = 0 ;
14914 PyObject * obj5 = 0 ;
14915 PyObject * obj6 = 0 ;
14916 char * kwnames[] = {
14917 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14918 };
14919
14920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14921 {
14922 arg1 = &temp1;
14923 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14924 }
14925 ecode2 = SWIG_AsVal_int(obj1, &val2);
14926 if (!SWIG_IsOK(ecode2)) {
14927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14928 }
14929 arg2 = static_cast< int >(val2);
14930 ecode3 = SWIG_AsVal_int(obj2, &val3);
14931 if (!SWIG_IsOK(ecode3)) {
14932 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14933 }
14934 arg3 = static_cast< int >(val3);
14935 ecode4 = SWIG_AsVal_int(obj3, &val4);
14936 if (!SWIG_IsOK(ecode4)) {
14937 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14938 }
14939 arg4 = static_cast< int >(val4);
14940 if (obj4) {
14941 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14942 if (!SWIG_IsOK(ecode5)) {
14943 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14944 }
14945 arg5 = static_cast< bool >(val5);
14946 }
14947 if (obj5) {
14948 {
14949 arg6 = wxString_in_helper(obj5);
14950 if (arg6 == NULL) SWIG_fail;
14951 temp6 = true;
14952 }
14953 }
14954 if (obj6) {
14955 ecode7 = SWIG_AsVal_int(obj6, &val7);
14956 if (!SWIG_IsOK(ecode7)) {
14957 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14958 }
14959 arg7 = static_cast< wxFontEncoding >(val7);
14960 }
14961 {
14962 if (!wxPyCheckForApp()) SWIG_fail;
14963 PyThreadState* __tstate = wxPyBeginAllowThreads();
14964 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14965 wxPyEndAllowThreads(__tstate);
14966 if (PyErr_Occurred()) SWIG_fail;
14967 }
14968 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14969 {
14970 if (temp6)
14971 delete arg6;
14972 }
14973 return resultobj;
14974 fail:
14975 {
14976 if (temp6)
14977 delete arg6;
14978 }
14979 return NULL;
14980 }
14981
14982
14983 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14984 PyObject *resultobj = 0;
14985 wxSize *arg1 = 0 ;
14986 wxFontFamily arg2 ;
14987 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14988 wxString const &arg4_defvalue = wxEmptyString ;
14989 wxString *arg4 = (wxString *) &arg4_defvalue ;
14990 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14991 wxFont *result = 0 ;
14992 wxSize temp1 ;
14993 int val2 ;
14994 int ecode2 = 0 ;
14995 int val3 ;
14996 int ecode3 = 0 ;
14997 bool temp4 = false ;
14998 int val5 ;
14999 int ecode5 = 0 ;
15000 PyObject * obj0 = 0 ;
15001 PyObject * obj1 = 0 ;
15002 PyObject * obj2 = 0 ;
15003 PyObject * obj3 = 0 ;
15004 PyObject * obj4 = 0 ;
15005 char * kwnames[] = {
15006 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
15007 };
15008
15009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15010 {
15011 arg1 = &temp1;
15012 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
15013 }
15014 ecode2 = SWIG_AsVal_int(obj1, &val2);
15015 if (!SWIG_IsOK(ecode2)) {
15016 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
15017 }
15018 arg2 = static_cast< wxFontFamily >(val2);
15019 if (obj2) {
15020 ecode3 = SWIG_AsVal_int(obj2, &val3);
15021 if (!SWIG_IsOK(ecode3)) {
15022 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
15023 }
15024 arg3 = static_cast< int >(val3);
15025 }
15026 if (obj3) {
15027 {
15028 arg4 = wxString_in_helper(obj3);
15029 if (arg4 == NULL) SWIG_fail;
15030 temp4 = true;
15031 }
15032 }
15033 if (obj4) {
15034 ecode5 = SWIG_AsVal_int(obj4, &val5);
15035 if (!SWIG_IsOK(ecode5)) {
15036 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
15037 }
15038 arg5 = static_cast< wxFontEncoding >(val5);
15039 }
15040 {
15041 if (!wxPyCheckForApp()) SWIG_fail;
15042 PyThreadState* __tstate = wxPyBeginAllowThreads();
15043 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
15044 wxPyEndAllowThreads(__tstate);
15045 if (PyErr_Occurred()) SWIG_fail;
15046 }
15047 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
15048 {
15049 if (temp4)
15050 delete arg4;
15051 }
15052 return resultobj;
15053 fail:
15054 {
15055 if (temp4)
15056 delete arg4;
15057 }
15058 return NULL;
15059 }
15060
15061
15062 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15063 PyObject *resultobj = 0;
15064 wxFont *arg1 = (wxFont *) 0 ;
15065 bool result;
15066 void *argp1 = 0 ;
15067 int res1 = 0 ;
15068 PyObject *swig_obj[1] ;
15069
15070 if (!args) SWIG_fail;
15071 swig_obj[0] = args;
15072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15073 if (!SWIG_IsOK(res1)) {
15074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
15075 }
15076 arg1 = reinterpret_cast< wxFont * >(argp1);
15077 {
15078 PyThreadState* __tstate = wxPyBeginAllowThreads();
15079 result = (bool)((wxFont const *)arg1)->IsOk();
15080 wxPyEndAllowThreads(__tstate);
15081 if (PyErr_Occurred()) SWIG_fail;
15082 }
15083 {
15084 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15085 }
15086 return resultobj;
15087 fail:
15088 return NULL;
15089 }
15090
15091
15092 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15093 PyObject *resultobj = 0;
15094 wxFont *arg1 = (wxFont *) 0 ;
15095 wxFont *arg2 = (wxFont *) 0 ;
15096 bool result;
15097 void *argp1 = 0 ;
15098 int res1 = 0 ;
15099 void *argp2 = 0 ;
15100 int res2 = 0 ;
15101 PyObject * obj0 = 0 ;
15102 PyObject * obj1 = 0 ;
15103 char * kwnames[] = {
15104 (char *) "self",(char *) "other", NULL
15105 };
15106
15107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
15108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15109 if (!SWIG_IsOK(res1)) {
15110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
15111 }
15112 arg1 = reinterpret_cast< wxFont * >(argp1);
15113 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
15114 if (!SWIG_IsOK(res2)) {
15115 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
15116 }
15117 arg2 = reinterpret_cast< wxFont * >(argp2);
15118 {
15119 PyThreadState* __tstate = wxPyBeginAllowThreads();
15120 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
15121 wxPyEndAllowThreads(__tstate);
15122 if (PyErr_Occurred()) SWIG_fail;
15123 }
15124 {
15125 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15126 }
15127 return resultobj;
15128 fail:
15129 return NULL;
15130 }
15131
15132
15133 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15134 PyObject *resultobj = 0;
15135 wxFont *arg1 = (wxFont *) 0 ;
15136 wxFont *arg2 = (wxFont *) 0 ;
15137 bool result;
15138 void *argp1 = 0 ;
15139 int res1 = 0 ;
15140 void *argp2 = 0 ;
15141 int res2 = 0 ;
15142 PyObject * obj0 = 0 ;
15143 PyObject * obj1 = 0 ;
15144 char * kwnames[] = {
15145 (char *) "self",(char *) "other", NULL
15146 };
15147
15148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
15149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15150 if (!SWIG_IsOK(res1)) {
15151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
15152 }
15153 arg1 = reinterpret_cast< wxFont * >(argp1);
15154 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
15155 if (!SWIG_IsOK(res2)) {
15156 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
15157 }
15158 arg2 = reinterpret_cast< wxFont * >(argp2);
15159 {
15160 PyThreadState* __tstate = wxPyBeginAllowThreads();
15161 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
15162 wxPyEndAllowThreads(__tstate);
15163 if (PyErr_Occurred()) SWIG_fail;
15164 }
15165 {
15166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15167 }
15168 return resultobj;
15169 fail:
15170 return NULL;
15171 }
15172
15173
15174 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15175 PyObject *resultobj = 0;
15176 wxFont *arg1 = (wxFont *) 0 ;
15177 int result;
15178 void *argp1 = 0 ;
15179 int res1 = 0 ;
15180 PyObject *swig_obj[1] ;
15181
15182 if (!args) SWIG_fail;
15183 swig_obj[0] = args;
15184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15185 if (!SWIG_IsOK(res1)) {
15186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
15187 }
15188 arg1 = reinterpret_cast< wxFont * >(argp1);
15189 {
15190 PyThreadState* __tstate = wxPyBeginAllowThreads();
15191 result = (int)((wxFont const *)arg1)->GetPointSize();
15192 wxPyEndAllowThreads(__tstate);
15193 if (PyErr_Occurred()) SWIG_fail;
15194 }
15195 resultobj = SWIG_From_int(static_cast< int >(result));
15196 return resultobj;
15197 fail:
15198 return NULL;
15199 }
15200
15201
15202 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15203 PyObject *resultobj = 0;
15204 wxFont *arg1 = (wxFont *) 0 ;
15205 wxSize result;
15206 void *argp1 = 0 ;
15207 int res1 = 0 ;
15208 PyObject *swig_obj[1] ;
15209
15210 if (!args) SWIG_fail;
15211 swig_obj[0] = args;
15212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15213 if (!SWIG_IsOK(res1)) {
15214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
15215 }
15216 arg1 = reinterpret_cast< wxFont * >(argp1);
15217 {
15218 PyThreadState* __tstate = wxPyBeginAllowThreads();
15219 result = ((wxFont const *)arg1)->GetPixelSize();
15220 wxPyEndAllowThreads(__tstate);
15221 if (PyErr_Occurred()) SWIG_fail;
15222 }
15223 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
15224 return resultobj;
15225 fail:
15226 return NULL;
15227 }
15228
15229
15230 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15231 PyObject *resultobj = 0;
15232 wxFont *arg1 = (wxFont *) 0 ;
15233 bool result;
15234 void *argp1 = 0 ;
15235 int res1 = 0 ;
15236 PyObject *swig_obj[1] ;
15237
15238 if (!args) SWIG_fail;
15239 swig_obj[0] = args;
15240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15241 if (!SWIG_IsOK(res1)) {
15242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
15243 }
15244 arg1 = reinterpret_cast< wxFont * >(argp1);
15245 {
15246 PyThreadState* __tstate = wxPyBeginAllowThreads();
15247 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
15248 wxPyEndAllowThreads(__tstate);
15249 if (PyErr_Occurred()) SWIG_fail;
15250 }
15251 {
15252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15253 }
15254 return resultobj;
15255 fail:
15256 return NULL;
15257 }
15258
15259
15260 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15261 PyObject *resultobj = 0;
15262 wxFont *arg1 = (wxFont *) 0 ;
15263 int result;
15264 void *argp1 = 0 ;
15265 int res1 = 0 ;
15266 PyObject *swig_obj[1] ;
15267
15268 if (!args) SWIG_fail;
15269 swig_obj[0] = args;
15270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15271 if (!SWIG_IsOK(res1)) {
15272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
15273 }
15274 arg1 = reinterpret_cast< wxFont * >(argp1);
15275 {
15276 PyThreadState* __tstate = wxPyBeginAllowThreads();
15277 result = (int)((wxFont const *)arg1)->GetFamily();
15278 wxPyEndAllowThreads(__tstate);
15279 if (PyErr_Occurred()) SWIG_fail;
15280 }
15281 resultobj = SWIG_From_int(static_cast< int >(result));
15282 return resultobj;
15283 fail:
15284 return NULL;
15285 }
15286
15287
15288 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15289 PyObject *resultobj = 0;
15290 wxFont *arg1 = (wxFont *) 0 ;
15291 int result;
15292 void *argp1 = 0 ;
15293 int res1 = 0 ;
15294 PyObject *swig_obj[1] ;
15295
15296 if (!args) SWIG_fail;
15297 swig_obj[0] = args;
15298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15299 if (!SWIG_IsOK(res1)) {
15300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
15301 }
15302 arg1 = reinterpret_cast< wxFont * >(argp1);
15303 {
15304 PyThreadState* __tstate = wxPyBeginAllowThreads();
15305 result = (int)((wxFont const *)arg1)->GetStyle();
15306 wxPyEndAllowThreads(__tstate);
15307 if (PyErr_Occurred()) SWIG_fail;
15308 }
15309 resultobj = SWIG_From_int(static_cast< int >(result));
15310 return resultobj;
15311 fail:
15312 return NULL;
15313 }
15314
15315
15316 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15317 PyObject *resultobj = 0;
15318 wxFont *arg1 = (wxFont *) 0 ;
15319 int result;
15320 void *argp1 = 0 ;
15321 int res1 = 0 ;
15322 PyObject *swig_obj[1] ;
15323
15324 if (!args) SWIG_fail;
15325 swig_obj[0] = args;
15326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15327 if (!SWIG_IsOK(res1)) {
15328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
15329 }
15330 arg1 = reinterpret_cast< wxFont * >(argp1);
15331 {
15332 PyThreadState* __tstate = wxPyBeginAllowThreads();
15333 result = (int)((wxFont const *)arg1)->GetWeight();
15334 wxPyEndAllowThreads(__tstate);
15335 if (PyErr_Occurred()) SWIG_fail;
15336 }
15337 resultobj = SWIG_From_int(static_cast< int >(result));
15338 return resultobj;
15339 fail:
15340 return NULL;
15341 }
15342
15343
15344 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15345 PyObject *resultobj = 0;
15346 wxFont *arg1 = (wxFont *) 0 ;
15347 bool result;
15348 void *argp1 = 0 ;
15349 int res1 = 0 ;
15350 PyObject *swig_obj[1] ;
15351
15352 if (!args) SWIG_fail;
15353 swig_obj[0] = args;
15354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15355 if (!SWIG_IsOK(res1)) {
15356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
15357 }
15358 arg1 = reinterpret_cast< wxFont * >(argp1);
15359 {
15360 PyThreadState* __tstate = wxPyBeginAllowThreads();
15361 result = (bool)((wxFont const *)arg1)->GetUnderlined();
15362 wxPyEndAllowThreads(__tstate);
15363 if (PyErr_Occurred()) SWIG_fail;
15364 }
15365 {
15366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15367 }
15368 return resultobj;
15369 fail:
15370 return NULL;
15371 }
15372
15373
15374 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15375 PyObject *resultobj = 0;
15376 wxFont *arg1 = (wxFont *) 0 ;
15377 wxString result;
15378 void *argp1 = 0 ;
15379 int res1 = 0 ;
15380 PyObject *swig_obj[1] ;
15381
15382 if (!args) SWIG_fail;
15383 swig_obj[0] = args;
15384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15385 if (!SWIG_IsOK(res1)) {
15386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
15387 }
15388 arg1 = reinterpret_cast< wxFont * >(argp1);
15389 {
15390 PyThreadState* __tstate = wxPyBeginAllowThreads();
15391 result = ((wxFont const *)arg1)->GetFaceName();
15392 wxPyEndAllowThreads(__tstate);
15393 if (PyErr_Occurred()) SWIG_fail;
15394 }
15395 {
15396 #if wxUSE_UNICODE
15397 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15398 #else
15399 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15400 #endif
15401 }
15402 return resultobj;
15403 fail:
15404 return NULL;
15405 }
15406
15407
15408 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15409 PyObject *resultobj = 0;
15410 wxFont *arg1 = (wxFont *) 0 ;
15411 wxFontEncoding result;
15412 void *argp1 = 0 ;
15413 int res1 = 0 ;
15414 PyObject *swig_obj[1] ;
15415
15416 if (!args) SWIG_fail;
15417 swig_obj[0] = args;
15418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15419 if (!SWIG_IsOK(res1)) {
15420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
15421 }
15422 arg1 = reinterpret_cast< wxFont * >(argp1);
15423 {
15424 PyThreadState* __tstate = wxPyBeginAllowThreads();
15425 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
15426 wxPyEndAllowThreads(__tstate);
15427 if (PyErr_Occurred()) SWIG_fail;
15428 }
15429 resultobj = SWIG_From_int(static_cast< int >(result));
15430 return resultobj;
15431 fail:
15432 return NULL;
15433 }
15434
15435
15436 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15437 PyObject *resultobj = 0;
15438 wxFont *arg1 = (wxFont *) 0 ;
15439 wxNativeFontInfo *result = 0 ;
15440 void *argp1 = 0 ;
15441 int res1 = 0 ;
15442 PyObject *swig_obj[1] ;
15443
15444 if (!args) SWIG_fail;
15445 swig_obj[0] = args;
15446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15447 if (!SWIG_IsOK(res1)) {
15448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
15449 }
15450 arg1 = reinterpret_cast< wxFont * >(argp1);
15451 {
15452 PyThreadState* __tstate = wxPyBeginAllowThreads();
15453 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
15454 wxPyEndAllowThreads(__tstate);
15455 if (PyErr_Occurred()) SWIG_fail;
15456 }
15457 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
15458 return resultobj;
15459 fail:
15460 return NULL;
15461 }
15462
15463
15464 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15465 PyObject *resultobj = 0;
15466 wxFont *arg1 = (wxFont *) 0 ;
15467 bool result;
15468 void *argp1 = 0 ;
15469 int res1 = 0 ;
15470 PyObject *swig_obj[1] ;
15471
15472 if (!args) SWIG_fail;
15473 swig_obj[0] = args;
15474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15475 if (!SWIG_IsOK(res1)) {
15476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
15477 }
15478 arg1 = reinterpret_cast< wxFont * >(argp1);
15479 {
15480 PyThreadState* __tstate = wxPyBeginAllowThreads();
15481 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
15482 wxPyEndAllowThreads(__tstate);
15483 if (PyErr_Occurred()) SWIG_fail;
15484 }
15485 {
15486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15487 }
15488 return resultobj;
15489 fail:
15490 return NULL;
15491 }
15492
15493
15494 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15495 PyObject *resultobj = 0;
15496 wxFont *arg1 = (wxFont *) 0 ;
15497 wxString result;
15498 void *argp1 = 0 ;
15499 int res1 = 0 ;
15500 PyObject *swig_obj[1] ;
15501
15502 if (!args) SWIG_fail;
15503 swig_obj[0] = args;
15504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15505 if (!SWIG_IsOK(res1)) {
15506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15507 }
15508 arg1 = reinterpret_cast< wxFont * >(argp1);
15509 {
15510 PyThreadState* __tstate = wxPyBeginAllowThreads();
15511 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
15512 wxPyEndAllowThreads(__tstate);
15513 if (PyErr_Occurred()) SWIG_fail;
15514 }
15515 {
15516 #if wxUSE_UNICODE
15517 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15518 #else
15519 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15520 #endif
15521 }
15522 return resultobj;
15523 fail:
15524 return NULL;
15525 }
15526
15527
15528 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15529 PyObject *resultobj = 0;
15530 wxFont *arg1 = (wxFont *) 0 ;
15531 wxString result;
15532 void *argp1 = 0 ;
15533 int res1 = 0 ;
15534 PyObject *swig_obj[1] ;
15535
15536 if (!args) SWIG_fail;
15537 swig_obj[0] = args;
15538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15539 if (!SWIG_IsOK(res1)) {
15540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15541 }
15542 arg1 = reinterpret_cast< wxFont * >(argp1);
15543 {
15544 PyThreadState* __tstate = wxPyBeginAllowThreads();
15545 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
15546 wxPyEndAllowThreads(__tstate);
15547 if (PyErr_Occurred()) SWIG_fail;
15548 }
15549 {
15550 #if wxUSE_UNICODE
15551 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15552 #else
15553 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15554 #endif
15555 }
15556 return resultobj;
15557 fail:
15558 return NULL;
15559 }
15560
15561
15562 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15563 PyObject *resultobj = 0;
15564 wxFont *arg1 = (wxFont *) 0 ;
15565 int arg2 ;
15566 void *argp1 = 0 ;
15567 int res1 = 0 ;
15568 int val2 ;
15569 int ecode2 = 0 ;
15570 PyObject * obj0 = 0 ;
15571 PyObject * obj1 = 0 ;
15572 char * kwnames[] = {
15573 (char *) "self",(char *) "pointSize", NULL
15574 };
15575
15576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
15577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15578 if (!SWIG_IsOK(res1)) {
15579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
15580 }
15581 arg1 = reinterpret_cast< wxFont * >(argp1);
15582 ecode2 = SWIG_AsVal_int(obj1, &val2);
15583 if (!SWIG_IsOK(ecode2)) {
15584 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
15585 }
15586 arg2 = static_cast< int >(val2);
15587 {
15588 PyThreadState* __tstate = wxPyBeginAllowThreads();
15589 (arg1)->SetPointSize(arg2);
15590 wxPyEndAllowThreads(__tstate);
15591 if (PyErr_Occurred()) SWIG_fail;
15592 }
15593 resultobj = SWIG_Py_Void();
15594 return resultobj;
15595 fail:
15596 return NULL;
15597 }
15598
15599
15600 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15601 PyObject *resultobj = 0;
15602 wxFont *arg1 = (wxFont *) 0 ;
15603 wxSize *arg2 = 0 ;
15604 void *argp1 = 0 ;
15605 int res1 = 0 ;
15606 wxSize temp2 ;
15607 PyObject * obj0 = 0 ;
15608 PyObject * obj1 = 0 ;
15609 char * kwnames[] = {
15610 (char *) "self",(char *) "pixelSize", NULL
15611 };
15612
15613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
15614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15615 if (!SWIG_IsOK(res1)) {
15616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
15617 }
15618 arg1 = reinterpret_cast< wxFont * >(argp1);
15619 {
15620 arg2 = &temp2;
15621 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15622 }
15623 {
15624 PyThreadState* __tstate = wxPyBeginAllowThreads();
15625 (arg1)->SetPixelSize((wxSize const &)*arg2);
15626 wxPyEndAllowThreads(__tstate);
15627 if (PyErr_Occurred()) SWIG_fail;
15628 }
15629 resultobj = SWIG_Py_Void();
15630 return resultobj;
15631 fail:
15632 return NULL;
15633 }
15634
15635
15636 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15637 PyObject *resultobj = 0;
15638 wxFont *arg1 = (wxFont *) 0 ;
15639 int arg2 ;
15640 void *argp1 = 0 ;
15641 int res1 = 0 ;
15642 int val2 ;
15643 int ecode2 = 0 ;
15644 PyObject * obj0 = 0 ;
15645 PyObject * obj1 = 0 ;
15646 char * kwnames[] = {
15647 (char *) "self",(char *) "family", NULL
15648 };
15649
15650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
15651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15652 if (!SWIG_IsOK(res1)) {
15653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
15654 }
15655 arg1 = reinterpret_cast< wxFont * >(argp1);
15656 ecode2 = SWIG_AsVal_int(obj1, &val2);
15657 if (!SWIG_IsOK(ecode2)) {
15658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
15659 }
15660 arg2 = static_cast< int >(val2);
15661 {
15662 PyThreadState* __tstate = wxPyBeginAllowThreads();
15663 (arg1)->SetFamily(arg2);
15664 wxPyEndAllowThreads(__tstate);
15665 if (PyErr_Occurred()) SWIG_fail;
15666 }
15667 resultobj = SWIG_Py_Void();
15668 return resultobj;
15669 fail:
15670 return NULL;
15671 }
15672
15673
15674 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15675 PyObject *resultobj = 0;
15676 wxFont *arg1 = (wxFont *) 0 ;
15677 int arg2 ;
15678 void *argp1 = 0 ;
15679 int res1 = 0 ;
15680 int val2 ;
15681 int ecode2 = 0 ;
15682 PyObject * obj0 = 0 ;
15683 PyObject * obj1 = 0 ;
15684 char * kwnames[] = {
15685 (char *) "self",(char *) "style", NULL
15686 };
15687
15688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
15689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15690 if (!SWIG_IsOK(res1)) {
15691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
15692 }
15693 arg1 = reinterpret_cast< wxFont * >(argp1);
15694 ecode2 = SWIG_AsVal_int(obj1, &val2);
15695 if (!SWIG_IsOK(ecode2)) {
15696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
15697 }
15698 arg2 = static_cast< int >(val2);
15699 {
15700 PyThreadState* __tstate = wxPyBeginAllowThreads();
15701 (arg1)->SetStyle(arg2);
15702 wxPyEndAllowThreads(__tstate);
15703 if (PyErr_Occurred()) SWIG_fail;
15704 }
15705 resultobj = SWIG_Py_Void();
15706 return resultobj;
15707 fail:
15708 return NULL;
15709 }
15710
15711
15712 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15713 PyObject *resultobj = 0;
15714 wxFont *arg1 = (wxFont *) 0 ;
15715 int arg2 ;
15716 void *argp1 = 0 ;
15717 int res1 = 0 ;
15718 int val2 ;
15719 int ecode2 = 0 ;
15720 PyObject * obj0 = 0 ;
15721 PyObject * obj1 = 0 ;
15722 char * kwnames[] = {
15723 (char *) "self",(char *) "weight", NULL
15724 };
15725
15726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15728 if (!SWIG_IsOK(res1)) {
15729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15730 }
15731 arg1 = reinterpret_cast< wxFont * >(argp1);
15732 ecode2 = SWIG_AsVal_int(obj1, &val2);
15733 if (!SWIG_IsOK(ecode2)) {
15734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15735 }
15736 arg2 = static_cast< int >(val2);
15737 {
15738 PyThreadState* __tstate = wxPyBeginAllowThreads();
15739 (arg1)->SetWeight(arg2);
15740 wxPyEndAllowThreads(__tstate);
15741 if (PyErr_Occurred()) SWIG_fail;
15742 }
15743 resultobj = SWIG_Py_Void();
15744 return resultobj;
15745 fail:
15746 return NULL;
15747 }
15748
15749
15750 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15751 PyObject *resultobj = 0;
15752 wxFont *arg1 = (wxFont *) 0 ;
15753 wxString *arg2 = 0 ;
15754 bool result;
15755 void *argp1 = 0 ;
15756 int res1 = 0 ;
15757 bool temp2 = false ;
15758 PyObject * obj0 = 0 ;
15759 PyObject * obj1 = 0 ;
15760 char * kwnames[] = {
15761 (char *) "self",(char *) "faceName", NULL
15762 };
15763
15764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15766 if (!SWIG_IsOK(res1)) {
15767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15768 }
15769 arg1 = reinterpret_cast< wxFont * >(argp1);
15770 {
15771 arg2 = wxString_in_helper(obj1);
15772 if (arg2 == NULL) SWIG_fail;
15773 temp2 = true;
15774 }
15775 {
15776 PyThreadState* __tstate = wxPyBeginAllowThreads();
15777 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
15778 wxPyEndAllowThreads(__tstate);
15779 if (PyErr_Occurred()) SWIG_fail;
15780 }
15781 {
15782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15783 }
15784 {
15785 if (temp2)
15786 delete arg2;
15787 }
15788 return resultobj;
15789 fail:
15790 {
15791 if (temp2)
15792 delete arg2;
15793 }
15794 return NULL;
15795 }
15796
15797
15798 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15799 PyObject *resultobj = 0;
15800 wxFont *arg1 = (wxFont *) 0 ;
15801 bool arg2 ;
15802 void *argp1 = 0 ;
15803 int res1 = 0 ;
15804 bool val2 ;
15805 int ecode2 = 0 ;
15806 PyObject * obj0 = 0 ;
15807 PyObject * obj1 = 0 ;
15808 char * kwnames[] = {
15809 (char *) "self",(char *) "underlined", NULL
15810 };
15811
15812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15814 if (!SWIG_IsOK(res1)) {
15815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15816 }
15817 arg1 = reinterpret_cast< wxFont * >(argp1);
15818 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15819 if (!SWIG_IsOK(ecode2)) {
15820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15821 }
15822 arg2 = static_cast< bool >(val2);
15823 {
15824 PyThreadState* __tstate = wxPyBeginAllowThreads();
15825 (arg1)->SetUnderlined(arg2);
15826 wxPyEndAllowThreads(__tstate);
15827 if (PyErr_Occurred()) SWIG_fail;
15828 }
15829 resultobj = SWIG_Py_Void();
15830 return resultobj;
15831 fail:
15832 return NULL;
15833 }
15834
15835
15836 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15837 PyObject *resultobj = 0;
15838 wxFont *arg1 = (wxFont *) 0 ;
15839 wxFontEncoding arg2 ;
15840 void *argp1 = 0 ;
15841 int res1 = 0 ;
15842 int val2 ;
15843 int ecode2 = 0 ;
15844 PyObject * obj0 = 0 ;
15845 PyObject * obj1 = 0 ;
15846 char * kwnames[] = {
15847 (char *) "self",(char *) "encoding", NULL
15848 };
15849
15850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15852 if (!SWIG_IsOK(res1)) {
15853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15854 }
15855 arg1 = reinterpret_cast< wxFont * >(argp1);
15856 ecode2 = SWIG_AsVal_int(obj1, &val2);
15857 if (!SWIG_IsOK(ecode2)) {
15858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15859 }
15860 arg2 = static_cast< wxFontEncoding >(val2);
15861 {
15862 PyThreadState* __tstate = wxPyBeginAllowThreads();
15863 (arg1)->SetEncoding(arg2);
15864 wxPyEndAllowThreads(__tstate);
15865 if (PyErr_Occurred()) SWIG_fail;
15866 }
15867 resultobj = SWIG_Py_Void();
15868 return resultobj;
15869 fail:
15870 return NULL;
15871 }
15872
15873
15874 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15875 PyObject *resultobj = 0;
15876 wxFont *arg1 = (wxFont *) 0 ;
15877 wxNativeFontInfo *arg2 = 0 ;
15878 void *argp1 = 0 ;
15879 int res1 = 0 ;
15880 void *argp2 = 0 ;
15881 int res2 = 0 ;
15882 PyObject * obj0 = 0 ;
15883 PyObject * obj1 = 0 ;
15884 char * kwnames[] = {
15885 (char *) "self",(char *) "info", NULL
15886 };
15887
15888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15890 if (!SWIG_IsOK(res1)) {
15891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15892 }
15893 arg1 = reinterpret_cast< wxFont * >(argp1);
15894 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15895 if (!SWIG_IsOK(res2)) {
15896 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15897 }
15898 if (!argp2) {
15899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15900 }
15901 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15902 {
15903 PyThreadState* __tstate = wxPyBeginAllowThreads();
15904 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15905 wxPyEndAllowThreads(__tstate);
15906 if (PyErr_Occurred()) SWIG_fail;
15907 }
15908 resultobj = SWIG_Py_Void();
15909 return resultobj;
15910 fail:
15911 return NULL;
15912 }
15913
15914
15915 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15916 PyObject *resultobj = 0;
15917 wxFont *arg1 = (wxFont *) 0 ;
15918 wxString *arg2 = 0 ;
15919 bool result;
15920 void *argp1 = 0 ;
15921 int res1 = 0 ;
15922 bool temp2 = false ;
15923 PyObject * obj0 = 0 ;
15924 PyObject * obj1 = 0 ;
15925 char * kwnames[] = {
15926 (char *) "self",(char *) "info", NULL
15927 };
15928
15929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15931 if (!SWIG_IsOK(res1)) {
15932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15933 }
15934 arg1 = reinterpret_cast< wxFont * >(argp1);
15935 {
15936 arg2 = wxString_in_helper(obj1);
15937 if (arg2 == NULL) SWIG_fail;
15938 temp2 = true;
15939 }
15940 {
15941 PyThreadState* __tstate = wxPyBeginAllowThreads();
15942 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15943 wxPyEndAllowThreads(__tstate);
15944 if (PyErr_Occurred()) SWIG_fail;
15945 }
15946 {
15947 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15948 }
15949 {
15950 if (temp2)
15951 delete arg2;
15952 }
15953 return resultobj;
15954 fail:
15955 {
15956 if (temp2)
15957 delete arg2;
15958 }
15959 return NULL;
15960 }
15961
15962
15963 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15964 PyObject *resultobj = 0;
15965 wxFont *arg1 = (wxFont *) 0 ;
15966 wxString *arg2 = 0 ;
15967 bool result;
15968 void *argp1 = 0 ;
15969 int res1 = 0 ;
15970 bool temp2 = false ;
15971 PyObject * obj0 = 0 ;
15972 PyObject * obj1 = 0 ;
15973 char * kwnames[] = {
15974 (char *) "self",(char *) "info", NULL
15975 };
15976
15977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15979 if (!SWIG_IsOK(res1)) {
15980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15981 }
15982 arg1 = reinterpret_cast< wxFont * >(argp1);
15983 {
15984 arg2 = wxString_in_helper(obj1);
15985 if (arg2 == NULL) SWIG_fail;
15986 temp2 = true;
15987 }
15988 {
15989 PyThreadState* __tstate = wxPyBeginAllowThreads();
15990 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15991 wxPyEndAllowThreads(__tstate);
15992 if (PyErr_Occurred()) SWIG_fail;
15993 }
15994 {
15995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15996 }
15997 {
15998 if (temp2)
15999 delete arg2;
16000 }
16001 return resultobj;
16002 fail:
16003 {
16004 if (temp2)
16005 delete arg2;
16006 }
16007 return NULL;
16008 }
16009
16010
16011 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16012 PyObject *resultobj = 0;
16013 wxFont *arg1 = (wxFont *) 0 ;
16014 wxString result;
16015 void *argp1 = 0 ;
16016 int res1 = 0 ;
16017 PyObject *swig_obj[1] ;
16018
16019 if (!args) SWIG_fail;
16020 swig_obj[0] = args;
16021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
16022 if (!SWIG_IsOK(res1)) {
16023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
16024 }
16025 arg1 = reinterpret_cast< wxFont * >(argp1);
16026 {
16027 PyThreadState* __tstate = wxPyBeginAllowThreads();
16028 result = ((wxFont const *)arg1)->GetFamilyString();
16029 wxPyEndAllowThreads(__tstate);
16030 if (PyErr_Occurred()) SWIG_fail;
16031 }
16032 {
16033 #if wxUSE_UNICODE
16034 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16035 #else
16036 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16037 #endif
16038 }
16039 return resultobj;
16040 fail:
16041 return NULL;
16042 }
16043
16044
16045 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16046 PyObject *resultobj = 0;
16047 wxFont *arg1 = (wxFont *) 0 ;
16048 wxString result;
16049 void *argp1 = 0 ;
16050 int res1 = 0 ;
16051 PyObject *swig_obj[1] ;
16052
16053 if (!args) SWIG_fail;
16054 swig_obj[0] = args;
16055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
16056 if (!SWIG_IsOK(res1)) {
16057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
16058 }
16059 arg1 = reinterpret_cast< wxFont * >(argp1);
16060 {
16061 PyThreadState* __tstate = wxPyBeginAllowThreads();
16062 result = ((wxFont const *)arg1)->GetStyleString();
16063 wxPyEndAllowThreads(__tstate);
16064 if (PyErr_Occurred()) SWIG_fail;
16065 }
16066 {
16067 #if wxUSE_UNICODE
16068 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16069 #else
16070 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16071 #endif
16072 }
16073 return resultobj;
16074 fail:
16075 return NULL;
16076 }
16077
16078
16079 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16080 PyObject *resultobj = 0;
16081 wxFont *arg1 = (wxFont *) 0 ;
16082 wxString result;
16083 void *argp1 = 0 ;
16084 int res1 = 0 ;
16085 PyObject *swig_obj[1] ;
16086
16087 if (!args) SWIG_fail;
16088 swig_obj[0] = args;
16089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
16090 if (!SWIG_IsOK(res1)) {
16091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
16092 }
16093 arg1 = reinterpret_cast< wxFont * >(argp1);
16094 {
16095 PyThreadState* __tstate = wxPyBeginAllowThreads();
16096 result = ((wxFont const *)arg1)->GetWeightString();
16097 wxPyEndAllowThreads(__tstate);
16098 if (PyErr_Occurred()) SWIG_fail;
16099 }
16100 {
16101 #if wxUSE_UNICODE
16102 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16103 #else
16104 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16105 #endif
16106 }
16107 return resultobj;
16108 fail:
16109 return NULL;
16110 }
16111
16112
16113 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16114 PyObject *resultobj = 0;
16115 wxFont *arg1 = (wxFont *) 0 ;
16116 bool arg2 = (bool) true ;
16117 void *argp1 = 0 ;
16118 int res1 = 0 ;
16119 bool val2 ;
16120 int ecode2 = 0 ;
16121 PyObject * obj0 = 0 ;
16122 PyObject * obj1 = 0 ;
16123 char * kwnames[] = {
16124 (char *) "self",(char *) "no", NULL
16125 };
16126
16127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
16128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
16129 if (!SWIG_IsOK(res1)) {
16130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
16131 }
16132 arg1 = reinterpret_cast< wxFont * >(argp1);
16133 if (obj1) {
16134 ecode2 = SWIG_AsVal_bool(obj1, &val2);
16135 if (!SWIG_IsOK(ecode2)) {
16136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
16137 }
16138 arg2 = static_cast< bool >(val2);
16139 }
16140 {
16141 PyThreadState* __tstate = wxPyBeginAllowThreads();
16142 (arg1)->SetNoAntiAliasing(arg2);
16143 wxPyEndAllowThreads(__tstate);
16144 if (PyErr_Occurred()) SWIG_fail;
16145 }
16146 resultobj = SWIG_Py_Void();
16147 return resultobj;
16148 fail:
16149 return NULL;
16150 }
16151
16152
16153 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16154 PyObject *resultobj = 0;
16155 wxFont *arg1 = (wxFont *) 0 ;
16156 bool result;
16157 void *argp1 = 0 ;
16158 int res1 = 0 ;
16159 PyObject *swig_obj[1] ;
16160
16161 if (!args) SWIG_fail;
16162 swig_obj[0] = args;
16163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
16164 if (!SWIG_IsOK(res1)) {
16165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
16166 }
16167 arg1 = reinterpret_cast< wxFont * >(argp1);
16168 {
16169 PyThreadState* __tstate = wxPyBeginAllowThreads();
16170 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
16171 wxPyEndAllowThreads(__tstate);
16172 if (PyErr_Occurred()) SWIG_fail;
16173 }
16174 {
16175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16176 }
16177 return resultobj;
16178 fail:
16179 return NULL;
16180 }
16181
16182
16183 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16184 PyObject *resultobj = 0;
16185 wxFontEncoding result;
16186
16187 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
16188 {
16189 if (!wxPyCheckForApp()) SWIG_fail;
16190 PyThreadState* __tstate = wxPyBeginAllowThreads();
16191 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
16192 wxPyEndAllowThreads(__tstate);
16193 if (PyErr_Occurred()) SWIG_fail;
16194 }
16195 resultobj = SWIG_From_int(static_cast< int >(result));
16196 return resultobj;
16197 fail:
16198 return NULL;
16199 }
16200
16201
16202 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16203 PyObject *resultobj = 0;
16204 wxFontEncoding arg1 ;
16205 int val1 ;
16206 int ecode1 = 0 ;
16207 PyObject * obj0 = 0 ;
16208 char * kwnames[] = {
16209 (char *) "encoding", NULL
16210 };
16211
16212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
16213 ecode1 = SWIG_AsVal_int(obj0, &val1);
16214 if (!SWIG_IsOK(ecode1)) {
16215 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16216 }
16217 arg1 = static_cast< wxFontEncoding >(val1);
16218 {
16219 if (!wxPyCheckForApp()) SWIG_fail;
16220 PyThreadState* __tstate = wxPyBeginAllowThreads();
16221 wxFont::SetDefaultEncoding(arg1);
16222 wxPyEndAllowThreads(__tstate);
16223 if (PyErr_Occurred()) SWIG_fail;
16224 }
16225 resultobj = SWIG_Py_Void();
16226 return resultobj;
16227 fail:
16228 return NULL;
16229 }
16230
16231
16232 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16233 PyObject *obj;
16234 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16235 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
16236 return SWIG_Py_Void();
16237 }
16238
16239 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16240 return SWIG_Python_InitShadowInstance(args);
16241 }
16242
16243 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16244 PyObject *resultobj = 0;
16245 wxPyFontEnumerator *result = 0 ;
16246
16247 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
16248 {
16249 if (!wxPyCheckForApp()) SWIG_fail;
16250 PyThreadState* __tstate = wxPyBeginAllowThreads();
16251 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
16252 wxPyEndAllowThreads(__tstate);
16253 if (PyErr_Occurred()) SWIG_fail;
16254 }
16255 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
16256 return resultobj;
16257 fail:
16258 return NULL;
16259 }
16260
16261
16262 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16263 PyObject *resultobj = 0;
16264 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16265 void *argp1 = 0 ;
16266 int res1 = 0 ;
16267 PyObject *swig_obj[1] ;
16268
16269 if (!args) SWIG_fail;
16270 swig_obj[0] = args;
16271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
16272 if (!SWIG_IsOK(res1)) {
16273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16274 }
16275 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16276 {
16277 PyThreadState* __tstate = wxPyBeginAllowThreads();
16278 delete arg1;
16279
16280 wxPyEndAllowThreads(__tstate);
16281 if (PyErr_Occurred()) SWIG_fail;
16282 }
16283 resultobj = SWIG_Py_Void();
16284 return resultobj;
16285 fail:
16286 return NULL;
16287 }
16288
16289
16290 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16291 PyObject *resultobj = 0;
16292 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16293 PyObject *arg2 = (PyObject *) 0 ;
16294 PyObject *arg3 = (PyObject *) 0 ;
16295 int arg4 = (int) 0 ;
16296 void *argp1 = 0 ;
16297 int res1 = 0 ;
16298 int val4 ;
16299 int ecode4 = 0 ;
16300 PyObject * obj0 = 0 ;
16301 PyObject * obj1 = 0 ;
16302 PyObject * obj2 = 0 ;
16303 PyObject * obj3 = 0 ;
16304 char * kwnames[] = {
16305 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
16306 };
16307
16308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16310 if (!SWIG_IsOK(res1)) {
16311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16312 }
16313 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16314 arg2 = obj1;
16315 arg3 = obj2;
16316 if (obj3) {
16317 ecode4 = SWIG_AsVal_int(obj3, &val4);
16318 if (!SWIG_IsOK(ecode4)) {
16319 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "int""'");
16320 }
16321 arg4 = static_cast< int >(val4);
16322 }
16323 {
16324 PyThreadState* __tstate = wxPyBeginAllowThreads();
16325 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
16326 wxPyEndAllowThreads(__tstate);
16327 if (PyErr_Occurred()) SWIG_fail;
16328 }
16329 resultobj = SWIG_Py_Void();
16330 return resultobj;
16331 fail:
16332 return NULL;
16333 }
16334
16335
16336 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16337 PyObject *resultobj = 0;
16338 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16339 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
16340 bool arg3 = (bool) false ;
16341 bool result;
16342 void *argp1 = 0 ;
16343 int res1 = 0 ;
16344 int val2 ;
16345 int ecode2 = 0 ;
16346 bool val3 ;
16347 int ecode3 = 0 ;
16348 PyObject * obj0 = 0 ;
16349 PyObject * obj1 = 0 ;
16350 PyObject * obj2 = 0 ;
16351 char * kwnames[] = {
16352 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
16353 };
16354
16355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16357 if (!SWIG_IsOK(res1)) {
16358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16359 }
16360 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16361 if (obj1) {
16362 ecode2 = SWIG_AsVal_int(obj1, &val2);
16363 if (!SWIG_IsOK(ecode2)) {
16364 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16365 }
16366 arg2 = static_cast< wxFontEncoding >(val2);
16367 }
16368 if (obj2) {
16369 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16370 if (!SWIG_IsOK(ecode3)) {
16371 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
16372 }
16373 arg3 = static_cast< bool >(val3);
16374 }
16375 {
16376 PyThreadState* __tstate = wxPyBeginAllowThreads();
16377 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
16378 wxPyEndAllowThreads(__tstate);
16379 if (PyErr_Occurred()) SWIG_fail;
16380 }
16381 {
16382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16383 }
16384 return resultobj;
16385 fail:
16386 return NULL;
16387 }
16388
16389
16390 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16391 PyObject *resultobj = 0;
16392 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
16393 wxString const &arg2_defvalue = wxPyEmptyString ;
16394 wxString *arg2 = (wxString *) &arg2_defvalue ;
16395 bool result;
16396 void *argp1 = 0 ;
16397 int res1 = 0 ;
16398 bool temp2 = false ;
16399 PyObject * obj0 = 0 ;
16400 PyObject * obj1 = 0 ;
16401 char * kwnames[] = {
16402 (char *) "self",(char *) "facename", NULL
16403 };
16404
16405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
16406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
16407 if (!SWIG_IsOK(res1)) {
16408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
16409 }
16410 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
16411 if (obj1) {
16412 {
16413 arg2 = wxString_in_helper(obj1);
16414 if (arg2 == NULL) SWIG_fail;
16415 temp2 = true;
16416 }
16417 }
16418 {
16419 PyThreadState* __tstate = wxPyBeginAllowThreads();
16420 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
16421 wxPyEndAllowThreads(__tstate);
16422 if (PyErr_Occurred()) SWIG_fail;
16423 }
16424 {
16425 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16426 }
16427 {
16428 if (temp2)
16429 delete arg2;
16430 }
16431 return resultobj;
16432 fail:
16433 {
16434 if (temp2)
16435 delete arg2;
16436 }
16437 return NULL;
16438 }
16439
16440
16441 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16442 PyObject *resultobj = 0;
16443 PyObject *result = 0 ;
16444
16445 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
16446 {
16447 PyThreadState* __tstate = wxPyBeginAllowThreads();
16448 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
16449 wxPyEndAllowThreads(__tstate);
16450 if (PyErr_Occurred()) SWIG_fail;
16451 }
16452 resultobj = result;
16453 return resultobj;
16454 fail:
16455 return NULL;
16456 }
16457
16458
16459 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16460 PyObject *resultobj = 0;
16461 PyObject *result = 0 ;
16462
16463 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
16464 {
16465 PyThreadState* __tstate = wxPyBeginAllowThreads();
16466 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
16467 wxPyEndAllowThreads(__tstate);
16468 if (PyErr_Occurred()) SWIG_fail;
16469 }
16470 resultobj = result;
16471 return resultobj;
16472 fail:
16473 return NULL;
16474 }
16475
16476
16477 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16478 PyObject *resultobj = 0;
16479 wxString *arg1 = 0 ;
16480 bool result;
16481 bool temp1 = false ;
16482 PyObject * obj0 = 0 ;
16483 char * kwnames[] = {
16484 (char *) "str", NULL
16485 };
16486
16487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
16488 {
16489 arg1 = wxString_in_helper(obj0);
16490 if (arg1 == NULL) SWIG_fail;
16491 temp1 = true;
16492 }
16493 {
16494 PyThreadState* __tstate = wxPyBeginAllowThreads();
16495 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
16496 wxPyEndAllowThreads(__tstate);
16497 if (PyErr_Occurred()) SWIG_fail;
16498 }
16499 {
16500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16501 }
16502 {
16503 if (temp1)
16504 delete arg1;
16505 }
16506 return resultobj;
16507 fail:
16508 {
16509 if (temp1)
16510 delete arg1;
16511 }
16512 return NULL;
16513 }
16514
16515
16516 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16517 PyObject *obj;
16518 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16519 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
16520 return SWIG_Py_Void();
16521 }
16522
16523 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16524 return SWIG_Python_InitShadowInstance(args);
16525 }
16526
16527 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16528 PyObject *resultobj = 0;
16529 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16530 int arg2 ;
16531 void *argp1 = 0 ;
16532 int res1 = 0 ;
16533 int val2 ;
16534 int ecode2 = 0 ;
16535 PyObject *swig_obj[2] ;
16536
16537 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
16538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16539 if (!SWIG_IsOK(res1)) {
16540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16541 }
16542 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16543 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16544 if (!SWIG_IsOK(ecode2)) {
16545 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
16546 }
16547 arg2 = static_cast< int >(val2);
16548 if (arg1) (arg1)->Language = arg2;
16549
16550 resultobj = SWIG_Py_Void();
16551 return resultobj;
16552 fail:
16553 return NULL;
16554 }
16555
16556
16557 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16558 PyObject *resultobj = 0;
16559 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16560 int result;
16561 void *argp1 = 0 ;
16562 int res1 = 0 ;
16563 PyObject *swig_obj[1] ;
16564
16565 if (!args) SWIG_fail;
16566 swig_obj[0] = args;
16567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16568 if (!SWIG_IsOK(res1)) {
16569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16570 }
16571 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16572 result = (int) ((arg1)->Language);
16573 resultobj = SWIG_From_int(static_cast< int >(result));
16574 return resultobj;
16575 fail:
16576 return NULL;
16577 }
16578
16579
16580 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16581 PyObject *resultobj = 0;
16582 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16583 wxString *arg2 = (wxString *) 0 ;
16584 void *argp1 = 0 ;
16585 int res1 = 0 ;
16586 bool temp2 = false ;
16587 PyObject *swig_obj[2] ;
16588
16589 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
16590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16591 if (!SWIG_IsOK(res1)) {
16592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16593 }
16594 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16595 {
16596 arg2 = wxString_in_helper(swig_obj[1]);
16597 if (arg2 == NULL) SWIG_fail;
16598 temp2 = true;
16599 }
16600 if (arg1) (arg1)->CanonicalName = *arg2;
16601
16602 resultobj = SWIG_Py_Void();
16603 {
16604 if (temp2)
16605 delete arg2;
16606 }
16607 return resultobj;
16608 fail:
16609 {
16610 if (temp2)
16611 delete arg2;
16612 }
16613 return NULL;
16614 }
16615
16616
16617 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16618 PyObject *resultobj = 0;
16619 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16620 wxString *result = 0 ;
16621 void *argp1 = 0 ;
16622 int res1 = 0 ;
16623 PyObject *swig_obj[1] ;
16624
16625 if (!args) SWIG_fail;
16626 swig_obj[0] = args;
16627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16628 if (!SWIG_IsOK(res1)) {
16629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16630 }
16631 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16632 result = (wxString *)& ((arg1)->CanonicalName);
16633 {
16634 #if wxUSE_UNICODE
16635 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16636 #else
16637 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16638 #endif
16639 }
16640 return resultobj;
16641 fail:
16642 return NULL;
16643 }
16644
16645
16646 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16647 PyObject *resultobj = 0;
16648 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16649 wxString *arg2 = (wxString *) 0 ;
16650 void *argp1 = 0 ;
16651 int res1 = 0 ;
16652 bool temp2 = false ;
16653 PyObject *swig_obj[2] ;
16654
16655 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
16656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16657 if (!SWIG_IsOK(res1)) {
16658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16659 }
16660 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16661 {
16662 arg2 = wxString_in_helper(swig_obj[1]);
16663 if (arg2 == NULL) SWIG_fail;
16664 temp2 = true;
16665 }
16666 if (arg1) (arg1)->Description = *arg2;
16667
16668 resultobj = SWIG_Py_Void();
16669 {
16670 if (temp2)
16671 delete arg2;
16672 }
16673 return resultobj;
16674 fail:
16675 {
16676 if (temp2)
16677 delete arg2;
16678 }
16679 return NULL;
16680 }
16681
16682
16683 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16684 PyObject *resultobj = 0;
16685 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16686 wxString *result = 0 ;
16687 void *argp1 = 0 ;
16688 int res1 = 0 ;
16689 PyObject *swig_obj[1] ;
16690
16691 if (!args) SWIG_fail;
16692 swig_obj[0] = args;
16693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16694 if (!SWIG_IsOK(res1)) {
16695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16696 }
16697 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16698 result = (wxString *)& ((arg1)->Description);
16699 {
16700 #if wxUSE_UNICODE
16701 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16702 #else
16703 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16704 #endif
16705 }
16706 return resultobj;
16707 fail:
16708 return NULL;
16709 }
16710
16711
16712 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16713 PyObject *obj;
16714 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16715 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
16716 return SWIG_Py_Void();
16717 }
16718
16719 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16720 PyObject *resultobj = 0;
16721 int arg1 = (int) -1 ;
16722 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16723 wxLocale *result = 0 ;
16724 int val1 ;
16725 int ecode1 = 0 ;
16726 int val2 ;
16727 int ecode2 = 0 ;
16728 PyObject * obj0 = 0 ;
16729 PyObject * obj1 = 0 ;
16730 char * kwnames[] = {
16731 (char *) "language",(char *) "flags", NULL
16732 };
16733
16734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16735 if (obj0) {
16736 ecode1 = SWIG_AsVal_int(obj0, &val1);
16737 if (!SWIG_IsOK(ecode1)) {
16738 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16739 }
16740 arg1 = static_cast< int >(val1);
16741 }
16742 if (obj1) {
16743 ecode2 = SWIG_AsVal_int(obj1, &val2);
16744 if (!SWIG_IsOK(ecode2)) {
16745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16746 }
16747 arg2 = static_cast< int >(val2);
16748 }
16749 {
16750 PyThreadState* __tstate = wxPyBeginAllowThreads();
16751 result = (wxLocale *)new_wxLocale(arg1,arg2);
16752 wxPyEndAllowThreads(__tstate);
16753 if (PyErr_Occurred()) SWIG_fail;
16754 }
16755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16756 return resultobj;
16757 fail:
16758 return NULL;
16759 }
16760
16761
16762 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16763 PyObject *resultobj = 0;
16764 wxLocale *arg1 = (wxLocale *) 0 ;
16765 void *argp1 = 0 ;
16766 int res1 = 0 ;
16767 PyObject *swig_obj[1] ;
16768
16769 if (!args) SWIG_fail;
16770 swig_obj[0] = args;
16771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16772 if (!SWIG_IsOK(res1)) {
16773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16774 }
16775 arg1 = reinterpret_cast< wxLocale * >(argp1);
16776 {
16777 PyThreadState* __tstate = wxPyBeginAllowThreads();
16778 delete arg1;
16779
16780 wxPyEndAllowThreads(__tstate);
16781 if (PyErr_Occurred()) SWIG_fail;
16782 }
16783 resultobj = SWIG_Py_Void();
16784 return resultobj;
16785 fail:
16786 return NULL;
16787 }
16788
16789
16790 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16791 PyObject *resultobj = 0;
16792 wxLocale *arg1 = (wxLocale *) 0 ;
16793 wxString *arg2 = 0 ;
16794 wxString const &arg3_defvalue = wxPyEmptyString ;
16795 wxString *arg3 = (wxString *) &arg3_defvalue ;
16796 wxString const &arg4_defvalue = wxPyEmptyString ;
16797 wxString *arg4 = (wxString *) &arg4_defvalue ;
16798 bool arg5 = (bool) true ;
16799 bool arg6 = (bool) false ;
16800 bool result;
16801 void *argp1 = 0 ;
16802 int res1 = 0 ;
16803 bool temp2 = false ;
16804 bool temp3 = false ;
16805 bool temp4 = false ;
16806 bool val5 ;
16807 int ecode5 = 0 ;
16808 bool val6 ;
16809 int ecode6 = 0 ;
16810 PyObject * obj0 = 0 ;
16811 PyObject * obj1 = 0 ;
16812 PyObject * obj2 = 0 ;
16813 PyObject * obj3 = 0 ;
16814 PyObject * obj4 = 0 ;
16815 PyObject * obj5 = 0 ;
16816 char * kwnames[] = {
16817 (char *) "self",(char *) "name",(char *) "shortName",(char *) "locale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
16818 };
16819
16820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16822 if (!SWIG_IsOK(res1)) {
16823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16824 }
16825 arg1 = reinterpret_cast< wxLocale * >(argp1);
16826 {
16827 arg2 = wxString_in_helper(obj1);
16828 if (arg2 == NULL) SWIG_fail;
16829 temp2 = true;
16830 }
16831 if (obj2) {
16832 {
16833 arg3 = wxString_in_helper(obj2);
16834 if (arg3 == NULL) SWIG_fail;
16835 temp3 = true;
16836 }
16837 }
16838 if (obj3) {
16839 {
16840 arg4 = wxString_in_helper(obj3);
16841 if (arg4 == NULL) SWIG_fail;
16842 temp4 = true;
16843 }
16844 }
16845 if (obj4) {
16846 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16847 if (!SWIG_IsOK(ecode5)) {
16848 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16849 }
16850 arg5 = static_cast< bool >(val5);
16851 }
16852 if (obj5) {
16853 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16854 if (!SWIG_IsOK(ecode6)) {
16855 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16856 }
16857 arg6 = static_cast< bool >(val6);
16858 }
16859 {
16860 PyThreadState* __tstate = wxPyBeginAllowThreads();
16861 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16862 wxPyEndAllowThreads(__tstate);
16863 if (PyErr_Occurred()) SWIG_fail;
16864 }
16865 {
16866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16867 }
16868 {
16869 if (temp2)
16870 delete arg2;
16871 }
16872 {
16873 if (temp3)
16874 delete arg3;
16875 }
16876 {
16877 if (temp4)
16878 delete arg4;
16879 }
16880 return resultobj;
16881 fail:
16882 {
16883 if (temp2)
16884 delete arg2;
16885 }
16886 {
16887 if (temp3)
16888 delete arg3;
16889 }
16890 {
16891 if (temp4)
16892 delete arg4;
16893 }
16894 return NULL;
16895 }
16896
16897
16898 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16899 PyObject *resultobj = 0;
16900 wxLocale *arg1 = (wxLocale *) 0 ;
16901 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16902 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16903 bool result;
16904 void *argp1 = 0 ;
16905 int res1 = 0 ;
16906 int val2 ;
16907 int ecode2 = 0 ;
16908 int val3 ;
16909 int ecode3 = 0 ;
16910 PyObject * obj0 = 0 ;
16911 PyObject * obj1 = 0 ;
16912 PyObject * obj2 = 0 ;
16913 char * kwnames[] = {
16914 (char *) "self",(char *) "language",(char *) "flags", NULL
16915 };
16916
16917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16919 if (!SWIG_IsOK(res1)) {
16920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16921 }
16922 arg1 = reinterpret_cast< wxLocale * >(argp1);
16923 if (obj1) {
16924 ecode2 = SWIG_AsVal_int(obj1, &val2);
16925 if (!SWIG_IsOK(ecode2)) {
16926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16927 }
16928 arg2 = static_cast< int >(val2);
16929 }
16930 if (obj2) {
16931 ecode3 = SWIG_AsVal_int(obj2, &val3);
16932 if (!SWIG_IsOK(ecode3)) {
16933 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16934 }
16935 arg3 = static_cast< int >(val3);
16936 }
16937 {
16938 PyThreadState* __tstate = wxPyBeginAllowThreads();
16939 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16940 wxPyEndAllowThreads(__tstate);
16941 if (PyErr_Occurred()) SWIG_fail;
16942 }
16943 {
16944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16945 }
16946 return resultobj;
16947 fail:
16948 return NULL;
16949 }
16950
16951
16952 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16953 PyObject *resultobj = 0;
16954 int result;
16955
16956 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16957 {
16958 PyThreadState* __tstate = wxPyBeginAllowThreads();
16959 result = (int)wxLocale::GetSystemLanguage();
16960 wxPyEndAllowThreads(__tstate);
16961 if (PyErr_Occurred()) SWIG_fail;
16962 }
16963 resultobj = SWIG_From_int(static_cast< int >(result));
16964 return resultobj;
16965 fail:
16966 return NULL;
16967 }
16968
16969
16970 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16971 PyObject *resultobj = 0;
16972 wxFontEncoding result;
16973
16974 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16975 {
16976 PyThreadState* __tstate = wxPyBeginAllowThreads();
16977 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16978 wxPyEndAllowThreads(__tstate);
16979 if (PyErr_Occurred()) SWIG_fail;
16980 }
16981 resultobj = SWIG_From_int(static_cast< int >(result));
16982 return resultobj;
16983 fail:
16984 return NULL;
16985 }
16986
16987
16988 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16989 PyObject *resultobj = 0;
16990 wxString result;
16991
16992 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16993 {
16994 PyThreadState* __tstate = wxPyBeginAllowThreads();
16995 result = wxLocale::GetSystemEncodingName();
16996 wxPyEndAllowThreads(__tstate);
16997 if (PyErr_Occurred()) SWIG_fail;
16998 }
16999 {
17000 #if wxUSE_UNICODE
17001 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17002 #else
17003 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17004 #endif
17005 }
17006 return resultobj;
17007 fail:
17008 return NULL;
17009 }
17010
17011
17012 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17013 PyObject *resultobj = 0;
17014 wxLocale *arg1 = (wxLocale *) 0 ;
17015 bool result;
17016 void *argp1 = 0 ;
17017 int res1 = 0 ;
17018 PyObject *swig_obj[1] ;
17019
17020 if (!args) SWIG_fail;
17021 swig_obj[0] = args;
17022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17023 if (!SWIG_IsOK(res1)) {
17024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
17025 }
17026 arg1 = reinterpret_cast< wxLocale * >(argp1);
17027 {
17028 PyThreadState* __tstate = wxPyBeginAllowThreads();
17029 result = (bool)((wxLocale const *)arg1)->IsOk();
17030 wxPyEndAllowThreads(__tstate);
17031 if (PyErr_Occurred()) SWIG_fail;
17032 }
17033 {
17034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17035 }
17036 return resultobj;
17037 fail:
17038 return NULL;
17039 }
17040
17041
17042 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17043 PyObject *resultobj = 0;
17044 wxLocale *arg1 = (wxLocale *) 0 ;
17045 wxString result;
17046 void *argp1 = 0 ;
17047 int res1 = 0 ;
17048 PyObject *swig_obj[1] ;
17049
17050 if (!args) SWIG_fail;
17051 swig_obj[0] = args;
17052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17053 if (!SWIG_IsOK(res1)) {
17054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
17055 }
17056 arg1 = reinterpret_cast< wxLocale * >(argp1);
17057 {
17058 PyThreadState* __tstate = wxPyBeginAllowThreads();
17059 result = ((wxLocale const *)arg1)->GetLocale();
17060 wxPyEndAllowThreads(__tstate);
17061 if (PyErr_Occurred()) SWIG_fail;
17062 }
17063 {
17064 #if wxUSE_UNICODE
17065 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17066 #else
17067 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17068 #endif
17069 }
17070 return resultobj;
17071 fail:
17072 return NULL;
17073 }
17074
17075
17076 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17077 PyObject *resultobj = 0;
17078 wxLocale *arg1 = (wxLocale *) 0 ;
17079 int result;
17080 void *argp1 = 0 ;
17081 int res1 = 0 ;
17082 PyObject *swig_obj[1] ;
17083
17084 if (!args) SWIG_fail;
17085 swig_obj[0] = args;
17086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17087 if (!SWIG_IsOK(res1)) {
17088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
17089 }
17090 arg1 = reinterpret_cast< wxLocale * >(argp1);
17091 {
17092 PyThreadState* __tstate = wxPyBeginAllowThreads();
17093 result = (int)((wxLocale const *)arg1)->GetLanguage();
17094 wxPyEndAllowThreads(__tstate);
17095 if (PyErr_Occurred()) SWIG_fail;
17096 }
17097 resultobj = SWIG_From_int(static_cast< int >(result));
17098 return resultobj;
17099 fail:
17100 return NULL;
17101 }
17102
17103
17104 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17105 PyObject *resultobj = 0;
17106 wxLocale *arg1 = (wxLocale *) 0 ;
17107 wxString result;
17108 void *argp1 = 0 ;
17109 int res1 = 0 ;
17110 PyObject *swig_obj[1] ;
17111
17112 if (!args) SWIG_fail;
17113 swig_obj[0] = args;
17114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17115 if (!SWIG_IsOK(res1)) {
17116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
17117 }
17118 arg1 = reinterpret_cast< wxLocale * >(argp1);
17119 {
17120 PyThreadState* __tstate = wxPyBeginAllowThreads();
17121 result = ((wxLocale const *)arg1)->GetSysName();
17122 wxPyEndAllowThreads(__tstate);
17123 if (PyErr_Occurred()) SWIG_fail;
17124 }
17125 {
17126 #if wxUSE_UNICODE
17127 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17128 #else
17129 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17130 #endif
17131 }
17132 return resultobj;
17133 fail:
17134 return NULL;
17135 }
17136
17137
17138 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17139 PyObject *resultobj = 0;
17140 wxLocale *arg1 = (wxLocale *) 0 ;
17141 wxString result;
17142 void *argp1 = 0 ;
17143 int res1 = 0 ;
17144 PyObject *swig_obj[1] ;
17145
17146 if (!args) SWIG_fail;
17147 swig_obj[0] = args;
17148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17149 if (!SWIG_IsOK(res1)) {
17150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
17151 }
17152 arg1 = reinterpret_cast< wxLocale * >(argp1);
17153 {
17154 PyThreadState* __tstate = wxPyBeginAllowThreads();
17155 result = ((wxLocale const *)arg1)->GetCanonicalName();
17156 wxPyEndAllowThreads(__tstate);
17157 if (PyErr_Occurred()) SWIG_fail;
17158 }
17159 {
17160 #if wxUSE_UNICODE
17161 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17162 #else
17163 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17164 #endif
17165 }
17166 return resultobj;
17167 fail:
17168 return NULL;
17169 }
17170
17171
17172 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17173 PyObject *resultobj = 0;
17174 wxString *arg1 = 0 ;
17175 bool temp1 = false ;
17176 PyObject * obj0 = 0 ;
17177 char * kwnames[] = {
17178 (char *) "prefix", NULL
17179 };
17180
17181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
17182 {
17183 arg1 = wxString_in_helper(obj0);
17184 if (arg1 == NULL) SWIG_fail;
17185 temp1 = true;
17186 }
17187 {
17188 PyThreadState* __tstate = wxPyBeginAllowThreads();
17189 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
17190 wxPyEndAllowThreads(__tstate);
17191 if (PyErr_Occurred()) SWIG_fail;
17192 }
17193 resultobj = SWIG_Py_Void();
17194 {
17195 if (temp1)
17196 delete arg1;
17197 }
17198 return resultobj;
17199 fail:
17200 {
17201 if (temp1)
17202 delete arg1;
17203 }
17204 return NULL;
17205 }
17206
17207
17208 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17209 PyObject *resultobj = 0;
17210 wxLocale *arg1 = (wxLocale *) 0 ;
17211 wxString *arg2 = 0 ;
17212 bool result;
17213 void *argp1 = 0 ;
17214 int res1 = 0 ;
17215 bool temp2 = false ;
17216 PyObject * obj0 = 0 ;
17217 PyObject * obj1 = 0 ;
17218 char * kwnames[] = {
17219 (char *) "self",(char *) "domain", NULL
17220 };
17221
17222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
17223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17224 if (!SWIG_IsOK(res1)) {
17225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
17226 }
17227 arg1 = reinterpret_cast< wxLocale * >(argp1);
17228 {
17229 arg2 = wxString_in_helper(obj1);
17230 if (arg2 == NULL) SWIG_fail;
17231 temp2 = true;
17232 }
17233 {
17234 PyThreadState* __tstate = wxPyBeginAllowThreads();
17235 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
17236 wxPyEndAllowThreads(__tstate);
17237 if (PyErr_Occurred()) SWIG_fail;
17238 }
17239 {
17240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17241 }
17242 {
17243 if (temp2)
17244 delete arg2;
17245 }
17246 return resultobj;
17247 fail:
17248 {
17249 if (temp2)
17250 delete arg2;
17251 }
17252 return NULL;
17253 }
17254
17255
17256 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17257 PyObject *resultobj = 0;
17258 int arg1 ;
17259 bool result;
17260 int val1 ;
17261 int ecode1 = 0 ;
17262 PyObject * obj0 = 0 ;
17263 char * kwnames[] = {
17264 (char *) "lang", NULL
17265 };
17266
17267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
17268 ecode1 = SWIG_AsVal_int(obj0, &val1);
17269 if (!SWIG_IsOK(ecode1)) {
17270 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
17271 }
17272 arg1 = static_cast< int >(val1);
17273 {
17274 PyThreadState* __tstate = wxPyBeginAllowThreads();
17275 result = (bool)wxLocale::IsAvailable(arg1);
17276 wxPyEndAllowThreads(__tstate);
17277 if (PyErr_Occurred()) SWIG_fail;
17278 }
17279 {
17280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17281 }
17282 return resultobj;
17283 fail:
17284 return NULL;
17285 }
17286
17287
17288 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17289 PyObject *resultobj = 0;
17290 wxLocale *arg1 = (wxLocale *) 0 ;
17291 wxString *arg2 = 0 ;
17292 bool result;
17293 void *argp1 = 0 ;
17294 int res1 = 0 ;
17295 bool temp2 = false ;
17296 PyObject * obj0 = 0 ;
17297 PyObject * obj1 = 0 ;
17298 char * kwnames[] = {
17299 (char *) "self",(char *) "domain", NULL
17300 };
17301
17302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
17303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17304 if (!SWIG_IsOK(res1)) {
17305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
17306 }
17307 arg1 = reinterpret_cast< wxLocale * >(argp1);
17308 {
17309 arg2 = wxString_in_helper(obj1);
17310 if (arg2 == NULL) SWIG_fail;
17311 temp2 = true;
17312 }
17313 {
17314 PyThreadState* __tstate = wxPyBeginAllowThreads();
17315 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
17316 wxPyEndAllowThreads(__tstate);
17317 if (PyErr_Occurred()) SWIG_fail;
17318 }
17319 {
17320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17321 }
17322 {
17323 if (temp2)
17324 delete arg2;
17325 }
17326 return resultobj;
17327 fail:
17328 {
17329 if (temp2)
17330 delete arg2;
17331 }
17332 return NULL;
17333 }
17334
17335
17336 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17337 PyObject *resultobj = 0;
17338 int arg1 ;
17339 wxLanguageInfo *result = 0 ;
17340 int val1 ;
17341 int ecode1 = 0 ;
17342 PyObject * obj0 = 0 ;
17343 char * kwnames[] = {
17344 (char *) "lang", NULL
17345 };
17346
17347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
17348 ecode1 = SWIG_AsVal_int(obj0, &val1);
17349 if (!SWIG_IsOK(ecode1)) {
17350 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
17351 }
17352 arg1 = static_cast< int >(val1);
17353 {
17354 PyThreadState* __tstate = wxPyBeginAllowThreads();
17355 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
17356 wxPyEndAllowThreads(__tstate);
17357 if (PyErr_Occurred()) SWIG_fail;
17358 }
17359 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17360 return resultobj;
17361 fail:
17362 return NULL;
17363 }
17364
17365
17366 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17367 PyObject *resultobj = 0;
17368 int arg1 ;
17369 wxString result;
17370 int val1 ;
17371 int ecode1 = 0 ;
17372 PyObject * obj0 = 0 ;
17373 char * kwnames[] = {
17374 (char *) "lang", NULL
17375 };
17376
17377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
17378 ecode1 = SWIG_AsVal_int(obj0, &val1);
17379 if (!SWIG_IsOK(ecode1)) {
17380 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
17381 }
17382 arg1 = static_cast< int >(val1);
17383 {
17384 PyThreadState* __tstate = wxPyBeginAllowThreads();
17385 result = wxLocale::GetLanguageName(arg1);
17386 wxPyEndAllowThreads(__tstate);
17387 if (PyErr_Occurred()) SWIG_fail;
17388 }
17389 {
17390 #if wxUSE_UNICODE
17391 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17392 #else
17393 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17394 #endif
17395 }
17396 return resultobj;
17397 fail:
17398 return NULL;
17399 }
17400
17401
17402 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17403 PyObject *resultobj = 0;
17404 wxString *arg1 = 0 ;
17405 wxLanguageInfo *result = 0 ;
17406 bool temp1 = false ;
17407 PyObject * obj0 = 0 ;
17408 char * kwnames[] = {
17409 (char *) "locale", NULL
17410 };
17411
17412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
17413 {
17414 arg1 = wxString_in_helper(obj0);
17415 if (arg1 == NULL) SWIG_fail;
17416 temp1 = true;
17417 }
17418 {
17419 PyThreadState* __tstate = wxPyBeginAllowThreads();
17420 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
17421 wxPyEndAllowThreads(__tstate);
17422 if (PyErr_Occurred()) SWIG_fail;
17423 }
17424 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
17425 {
17426 if (temp1)
17427 delete arg1;
17428 }
17429 return resultobj;
17430 fail:
17431 {
17432 if (temp1)
17433 delete arg1;
17434 }
17435 return NULL;
17436 }
17437
17438
17439 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17440 PyObject *resultobj = 0;
17441 wxLanguageInfo *arg1 = 0 ;
17442 void *argp1 = 0 ;
17443 int res1 = 0 ;
17444 PyObject * obj0 = 0 ;
17445 char * kwnames[] = {
17446 (char *) "info", NULL
17447 };
17448
17449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
17450 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
17451 if (!SWIG_IsOK(res1)) {
17452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17453 }
17454 if (!argp1) {
17455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
17456 }
17457 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
17458 {
17459 PyThreadState* __tstate = wxPyBeginAllowThreads();
17460 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
17461 wxPyEndAllowThreads(__tstate);
17462 if (PyErr_Occurred()) SWIG_fail;
17463 }
17464 resultobj = SWIG_Py_Void();
17465 return resultobj;
17466 fail:
17467 return NULL;
17468 }
17469
17470
17471 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17472 PyObject *resultobj = 0;
17473 wxLocale *arg1 = (wxLocale *) 0 ;
17474 wxString *arg2 = 0 ;
17475 wxString const &arg3_defvalue = wxPyEmptyString ;
17476 wxString *arg3 = (wxString *) &arg3_defvalue ;
17477 wxString result;
17478 void *argp1 = 0 ;
17479 int res1 = 0 ;
17480 bool temp2 = false ;
17481 bool temp3 = false ;
17482 PyObject * obj0 = 0 ;
17483 PyObject * obj1 = 0 ;
17484 PyObject * obj2 = 0 ;
17485 char * kwnames[] = {
17486 (char *) "self",(char *) "origString",(char *) "domain", NULL
17487 };
17488
17489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17491 if (!SWIG_IsOK(res1)) {
17492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
17493 }
17494 arg1 = reinterpret_cast< wxLocale * >(argp1);
17495 {
17496 arg2 = wxString_in_helper(obj1);
17497 if (arg2 == NULL) SWIG_fail;
17498 temp2 = true;
17499 }
17500 if (obj2) {
17501 {
17502 arg3 = wxString_in_helper(obj2);
17503 if (arg3 == NULL) SWIG_fail;
17504 temp3 = true;
17505 }
17506 }
17507 {
17508 PyThreadState* __tstate = wxPyBeginAllowThreads();
17509 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
17510 wxPyEndAllowThreads(__tstate);
17511 if (PyErr_Occurred()) SWIG_fail;
17512 }
17513 {
17514 #if wxUSE_UNICODE
17515 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17516 #else
17517 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17518 #endif
17519 }
17520 {
17521 if (temp2)
17522 delete arg2;
17523 }
17524 {
17525 if (temp3)
17526 delete arg3;
17527 }
17528 return resultobj;
17529 fail:
17530 {
17531 if (temp2)
17532 delete arg2;
17533 }
17534 {
17535 if (temp3)
17536 delete arg3;
17537 }
17538 return NULL;
17539 }
17540
17541
17542 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17543 PyObject *resultobj = 0;
17544 wxLocale *arg1 = (wxLocale *) 0 ;
17545 wxString *result = 0 ;
17546 void *argp1 = 0 ;
17547 int res1 = 0 ;
17548 PyObject *swig_obj[1] ;
17549
17550 if (!args) SWIG_fail;
17551 swig_obj[0] = args;
17552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17553 if (!SWIG_IsOK(res1)) {
17554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
17555 }
17556 arg1 = reinterpret_cast< wxLocale * >(argp1);
17557 {
17558 PyThreadState* __tstate = wxPyBeginAllowThreads();
17559 {
17560 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
17561 result = (wxString *) &_result_ref;
17562 }
17563 wxPyEndAllowThreads(__tstate);
17564 if (PyErr_Occurred()) SWIG_fail;
17565 }
17566 {
17567 #if wxUSE_UNICODE
17568 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17569 #else
17570 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17571 #endif
17572 }
17573 return resultobj;
17574 fail:
17575 return NULL;
17576 }
17577
17578
17579 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17580 PyObject *obj;
17581 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17582 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
17583 return SWIG_Py_Void();
17584 }
17585
17586 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17587 return SWIG_Python_InitShadowInstance(args);
17588 }
17589
17590 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17591 PyObject *resultobj = 0;
17592 int arg1 = (int) -1 ;
17593 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
17594 wxPyLocale *result = 0 ;
17595 int val1 ;
17596 int ecode1 = 0 ;
17597 int val2 ;
17598 int ecode2 = 0 ;
17599 PyObject * obj0 = 0 ;
17600 PyObject * obj1 = 0 ;
17601 char * kwnames[] = {
17602 (char *) "language",(char *) "flags", NULL
17603 };
17604
17605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
17606 if (obj0) {
17607 ecode1 = SWIG_AsVal_int(obj0, &val1);
17608 if (!SWIG_IsOK(ecode1)) {
17609 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
17610 }
17611 arg1 = static_cast< int >(val1);
17612 }
17613 if (obj1) {
17614 ecode2 = SWIG_AsVal_int(obj1, &val2);
17615 if (!SWIG_IsOK(ecode2)) {
17616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
17617 }
17618 arg2 = static_cast< int >(val2);
17619 }
17620 {
17621 PyThreadState* __tstate = wxPyBeginAllowThreads();
17622 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
17623 wxPyEndAllowThreads(__tstate);
17624 if (PyErr_Occurred()) SWIG_fail;
17625 }
17626 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
17627 return resultobj;
17628 fail:
17629 return NULL;
17630 }
17631
17632
17633 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17634 PyObject *resultobj = 0;
17635 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17636 void *argp1 = 0 ;
17637 int res1 = 0 ;
17638 PyObject *swig_obj[1] ;
17639
17640 if (!args) SWIG_fail;
17641 swig_obj[0] = args;
17642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
17643 if (!SWIG_IsOK(res1)) {
17644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17645 }
17646 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17647 {
17648 PyThreadState* __tstate = wxPyBeginAllowThreads();
17649 delete arg1;
17650
17651 wxPyEndAllowThreads(__tstate);
17652 if (PyErr_Occurred()) SWIG_fail;
17653 }
17654 resultobj = SWIG_Py_Void();
17655 return resultobj;
17656 fail:
17657 return NULL;
17658 }
17659
17660
17661 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17662 PyObject *resultobj = 0;
17663 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17664 PyObject *arg2 = (PyObject *) 0 ;
17665 PyObject *arg3 = (PyObject *) 0 ;
17666 void *argp1 = 0 ;
17667 int res1 = 0 ;
17668 PyObject * obj0 = 0 ;
17669 PyObject * obj1 = 0 ;
17670 PyObject * obj2 = 0 ;
17671 char * kwnames[] = {
17672 (char *) "self",(char *) "self",(char *) "_class", NULL
17673 };
17674
17675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17677 if (!SWIG_IsOK(res1)) {
17678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17679 }
17680 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17681 arg2 = obj1;
17682 arg3 = obj2;
17683 {
17684 PyThreadState* __tstate = wxPyBeginAllowThreads();
17685 (arg1)->_setCallbackInfo(arg2,arg3);
17686 wxPyEndAllowThreads(__tstate);
17687 if (PyErr_Occurred()) SWIG_fail;
17688 }
17689 resultobj = SWIG_Py_Void();
17690 return resultobj;
17691 fail:
17692 return NULL;
17693 }
17694
17695
17696 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17697 PyObject *resultobj = 0;
17698 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17699 wxString *arg2 = 0 ;
17700 wxString const &arg3_defvalue = wxPyEmptyString ;
17701 wxString *arg3 = (wxString *) &arg3_defvalue ;
17702 wxString *result = 0 ;
17703 void *argp1 = 0 ;
17704 int res1 = 0 ;
17705 bool temp2 = false ;
17706 bool temp3 = false ;
17707 PyObject * obj0 = 0 ;
17708 PyObject * obj1 = 0 ;
17709 PyObject * obj2 = 0 ;
17710 char * kwnames[] = {
17711 (char *) "self",(char *) "origString",(char *) "domain", NULL
17712 };
17713
17714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17716 if (!SWIG_IsOK(res1)) {
17717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17718 }
17719 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17720 {
17721 arg2 = wxString_in_helper(obj1);
17722 if (arg2 == NULL) SWIG_fail;
17723 temp2 = true;
17724 }
17725 if (obj2) {
17726 {
17727 arg3 = wxString_in_helper(obj2);
17728 if (arg3 == NULL) SWIG_fail;
17729 temp3 = true;
17730 }
17731 }
17732 {
17733 PyThreadState* __tstate = wxPyBeginAllowThreads();
17734 {
17735 wxString const &_result_ref = ((wxPyLocale const *)arg1)->GetSingularString((wxString const &)*arg2,(wxString const &)*arg3);
17736 result = (wxString *) &_result_ref;
17737 }
17738 wxPyEndAllowThreads(__tstate);
17739 if (PyErr_Occurred()) SWIG_fail;
17740 }
17741 {
17742 #if wxUSE_UNICODE
17743 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17744 #else
17745 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17746 #endif
17747 }
17748 {
17749 if (temp2)
17750 delete arg2;
17751 }
17752 {
17753 if (temp3)
17754 delete arg3;
17755 }
17756 return resultobj;
17757 fail:
17758 {
17759 if (temp2)
17760 delete arg2;
17761 }
17762 {
17763 if (temp3)
17764 delete arg3;
17765 }
17766 return NULL;
17767 }
17768
17769
17770 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17771 PyObject *resultobj = 0;
17772 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17773 wxString *arg2 = 0 ;
17774 wxString *arg3 = 0 ;
17775 size_t arg4 ;
17776 wxString const &arg5_defvalue = wxPyEmptyString ;
17777 wxString *arg5 = (wxString *) &arg5_defvalue ;
17778 wxString *result = 0 ;
17779 void *argp1 = 0 ;
17780 int res1 = 0 ;
17781 bool temp2 = false ;
17782 bool temp3 = false ;
17783 size_t val4 ;
17784 int ecode4 = 0 ;
17785 bool temp5 = false ;
17786 PyObject * obj0 = 0 ;
17787 PyObject * obj1 = 0 ;
17788 PyObject * obj2 = 0 ;
17789 PyObject * obj3 = 0 ;
17790 PyObject * obj4 = 0 ;
17791 char * kwnames[] = {
17792 (char *) "self",(char *) "origString",(char *) "origString2",(char *) "n",(char *) "domain", NULL
17793 };
17794
17795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17797 if (!SWIG_IsOK(res1)) {
17798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17799 }
17800 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17801 {
17802 arg2 = wxString_in_helper(obj1);
17803 if (arg2 == NULL) SWIG_fail;
17804 temp2 = true;
17805 }
17806 {
17807 arg3 = wxString_in_helper(obj2);
17808 if (arg3 == NULL) SWIG_fail;
17809 temp3 = true;
17810 }
17811 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17812 if (!SWIG_IsOK(ecode4)) {
17813 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17814 }
17815 arg4 = static_cast< size_t >(val4);
17816 if (obj4) {
17817 {
17818 arg5 = wxString_in_helper(obj4);
17819 if (arg5 == NULL) SWIG_fail;
17820 temp5 = true;
17821 }
17822 }
17823 {
17824 PyThreadState* __tstate = wxPyBeginAllowThreads();
17825 {
17826 wxString const &_result_ref = ((wxPyLocale const *)arg1)->GetPluralString((wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
17827 result = (wxString *) &_result_ref;
17828 }
17829 wxPyEndAllowThreads(__tstate);
17830 if (PyErr_Occurred()) SWIG_fail;
17831 }
17832 {
17833 #if wxUSE_UNICODE
17834 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17835 #else
17836 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17837 #endif
17838 }
17839 {
17840 if (temp2)
17841 delete arg2;
17842 }
17843 {
17844 if (temp3)
17845 delete arg3;
17846 }
17847 {
17848 if (temp5)
17849 delete arg5;
17850 }
17851 return resultobj;
17852 fail:
17853 {
17854 if (temp2)
17855 delete arg2;
17856 }
17857 {
17858 if (temp3)
17859 delete arg3;
17860 }
17861 {
17862 if (temp5)
17863 delete arg5;
17864 }
17865 return NULL;
17866 }
17867
17868
17869 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17870 PyObject *obj;
17871 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17872 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
17873 return SWIG_Py_Void();
17874 }
17875
17876 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17877 return SWIG_Python_InitShadowInstance(args);
17878 }
17879
17880 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17881 PyObject *resultobj = 0;
17882 wxLocale *result = 0 ;
17883
17884 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17885 {
17886 PyThreadState* __tstate = wxPyBeginAllowThreads();
17887 result = (wxLocale *)wxGetLocale();
17888 wxPyEndAllowThreads(__tstate);
17889 if (PyErr_Occurred()) SWIG_fail;
17890 }
17891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17892 return resultobj;
17893 fail:
17894 return NULL;
17895 }
17896
17897
17898 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17899 PyObject *resultobj = 0;
17900 wxString *arg1 = 0 ;
17901 wxString result;
17902 bool temp1 = false ;
17903
17904 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17905 {
17906 arg1 = wxString_in_helper(swig_obj[0]);
17907 if (arg1 == NULL) SWIG_fail;
17908 temp1 = true;
17909 }
17910 {
17911 PyThreadState* __tstate = wxPyBeginAllowThreads();
17912 result = wxGetTranslation((wxString const &)*arg1);
17913 wxPyEndAllowThreads(__tstate);
17914 if (PyErr_Occurred()) SWIG_fail;
17915 }
17916 {
17917 #if wxUSE_UNICODE
17918 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17919 #else
17920 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17921 #endif
17922 }
17923 {
17924 if (temp1)
17925 delete arg1;
17926 }
17927 return resultobj;
17928 fail:
17929 {
17930 if (temp1)
17931 delete arg1;
17932 }
17933 return NULL;
17934 }
17935
17936
17937 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17938 PyObject *resultobj = 0;
17939 wxString *arg1 = 0 ;
17940 wxString *arg2 = 0 ;
17941 wxString result;
17942 bool temp1 = false ;
17943 bool temp2 = false ;
17944
17945 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17946 {
17947 arg1 = wxString_in_helper(swig_obj[0]);
17948 if (arg1 == NULL) SWIG_fail;
17949 temp1 = true;
17950 }
17951 {
17952 arg2 = wxString_in_helper(swig_obj[1]);
17953 if (arg2 == NULL) SWIG_fail;
17954 temp2 = true;
17955 }
17956 {
17957 PyThreadState* __tstate = wxPyBeginAllowThreads();
17958 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17959 wxPyEndAllowThreads(__tstate);
17960 if (PyErr_Occurred()) SWIG_fail;
17961 }
17962 {
17963 #if wxUSE_UNICODE
17964 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17965 #else
17966 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17967 #endif
17968 }
17969 {
17970 if (temp1)
17971 delete arg1;
17972 }
17973 {
17974 if (temp2)
17975 delete arg2;
17976 }
17977 return resultobj;
17978 fail:
17979 {
17980 if (temp1)
17981 delete arg1;
17982 }
17983 {
17984 if (temp2)
17985 delete arg2;
17986 }
17987 return NULL;
17988 }
17989
17990
17991 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17992 PyObject *resultobj = 0;
17993 wxString *arg1 = 0 ;
17994 wxString *arg2 = 0 ;
17995 size_t arg3 ;
17996 wxString result;
17997 bool temp1 = false ;
17998 bool temp2 = false ;
17999 size_t val3 ;
18000 int ecode3 = 0 ;
18001
18002 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
18003 {
18004 arg1 = wxString_in_helper(swig_obj[0]);
18005 if (arg1 == NULL) SWIG_fail;
18006 temp1 = true;
18007 }
18008 {
18009 arg2 = wxString_in_helper(swig_obj[1]);
18010 if (arg2 == NULL) SWIG_fail;
18011 temp2 = true;
18012 }
18013 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
18014 if (!SWIG_IsOK(ecode3)) {
18015 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
18016 }
18017 arg3 = static_cast< size_t >(val3);
18018 {
18019 PyThreadState* __tstate = wxPyBeginAllowThreads();
18020 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
18021 wxPyEndAllowThreads(__tstate);
18022 if (PyErr_Occurred()) SWIG_fail;
18023 }
18024 {
18025 #if wxUSE_UNICODE
18026 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18027 #else
18028 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18029 #endif
18030 }
18031 {
18032 if (temp1)
18033 delete arg1;
18034 }
18035 {
18036 if (temp2)
18037 delete arg2;
18038 }
18039 return resultobj;
18040 fail:
18041 {
18042 if (temp1)
18043 delete arg1;
18044 }
18045 {
18046 if (temp2)
18047 delete arg2;
18048 }
18049 return NULL;
18050 }
18051
18052
18053 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
18054 PyObject *resultobj = 0;
18055 wxString *arg1 = 0 ;
18056 wxString *arg2 = 0 ;
18057 size_t arg3 ;
18058 wxString *arg4 = 0 ;
18059 wxString result;
18060 bool temp1 = false ;
18061 bool temp2 = false ;
18062 size_t val3 ;
18063 int ecode3 = 0 ;
18064 bool temp4 = false ;
18065
18066 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
18067 {
18068 arg1 = wxString_in_helper(swig_obj[0]);
18069 if (arg1 == NULL) SWIG_fail;
18070 temp1 = true;
18071 }
18072 {
18073 arg2 = wxString_in_helper(swig_obj[1]);
18074 if (arg2 == NULL) SWIG_fail;
18075 temp2 = true;
18076 }
18077 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
18078 if (!SWIG_IsOK(ecode3)) {
18079 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
18080 }
18081 arg3 = static_cast< size_t >(val3);
18082 {
18083 arg4 = wxString_in_helper(swig_obj[3]);
18084 if (arg4 == NULL) SWIG_fail;
18085 temp4 = true;
18086 }
18087 {
18088 PyThreadState* __tstate = wxPyBeginAllowThreads();
18089 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
18090 wxPyEndAllowThreads(__tstate);
18091 if (PyErr_Occurred()) SWIG_fail;
18092 }
18093 {
18094 #if wxUSE_UNICODE
18095 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18096 #else
18097 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18098 #endif
18099 }
18100 {
18101 if (temp1)
18102 delete arg1;
18103 }
18104 {
18105 if (temp2)
18106 delete arg2;
18107 }
18108 {
18109 if (temp4)
18110 delete arg4;
18111 }
18112 return resultobj;
18113 fail:
18114 {
18115 if (temp1)
18116 delete arg1;
18117 }
18118 {
18119 if (temp2)
18120 delete arg2;
18121 }
18122 {
18123 if (temp4)
18124 delete arg4;
18125 }
18126 return NULL;
18127 }
18128
18129
18130 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
18131 int argc;
18132 PyObject *argv[5];
18133
18134 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
18135 --argc;
18136 if (argc == 1) {
18137 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
18138 }
18139 if (argc == 2) {
18140 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
18141 }
18142 if (argc == 3) {
18143 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
18144 }
18145 if (argc == 4) {
18146 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
18147 }
18148
18149 fail:
18150 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
18151 return NULL;
18152 }
18153
18154
18155 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18156 PyObject *resultobj = 0;
18157 wxEncodingConverter *result = 0 ;
18158
18159 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
18160 {
18161 PyThreadState* __tstate = wxPyBeginAllowThreads();
18162 result = (wxEncodingConverter *)new wxEncodingConverter();
18163 wxPyEndAllowThreads(__tstate);
18164 if (PyErr_Occurred()) SWIG_fail;
18165 }
18166 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
18167 return resultobj;
18168 fail:
18169 return NULL;
18170 }
18171
18172
18173 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18174 PyObject *resultobj = 0;
18175 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
18176 void *argp1 = 0 ;
18177 int res1 = 0 ;
18178 PyObject *swig_obj[1] ;
18179
18180 if (!args) SWIG_fail;
18181 swig_obj[0] = args;
18182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
18183 if (!SWIG_IsOK(res1)) {
18184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
18185 }
18186 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
18187 {
18188 PyThreadState* __tstate = wxPyBeginAllowThreads();
18189 delete arg1;
18190
18191 wxPyEndAllowThreads(__tstate);
18192 if (PyErr_Occurred()) SWIG_fail;
18193 }
18194 resultobj = SWIG_Py_Void();
18195 return resultobj;
18196 fail:
18197 return NULL;
18198 }
18199
18200
18201 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18202 PyObject *resultobj = 0;
18203 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
18204 wxFontEncoding arg2 ;
18205 wxFontEncoding arg3 ;
18206 int arg4 = (int) wxCONVERT_STRICT ;
18207 bool result;
18208 void *argp1 = 0 ;
18209 int res1 = 0 ;
18210 int val2 ;
18211 int ecode2 = 0 ;
18212 int val3 ;
18213 int ecode3 = 0 ;
18214 int val4 ;
18215 int ecode4 = 0 ;
18216 PyObject * obj0 = 0 ;
18217 PyObject * obj1 = 0 ;
18218 PyObject * obj2 = 0 ;
18219 PyObject * obj3 = 0 ;
18220 char * kwnames[] = {
18221 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
18222 };
18223
18224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
18226 if (!SWIG_IsOK(res1)) {
18227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
18228 }
18229 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
18230 ecode2 = SWIG_AsVal_int(obj1, &val2);
18231 if (!SWIG_IsOK(ecode2)) {
18232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
18233 }
18234 arg2 = static_cast< wxFontEncoding >(val2);
18235 ecode3 = SWIG_AsVal_int(obj2, &val3);
18236 if (!SWIG_IsOK(ecode3)) {
18237 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
18238 }
18239 arg3 = static_cast< wxFontEncoding >(val3);
18240 if (obj3) {
18241 ecode4 = SWIG_AsVal_int(obj3, &val4);
18242 if (!SWIG_IsOK(ecode4)) {
18243 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
18244 }
18245 arg4 = static_cast< int >(val4);
18246 }
18247 {
18248 PyThreadState* __tstate = wxPyBeginAllowThreads();
18249 result = (bool)(arg1)->Init(arg2,arg3,arg4);
18250 wxPyEndAllowThreads(__tstate);
18251 if (PyErr_Occurred()) SWIG_fail;
18252 }
18253 {
18254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18255 }
18256 return resultobj;
18257 fail:
18258 return NULL;
18259 }
18260
18261
18262 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18263 PyObject *resultobj = 0;
18264 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
18265 wxString *arg2 = 0 ;
18266 wxString result;
18267 void *argp1 = 0 ;
18268 int res1 = 0 ;
18269 bool temp2 = false ;
18270 PyObject * obj0 = 0 ;
18271 PyObject * obj1 = 0 ;
18272 char * kwnames[] = {
18273 (char *) "self",(char *) "input", NULL
18274 };
18275
18276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
18277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
18278 if (!SWIG_IsOK(res1)) {
18279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
18280 }
18281 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
18282 {
18283 arg2 = wxString_in_helper(obj1);
18284 if (arg2 == NULL) SWIG_fail;
18285 temp2 = true;
18286 }
18287 {
18288 PyThreadState* __tstate = wxPyBeginAllowThreads();
18289 result = (arg1)->Convert((wxString const &)*arg2);
18290 wxPyEndAllowThreads(__tstate);
18291 if (PyErr_Occurred()) SWIG_fail;
18292 }
18293 {
18294 #if wxUSE_UNICODE
18295 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18296 #else
18297 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18298 #endif
18299 }
18300 {
18301 if (temp2)
18302 delete arg2;
18303 }
18304 return resultobj;
18305 fail:
18306 {
18307 if (temp2)
18308 delete arg2;
18309 }
18310 return NULL;
18311 }
18312
18313
18314 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18315 PyObject *resultobj = 0;
18316 wxFontEncoding arg1 ;
18317 int arg2 = (int) wxPLATFORM_CURRENT ;
18318 wxFontEncodingArray result;
18319 int val1 ;
18320 int ecode1 = 0 ;
18321 int val2 ;
18322 int ecode2 = 0 ;
18323 PyObject * obj0 = 0 ;
18324 PyObject * obj1 = 0 ;
18325 char * kwnames[] = {
18326 (char *) "enc",(char *) "platform", NULL
18327 };
18328
18329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
18330 ecode1 = SWIG_AsVal_int(obj0, &val1);
18331 if (!SWIG_IsOK(ecode1)) {
18332 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18333 }
18334 arg1 = static_cast< wxFontEncoding >(val1);
18335 if (obj1) {
18336 ecode2 = SWIG_AsVal_int(obj1, &val2);
18337 if (!SWIG_IsOK(ecode2)) {
18338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
18339 }
18340 arg2 = static_cast< int >(val2);
18341 }
18342 {
18343 PyThreadState* __tstate = wxPyBeginAllowThreads();
18344 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
18345 wxPyEndAllowThreads(__tstate);
18346 if (PyErr_Occurred()) SWIG_fail;
18347 }
18348 {
18349 resultobj = PyList_New(0);
18350 for (size_t i=0; i < (&result)->GetCount(); i++) {
18351 PyObject* number = PyInt_FromLong((&result)->Item(i));
18352 PyList_Append(resultobj, number);
18353 Py_DECREF(number);
18354 }
18355 }
18356 return resultobj;
18357 fail:
18358 return NULL;
18359 }
18360
18361
18362 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18363 PyObject *resultobj = 0;
18364 wxFontEncoding arg1 ;
18365 wxFontEncodingArray result;
18366 int val1 ;
18367 int ecode1 = 0 ;
18368 PyObject * obj0 = 0 ;
18369 char * kwnames[] = {
18370 (char *) "enc", NULL
18371 };
18372
18373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
18374 ecode1 = SWIG_AsVal_int(obj0, &val1);
18375 if (!SWIG_IsOK(ecode1)) {
18376 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18377 }
18378 arg1 = static_cast< wxFontEncoding >(val1);
18379 {
18380 PyThreadState* __tstate = wxPyBeginAllowThreads();
18381 result = wxEncodingConverter::GetAllEquivalents(arg1);
18382 wxPyEndAllowThreads(__tstate);
18383 if (PyErr_Occurred()) SWIG_fail;
18384 }
18385 {
18386 resultobj = PyList_New(0);
18387 for (size_t i=0; i < (&result)->GetCount(); i++) {
18388 PyObject* number = PyInt_FromLong((&result)->Item(i));
18389 PyList_Append(resultobj, number);
18390 Py_DECREF(number);
18391 }
18392 }
18393 return resultobj;
18394 fail:
18395 return NULL;
18396 }
18397
18398
18399 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18400 PyObject *resultobj = 0;
18401 wxFontEncoding arg1 ;
18402 wxFontEncoding arg2 ;
18403 bool result;
18404 int val1 ;
18405 int ecode1 = 0 ;
18406 int val2 ;
18407 int ecode2 = 0 ;
18408 PyObject * obj0 = 0 ;
18409 PyObject * obj1 = 0 ;
18410 char * kwnames[] = {
18411 (char *) "encIn",(char *) "encOut", NULL
18412 };
18413
18414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
18415 ecode1 = SWIG_AsVal_int(obj0, &val1);
18416 if (!SWIG_IsOK(ecode1)) {
18417 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
18418 }
18419 arg1 = static_cast< wxFontEncoding >(val1);
18420 ecode2 = SWIG_AsVal_int(obj1, &val2);
18421 if (!SWIG_IsOK(ecode2)) {
18422 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
18423 }
18424 arg2 = static_cast< wxFontEncoding >(val2);
18425 {
18426 PyThreadState* __tstate = wxPyBeginAllowThreads();
18427 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
18428 wxPyEndAllowThreads(__tstate);
18429 if (PyErr_Occurred()) SWIG_fail;
18430 }
18431 {
18432 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18433 }
18434 return resultobj;
18435 fail:
18436 return NULL;
18437 }
18438
18439
18440 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18441 PyObject *obj;
18442 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18443 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
18444 return SWIG_Py_Void();
18445 }
18446
18447 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18448 return SWIG_Python_InitShadowInstance(args);
18449 }
18450
18451 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18452 PyObject *resultobj = 0;
18453 wxDC *arg1 = (wxDC *) 0 ;
18454 void *argp1 = 0 ;
18455 int res1 = 0 ;
18456 PyObject *swig_obj[1] ;
18457
18458 if (!args) SWIG_fail;
18459 swig_obj[0] = args;
18460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
18461 if (!SWIG_IsOK(res1)) {
18462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
18463 }
18464 arg1 = reinterpret_cast< wxDC * >(argp1);
18465 {
18466 PyThreadState* __tstate = wxPyBeginAllowThreads();
18467 delete arg1;
18468
18469 wxPyEndAllowThreads(__tstate);
18470 if (PyErr_Occurred()) SWIG_fail;
18471 }
18472 resultobj = SWIG_Py_Void();
18473 return resultobj;
18474 fail:
18475 return NULL;
18476 }
18477
18478
18479 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18480 PyObject *resultobj = 0;
18481 wxDC *arg1 = (wxDC *) 0 ;
18482 int arg2 ;
18483 int arg3 ;
18484 wxColour *arg4 = 0 ;
18485 int arg5 = (int) wxFLOOD_SURFACE ;
18486 bool result;
18487 void *argp1 = 0 ;
18488 int res1 = 0 ;
18489 int val2 ;
18490 int ecode2 = 0 ;
18491 int val3 ;
18492 int ecode3 = 0 ;
18493 wxColour temp4 ;
18494 int val5 ;
18495 int ecode5 = 0 ;
18496 PyObject * obj0 = 0 ;
18497 PyObject * obj1 = 0 ;
18498 PyObject * obj2 = 0 ;
18499 PyObject * obj3 = 0 ;
18500 PyObject * obj4 = 0 ;
18501 char * kwnames[] = {
18502 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
18503 };
18504
18505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18507 if (!SWIG_IsOK(res1)) {
18508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
18509 }
18510 arg1 = reinterpret_cast< wxDC * >(argp1);
18511 ecode2 = SWIG_AsVal_int(obj1, &val2);
18512 if (!SWIG_IsOK(ecode2)) {
18513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
18514 }
18515 arg2 = static_cast< int >(val2);
18516 ecode3 = SWIG_AsVal_int(obj2, &val3);
18517 if (!SWIG_IsOK(ecode3)) {
18518 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
18519 }
18520 arg3 = static_cast< int >(val3);
18521 {
18522 arg4 = &temp4;
18523 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18524 }
18525 if (obj4) {
18526 ecode5 = SWIG_AsVal_int(obj4, &val5);
18527 if (!SWIG_IsOK(ecode5)) {
18528 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
18529 }
18530 arg5 = static_cast< int >(val5);
18531 }
18532 {
18533 PyThreadState* __tstate = wxPyBeginAllowThreads();
18534 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
18535 wxPyEndAllowThreads(__tstate);
18536 if (PyErr_Occurred()) SWIG_fail;
18537 }
18538 {
18539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18540 }
18541 return resultobj;
18542 fail:
18543 return NULL;
18544 }
18545
18546
18547 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18548 PyObject *resultobj = 0;
18549 wxDC *arg1 = (wxDC *) 0 ;
18550 wxPoint *arg2 = 0 ;
18551 wxColour *arg3 = 0 ;
18552 int arg4 = (int) wxFLOOD_SURFACE ;
18553 bool result;
18554 void *argp1 = 0 ;
18555 int res1 = 0 ;
18556 wxPoint temp2 ;
18557 wxColour temp3 ;
18558 int val4 ;
18559 int ecode4 = 0 ;
18560 PyObject * obj0 = 0 ;
18561 PyObject * obj1 = 0 ;
18562 PyObject * obj2 = 0 ;
18563 PyObject * obj3 = 0 ;
18564 char * kwnames[] = {
18565 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
18566 };
18567
18568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18570 if (!SWIG_IsOK(res1)) {
18571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18572 }
18573 arg1 = reinterpret_cast< wxDC * >(argp1);
18574 {
18575 arg2 = &temp2;
18576 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18577 }
18578 {
18579 arg3 = &temp3;
18580 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18581 }
18582 if (obj3) {
18583 ecode4 = SWIG_AsVal_int(obj3, &val4);
18584 if (!SWIG_IsOK(ecode4)) {
18585 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
18586 }
18587 arg4 = static_cast< int >(val4);
18588 }
18589 {
18590 PyThreadState* __tstate = wxPyBeginAllowThreads();
18591 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
18592 wxPyEndAllowThreads(__tstate);
18593 if (PyErr_Occurred()) SWIG_fail;
18594 }
18595 {
18596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18597 }
18598 return resultobj;
18599 fail:
18600 return NULL;
18601 }
18602
18603
18604 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18605 PyObject *resultobj = 0;
18606 wxDC *arg1 = (wxDC *) 0 ;
18607 wxRect *arg2 = 0 ;
18608 wxColour *arg3 = 0 ;
18609 wxColour *arg4 = 0 ;
18610 wxPoint *arg5 = 0 ;
18611 void *argp1 = 0 ;
18612 int res1 = 0 ;
18613 wxRect temp2 ;
18614 wxColour temp3 ;
18615 wxColour temp4 ;
18616 wxPoint temp5 ;
18617 PyObject * obj0 = 0 ;
18618 PyObject * obj1 = 0 ;
18619 PyObject * obj2 = 0 ;
18620 PyObject * obj3 = 0 ;
18621 PyObject * obj4 = 0 ;
18622 char * kwnames[] = {
18623 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
18624 };
18625
18626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18628 if (!SWIG_IsOK(res1)) {
18629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
18630 }
18631 arg1 = reinterpret_cast< wxDC * >(argp1);
18632 {
18633 arg2 = &temp2;
18634 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18635 }
18636 {
18637 arg3 = &temp3;
18638 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18639 }
18640 {
18641 arg4 = &temp4;
18642 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18643 }
18644 {
18645 arg5 = &temp5;
18646 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18647 }
18648 {
18649 PyThreadState* __tstate = wxPyBeginAllowThreads();
18650 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
18651 wxPyEndAllowThreads(__tstate);
18652 if (PyErr_Occurred()) SWIG_fail;
18653 }
18654 resultobj = SWIG_Py_Void();
18655 return resultobj;
18656 fail:
18657 return NULL;
18658 }
18659
18660
18661 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18662 PyObject *resultobj = 0;
18663 wxDC *arg1 = (wxDC *) 0 ;
18664 wxRect *arg2 = 0 ;
18665 wxColour *arg3 = 0 ;
18666 wxColour *arg4 = 0 ;
18667 wxDirection arg5 = (wxDirection) wxEAST ;
18668 void *argp1 = 0 ;
18669 int res1 = 0 ;
18670 wxRect temp2 ;
18671 wxColour temp3 ;
18672 wxColour temp4 ;
18673 int val5 ;
18674 int ecode5 = 0 ;
18675 PyObject * obj0 = 0 ;
18676 PyObject * obj1 = 0 ;
18677 PyObject * obj2 = 0 ;
18678 PyObject * obj3 = 0 ;
18679 PyObject * obj4 = 0 ;
18680 char * kwnames[] = {
18681 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
18682 };
18683
18684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18686 if (!SWIG_IsOK(res1)) {
18687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
18688 }
18689 arg1 = reinterpret_cast< wxDC * >(argp1);
18690 {
18691 arg2 = &temp2;
18692 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18693 }
18694 {
18695 arg3 = &temp3;
18696 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18697 }
18698 {
18699 arg4 = &temp4;
18700 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18701 }
18702 if (obj4) {
18703 ecode5 = SWIG_AsVal_int(obj4, &val5);
18704 if (!SWIG_IsOK(ecode5)) {
18705 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
18706 }
18707 arg5 = static_cast< wxDirection >(val5);
18708 }
18709 {
18710 PyThreadState* __tstate = wxPyBeginAllowThreads();
18711 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
18712 wxPyEndAllowThreads(__tstate);
18713 if (PyErr_Occurred()) SWIG_fail;
18714 }
18715 resultobj = SWIG_Py_Void();
18716 return resultobj;
18717 fail:
18718 return NULL;
18719 }
18720
18721
18722 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18723 PyObject *resultobj = 0;
18724 wxDC *arg1 = (wxDC *) 0 ;
18725 int arg2 ;
18726 int arg3 ;
18727 wxColour result;
18728 void *argp1 = 0 ;
18729 int res1 = 0 ;
18730 int val2 ;
18731 int ecode2 = 0 ;
18732 int val3 ;
18733 int ecode3 = 0 ;
18734 PyObject * obj0 = 0 ;
18735 PyObject * obj1 = 0 ;
18736 PyObject * obj2 = 0 ;
18737 char * kwnames[] = {
18738 (char *) "self",(char *) "x",(char *) "y", NULL
18739 };
18740
18741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18743 if (!SWIG_IsOK(res1)) {
18744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
18745 }
18746 arg1 = reinterpret_cast< wxDC * >(argp1);
18747 ecode2 = SWIG_AsVal_int(obj1, &val2);
18748 if (!SWIG_IsOK(ecode2)) {
18749 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
18750 }
18751 arg2 = static_cast< int >(val2);
18752 ecode3 = SWIG_AsVal_int(obj2, &val3);
18753 if (!SWIG_IsOK(ecode3)) {
18754 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
18755 }
18756 arg3 = static_cast< int >(val3);
18757 {
18758 PyThreadState* __tstate = wxPyBeginAllowThreads();
18759 result = wxDC_GetPixel(arg1,arg2,arg3);
18760 wxPyEndAllowThreads(__tstate);
18761 if (PyErr_Occurred()) SWIG_fail;
18762 }
18763 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18764 return resultobj;
18765 fail:
18766 return NULL;
18767 }
18768
18769
18770 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18771 PyObject *resultobj = 0;
18772 wxDC *arg1 = (wxDC *) 0 ;
18773 wxPoint *arg2 = 0 ;
18774 wxColour result;
18775 void *argp1 = 0 ;
18776 int res1 = 0 ;
18777 wxPoint temp2 ;
18778 PyObject * obj0 = 0 ;
18779 PyObject * obj1 = 0 ;
18780 char * kwnames[] = {
18781 (char *) "self",(char *) "pt", NULL
18782 };
18783
18784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18786 if (!SWIG_IsOK(res1)) {
18787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18788 }
18789 arg1 = reinterpret_cast< wxDC * >(argp1);
18790 {
18791 arg2 = &temp2;
18792 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18793 }
18794 {
18795 PyThreadState* __tstate = wxPyBeginAllowThreads();
18796 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
18797 wxPyEndAllowThreads(__tstate);
18798 if (PyErr_Occurred()) SWIG_fail;
18799 }
18800 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18801 return resultobj;
18802 fail:
18803 return NULL;
18804 }
18805
18806
18807 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18808 PyObject *resultobj = 0;
18809 wxDC *arg1 = (wxDC *) 0 ;
18810 int arg2 ;
18811 int arg3 ;
18812 int arg4 ;
18813 int arg5 ;
18814 void *argp1 = 0 ;
18815 int res1 = 0 ;
18816 int val2 ;
18817 int ecode2 = 0 ;
18818 int val3 ;
18819 int ecode3 = 0 ;
18820 int val4 ;
18821 int ecode4 = 0 ;
18822 int val5 ;
18823 int ecode5 = 0 ;
18824 PyObject * obj0 = 0 ;
18825 PyObject * obj1 = 0 ;
18826 PyObject * obj2 = 0 ;
18827 PyObject * obj3 = 0 ;
18828 PyObject * obj4 = 0 ;
18829 char * kwnames[] = {
18830 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18831 };
18832
18833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18835 if (!SWIG_IsOK(res1)) {
18836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18837 }
18838 arg1 = reinterpret_cast< wxDC * >(argp1);
18839 ecode2 = SWIG_AsVal_int(obj1, &val2);
18840 if (!SWIG_IsOK(ecode2)) {
18841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18842 }
18843 arg2 = static_cast< int >(val2);
18844 ecode3 = SWIG_AsVal_int(obj2, &val3);
18845 if (!SWIG_IsOK(ecode3)) {
18846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18847 }
18848 arg3 = static_cast< int >(val3);
18849 ecode4 = SWIG_AsVal_int(obj3, &val4);
18850 if (!SWIG_IsOK(ecode4)) {
18851 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18852 }
18853 arg4 = static_cast< int >(val4);
18854 ecode5 = SWIG_AsVal_int(obj4, &val5);
18855 if (!SWIG_IsOK(ecode5)) {
18856 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18857 }
18858 arg5 = static_cast< int >(val5);
18859 {
18860 PyThreadState* __tstate = wxPyBeginAllowThreads();
18861 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18862 wxPyEndAllowThreads(__tstate);
18863 if (PyErr_Occurred()) SWIG_fail;
18864 }
18865 resultobj = SWIG_Py_Void();
18866 return resultobj;
18867 fail:
18868 return NULL;
18869 }
18870
18871
18872 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18873 PyObject *resultobj = 0;
18874 wxDC *arg1 = (wxDC *) 0 ;
18875 wxPoint *arg2 = 0 ;
18876 wxPoint *arg3 = 0 ;
18877 void *argp1 = 0 ;
18878 int res1 = 0 ;
18879 wxPoint temp2 ;
18880 wxPoint temp3 ;
18881 PyObject * obj0 = 0 ;
18882 PyObject * obj1 = 0 ;
18883 PyObject * obj2 = 0 ;
18884 char * kwnames[] = {
18885 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18886 };
18887
18888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18890 if (!SWIG_IsOK(res1)) {
18891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18892 }
18893 arg1 = reinterpret_cast< wxDC * >(argp1);
18894 {
18895 arg2 = &temp2;
18896 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18897 }
18898 {
18899 arg3 = &temp3;
18900 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18901 }
18902 {
18903 PyThreadState* __tstate = wxPyBeginAllowThreads();
18904 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18905 wxPyEndAllowThreads(__tstate);
18906 if (PyErr_Occurred()) SWIG_fail;
18907 }
18908 resultobj = SWIG_Py_Void();
18909 return resultobj;
18910 fail:
18911 return NULL;
18912 }
18913
18914
18915 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18916 PyObject *resultobj = 0;
18917 wxDC *arg1 = (wxDC *) 0 ;
18918 int arg2 ;
18919 int arg3 ;
18920 void *argp1 = 0 ;
18921 int res1 = 0 ;
18922 int val2 ;
18923 int ecode2 = 0 ;
18924 int val3 ;
18925 int ecode3 = 0 ;
18926 PyObject * obj0 = 0 ;
18927 PyObject * obj1 = 0 ;
18928 PyObject * obj2 = 0 ;
18929 char * kwnames[] = {
18930 (char *) "self",(char *) "x",(char *) "y", NULL
18931 };
18932
18933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18935 if (!SWIG_IsOK(res1)) {
18936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18937 }
18938 arg1 = reinterpret_cast< wxDC * >(argp1);
18939 ecode2 = SWIG_AsVal_int(obj1, &val2);
18940 if (!SWIG_IsOK(ecode2)) {
18941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18942 }
18943 arg2 = static_cast< int >(val2);
18944 ecode3 = SWIG_AsVal_int(obj2, &val3);
18945 if (!SWIG_IsOK(ecode3)) {
18946 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18947 }
18948 arg3 = static_cast< int >(val3);
18949 {
18950 PyThreadState* __tstate = wxPyBeginAllowThreads();
18951 (arg1)->CrossHair(arg2,arg3);
18952 wxPyEndAllowThreads(__tstate);
18953 if (PyErr_Occurred()) SWIG_fail;
18954 }
18955 resultobj = SWIG_Py_Void();
18956 return resultobj;
18957 fail:
18958 return NULL;
18959 }
18960
18961
18962 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18963 PyObject *resultobj = 0;
18964 wxDC *arg1 = (wxDC *) 0 ;
18965 wxPoint *arg2 = 0 ;
18966 void *argp1 = 0 ;
18967 int res1 = 0 ;
18968 wxPoint temp2 ;
18969 PyObject * obj0 = 0 ;
18970 PyObject * obj1 = 0 ;
18971 char * kwnames[] = {
18972 (char *) "self",(char *) "pt", NULL
18973 };
18974
18975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18977 if (!SWIG_IsOK(res1)) {
18978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18979 }
18980 arg1 = reinterpret_cast< wxDC * >(argp1);
18981 {
18982 arg2 = &temp2;
18983 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18984 }
18985 {
18986 PyThreadState* __tstate = wxPyBeginAllowThreads();
18987 (arg1)->CrossHair((wxPoint const &)*arg2);
18988 wxPyEndAllowThreads(__tstate);
18989 if (PyErr_Occurred()) SWIG_fail;
18990 }
18991 resultobj = SWIG_Py_Void();
18992 return resultobj;
18993 fail:
18994 return NULL;
18995 }
18996
18997
18998 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18999 PyObject *resultobj = 0;
19000 wxDC *arg1 = (wxDC *) 0 ;
19001 int arg2 ;
19002 int arg3 ;
19003 int arg4 ;
19004 int arg5 ;
19005 int arg6 ;
19006 int arg7 ;
19007 void *argp1 = 0 ;
19008 int res1 = 0 ;
19009 int val2 ;
19010 int ecode2 = 0 ;
19011 int val3 ;
19012 int ecode3 = 0 ;
19013 int val4 ;
19014 int ecode4 = 0 ;
19015 int val5 ;
19016 int ecode5 = 0 ;
19017 int val6 ;
19018 int ecode6 = 0 ;
19019 int val7 ;
19020 int ecode7 = 0 ;
19021 PyObject * obj0 = 0 ;
19022 PyObject * obj1 = 0 ;
19023 PyObject * obj2 = 0 ;
19024 PyObject * obj3 = 0 ;
19025 PyObject * obj4 = 0 ;
19026 PyObject * obj5 = 0 ;
19027 PyObject * obj6 = 0 ;
19028 char * kwnames[] = {
19029 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
19030 };
19031
19032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
19033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19034 if (!SWIG_IsOK(res1)) {
19035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
19036 }
19037 arg1 = reinterpret_cast< wxDC * >(argp1);
19038 ecode2 = SWIG_AsVal_int(obj1, &val2);
19039 if (!SWIG_IsOK(ecode2)) {
19040 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
19041 }
19042 arg2 = static_cast< int >(val2);
19043 ecode3 = SWIG_AsVal_int(obj2, &val3);
19044 if (!SWIG_IsOK(ecode3)) {
19045 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
19046 }
19047 arg3 = static_cast< int >(val3);
19048 ecode4 = SWIG_AsVal_int(obj3, &val4);
19049 if (!SWIG_IsOK(ecode4)) {
19050 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
19051 }
19052 arg4 = static_cast< int >(val4);
19053 ecode5 = SWIG_AsVal_int(obj4, &val5);
19054 if (!SWIG_IsOK(ecode5)) {
19055 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
19056 }
19057 arg5 = static_cast< int >(val5);
19058 ecode6 = SWIG_AsVal_int(obj5, &val6);
19059 if (!SWIG_IsOK(ecode6)) {
19060 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
19061 }
19062 arg6 = static_cast< int >(val6);
19063 ecode7 = SWIG_AsVal_int(obj6, &val7);
19064 if (!SWIG_IsOK(ecode7)) {
19065 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
19066 }
19067 arg7 = static_cast< int >(val7);
19068 {
19069 PyThreadState* __tstate = wxPyBeginAllowThreads();
19070 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
19071 wxPyEndAllowThreads(__tstate);
19072 if (PyErr_Occurred()) SWIG_fail;
19073 }
19074 resultobj = SWIG_Py_Void();
19075 return resultobj;
19076 fail:
19077 return NULL;
19078 }
19079
19080
19081 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19082 PyObject *resultobj = 0;
19083 wxDC *arg1 = (wxDC *) 0 ;
19084 wxPoint *arg2 = 0 ;
19085 wxPoint *arg3 = 0 ;
19086 wxPoint *arg4 = 0 ;
19087 void *argp1 = 0 ;
19088 int res1 = 0 ;
19089 wxPoint temp2 ;
19090 wxPoint temp3 ;
19091 wxPoint temp4 ;
19092 PyObject * obj0 = 0 ;
19093 PyObject * obj1 = 0 ;
19094 PyObject * obj2 = 0 ;
19095 PyObject * obj3 = 0 ;
19096 char * kwnames[] = {
19097 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
19098 };
19099
19100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19102 if (!SWIG_IsOK(res1)) {
19103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19104 }
19105 arg1 = reinterpret_cast< wxDC * >(argp1);
19106 {
19107 arg2 = &temp2;
19108 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19109 }
19110 {
19111 arg3 = &temp3;
19112 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19113 }
19114 {
19115 arg4 = &temp4;
19116 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
19117 }
19118 {
19119 PyThreadState* __tstate = wxPyBeginAllowThreads();
19120 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
19121 wxPyEndAllowThreads(__tstate);
19122 if (PyErr_Occurred()) SWIG_fail;
19123 }
19124 resultobj = SWIG_Py_Void();
19125 return resultobj;
19126 fail:
19127 return NULL;
19128 }
19129
19130
19131 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19132 PyObject *resultobj = 0;
19133 wxDC *arg1 = (wxDC *) 0 ;
19134 int arg2 ;
19135 int arg3 ;
19136 int arg4 ;
19137 int arg5 ;
19138 void *argp1 = 0 ;
19139 int res1 = 0 ;
19140 int val2 ;
19141 int ecode2 = 0 ;
19142 int val3 ;
19143 int ecode3 = 0 ;
19144 int val4 ;
19145 int ecode4 = 0 ;
19146 int val5 ;
19147 int ecode5 = 0 ;
19148 PyObject * obj0 = 0 ;
19149 PyObject * obj1 = 0 ;
19150 PyObject * obj2 = 0 ;
19151 PyObject * obj3 = 0 ;
19152 PyObject * obj4 = 0 ;
19153 char * kwnames[] = {
19154 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19155 };
19156
19157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19159 if (!SWIG_IsOK(res1)) {
19160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
19161 }
19162 arg1 = reinterpret_cast< wxDC * >(argp1);
19163 ecode2 = SWIG_AsVal_int(obj1, &val2);
19164 if (!SWIG_IsOK(ecode2)) {
19165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
19166 }
19167 arg2 = static_cast< int >(val2);
19168 ecode3 = SWIG_AsVal_int(obj2, &val3);
19169 if (!SWIG_IsOK(ecode3)) {
19170 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
19171 }
19172 arg3 = static_cast< int >(val3);
19173 ecode4 = SWIG_AsVal_int(obj3, &val4);
19174 if (!SWIG_IsOK(ecode4)) {
19175 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
19176 }
19177 arg4 = static_cast< int >(val4);
19178 ecode5 = SWIG_AsVal_int(obj4, &val5);
19179 if (!SWIG_IsOK(ecode5)) {
19180 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
19181 }
19182 arg5 = static_cast< int >(val5);
19183 {
19184 PyThreadState* __tstate = wxPyBeginAllowThreads();
19185 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
19186 wxPyEndAllowThreads(__tstate);
19187 if (PyErr_Occurred()) SWIG_fail;
19188 }
19189 resultobj = SWIG_Py_Void();
19190 return resultobj;
19191 fail:
19192 return NULL;
19193 }
19194
19195
19196 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19197 PyObject *resultobj = 0;
19198 wxDC *arg1 = (wxDC *) 0 ;
19199 wxRect *arg2 = 0 ;
19200 void *argp1 = 0 ;
19201 int res1 = 0 ;
19202 wxRect temp2 ;
19203 PyObject * obj0 = 0 ;
19204 PyObject * obj1 = 0 ;
19205 char * kwnames[] = {
19206 (char *) "self",(char *) "rect", NULL
19207 };
19208
19209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
19210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19211 if (!SWIG_IsOK(res1)) {
19212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
19213 }
19214 arg1 = reinterpret_cast< wxDC * >(argp1);
19215 {
19216 arg2 = &temp2;
19217 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19218 }
19219 {
19220 PyThreadState* __tstate = wxPyBeginAllowThreads();
19221 (arg1)->DrawCheckMark((wxRect const &)*arg2);
19222 wxPyEndAllowThreads(__tstate);
19223 if (PyErr_Occurred()) SWIG_fail;
19224 }
19225 resultobj = SWIG_Py_Void();
19226 return resultobj;
19227 fail:
19228 return NULL;
19229 }
19230
19231
19232 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19233 PyObject *resultobj = 0;
19234 wxDC *arg1 = (wxDC *) 0 ;
19235 int arg2 ;
19236 int arg3 ;
19237 int arg4 ;
19238 int arg5 ;
19239 double arg6 ;
19240 double arg7 ;
19241 void *argp1 = 0 ;
19242 int res1 = 0 ;
19243 int val2 ;
19244 int ecode2 = 0 ;
19245 int val3 ;
19246 int ecode3 = 0 ;
19247 int val4 ;
19248 int ecode4 = 0 ;
19249 int val5 ;
19250 int ecode5 = 0 ;
19251 double val6 ;
19252 int ecode6 = 0 ;
19253 double val7 ;
19254 int ecode7 = 0 ;
19255 PyObject * obj0 = 0 ;
19256 PyObject * obj1 = 0 ;
19257 PyObject * obj2 = 0 ;
19258 PyObject * obj3 = 0 ;
19259 PyObject * obj4 = 0 ;
19260 PyObject * obj5 = 0 ;
19261 PyObject * obj6 = 0 ;
19262 char * kwnames[] = {
19263 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
19264 };
19265
19266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
19267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19268 if (!SWIG_IsOK(res1)) {
19269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
19270 }
19271 arg1 = reinterpret_cast< wxDC * >(argp1);
19272 ecode2 = SWIG_AsVal_int(obj1, &val2);
19273 if (!SWIG_IsOK(ecode2)) {
19274 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
19275 }
19276 arg2 = static_cast< int >(val2);
19277 ecode3 = SWIG_AsVal_int(obj2, &val3);
19278 if (!SWIG_IsOK(ecode3)) {
19279 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
19280 }
19281 arg3 = static_cast< int >(val3);
19282 ecode4 = SWIG_AsVal_int(obj3, &val4);
19283 if (!SWIG_IsOK(ecode4)) {
19284 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
19285 }
19286 arg4 = static_cast< int >(val4);
19287 ecode5 = SWIG_AsVal_int(obj4, &val5);
19288 if (!SWIG_IsOK(ecode5)) {
19289 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
19290 }
19291 arg5 = static_cast< int >(val5);
19292 ecode6 = SWIG_AsVal_double(obj5, &val6);
19293 if (!SWIG_IsOK(ecode6)) {
19294 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
19295 }
19296 arg6 = static_cast< double >(val6);
19297 ecode7 = SWIG_AsVal_double(obj6, &val7);
19298 if (!SWIG_IsOK(ecode7)) {
19299 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
19300 }
19301 arg7 = static_cast< double >(val7);
19302 {
19303 PyThreadState* __tstate = wxPyBeginAllowThreads();
19304 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
19305 wxPyEndAllowThreads(__tstate);
19306 if (PyErr_Occurred()) SWIG_fail;
19307 }
19308 resultobj = SWIG_Py_Void();
19309 return resultobj;
19310 fail:
19311 return NULL;
19312 }
19313
19314
19315 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19316 PyObject *resultobj = 0;
19317 wxDC *arg1 = (wxDC *) 0 ;
19318 wxPoint *arg2 = 0 ;
19319 wxSize *arg3 = 0 ;
19320 double arg4 ;
19321 double arg5 ;
19322 void *argp1 = 0 ;
19323 int res1 = 0 ;
19324 wxPoint temp2 ;
19325 wxSize temp3 ;
19326 double val4 ;
19327 int ecode4 = 0 ;
19328 double val5 ;
19329 int ecode5 = 0 ;
19330 PyObject * obj0 = 0 ;
19331 PyObject * obj1 = 0 ;
19332 PyObject * obj2 = 0 ;
19333 PyObject * obj3 = 0 ;
19334 PyObject * obj4 = 0 ;
19335 char * kwnames[] = {
19336 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
19337 };
19338
19339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19341 if (!SWIG_IsOK(res1)) {
19342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19343 }
19344 arg1 = reinterpret_cast< wxDC * >(argp1);
19345 {
19346 arg2 = &temp2;
19347 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19348 }
19349 {
19350 arg3 = &temp3;
19351 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19352 }
19353 ecode4 = SWIG_AsVal_double(obj3, &val4);
19354 if (!SWIG_IsOK(ecode4)) {
19355 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
19356 }
19357 arg4 = static_cast< double >(val4);
19358 ecode5 = SWIG_AsVal_double(obj4, &val5);
19359 if (!SWIG_IsOK(ecode5)) {
19360 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
19361 }
19362 arg5 = static_cast< double >(val5);
19363 {
19364 PyThreadState* __tstate = wxPyBeginAllowThreads();
19365 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
19366 wxPyEndAllowThreads(__tstate);
19367 if (PyErr_Occurred()) SWIG_fail;
19368 }
19369 resultobj = SWIG_Py_Void();
19370 return resultobj;
19371 fail:
19372 return NULL;
19373 }
19374
19375
19376 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19377 PyObject *resultobj = 0;
19378 wxDC *arg1 = (wxDC *) 0 ;
19379 int arg2 ;
19380 int arg3 ;
19381 void *argp1 = 0 ;
19382 int res1 = 0 ;
19383 int val2 ;
19384 int ecode2 = 0 ;
19385 int val3 ;
19386 int ecode3 = 0 ;
19387 PyObject * obj0 = 0 ;
19388 PyObject * obj1 = 0 ;
19389 PyObject * obj2 = 0 ;
19390 char * kwnames[] = {
19391 (char *) "self",(char *) "x",(char *) "y", NULL
19392 };
19393
19394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19396 if (!SWIG_IsOK(res1)) {
19397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19398 }
19399 arg1 = reinterpret_cast< wxDC * >(argp1);
19400 ecode2 = SWIG_AsVal_int(obj1, &val2);
19401 if (!SWIG_IsOK(ecode2)) {
19402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
19403 }
19404 arg2 = static_cast< int >(val2);
19405 ecode3 = SWIG_AsVal_int(obj2, &val3);
19406 if (!SWIG_IsOK(ecode3)) {
19407 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
19408 }
19409 arg3 = static_cast< int >(val3);
19410 {
19411 PyThreadState* __tstate = wxPyBeginAllowThreads();
19412 (arg1)->DrawPoint(arg2,arg3);
19413 wxPyEndAllowThreads(__tstate);
19414 if (PyErr_Occurred()) SWIG_fail;
19415 }
19416 resultobj = SWIG_Py_Void();
19417 return resultobj;
19418 fail:
19419 return NULL;
19420 }
19421
19422
19423 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19424 PyObject *resultobj = 0;
19425 wxDC *arg1 = (wxDC *) 0 ;
19426 wxPoint *arg2 = 0 ;
19427 void *argp1 = 0 ;
19428 int res1 = 0 ;
19429 wxPoint temp2 ;
19430 PyObject * obj0 = 0 ;
19431 PyObject * obj1 = 0 ;
19432 char * kwnames[] = {
19433 (char *) "self",(char *) "pt", NULL
19434 };
19435
19436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19438 if (!SWIG_IsOK(res1)) {
19439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19440 }
19441 arg1 = reinterpret_cast< wxDC * >(argp1);
19442 {
19443 arg2 = &temp2;
19444 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19445 }
19446 {
19447 PyThreadState* __tstate = wxPyBeginAllowThreads();
19448 (arg1)->DrawPoint((wxPoint const &)*arg2);
19449 wxPyEndAllowThreads(__tstate);
19450 if (PyErr_Occurred()) SWIG_fail;
19451 }
19452 resultobj = SWIG_Py_Void();
19453 return resultobj;
19454 fail:
19455 return NULL;
19456 }
19457
19458
19459 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19460 PyObject *resultobj = 0;
19461 wxDC *arg1 = (wxDC *) 0 ;
19462 int arg2 ;
19463 int arg3 ;
19464 int arg4 ;
19465 int arg5 ;
19466 void *argp1 = 0 ;
19467 int res1 = 0 ;
19468 int val2 ;
19469 int ecode2 = 0 ;
19470 int val3 ;
19471 int ecode3 = 0 ;
19472 int val4 ;
19473 int ecode4 = 0 ;
19474 int val5 ;
19475 int ecode5 = 0 ;
19476 PyObject * obj0 = 0 ;
19477 PyObject * obj1 = 0 ;
19478 PyObject * obj2 = 0 ;
19479 PyObject * obj3 = 0 ;
19480 PyObject * obj4 = 0 ;
19481 char * kwnames[] = {
19482 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19483 };
19484
19485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19487 if (!SWIG_IsOK(res1)) {
19488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19489 }
19490 arg1 = reinterpret_cast< wxDC * >(argp1);
19491 ecode2 = SWIG_AsVal_int(obj1, &val2);
19492 if (!SWIG_IsOK(ecode2)) {
19493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
19494 }
19495 arg2 = static_cast< int >(val2);
19496 ecode3 = SWIG_AsVal_int(obj2, &val3);
19497 if (!SWIG_IsOK(ecode3)) {
19498 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
19499 }
19500 arg3 = static_cast< int >(val3);
19501 ecode4 = SWIG_AsVal_int(obj3, &val4);
19502 if (!SWIG_IsOK(ecode4)) {
19503 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
19504 }
19505 arg4 = static_cast< int >(val4);
19506 ecode5 = SWIG_AsVal_int(obj4, &val5);
19507 if (!SWIG_IsOK(ecode5)) {
19508 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
19509 }
19510 arg5 = static_cast< int >(val5);
19511 {
19512 PyThreadState* __tstate = wxPyBeginAllowThreads();
19513 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
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_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19525 PyObject *resultobj = 0;
19526 wxDC *arg1 = (wxDC *) 0 ;
19527 wxRect *arg2 = 0 ;
19528 void *argp1 = 0 ;
19529 int res1 = 0 ;
19530 wxRect temp2 ;
19531 PyObject * obj0 = 0 ;
19532 PyObject * obj1 = 0 ;
19533 char * kwnames[] = {
19534 (char *) "self",(char *) "rect", NULL
19535 };
19536
19537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
19538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19539 if (!SWIG_IsOK(res1)) {
19540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19541 }
19542 arg1 = reinterpret_cast< wxDC * >(argp1);
19543 {
19544 arg2 = &temp2;
19545 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19546 }
19547 {
19548 PyThreadState* __tstate = wxPyBeginAllowThreads();
19549 (arg1)->DrawRectangle((wxRect const &)*arg2);
19550 wxPyEndAllowThreads(__tstate);
19551 if (PyErr_Occurred()) SWIG_fail;
19552 }
19553 resultobj = SWIG_Py_Void();
19554 return resultobj;
19555 fail:
19556 return NULL;
19557 }
19558
19559
19560 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19561 PyObject *resultobj = 0;
19562 wxDC *arg1 = (wxDC *) 0 ;
19563 wxPoint *arg2 = 0 ;
19564 wxSize *arg3 = 0 ;
19565 void *argp1 = 0 ;
19566 int res1 = 0 ;
19567 wxPoint temp2 ;
19568 wxSize temp3 ;
19569 PyObject * obj0 = 0 ;
19570 PyObject * obj1 = 0 ;
19571 PyObject * obj2 = 0 ;
19572 char * kwnames[] = {
19573 (char *) "self",(char *) "pt",(char *) "sz", NULL
19574 };
19575
19576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19578 if (!SWIG_IsOK(res1)) {
19579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19580 }
19581 arg1 = reinterpret_cast< wxDC * >(argp1);
19582 {
19583 arg2 = &temp2;
19584 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19585 }
19586 {
19587 arg3 = &temp3;
19588 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19589 }
19590 {
19591 PyThreadState* __tstate = wxPyBeginAllowThreads();
19592 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
19593 wxPyEndAllowThreads(__tstate);
19594 if (PyErr_Occurred()) SWIG_fail;
19595 }
19596 resultobj = SWIG_Py_Void();
19597 return resultobj;
19598 fail:
19599 return NULL;
19600 }
19601
19602
19603 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19604 PyObject *resultobj = 0;
19605 wxDC *arg1 = (wxDC *) 0 ;
19606 int arg2 ;
19607 int arg3 ;
19608 int arg4 ;
19609 int arg5 ;
19610 double arg6 ;
19611 void *argp1 = 0 ;
19612 int res1 = 0 ;
19613 int val2 ;
19614 int ecode2 = 0 ;
19615 int val3 ;
19616 int ecode3 = 0 ;
19617 int val4 ;
19618 int ecode4 = 0 ;
19619 int val5 ;
19620 int ecode5 = 0 ;
19621 double val6 ;
19622 int ecode6 = 0 ;
19623 PyObject * obj0 = 0 ;
19624 PyObject * obj1 = 0 ;
19625 PyObject * obj2 = 0 ;
19626 PyObject * obj3 = 0 ;
19627 PyObject * obj4 = 0 ;
19628 PyObject * obj5 = 0 ;
19629 char * kwnames[] = {
19630 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
19631 };
19632
19633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19635 if (!SWIG_IsOK(res1)) {
19636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19637 }
19638 arg1 = reinterpret_cast< wxDC * >(argp1);
19639 ecode2 = SWIG_AsVal_int(obj1, &val2);
19640 if (!SWIG_IsOK(ecode2)) {
19641 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
19642 }
19643 arg2 = static_cast< int >(val2);
19644 ecode3 = SWIG_AsVal_int(obj2, &val3);
19645 if (!SWIG_IsOK(ecode3)) {
19646 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
19647 }
19648 arg3 = static_cast< int >(val3);
19649 ecode4 = SWIG_AsVal_int(obj3, &val4);
19650 if (!SWIG_IsOK(ecode4)) {
19651 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
19652 }
19653 arg4 = static_cast< int >(val4);
19654 ecode5 = SWIG_AsVal_int(obj4, &val5);
19655 if (!SWIG_IsOK(ecode5)) {
19656 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
19657 }
19658 arg5 = static_cast< int >(val5);
19659 ecode6 = SWIG_AsVal_double(obj5, &val6);
19660 if (!SWIG_IsOK(ecode6)) {
19661 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
19662 }
19663 arg6 = static_cast< double >(val6);
19664 {
19665 PyThreadState* __tstate = wxPyBeginAllowThreads();
19666 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
19667 wxPyEndAllowThreads(__tstate);
19668 if (PyErr_Occurred()) SWIG_fail;
19669 }
19670 resultobj = SWIG_Py_Void();
19671 return resultobj;
19672 fail:
19673 return NULL;
19674 }
19675
19676
19677 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19678 PyObject *resultobj = 0;
19679 wxDC *arg1 = (wxDC *) 0 ;
19680 wxRect *arg2 = 0 ;
19681 double arg3 ;
19682 void *argp1 = 0 ;
19683 int res1 = 0 ;
19684 wxRect temp2 ;
19685 double val3 ;
19686 int ecode3 = 0 ;
19687 PyObject * obj0 = 0 ;
19688 PyObject * obj1 = 0 ;
19689 PyObject * obj2 = 0 ;
19690 char * kwnames[] = {
19691 (char *) "self",(char *) "r",(char *) "radius", NULL
19692 };
19693
19694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19696 if (!SWIG_IsOK(res1)) {
19697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19698 }
19699 arg1 = reinterpret_cast< wxDC * >(argp1);
19700 {
19701 arg2 = &temp2;
19702 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19703 }
19704 ecode3 = SWIG_AsVal_double(obj2, &val3);
19705 if (!SWIG_IsOK(ecode3)) {
19706 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
19707 }
19708 arg3 = static_cast< double >(val3);
19709 {
19710 PyThreadState* __tstate = wxPyBeginAllowThreads();
19711 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
19712 wxPyEndAllowThreads(__tstate);
19713 if (PyErr_Occurred()) SWIG_fail;
19714 }
19715 resultobj = SWIG_Py_Void();
19716 return resultobj;
19717 fail:
19718 return NULL;
19719 }
19720
19721
19722 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19723 PyObject *resultobj = 0;
19724 wxDC *arg1 = (wxDC *) 0 ;
19725 wxPoint *arg2 = 0 ;
19726 wxSize *arg3 = 0 ;
19727 double arg4 ;
19728 void *argp1 = 0 ;
19729 int res1 = 0 ;
19730 wxPoint temp2 ;
19731 wxSize temp3 ;
19732 double val4 ;
19733 int ecode4 = 0 ;
19734 PyObject * obj0 = 0 ;
19735 PyObject * obj1 = 0 ;
19736 PyObject * obj2 = 0 ;
19737 PyObject * obj3 = 0 ;
19738 char * kwnames[] = {
19739 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
19740 };
19741
19742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_DrawRoundedRectanglePointSize" "', 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 ecode4 = SWIG_AsVal_double(obj3, &val4);
19757 if (!SWIG_IsOK(ecode4)) {
19758 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
19759 }
19760 arg4 = static_cast< double >(val4);
19761 {
19762 PyThreadState* __tstate = wxPyBeginAllowThreads();
19763 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
19764 wxPyEndAllowThreads(__tstate);
19765 if (PyErr_Occurred()) SWIG_fail;
19766 }
19767 resultobj = SWIG_Py_Void();
19768 return resultobj;
19769 fail:
19770 return NULL;
19771 }
19772
19773
19774 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19775 PyObject *resultobj = 0;
19776 wxDC *arg1 = (wxDC *) 0 ;
19777 int arg2 ;
19778 int arg3 ;
19779 int arg4 ;
19780 void *argp1 = 0 ;
19781 int res1 = 0 ;
19782 int val2 ;
19783 int ecode2 = 0 ;
19784 int val3 ;
19785 int ecode3 = 0 ;
19786 int val4 ;
19787 int ecode4 = 0 ;
19788 PyObject * obj0 = 0 ;
19789 PyObject * obj1 = 0 ;
19790 PyObject * obj2 = 0 ;
19791 PyObject * obj3 = 0 ;
19792 char * kwnames[] = {
19793 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
19794 };
19795
19796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19798 if (!SWIG_IsOK(res1)) {
19799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
19800 }
19801 arg1 = reinterpret_cast< wxDC * >(argp1);
19802 ecode2 = SWIG_AsVal_int(obj1, &val2);
19803 if (!SWIG_IsOK(ecode2)) {
19804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
19805 }
19806 arg2 = static_cast< int >(val2);
19807 ecode3 = SWIG_AsVal_int(obj2, &val3);
19808 if (!SWIG_IsOK(ecode3)) {
19809 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19810 }
19811 arg3 = static_cast< int >(val3);
19812 ecode4 = SWIG_AsVal_int(obj3, &val4);
19813 if (!SWIG_IsOK(ecode4)) {
19814 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19815 }
19816 arg4 = static_cast< int >(val4);
19817 {
19818 PyThreadState* __tstate = wxPyBeginAllowThreads();
19819 (arg1)->DrawCircle(arg2,arg3,arg4);
19820 wxPyEndAllowThreads(__tstate);
19821 if (PyErr_Occurred()) SWIG_fail;
19822 }
19823 resultobj = SWIG_Py_Void();
19824 return resultobj;
19825 fail:
19826 return NULL;
19827 }
19828
19829
19830 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19831 PyObject *resultobj = 0;
19832 wxDC *arg1 = (wxDC *) 0 ;
19833 wxPoint *arg2 = 0 ;
19834 int arg3 ;
19835 void *argp1 = 0 ;
19836 int res1 = 0 ;
19837 wxPoint temp2 ;
19838 int val3 ;
19839 int ecode3 = 0 ;
19840 PyObject * obj0 = 0 ;
19841 PyObject * obj1 = 0 ;
19842 PyObject * obj2 = 0 ;
19843 char * kwnames[] = {
19844 (char *) "self",(char *) "pt",(char *) "radius", NULL
19845 };
19846
19847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19849 if (!SWIG_IsOK(res1)) {
19850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19851 }
19852 arg1 = reinterpret_cast< wxDC * >(argp1);
19853 {
19854 arg2 = &temp2;
19855 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19856 }
19857 ecode3 = SWIG_AsVal_int(obj2, &val3);
19858 if (!SWIG_IsOK(ecode3)) {
19859 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19860 }
19861 arg3 = static_cast< int >(val3);
19862 {
19863 PyThreadState* __tstate = wxPyBeginAllowThreads();
19864 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19865 wxPyEndAllowThreads(__tstate);
19866 if (PyErr_Occurred()) SWIG_fail;
19867 }
19868 resultobj = SWIG_Py_Void();
19869 return resultobj;
19870 fail:
19871 return NULL;
19872 }
19873
19874
19875 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19876 PyObject *resultobj = 0;
19877 wxDC *arg1 = (wxDC *) 0 ;
19878 int arg2 ;
19879 int arg3 ;
19880 int arg4 ;
19881 int arg5 ;
19882 void *argp1 = 0 ;
19883 int res1 = 0 ;
19884 int val2 ;
19885 int ecode2 = 0 ;
19886 int val3 ;
19887 int ecode3 = 0 ;
19888 int val4 ;
19889 int ecode4 = 0 ;
19890 int val5 ;
19891 int ecode5 = 0 ;
19892 PyObject * obj0 = 0 ;
19893 PyObject * obj1 = 0 ;
19894 PyObject * obj2 = 0 ;
19895 PyObject * obj3 = 0 ;
19896 PyObject * obj4 = 0 ;
19897 char * kwnames[] = {
19898 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19899 };
19900
19901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19903 if (!SWIG_IsOK(res1)) {
19904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19905 }
19906 arg1 = reinterpret_cast< wxDC * >(argp1);
19907 ecode2 = SWIG_AsVal_int(obj1, &val2);
19908 if (!SWIG_IsOK(ecode2)) {
19909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19910 }
19911 arg2 = static_cast< int >(val2);
19912 ecode3 = SWIG_AsVal_int(obj2, &val3);
19913 if (!SWIG_IsOK(ecode3)) {
19914 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19915 }
19916 arg3 = static_cast< int >(val3);
19917 ecode4 = SWIG_AsVal_int(obj3, &val4);
19918 if (!SWIG_IsOK(ecode4)) {
19919 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19920 }
19921 arg4 = static_cast< int >(val4);
19922 ecode5 = SWIG_AsVal_int(obj4, &val5);
19923 if (!SWIG_IsOK(ecode5)) {
19924 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19925 }
19926 arg5 = static_cast< int >(val5);
19927 {
19928 PyThreadState* __tstate = wxPyBeginAllowThreads();
19929 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19930 wxPyEndAllowThreads(__tstate);
19931 if (PyErr_Occurred()) SWIG_fail;
19932 }
19933 resultobj = SWIG_Py_Void();
19934 return resultobj;
19935 fail:
19936 return NULL;
19937 }
19938
19939
19940 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19941 PyObject *resultobj = 0;
19942 wxDC *arg1 = (wxDC *) 0 ;
19943 wxRect *arg2 = 0 ;
19944 void *argp1 = 0 ;
19945 int res1 = 0 ;
19946 wxRect temp2 ;
19947 PyObject * obj0 = 0 ;
19948 PyObject * obj1 = 0 ;
19949 char * kwnames[] = {
19950 (char *) "self",(char *) "rect", NULL
19951 };
19952
19953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19955 if (!SWIG_IsOK(res1)) {
19956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19957 }
19958 arg1 = reinterpret_cast< wxDC * >(argp1);
19959 {
19960 arg2 = &temp2;
19961 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19962 }
19963 {
19964 PyThreadState* __tstate = wxPyBeginAllowThreads();
19965 (arg1)->DrawEllipse((wxRect const &)*arg2);
19966 wxPyEndAllowThreads(__tstate);
19967 if (PyErr_Occurred()) SWIG_fail;
19968 }
19969 resultobj = SWIG_Py_Void();
19970 return resultobj;
19971 fail:
19972 return NULL;
19973 }
19974
19975
19976 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19977 PyObject *resultobj = 0;
19978 wxDC *arg1 = (wxDC *) 0 ;
19979 wxPoint *arg2 = 0 ;
19980 wxSize *arg3 = 0 ;
19981 void *argp1 = 0 ;
19982 int res1 = 0 ;
19983 wxPoint temp2 ;
19984 wxSize temp3 ;
19985 PyObject * obj0 = 0 ;
19986 PyObject * obj1 = 0 ;
19987 PyObject * obj2 = 0 ;
19988 char * kwnames[] = {
19989 (char *) "self",(char *) "pt",(char *) "sz", NULL
19990 };
19991
19992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19994 if (!SWIG_IsOK(res1)) {
19995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19996 }
19997 arg1 = reinterpret_cast< wxDC * >(argp1);
19998 {
19999 arg2 = &temp2;
20000 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20001 }
20002 {
20003 arg3 = &temp3;
20004 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20005 }
20006 {
20007 PyThreadState* __tstate = wxPyBeginAllowThreads();
20008 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
20009 wxPyEndAllowThreads(__tstate);
20010 if (PyErr_Occurred()) SWIG_fail;
20011 }
20012 resultobj = SWIG_Py_Void();
20013 return resultobj;
20014 fail:
20015 return NULL;
20016 }
20017
20018
20019 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20020 PyObject *resultobj = 0;
20021 wxDC *arg1 = (wxDC *) 0 ;
20022 wxIcon *arg2 = 0 ;
20023 int arg3 ;
20024 int arg4 ;
20025 void *argp1 = 0 ;
20026 int res1 = 0 ;
20027 void *argp2 = 0 ;
20028 int res2 = 0 ;
20029 int val3 ;
20030 int ecode3 = 0 ;
20031 int val4 ;
20032 int ecode4 = 0 ;
20033 PyObject * obj0 = 0 ;
20034 PyObject * obj1 = 0 ;
20035 PyObject * obj2 = 0 ;
20036 PyObject * obj3 = 0 ;
20037 char * kwnames[] = {
20038 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
20039 };
20040
20041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20043 if (!SWIG_IsOK(res1)) {
20044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
20045 }
20046 arg1 = reinterpret_cast< wxDC * >(argp1);
20047 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
20048 if (!SWIG_IsOK(res2)) {
20049 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
20050 }
20051 if (!argp2) {
20052 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
20053 }
20054 arg2 = reinterpret_cast< wxIcon * >(argp2);
20055 ecode3 = SWIG_AsVal_int(obj2, &val3);
20056 if (!SWIG_IsOK(ecode3)) {
20057 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
20058 }
20059 arg3 = static_cast< int >(val3);
20060 ecode4 = SWIG_AsVal_int(obj3, &val4);
20061 if (!SWIG_IsOK(ecode4)) {
20062 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
20063 }
20064 arg4 = static_cast< int >(val4);
20065 {
20066 PyThreadState* __tstate = wxPyBeginAllowThreads();
20067 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
20068 wxPyEndAllowThreads(__tstate);
20069 if (PyErr_Occurred()) SWIG_fail;
20070 }
20071 resultobj = SWIG_Py_Void();
20072 return resultobj;
20073 fail:
20074 return NULL;
20075 }
20076
20077
20078 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20079 PyObject *resultobj = 0;
20080 wxDC *arg1 = (wxDC *) 0 ;
20081 wxIcon *arg2 = 0 ;
20082 wxPoint *arg3 = 0 ;
20083 void *argp1 = 0 ;
20084 int res1 = 0 ;
20085 void *argp2 = 0 ;
20086 int res2 = 0 ;
20087 wxPoint temp3 ;
20088 PyObject * obj0 = 0 ;
20089 PyObject * obj1 = 0 ;
20090 PyObject * obj2 = 0 ;
20091 char * kwnames[] = {
20092 (char *) "self",(char *) "icon",(char *) "pt", NULL
20093 };
20094
20095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20097 if (!SWIG_IsOK(res1)) {
20098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20099 }
20100 arg1 = reinterpret_cast< wxDC * >(argp1);
20101 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
20102 if (!SWIG_IsOK(res2)) {
20103 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
20104 }
20105 if (!argp2) {
20106 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
20107 }
20108 arg2 = reinterpret_cast< wxIcon * >(argp2);
20109 {
20110 arg3 = &temp3;
20111 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20112 }
20113 {
20114 PyThreadState* __tstate = wxPyBeginAllowThreads();
20115 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
20116 wxPyEndAllowThreads(__tstate);
20117 if (PyErr_Occurred()) SWIG_fail;
20118 }
20119 resultobj = SWIG_Py_Void();
20120 return resultobj;
20121 fail:
20122 return NULL;
20123 }
20124
20125
20126 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20127 PyObject *resultobj = 0;
20128 wxDC *arg1 = (wxDC *) 0 ;
20129 wxBitmap *arg2 = 0 ;
20130 int arg3 ;
20131 int arg4 ;
20132 bool arg5 = (bool) false ;
20133 void *argp1 = 0 ;
20134 int res1 = 0 ;
20135 void *argp2 = 0 ;
20136 int res2 = 0 ;
20137 int val3 ;
20138 int ecode3 = 0 ;
20139 int val4 ;
20140 int ecode4 = 0 ;
20141 bool val5 ;
20142 int ecode5 = 0 ;
20143 PyObject * obj0 = 0 ;
20144 PyObject * obj1 = 0 ;
20145 PyObject * obj2 = 0 ;
20146 PyObject * obj3 = 0 ;
20147 PyObject * obj4 = 0 ;
20148 char * kwnames[] = {
20149 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
20150 };
20151
20152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20154 if (!SWIG_IsOK(res1)) {
20155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
20156 }
20157 arg1 = reinterpret_cast< wxDC * >(argp1);
20158 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20159 if (!SWIG_IsOK(res2)) {
20160 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20161 }
20162 if (!argp2) {
20163 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20164 }
20165 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20166 ecode3 = SWIG_AsVal_int(obj2, &val3);
20167 if (!SWIG_IsOK(ecode3)) {
20168 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
20169 }
20170 arg3 = static_cast< int >(val3);
20171 ecode4 = SWIG_AsVal_int(obj3, &val4);
20172 if (!SWIG_IsOK(ecode4)) {
20173 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
20174 }
20175 arg4 = static_cast< int >(val4);
20176 if (obj4) {
20177 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20178 if (!SWIG_IsOK(ecode5)) {
20179 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
20180 }
20181 arg5 = static_cast< bool >(val5);
20182 }
20183 {
20184 PyThreadState* __tstate = wxPyBeginAllowThreads();
20185 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
20186 wxPyEndAllowThreads(__tstate);
20187 if (PyErr_Occurred()) SWIG_fail;
20188 }
20189 resultobj = SWIG_Py_Void();
20190 return resultobj;
20191 fail:
20192 return NULL;
20193 }
20194
20195
20196 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20197 PyObject *resultobj = 0;
20198 wxDC *arg1 = (wxDC *) 0 ;
20199 wxBitmap *arg2 = 0 ;
20200 wxPoint *arg3 = 0 ;
20201 bool arg4 = (bool) false ;
20202 void *argp1 = 0 ;
20203 int res1 = 0 ;
20204 void *argp2 = 0 ;
20205 int res2 = 0 ;
20206 wxPoint temp3 ;
20207 bool val4 ;
20208 int ecode4 = 0 ;
20209 PyObject * obj0 = 0 ;
20210 PyObject * obj1 = 0 ;
20211 PyObject * obj2 = 0 ;
20212 PyObject * obj3 = 0 ;
20213 char * kwnames[] = {
20214 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
20215 };
20216
20217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20219 if (!SWIG_IsOK(res1)) {
20220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20221 }
20222 arg1 = reinterpret_cast< wxDC * >(argp1);
20223 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20224 if (!SWIG_IsOK(res2)) {
20225 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20226 }
20227 if (!argp2) {
20228 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20229 }
20230 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20231 {
20232 arg3 = &temp3;
20233 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20234 }
20235 if (obj3) {
20236 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20237 if (!SWIG_IsOK(ecode4)) {
20238 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
20239 }
20240 arg4 = static_cast< bool >(val4);
20241 }
20242 {
20243 PyThreadState* __tstate = wxPyBeginAllowThreads();
20244 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
20245 wxPyEndAllowThreads(__tstate);
20246 if (PyErr_Occurred()) SWIG_fail;
20247 }
20248 resultobj = SWIG_Py_Void();
20249 return resultobj;
20250 fail:
20251 return NULL;
20252 }
20253
20254
20255 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20256 PyObject *resultobj = 0;
20257 wxDC *arg1 = (wxDC *) 0 ;
20258 wxString *arg2 = 0 ;
20259 int arg3 ;
20260 int arg4 ;
20261 void *argp1 = 0 ;
20262 int res1 = 0 ;
20263 bool temp2 = false ;
20264 int val3 ;
20265 int ecode3 = 0 ;
20266 int val4 ;
20267 int ecode4 = 0 ;
20268 PyObject * obj0 = 0 ;
20269 PyObject * obj1 = 0 ;
20270 PyObject * obj2 = 0 ;
20271 PyObject * obj3 = 0 ;
20272 char * kwnames[] = {
20273 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
20274 };
20275
20276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20278 if (!SWIG_IsOK(res1)) {
20279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
20280 }
20281 arg1 = reinterpret_cast< wxDC * >(argp1);
20282 {
20283 arg2 = wxString_in_helper(obj1);
20284 if (arg2 == NULL) SWIG_fail;
20285 temp2 = true;
20286 }
20287 ecode3 = SWIG_AsVal_int(obj2, &val3);
20288 if (!SWIG_IsOK(ecode3)) {
20289 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
20290 }
20291 arg3 = static_cast< int >(val3);
20292 ecode4 = SWIG_AsVal_int(obj3, &val4);
20293 if (!SWIG_IsOK(ecode4)) {
20294 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
20295 }
20296 arg4 = static_cast< int >(val4);
20297 {
20298 PyThreadState* __tstate = wxPyBeginAllowThreads();
20299 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
20300 wxPyEndAllowThreads(__tstate);
20301 if (PyErr_Occurred()) SWIG_fail;
20302 }
20303 resultobj = SWIG_Py_Void();
20304 {
20305 if (temp2)
20306 delete arg2;
20307 }
20308 return resultobj;
20309 fail:
20310 {
20311 if (temp2)
20312 delete arg2;
20313 }
20314 return NULL;
20315 }
20316
20317
20318 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20319 PyObject *resultobj = 0;
20320 wxDC *arg1 = (wxDC *) 0 ;
20321 wxString *arg2 = 0 ;
20322 wxPoint *arg3 = 0 ;
20323 void *argp1 = 0 ;
20324 int res1 = 0 ;
20325 bool temp2 = false ;
20326 wxPoint temp3 ;
20327 PyObject * obj0 = 0 ;
20328 PyObject * obj1 = 0 ;
20329 PyObject * obj2 = 0 ;
20330 char * kwnames[] = {
20331 (char *) "self",(char *) "text",(char *) "pt", NULL
20332 };
20333
20334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20336 if (!SWIG_IsOK(res1)) {
20337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20338 }
20339 arg1 = reinterpret_cast< wxDC * >(argp1);
20340 {
20341 arg2 = wxString_in_helper(obj1);
20342 if (arg2 == NULL) SWIG_fail;
20343 temp2 = true;
20344 }
20345 {
20346 arg3 = &temp3;
20347 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20348 }
20349 {
20350 PyThreadState* __tstate = wxPyBeginAllowThreads();
20351 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
20352 wxPyEndAllowThreads(__tstate);
20353 if (PyErr_Occurred()) SWIG_fail;
20354 }
20355 resultobj = SWIG_Py_Void();
20356 {
20357 if (temp2)
20358 delete arg2;
20359 }
20360 return resultobj;
20361 fail:
20362 {
20363 if (temp2)
20364 delete arg2;
20365 }
20366 return NULL;
20367 }
20368
20369
20370 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20371 PyObject *resultobj = 0;
20372 wxDC *arg1 = (wxDC *) 0 ;
20373 wxString *arg2 = 0 ;
20374 int arg3 ;
20375 int arg4 ;
20376 double arg5 ;
20377 void *argp1 = 0 ;
20378 int res1 = 0 ;
20379 bool temp2 = false ;
20380 int val3 ;
20381 int ecode3 = 0 ;
20382 int val4 ;
20383 int ecode4 = 0 ;
20384 double val5 ;
20385 int ecode5 = 0 ;
20386 PyObject * obj0 = 0 ;
20387 PyObject * obj1 = 0 ;
20388 PyObject * obj2 = 0 ;
20389 PyObject * obj3 = 0 ;
20390 PyObject * obj4 = 0 ;
20391 char * kwnames[] = {
20392 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
20393 };
20394
20395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20397 if (!SWIG_IsOK(res1)) {
20398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
20399 }
20400 arg1 = reinterpret_cast< wxDC * >(argp1);
20401 {
20402 arg2 = wxString_in_helper(obj1);
20403 if (arg2 == NULL) SWIG_fail;
20404 temp2 = true;
20405 }
20406 ecode3 = SWIG_AsVal_int(obj2, &val3);
20407 if (!SWIG_IsOK(ecode3)) {
20408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
20409 }
20410 arg3 = static_cast< int >(val3);
20411 ecode4 = SWIG_AsVal_int(obj3, &val4);
20412 if (!SWIG_IsOK(ecode4)) {
20413 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
20414 }
20415 arg4 = static_cast< int >(val4);
20416 ecode5 = SWIG_AsVal_double(obj4, &val5);
20417 if (!SWIG_IsOK(ecode5)) {
20418 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
20419 }
20420 arg5 = static_cast< double >(val5);
20421 {
20422 PyThreadState* __tstate = wxPyBeginAllowThreads();
20423 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
20424 wxPyEndAllowThreads(__tstate);
20425 if (PyErr_Occurred()) SWIG_fail;
20426 }
20427 resultobj = SWIG_Py_Void();
20428 {
20429 if (temp2)
20430 delete arg2;
20431 }
20432 return resultobj;
20433 fail:
20434 {
20435 if (temp2)
20436 delete arg2;
20437 }
20438 return NULL;
20439 }
20440
20441
20442 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20443 PyObject *resultobj = 0;
20444 wxDC *arg1 = (wxDC *) 0 ;
20445 wxString *arg2 = 0 ;
20446 wxPoint *arg3 = 0 ;
20447 double arg4 ;
20448 void *argp1 = 0 ;
20449 int res1 = 0 ;
20450 bool temp2 = false ;
20451 wxPoint temp3 ;
20452 double val4 ;
20453 int ecode4 = 0 ;
20454 PyObject * obj0 = 0 ;
20455 PyObject * obj1 = 0 ;
20456 PyObject * obj2 = 0 ;
20457 PyObject * obj3 = 0 ;
20458 char * kwnames[] = {
20459 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
20460 };
20461
20462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20464 if (!SWIG_IsOK(res1)) {
20465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20466 }
20467 arg1 = reinterpret_cast< wxDC * >(argp1);
20468 {
20469 arg2 = wxString_in_helper(obj1);
20470 if (arg2 == NULL) SWIG_fail;
20471 temp2 = true;
20472 }
20473 {
20474 arg3 = &temp3;
20475 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20476 }
20477 ecode4 = SWIG_AsVal_double(obj3, &val4);
20478 if (!SWIG_IsOK(ecode4)) {
20479 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
20480 }
20481 arg4 = static_cast< double >(val4);
20482 {
20483 PyThreadState* __tstate = wxPyBeginAllowThreads();
20484 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
20485 wxPyEndAllowThreads(__tstate);
20486 if (PyErr_Occurred()) SWIG_fail;
20487 }
20488 resultobj = SWIG_Py_Void();
20489 {
20490 if (temp2)
20491 delete arg2;
20492 }
20493 return resultobj;
20494 fail:
20495 {
20496 if (temp2)
20497 delete arg2;
20498 }
20499 return NULL;
20500 }
20501
20502
20503 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20504 PyObject *resultobj = 0;
20505 wxDC *arg1 = (wxDC *) 0 ;
20506 int arg2 ;
20507 int arg3 ;
20508 int arg4 ;
20509 int arg5 ;
20510 wxDC *arg6 = (wxDC *) 0 ;
20511 int arg7 ;
20512 int arg8 ;
20513 int arg9 = (int) wxCOPY ;
20514 bool arg10 = (bool) false ;
20515 int arg11 = (int) -1 ;
20516 int arg12 = (int) -1 ;
20517 bool result;
20518 void *argp1 = 0 ;
20519 int res1 = 0 ;
20520 int val2 ;
20521 int ecode2 = 0 ;
20522 int val3 ;
20523 int ecode3 = 0 ;
20524 int val4 ;
20525 int ecode4 = 0 ;
20526 int val5 ;
20527 int ecode5 = 0 ;
20528 void *argp6 = 0 ;
20529 int res6 = 0 ;
20530 int val7 ;
20531 int ecode7 = 0 ;
20532 int val8 ;
20533 int ecode8 = 0 ;
20534 int val9 ;
20535 int ecode9 = 0 ;
20536 bool val10 ;
20537 int ecode10 = 0 ;
20538 int val11 ;
20539 int ecode11 = 0 ;
20540 int val12 ;
20541 int ecode12 = 0 ;
20542 PyObject * obj0 = 0 ;
20543 PyObject * obj1 = 0 ;
20544 PyObject * obj2 = 0 ;
20545 PyObject * obj3 = 0 ;
20546 PyObject * obj4 = 0 ;
20547 PyObject * obj5 = 0 ;
20548 PyObject * obj6 = 0 ;
20549 PyObject * obj7 = 0 ;
20550 PyObject * obj8 = 0 ;
20551 PyObject * obj9 = 0 ;
20552 PyObject * obj10 = 0 ;
20553 PyObject * obj11 = 0 ;
20554 char * kwnames[] = {
20555 (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
20556 };
20557
20558 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;
20559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20560 if (!SWIG_IsOK(res1)) {
20561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
20562 }
20563 arg1 = reinterpret_cast< wxDC * >(argp1);
20564 ecode2 = SWIG_AsVal_int(obj1, &val2);
20565 if (!SWIG_IsOK(ecode2)) {
20566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
20567 }
20568 arg2 = static_cast< int >(val2);
20569 ecode3 = SWIG_AsVal_int(obj2, &val3);
20570 if (!SWIG_IsOK(ecode3)) {
20571 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
20572 }
20573 arg3 = static_cast< int >(val3);
20574 ecode4 = SWIG_AsVal_int(obj3, &val4);
20575 if (!SWIG_IsOK(ecode4)) {
20576 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
20577 }
20578 arg4 = static_cast< int >(val4);
20579 ecode5 = SWIG_AsVal_int(obj4, &val5);
20580 if (!SWIG_IsOK(ecode5)) {
20581 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
20582 }
20583 arg5 = static_cast< int >(val5);
20584 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
20585 if (!SWIG_IsOK(res6)) {
20586 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
20587 }
20588 arg6 = reinterpret_cast< wxDC * >(argp6);
20589 ecode7 = SWIG_AsVal_int(obj6, &val7);
20590 if (!SWIG_IsOK(ecode7)) {
20591 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
20592 }
20593 arg7 = static_cast< int >(val7);
20594 ecode8 = SWIG_AsVal_int(obj7, &val8);
20595 if (!SWIG_IsOK(ecode8)) {
20596 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
20597 }
20598 arg8 = static_cast< int >(val8);
20599 if (obj8) {
20600 ecode9 = SWIG_AsVal_int(obj8, &val9);
20601 if (!SWIG_IsOK(ecode9)) {
20602 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
20603 }
20604 arg9 = static_cast< int >(val9);
20605 }
20606 if (obj9) {
20607 ecode10 = SWIG_AsVal_bool(obj9, &val10);
20608 if (!SWIG_IsOK(ecode10)) {
20609 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
20610 }
20611 arg10 = static_cast< bool >(val10);
20612 }
20613 if (obj10) {
20614 ecode11 = SWIG_AsVal_int(obj10, &val11);
20615 if (!SWIG_IsOK(ecode11)) {
20616 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
20617 }
20618 arg11 = static_cast< int >(val11);
20619 }
20620 if (obj11) {
20621 ecode12 = SWIG_AsVal_int(obj11, &val12);
20622 if (!SWIG_IsOK(ecode12)) {
20623 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
20624 }
20625 arg12 = static_cast< int >(val12);
20626 }
20627 {
20628 PyThreadState* __tstate = wxPyBeginAllowThreads();
20629 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
20630 wxPyEndAllowThreads(__tstate);
20631 if (PyErr_Occurred()) SWIG_fail;
20632 }
20633 {
20634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20635 }
20636 return resultobj;
20637 fail:
20638 return NULL;
20639 }
20640
20641
20642 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20643 PyObject *resultobj = 0;
20644 wxDC *arg1 = (wxDC *) 0 ;
20645 wxPoint *arg2 = 0 ;
20646 wxSize *arg3 = 0 ;
20647 wxDC *arg4 = (wxDC *) 0 ;
20648 wxPoint *arg5 = 0 ;
20649 int arg6 = (int) wxCOPY ;
20650 bool arg7 = (bool) false ;
20651 wxPoint const &arg8_defvalue = wxDefaultPosition ;
20652 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
20653 bool result;
20654 void *argp1 = 0 ;
20655 int res1 = 0 ;
20656 wxPoint temp2 ;
20657 wxSize temp3 ;
20658 void *argp4 = 0 ;
20659 int res4 = 0 ;
20660 wxPoint temp5 ;
20661 int val6 ;
20662 int ecode6 = 0 ;
20663 bool val7 ;
20664 int ecode7 = 0 ;
20665 wxPoint temp8 ;
20666 PyObject * obj0 = 0 ;
20667 PyObject * obj1 = 0 ;
20668 PyObject * obj2 = 0 ;
20669 PyObject * obj3 = 0 ;
20670 PyObject * obj4 = 0 ;
20671 PyObject * obj5 = 0 ;
20672 PyObject * obj6 = 0 ;
20673 PyObject * obj7 = 0 ;
20674 char * kwnames[] = {
20675 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
20676 };
20677
20678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
20679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20680 if (!SWIG_IsOK(res1)) {
20681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20682 }
20683 arg1 = reinterpret_cast< wxDC * >(argp1);
20684 {
20685 arg2 = &temp2;
20686 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20687 }
20688 {
20689 arg3 = &temp3;
20690 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20691 }
20692 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20693 if (!SWIG_IsOK(res4)) {
20694 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20695 }
20696 arg4 = reinterpret_cast< wxDC * >(argp4);
20697 {
20698 arg5 = &temp5;
20699 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20700 }
20701 if (obj5) {
20702 ecode6 = SWIG_AsVal_int(obj5, &val6);
20703 if (!SWIG_IsOK(ecode6)) {
20704 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
20705 }
20706 arg6 = static_cast< int >(val6);
20707 }
20708 if (obj6) {
20709 ecode7 = SWIG_AsVal_bool(obj6, &val7);
20710 if (!SWIG_IsOK(ecode7)) {
20711 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
20712 }
20713 arg7 = static_cast< bool >(val7);
20714 }
20715 if (obj7) {
20716 {
20717 arg8 = &temp8;
20718 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
20719 }
20720 }
20721 {
20722 PyThreadState* __tstate = wxPyBeginAllowThreads();
20723 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
20724 wxPyEndAllowThreads(__tstate);
20725 if (PyErr_Occurred()) SWIG_fail;
20726 }
20727 {
20728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20729 }
20730 return resultobj;
20731 fail:
20732 return NULL;
20733 }
20734
20735
20736 SWIGINTERN PyObject *_wrap_DC_StretchBlit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20737 PyObject *resultobj = 0;
20738 wxDC *arg1 = (wxDC *) 0 ;
20739 int arg2 ;
20740 int arg3 ;
20741 int arg4 ;
20742 int arg5 ;
20743 wxDC *arg6 = (wxDC *) 0 ;
20744 int arg7 ;
20745 int arg8 ;
20746 int arg9 ;
20747 int arg10 ;
20748 int arg11 = (int) wxCOPY ;
20749 bool arg12 = (bool) false ;
20750 int arg13 = (int) wxDefaultCoord ;
20751 int arg14 = (int) wxDefaultCoord ;
20752 bool result;
20753 void *argp1 = 0 ;
20754 int res1 = 0 ;
20755 int val2 ;
20756 int ecode2 = 0 ;
20757 int val3 ;
20758 int ecode3 = 0 ;
20759 int val4 ;
20760 int ecode4 = 0 ;
20761 int val5 ;
20762 int ecode5 = 0 ;
20763 void *argp6 = 0 ;
20764 int res6 = 0 ;
20765 int val7 ;
20766 int ecode7 = 0 ;
20767 int val8 ;
20768 int ecode8 = 0 ;
20769 int val9 ;
20770 int ecode9 = 0 ;
20771 int val10 ;
20772 int ecode10 = 0 ;
20773 int val11 ;
20774 int ecode11 = 0 ;
20775 bool val12 ;
20776 int ecode12 = 0 ;
20777 int val13 ;
20778 int ecode13 = 0 ;
20779 int val14 ;
20780 int ecode14 = 0 ;
20781 PyObject * obj0 = 0 ;
20782 PyObject * obj1 = 0 ;
20783 PyObject * obj2 = 0 ;
20784 PyObject * obj3 = 0 ;
20785 PyObject * obj4 = 0 ;
20786 PyObject * obj5 = 0 ;
20787 PyObject * obj6 = 0 ;
20788 PyObject * obj7 = 0 ;
20789 PyObject * obj8 = 0 ;
20790 PyObject * obj9 = 0 ;
20791 PyObject * obj10 = 0 ;
20792 PyObject * obj11 = 0 ;
20793 PyObject * obj12 = 0 ;
20794 PyObject * obj13 = 0 ;
20795 char * kwnames[] = {
20796 (char *) "self",(char *) "dstX",(char *) "dstY",(char *) "dstWidth",(char *) "dstHeight",(char *) "source",(char *) "srcX",(char *) "srcY",(char *) "srcWidth",(char *) "srcHeight",(char *) "rop",(char *) "useMask",(char *) "srcMaskX",(char *) "srcMaskY", NULL
20797 };
20798
20799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOOOO|OOOO:DC_StretchBlit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13)) SWIG_fail;
20800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20801 if (!SWIG_IsOK(res1)) {
20802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StretchBlit" "', expected argument " "1"" of type '" "wxDC *""'");
20803 }
20804 arg1 = reinterpret_cast< wxDC * >(argp1);
20805 ecode2 = SWIG_AsVal_int(obj1, &val2);
20806 if (!SWIG_IsOK(ecode2)) {
20807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_StretchBlit" "', expected argument " "2"" of type '" "int""'");
20808 }
20809 arg2 = static_cast< int >(val2);
20810 ecode3 = SWIG_AsVal_int(obj2, &val3);
20811 if (!SWIG_IsOK(ecode3)) {
20812 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_StretchBlit" "', expected argument " "3"" of type '" "int""'");
20813 }
20814 arg3 = static_cast< int >(val3);
20815 ecode4 = SWIG_AsVal_int(obj3, &val4);
20816 if (!SWIG_IsOK(ecode4)) {
20817 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_StretchBlit" "', expected argument " "4"" of type '" "int""'");
20818 }
20819 arg4 = static_cast< int >(val4);
20820 ecode5 = SWIG_AsVal_int(obj4, &val5);
20821 if (!SWIG_IsOK(ecode5)) {
20822 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_StretchBlit" "', expected argument " "5"" of type '" "int""'");
20823 }
20824 arg5 = static_cast< int >(val5);
20825 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
20826 if (!SWIG_IsOK(res6)) {
20827 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_StretchBlit" "', expected argument " "6"" of type '" "wxDC *""'");
20828 }
20829 arg6 = reinterpret_cast< wxDC * >(argp6);
20830 ecode7 = SWIG_AsVal_int(obj6, &val7);
20831 if (!SWIG_IsOK(ecode7)) {
20832 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_StretchBlit" "', expected argument " "7"" of type '" "int""'");
20833 }
20834 arg7 = static_cast< int >(val7);
20835 ecode8 = SWIG_AsVal_int(obj7, &val8);
20836 if (!SWIG_IsOK(ecode8)) {
20837 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_StretchBlit" "', expected argument " "8"" of type '" "int""'");
20838 }
20839 arg8 = static_cast< int >(val8);
20840 ecode9 = SWIG_AsVal_int(obj8, &val9);
20841 if (!SWIG_IsOK(ecode9)) {
20842 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_StretchBlit" "', expected argument " "9"" of type '" "int""'");
20843 }
20844 arg9 = static_cast< int >(val9);
20845 ecode10 = SWIG_AsVal_int(obj9, &val10);
20846 if (!SWIG_IsOK(ecode10)) {
20847 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_StretchBlit" "', expected argument " "10"" of type '" "int""'");
20848 }
20849 arg10 = static_cast< int >(val10);
20850 if (obj10) {
20851 ecode11 = SWIG_AsVal_int(obj10, &val11);
20852 if (!SWIG_IsOK(ecode11)) {
20853 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_StretchBlit" "', expected argument " "11"" of type '" "int""'");
20854 }
20855 arg11 = static_cast< int >(val11);
20856 }
20857 if (obj11) {
20858 ecode12 = SWIG_AsVal_bool(obj11, &val12);
20859 if (!SWIG_IsOK(ecode12)) {
20860 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_StretchBlit" "', expected argument " "12"" of type '" "bool""'");
20861 }
20862 arg12 = static_cast< bool >(val12);
20863 }
20864 if (obj12) {
20865 ecode13 = SWIG_AsVal_int(obj12, &val13);
20866 if (!SWIG_IsOK(ecode13)) {
20867 SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "DC_StretchBlit" "', expected argument " "13"" of type '" "int""'");
20868 }
20869 arg13 = static_cast< int >(val13);
20870 }
20871 if (obj13) {
20872 ecode14 = SWIG_AsVal_int(obj13, &val14);
20873 if (!SWIG_IsOK(ecode14)) {
20874 SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "DC_StretchBlit" "', expected argument " "14"" of type '" "int""'");
20875 }
20876 arg14 = static_cast< int >(val14);
20877 }
20878 {
20879 PyThreadState* __tstate = wxPyBeginAllowThreads();
20880 result = (bool)(arg1)->StretchBlit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14);
20881 wxPyEndAllowThreads(__tstate);
20882 if (PyErr_Occurred()) SWIG_fail;
20883 }
20884 {
20885 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20886 }
20887 return resultobj;
20888 fail:
20889 return NULL;
20890 }
20891
20892
20893 SWIGINTERN PyObject *_wrap_DC_StretchBlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20894 PyObject *resultobj = 0;
20895 wxDC *arg1 = (wxDC *) 0 ;
20896 wxPoint *arg2 = 0 ;
20897 wxSize *arg3 = 0 ;
20898 wxDC *arg4 = (wxDC *) 0 ;
20899 wxPoint *arg5 = 0 ;
20900 wxSize *arg6 = 0 ;
20901 int arg7 = (int) wxCOPY ;
20902 bool arg8 = (bool) false ;
20903 wxPoint const &arg9_defvalue = wxDefaultPosition ;
20904 wxPoint *arg9 = (wxPoint *) &arg9_defvalue ;
20905 bool result;
20906 void *argp1 = 0 ;
20907 int res1 = 0 ;
20908 wxPoint temp2 ;
20909 wxSize temp3 ;
20910 void *argp4 = 0 ;
20911 int res4 = 0 ;
20912 wxPoint temp5 ;
20913 wxSize temp6 ;
20914 int val7 ;
20915 int ecode7 = 0 ;
20916 bool val8 ;
20917 int ecode8 = 0 ;
20918 wxPoint temp9 ;
20919 PyObject * obj0 = 0 ;
20920 PyObject * obj1 = 0 ;
20921 PyObject * obj2 = 0 ;
20922 PyObject * obj3 = 0 ;
20923 PyObject * obj4 = 0 ;
20924 PyObject * obj5 = 0 ;
20925 PyObject * obj6 = 0 ;
20926 PyObject * obj7 = 0 ;
20927 PyObject * obj8 = 0 ;
20928 char * kwnames[] = {
20929 (char *) "self",(char *) "dstPt",(char *) "dstSize",(char *) "source",(char *) "srcPt",(char *) "srcSize",(char *) "rop",(char *) "useMask",(char *) "srcMaskPt", NULL
20930 };
20931
20932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOO:DC_StretchBlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
20933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20934 if (!SWIG_IsOK(res1)) {
20935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StretchBlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20936 }
20937 arg1 = reinterpret_cast< wxDC * >(argp1);
20938 {
20939 arg2 = &temp2;
20940 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20941 }
20942 {
20943 arg3 = &temp3;
20944 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20945 }
20946 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20947 if (!SWIG_IsOK(res4)) {
20948 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_StretchBlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20949 }
20950 arg4 = reinterpret_cast< wxDC * >(argp4);
20951 {
20952 arg5 = &temp5;
20953 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20954 }
20955 {
20956 arg6 = &temp6;
20957 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
20958 }
20959 if (obj6) {
20960 ecode7 = SWIG_AsVal_int(obj6, &val7);
20961 if (!SWIG_IsOK(ecode7)) {
20962 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_StretchBlitPointSize" "', expected argument " "7"" of type '" "int""'");
20963 }
20964 arg7 = static_cast< int >(val7);
20965 }
20966 if (obj7) {
20967 ecode8 = SWIG_AsVal_bool(obj7, &val8);
20968 if (!SWIG_IsOK(ecode8)) {
20969 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_StretchBlitPointSize" "', expected argument " "8"" of type '" "bool""'");
20970 }
20971 arg8 = static_cast< bool >(val8);
20972 }
20973 if (obj8) {
20974 {
20975 arg9 = &temp9;
20976 if ( ! wxPoint_helper(obj8, &arg9)) SWIG_fail;
20977 }
20978 }
20979 {
20980 PyThreadState* __tstate = wxPyBeginAllowThreads();
20981 result = (bool)(arg1)->StretchBlit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,(wxPoint const &)*arg9);
20982 wxPyEndAllowThreads(__tstate);
20983 if (PyErr_Occurred()) SWIG_fail;
20984 }
20985 {
20986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20987 }
20988 return resultobj;
20989 fail:
20990 return NULL;
20991 }
20992
20993
20994 SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20995 PyObject *resultobj = 0;
20996 wxDC *arg1 = (wxDC *) 0 ;
20997 wxRect *arg2 = (wxRect *) NULL ;
20998 SwigValueWrapper<wxBitmap > result;
20999 void *argp1 = 0 ;
21000 int res1 = 0 ;
21001 void *argp2 = 0 ;
21002 int res2 = 0 ;
21003 PyObject * obj0 = 0 ;
21004 PyObject * obj1 = 0 ;
21005 char * kwnames[] = {
21006 (char *) "self",(char *) "subrect", NULL
21007 };
21008
21009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
21010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21011 if (!SWIG_IsOK(res1)) {
21012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21013 }
21014 arg1 = reinterpret_cast< wxDC * >(argp1);
21015 if (obj1) {
21016 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
21017 if (!SWIG_IsOK(res2)) {
21018 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
21019 }
21020 arg2 = reinterpret_cast< wxRect * >(argp2);
21021 }
21022 {
21023 PyThreadState* __tstate = wxPyBeginAllowThreads();
21024 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
21025 wxPyEndAllowThreads(__tstate);
21026 if (PyErr_Occurred()) SWIG_fail;
21027 }
21028 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
21029 return resultobj;
21030 fail:
21031 return NULL;
21032 }
21033
21034
21035 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21036 PyObject *resultobj = 0;
21037 wxDC *arg1 = (wxDC *) 0 ;
21038 int arg2 ;
21039 int arg3 ;
21040 int arg4 ;
21041 int arg5 ;
21042 void *argp1 = 0 ;
21043 int res1 = 0 ;
21044 int val2 ;
21045 int ecode2 = 0 ;
21046 int val3 ;
21047 int ecode3 = 0 ;
21048 int val4 ;
21049 int ecode4 = 0 ;
21050 int val5 ;
21051 int ecode5 = 0 ;
21052 PyObject * obj0 = 0 ;
21053 PyObject * obj1 = 0 ;
21054 PyObject * obj2 = 0 ;
21055 PyObject * obj3 = 0 ;
21056 PyObject * obj4 = 0 ;
21057 char * kwnames[] = {
21058 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
21059 };
21060
21061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21063 if (!SWIG_IsOK(res1)) {
21064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21065 }
21066 arg1 = reinterpret_cast< wxDC * >(argp1);
21067 ecode2 = SWIG_AsVal_int(obj1, &val2);
21068 if (!SWIG_IsOK(ecode2)) {
21069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
21070 }
21071 arg2 = static_cast< int >(val2);
21072 ecode3 = SWIG_AsVal_int(obj2, &val3);
21073 if (!SWIG_IsOK(ecode3)) {
21074 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
21075 }
21076 arg3 = static_cast< int >(val3);
21077 ecode4 = SWIG_AsVal_int(obj3, &val4);
21078 if (!SWIG_IsOK(ecode4)) {
21079 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
21080 }
21081 arg4 = static_cast< int >(val4);
21082 ecode5 = SWIG_AsVal_int(obj4, &val5);
21083 if (!SWIG_IsOK(ecode5)) {
21084 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
21085 }
21086 arg5 = static_cast< int >(val5);
21087 {
21088 PyThreadState* __tstate = wxPyBeginAllowThreads();
21089 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
21090 wxPyEndAllowThreads(__tstate);
21091 if (PyErr_Occurred()) SWIG_fail;
21092 }
21093 resultobj = SWIG_Py_Void();
21094 return resultobj;
21095 fail:
21096 return NULL;
21097 }
21098
21099
21100 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21101 PyObject *resultobj = 0;
21102 wxDC *arg1 = (wxDC *) 0 ;
21103 wxPoint *arg2 = 0 ;
21104 wxSize *arg3 = 0 ;
21105 void *argp1 = 0 ;
21106 int res1 = 0 ;
21107 wxPoint temp2 ;
21108 wxSize temp3 ;
21109 PyObject * obj0 = 0 ;
21110 PyObject * obj1 = 0 ;
21111 PyObject * obj2 = 0 ;
21112 char * kwnames[] = {
21113 (char *) "self",(char *) "pt",(char *) "sz", NULL
21114 };
21115
21116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21118 if (!SWIG_IsOK(res1)) {
21119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
21120 }
21121 arg1 = reinterpret_cast< wxDC * >(argp1);
21122 {
21123 arg2 = &temp2;
21124 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
21125 }
21126 {
21127 arg3 = &temp3;
21128 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
21129 }
21130 {
21131 PyThreadState* __tstate = wxPyBeginAllowThreads();
21132 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
21133 wxPyEndAllowThreads(__tstate);
21134 if (PyErr_Occurred()) SWIG_fail;
21135 }
21136 resultobj = SWIG_Py_Void();
21137 return resultobj;
21138 fail:
21139 return NULL;
21140 }
21141
21142
21143 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21144 PyObject *resultobj = 0;
21145 wxDC *arg1 = (wxDC *) 0 ;
21146 wxRegion *arg2 = 0 ;
21147 void *argp1 = 0 ;
21148 int res1 = 0 ;
21149 void *argp2 = 0 ;
21150 int res2 = 0 ;
21151 PyObject * obj0 = 0 ;
21152 PyObject * obj1 = 0 ;
21153 char * kwnames[] = {
21154 (char *) "self",(char *) "region", NULL
21155 };
21156
21157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
21158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21159 if (!SWIG_IsOK(res1)) {
21160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21161 }
21162 arg1 = reinterpret_cast< wxDC * >(argp1);
21163 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
21164 if (!SWIG_IsOK(res2)) {
21165 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
21166 }
21167 if (!argp2) {
21168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
21169 }
21170 arg2 = reinterpret_cast< wxRegion * >(argp2);
21171 {
21172 PyThreadState* __tstate = wxPyBeginAllowThreads();
21173 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
21174 wxPyEndAllowThreads(__tstate);
21175 if (PyErr_Occurred()) SWIG_fail;
21176 }
21177 resultobj = SWIG_Py_Void();
21178 return resultobj;
21179 fail:
21180 return NULL;
21181 }
21182
21183
21184 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21185 PyObject *resultobj = 0;
21186 wxDC *arg1 = (wxDC *) 0 ;
21187 wxRect *arg2 = 0 ;
21188 void *argp1 = 0 ;
21189 int res1 = 0 ;
21190 wxRect temp2 ;
21191 PyObject * obj0 = 0 ;
21192 PyObject * obj1 = 0 ;
21193 char * kwnames[] = {
21194 (char *) "self",(char *) "rect", NULL
21195 };
21196
21197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
21198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21199 if (!SWIG_IsOK(res1)) {
21200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21201 }
21202 arg1 = reinterpret_cast< wxDC * >(argp1);
21203 {
21204 arg2 = &temp2;
21205 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
21206 }
21207 {
21208 PyThreadState* __tstate = wxPyBeginAllowThreads();
21209 (arg1)->SetClippingRegion((wxRect const &)*arg2);
21210 wxPyEndAllowThreads(__tstate);
21211 if (PyErr_Occurred()) SWIG_fail;
21212 }
21213 resultobj = SWIG_Py_Void();
21214 return resultobj;
21215 fail:
21216 return NULL;
21217 }
21218
21219
21220 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21221 PyObject *resultobj = 0;
21222 wxDC *arg1 = (wxDC *) 0 ;
21223 int arg2 ;
21224 wxPoint *arg3 = (wxPoint *) 0 ;
21225 int arg4 = (int) 0 ;
21226 int arg5 = (int) 0 ;
21227 void *argp1 = 0 ;
21228 int res1 = 0 ;
21229 int val4 ;
21230 int ecode4 = 0 ;
21231 int val5 ;
21232 int ecode5 = 0 ;
21233 PyObject * obj0 = 0 ;
21234 PyObject * obj1 = 0 ;
21235 PyObject * obj2 = 0 ;
21236 PyObject * obj3 = 0 ;
21237 char * kwnames[] = {
21238 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
21239 };
21240
21241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21243 if (!SWIG_IsOK(res1)) {
21244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
21245 }
21246 arg1 = reinterpret_cast< wxDC * >(argp1);
21247 {
21248 arg3 = wxPoint_LIST_helper(obj1, &arg2);
21249 if (arg3 == NULL) SWIG_fail;
21250 }
21251 if (obj2) {
21252 ecode4 = SWIG_AsVal_int(obj2, &val4);
21253 if (!SWIG_IsOK(ecode4)) {
21254 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
21255 }
21256 arg4 = static_cast< int >(val4);
21257 }
21258 if (obj3) {
21259 ecode5 = SWIG_AsVal_int(obj3, &val5);
21260 if (!SWIG_IsOK(ecode5)) {
21261 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
21262 }
21263 arg5 = static_cast< int >(val5);
21264 }
21265 {
21266 PyThreadState* __tstate = wxPyBeginAllowThreads();
21267 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
21268 wxPyEndAllowThreads(__tstate);
21269 if (PyErr_Occurred()) SWIG_fail;
21270 }
21271 resultobj = SWIG_Py_Void();
21272 {
21273 if (arg3) delete [] arg3;
21274 }
21275 return resultobj;
21276 fail:
21277 {
21278 if (arg3) delete [] arg3;
21279 }
21280 return NULL;
21281 }
21282
21283
21284 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21285 PyObject *resultobj = 0;
21286 wxDC *arg1 = (wxDC *) 0 ;
21287 int arg2 ;
21288 wxPoint *arg3 = (wxPoint *) 0 ;
21289 int arg4 = (int) 0 ;
21290 int arg5 = (int) 0 ;
21291 int arg6 = (int) wxODDEVEN_RULE ;
21292 void *argp1 = 0 ;
21293 int res1 = 0 ;
21294 int val4 ;
21295 int ecode4 = 0 ;
21296 int val5 ;
21297 int ecode5 = 0 ;
21298 int val6 ;
21299 int ecode6 = 0 ;
21300 PyObject * obj0 = 0 ;
21301 PyObject * obj1 = 0 ;
21302 PyObject * obj2 = 0 ;
21303 PyObject * obj3 = 0 ;
21304 PyObject * obj4 = 0 ;
21305 char * kwnames[] = {
21306 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
21307 };
21308
21309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21311 if (!SWIG_IsOK(res1)) {
21312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
21313 }
21314 arg1 = reinterpret_cast< wxDC * >(argp1);
21315 {
21316 arg3 = wxPoint_LIST_helper(obj1, &arg2);
21317 if (arg3 == NULL) SWIG_fail;
21318 }
21319 if (obj2) {
21320 ecode4 = SWIG_AsVal_int(obj2, &val4);
21321 if (!SWIG_IsOK(ecode4)) {
21322 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
21323 }
21324 arg4 = static_cast< int >(val4);
21325 }
21326 if (obj3) {
21327 ecode5 = SWIG_AsVal_int(obj3, &val5);
21328 if (!SWIG_IsOK(ecode5)) {
21329 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
21330 }
21331 arg5 = static_cast< int >(val5);
21332 }
21333 if (obj4) {
21334 ecode6 = SWIG_AsVal_int(obj4, &val6);
21335 if (!SWIG_IsOK(ecode6)) {
21336 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
21337 }
21338 arg6 = static_cast< int >(val6);
21339 }
21340 {
21341 PyThreadState* __tstate = wxPyBeginAllowThreads();
21342 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
21343 wxPyEndAllowThreads(__tstate);
21344 if (PyErr_Occurred()) SWIG_fail;
21345 }
21346 resultobj = SWIG_Py_Void();
21347 {
21348 if (arg3) delete [] arg3;
21349 }
21350 return resultobj;
21351 fail:
21352 {
21353 if (arg3) delete [] arg3;
21354 }
21355 return NULL;
21356 }
21357
21358
21359 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21360 PyObject *resultobj = 0;
21361 wxDC *arg1 = (wxDC *) 0 ;
21362 wxString *arg2 = 0 ;
21363 wxRect *arg3 = 0 ;
21364 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
21365 int arg5 = (int) -1 ;
21366 void *argp1 = 0 ;
21367 int res1 = 0 ;
21368 bool temp2 = false ;
21369 wxRect temp3 ;
21370 int val4 ;
21371 int ecode4 = 0 ;
21372 int val5 ;
21373 int ecode5 = 0 ;
21374 PyObject * obj0 = 0 ;
21375 PyObject * obj1 = 0 ;
21376 PyObject * obj2 = 0 ;
21377 PyObject * obj3 = 0 ;
21378 PyObject * obj4 = 0 ;
21379 char * kwnames[] = {
21380 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
21381 };
21382
21383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21385 if (!SWIG_IsOK(res1)) {
21386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
21387 }
21388 arg1 = reinterpret_cast< wxDC * >(argp1);
21389 {
21390 arg2 = wxString_in_helper(obj1);
21391 if (arg2 == NULL) SWIG_fail;
21392 temp2 = true;
21393 }
21394 {
21395 arg3 = &temp3;
21396 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
21397 }
21398 if (obj3) {
21399 ecode4 = SWIG_AsVal_int(obj3, &val4);
21400 if (!SWIG_IsOK(ecode4)) {
21401 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
21402 }
21403 arg4 = static_cast< int >(val4);
21404 }
21405 if (obj4) {
21406 ecode5 = SWIG_AsVal_int(obj4, &val5);
21407 if (!SWIG_IsOK(ecode5)) {
21408 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
21409 }
21410 arg5 = static_cast< int >(val5);
21411 }
21412 {
21413 PyThreadState* __tstate = wxPyBeginAllowThreads();
21414 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
21415 wxPyEndAllowThreads(__tstate);
21416 if (PyErr_Occurred()) SWIG_fail;
21417 }
21418 resultobj = SWIG_Py_Void();
21419 {
21420 if (temp2)
21421 delete arg2;
21422 }
21423 return resultobj;
21424 fail:
21425 {
21426 if (temp2)
21427 delete arg2;
21428 }
21429 return NULL;
21430 }
21431
21432
21433 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21434 PyObject *resultobj = 0;
21435 wxDC *arg1 = (wxDC *) 0 ;
21436 wxString *arg2 = 0 ;
21437 wxBitmap *arg3 = 0 ;
21438 wxRect *arg4 = 0 ;
21439 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
21440 int arg6 = (int) -1 ;
21441 wxRect result;
21442 void *argp1 = 0 ;
21443 int res1 = 0 ;
21444 bool temp2 = false ;
21445 void *argp3 = 0 ;
21446 int res3 = 0 ;
21447 wxRect temp4 ;
21448 int val5 ;
21449 int ecode5 = 0 ;
21450 int val6 ;
21451 int ecode6 = 0 ;
21452 PyObject * obj0 = 0 ;
21453 PyObject * obj1 = 0 ;
21454 PyObject * obj2 = 0 ;
21455 PyObject * obj3 = 0 ;
21456 PyObject * obj4 = 0 ;
21457 PyObject * obj5 = 0 ;
21458 char * kwnames[] = {
21459 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
21460 };
21461
21462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21464 if (!SWIG_IsOK(res1)) {
21465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
21466 }
21467 arg1 = reinterpret_cast< wxDC * >(argp1);
21468 {
21469 arg2 = wxString_in_helper(obj1);
21470 if (arg2 == NULL) SWIG_fail;
21471 temp2 = true;
21472 }
21473 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
21474 if (!SWIG_IsOK(res3)) {
21475 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21476 }
21477 if (!argp3) {
21478 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21479 }
21480 arg3 = reinterpret_cast< wxBitmap * >(argp3);
21481 {
21482 arg4 = &temp4;
21483 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
21484 }
21485 if (obj4) {
21486 ecode5 = SWIG_AsVal_int(obj4, &val5);
21487 if (!SWIG_IsOK(ecode5)) {
21488 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
21489 }
21490 arg5 = static_cast< int >(val5);
21491 }
21492 if (obj5) {
21493 ecode6 = SWIG_AsVal_int(obj5, &val6);
21494 if (!SWIG_IsOK(ecode6)) {
21495 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
21496 }
21497 arg6 = static_cast< int >(val6);
21498 }
21499 {
21500 PyThreadState* __tstate = wxPyBeginAllowThreads();
21501 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
21502 wxPyEndAllowThreads(__tstate);
21503 if (PyErr_Occurred()) SWIG_fail;
21504 }
21505 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21506 {
21507 if (temp2)
21508 delete arg2;
21509 }
21510 return resultobj;
21511 fail:
21512 {
21513 if (temp2)
21514 delete arg2;
21515 }
21516 return NULL;
21517 }
21518
21519
21520 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21521 PyObject *resultobj = 0;
21522 wxDC *arg1 = (wxDC *) 0 ;
21523 int arg2 ;
21524 wxPoint *arg3 = (wxPoint *) 0 ;
21525 void *argp1 = 0 ;
21526 int res1 = 0 ;
21527 PyObject * obj0 = 0 ;
21528 PyObject * obj1 = 0 ;
21529 char * kwnames[] = {
21530 (char *) "self",(char *) "points", NULL
21531 };
21532
21533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
21534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21535 if (!SWIG_IsOK(res1)) {
21536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
21537 }
21538 arg1 = reinterpret_cast< wxDC * >(argp1);
21539 {
21540 arg3 = wxPoint_LIST_helper(obj1, &arg2);
21541 if (arg3 == NULL) SWIG_fail;
21542 }
21543 {
21544 PyThreadState* __tstate = wxPyBeginAllowThreads();
21545 (arg1)->DrawSpline(arg2,arg3);
21546 wxPyEndAllowThreads(__tstate);
21547 if (PyErr_Occurred()) SWIG_fail;
21548 }
21549 resultobj = SWIG_Py_Void();
21550 {
21551 if (arg3) delete [] arg3;
21552 }
21553 return resultobj;
21554 fail:
21555 {
21556 if (arg3) delete [] arg3;
21557 }
21558 return NULL;
21559 }
21560
21561
21562 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21563 PyObject *resultobj = 0;
21564 wxDC *arg1 = (wxDC *) 0 ;
21565 void *argp1 = 0 ;
21566 int res1 = 0 ;
21567 PyObject *swig_obj[1] ;
21568
21569 if (!args) SWIG_fail;
21570 swig_obj[0] = args;
21571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21572 if (!SWIG_IsOK(res1)) {
21573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
21574 }
21575 arg1 = reinterpret_cast< wxDC * >(argp1);
21576 {
21577 PyThreadState* __tstate = wxPyBeginAllowThreads();
21578 (arg1)->Clear();
21579 wxPyEndAllowThreads(__tstate);
21580 if (PyErr_Occurred()) SWIG_fail;
21581 }
21582 resultobj = SWIG_Py_Void();
21583 return resultobj;
21584 fail:
21585 return NULL;
21586 }
21587
21588
21589 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21590 PyObject *resultobj = 0;
21591 wxDC *arg1 = (wxDC *) 0 ;
21592 wxString *arg2 = 0 ;
21593 bool result;
21594 void *argp1 = 0 ;
21595 int res1 = 0 ;
21596 bool temp2 = false ;
21597 PyObject * obj0 = 0 ;
21598 PyObject * obj1 = 0 ;
21599 char * kwnames[] = {
21600 (char *) "self",(char *) "message", NULL
21601 };
21602
21603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
21604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21605 if (!SWIG_IsOK(res1)) {
21606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
21607 }
21608 arg1 = reinterpret_cast< wxDC * >(argp1);
21609 {
21610 arg2 = wxString_in_helper(obj1);
21611 if (arg2 == NULL) SWIG_fail;
21612 temp2 = true;
21613 }
21614 {
21615 PyThreadState* __tstate = wxPyBeginAllowThreads();
21616 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
21617 wxPyEndAllowThreads(__tstate);
21618 if (PyErr_Occurred()) SWIG_fail;
21619 }
21620 {
21621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21622 }
21623 {
21624 if (temp2)
21625 delete arg2;
21626 }
21627 return resultobj;
21628 fail:
21629 {
21630 if (temp2)
21631 delete arg2;
21632 }
21633 return NULL;
21634 }
21635
21636
21637 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21638 PyObject *resultobj = 0;
21639 wxDC *arg1 = (wxDC *) 0 ;
21640 void *argp1 = 0 ;
21641 int res1 = 0 ;
21642 PyObject *swig_obj[1] ;
21643
21644 if (!args) SWIG_fail;
21645 swig_obj[0] = args;
21646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21647 if (!SWIG_IsOK(res1)) {
21648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
21649 }
21650 arg1 = reinterpret_cast< wxDC * >(argp1);
21651 {
21652 PyThreadState* __tstate = wxPyBeginAllowThreads();
21653 (arg1)->EndDoc();
21654 wxPyEndAllowThreads(__tstate);
21655 if (PyErr_Occurred()) SWIG_fail;
21656 }
21657 resultobj = SWIG_Py_Void();
21658 return resultobj;
21659 fail:
21660 return NULL;
21661 }
21662
21663
21664 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21665 PyObject *resultobj = 0;
21666 wxDC *arg1 = (wxDC *) 0 ;
21667 void *argp1 = 0 ;
21668 int res1 = 0 ;
21669 PyObject *swig_obj[1] ;
21670
21671 if (!args) SWIG_fail;
21672 swig_obj[0] = args;
21673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21674 if (!SWIG_IsOK(res1)) {
21675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
21676 }
21677 arg1 = reinterpret_cast< wxDC * >(argp1);
21678 {
21679 PyThreadState* __tstate = wxPyBeginAllowThreads();
21680 (arg1)->StartPage();
21681 wxPyEndAllowThreads(__tstate);
21682 if (PyErr_Occurred()) SWIG_fail;
21683 }
21684 resultobj = SWIG_Py_Void();
21685 return resultobj;
21686 fail:
21687 return NULL;
21688 }
21689
21690
21691 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21692 PyObject *resultobj = 0;
21693 wxDC *arg1 = (wxDC *) 0 ;
21694 void *argp1 = 0 ;
21695 int res1 = 0 ;
21696 PyObject *swig_obj[1] ;
21697
21698 if (!args) SWIG_fail;
21699 swig_obj[0] = args;
21700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21701 if (!SWIG_IsOK(res1)) {
21702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
21703 }
21704 arg1 = reinterpret_cast< wxDC * >(argp1);
21705 {
21706 PyThreadState* __tstate = wxPyBeginAllowThreads();
21707 (arg1)->EndPage();
21708 wxPyEndAllowThreads(__tstate);
21709 if (PyErr_Occurred()) SWIG_fail;
21710 }
21711 resultobj = SWIG_Py_Void();
21712 return resultobj;
21713 fail:
21714 return NULL;
21715 }
21716
21717
21718 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21719 PyObject *resultobj = 0;
21720 wxDC *arg1 = (wxDC *) 0 ;
21721 wxFont *arg2 = 0 ;
21722 void *argp1 = 0 ;
21723 int res1 = 0 ;
21724 void *argp2 = 0 ;
21725 int res2 = 0 ;
21726 PyObject * obj0 = 0 ;
21727 PyObject * obj1 = 0 ;
21728 char * kwnames[] = {
21729 (char *) "self",(char *) "font", NULL
21730 };
21731
21732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
21733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21734 if (!SWIG_IsOK(res1)) {
21735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
21736 }
21737 arg1 = reinterpret_cast< wxDC * >(argp1);
21738 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
21739 if (!SWIG_IsOK(res2)) {
21740 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21741 }
21742 if (!argp2) {
21743 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
21744 }
21745 arg2 = reinterpret_cast< wxFont * >(argp2);
21746 {
21747 PyThreadState* __tstate = wxPyBeginAllowThreads();
21748 (arg1)->SetFont((wxFont const &)*arg2);
21749 wxPyEndAllowThreads(__tstate);
21750 if (PyErr_Occurred()) SWIG_fail;
21751 }
21752 resultobj = SWIG_Py_Void();
21753 return resultobj;
21754 fail:
21755 return NULL;
21756 }
21757
21758
21759 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21760 PyObject *resultobj = 0;
21761 wxDC *arg1 = (wxDC *) 0 ;
21762 wxPen *arg2 = 0 ;
21763 void *argp1 = 0 ;
21764 int res1 = 0 ;
21765 void *argp2 = 0 ;
21766 int res2 = 0 ;
21767 PyObject * obj0 = 0 ;
21768 PyObject * obj1 = 0 ;
21769 char * kwnames[] = {
21770 (char *) "self",(char *) "pen", NULL
21771 };
21772
21773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
21774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21775 if (!SWIG_IsOK(res1)) {
21776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
21777 }
21778 arg1 = reinterpret_cast< wxDC * >(argp1);
21779 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
21780 if (!SWIG_IsOK(res2)) {
21781 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21782 }
21783 if (!argp2) {
21784 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
21785 }
21786 arg2 = reinterpret_cast< wxPen * >(argp2);
21787 {
21788 PyThreadState* __tstate = wxPyBeginAllowThreads();
21789 (arg1)->SetPen((wxPen const &)*arg2);
21790 wxPyEndAllowThreads(__tstate);
21791 if (PyErr_Occurred()) SWIG_fail;
21792 }
21793 resultobj = SWIG_Py_Void();
21794 return resultobj;
21795 fail:
21796 return NULL;
21797 }
21798
21799
21800 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21801 PyObject *resultobj = 0;
21802 wxDC *arg1 = (wxDC *) 0 ;
21803 wxBrush *arg2 = 0 ;
21804 void *argp1 = 0 ;
21805 int res1 = 0 ;
21806 void *argp2 = 0 ;
21807 int res2 = 0 ;
21808 PyObject * obj0 = 0 ;
21809 PyObject * obj1 = 0 ;
21810 char * kwnames[] = {
21811 (char *) "self",(char *) "brush", NULL
21812 };
21813
21814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
21815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21816 if (!SWIG_IsOK(res1)) {
21817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
21818 }
21819 arg1 = reinterpret_cast< wxDC * >(argp1);
21820 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21821 if (!SWIG_IsOK(res2)) {
21822 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21823 }
21824 if (!argp2) {
21825 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
21826 }
21827 arg2 = reinterpret_cast< wxBrush * >(argp2);
21828 {
21829 PyThreadState* __tstate = wxPyBeginAllowThreads();
21830 (arg1)->SetBrush((wxBrush const &)*arg2);
21831 wxPyEndAllowThreads(__tstate);
21832 if (PyErr_Occurred()) SWIG_fail;
21833 }
21834 resultobj = SWIG_Py_Void();
21835 return resultobj;
21836 fail:
21837 return NULL;
21838 }
21839
21840
21841 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21842 PyObject *resultobj = 0;
21843 wxDC *arg1 = (wxDC *) 0 ;
21844 wxBrush *arg2 = 0 ;
21845 void *argp1 = 0 ;
21846 int res1 = 0 ;
21847 void *argp2 = 0 ;
21848 int res2 = 0 ;
21849 PyObject * obj0 = 0 ;
21850 PyObject * obj1 = 0 ;
21851 char * kwnames[] = {
21852 (char *) "self",(char *) "brush", NULL
21853 };
21854
21855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21857 if (!SWIG_IsOK(res1)) {
21858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21859 }
21860 arg1 = reinterpret_cast< wxDC * >(argp1);
21861 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
21862 if (!SWIG_IsOK(res2)) {
21863 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21864 }
21865 if (!argp2) {
21866 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21867 }
21868 arg2 = reinterpret_cast< wxBrush * >(argp2);
21869 {
21870 PyThreadState* __tstate = wxPyBeginAllowThreads();
21871 (arg1)->SetBackground((wxBrush const &)*arg2);
21872 wxPyEndAllowThreads(__tstate);
21873 if (PyErr_Occurred()) SWIG_fail;
21874 }
21875 resultobj = SWIG_Py_Void();
21876 return resultobj;
21877 fail:
21878 return NULL;
21879 }
21880
21881
21882 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21883 PyObject *resultobj = 0;
21884 wxDC *arg1 = (wxDC *) 0 ;
21885 int arg2 ;
21886 void *argp1 = 0 ;
21887 int res1 = 0 ;
21888 int val2 ;
21889 int ecode2 = 0 ;
21890 PyObject * obj0 = 0 ;
21891 PyObject * obj1 = 0 ;
21892 char * kwnames[] = {
21893 (char *) "self",(char *) "mode", NULL
21894 };
21895
21896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
21897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21898 if (!SWIG_IsOK(res1)) {
21899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
21900 }
21901 arg1 = reinterpret_cast< wxDC * >(argp1);
21902 ecode2 = SWIG_AsVal_int(obj1, &val2);
21903 if (!SWIG_IsOK(ecode2)) {
21904 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
21905 }
21906 arg2 = static_cast< int >(val2);
21907 {
21908 PyThreadState* __tstate = wxPyBeginAllowThreads();
21909 (arg1)->SetBackgroundMode(arg2);
21910 wxPyEndAllowThreads(__tstate);
21911 if (PyErr_Occurred()) SWIG_fail;
21912 }
21913 resultobj = SWIG_Py_Void();
21914 return resultobj;
21915 fail:
21916 return NULL;
21917 }
21918
21919
21920 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21921 PyObject *resultobj = 0;
21922 wxDC *arg1 = (wxDC *) 0 ;
21923 wxPalette *arg2 = 0 ;
21924 void *argp1 = 0 ;
21925 int res1 = 0 ;
21926 void *argp2 = 0 ;
21927 int res2 = 0 ;
21928 PyObject * obj0 = 0 ;
21929 PyObject * obj1 = 0 ;
21930 char * kwnames[] = {
21931 (char *) "self",(char *) "palette", NULL
21932 };
21933
21934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
21935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21936 if (!SWIG_IsOK(res1)) {
21937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
21938 }
21939 arg1 = reinterpret_cast< wxDC * >(argp1);
21940 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
21941 if (!SWIG_IsOK(res2)) {
21942 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21943 }
21944 if (!argp2) {
21945 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21946 }
21947 arg2 = reinterpret_cast< wxPalette * >(argp2);
21948 {
21949 PyThreadState* __tstate = wxPyBeginAllowThreads();
21950 (arg1)->SetPalette((wxPalette const &)*arg2);
21951 wxPyEndAllowThreads(__tstate);
21952 if (PyErr_Occurred()) SWIG_fail;
21953 }
21954 resultobj = SWIG_Py_Void();
21955 return resultobj;
21956 fail:
21957 return NULL;
21958 }
21959
21960
21961 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21962 PyObject *resultobj = 0;
21963 wxDC *arg1 = (wxDC *) 0 ;
21964 void *argp1 = 0 ;
21965 int res1 = 0 ;
21966 PyObject *swig_obj[1] ;
21967
21968 if (!args) SWIG_fail;
21969 swig_obj[0] = args;
21970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21971 if (!SWIG_IsOK(res1)) {
21972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21973 }
21974 arg1 = reinterpret_cast< wxDC * >(argp1);
21975 {
21976 PyThreadState* __tstate = wxPyBeginAllowThreads();
21977 (arg1)->DestroyClippingRegion();
21978 wxPyEndAllowThreads(__tstate);
21979 if (PyErr_Occurred()) SWIG_fail;
21980 }
21981 resultobj = SWIG_Py_Void();
21982 return resultobj;
21983 fail:
21984 return NULL;
21985 }
21986
21987
21988 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21989 PyObject *resultobj = 0;
21990 wxDC *arg1 = (wxDC *) 0 ;
21991 int *arg2 = (int *) 0 ;
21992 int *arg3 = (int *) 0 ;
21993 int *arg4 = (int *) 0 ;
21994 int *arg5 = (int *) 0 ;
21995 void *argp1 = 0 ;
21996 int res1 = 0 ;
21997 int temp2 ;
21998 int res2 = SWIG_TMPOBJ ;
21999 int temp3 ;
22000 int res3 = SWIG_TMPOBJ ;
22001 int temp4 ;
22002 int res4 = SWIG_TMPOBJ ;
22003 int temp5 ;
22004 int res5 = SWIG_TMPOBJ ;
22005 PyObject *swig_obj[1] ;
22006
22007 arg2 = &temp2;
22008 arg3 = &temp3;
22009 arg4 = &temp4;
22010 arg5 = &temp5;
22011 if (!args) SWIG_fail;
22012 swig_obj[0] = args;
22013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22014 if (!SWIG_IsOK(res1)) {
22015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
22016 }
22017 arg1 = reinterpret_cast< wxDC * >(argp1);
22018 {
22019 PyThreadState* __tstate = wxPyBeginAllowThreads();
22020 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
22021 wxPyEndAllowThreads(__tstate);
22022 if (PyErr_Occurred()) SWIG_fail;
22023 }
22024 resultobj = SWIG_Py_Void();
22025 if (SWIG_IsTmpObj(res2)) {
22026 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22027 } else {
22028 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22029 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22030 }
22031 if (SWIG_IsTmpObj(res3)) {
22032 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22033 } else {
22034 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22035 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22036 }
22037 if (SWIG_IsTmpObj(res4)) {
22038 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22039 } else {
22040 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22041 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22042 }
22043 if (SWIG_IsTmpObj(res5)) {
22044 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22045 } else {
22046 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22047 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22048 }
22049 return resultobj;
22050 fail:
22051 return NULL;
22052 }
22053
22054
22055 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22056 PyObject *resultobj = 0;
22057 wxDC *arg1 = (wxDC *) 0 ;
22058 wxRect result;
22059 void *argp1 = 0 ;
22060 int res1 = 0 ;
22061 PyObject *swig_obj[1] ;
22062
22063 if (!args) SWIG_fail;
22064 swig_obj[0] = args;
22065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22066 if (!SWIG_IsOK(res1)) {
22067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
22068 }
22069 arg1 = reinterpret_cast< wxDC * >(argp1);
22070 {
22071 PyThreadState* __tstate = wxPyBeginAllowThreads();
22072 result = wxDC_GetClippingRect(arg1);
22073 wxPyEndAllowThreads(__tstate);
22074 if (PyErr_Occurred()) SWIG_fail;
22075 }
22076 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
22077 return resultobj;
22078 fail:
22079 return NULL;
22080 }
22081
22082
22083 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22084 PyObject *resultobj = 0;
22085 wxDC *arg1 = (wxDC *) 0 ;
22086 int result;
22087 void *argp1 = 0 ;
22088 int res1 = 0 ;
22089 PyObject *swig_obj[1] ;
22090
22091 if (!args) SWIG_fail;
22092 swig_obj[0] = args;
22093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22094 if (!SWIG_IsOK(res1)) {
22095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
22096 }
22097 arg1 = reinterpret_cast< wxDC * >(argp1);
22098 {
22099 PyThreadState* __tstate = wxPyBeginAllowThreads();
22100 result = (int)((wxDC const *)arg1)->GetCharHeight();
22101 wxPyEndAllowThreads(__tstate);
22102 if (PyErr_Occurred()) SWIG_fail;
22103 }
22104 resultobj = SWIG_From_int(static_cast< int >(result));
22105 return resultobj;
22106 fail:
22107 return NULL;
22108 }
22109
22110
22111 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22112 PyObject *resultobj = 0;
22113 wxDC *arg1 = (wxDC *) 0 ;
22114 int result;
22115 void *argp1 = 0 ;
22116 int res1 = 0 ;
22117 PyObject *swig_obj[1] ;
22118
22119 if (!args) SWIG_fail;
22120 swig_obj[0] = args;
22121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22122 if (!SWIG_IsOK(res1)) {
22123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
22124 }
22125 arg1 = reinterpret_cast< wxDC * >(argp1);
22126 {
22127 PyThreadState* __tstate = wxPyBeginAllowThreads();
22128 result = (int)((wxDC const *)arg1)->GetCharWidth();
22129 wxPyEndAllowThreads(__tstate);
22130 if (PyErr_Occurred()) SWIG_fail;
22131 }
22132 resultobj = SWIG_From_int(static_cast< int >(result));
22133 return resultobj;
22134 fail:
22135 return NULL;
22136 }
22137
22138
22139 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22140 PyObject *resultobj = 0;
22141 wxDC *arg1 = (wxDC *) 0 ;
22142 wxString *arg2 = 0 ;
22143 int *arg3 = (int *) 0 ;
22144 int *arg4 = (int *) 0 ;
22145 void *argp1 = 0 ;
22146 int res1 = 0 ;
22147 bool temp2 = false ;
22148 int temp3 ;
22149 int res3 = SWIG_TMPOBJ ;
22150 int temp4 ;
22151 int res4 = SWIG_TMPOBJ ;
22152 PyObject * obj0 = 0 ;
22153 PyObject * obj1 = 0 ;
22154 char * kwnames[] = {
22155 (char *) "self",(char *) "string", NULL
22156 };
22157
22158 arg3 = &temp3;
22159 arg4 = &temp4;
22160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
22161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22162 if (!SWIG_IsOK(res1)) {
22163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
22164 }
22165 arg1 = reinterpret_cast< wxDC * >(argp1);
22166 {
22167 arg2 = wxString_in_helper(obj1);
22168 if (arg2 == NULL) SWIG_fail;
22169 temp2 = true;
22170 }
22171 {
22172 PyThreadState* __tstate = wxPyBeginAllowThreads();
22173 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
22174 wxPyEndAllowThreads(__tstate);
22175 if (PyErr_Occurred()) SWIG_fail;
22176 }
22177 resultobj = SWIG_Py_Void();
22178 if (SWIG_IsTmpObj(res3)) {
22179 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22180 } else {
22181 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22182 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22183 }
22184 if (SWIG_IsTmpObj(res4)) {
22185 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22186 } else {
22187 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22188 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22189 }
22190 {
22191 if (temp2)
22192 delete arg2;
22193 }
22194 return resultobj;
22195 fail:
22196 {
22197 if (temp2)
22198 delete arg2;
22199 }
22200 return NULL;
22201 }
22202
22203
22204 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22205 PyObject *resultobj = 0;
22206 wxDC *arg1 = (wxDC *) 0 ;
22207 wxString *arg2 = 0 ;
22208 int *arg3 = (int *) 0 ;
22209 int *arg4 = (int *) 0 ;
22210 int *arg5 = (int *) 0 ;
22211 int *arg6 = (int *) 0 ;
22212 wxFont *arg7 = (wxFont *) NULL ;
22213 void *argp1 = 0 ;
22214 int res1 = 0 ;
22215 bool temp2 = false ;
22216 int temp3 ;
22217 int res3 = SWIG_TMPOBJ ;
22218 int temp4 ;
22219 int res4 = SWIG_TMPOBJ ;
22220 int temp5 ;
22221 int res5 = SWIG_TMPOBJ ;
22222 int temp6 ;
22223 int res6 = SWIG_TMPOBJ ;
22224 void *argp7 = 0 ;
22225 int res7 = 0 ;
22226 PyObject * obj0 = 0 ;
22227 PyObject * obj1 = 0 ;
22228 PyObject * obj2 = 0 ;
22229 char * kwnames[] = {
22230 (char *) "self",(char *) "string",(char *) "font", NULL
22231 };
22232
22233 arg3 = &temp3;
22234 arg4 = &temp4;
22235 arg5 = &temp5;
22236 arg6 = &temp6;
22237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22239 if (!SWIG_IsOK(res1)) {
22240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
22241 }
22242 arg1 = reinterpret_cast< wxDC * >(argp1);
22243 {
22244 arg2 = wxString_in_helper(obj1);
22245 if (arg2 == NULL) SWIG_fail;
22246 temp2 = true;
22247 }
22248 if (obj2) {
22249 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
22250 if (!SWIG_IsOK(res7)) {
22251 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
22252 }
22253 arg7 = reinterpret_cast< wxFont * >(argp7);
22254 }
22255 {
22256 PyThreadState* __tstate = wxPyBeginAllowThreads();
22257 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
22258 wxPyEndAllowThreads(__tstate);
22259 if (PyErr_Occurred()) SWIG_fail;
22260 }
22261 resultobj = SWIG_Py_Void();
22262 if (SWIG_IsTmpObj(res3)) {
22263 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22264 } else {
22265 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22266 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22267 }
22268 if (SWIG_IsTmpObj(res4)) {
22269 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22270 } else {
22271 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22272 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22273 }
22274 if (SWIG_IsTmpObj(res5)) {
22275 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22276 } else {
22277 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22278 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22279 }
22280 if (SWIG_IsTmpObj(res6)) {
22281 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
22282 } else {
22283 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22284 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
22285 }
22286 {
22287 if (temp2)
22288 delete arg2;
22289 }
22290 return resultobj;
22291 fail:
22292 {
22293 if (temp2)
22294 delete arg2;
22295 }
22296 return NULL;
22297 }
22298
22299
22300 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22301 PyObject *resultobj = 0;
22302 wxDC *arg1 = (wxDC *) 0 ;
22303 wxString *arg2 = 0 ;
22304 int *arg3 = (int *) 0 ;
22305 int *arg4 = (int *) 0 ;
22306 int *arg5 = (int *) 0 ;
22307 wxFont *arg6 = (wxFont *) NULL ;
22308 void *argp1 = 0 ;
22309 int res1 = 0 ;
22310 bool temp2 = false ;
22311 int temp3 ;
22312 int res3 = SWIG_TMPOBJ ;
22313 int temp4 ;
22314 int res4 = SWIG_TMPOBJ ;
22315 int temp5 ;
22316 int res5 = SWIG_TMPOBJ ;
22317 void *argp6 = 0 ;
22318 int res6 = 0 ;
22319 PyObject * obj0 = 0 ;
22320 PyObject * obj1 = 0 ;
22321 PyObject * obj2 = 0 ;
22322 char * kwnames[] = {
22323 (char *) "self",(char *) "text",(char *) "font", NULL
22324 };
22325
22326 arg3 = &temp3;
22327 arg4 = &temp4;
22328 arg5 = &temp5;
22329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22331 if (!SWIG_IsOK(res1)) {
22332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
22333 }
22334 arg1 = reinterpret_cast< wxDC * >(argp1);
22335 {
22336 arg2 = wxString_in_helper(obj1);
22337 if (arg2 == NULL) SWIG_fail;
22338 temp2 = true;
22339 }
22340 if (obj2) {
22341 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
22342 if (!SWIG_IsOK(res6)) {
22343 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
22344 }
22345 arg6 = reinterpret_cast< wxFont * >(argp6);
22346 }
22347 {
22348 PyThreadState* __tstate = wxPyBeginAllowThreads();
22349 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
22350 wxPyEndAllowThreads(__tstate);
22351 if (PyErr_Occurred()) SWIG_fail;
22352 }
22353 resultobj = SWIG_Py_Void();
22354 if (SWIG_IsTmpObj(res3)) {
22355 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22356 } else {
22357 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22358 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22359 }
22360 if (SWIG_IsTmpObj(res4)) {
22361 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22362 } else {
22363 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22364 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22365 }
22366 if (SWIG_IsTmpObj(res5)) {
22367 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22368 } else {
22369 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22370 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22371 }
22372 {
22373 if (temp2)
22374 delete arg2;
22375 }
22376 return resultobj;
22377 fail:
22378 {
22379 if (temp2)
22380 delete arg2;
22381 }
22382 return NULL;
22383 }
22384
22385
22386 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22387 PyObject *resultobj = 0;
22388 wxDC *arg1 = (wxDC *) 0 ;
22389 wxString *arg2 = 0 ;
22390 wxArrayInt result;
22391 void *argp1 = 0 ;
22392 int res1 = 0 ;
22393 bool temp2 = false ;
22394 PyObject * obj0 = 0 ;
22395 PyObject * obj1 = 0 ;
22396 char * kwnames[] = {
22397 (char *) "self",(char *) "text", NULL
22398 };
22399
22400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
22401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22402 if (!SWIG_IsOK(res1)) {
22403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
22404 }
22405 arg1 = reinterpret_cast< wxDC * >(argp1);
22406 {
22407 arg2 = wxString_in_helper(obj1);
22408 if (arg2 == NULL) SWIG_fail;
22409 temp2 = true;
22410 }
22411 {
22412 PyThreadState* __tstate = wxPyBeginAllowThreads();
22413 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
22414 wxPyEndAllowThreads(__tstate);
22415 if (PyErr_Occurred()) SWIG_fail;
22416 }
22417 {
22418 resultobj = wxArrayInt2PyList_helper(result);
22419 }
22420 {
22421 if (temp2)
22422 delete arg2;
22423 }
22424 return resultobj;
22425 fail:
22426 {
22427 if (temp2)
22428 delete arg2;
22429 }
22430 return NULL;
22431 }
22432
22433
22434 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22435 PyObject *resultobj = 0;
22436 wxDC *arg1 = (wxDC *) 0 ;
22437 wxSize result;
22438 void *argp1 = 0 ;
22439 int res1 = 0 ;
22440 PyObject *swig_obj[1] ;
22441
22442 if (!args) SWIG_fail;
22443 swig_obj[0] = args;
22444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22445 if (!SWIG_IsOK(res1)) {
22446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
22447 }
22448 arg1 = reinterpret_cast< wxDC * >(argp1);
22449 {
22450 PyThreadState* __tstate = wxPyBeginAllowThreads();
22451 result = (arg1)->GetSize();
22452 wxPyEndAllowThreads(__tstate);
22453 if (PyErr_Occurred()) SWIG_fail;
22454 }
22455 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22456 return resultobj;
22457 fail:
22458 return NULL;
22459 }
22460
22461
22462 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22463 PyObject *resultobj = 0;
22464 wxDC *arg1 = (wxDC *) 0 ;
22465 int *arg2 = (int *) 0 ;
22466 int *arg3 = (int *) 0 ;
22467 void *argp1 = 0 ;
22468 int res1 = 0 ;
22469 int temp2 ;
22470 int res2 = SWIG_TMPOBJ ;
22471 int temp3 ;
22472 int res3 = SWIG_TMPOBJ ;
22473 PyObject *swig_obj[1] ;
22474
22475 arg2 = &temp2;
22476 arg3 = &temp3;
22477 if (!args) SWIG_fail;
22478 swig_obj[0] = args;
22479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22480 if (!SWIG_IsOK(res1)) {
22481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
22482 }
22483 arg1 = reinterpret_cast< wxDC * >(argp1);
22484 {
22485 PyThreadState* __tstate = wxPyBeginAllowThreads();
22486 (arg1)->GetSize(arg2,arg3);
22487 wxPyEndAllowThreads(__tstate);
22488 if (PyErr_Occurred()) SWIG_fail;
22489 }
22490 resultobj = SWIG_Py_Void();
22491 if (SWIG_IsTmpObj(res2)) {
22492 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22493 } else {
22494 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22495 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22496 }
22497 if (SWIG_IsTmpObj(res3)) {
22498 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22499 } else {
22500 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22501 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22502 }
22503 return resultobj;
22504 fail:
22505 return NULL;
22506 }
22507
22508
22509 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22510 PyObject *resultobj = 0;
22511 wxDC *arg1 = (wxDC *) 0 ;
22512 wxSize result;
22513 void *argp1 = 0 ;
22514 int res1 = 0 ;
22515 PyObject *swig_obj[1] ;
22516
22517 if (!args) SWIG_fail;
22518 swig_obj[0] = args;
22519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22520 if (!SWIG_IsOK(res1)) {
22521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
22522 }
22523 arg1 = reinterpret_cast< wxDC * >(argp1);
22524 {
22525 PyThreadState* __tstate = wxPyBeginAllowThreads();
22526 result = ((wxDC const *)arg1)->GetSizeMM();
22527 wxPyEndAllowThreads(__tstate);
22528 if (PyErr_Occurred()) SWIG_fail;
22529 }
22530 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22531 return resultobj;
22532 fail:
22533 return NULL;
22534 }
22535
22536
22537 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22538 PyObject *resultobj = 0;
22539 wxDC *arg1 = (wxDC *) 0 ;
22540 int *arg2 = (int *) 0 ;
22541 int *arg3 = (int *) 0 ;
22542 void *argp1 = 0 ;
22543 int res1 = 0 ;
22544 int temp2 ;
22545 int res2 = SWIG_TMPOBJ ;
22546 int temp3 ;
22547 int res3 = SWIG_TMPOBJ ;
22548 PyObject *swig_obj[1] ;
22549
22550 arg2 = &temp2;
22551 arg3 = &temp3;
22552 if (!args) SWIG_fail;
22553 swig_obj[0] = args;
22554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22555 if (!SWIG_IsOK(res1)) {
22556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22557 }
22558 arg1 = reinterpret_cast< wxDC * >(argp1);
22559 {
22560 PyThreadState* __tstate = wxPyBeginAllowThreads();
22561 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
22562 wxPyEndAllowThreads(__tstate);
22563 if (PyErr_Occurred()) SWIG_fail;
22564 }
22565 resultobj = SWIG_Py_Void();
22566 if (SWIG_IsTmpObj(res2)) {
22567 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22568 } else {
22569 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22570 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22571 }
22572 if (SWIG_IsTmpObj(res3)) {
22573 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22574 } else {
22575 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22576 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22577 }
22578 return resultobj;
22579 fail:
22580 return NULL;
22581 }
22582
22583
22584 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22585 PyObject *resultobj = 0;
22586 wxDC *arg1 = (wxDC *) 0 ;
22587 int arg2 ;
22588 int result;
22589 void *argp1 = 0 ;
22590 int res1 = 0 ;
22591 int val2 ;
22592 int ecode2 = 0 ;
22593 PyObject * obj0 = 0 ;
22594 PyObject * obj1 = 0 ;
22595 char * kwnames[] = {
22596 (char *) "self",(char *) "x", NULL
22597 };
22598
22599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
22600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22601 if (!SWIG_IsOK(res1)) {
22602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
22603 }
22604 arg1 = reinterpret_cast< wxDC * >(argp1);
22605 ecode2 = SWIG_AsVal_int(obj1, &val2);
22606 if (!SWIG_IsOK(ecode2)) {
22607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
22608 }
22609 arg2 = static_cast< int >(val2);
22610 {
22611 PyThreadState* __tstate = wxPyBeginAllowThreads();
22612 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
22613 wxPyEndAllowThreads(__tstate);
22614 if (PyErr_Occurred()) SWIG_fail;
22615 }
22616 resultobj = SWIG_From_int(static_cast< int >(result));
22617 return resultobj;
22618 fail:
22619 return NULL;
22620 }
22621
22622
22623 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22624 PyObject *resultobj = 0;
22625 wxDC *arg1 = (wxDC *) 0 ;
22626 int arg2 ;
22627 int result;
22628 void *argp1 = 0 ;
22629 int res1 = 0 ;
22630 int val2 ;
22631 int ecode2 = 0 ;
22632 PyObject * obj0 = 0 ;
22633 PyObject * obj1 = 0 ;
22634 char * kwnames[] = {
22635 (char *) "self",(char *) "y", NULL
22636 };
22637
22638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
22639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22640 if (!SWIG_IsOK(res1)) {
22641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
22642 }
22643 arg1 = reinterpret_cast< wxDC * >(argp1);
22644 ecode2 = SWIG_AsVal_int(obj1, &val2);
22645 if (!SWIG_IsOK(ecode2)) {
22646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
22647 }
22648 arg2 = static_cast< int >(val2);
22649 {
22650 PyThreadState* __tstate = wxPyBeginAllowThreads();
22651 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
22652 wxPyEndAllowThreads(__tstate);
22653 if (PyErr_Occurred()) SWIG_fail;
22654 }
22655 resultobj = SWIG_From_int(static_cast< int >(result));
22656 return resultobj;
22657 fail:
22658 return NULL;
22659 }
22660
22661
22662 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22663 PyObject *resultobj = 0;
22664 wxDC *arg1 = (wxDC *) 0 ;
22665 int arg2 ;
22666 int result;
22667 void *argp1 = 0 ;
22668 int res1 = 0 ;
22669 int val2 ;
22670 int ecode2 = 0 ;
22671 PyObject * obj0 = 0 ;
22672 PyObject * obj1 = 0 ;
22673 char * kwnames[] = {
22674 (char *) "self",(char *) "x", NULL
22675 };
22676
22677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22679 if (!SWIG_IsOK(res1)) {
22680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22681 }
22682 arg1 = reinterpret_cast< wxDC * >(argp1);
22683 ecode2 = SWIG_AsVal_int(obj1, &val2);
22684 if (!SWIG_IsOK(ecode2)) {
22685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
22686 }
22687 arg2 = static_cast< int >(val2);
22688 {
22689 PyThreadState* __tstate = wxPyBeginAllowThreads();
22690 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
22691 wxPyEndAllowThreads(__tstate);
22692 if (PyErr_Occurred()) SWIG_fail;
22693 }
22694 resultobj = SWIG_From_int(static_cast< int >(result));
22695 return resultobj;
22696 fail:
22697 return NULL;
22698 }
22699
22700
22701 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22702 PyObject *resultobj = 0;
22703 wxDC *arg1 = (wxDC *) 0 ;
22704 int arg2 ;
22705 int result;
22706 void *argp1 = 0 ;
22707 int res1 = 0 ;
22708 int val2 ;
22709 int ecode2 = 0 ;
22710 PyObject * obj0 = 0 ;
22711 PyObject * obj1 = 0 ;
22712 char * kwnames[] = {
22713 (char *) "self",(char *) "y", NULL
22714 };
22715
22716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22718 if (!SWIG_IsOK(res1)) {
22719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22720 }
22721 arg1 = reinterpret_cast< wxDC * >(argp1);
22722 ecode2 = SWIG_AsVal_int(obj1, &val2);
22723 if (!SWIG_IsOK(ecode2)) {
22724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
22725 }
22726 arg2 = static_cast< int >(val2);
22727 {
22728 PyThreadState* __tstate = wxPyBeginAllowThreads();
22729 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
22730 wxPyEndAllowThreads(__tstate);
22731 if (PyErr_Occurred()) SWIG_fail;
22732 }
22733 resultobj = SWIG_From_int(static_cast< int >(result));
22734 return resultobj;
22735 fail:
22736 return NULL;
22737 }
22738
22739
22740 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22741 PyObject *resultobj = 0;
22742 wxDC *arg1 = (wxDC *) 0 ;
22743 int arg2 ;
22744 int result;
22745 void *argp1 = 0 ;
22746 int res1 = 0 ;
22747 int val2 ;
22748 int ecode2 = 0 ;
22749 PyObject * obj0 = 0 ;
22750 PyObject * obj1 = 0 ;
22751 char * kwnames[] = {
22752 (char *) "self",(char *) "x", NULL
22753 };
22754
22755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
22756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22757 if (!SWIG_IsOK(res1)) {
22758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
22759 }
22760 arg1 = reinterpret_cast< wxDC * >(argp1);
22761 ecode2 = SWIG_AsVal_int(obj1, &val2);
22762 if (!SWIG_IsOK(ecode2)) {
22763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
22764 }
22765 arg2 = static_cast< int >(val2);
22766 {
22767 PyThreadState* __tstate = wxPyBeginAllowThreads();
22768 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
22769 wxPyEndAllowThreads(__tstate);
22770 if (PyErr_Occurred()) SWIG_fail;
22771 }
22772 resultobj = SWIG_From_int(static_cast< int >(result));
22773 return resultobj;
22774 fail:
22775 return NULL;
22776 }
22777
22778
22779 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22780 PyObject *resultobj = 0;
22781 wxDC *arg1 = (wxDC *) 0 ;
22782 int arg2 ;
22783 int result;
22784 void *argp1 = 0 ;
22785 int res1 = 0 ;
22786 int val2 ;
22787 int ecode2 = 0 ;
22788 PyObject * obj0 = 0 ;
22789 PyObject * obj1 = 0 ;
22790 char * kwnames[] = {
22791 (char *) "self",(char *) "y", NULL
22792 };
22793
22794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
22795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22796 if (!SWIG_IsOK(res1)) {
22797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
22798 }
22799 arg1 = reinterpret_cast< wxDC * >(argp1);
22800 ecode2 = SWIG_AsVal_int(obj1, &val2);
22801 if (!SWIG_IsOK(ecode2)) {
22802 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
22803 }
22804 arg2 = static_cast< int >(val2);
22805 {
22806 PyThreadState* __tstate = wxPyBeginAllowThreads();
22807 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
22808 wxPyEndAllowThreads(__tstate);
22809 if (PyErr_Occurred()) SWIG_fail;
22810 }
22811 resultobj = SWIG_From_int(static_cast< int >(result));
22812 return resultobj;
22813 fail:
22814 return NULL;
22815 }
22816
22817
22818 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22819 PyObject *resultobj = 0;
22820 wxDC *arg1 = (wxDC *) 0 ;
22821 int arg2 ;
22822 int result;
22823 void *argp1 = 0 ;
22824 int res1 = 0 ;
22825 int val2 ;
22826 int ecode2 = 0 ;
22827 PyObject * obj0 = 0 ;
22828 PyObject * obj1 = 0 ;
22829 char * kwnames[] = {
22830 (char *) "self",(char *) "x", NULL
22831 };
22832
22833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
22834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22835 if (!SWIG_IsOK(res1)) {
22836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22837 }
22838 arg1 = reinterpret_cast< wxDC * >(argp1);
22839 ecode2 = SWIG_AsVal_int(obj1, &val2);
22840 if (!SWIG_IsOK(ecode2)) {
22841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
22842 }
22843 arg2 = static_cast< int >(val2);
22844 {
22845 PyThreadState* __tstate = wxPyBeginAllowThreads();
22846 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
22847 wxPyEndAllowThreads(__tstate);
22848 if (PyErr_Occurred()) SWIG_fail;
22849 }
22850 resultobj = SWIG_From_int(static_cast< int >(result));
22851 return resultobj;
22852 fail:
22853 return NULL;
22854 }
22855
22856
22857 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22858 PyObject *resultobj = 0;
22859 wxDC *arg1 = (wxDC *) 0 ;
22860 int arg2 ;
22861 int result;
22862 void *argp1 = 0 ;
22863 int res1 = 0 ;
22864 int val2 ;
22865 int ecode2 = 0 ;
22866 PyObject * obj0 = 0 ;
22867 PyObject * obj1 = 0 ;
22868 char * kwnames[] = {
22869 (char *) "self",(char *) "y", NULL
22870 };
22871
22872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22874 if (!SWIG_IsOK(res1)) {
22875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22876 }
22877 arg1 = reinterpret_cast< wxDC * >(argp1);
22878 ecode2 = SWIG_AsVal_int(obj1, &val2);
22879 if (!SWIG_IsOK(ecode2)) {
22880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
22881 }
22882 arg2 = static_cast< int >(val2);
22883 {
22884 PyThreadState* __tstate = wxPyBeginAllowThreads();
22885 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
22886 wxPyEndAllowThreads(__tstate);
22887 if (PyErr_Occurred()) SWIG_fail;
22888 }
22889 resultobj = SWIG_From_int(static_cast< int >(result));
22890 return resultobj;
22891 fail:
22892 return NULL;
22893 }
22894
22895
22896 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22897 PyObject *resultobj = 0;
22898 wxDC *arg1 = (wxDC *) 0 ;
22899 bool result;
22900 void *argp1 = 0 ;
22901 int res1 = 0 ;
22902 PyObject *swig_obj[1] ;
22903
22904 if (!args) SWIG_fail;
22905 swig_obj[0] = args;
22906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22907 if (!SWIG_IsOK(res1)) {
22908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
22909 }
22910 arg1 = reinterpret_cast< wxDC * >(argp1);
22911 {
22912 PyThreadState* __tstate = wxPyBeginAllowThreads();
22913 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
22914 wxPyEndAllowThreads(__tstate);
22915 if (PyErr_Occurred()) SWIG_fail;
22916 }
22917 {
22918 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22919 }
22920 return resultobj;
22921 fail:
22922 return NULL;
22923 }
22924
22925
22926 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22927 PyObject *resultobj = 0;
22928 wxDC *arg1 = (wxDC *) 0 ;
22929 bool result;
22930 void *argp1 = 0 ;
22931 int res1 = 0 ;
22932 PyObject *swig_obj[1] ;
22933
22934 if (!args) SWIG_fail;
22935 swig_obj[0] = args;
22936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22937 if (!SWIG_IsOK(res1)) {
22938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
22939 }
22940 arg1 = reinterpret_cast< wxDC * >(argp1);
22941 {
22942 PyThreadState* __tstate = wxPyBeginAllowThreads();
22943 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
22944 wxPyEndAllowThreads(__tstate);
22945 if (PyErr_Occurred()) SWIG_fail;
22946 }
22947 {
22948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22949 }
22950 return resultobj;
22951 fail:
22952 return NULL;
22953 }
22954
22955
22956 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22957 PyObject *resultobj = 0;
22958 wxDC *arg1 = (wxDC *) 0 ;
22959 int result;
22960 void *argp1 = 0 ;
22961 int res1 = 0 ;
22962 PyObject *swig_obj[1] ;
22963
22964 if (!args) SWIG_fail;
22965 swig_obj[0] = args;
22966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22967 if (!SWIG_IsOK(res1)) {
22968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
22969 }
22970 arg1 = reinterpret_cast< wxDC * >(argp1);
22971 {
22972 PyThreadState* __tstate = wxPyBeginAllowThreads();
22973 result = (int)((wxDC const *)arg1)->GetDepth();
22974 wxPyEndAllowThreads(__tstate);
22975 if (PyErr_Occurred()) SWIG_fail;
22976 }
22977 resultobj = SWIG_From_int(static_cast< int >(result));
22978 return resultobj;
22979 fail:
22980 return NULL;
22981 }
22982
22983
22984 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22985 PyObject *resultobj = 0;
22986 wxDC *arg1 = (wxDC *) 0 ;
22987 wxSize result;
22988 void *argp1 = 0 ;
22989 int res1 = 0 ;
22990 PyObject *swig_obj[1] ;
22991
22992 if (!args) SWIG_fail;
22993 swig_obj[0] = args;
22994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22995 if (!SWIG_IsOK(res1)) {
22996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
22997 }
22998 arg1 = reinterpret_cast< wxDC * >(argp1);
22999 {
23000 PyThreadState* __tstate = wxPyBeginAllowThreads();
23001 result = ((wxDC const *)arg1)->GetPPI();
23002 wxPyEndAllowThreads(__tstate);
23003 if (PyErr_Occurred()) SWIG_fail;
23004 }
23005 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
23006 return resultobj;
23007 fail:
23008 return NULL;
23009 }
23010
23011
23012 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23013 PyObject *resultobj = 0;
23014 wxDC *arg1 = (wxDC *) 0 ;
23015 bool result;
23016 void *argp1 = 0 ;
23017 int res1 = 0 ;
23018 PyObject *swig_obj[1] ;
23019
23020 if (!args) SWIG_fail;
23021 swig_obj[0] = args;
23022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23023 if (!SWIG_IsOK(res1)) {
23024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
23025 }
23026 arg1 = reinterpret_cast< wxDC * >(argp1);
23027 {
23028 PyThreadState* __tstate = wxPyBeginAllowThreads();
23029 result = (bool)((wxDC const *)arg1)->IsOk();
23030 wxPyEndAllowThreads(__tstate);
23031 if (PyErr_Occurred()) SWIG_fail;
23032 }
23033 {
23034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23035 }
23036 return resultobj;
23037 fail:
23038 return NULL;
23039 }
23040
23041
23042 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23043 PyObject *resultobj = 0;
23044 wxDC *arg1 = (wxDC *) 0 ;
23045 int result;
23046 void *argp1 = 0 ;
23047 int res1 = 0 ;
23048 PyObject *swig_obj[1] ;
23049
23050 if (!args) SWIG_fail;
23051 swig_obj[0] = args;
23052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23053 if (!SWIG_IsOK(res1)) {
23054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
23055 }
23056 arg1 = reinterpret_cast< wxDC * >(argp1);
23057 {
23058 PyThreadState* __tstate = wxPyBeginAllowThreads();
23059 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
23060 wxPyEndAllowThreads(__tstate);
23061 if (PyErr_Occurred()) SWIG_fail;
23062 }
23063 resultobj = SWIG_From_int(static_cast< int >(result));
23064 return resultobj;
23065 fail:
23066 return NULL;
23067 }
23068
23069
23070 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23071 PyObject *resultobj = 0;
23072 wxDC *arg1 = (wxDC *) 0 ;
23073 wxBrush *result = 0 ;
23074 void *argp1 = 0 ;
23075 int res1 = 0 ;
23076 PyObject *swig_obj[1] ;
23077
23078 if (!args) SWIG_fail;
23079 swig_obj[0] = args;
23080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23081 if (!SWIG_IsOK(res1)) {
23082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
23083 }
23084 arg1 = reinterpret_cast< wxDC * >(argp1);
23085 {
23086 PyThreadState* __tstate = wxPyBeginAllowThreads();
23087 {
23088 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
23089 result = (wxBrush *) &_result_ref;
23090 }
23091 wxPyEndAllowThreads(__tstate);
23092 if (PyErr_Occurred()) SWIG_fail;
23093 }
23094 {
23095 wxBrush* resultptr = new wxBrush(*result);
23096 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
23097 }
23098 return resultobj;
23099 fail:
23100 return NULL;
23101 }
23102
23103
23104 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23105 PyObject *resultobj = 0;
23106 wxDC *arg1 = (wxDC *) 0 ;
23107 wxBrush *result = 0 ;
23108 void *argp1 = 0 ;
23109 int res1 = 0 ;
23110 PyObject *swig_obj[1] ;
23111
23112 if (!args) SWIG_fail;
23113 swig_obj[0] = args;
23114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23115 if (!SWIG_IsOK(res1)) {
23116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
23117 }
23118 arg1 = reinterpret_cast< wxDC * >(argp1);
23119 {
23120 PyThreadState* __tstate = wxPyBeginAllowThreads();
23121 {
23122 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
23123 result = (wxBrush *) &_result_ref;
23124 }
23125 wxPyEndAllowThreads(__tstate);
23126 if (PyErr_Occurred()) SWIG_fail;
23127 }
23128 {
23129 wxBrush* resultptr = new wxBrush(*result);
23130 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
23131 }
23132 return resultobj;
23133 fail:
23134 return NULL;
23135 }
23136
23137
23138 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23139 PyObject *resultobj = 0;
23140 wxDC *arg1 = (wxDC *) 0 ;
23141 wxFont *result = 0 ;
23142 void *argp1 = 0 ;
23143 int res1 = 0 ;
23144 PyObject *swig_obj[1] ;
23145
23146 if (!args) SWIG_fail;
23147 swig_obj[0] = args;
23148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23149 if (!SWIG_IsOK(res1)) {
23150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
23151 }
23152 arg1 = reinterpret_cast< wxDC * >(argp1);
23153 {
23154 PyThreadState* __tstate = wxPyBeginAllowThreads();
23155 {
23156 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
23157 result = (wxFont *) &_result_ref;
23158 }
23159 wxPyEndAllowThreads(__tstate);
23160 if (PyErr_Occurred()) SWIG_fail;
23161 }
23162 {
23163 wxFont* resultptr = new wxFont(*result);
23164 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
23165 }
23166 return resultobj;
23167 fail:
23168 return NULL;
23169 }
23170
23171
23172 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23173 PyObject *resultobj = 0;
23174 wxDC *arg1 = (wxDC *) 0 ;
23175 wxPen *result = 0 ;
23176 void *argp1 = 0 ;
23177 int res1 = 0 ;
23178 PyObject *swig_obj[1] ;
23179
23180 if (!args) SWIG_fail;
23181 swig_obj[0] = args;
23182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23183 if (!SWIG_IsOK(res1)) {
23184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
23185 }
23186 arg1 = reinterpret_cast< wxDC * >(argp1);
23187 {
23188 PyThreadState* __tstate = wxPyBeginAllowThreads();
23189 {
23190 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
23191 result = (wxPen *) &_result_ref;
23192 }
23193 wxPyEndAllowThreads(__tstate);
23194 if (PyErr_Occurred()) SWIG_fail;
23195 }
23196 {
23197 wxPen* resultptr = new wxPen(*result);
23198 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
23199 }
23200 return resultobj;
23201 fail:
23202 return NULL;
23203 }
23204
23205
23206 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23207 PyObject *resultobj = 0;
23208 wxDC *arg1 = (wxDC *) 0 ;
23209 wxColour *result = 0 ;
23210 void *argp1 = 0 ;
23211 int res1 = 0 ;
23212 PyObject *swig_obj[1] ;
23213
23214 if (!args) SWIG_fail;
23215 swig_obj[0] = args;
23216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23217 if (!SWIG_IsOK(res1)) {
23218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
23219 }
23220 arg1 = reinterpret_cast< wxDC * >(argp1);
23221 {
23222 PyThreadState* __tstate = wxPyBeginAllowThreads();
23223 {
23224 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
23225 result = (wxColour *) &_result_ref;
23226 }
23227 wxPyEndAllowThreads(__tstate);
23228 if (PyErr_Occurred()) SWIG_fail;
23229 }
23230 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
23231 return resultobj;
23232 fail:
23233 return NULL;
23234 }
23235
23236
23237 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23238 PyObject *resultobj = 0;
23239 wxDC *arg1 = (wxDC *) 0 ;
23240 wxColour *result = 0 ;
23241 void *argp1 = 0 ;
23242 int res1 = 0 ;
23243 PyObject *swig_obj[1] ;
23244
23245 if (!args) SWIG_fail;
23246 swig_obj[0] = args;
23247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23248 if (!SWIG_IsOK(res1)) {
23249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
23250 }
23251 arg1 = reinterpret_cast< wxDC * >(argp1);
23252 {
23253 PyThreadState* __tstate = wxPyBeginAllowThreads();
23254 {
23255 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
23256 result = (wxColour *) &_result_ref;
23257 }
23258 wxPyEndAllowThreads(__tstate);
23259 if (PyErr_Occurred()) SWIG_fail;
23260 }
23261 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
23262 return resultobj;
23263 fail:
23264 return NULL;
23265 }
23266
23267
23268 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23269 PyObject *resultobj = 0;
23270 wxDC *arg1 = (wxDC *) 0 ;
23271 wxColour *arg2 = 0 ;
23272 void *argp1 = 0 ;
23273 int res1 = 0 ;
23274 wxColour temp2 ;
23275 PyObject * obj0 = 0 ;
23276 PyObject * obj1 = 0 ;
23277 char * kwnames[] = {
23278 (char *) "self",(char *) "colour", NULL
23279 };
23280
23281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
23282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23283 if (!SWIG_IsOK(res1)) {
23284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
23285 }
23286 arg1 = reinterpret_cast< wxDC * >(argp1);
23287 {
23288 arg2 = &temp2;
23289 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23290 }
23291 {
23292 PyThreadState* __tstate = wxPyBeginAllowThreads();
23293 (arg1)->SetTextForeground((wxColour const &)*arg2);
23294 wxPyEndAllowThreads(__tstate);
23295 if (PyErr_Occurred()) SWIG_fail;
23296 }
23297 resultobj = SWIG_Py_Void();
23298 return resultobj;
23299 fail:
23300 return NULL;
23301 }
23302
23303
23304 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23305 PyObject *resultobj = 0;
23306 wxDC *arg1 = (wxDC *) 0 ;
23307 wxColour *arg2 = 0 ;
23308 void *argp1 = 0 ;
23309 int res1 = 0 ;
23310 wxColour temp2 ;
23311 PyObject * obj0 = 0 ;
23312 PyObject * obj1 = 0 ;
23313 char * kwnames[] = {
23314 (char *) "self",(char *) "colour", NULL
23315 };
23316
23317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
23318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23319 if (!SWIG_IsOK(res1)) {
23320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
23321 }
23322 arg1 = reinterpret_cast< wxDC * >(argp1);
23323 {
23324 arg2 = &temp2;
23325 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23326 }
23327 {
23328 PyThreadState* __tstate = wxPyBeginAllowThreads();
23329 (arg1)->SetTextBackground((wxColour const &)*arg2);
23330 wxPyEndAllowThreads(__tstate);
23331 if (PyErr_Occurred()) SWIG_fail;
23332 }
23333 resultobj = SWIG_Py_Void();
23334 return resultobj;
23335 fail:
23336 return NULL;
23337 }
23338
23339
23340 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23341 PyObject *resultobj = 0;
23342 wxDC *arg1 = (wxDC *) 0 ;
23343 int result;
23344 void *argp1 = 0 ;
23345 int res1 = 0 ;
23346 PyObject *swig_obj[1] ;
23347
23348 if (!args) SWIG_fail;
23349 swig_obj[0] = args;
23350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23351 if (!SWIG_IsOK(res1)) {
23352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
23353 }
23354 arg1 = reinterpret_cast< wxDC * >(argp1);
23355 {
23356 PyThreadState* __tstate = wxPyBeginAllowThreads();
23357 result = (int)((wxDC const *)arg1)->GetMapMode();
23358 wxPyEndAllowThreads(__tstate);
23359 if (PyErr_Occurred()) SWIG_fail;
23360 }
23361 resultobj = SWIG_From_int(static_cast< int >(result));
23362 return resultobj;
23363 fail:
23364 return NULL;
23365 }
23366
23367
23368 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23369 PyObject *resultobj = 0;
23370 wxDC *arg1 = (wxDC *) 0 ;
23371 int arg2 ;
23372 void *argp1 = 0 ;
23373 int res1 = 0 ;
23374 int val2 ;
23375 int ecode2 = 0 ;
23376 PyObject * obj0 = 0 ;
23377 PyObject * obj1 = 0 ;
23378 char * kwnames[] = {
23379 (char *) "self",(char *) "mode", NULL
23380 };
23381
23382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
23383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23384 if (!SWIG_IsOK(res1)) {
23385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
23386 }
23387 arg1 = reinterpret_cast< wxDC * >(argp1);
23388 ecode2 = SWIG_AsVal_int(obj1, &val2);
23389 if (!SWIG_IsOK(ecode2)) {
23390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
23391 }
23392 arg2 = static_cast< int >(val2);
23393 {
23394 PyThreadState* __tstate = wxPyBeginAllowThreads();
23395 (arg1)->SetMapMode(arg2);
23396 wxPyEndAllowThreads(__tstate);
23397 if (PyErr_Occurred()) SWIG_fail;
23398 }
23399 resultobj = SWIG_Py_Void();
23400 return resultobj;
23401 fail:
23402 return NULL;
23403 }
23404
23405
23406 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23407 PyObject *resultobj = 0;
23408 wxDC *arg1 = (wxDC *) 0 ;
23409 double *arg2 = (double *) 0 ;
23410 double *arg3 = (double *) 0 ;
23411 void *argp1 = 0 ;
23412 int res1 = 0 ;
23413 double temp2 ;
23414 int res2 = SWIG_TMPOBJ ;
23415 double temp3 ;
23416 int res3 = SWIG_TMPOBJ ;
23417 PyObject *swig_obj[1] ;
23418
23419 arg2 = &temp2;
23420 arg3 = &temp3;
23421 if (!args) SWIG_fail;
23422 swig_obj[0] = args;
23423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23424 if (!SWIG_IsOK(res1)) {
23425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
23426 }
23427 arg1 = reinterpret_cast< wxDC * >(argp1);
23428 {
23429 PyThreadState* __tstate = wxPyBeginAllowThreads();
23430 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
23431 wxPyEndAllowThreads(__tstate);
23432 if (PyErr_Occurred()) SWIG_fail;
23433 }
23434 resultobj = SWIG_Py_Void();
23435 if (SWIG_IsTmpObj(res2)) {
23436 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
23437 } else {
23438 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23439 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
23440 }
23441 if (SWIG_IsTmpObj(res3)) {
23442 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
23443 } else {
23444 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23445 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
23446 }
23447 return resultobj;
23448 fail:
23449 return NULL;
23450 }
23451
23452
23453 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23454 PyObject *resultobj = 0;
23455 wxDC *arg1 = (wxDC *) 0 ;
23456 double arg2 ;
23457 double arg3 ;
23458 void *argp1 = 0 ;
23459 int res1 = 0 ;
23460 double val2 ;
23461 int ecode2 = 0 ;
23462 double val3 ;
23463 int ecode3 = 0 ;
23464 PyObject * obj0 = 0 ;
23465 PyObject * obj1 = 0 ;
23466 PyObject * obj2 = 0 ;
23467 char * kwnames[] = {
23468 (char *) "self",(char *) "x",(char *) "y", NULL
23469 };
23470
23471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23473 if (!SWIG_IsOK(res1)) {
23474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
23475 }
23476 arg1 = reinterpret_cast< wxDC * >(argp1);
23477 ecode2 = SWIG_AsVal_double(obj1, &val2);
23478 if (!SWIG_IsOK(ecode2)) {
23479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
23480 }
23481 arg2 = static_cast< double >(val2);
23482 ecode3 = SWIG_AsVal_double(obj2, &val3);
23483 if (!SWIG_IsOK(ecode3)) {
23484 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
23485 }
23486 arg3 = static_cast< double >(val3);
23487 {
23488 PyThreadState* __tstate = wxPyBeginAllowThreads();
23489 (arg1)->SetUserScale(arg2,arg3);
23490 wxPyEndAllowThreads(__tstate);
23491 if (PyErr_Occurred()) SWIG_fail;
23492 }
23493 resultobj = SWIG_Py_Void();
23494 return resultobj;
23495 fail:
23496 return NULL;
23497 }
23498
23499
23500 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23501 PyObject *resultobj = 0;
23502 wxDC *arg1 = (wxDC *) 0 ;
23503 double *arg2 = (double *) 0 ;
23504 double *arg3 = (double *) 0 ;
23505 void *argp1 = 0 ;
23506 int res1 = 0 ;
23507 double temp2 ;
23508 int res2 = SWIG_TMPOBJ ;
23509 double temp3 ;
23510 int res3 = SWIG_TMPOBJ ;
23511 PyObject *swig_obj[1] ;
23512
23513 arg2 = &temp2;
23514 arg3 = &temp3;
23515 if (!args) SWIG_fail;
23516 swig_obj[0] = args;
23517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23518 if (!SWIG_IsOK(res1)) {
23519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
23520 }
23521 arg1 = reinterpret_cast< wxDC * >(argp1);
23522 {
23523 PyThreadState* __tstate = wxPyBeginAllowThreads();
23524 (arg1)->GetLogicalScale(arg2,arg3);
23525 wxPyEndAllowThreads(__tstate);
23526 if (PyErr_Occurred()) SWIG_fail;
23527 }
23528 resultobj = SWIG_Py_Void();
23529 if (SWIG_IsTmpObj(res2)) {
23530 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
23531 } else {
23532 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23533 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
23534 }
23535 if (SWIG_IsTmpObj(res3)) {
23536 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
23537 } else {
23538 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23539 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
23540 }
23541 return resultobj;
23542 fail:
23543 return NULL;
23544 }
23545
23546
23547 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23548 PyObject *resultobj = 0;
23549 wxDC *arg1 = (wxDC *) 0 ;
23550 double arg2 ;
23551 double arg3 ;
23552 void *argp1 = 0 ;
23553 int res1 = 0 ;
23554 double val2 ;
23555 int ecode2 = 0 ;
23556 double val3 ;
23557 int ecode3 = 0 ;
23558 PyObject * obj0 = 0 ;
23559 PyObject * obj1 = 0 ;
23560 PyObject * obj2 = 0 ;
23561 char * kwnames[] = {
23562 (char *) "self",(char *) "x",(char *) "y", NULL
23563 };
23564
23565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23567 if (!SWIG_IsOK(res1)) {
23568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
23569 }
23570 arg1 = reinterpret_cast< wxDC * >(argp1);
23571 ecode2 = SWIG_AsVal_double(obj1, &val2);
23572 if (!SWIG_IsOK(ecode2)) {
23573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
23574 }
23575 arg2 = static_cast< double >(val2);
23576 ecode3 = SWIG_AsVal_double(obj2, &val3);
23577 if (!SWIG_IsOK(ecode3)) {
23578 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
23579 }
23580 arg3 = static_cast< double >(val3);
23581 {
23582 PyThreadState* __tstate = wxPyBeginAllowThreads();
23583 (arg1)->SetLogicalScale(arg2,arg3);
23584 wxPyEndAllowThreads(__tstate);
23585 if (PyErr_Occurred()) SWIG_fail;
23586 }
23587 resultobj = SWIG_Py_Void();
23588 return resultobj;
23589 fail:
23590 return NULL;
23591 }
23592
23593
23594 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23595 PyObject *resultobj = 0;
23596 wxDC *arg1 = (wxDC *) 0 ;
23597 wxPoint result;
23598 void *argp1 = 0 ;
23599 int res1 = 0 ;
23600 PyObject *swig_obj[1] ;
23601
23602 if (!args) SWIG_fail;
23603 swig_obj[0] = args;
23604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23605 if (!SWIG_IsOK(res1)) {
23606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23607 }
23608 arg1 = reinterpret_cast< wxDC * >(argp1);
23609 {
23610 PyThreadState* __tstate = wxPyBeginAllowThreads();
23611 result = ((wxDC const *)arg1)->GetLogicalOrigin();
23612 wxPyEndAllowThreads(__tstate);
23613 if (PyErr_Occurred()) SWIG_fail;
23614 }
23615 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23616 return resultobj;
23617 fail:
23618 return NULL;
23619 }
23620
23621
23622 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23623 PyObject *resultobj = 0;
23624 wxDC *arg1 = (wxDC *) 0 ;
23625 int *arg2 = (int *) 0 ;
23626 int *arg3 = (int *) 0 ;
23627 void *argp1 = 0 ;
23628 int res1 = 0 ;
23629 int temp2 ;
23630 int res2 = SWIG_TMPOBJ ;
23631 int temp3 ;
23632 int res3 = SWIG_TMPOBJ ;
23633 PyObject *swig_obj[1] ;
23634
23635 arg2 = &temp2;
23636 arg3 = &temp3;
23637 if (!args) SWIG_fail;
23638 swig_obj[0] = args;
23639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23640 if (!SWIG_IsOK(res1)) {
23641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23642 }
23643 arg1 = reinterpret_cast< wxDC * >(argp1);
23644 {
23645 PyThreadState* __tstate = wxPyBeginAllowThreads();
23646 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
23647 wxPyEndAllowThreads(__tstate);
23648 if (PyErr_Occurred()) SWIG_fail;
23649 }
23650 resultobj = SWIG_Py_Void();
23651 if (SWIG_IsTmpObj(res2)) {
23652 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23653 } else {
23654 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23655 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23656 }
23657 if (SWIG_IsTmpObj(res3)) {
23658 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23659 } else {
23660 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23661 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23662 }
23663 return resultobj;
23664 fail:
23665 return NULL;
23666 }
23667
23668
23669 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23670 PyObject *resultobj = 0;
23671 wxDC *arg1 = (wxDC *) 0 ;
23672 int arg2 ;
23673 int arg3 ;
23674 void *argp1 = 0 ;
23675 int res1 = 0 ;
23676 int val2 ;
23677 int ecode2 = 0 ;
23678 int val3 ;
23679 int ecode3 = 0 ;
23680 PyObject * obj0 = 0 ;
23681 PyObject * obj1 = 0 ;
23682 PyObject * obj2 = 0 ;
23683 char * kwnames[] = {
23684 (char *) "self",(char *) "x",(char *) "y", NULL
23685 };
23686
23687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23689 if (!SWIG_IsOK(res1)) {
23690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23691 }
23692 arg1 = reinterpret_cast< wxDC * >(argp1);
23693 ecode2 = SWIG_AsVal_int(obj1, &val2);
23694 if (!SWIG_IsOK(ecode2)) {
23695 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
23696 }
23697 arg2 = static_cast< int >(val2);
23698 ecode3 = SWIG_AsVal_int(obj2, &val3);
23699 if (!SWIG_IsOK(ecode3)) {
23700 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
23701 }
23702 arg3 = static_cast< int >(val3);
23703 {
23704 PyThreadState* __tstate = wxPyBeginAllowThreads();
23705 (arg1)->SetLogicalOrigin(arg2,arg3);
23706 wxPyEndAllowThreads(__tstate);
23707 if (PyErr_Occurred()) SWIG_fail;
23708 }
23709 resultobj = SWIG_Py_Void();
23710 return resultobj;
23711 fail:
23712 return NULL;
23713 }
23714
23715
23716 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23717 PyObject *resultobj = 0;
23718 wxDC *arg1 = (wxDC *) 0 ;
23719 wxPoint *arg2 = 0 ;
23720 void *argp1 = 0 ;
23721 int res1 = 0 ;
23722 wxPoint temp2 ;
23723 PyObject * obj0 = 0 ;
23724 PyObject * obj1 = 0 ;
23725 char * kwnames[] = {
23726 (char *) "self",(char *) "point", NULL
23727 };
23728
23729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23731 if (!SWIG_IsOK(res1)) {
23732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23733 }
23734 arg1 = reinterpret_cast< wxDC * >(argp1);
23735 {
23736 arg2 = &temp2;
23737 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23738 }
23739 {
23740 PyThreadState* __tstate = wxPyBeginAllowThreads();
23741 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
23742 wxPyEndAllowThreads(__tstate);
23743 if (PyErr_Occurred()) SWIG_fail;
23744 }
23745 resultobj = SWIG_Py_Void();
23746 return resultobj;
23747 fail:
23748 return NULL;
23749 }
23750
23751
23752 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23753 PyObject *resultobj = 0;
23754 wxDC *arg1 = (wxDC *) 0 ;
23755 wxPoint result;
23756 void *argp1 = 0 ;
23757 int res1 = 0 ;
23758 PyObject *swig_obj[1] ;
23759
23760 if (!args) SWIG_fail;
23761 swig_obj[0] = args;
23762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23763 if (!SWIG_IsOK(res1)) {
23764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
23765 }
23766 arg1 = reinterpret_cast< wxDC * >(argp1);
23767 {
23768 PyThreadState* __tstate = wxPyBeginAllowThreads();
23769 result = ((wxDC const *)arg1)->GetDeviceOrigin();
23770 wxPyEndAllowThreads(__tstate);
23771 if (PyErr_Occurred()) SWIG_fail;
23772 }
23773 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
23774 return resultobj;
23775 fail:
23776 return NULL;
23777 }
23778
23779
23780 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23781 PyObject *resultobj = 0;
23782 wxDC *arg1 = (wxDC *) 0 ;
23783 int *arg2 = (int *) 0 ;
23784 int *arg3 = (int *) 0 ;
23785 void *argp1 = 0 ;
23786 int res1 = 0 ;
23787 int temp2 ;
23788 int res2 = SWIG_TMPOBJ ;
23789 int temp3 ;
23790 int res3 = SWIG_TMPOBJ ;
23791 PyObject *swig_obj[1] ;
23792
23793 arg2 = &temp2;
23794 arg3 = &temp3;
23795 if (!args) SWIG_fail;
23796 swig_obj[0] = args;
23797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23798 if (!SWIG_IsOK(res1)) {
23799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
23800 }
23801 arg1 = reinterpret_cast< wxDC * >(argp1);
23802 {
23803 PyThreadState* __tstate = wxPyBeginAllowThreads();
23804 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
23805 wxPyEndAllowThreads(__tstate);
23806 if (PyErr_Occurred()) SWIG_fail;
23807 }
23808 resultobj = SWIG_Py_Void();
23809 if (SWIG_IsTmpObj(res2)) {
23810 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23811 } else {
23812 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23813 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23814 }
23815 if (SWIG_IsTmpObj(res3)) {
23816 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23817 } else {
23818 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23819 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23820 }
23821 return resultobj;
23822 fail:
23823 return NULL;
23824 }
23825
23826
23827 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23828 PyObject *resultobj = 0;
23829 wxDC *arg1 = (wxDC *) 0 ;
23830 int arg2 ;
23831 int arg3 ;
23832 void *argp1 = 0 ;
23833 int res1 = 0 ;
23834 int val2 ;
23835 int ecode2 = 0 ;
23836 int val3 ;
23837 int ecode3 = 0 ;
23838 PyObject * obj0 = 0 ;
23839 PyObject * obj1 = 0 ;
23840 PyObject * obj2 = 0 ;
23841 char * kwnames[] = {
23842 (char *) "self",(char *) "x",(char *) "y", NULL
23843 };
23844
23845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23847 if (!SWIG_IsOK(res1)) {
23848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23849 }
23850 arg1 = reinterpret_cast< wxDC * >(argp1);
23851 ecode2 = SWIG_AsVal_int(obj1, &val2);
23852 if (!SWIG_IsOK(ecode2)) {
23853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
23854 }
23855 arg2 = static_cast< int >(val2);
23856 ecode3 = SWIG_AsVal_int(obj2, &val3);
23857 if (!SWIG_IsOK(ecode3)) {
23858 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
23859 }
23860 arg3 = static_cast< int >(val3);
23861 {
23862 PyThreadState* __tstate = wxPyBeginAllowThreads();
23863 (arg1)->SetDeviceOrigin(arg2,arg3);
23864 wxPyEndAllowThreads(__tstate);
23865 if (PyErr_Occurred()) SWIG_fail;
23866 }
23867 resultobj = SWIG_Py_Void();
23868 return resultobj;
23869 fail:
23870 return NULL;
23871 }
23872
23873
23874 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23875 PyObject *resultobj = 0;
23876 wxDC *arg1 = (wxDC *) 0 ;
23877 wxPoint *arg2 = 0 ;
23878 void *argp1 = 0 ;
23879 int res1 = 0 ;
23880 wxPoint temp2 ;
23881 PyObject * obj0 = 0 ;
23882 PyObject * obj1 = 0 ;
23883 char * kwnames[] = {
23884 (char *) "self",(char *) "point", NULL
23885 };
23886
23887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23889 if (!SWIG_IsOK(res1)) {
23890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23891 }
23892 arg1 = reinterpret_cast< wxDC * >(argp1);
23893 {
23894 arg2 = &temp2;
23895 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23896 }
23897 {
23898 PyThreadState* __tstate = wxPyBeginAllowThreads();
23899 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
23900 wxPyEndAllowThreads(__tstate);
23901 if (PyErr_Occurred()) SWIG_fail;
23902 }
23903 resultobj = SWIG_Py_Void();
23904 return resultobj;
23905 fail:
23906 return NULL;
23907 }
23908
23909
23910 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23911 PyObject *resultobj = 0;
23912 wxDC *arg1 = (wxDC *) 0 ;
23913 bool arg2 ;
23914 bool arg3 ;
23915 void *argp1 = 0 ;
23916 int res1 = 0 ;
23917 bool val2 ;
23918 int ecode2 = 0 ;
23919 bool val3 ;
23920 int ecode3 = 0 ;
23921 PyObject * obj0 = 0 ;
23922 PyObject * obj1 = 0 ;
23923 PyObject * obj2 = 0 ;
23924 char * kwnames[] = {
23925 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
23926 };
23927
23928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23930 if (!SWIG_IsOK(res1)) {
23931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
23932 }
23933 arg1 = reinterpret_cast< wxDC * >(argp1);
23934 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23935 if (!SWIG_IsOK(ecode2)) {
23936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
23937 }
23938 arg2 = static_cast< bool >(val2);
23939 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23940 if (!SWIG_IsOK(ecode3)) {
23941 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
23942 }
23943 arg3 = static_cast< bool >(val3);
23944 {
23945 PyThreadState* __tstate = wxPyBeginAllowThreads();
23946 (arg1)->SetAxisOrientation(arg2,arg3);
23947 wxPyEndAllowThreads(__tstate);
23948 if (PyErr_Occurred()) SWIG_fail;
23949 }
23950 resultobj = SWIG_Py_Void();
23951 return resultobj;
23952 fail:
23953 return NULL;
23954 }
23955
23956
23957 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23958 PyObject *resultobj = 0;
23959 wxDC *arg1 = (wxDC *) 0 ;
23960 int result;
23961 void *argp1 = 0 ;
23962 int res1 = 0 ;
23963 PyObject *swig_obj[1] ;
23964
23965 if (!args) SWIG_fail;
23966 swig_obj[0] = args;
23967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23968 if (!SWIG_IsOK(res1)) {
23969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
23970 }
23971 arg1 = reinterpret_cast< wxDC * >(argp1);
23972 {
23973 PyThreadState* __tstate = wxPyBeginAllowThreads();
23974 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
23975 wxPyEndAllowThreads(__tstate);
23976 if (PyErr_Occurred()) SWIG_fail;
23977 }
23978 resultobj = SWIG_From_int(static_cast< int >(result));
23979 return resultobj;
23980 fail:
23981 return NULL;
23982 }
23983
23984
23985 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23986 PyObject *resultobj = 0;
23987 wxDC *arg1 = (wxDC *) 0 ;
23988 int arg2 ;
23989 void *argp1 = 0 ;
23990 int res1 = 0 ;
23991 int val2 ;
23992 int ecode2 = 0 ;
23993 PyObject * obj0 = 0 ;
23994 PyObject * obj1 = 0 ;
23995 char * kwnames[] = {
23996 (char *) "self",(char *) "function", NULL
23997 };
23998
23999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
24000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24001 if (!SWIG_IsOK(res1)) {
24002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
24003 }
24004 arg1 = reinterpret_cast< wxDC * >(argp1);
24005 ecode2 = SWIG_AsVal_int(obj1, &val2);
24006 if (!SWIG_IsOK(ecode2)) {
24007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
24008 }
24009 arg2 = static_cast< int >(val2);
24010 {
24011 PyThreadState* __tstate = wxPyBeginAllowThreads();
24012 (arg1)->SetLogicalFunction(arg2);
24013 wxPyEndAllowThreads(__tstate);
24014 if (PyErr_Occurred()) SWIG_fail;
24015 }
24016 resultobj = SWIG_Py_Void();
24017 return resultobj;
24018 fail:
24019 return NULL;
24020 }
24021
24022
24023 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24024 PyObject *resultobj = 0;
24025 wxDC *arg1 = (wxDC *) 0 ;
24026 void *argp1 = 0 ;
24027 int res1 = 0 ;
24028 PyObject *swig_obj[1] ;
24029
24030 if (!args) SWIG_fail;
24031 swig_obj[0] = args;
24032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24033 if (!SWIG_IsOK(res1)) {
24034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
24035 }
24036 arg1 = reinterpret_cast< wxDC * >(argp1);
24037 {
24038 PyThreadState* __tstate = wxPyBeginAllowThreads();
24039 (arg1)->ComputeScaleAndOrigin();
24040 wxPyEndAllowThreads(__tstate);
24041 if (PyErr_Occurred()) SWIG_fail;
24042 }
24043 resultobj = SWIG_Py_Void();
24044 return resultobj;
24045 fail:
24046 return NULL;
24047 }
24048
24049
24050 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24051 PyObject *resultobj = 0;
24052 wxDC *arg1 = (wxDC *) 0 ;
24053 int arg2 ;
24054 int arg3 ;
24055 void *argp1 = 0 ;
24056 int res1 = 0 ;
24057 int val2 ;
24058 int ecode2 = 0 ;
24059 int val3 ;
24060 int ecode3 = 0 ;
24061 PyObject * obj0 = 0 ;
24062 PyObject * obj1 = 0 ;
24063 PyObject * obj2 = 0 ;
24064 char * kwnames[] = {
24065 (char *) "self",(char *) "x",(char *) "y", NULL
24066 };
24067
24068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24070 if (!SWIG_IsOK(res1)) {
24071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
24072 }
24073 arg1 = reinterpret_cast< wxDC * >(argp1);
24074 ecode2 = SWIG_AsVal_int(obj1, &val2);
24075 if (!SWIG_IsOK(ecode2)) {
24076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
24077 }
24078 arg2 = static_cast< int >(val2);
24079 ecode3 = SWIG_AsVal_int(obj2, &val3);
24080 if (!SWIG_IsOK(ecode3)) {
24081 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
24082 }
24083 arg3 = static_cast< int >(val3);
24084 {
24085 PyThreadState* __tstate = wxPyBeginAllowThreads();
24086 (arg1)->CalcBoundingBox(arg2,arg3);
24087 wxPyEndAllowThreads(__tstate);
24088 if (PyErr_Occurred()) SWIG_fail;
24089 }
24090 resultobj = SWIG_Py_Void();
24091 return resultobj;
24092 fail:
24093 return NULL;
24094 }
24095
24096
24097 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24098 PyObject *resultobj = 0;
24099 wxDC *arg1 = (wxDC *) 0 ;
24100 wxPoint *arg2 = 0 ;
24101 void *argp1 = 0 ;
24102 int res1 = 0 ;
24103 wxPoint temp2 ;
24104 PyObject * obj0 = 0 ;
24105 PyObject * obj1 = 0 ;
24106 char * kwnames[] = {
24107 (char *) "self",(char *) "point", NULL
24108 };
24109
24110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
24111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24112 if (!SWIG_IsOK(res1)) {
24113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
24114 }
24115 arg1 = reinterpret_cast< wxDC * >(argp1);
24116 {
24117 arg2 = &temp2;
24118 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
24119 }
24120 {
24121 PyThreadState* __tstate = wxPyBeginAllowThreads();
24122 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
24123 wxPyEndAllowThreads(__tstate);
24124 if (PyErr_Occurred()) SWIG_fail;
24125 }
24126 resultobj = SWIG_Py_Void();
24127 return resultobj;
24128 fail:
24129 return NULL;
24130 }
24131
24132
24133 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24134 PyObject *resultobj = 0;
24135 wxDC *arg1 = (wxDC *) 0 ;
24136 void *argp1 = 0 ;
24137 int res1 = 0 ;
24138 PyObject *swig_obj[1] ;
24139
24140 if (!args) SWIG_fail;
24141 swig_obj[0] = args;
24142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24143 if (!SWIG_IsOK(res1)) {
24144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
24145 }
24146 arg1 = reinterpret_cast< wxDC * >(argp1);
24147 {
24148 PyThreadState* __tstate = wxPyBeginAllowThreads();
24149 (arg1)->ResetBoundingBox();
24150 wxPyEndAllowThreads(__tstate);
24151 if (PyErr_Occurred()) SWIG_fail;
24152 }
24153 resultobj = SWIG_Py_Void();
24154 return resultobj;
24155 fail:
24156 return NULL;
24157 }
24158
24159
24160 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24161 PyObject *resultobj = 0;
24162 wxDC *arg1 = (wxDC *) 0 ;
24163 int result;
24164 void *argp1 = 0 ;
24165 int res1 = 0 ;
24166 PyObject *swig_obj[1] ;
24167
24168 if (!args) SWIG_fail;
24169 swig_obj[0] = args;
24170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24171 if (!SWIG_IsOK(res1)) {
24172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
24173 }
24174 arg1 = reinterpret_cast< wxDC * >(argp1);
24175 {
24176 PyThreadState* __tstate = wxPyBeginAllowThreads();
24177 result = (int)((wxDC const *)arg1)->MinX();
24178 wxPyEndAllowThreads(__tstate);
24179 if (PyErr_Occurred()) SWIG_fail;
24180 }
24181 resultobj = SWIG_From_int(static_cast< int >(result));
24182 return resultobj;
24183 fail:
24184 return NULL;
24185 }
24186
24187
24188 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24189 PyObject *resultobj = 0;
24190 wxDC *arg1 = (wxDC *) 0 ;
24191 int result;
24192 void *argp1 = 0 ;
24193 int res1 = 0 ;
24194 PyObject *swig_obj[1] ;
24195
24196 if (!args) SWIG_fail;
24197 swig_obj[0] = args;
24198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24199 if (!SWIG_IsOK(res1)) {
24200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
24201 }
24202 arg1 = reinterpret_cast< wxDC * >(argp1);
24203 {
24204 PyThreadState* __tstate = wxPyBeginAllowThreads();
24205 result = (int)((wxDC const *)arg1)->MaxX();
24206 wxPyEndAllowThreads(__tstate);
24207 if (PyErr_Occurred()) SWIG_fail;
24208 }
24209 resultobj = SWIG_From_int(static_cast< int >(result));
24210 return resultobj;
24211 fail:
24212 return NULL;
24213 }
24214
24215
24216 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24217 PyObject *resultobj = 0;
24218 wxDC *arg1 = (wxDC *) 0 ;
24219 int result;
24220 void *argp1 = 0 ;
24221 int res1 = 0 ;
24222 PyObject *swig_obj[1] ;
24223
24224 if (!args) SWIG_fail;
24225 swig_obj[0] = args;
24226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24227 if (!SWIG_IsOK(res1)) {
24228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
24229 }
24230 arg1 = reinterpret_cast< wxDC * >(argp1);
24231 {
24232 PyThreadState* __tstate = wxPyBeginAllowThreads();
24233 result = (int)((wxDC const *)arg1)->MinY();
24234 wxPyEndAllowThreads(__tstate);
24235 if (PyErr_Occurred()) SWIG_fail;
24236 }
24237 resultobj = SWIG_From_int(static_cast< int >(result));
24238 return resultobj;
24239 fail:
24240 return NULL;
24241 }
24242
24243
24244 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24245 PyObject *resultobj = 0;
24246 wxDC *arg1 = (wxDC *) 0 ;
24247 int result;
24248 void *argp1 = 0 ;
24249 int res1 = 0 ;
24250 PyObject *swig_obj[1] ;
24251
24252 if (!args) SWIG_fail;
24253 swig_obj[0] = args;
24254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24255 if (!SWIG_IsOK(res1)) {
24256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
24257 }
24258 arg1 = reinterpret_cast< wxDC * >(argp1);
24259 {
24260 PyThreadState* __tstate = wxPyBeginAllowThreads();
24261 result = (int)((wxDC const *)arg1)->MaxY();
24262 wxPyEndAllowThreads(__tstate);
24263 if (PyErr_Occurred()) SWIG_fail;
24264 }
24265 resultobj = SWIG_From_int(static_cast< int >(result));
24266 return resultobj;
24267 fail:
24268 return NULL;
24269 }
24270
24271
24272 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24273 PyObject *resultobj = 0;
24274 wxDC *arg1 = (wxDC *) 0 ;
24275 int *arg2 = (int *) 0 ;
24276 int *arg3 = (int *) 0 ;
24277 int *arg4 = (int *) 0 ;
24278 int *arg5 = (int *) 0 ;
24279 void *argp1 = 0 ;
24280 int res1 = 0 ;
24281 int temp2 ;
24282 int res2 = SWIG_TMPOBJ ;
24283 int temp3 ;
24284 int res3 = SWIG_TMPOBJ ;
24285 int temp4 ;
24286 int res4 = SWIG_TMPOBJ ;
24287 int temp5 ;
24288 int res5 = SWIG_TMPOBJ ;
24289 PyObject *swig_obj[1] ;
24290
24291 arg2 = &temp2;
24292 arg3 = &temp3;
24293 arg4 = &temp4;
24294 arg5 = &temp5;
24295 if (!args) SWIG_fail;
24296 swig_obj[0] = args;
24297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24298 if (!SWIG_IsOK(res1)) {
24299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
24300 }
24301 arg1 = reinterpret_cast< wxDC * >(argp1);
24302 {
24303 PyThreadState* __tstate = wxPyBeginAllowThreads();
24304 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
24305 wxPyEndAllowThreads(__tstate);
24306 if (PyErr_Occurred()) SWIG_fail;
24307 }
24308 resultobj = SWIG_Py_Void();
24309 if (SWIG_IsTmpObj(res2)) {
24310 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
24311 } else {
24312 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
24313 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
24314 }
24315 if (SWIG_IsTmpObj(res3)) {
24316 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
24317 } else {
24318 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
24319 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
24320 }
24321 if (SWIG_IsTmpObj(res4)) {
24322 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
24323 } else {
24324 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
24325 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
24326 }
24327 if (SWIG_IsTmpObj(res5)) {
24328 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
24329 } else {
24330 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
24331 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
24332 }
24333 return resultobj;
24334 fail:
24335 return NULL;
24336 }
24337
24338
24339 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24340 PyObject *resultobj = 0;
24341 wxDC *arg1 = (wxDC *) 0 ;
24342 wxLayoutDirection result;
24343 void *argp1 = 0 ;
24344 int res1 = 0 ;
24345 PyObject *swig_obj[1] ;
24346
24347 if (!args) SWIG_fail;
24348 swig_obj[0] = args;
24349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24350 if (!SWIG_IsOK(res1)) {
24351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
24352 }
24353 arg1 = reinterpret_cast< wxDC * >(argp1);
24354 {
24355 PyThreadState* __tstate = wxPyBeginAllowThreads();
24356 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
24357 wxPyEndAllowThreads(__tstate);
24358 if (PyErr_Occurred()) SWIG_fail;
24359 }
24360 resultobj = SWIG_From_int(static_cast< int >(result));
24361 return resultobj;
24362 fail:
24363 return NULL;
24364 }
24365
24366
24367 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24368 PyObject *resultobj = 0;
24369 wxDC *arg1 = (wxDC *) 0 ;
24370 wxLayoutDirection arg2 ;
24371 void *argp1 = 0 ;
24372 int res1 = 0 ;
24373 int val2 ;
24374 int ecode2 = 0 ;
24375 PyObject * obj0 = 0 ;
24376 PyObject * obj1 = 0 ;
24377 char * kwnames[] = {
24378 (char *) "self",(char *) "dir", NULL
24379 };
24380
24381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
24382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24383 if (!SWIG_IsOK(res1)) {
24384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
24385 }
24386 arg1 = reinterpret_cast< wxDC * >(argp1);
24387 ecode2 = SWIG_AsVal_int(obj1, &val2);
24388 if (!SWIG_IsOK(ecode2)) {
24389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
24390 }
24391 arg2 = static_cast< wxLayoutDirection >(val2);
24392 {
24393 PyThreadState* __tstate = wxPyBeginAllowThreads();
24394 (arg1)->SetLayoutDirection(arg2);
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 *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24406 PyObject *resultobj = 0;
24407 wxDC *arg1 = (wxDC *) 0 ;
24408 long result;
24409 void *argp1 = 0 ;
24410 int res1 = 0 ;
24411 PyObject *swig_obj[1] ;
24412
24413 if (!args) SWIG_fail;
24414 swig_obj[0] = args;
24415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24416 if (!SWIG_IsOK(res1)) {
24417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
24418 }
24419 arg1 = reinterpret_cast< wxDC * >(argp1);
24420 {
24421 PyThreadState* __tstate = wxPyBeginAllowThreads();
24422 result = (long)(arg1)->GetHDC();
24423 wxPyEndAllowThreads(__tstate);
24424 if (PyErr_Occurred()) SWIG_fail;
24425 }
24426 resultobj = SWIG_From_long(static_cast< long >(result));
24427 return resultobj;
24428 fail:
24429 return NULL;
24430 }
24431
24432
24433 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24434 PyObject *resultobj = 0;
24435 wxDC *arg1 = (wxDC *) 0 ;
24436 PyObject *arg2 = (PyObject *) 0 ;
24437 PyObject *arg3 = (PyObject *) 0 ;
24438 PyObject *arg4 = (PyObject *) 0 ;
24439 PyObject *result = 0 ;
24440 void *argp1 = 0 ;
24441 int res1 = 0 ;
24442 PyObject * obj0 = 0 ;
24443 PyObject * obj1 = 0 ;
24444 PyObject * obj2 = 0 ;
24445 PyObject * obj3 = 0 ;
24446 char * kwnames[] = {
24447 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24448 };
24449
24450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24452 if (!SWIG_IsOK(res1)) {
24453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
24454 }
24455 arg1 = reinterpret_cast< wxDC * >(argp1);
24456 arg2 = obj1;
24457 arg3 = obj2;
24458 arg4 = obj3;
24459 {
24460 PyThreadState* __tstate = wxPyBeginAllowThreads();
24461 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
24462 wxPyEndAllowThreads(__tstate);
24463 if (PyErr_Occurred()) SWIG_fail;
24464 }
24465 resultobj = result;
24466 return resultobj;
24467 fail:
24468 return NULL;
24469 }
24470
24471
24472 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24473 PyObject *resultobj = 0;
24474 wxDC *arg1 = (wxDC *) 0 ;
24475 PyObject *arg2 = (PyObject *) 0 ;
24476 PyObject *arg3 = (PyObject *) 0 ;
24477 PyObject *arg4 = (PyObject *) 0 ;
24478 PyObject *result = 0 ;
24479 void *argp1 = 0 ;
24480 int res1 = 0 ;
24481 PyObject * obj0 = 0 ;
24482 PyObject * obj1 = 0 ;
24483 PyObject * obj2 = 0 ;
24484 PyObject * obj3 = 0 ;
24485 char * kwnames[] = {
24486 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24487 };
24488
24489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24491 if (!SWIG_IsOK(res1)) {
24492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
24493 }
24494 arg1 = reinterpret_cast< wxDC * >(argp1);
24495 arg2 = obj1;
24496 arg3 = obj2;
24497 arg4 = obj3;
24498 {
24499 PyThreadState* __tstate = wxPyBeginAllowThreads();
24500 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
24501 wxPyEndAllowThreads(__tstate);
24502 if (PyErr_Occurred()) SWIG_fail;
24503 }
24504 resultobj = result;
24505 return resultobj;
24506 fail:
24507 return NULL;
24508 }
24509
24510
24511 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24512 PyObject *resultobj = 0;
24513 wxDC *arg1 = (wxDC *) 0 ;
24514 PyObject *arg2 = (PyObject *) 0 ;
24515 PyObject *arg3 = (PyObject *) 0 ;
24516 PyObject *arg4 = (PyObject *) 0 ;
24517 PyObject *result = 0 ;
24518 void *argp1 = 0 ;
24519 int res1 = 0 ;
24520 PyObject * obj0 = 0 ;
24521 PyObject * obj1 = 0 ;
24522 PyObject * obj2 = 0 ;
24523 PyObject * obj3 = 0 ;
24524 char * kwnames[] = {
24525 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24526 };
24527
24528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24530 if (!SWIG_IsOK(res1)) {
24531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
24532 }
24533 arg1 = reinterpret_cast< wxDC * >(argp1);
24534 arg2 = obj1;
24535 arg3 = obj2;
24536 arg4 = obj3;
24537 {
24538 PyThreadState* __tstate = wxPyBeginAllowThreads();
24539 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
24540 wxPyEndAllowThreads(__tstate);
24541 if (PyErr_Occurred()) SWIG_fail;
24542 }
24543 resultobj = result;
24544 return resultobj;
24545 fail:
24546 return NULL;
24547 }
24548
24549
24550 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24551 PyObject *resultobj = 0;
24552 wxDC *arg1 = (wxDC *) 0 ;
24553 PyObject *arg2 = (PyObject *) 0 ;
24554 PyObject *arg3 = (PyObject *) 0 ;
24555 PyObject *arg4 = (PyObject *) 0 ;
24556 PyObject *result = 0 ;
24557 void *argp1 = 0 ;
24558 int res1 = 0 ;
24559 PyObject * obj0 = 0 ;
24560 PyObject * obj1 = 0 ;
24561 PyObject * obj2 = 0 ;
24562 PyObject * obj3 = 0 ;
24563 char * kwnames[] = {
24564 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24565 };
24566
24567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24569 if (!SWIG_IsOK(res1)) {
24570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
24571 }
24572 arg1 = reinterpret_cast< wxDC * >(argp1);
24573 arg2 = obj1;
24574 arg3 = obj2;
24575 arg4 = obj3;
24576 {
24577 PyThreadState* __tstate = wxPyBeginAllowThreads();
24578 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
24579 wxPyEndAllowThreads(__tstate);
24580 if (PyErr_Occurred()) SWIG_fail;
24581 }
24582 resultobj = result;
24583 return resultobj;
24584 fail:
24585 return NULL;
24586 }
24587
24588
24589 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24590 PyObject *resultobj = 0;
24591 wxDC *arg1 = (wxDC *) 0 ;
24592 PyObject *arg2 = (PyObject *) 0 ;
24593 PyObject *arg3 = (PyObject *) 0 ;
24594 PyObject *arg4 = (PyObject *) 0 ;
24595 PyObject *result = 0 ;
24596 void *argp1 = 0 ;
24597 int res1 = 0 ;
24598 PyObject * obj0 = 0 ;
24599 PyObject * obj1 = 0 ;
24600 PyObject * obj2 = 0 ;
24601 PyObject * obj3 = 0 ;
24602 char * kwnames[] = {
24603 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
24604 };
24605
24606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24608 if (!SWIG_IsOK(res1)) {
24609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
24610 }
24611 arg1 = reinterpret_cast< wxDC * >(argp1);
24612 arg2 = obj1;
24613 arg3 = obj2;
24614 arg4 = obj3;
24615 {
24616 PyThreadState* __tstate = wxPyBeginAllowThreads();
24617 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
24618 wxPyEndAllowThreads(__tstate);
24619 if (PyErr_Occurred()) SWIG_fail;
24620 }
24621 resultobj = result;
24622 return resultobj;
24623 fail:
24624 return NULL;
24625 }
24626
24627
24628 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24629 PyObject *resultobj = 0;
24630 wxDC *arg1 = (wxDC *) 0 ;
24631 PyObject *arg2 = (PyObject *) 0 ;
24632 PyObject *arg3 = (PyObject *) 0 ;
24633 PyObject *arg4 = (PyObject *) 0 ;
24634 PyObject *arg5 = (PyObject *) 0 ;
24635 PyObject *result = 0 ;
24636 void *argp1 = 0 ;
24637 int res1 = 0 ;
24638 PyObject * obj0 = 0 ;
24639 PyObject * obj1 = 0 ;
24640 PyObject * obj2 = 0 ;
24641 PyObject * obj3 = 0 ;
24642 PyObject * obj4 = 0 ;
24643 char * kwnames[] = {
24644 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
24645 };
24646
24647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24649 if (!SWIG_IsOK(res1)) {
24650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
24651 }
24652 arg1 = reinterpret_cast< wxDC * >(argp1);
24653 arg2 = obj1;
24654 arg3 = obj2;
24655 arg4 = obj3;
24656 arg5 = obj4;
24657 {
24658 PyThreadState* __tstate = wxPyBeginAllowThreads();
24659 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
24660 wxPyEndAllowThreads(__tstate);
24661 if (PyErr_Occurred()) SWIG_fail;
24662 }
24663 resultobj = result;
24664 return resultobj;
24665 fail:
24666 return NULL;
24667 }
24668
24669
24670 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24671 PyObject *obj;
24672 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24673 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
24674 return SWIG_Py_Void();
24675 }
24676
24677 SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24678 PyObject *resultobj = 0;
24679 wxDC *arg1 = 0 ;
24680 wxColour *arg2 = 0 ;
24681 wxDCTextColourChanger *result = 0 ;
24682 void *argp1 = 0 ;
24683 int res1 = 0 ;
24684 wxColour temp2 ;
24685 PyObject * obj0 = 0 ;
24686 PyObject * obj1 = 0 ;
24687 char * kwnames[] = {
24688 (char *) "dc",(char *) "col", NULL
24689 };
24690
24691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24692 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24693 if (!SWIG_IsOK(res1)) {
24694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24695 }
24696 if (!argp1) {
24697 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24698 }
24699 arg1 = reinterpret_cast< wxDC * >(argp1);
24700 {
24701 arg2 = &temp2;
24702 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24703 }
24704 {
24705 PyThreadState* __tstate = wxPyBeginAllowThreads();
24706 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
24707 wxPyEndAllowThreads(__tstate);
24708 if (PyErr_Occurred()) SWIG_fail;
24709 }
24710 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
24711 return resultobj;
24712 fail:
24713 return NULL;
24714 }
24715
24716
24717 SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24718 PyObject *resultobj = 0;
24719 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
24720 void *argp1 = 0 ;
24721 int res1 = 0 ;
24722 PyObject *swig_obj[1] ;
24723
24724 if (!args) SWIG_fail;
24725 swig_obj[0] = args;
24726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
24727 if (!SWIG_IsOK(res1)) {
24728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
24729 }
24730 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
24731 {
24732 PyThreadState* __tstate = wxPyBeginAllowThreads();
24733 delete arg1;
24734
24735 wxPyEndAllowThreads(__tstate);
24736 if (PyErr_Occurred()) SWIG_fail;
24737 }
24738 resultobj = SWIG_Py_Void();
24739 return resultobj;
24740 fail:
24741 return NULL;
24742 }
24743
24744
24745 SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24746 PyObject *obj;
24747 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24748 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
24749 return SWIG_Py_Void();
24750 }
24751
24752 SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24753 return SWIG_Python_InitShadowInstance(args);
24754 }
24755
24756 SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24757 PyObject *resultobj = 0;
24758 wxDC *arg1 = 0 ;
24759 wxPen *arg2 = 0 ;
24760 wxDCPenChanger *result = 0 ;
24761 void *argp1 = 0 ;
24762 int res1 = 0 ;
24763 void *argp2 = 0 ;
24764 int res2 = 0 ;
24765 PyObject * obj0 = 0 ;
24766 PyObject * obj1 = 0 ;
24767 char * kwnames[] = {
24768 (char *) "dc",(char *) "pen", NULL
24769 };
24770
24771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24772 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24773 if (!SWIG_IsOK(res1)) {
24774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24775 }
24776 if (!argp1) {
24777 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24778 }
24779 arg1 = reinterpret_cast< wxDC * >(argp1);
24780 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
24781 if (!SWIG_IsOK(res2)) {
24782 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24783 }
24784 if (!argp2) {
24785 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
24786 }
24787 arg2 = reinterpret_cast< wxPen * >(argp2);
24788 {
24789 PyThreadState* __tstate = wxPyBeginAllowThreads();
24790 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
24791 wxPyEndAllowThreads(__tstate);
24792 if (PyErr_Occurred()) SWIG_fail;
24793 }
24794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
24795 return resultobj;
24796 fail:
24797 return NULL;
24798 }
24799
24800
24801 SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24802 PyObject *resultobj = 0;
24803 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
24804 void *argp1 = 0 ;
24805 int res1 = 0 ;
24806 PyObject *swig_obj[1] ;
24807
24808 if (!args) SWIG_fail;
24809 swig_obj[0] = args;
24810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
24811 if (!SWIG_IsOK(res1)) {
24812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
24813 }
24814 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
24815 {
24816 PyThreadState* __tstate = wxPyBeginAllowThreads();
24817 delete arg1;
24818
24819 wxPyEndAllowThreads(__tstate);
24820 if (PyErr_Occurred()) SWIG_fail;
24821 }
24822 resultobj = SWIG_Py_Void();
24823 return resultobj;
24824 fail:
24825 return NULL;
24826 }
24827
24828
24829 SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24830 PyObject *obj;
24831 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24832 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
24833 return SWIG_Py_Void();
24834 }
24835
24836 SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24837 return SWIG_Python_InitShadowInstance(args);
24838 }
24839
24840 SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24841 PyObject *resultobj = 0;
24842 wxDC *arg1 = 0 ;
24843 wxBrush *arg2 = 0 ;
24844 wxDCBrushChanger *result = 0 ;
24845 void *argp1 = 0 ;
24846 int res1 = 0 ;
24847 void *argp2 = 0 ;
24848 int res2 = 0 ;
24849 PyObject * obj0 = 0 ;
24850 PyObject * obj1 = 0 ;
24851 char * kwnames[] = {
24852 (char *) "dc",(char *) "brush", NULL
24853 };
24854
24855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
24856 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24857 if (!SWIG_IsOK(res1)) {
24858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24859 }
24860 if (!argp1) {
24861 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
24862 }
24863 arg1 = reinterpret_cast< wxDC * >(argp1);
24864 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
24865 if (!SWIG_IsOK(res2)) {
24866 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24867 }
24868 if (!argp2) {
24869 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
24870 }
24871 arg2 = reinterpret_cast< wxBrush * >(argp2);
24872 {
24873 PyThreadState* __tstate = wxPyBeginAllowThreads();
24874 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
24875 wxPyEndAllowThreads(__tstate);
24876 if (PyErr_Occurred()) SWIG_fail;
24877 }
24878 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
24879 return resultobj;
24880 fail:
24881 return NULL;
24882 }
24883
24884
24885 SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24886 PyObject *resultobj = 0;
24887 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
24888 void *argp1 = 0 ;
24889 int res1 = 0 ;
24890 PyObject *swig_obj[1] ;
24891
24892 if (!args) SWIG_fail;
24893 swig_obj[0] = args;
24894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
24895 if (!SWIG_IsOK(res1)) {
24896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
24897 }
24898 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
24899 {
24900 PyThreadState* __tstate = wxPyBeginAllowThreads();
24901 delete arg1;
24902
24903 wxPyEndAllowThreads(__tstate);
24904 if (PyErr_Occurred()) SWIG_fail;
24905 }
24906 resultobj = SWIG_Py_Void();
24907 return resultobj;
24908 fail:
24909 return NULL;
24910 }
24911
24912
24913 SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24914 PyObject *obj;
24915 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24916 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
24917 return SWIG_Py_Void();
24918 }
24919
24920 SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24921 return SWIG_Python_InitShadowInstance(args);
24922 }
24923
24924 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24925 PyObject *resultobj = 0;
24926 wxDC *arg1 = 0 ;
24927 wxRegion *arg2 = 0 ;
24928 wxDCClipper *result = 0 ;
24929 void *argp1 = 0 ;
24930 int res1 = 0 ;
24931 void *argp2 = 0 ;
24932 int res2 = 0 ;
24933
24934 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24936 if (!SWIG_IsOK(res1)) {
24937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24938 }
24939 if (!argp1) {
24940 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24941 }
24942 arg1 = reinterpret_cast< wxDC * >(argp1);
24943 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
24944 if (!SWIG_IsOK(res2)) {
24945 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24946 }
24947 if (!argp2) {
24948 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
24949 }
24950 arg2 = reinterpret_cast< wxRegion * >(argp2);
24951 {
24952 PyThreadState* __tstate = wxPyBeginAllowThreads();
24953 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
24954 wxPyEndAllowThreads(__tstate);
24955 if (PyErr_Occurred()) SWIG_fail;
24956 }
24957 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24958 return resultobj;
24959 fail:
24960 return NULL;
24961 }
24962
24963
24964 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24965 PyObject *resultobj = 0;
24966 wxDC *arg1 = 0 ;
24967 wxRect *arg2 = 0 ;
24968 wxDCClipper *result = 0 ;
24969 void *argp1 = 0 ;
24970 int res1 = 0 ;
24971 wxRect temp2 ;
24972
24973 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
24974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
24975 if (!SWIG_IsOK(res1)) {
24976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24977 }
24978 if (!argp1) {
24979 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
24980 }
24981 arg1 = reinterpret_cast< wxDC * >(argp1);
24982 {
24983 arg2 = &temp2;
24984 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
24985 }
24986 {
24987 PyThreadState* __tstate = wxPyBeginAllowThreads();
24988 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
24989 wxPyEndAllowThreads(__tstate);
24990 if (PyErr_Occurred()) SWIG_fail;
24991 }
24992 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
24993 return resultobj;
24994 fail:
24995 return NULL;
24996 }
24997
24998
24999 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25000 PyObject *resultobj = 0;
25001 wxDC *arg1 = 0 ;
25002 int arg2 ;
25003 int arg3 ;
25004 int arg4 ;
25005 int arg5 ;
25006 wxDCClipper *result = 0 ;
25007 void *argp1 = 0 ;
25008 int res1 = 0 ;
25009 int val2 ;
25010 int ecode2 = 0 ;
25011 int val3 ;
25012 int ecode3 = 0 ;
25013 int val4 ;
25014 int ecode4 = 0 ;
25015 int val5 ;
25016 int ecode5 = 0 ;
25017
25018 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
25019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
25020 if (!SWIG_IsOK(res1)) {
25021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
25022 }
25023 if (!argp1) {
25024 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
25025 }
25026 arg1 = reinterpret_cast< wxDC * >(argp1);
25027 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
25028 if (!SWIG_IsOK(ecode2)) {
25029 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
25030 }
25031 arg2 = static_cast< int >(val2);
25032 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
25033 if (!SWIG_IsOK(ecode3)) {
25034 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
25035 }
25036 arg3 = static_cast< int >(val3);
25037 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
25038 if (!SWIG_IsOK(ecode4)) {
25039 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
25040 }
25041 arg4 = static_cast< int >(val4);
25042 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
25043 if (!SWIG_IsOK(ecode5)) {
25044 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
25045 }
25046 arg5 = static_cast< int >(val5);
25047 {
25048 PyThreadState* __tstate = wxPyBeginAllowThreads();
25049 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
25050 wxPyEndAllowThreads(__tstate);
25051 if (PyErr_Occurred()) SWIG_fail;
25052 }
25053 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
25054 return resultobj;
25055 fail:
25056 return NULL;
25057 }
25058
25059
25060 SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
25061 int argc;
25062 PyObject *argv[6];
25063
25064 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
25065 --argc;
25066 if (argc == 2) {
25067 int _v = 0;
25068 {
25069 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
25070 _v = SWIG_CheckState(res);
25071 }
25072 if (!_v) goto check_1;
25073 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
25074 }
25075 check_1:
25076
25077 if (argc == 2) {
25078 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
25079 }
25080 if (argc == 5) {
25081 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
25082 }
25083
25084 fail:
25085 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
25086 return NULL;
25087 }
25088
25089
25090 SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25091 PyObject *resultobj = 0;
25092 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
25093 void *argp1 = 0 ;
25094 int res1 = 0 ;
25095 PyObject *swig_obj[1] ;
25096
25097 if (!args) SWIG_fail;
25098 swig_obj[0] = args;
25099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
25100 if (!SWIG_IsOK(res1)) {
25101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
25102 }
25103 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
25104 {
25105 PyThreadState* __tstate = wxPyBeginAllowThreads();
25106 delete arg1;
25107
25108 wxPyEndAllowThreads(__tstate);
25109 if (PyErr_Occurred()) SWIG_fail;
25110 }
25111 resultobj = SWIG_Py_Void();
25112 return resultobj;
25113 fail:
25114 return NULL;
25115 }
25116
25117
25118 SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25119 PyObject *obj;
25120 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25121 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
25122 return SWIG_Py_Void();
25123 }
25124
25125 SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25126 return SWIG_Python_InitShadowInstance(args);
25127 }
25128
25129 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25130 PyObject *resultobj = 0;
25131 wxScreenDC *result = 0 ;
25132
25133 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
25134 {
25135 if (!wxPyCheckForApp()) SWIG_fail;
25136 PyThreadState* __tstate = wxPyBeginAllowThreads();
25137 result = (wxScreenDC *)new wxScreenDC();
25138 wxPyEndAllowThreads(__tstate);
25139 if (PyErr_Occurred()) SWIG_fail;
25140 }
25141 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
25142 return resultobj;
25143 fail:
25144 return NULL;
25145 }
25146
25147
25148 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25149 PyObject *resultobj = 0;
25150 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
25151 wxWindow *arg2 = (wxWindow *) 0 ;
25152 bool result;
25153 void *argp1 = 0 ;
25154 int res1 = 0 ;
25155 void *argp2 = 0 ;
25156 int res2 = 0 ;
25157 PyObject * obj0 = 0 ;
25158 PyObject * obj1 = 0 ;
25159 char * kwnames[] = {
25160 (char *) "self",(char *) "window", NULL
25161 };
25162
25163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
25164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
25165 if (!SWIG_IsOK(res1)) {
25166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
25167 }
25168 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
25169 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25170 if (!SWIG_IsOK(res2)) {
25171 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
25172 }
25173 arg2 = reinterpret_cast< wxWindow * >(argp2);
25174 {
25175 PyThreadState* __tstate = wxPyBeginAllowThreads();
25176 result = (bool)(arg1)->StartDrawingOnTop(arg2);
25177 wxPyEndAllowThreads(__tstate);
25178 if (PyErr_Occurred()) SWIG_fail;
25179 }
25180 {
25181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25182 }
25183 return resultobj;
25184 fail:
25185 return NULL;
25186 }
25187
25188
25189 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25190 PyObject *resultobj = 0;
25191 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
25192 wxRect *arg2 = (wxRect *) NULL ;
25193 bool result;
25194 void *argp1 = 0 ;
25195 int res1 = 0 ;
25196 void *argp2 = 0 ;
25197 int res2 = 0 ;
25198 PyObject * obj0 = 0 ;
25199 PyObject * obj1 = 0 ;
25200 char * kwnames[] = {
25201 (char *) "self",(char *) "rect", NULL
25202 };
25203
25204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
25205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
25206 if (!SWIG_IsOK(res1)) {
25207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
25208 }
25209 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
25210 if (obj1) {
25211 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
25212 if (!SWIG_IsOK(res2)) {
25213 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
25214 }
25215 arg2 = reinterpret_cast< wxRect * >(argp2);
25216 }
25217 {
25218 PyThreadState* __tstate = wxPyBeginAllowThreads();
25219 result = (bool)(arg1)->StartDrawingOnTop(arg2);
25220 wxPyEndAllowThreads(__tstate);
25221 if (PyErr_Occurred()) SWIG_fail;
25222 }
25223 {
25224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25225 }
25226 return resultobj;
25227 fail:
25228 return NULL;
25229 }
25230
25231
25232 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25233 PyObject *resultobj = 0;
25234 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
25235 bool result;
25236 void *argp1 = 0 ;
25237 int res1 = 0 ;
25238 PyObject *swig_obj[1] ;
25239
25240 if (!args) SWIG_fail;
25241 swig_obj[0] = args;
25242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
25243 if (!SWIG_IsOK(res1)) {
25244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
25245 }
25246 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
25247 {
25248 PyThreadState* __tstate = wxPyBeginAllowThreads();
25249 result = (bool)(arg1)->EndDrawingOnTop();
25250 wxPyEndAllowThreads(__tstate);
25251 if (PyErr_Occurred()) SWIG_fail;
25252 }
25253 {
25254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25255 }
25256 return resultobj;
25257 fail:
25258 return NULL;
25259 }
25260
25261
25262 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25263 PyObject *obj;
25264 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25265 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
25266 return SWIG_Py_Void();
25267 }
25268
25269 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25270 return SWIG_Python_InitShadowInstance(args);
25271 }
25272
25273 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25274 PyObject *resultobj = 0;
25275 wxWindow *arg1 = (wxWindow *) 0 ;
25276 wxWindowDC *result = 0 ;
25277 void *argp1 = 0 ;
25278 int res1 = 0 ;
25279 PyObject * obj0 = 0 ;
25280 char * kwnames[] = {
25281 (char *) "win", NULL
25282 };
25283
25284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
25285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25286 if (!SWIG_IsOK(res1)) {
25287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25288 }
25289 arg1 = reinterpret_cast< wxWindow * >(argp1);
25290 {
25291 if (!wxPyCheckForApp()) SWIG_fail;
25292 PyThreadState* __tstate = wxPyBeginAllowThreads();
25293 result = (wxWindowDC *)new wxWindowDC(arg1);
25294 wxPyEndAllowThreads(__tstate);
25295 if (PyErr_Occurred()) SWIG_fail;
25296 }
25297 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
25298 return resultobj;
25299 fail:
25300 return NULL;
25301 }
25302
25303
25304 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25305 PyObject *obj;
25306 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25307 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
25308 return SWIG_Py_Void();
25309 }
25310
25311 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25312 return SWIG_Python_InitShadowInstance(args);
25313 }
25314
25315 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25316 PyObject *resultobj = 0;
25317 wxWindow *arg1 = (wxWindow *) 0 ;
25318 wxClientDC *result = 0 ;
25319 void *argp1 = 0 ;
25320 int res1 = 0 ;
25321 PyObject * obj0 = 0 ;
25322 char * kwnames[] = {
25323 (char *) "win", NULL
25324 };
25325
25326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
25327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25328 if (!SWIG_IsOK(res1)) {
25329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25330 }
25331 arg1 = reinterpret_cast< wxWindow * >(argp1);
25332 {
25333 if (!wxPyCheckForApp()) SWIG_fail;
25334 PyThreadState* __tstate = wxPyBeginAllowThreads();
25335 result = (wxClientDC *)new wxClientDC(arg1);
25336 wxPyEndAllowThreads(__tstate);
25337 if (PyErr_Occurred()) SWIG_fail;
25338 }
25339 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
25340 return resultobj;
25341 fail:
25342 return NULL;
25343 }
25344
25345
25346 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25347 PyObject *obj;
25348 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25349 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
25350 return SWIG_Py_Void();
25351 }
25352
25353 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25354 return SWIG_Python_InitShadowInstance(args);
25355 }
25356
25357 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25358 PyObject *resultobj = 0;
25359 wxWindow *arg1 = (wxWindow *) 0 ;
25360 wxPaintDC *result = 0 ;
25361 void *argp1 = 0 ;
25362 int res1 = 0 ;
25363 PyObject * obj0 = 0 ;
25364 char * kwnames[] = {
25365 (char *) "win", NULL
25366 };
25367
25368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
25369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25370 if (!SWIG_IsOK(res1)) {
25371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25372 }
25373 arg1 = reinterpret_cast< wxWindow * >(argp1);
25374 {
25375 if (!wxPyCheckForApp()) SWIG_fail;
25376 PyThreadState* __tstate = wxPyBeginAllowThreads();
25377 result = (wxPaintDC *)new wxPaintDC(arg1);
25378 wxPyEndAllowThreads(__tstate);
25379 if (PyErr_Occurred()) SWIG_fail;
25380 }
25381 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
25382 return resultobj;
25383 fail:
25384 return NULL;
25385 }
25386
25387
25388 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25389 PyObject *obj;
25390 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25391 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
25392 return SWIG_Py_Void();
25393 }
25394
25395 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25396 return SWIG_Python_InitShadowInstance(args);
25397 }
25398
25399 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25400 PyObject *resultobj = 0;
25401 wxBitmap &arg1_defvalue = wxNullBitmap ;
25402 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25403 wxMemoryDC *result = 0 ;
25404 void *argp1 = 0 ;
25405 int res1 = 0 ;
25406 PyObject * obj0 = 0 ;
25407 char * kwnames[] = {
25408 (char *) "bitmap", NULL
25409 };
25410
25411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
25412 if (obj0) {
25413 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
25414 if (!SWIG_IsOK(res1)) {
25415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
25416 }
25417 if (!argp1) {
25418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
25419 }
25420 arg1 = reinterpret_cast< wxBitmap * >(argp1);
25421 }
25422 {
25423 if (!wxPyCheckForApp()) SWIG_fail;
25424 PyThreadState* __tstate = wxPyBeginAllowThreads();
25425 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
25426 wxPyEndAllowThreads(__tstate);
25427 if (PyErr_Occurred()) SWIG_fail;
25428 }
25429 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
25430 return resultobj;
25431 fail:
25432 return NULL;
25433 }
25434
25435
25436 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25437 PyObject *resultobj = 0;
25438 wxDC *arg1 = (wxDC *) 0 ;
25439 wxMemoryDC *result = 0 ;
25440 void *argp1 = 0 ;
25441 int res1 = 0 ;
25442 PyObject * obj0 = 0 ;
25443 char * kwnames[] = {
25444 (char *) "oldDC", NULL
25445 };
25446
25447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
25448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
25449 if (!SWIG_IsOK(res1)) {
25450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
25451 }
25452 arg1 = reinterpret_cast< wxDC * >(argp1);
25453 {
25454 if (!wxPyCheckForApp()) SWIG_fail;
25455 PyThreadState* __tstate = wxPyBeginAllowThreads();
25456 result = (wxMemoryDC *)new wxMemoryDC(arg1);
25457 wxPyEndAllowThreads(__tstate);
25458 if (PyErr_Occurred()) SWIG_fail;
25459 }
25460 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
25461 return resultobj;
25462 fail:
25463 return NULL;
25464 }
25465
25466
25467 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25468 PyObject *resultobj = 0;
25469 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
25470 wxBitmap *arg2 = 0 ;
25471 void *argp1 = 0 ;
25472 int res1 = 0 ;
25473 void *argp2 = 0 ;
25474 int res2 = 0 ;
25475 PyObject * obj0 = 0 ;
25476 PyObject * obj1 = 0 ;
25477 char * kwnames[] = {
25478 (char *) "self",(char *) "bitmap", NULL
25479 };
25480
25481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
25482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
25483 if (!SWIG_IsOK(res1)) {
25484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
25485 }
25486 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
25487 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
25488 if (!SWIG_IsOK(res2)) {
25489 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
25490 }
25491 if (!argp2) {
25492 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
25493 }
25494 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25495 {
25496 PyThreadState* __tstate = wxPyBeginAllowThreads();
25497 (arg1)->SelectObject(*arg2);
25498 wxPyEndAllowThreads(__tstate);
25499 if (PyErr_Occurred()) SWIG_fail;
25500 }
25501 resultobj = SWIG_Py_Void();
25502 return resultobj;
25503 fail:
25504 return NULL;
25505 }
25506
25507
25508 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25509 PyObject *resultobj = 0;
25510 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
25511 wxBitmap *arg2 = 0 ;
25512 void *argp1 = 0 ;
25513 int res1 = 0 ;
25514 void *argp2 = 0 ;
25515 int res2 = 0 ;
25516 PyObject * obj0 = 0 ;
25517 PyObject * obj1 = 0 ;
25518 char * kwnames[] = {
25519 (char *) "self",(char *) "bmp", NULL
25520 };
25521
25522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
25523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
25524 if (!SWIG_IsOK(res1)) {
25525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
25526 }
25527 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
25528 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
25529 if (!SWIG_IsOK(res2)) {
25530 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25531 }
25532 if (!argp2) {
25533 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25534 }
25535 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25536 {
25537 PyThreadState* __tstate = wxPyBeginAllowThreads();
25538 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
25539 wxPyEndAllowThreads(__tstate);
25540 if (PyErr_Occurred()) SWIG_fail;
25541 }
25542 resultobj = SWIG_Py_Void();
25543 return resultobj;
25544 fail:
25545 return NULL;
25546 }
25547
25548
25549 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25550 PyObject *obj;
25551 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25552 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
25553 return SWIG_Py_Void();
25554 }
25555
25556 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25557 return SWIG_Python_InitShadowInstance(args);
25558 }
25559
25560 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25561 PyObject *resultobj = 0;
25562 wxDC *arg1 = (wxDC *) 0 ;
25563 wxBitmap &arg2_defvalue = wxNullBitmap ;
25564 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25565 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25566 wxBufferedDC *result = 0 ;
25567 void *argp1 = 0 ;
25568 int res1 = 0 ;
25569 void *argp2 = 0 ;
25570 int res2 = 0 ;
25571 int val3 ;
25572 int ecode3 = 0 ;
25573
25574 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
25575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
25576 if (!SWIG_IsOK(res1)) {
25577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
25578 }
25579 arg1 = reinterpret_cast< wxDC * >(argp1);
25580 if (swig_obj[1]) {
25581 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
25582 if (!SWIG_IsOK(res2)) {
25583 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25584 }
25585 if (!argp2) {
25586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25587 }
25588 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25589 }
25590 if (swig_obj[2]) {
25591 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
25592 if (!SWIG_IsOK(ecode3)) {
25593 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
25594 }
25595 arg3 = static_cast< int >(val3);
25596 }
25597 {
25598 if (!wxPyCheckForApp()) SWIG_fail;
25599 PyThreadState* __tstate = wxPyBeginAllowThreads();
25600 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
25601 wxPyEndAllowThreads(__tstate);
25602 if (PyErr_Occurred()) SWIG_fail;
25603 }
25604 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
25605 return resultobj;
25606 fail:
25607 return NULL;
25608 }
25609
25610
25611 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25612 PyObject *resultobj = 0;
25613 wxDC *arg1 = (wxDC *) 0 ;
25614 wxSize *arg2 = 0 ;
25615 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25616 wxBufferedDC *result = 0 ;
25617 void *argp1 = 0 ;
25618 int res1 = 0 ;
25619 wxSize temp2 ;
25620 int val3 ;
25621 int ecode3 = 0 ;
25622
25623 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
25624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
25625 if (!SWIG_IsOK(res1)) {
25626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
25627 }
25628 arg1 = reinterpret_cast< wxDC * >(argp1);
25629 {
25630 arg2 = &temp2;
25631 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
25632 }
25633 if (swig_obj[2]) {
25634 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
25635 if (!SWIG_IsOK(ecode3)) {
25636 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
25637 }
25638 arg3 = static_cast< int >(val3);
25639 }
25640 {
25641 if (!wxPyCheckForApp()) SWIG_fail;
25642 PyThreadState* __tstate = wxPyBeginAllowThreads();
25643 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
25644 wxPyEndAllowThreads(__tstate);
25645 if (PyErr_Occurred()) SWIG_fail;
25646 }
25647 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
25648 return resultobj;
25649 fail:
25650 return NULL;
25651 }
25652
25653
25654 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
25655 int argc;
25656 PyObject *argv[4];
25657
25658 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
25659 --argc;
25660 if ((argc >= 1) && (argc <= 3)) {
25661 int _v = 0;
25662 if (argc > 1) {
25663 {
25664 void *vptr = 0;
25665 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
25666 _v = SWIG_CheckState(res);
25667 }
25668 if (!_v) goto check_1;
25669 }
25670 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
25671 }
25672 check_1:
25673
25674 if ((argc >= 2) && (argc <= 3)) {
25675 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
25676 }
25677
25678 fail:
25679 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
25680 return NULL;
25681 }
25682
25683
25684 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25685 PyObject *resultobj = 0;
25686 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25687 void *argp1 = 0 ;
25688 int res1 = 0 ;
25689 PyObject *swig_obj[1] ;
25690
25691 if (!args) SWIG_fail;
25692 swig_obj[0] = args;
25693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
25694 if (!SWIG_IsOK(res1)) {
25695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25696 }
25697 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25698 {
25699 PyThreadState* __tstate = wxPyBeginAllowThreads();
25700 delete arg1;
25701
25702 wxPyEndAllowThreads(__tstate);
25703 if (PyErr_Occurred()) SWIG_fail;
25704 }
25705 resultobj = SWIG_Py_Void();
25706 return resultobj;
25707 fail:
25708 return NULL;
25709 }
25710
25711
25712 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25713 PyObject *resultobj = 0;
25714 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25715 void *argp1 = 0 ;
25716 int res1 = 0 ;
25717 PyObject *swig_obj[1] ;
25718
25719 if (!args) SWIG_fail;
25720 swig_obj[0] = args;
25721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25722 if (!SWIG_IsOK(res1)) {
25723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25724 }
25725 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25726 {
25727 PyThreadState* __tstate = wxPyBeginAllowThreads();
25728 (arg1)->UnMask();
25729 wxPyEndAllowThreads(__tstate);
25730 if (PyErr_Occurred()) SWIG_fail;
25731 }
25732 resultobj = SWIG_Py_Void();
25733 return resultobj;
25734 fail:
25735 return NULL;
25736 }
25737
25738
25739 SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25740 PyObject *resultobj = 0;
25741 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25742 int arg2 ;
25743 void *argp1 = 0 ;
25744 int res1 = 0 ;
25745 int val2 ;
25746 int ecode2 = 0 ;
25747 PyObject * obj0 = 0 ;
25748 PyObject * obj1 = 0 ;
25749 char * kwnames[] = {
25750 (char *) "self",(char *) "style", NULL
25751 };
25752
25753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
25754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25755 if (!SWIG_IsOK(res1)) {
25756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
25757 }
25758 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25759 ecode2 = SWIG_AsVal_int(obj1, &val2);
25760 if (!SWIG_IsOK(ecode2)) {
25761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
25762 }
25763 arg2 = static_cast< int >(val2);
25764 {
25765 PyThreadState* __tstate = wxPyBeginAllowThreads();
25766 (arg1)->SetStyle(arg2);
25767 wxPyEndAllowThreads(__tstate);
25768 if (PyErr_Occurred()) SWIG_fail;
25769 }
25770 resultobj = SWIG_Py_Void();
25771 return resultobj;
25772 fail:
25773 return NULL;
25774 }
25775
25776
25777 SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25778 PyObject *resultobj = 0;
25779 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
25780 int result;
25781 void *argp1 = 0 ;
25782 int res1 = 0 ;
25783 PyObject *swig_obj[1] ;
25784
25785 if (!args) SWIG_fail;
25786 swig_obj[0] = args;
25787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
25788 if (!SWIG_IsOK(res1)) {
25789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
25790 }
25791 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
25792 {
25793 PyThreadState* __tstate = wxPyBeginAllowThreads();
25794 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
25795 wxPyEndAllowThreads(__tstate);
25796 if (PyErr_Occurred()) SWIG_fail;
25797 }
25798 resultobj = SWIG_From_int(static_cast< int >(result));
25799 return resultobj;
25800 fail:
25801 return NULL;
25802 }
25803
25804
25805 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25806 PyObject *obj;
25807 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25808 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
25809 return SWIG_Py_Void();
25810 }
25811
25812 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25813 return SWIG_Python_InitShadowInstance(args);
25814 }
25815
25816 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25817 PyObject *resultobj = 0;
25818 wxWindow *arg1 = (wxWindow *) 0 ;
25819 wxBitmap &arg2_defvalue = wxNullBitmap ;
25820 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
25821 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
25822 wxBufferedPaintDC *result = 0 ;
25823 void *argp1 = 0 ;
25824 int res1 = 0 ;
25825 void *argp2 = 0 ;
25826 int res2 = 0 ;
25827 int val3 ;
25828 int ecode3 = 0 ;
25829 PyObject * obj0 = 0 ;
25830 PyObject * obj1 = 0 ;
25831 PyObject * obj2 = 0 ;
25832 char * kwnames[] = {
25833 (char *) "window",(char *) "buffer",(char *) "style", NULL
25834 };
25835
25836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25838 if (!SWIG_IsOK(res1)) {
25839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25840 }
25841 arg1 = reinterpret_cast< wxWindow * >(argp1);
25842 if (obj1) {
25843 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
25844 if (!SWIG_IsOK(res2)) {
25845 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25846 }
25847 if (!argp2) {
25848 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
25849 }
25850 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25851 }
25852 if (obj2) {
25853 ecode3 = SWIG_AsVal_int(obj2, &val3);
25854 if (!SWIG_IsOK(ecode3)) {
25855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
25856 }
25857 arg3 = static_cast< int >(val3);
25858 }
25859 {
25860 if (!wxPyCheckForApp()) SWIG_fail;
25861 PyThreadState* __tstate = wxPyBeginAllowThreads();
25862 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
25863 wxPyEndAllowThreads(__tstate);
25864 if (PyErr_Occurred()) SWIG_fail;
25865 }
25866 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25867 return resultobj;
25868 fail:
25869 return NULL;
25870 }
25871
25872
25873 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25874 PyObject *obj;
25875 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25876 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
25877 return SWIG_Py_Void();
25878 }
25879
25880 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25881 return SWIG_Python_InitShadowInstance(args);
25882 }
25883
25884 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25885 PyObject *resultobj = 0;
25886 wxWindow *arg1 = (wxWindow *) 0 ;
25887 wxAutoBufferedPaintDC *result = 0 ;
25888 void *argp1 = 0 ;
25889 int res1 = 0 ;
25890 PyObject * obj0 = 0 ;
25891 char * kwnames[] = {
25892 (char *) "win", NULL
25893 };
25894
25895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
25896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25897 if (!SWIG_IsOK(res1)) {
25898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
25899 }
25900 arg1 = reinterpret_cast< wxWindow * >(argp1);
25901 {
25902 PyThreadState* __tstate = wxPyBeginAllowThreads();
25903 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
25904 wxPyEndAllowThreads(__tstate);
25905 if (PyErr_Occurred()) SWIG_fail;
25906 }
25907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
25908 return resultobj;
25909 fail:
25910 return NULL;
25911 }
25912
25913
25914 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25915 PyObject *obj;
25916 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25917 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
25918 return SWIG_Py_Void();
25919 }
25920
25921 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25922 return SWIG_Python_InitShadowInstance(args);
25923 }
25924
25925 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25926 PyObject *resultobj = 0;
25927 wxWindow *arg1 = (wxWindow *) 0 ;
25928 wxDC *result = 0 ;
25929 void *argp1 = 0 ;
25930 int res1 = 0 ;
25931 PyObject * obj0 = 0 ;
25932 char * kwnames[] = {
25933 (char *) "window", NULL
25934 };
25935
25936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
25937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25938 if (!SWIG_IsOK(res1)) {
25939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
25940 }
25941 arg1 = reinterpret_cast< wxWindow * >(argp1);
25942 {
25943 PyThreadState* __tstate = wxPyBeginAllowThreads();
25944 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
25945 wxPyEndAllowThreads(__tstate);
25946 if (PyErr_Occurred()) SWIG_fail;
25947 }
25948 {
25949 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
25950 }
25951 return resultobj;
25952 fail:
25953 return NULL;
25954 }
25955
25956
25957 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25958 PyObject *resultobj = 0;
25959 wxDC *arg1 = 0 ;
25960 bool arg2 ;
25961 wxMirrorDC *result = 0 ;
25962 void *argp1 = 0 ;
25963 int res1 = 0 ;
25964 bool val2 ;
25965 int ecode2 = 0 ;
25966 PyObject * obj0 = 0 ;
25967 PyObject * obj1 = 0 ;
25968 char * kwnames[] = {
25969 (char *) "dc",(char *) "mirror", NULL
25970 };
25971
25972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
25973 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
25974 if (!SWIG_IsOK(res1)) {
25975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25976 }
25977 if (!argp1) {
25978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
25979 }
25980 arg1 = reinterpret_cast< wxDC * >(argp1);
25981 ecode2 = SWIG_AsVal_bool(obj1, &val2);
25982 if (!SWIG_IsOK(ecode2)) {
25983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
25984 }
25985 arg2 = static_cast< bool >(val2);
25986 {
25987 if (!wxPyCheckForApp()) SWIG_fail;
25988 PyThreadState* __tstate = wxPyBeginAllowThreads();
25989 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
25990 wxPyEndAllowThreads(__tstate);
25991 if (PyErr_Occurred()) SWIG_fail;
25992 }
25993 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
25994 return resultobj;
25995 fail:
25996 return NULL;
25997 }
25998
25999
26000 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26001 PyObject *obj;
26002 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26003 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
26004 return SWIG_Py_Void();
26005 }
26006
26007 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26008 return SWIG_Python_InitShadowInstance(args);
26009 }
26010
26011 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26012 PyObject *resultobj = 0;
26013 wxPrintData *arg1 = 0 ;
26014 wxPostScriptDC *result = 0 ;
26015 void *argp1 = 0 ;
26016 int res1 = 0 ;
26017 PyObject * obj0 = 0 ;
26018 char * kwnames[] = {
26019 (char *) "printData", NULL
26020 };
26021
26022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
26023 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
26024 if (!SWIG_IsOK(res1)) {
26025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26026 }
26027 if (!argp1) {
26028 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26029 }
26030 arg1 = reinterpret_cast< wxPrintData * >(argp1);
26031 {
26032 if (!wxPyCheckForApp()) SWIG_fail;
26033 PyThreadState* __tstate = wxPyBeginAllowThreads();
26034 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
26035 wxPyEndAllowThreads(__tstate);
26036 if (PyErr_Occurred()) SWIG_fail;
26037 }
26038 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
26039 return resultobj;
26040 fail:
26041 return NULL;
26042 }
26043
26044
26045 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26046 PyObject *resultobj = 0;
26047 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
26048 wxPrintData *result = 0 ;
26049 void *argp1 = 0 ;
26050 int res1 = 0 ;
26051 PyObject *swig_obj[1] ;
26052
26053 if (!args) SWIG_fail;
26054 swig_obj[0] = args;
26055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
26056 if (!SWIG_IsOK(res1)) {
26057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
26058 }
26059 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
26060 {
26061 PyThreadState* __tstate = wxPyBeginAllowThreads();
26062 {
26063 wxPrintData &_result_ref = (arg1)->GetPrintData();
26064 result = (wxPrintData *) &_result_ref;
26065 }
26066 wxPyEndAllowThreads(__tstate);
26067 if (PyErr_Occurred()) SWIG_fail;
26068 }
26069 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
26070 return resultobj;
26071 fail:
26072 return NULL;
26073 }
26074
26075
26076 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26077 PyObject *resultobj = 0;
26078 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
26079 wxPrintData *arg2 = 0 ;
26080 void *argp1 = 0 ;
26081 int res1 = 0 ;
26082 void *argp2 = 0 ;
26083 int res2 = 0 ;
26084 PyObject * obj0 = 0 ;
26085 PyObject * obj1 = 0 ;
26086 char * kwnames[] = {
26087 (char *) "self",(char *) "data", NULL
26088 };
26089
26090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
26091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
26092 if (!SWIG_IsOK(res1)) {
26093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
26094 }
26095 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
26096 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
26097 if (!SWIG_IsOK(res2)) {
26098 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
26099 }
26100 if (!argp2) {
26101 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
26102 }
26103 arg2 = reinterpret_cast< wxPrintData * >(argp2);
26104 {
26105 PyThreadState* __tstate = wxPyBeginAllowThreads();
26106 (arg1)->SetPrintData((wxPrintData const &)*arg2);
26107 wxPyEndAllowThreads(__tstate);
26108 if (PyErr_Occurred()) SWIG_fail;
26109 }
26110 resultobj = SWIG_Py_Void();
26111 return resultobj;
26112 fail:
26113 return NULL;
26114 }
26115
26116
26117 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26118 PyObject *resultobj = 0;
26119 int arg1 ;
26120 int val1 ;
26121 int ecode1 = 0 ;
26122 PyObject * obj0 = 0 ;
26123 char * kwnames[] = {
26124 (char *) "ppi", NULL
26125 };
26126
26127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
26128 ecode1 = SWIG_AsVal_int(obj0, &val1);
26129 if (!SWIG_IsOK(ecode1)) {
26130 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
26131 }
26132 arg1 = static_cast< int >(val1);
26133 {
26134 PyThreadState* __tstate = wxPyBeginAllowThreads();
26135 wxPostScriptDC::SetResolution(arg1);
26136 wxPyEndAllowThreads(__tstate);
26137 if (PyErr_Occurred()) SWIG_fail;
26138 }
26139 resultobj = SWIG_Py_Void();
26140 return resultobj;
26141 fail:
26142 return NULL;
26143 }
26144
26145
26146 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26147 PyObject *resultobj = 0;
26148 int result;
26149
26150 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
26151 {
26152 PyThreadState* __tstate = wxPyBeginAllowThreads();
26153 result = (int)wxPostScriptDC::GetResolution();
26154 wxPyEndAllowThreads(__tstate);
26155 if (PyErr_Occurred()) SWIG_fail;
26156 }
26157 resultobj = SWIG_From_int(static_cast< int >(result));
26158 return resultobj;
26159 fail:
26160 return NULL;
26161 }
26162
26163
26164 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26165 PyObject *obj;
26166 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26167 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
26168 return SWIG_Py_Void();
26169 }
26170
26171 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26172 return SWIG_Python_InitShadowInstance(args);
26173 }
26174
26175 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26176 PyObject *resultobj = 0;
26177 wxString const &arg1_defvalue = wxPyEmptyString ;
26178 wxString *arg1 = (wxString *) &arg1_defvalue ;
26179 wxMetaFile *result = 0 ;
26180 bool temp1 = false ;
26181 PyObject * obj0 = 0 ;
26182 char * kwnames[] = {
26183 (char *) "filename", NULL
26184 };
26185
26186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
26187 if (obj0) {
26188 {
26189 arg1 = wxString_in_helper(obj0);
26190 if (arg1 == NULL) SWIG_fail;
26191 temp1 = true;
26192 }
26193 }
26194 {
26195 if (!wxPyCheckForApp()) SWIG_fail;
26196 PyThreadState* __tstate = wxPyBeginAllowThreads();
26197 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
26198 wxPyEndAllowThreads(__tstate);
26199 if (PyErr_Occurred()) SWIG_fail;
26200 }
26201 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
26202 {
26203 if (temp1)
26204 delete arg1;
26205 }
26206 return resultobj;
26207 fail:
26208 {
26209 if (temp1)
26210 delete arg1;
26211 }
26212 return NULL;
26213 }
26214
26215
26216 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26217 PyObject *resultobj = 0;
26218 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
26219 void *argp1 = 0 ;
26220 int res1 = 0 ;
26221 PyObject *swig_obj[1] ;
26222
26223 if (!args) SWIG_fail;
26224 swig_obj[0] = args;
26225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
26226 if (!SWIG_IsOK(res1)) {
26227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
26228 }
26229 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
26230 {
26231 PyThreadState* __tstate = wxPyBeginAllowThreads();
26232 delete arg1;
26233
26234 wxPyEndAllowThreads(__tstate);
26235 if (PyErr_Occurred()) SWIG_fail;
26236 }
26237 resultobj = SWIG_Py_Void();
26238 return resultobj;
26239 fail:
26240 return NULL;
26241 }
26242
26243
26244 SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26245 PyObject *resultobj = 0;
26246 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
26247 bool result;
26248 void *argp1 = 0 ;
26249 int res1 = 0 ;
26250 PyObject *swig_obj[1] ;
26251
26252 if (!args) SWIG_fail;
26253 swig_obj[0] = args;
26254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
26255 if (!SWIG_IsOK(res1)) {
26256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
26257 }
26258 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
26259 {
26260 PyThreadState* __tstate = wxPyBeginAllowThreads();
26261 result = (bool)(arg1)->IsOk();
26262 wxPyEndAllowThreads(__tstate);
26263 if (PyErr_Occurred()) SWIG_fail;
26264 }
26265 {
26266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26267 }
26268 return resultobj;
26269 fail:
26270 return NULL;
26271 }
26272
26273
26274 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26275 PyObject *resultobj = 0;
26276 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
26277 int arg2 = (int) 0 ;
26278 int arg3 = (int) 0 ;
26279 bool result;
26280 void *argp1 = 0 ;
26281 int res1 = 0 ;
26282 int val2 ;
26283 int ecode2 = 0 ;
26284 int val3 ;
26285 int ecode3 = 0 ;
26286 PyObject * obj0 = 0 ;
26287 PyObject * obj1 = 0 ;
26288 PyObject * obj2 = 0 ;
26289 char * kwnames[] = {
26290 (char *) "self",(char *) "width",(char *) "height", NULL
26291 };
26292
26293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
26295 if (!SWIG_IsOK(res1)) {
26296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
26297 }
26298 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
26299 if (obj1) {
26300 ecode2 = SWIG_AsVal_int(obj1, &val2);
26301 if (!SWIG_IsOK(ecode2)) {
26302 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
26303 }
26304 arg2 = static_cast< int >(val2);
26305 }
26306 if (obj2) {
26307 ecode3 = SWIG_AsVal_int(obj2, &val3);
26308 if (!SWIG_IsOK(ecode3)) {
26309 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
26310 }
26311 arg3 = static_cast< int >(val3);
26312 }
26313 {
26314 PyThreadState* __tstate = wxPyBeginAllowThreads();
26315 result = (bool)(arg1)->SetClipboard(arg2,arg3);
26316 wxPyEndAllowThreads(__tstate);
26317 if (PyErr_Occurred()) SWIG_fail;
26318 }
26319 {
26320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26321 }
26322 return resultobj;
26323 fail:
26324 return NULL;
26325 }
26326
26327
26328 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26329 PyObject *resultobj = 0;
26330 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
26331 wxSize result;
26332 void *argp1 = 0 ;
26333 int res1 = 0 ;
26334 PyObject *swig_obj[1] ;
26335
26336 if (!args) SWIG_fail;
26337 swig_obj[0] = args;
26338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
26339 if (!SWIG_IsOK(res1)) {
26340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
26341 }
26342 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
26343 {
26344 PyThreadState* __tstate = wxPyBeginAllowThreads();
26345 result = (arg1)->GetSize();
26346 wxPyEndAllowThreads(__tstate);
26347 if (PyErr_Occurred()) SWIG_fail;
26348 }
26349 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
26350 return resultobj;
26351 fail:
26352 return NULL;
26353 }
26354
26355
26356 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26357 PyObject *resultobj = 0;
26358 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
26359 int result;
26360 void *argp1 = 0 ;
26361 int res1 = 0 ;
26362 PyObject *swig_obj[1] ;
26363
26364 if (!args) SWIG_fail;
26365 swig_obj[0] = args;
26366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
26367 if (!SWIG_IsOK(res1)) {
26368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
26369 }
26370 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
26371 {
26372 PyThreadState* __tstate = wxPyBeginAllowThreads();
26373 result = (int)(arg1)->GetWidth();
26374 wxPyEndAllowThreads(__tstate);
26375 if (PyErr_Occurred()) SWIG_fail;
26376 }
26377 resultobj = SWIG_From_int(static_cast< int >(result));
26378 return resultobj;
26379 fail:
26380 return NULL;
26381 }
26382
26383
26384 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26385 PyObject *resultobj = 0;
26386 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
26387 int result;
26388 void *argp1 = 0 ;
26389 int res1 = 0 ;
26390 PyObject *swig_obj[1] ;
26391
26392 if (!args) SWIG_fail;
26393 swig_obj[0] = args;
26394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
26395 if (!SWIG_IsOK(res1)) {
26396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
26397 }
26398 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
26399 {
26400 PyThreadState* __tstate = wxPyBeginAllowThreads();
26401 result = (int)(arg1)->GetHeight();
26402 wxPyEndAllowThreads(__tstate);
26403 if (PyErr_Occurred()) SWIG_fail;
26404 }
26405 resultobj = SWIG_From_int(static_cast< int >(result));
26406 return resultobj;
26407 fail:
26408 return NULL;
26409 }
26410
26411
26412 SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26413 PyObject *resultobj = 0;
26414 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
26415 wxString *result = 0 ;
26416 void *argp1 = 0 ;
26417 int res1 = 0 ;
26418 PyObject *swig_obj[1] ;
26419
26420 if (!args) SWIG_fail;
26421 swig_obj[0] = args;
26422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
26423 if (!SWIG_IsOK(res1)) {
26424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
26425 }
26426 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
26427 {
26428 PyThreadState* __tstate = wxPyBeginAllowThreads();
26429 {
26430 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
26431 result = (wxString *) &_result_ref;
26432 }
26433 wxPyEndAllowThreads(__tstate);
26434 if (PyErr_Occurred()) SWIG_fail;
26435 }
26436 {
26437 #if wxUSE_UNICODE
26438 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
26439 #else
26440 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
26441 #endif
26442 }
26443 return resultobj;
26444 fail:
26445 return NULL;
26446 }
26447
26448
26449 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26450 PyObject *obj;
26451 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26452 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
26453 return SWIG_Py_Void();
26454 }
26455
26456 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26457 return SWIG_Python_InitShadowInstance(args);
26458 }
26459
26460 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26461 PyObject *resultobj = 0;
26462 wxString const &arg1_defvalue = wxPyEmptyString ;
26463 wxString *arg1 = (wxString *) &arg1_defvalue ;
26464 int arg2 = (int) 0 ;
26465 int arg3 = (int) 0 ;
26466 wxString const &arg4_defvalue = wxPyEmptyString ;
26467 wxString *arg4 = (wxString *) &arg4_defvalue ;
26468 wxMetaFileDC *result = 0 ;
26469 bool temp1 = false ;
26470 int val2 ;
26471 int ecode2 = 0 ;
26472 int val3 ;
26473 int ecode3 = 0 ;
26474 bool temp4 = false ;
26475 PyObject * obj0 = 0 ;
26476 PyObject * obj1 = 0 ;
26477 PyObject * obj2 = 0 ;
26478 PyObject * obj3 = 0 ;
26479 char * kwnames[] = {
26480 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
26481 };
26482
26483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26484 if (obj0) {
26485 {
26486 arg1 = wxString_in_helper(obj0);
26487 if (arg1 == NULL) SWIG_fail;
26488 temp1 = true;
26489 }
26490 }
26491 if (obj1) {
26492 ecode2 = SWIG_AsVal_int(obj1, &val2);
26493 if (!SWIG_IsOK(ecode2)) {
26494 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
26495 }
26496 arg2 = static_cast< int >(val2);
26497 }
26498 if (obj2) {
26499 ecode3 = SWIG_AsVal_int(obj2, &val3);
26500 if (!SWIG_IsOK(ecode3)) {
26501 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
26502 }
26503 arg3 = static_cast< int >(val3);
26504 }
26505 if (obj3) {
26506 {
26507 arg4 = wxString_in_helper(obj3);
26508 if (arg4 == NULL) SWIG_fail;
26509 temp4 = true;
26510 }
26511 }
26512 {
26513 if (!wxPyCheckForApp()) SWIG_fail;
26514 PyThreadState* __tstate = wxPyBeginAllowThreads();
26515 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
26516 wxPyEndAllowThreads(__tstate);
26517 if (PyErr_Occurred()) SWIG_fail;
26518 }
26519 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
26520 {
26521 if (temp1)
26522 delete arg1;
26523 }
26524 {
26525 if (temp4)
26526 delete arg4;
26527 }
26528 return resultobj;
26529 fail:
26530 {
26531 if (temp1)
26532 delete arg1;
26533 }
26534 {
26535 if (temp4)
26536 delete arg4;
26537 }
26538 return NULL;
26539 }
26540
26541
26542 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26543 PyObject *resultobj = 0;
26544 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
26545 wxMetaFile *result = 0 ;
26546 void *argp1 = 0 ;
26547 int res1 = 0 ;
26548 PyObject *swig_obj[1] ;
26549
26550 if (!args) SWIG_fail;
26551 swig_obj[0] = args;
26552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
26553 if (!SWIG_IsOK(res1)) {
26554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
26555 }
26556 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
26557 {
26558 PyThreadState* __tstate = wxPyBeginAllowThreads();
26559 result = (wxMetaFile *)(arg1)->Close();
26560 wxPyEndAllowThreads(__tstate);
26561 if (PyErr_Occurred()) SWIG_fail;
26562 }
26563 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
26564 return resultobj;
26565 fail:
26566 return NULL;
26567 }
26568
26569
26570 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26571 PyObject *obj;
26572 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26573 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
26574 return SWIG_Py_Void();
26575 }
26576
26577 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26578 return SWIG_Python_InitShadowInstance(args);
26579 }
26580
26581 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26582 PyObject *resultobj = 0;
26583 wxPrintData *arg1 = 0 ;
26584 wxPrinterDC *result = 0 ;
26585 void *argp1 = 0 ;
26586 int res1 = 0 ;
26587 PyObject * obj0 = 0 ;
26588 char * kwnames[] = {
26589 (char *) "printData", NULL
26590 };
26591
26592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
26593 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
26594 if (!SWIG_IsOK(res1)) {
26595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26596 }
26597 if (!argp1) {
26598 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
26599 }
26600 arg1 = reinterpret_cast< wxPrintData * >(argp1);
26601 {
26602 if (!wxPyCheckForApp()) SWIG_fail;
26603 PyThreadState* __tstate = wxPyBeginAllowThreads();
26604 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
26605 wxPyEndAllowThreads(__tstate);
26606 if (PyErr_Occurred()) SWIG_fail;
26607 }
26608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
26609 return resultobj;
26610 fail:
26611 return NULL;
26612 }
26613
26614
26615 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26616 PyObject *obj;
26617 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26618 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
26619 return SWIG_Py_Void();
26620 }
26621
26622 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26623 return SWIG_Python_InitShadowInstance(args);
26624 }
26625
26626 SWIGINTERN PyObject *SVGFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26627 PyObject *obj;
26628 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26629 SWIG_TypeNewClientData(SWIGTYPE_p_wxSVGFileDC, SWIG_NewClientData(obj));
26630 return SWIG_Py_Void();
26631 }
26632
26633 SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26634 PyObject *resultobj = 0;
26635 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
26636 wxGraphicsObject *result = 0 ;
26637 void *argp1 = 0 ;
26638 int res1 = 0 ;
26639 PyObject * obj0 = 0 ;
26640 char * kwnames[] = {
26641 (char *) "renderer", NULL
26642 };
26643
26644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
26645 if (obj0) {
26646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
26647 if (!SWIG_IsOK(res1)) {
26648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
26649 }
26650 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
26651 }
26652 {
26653 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
26654 if (PyErr_Occurred()) SWIG_fail;
26655 }
26656 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
26657 return resultobj;
26658 fail:
26659 return NULL;
26660 }
26661
26662
26663 SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26664 PyObject *resultobj = 0;
26665 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26666 void *argp1 = 0 ;
26667 int res1 = 0 ;
26668 PyObject *swig_obj[1] ;
26669
26670 if (!args) SWIG_fail;
26671 swig_obj[0] = args;
26672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
26673 if (!SWIG_IsOK(res1)) {
26674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
26675 }
26676 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26677 {
26678 delete arg1;
26679
26680 if (PyErr_Occurred()) SWIG_fail;
26681 }
26682 resultobj = SWIG_Py_Void();
26683 return resultobj;
26684 fail:
26685 return NULL;
26686 }
26687
26688
26689 SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26690 PyObject *resultobj = 0;
26691 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26692 bool result;
26693 void *argp1 = 0 ;
26694 int res1 = 0 ;
26695 PyObject *swig_obj[1] ;
26696
26697 if (!args) SWIG_fail;
26698 swig_obj[0] = args;
26699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
26700 if (!SWIG_IsOK(res1)) {
26701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
26702 }
26703 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26704 {
26705 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
26706 if (PyErr_Occurred()) SWIG_fail;
26707 }
26708 {
26709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26710 }
26711 return resultobj;
26712 fail:
26713 return NULL;
26714 }
26715
26716
26717 SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26718 PyObject *resultobj = 0;
26719 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
26720 wxGraphicsRenderer *result = 0 ;
26721 void *argp1 = 0 ;
26722 int res1 = 0 ;
26723 PyObject *swig_obj[1] ;
26724
26725 if (!args) SWIG_fail;
26726 swig_obj[0] = args;
26727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
26728 if (!SWIG_IsOK(res1)) {
26729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
26730 }
26731 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
26732 {
26733 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
26734 if (PyErr_Occurred()) SWIG_fail;
26735 }
26736 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
26737 return resultobj;
26738 fail:
26739 return NULL;
26740 }
26741
26742
26743 SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26744 PyObject *obj;
26745 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26746 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
26747 return SWIG_Py_Void();
26748 }
26749
26750 SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26751 return SWIG_Python_InitShadowInstance(args);
26752 }
26753
26754 SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26755 PyObject *resultobj = 0;
26756 wxGraphicsPen *result = 0 ;
26757
26758 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
26759 {
26760 result = (wxGraphicsPen *)new wxGraphicsPen();
26761 if (PyErr_Occurred()) SWIG_fail;
26762 }
26763 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
26764 return resultobj;
26765 fail:
26766 return NULL;
26767 }
26768
26769
26770 SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26771 PyObject *resultobj = 0;
26772 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
26773 void *argp1 = 0 ;
26774 int res1 = 0 ;
26775 PyObject *swig_obj[1] ;
26776
26777 if (!args) SWIG_fail;
26778 swig_obj[0] = args;
26779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
26780 if (!SWIG_IsOK(res1)) {
26781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
26782 }
26783 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
26784 {
26785 delete arg1;
26786
26787 if (PyErr_Occurred()) SWIG_fail;
26788 }
26789 resultobj = SWIG_Py_Void();
26790 return resultobj;
26791 fail:
26792 return NULL;
26793 }
26794
26795
26796 SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26797 PyObject *obj;
26798 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26799 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
26800 return SWIG_Py_Void();
26801 }
26802
26803 SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26804 return SWIG_Python_InitShadowInstance(args);
26805 }
26806
26807 SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26808 PyObject *resultobj = 0;
26809 wxGraphicsBrush *result = 0 ;
26810
26811 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
26812 {
26813 result = (wxGraphicsBrush *)new wxGraphicsBrush();
26814 if (PyErr_Occurred()) SWIG_fail;
26815 }
26816 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
26817 return resultobj;
26818 fail:
26819 return NULL;
26820 }
26821
26822
26823 SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26824 PyObject *resultobj = 0;
26825 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
26826 void *argp1 = 0 ;
26827 int res1 = 0 ;
26828 PyObject *swig_obj[1] ;
26829
26830 if (!args) SWIG_fail;
26831 swig_obj[0] = args;
26832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
26833 if (!SWIG_IsOK(res1)) {
26834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
26835 }
26836 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
26837 {
26838 delete arg1;
26839
26840 if (PyErr_Occurred()) SWIG_fail;
26841 }
26842 resultobj = SWIG_Py_Void();
26843 return resultobj;
26844 fail:
26845 return NULL;
26846 }
26847
26848
26849 SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26850 PyObject *obj;
26851 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26852 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
26853 return SWIG_Py_Void();
26854 }
26855
26856 SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26857 return SWIG_Python_InitShadowInstance(args);
26858 }
26859
26860 SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26861 PyObject *resultobj = 0;
26862 wxGraphicsFont *result = 0 ;
26863
26864 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
26865 {
26866 result = (wxGraphicsFont *)new wxGraphicsFont();
26867 if (PyErr_Occurred()) SWIG_fail;
26868 }
26869 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
26870 return resultobj;
26871 fail:
26872 return NULL;
26873 }
26874
26875
26876 SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26877 PyObject *resultobj = 0;
26878 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
26879 void *argp1 = 0 ;
26880 int res1 = 0 ;
26881 PyObject *swig_obj[1] ;
26882
26883 if (!args) SWIG_fail;
26884 swig_obj[0] = args;
26885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
26886 if (!SWIG_IsOK(res1)) {
26887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
26888 }
26889 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
26890 {
26891 delete arg1;
26892
26893 if (PyErr_Occurred()) SWIG_fail;
26894 }
26895 resultobj = SWIG_Py_Void();
26896 return resultobj;
26897 fail:
26898 return NULL;
26899 }
26900
26901
26902 SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26903 PyObject *obj;
26904 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26905 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
26906 return SWIG_Py_Void();
26907 }
26908
26909 SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26910 return SWIG_Python_InitShadowInstance(args);
26911 }
26912
26913 SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26914 PyObject *resultobj = 0;
26915 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26916 void *argp1 = 0 ;
26917 int res1 = 0 ;
26918 PyObject *swig_obj[1] ;
26919
26920 if (!args) SWIG_fail;
26921 swig_obj[0] = args;
26922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
26923 if (!SWIG_IsOK(res1)) {
26924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26925 }
26926 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26927 {
26928 delete arg1;
26929
26930 if (PyErr_Occurred()) SWIG_fail;
26931 }
26932 resultobj = SWIG_Py_Void();
26933 return resultobj;
26934 fail:
26935 return NULL;
26936 }
26937
26938
26939 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26940 PyObject *resultobj = 0;
26941 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26942 wxGraphicsMatrix *arg2 = 0 ;
26943 void *argp1 = 0 ;
26944 int res1 = 0 ;
26945 void *argp2 = 0 ;
26946 int res2 = 0 ;
26947 PyObject * obj0 = 0 ;
26948 PyObject * obj1 = 0 ;
26949 char * kwnames[] = {
26950 (char *) "self",(char *) "t", NULL
26951 };
26952
26953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
26954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26955 if (!SWIG_IsOK(res1)) {
26956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26957 }
26958 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26959 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
26960 if (!SWIG_IsOK(res2)) {
26961 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26962 }
26963 if (!argp2) {
26964 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
26965 }
26966 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26967 {
26968 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
26969 if (PyErr_Occurred()) SWIG_fail;
26970 }
26971 resultobj = SWIG_Py_Void();
26972 return resultobj;
26973 fail:
26974 return NULL;
26975 }
26976
26977
26978 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26979 PyObject *resultobj = 0;
26980 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26981 wxDouble arg2 = (wxDouble) 1.0 ;
26982 wxDouble arg3 = (wxDouble) 0.0 ;
26983 wxDouble arg4 = (wxDouble) 0.0 ;
26984 wxDouble arg5 = (wxDouble) 1.0 ;
26985 wxDouble arg6 = (wxDouble) 0.0 ;
26986 wxDouble arg7 = (wxDouble) 0.0 ;
26987 void *argp1 = 0 ;
26988 int res1 = 0 ;
26989 double val2 ;
26990 int ecode2 = 0 ;
26991 double val3 ;
26992 int ecode3 = 0 ;
26993 double val4 ;
26994 int ecode4 = 0 ;
26995 double val5 ;
26996 int ecode5 = 0 ;
26997 double val6 ;
26998 int ecode6 = 0 ;
26999 double val7 ;
27000 int ecode7 = 0 ;
27001 PyObject * obj0 = 0 ;
27002 PyObject * obj1 = 0 ;
27003 PyObject * obj2 = 0 ;
27004 PyObject * obj3 = 0 ;
27005 PyObject * obj4 = 0 ;
27006 PyObject * obj5 = 0 ;
27007 PyObject * obj6 = 0 ;
27008 char * kwnames[] = {
27009 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
27010 };
27011
27012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27014 if (!SWIG_IsOK(res1)) {
27015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
27016 }
27017 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27018 if (obj1) {
27019 ecode2 = SWIG_AsVal_double(obj1, &val2);
27020 if (!SWIG_IsOK(ecode2)) {
27021 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
27022 }
27023 arg2 = static_cast< wxDouble >(val2);
27024 }
27025 if (obj2) {
27026 ecode3 = SWIG_AsVal_double(obj2, &val3);
27027 if (!SWIG_IsOK(ecode3)) {
27028 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
27029 }
27030 arg3 = static_cast< wxDouble >(val3);
27031 }
27032 if (obj3) {
27033 ecode4 = SWIG_AsVal_double(obj3, &val4);
27034 if (!SWIG_IsOK(ecode4)) {
27035 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
27036 }
27037 arg4 = static_cast< wxDouble >(val4);
27038 }
27039 if (obj4) {
27040 ecode5 = SWIG_AsVal_double(obj4, &val5);
27041 if (!SWIG_IsOK(ecode5)) {
27042 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
27043 }
27044 arg5 = static_cast< wxDouble >(val5);
27045 }
27046 if (obj5) {
27047 ecode6 = SWIG_AsVal_double(obj5, &val6);
27048 if (!SWIG_IsOK(ecode6)) {
27049 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
27050 }
27051 arg6 = static_cast< wxDouble >(val6);
27052 }
27053 if (obj6) {
27054 ecode7 = SWIG_AsVal_double(obj6, &val7);
27055 if (!SWIG_IsOK(ecode7)) {
27056 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
27057 }
27058 arg7 = static_cast< wxDouble >(val7);
27059 }
27060 {
27061 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
27062 if (PyErr_Occurred()) SWIG_fail;
27063 }
27064 resultobj = SWIG_Py_Void();
27065 return resultobj;
27066 fail:
27067 return NULL;
27068 }
27069
27070
27071 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27072 PyObject *resultobj = 0;
27073 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27074 wxDouble *arg2 = (wxDouble *) 0 ;
27075 wxDouble *arg3 = (wxDouble *) 0 ;
27076 wxDouble *arg4 = (wxDouble *) 0 ;
27077 wxDouble *arg5 = (wxDouble *) 0 ;
27078 wxDouble *arg6 = (wxDouble *) 0 ;
27079 wxDouble *arg7 = (wxDouble *) 0 ;
27080 void *argp1 = 0 ;
27081 int res1 = 0 ;
27082 wxDouble temp2 ;
27083 int res2 = SWIG_TMPOBJ ;
27084 wxDouble temp3 ;
27085 int res3 = SWIG_TMPOBJ ;
27086 wxDouble temp4 ;
27087 int res4 = SWIG_TMPOBJ ;
27088 wxDouble temp5 ;
27089 int res5 = SWIG_TMPOBJ ;
27090 wxDouble temp6 ;
27091 int res6 = SWIG_TMPOBJ ;
27092 wxDouble temp7 ;
27093 int res7 = SWIG_TMPOBJ ;
27094 PyObject *swig_obj[1] ;
27095
27096 arg2 = &temp2;
27097 arg3 = &temp3;
27098 arg4 = &temp4;
27099 arg5 = &temp5;
27100 arg6 = &temp6;
27101 arg7 = &temp7;
27102 if (!args) SWIG_fail;
27103 swig_obj[0] = args;
27104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27105 if (!SWIG_IsOK(res1)) {
27106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Get" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
27107 }
27108 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27109 {
27110 (arg1)->Get(arg2,arg3,arg4,arg5,arg6,arg7);
27111 if (PyErr_Occurred()) SWIG_fail;
27112 }
27113 resultobj = SWIG_Py_Void();
27114 if (SWIG_IsTmpObj(res2)) {
27115 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
27116 } else {
27117 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27118 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
27119 }
27120 if (SWIG_IsTmpObj(res3)) {
27121 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
27122 } else {
27123 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27124 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
27125 }
27126 if (SWIG_IsTmpObj(res4)) {
27127 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
27128 } else {
27129 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27130 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
27131 }
27132 if (SWIG_IsTmpObj(res5)) {
27133 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
27134 } else {
27135 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27136 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
27137 }
27138 if (SWIG_IsTmpObj(res6)) {
27139 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
27140 } else {
27141 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27142 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
27143 }
27144 if (SWIG_IsTmpObj(res7)) {
27145 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg7)));
27146 } else {
27147 int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27148 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
27149 }
27150 return resultobj;
27151 fail:
27152 return NULL;
27153 }
27154
27155
27156 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27157 PyObject *resultobj = 0;
27158 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27159 void *argp1 = 0 ;
27160 int res1 = 0 ;
27161 PyObject *swig_obj[1] ;
27162
27163 if (!args) SWIG_fail;
27164 swig_obj[0] = args;
27165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27166 if (!SWIG_IsOK(res1)) {
27167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
27168 }
27169 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27170 {
27171 (arg1)->Invert();
27172 if (PyErr_Occurred()) SWIG_fail;
27173 }
27174 resultobj = SWIG_Py_Void();
27175 return resultobj;
27176 fail:
27177 return NULL;
27178 }
27179
27180
27181 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27182 PyObject *resultobj = 0;
27183 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27184 wxGraphicsMatrix *arg2 = 0 ;
27185 bool result;
27186 void *argp1 = 0 ;
27187 int res1 = 0 ;
27188 void *argp2 = 0 ;
27189 int res2 = 0 ;
27190 PyObject * obj0 = 0 ;
27191 PyObject * obj1 = 0 ;
27192 char * kwnames[] = {
27193 (char *) "self",(char *) "t", NULL
27194 };
27195
27196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
27197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27198 if (!SWIG_IsOK(res1)) {
27199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
27200 }
27201 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27202 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27203 if (!SWIG_IsOK(res2)) {
27204 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27205 }
27206 if (!argp2) {
27207 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27208 }
27209 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
27210 {
27211 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
27212 if (PyErr_Occurred()) SWIG_fail;
27213 }
27214 {
27215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27216 }
27217 return resultobj;
27218 fail:
27219 return NULL;
27220 }
27221
27222
27223 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27224 PyObject *resultobj = 0;
27225 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27226 bool result;
27227 void *argp1 = 0 ;
27228 int res1 = 0 ;
27229 PyObject *swig_obj[1] ;
27230
27231 if (!args) SWIG_fail;
27232 swig_obj[0] = args;
27233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27234 if (!SWIG_IsOK(res1)) {
27235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
27236 }
27237 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27238 {
27239 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
27240 if (PyErr_Occurred()) SWIG_fail;
27241 }
27242 {
27243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27244 }
27245 return resultobj;
27246 fail:
27247 return NULL;
27248 }
27249
27250
27251 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27252 PyObject *resultobj = 0;
27253 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27254 wxDouble arg2 ;
27255 wxDouble arg3 ;
27256 void *argp1 = 0 ;
27257 int res1 = 0 ;
27258 double val2 ;
27259 int ecode2 = 0 ;
27260 double val3 ;
27261 int ecode3 = 0 ;
27262 PyObject * obj0 = 0 ;
27263 PyObject * obj1 = 0 ;
27264 PyObject * obj2 = 0 ;
27265 char * kwnames[] = {
27266 (char *) "self",(char *) "dx",(char *) "dy", NULL
27267 };
27268
27269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27271 if (!SWIG_IsOK(res1)) {
27272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
27273 }
27274 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27275 ecode2 = SWIG_AsVal_double(obj1, &val2);
27276 if (!SWIG_IsOK(ecode2)) {
27277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
27278 }
27279 arg2 = static_cast< wxDouble >(val2);
27280 ecode3 = SWIG_AsVal_double(obj2, &val3);
27281 if (!SWIG_IsOK(ecode3)) {
27282 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
27283 }
27284 arg3 = static_cast< wxDouble >(val3);
27285 {
27286 (arg1)->Translate(arg2,arg3);
27287 if (PyErr_Occurred()) SWIG_fail;
27288 }
27289 resultobj = SWIG_Py_Void();
27290 return resultobj;
27291 fail:
27292 return NULL;
27293 }
27294
27295
27296 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27297 PyObject *resultobj = 0;
27298 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27299 wxDouble arg2 ;
27300 wxDouble arg3 ;
27301 void *argp1 = 0 ;
27302 int res1 = 0 ;
27303 double val2 ;
27304 int ecode2 = 0 ;
27305 double val3 ;
27306 int ecode3 = 0 ;
27307 PyObject * obj0 = 0 ;
27308 PyObject * obj1 = 0 ;
27309 PyObject * obj2 = 0 ;
27310 char * kwnames[] = {
27311 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
27312 };
27313
27314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27316 if (!SWIG_IsOK(res1)) {
27317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
27318 }
27319 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27320 ecode2 = SWIG_AsVal_double(obj1, &val2);
27321 if (!SWIG_IsOK(ecode2)) {
27322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
27323 }
27324 arg2 = static_cast< wxDouble >(val2);
27325 ecode3 = SWIG_AsVal_double(obj2, &val3);
27326 if (!SWIG_IsOK(ecode3)) {
27327 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
27328 }
27329 arg3 = static_cast< wxDouble >(val3);
27330 {
27331 (arg1)->Scale(arg2,arg3);
27332 if (PyErr_Occurred()) SWIG_fail;
27333 }
27334 resultobj = SWIG_Py_Void();
27335 return resultobj;
27336 fail:
27337 return NULL;
27338 }
27339
27340
27341 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27342 PyObject *resultobj = 0;
27343 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27344 wxDouble arg2 ;
27345 void *argp1 = 0 ;
27346 int res1 = 0 ;
27347 double val2 ;
27348 int ecode2 = 0 ;
27349 PyObject * obj0 = 0 ;
27350 PyObject * obj1 = 0 ;
27351 char * kwnames[] = {
27352 (char *) "self",(char *) "angle", NULL
27353 };
27354
27355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
27356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27357 if (!SWIG_IsOK(res1)) {
27358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
27359 }
27360 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27361 ecode2 = SWIG_AsVal_double(obj1, &val2);
27362 if (!SWIG_IsOK(ecode2)) {
27363 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
27364 }
27365 arg2 = static_cast< wxDouble >(val2);
27366 {
27367 (arg1)->Rotate(arg2);
27368 if (PyErr_Occurred()) SWIG_fail;
27369 }
27370 resultobj = SWIG_Py_Void();
27371 return resultobj;
27372 fail:
27373 return NULL;
27374 }
27375
27376
27377 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27378 PyObject *resultobj = 0;
27379 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27380 wxDouble *arg2 = (wxDouble *) 0 ;
27381 wxDouble *arg3 = (wxDouble *) 0 ;
27382 void *argp1 = 0 ;
27383 int res1 = 0 ;
27384 wxDouble temp2 ;
27385 int res2 = 0 ;
27386 wxDouble temp3 ;
27387 int res3 = 0 ;
27388 PyObject * obj0 = 0 ;
27389 PyObject * obj1 = 0 ;
27390 PyObject * obj2 = 0 ;
27391 char * kwnames[] = {
27392 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
27393 };
27394
27395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27397 if (!SWIG_IsOK(res1)) {
27398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
27399 }
27400 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27401 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
27402 double val;
27403 int ecode = SWIG_AsVal_double(obj1, &val);
27404 if (!SWIG_IsOK(ecode)) {
27405 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27406 }
27407 temp2 = static_cast< wxDouble >(val);
27408 arg2 = &temp2;
27409 res2 = SWIG_AddTmpMask(ecode);
27410 }
27411 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
27412 double val;
27413 int ecode = SWIG_AsVal_double(obj2, &val);
27414 if (!SWIG_IsOK(ecode)) {
27415 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27416 }
27417 temp3 = static_cast< wxDouble >(val);
27418 arg3 = &temp3;
27419 res3 = SWIG_AddTmpMask(ecode);
27420 }
27421 {
27422 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
27423 if (PyErr_Occurred()) SWIG_fail;
27424 }
27425 resultobj = SWIG_Py_Void();
27426 if (SWIG_IsTmpObj(res2)) {
27427 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
27428 } else {
27429 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27430 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
27431 }
27432 if (SWIG_IsTmpObj(res3)) {
27433 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
27434 } else {
27435 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27436 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
27437 }
27438 return resultobj;
27439 fail:
27440 return NULL;
27441 }
27442
27443
27444 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27445 PyObject *resultobj = 0;
27446 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27447 wxDouble *arg2 = (wxDouble *) 0 ;
27448 wxDouble *arg3 = (wxDouble *) 0 ;
27449 void *argp1 = 0 ;
27450 int res1 = 0 ;
27451 wxDouble temp2 ;
27452 int res2 = 0 ;
27453 wxDouble temp3 ;
27454 int res3 = 0 ;
27455 PyObject * obj0 = 0 ;
27456 PyObject * obj1 = 0 ;
27457 PyObject * obj2 = 0 ;
27458 char * kwnames[] = {
27459 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
27460 };
27461
27462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27464 if (!SWIG_IsOK(res1)) {
27465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
27466 }
27467 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27468 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
27469 double val;
27470 int ecode = SWIG_AsVal_double(obj1, &val);
27471 if (!SWIG_IsOK(ecode)) {
27472 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
27473 }
27474 temp2 = static_cast< wxDouble >(val);
27475 arg2 = &temp2;
27476 res2 = SWIG_AddTmpMask(ecode);
27477 }
27478 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
27479 double val;
27480 int ecode = SWIG_AsVal_double(obj2, &val);
27481 if (!SWIG_IsOK(ecode)) {
27482 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
27483 }
27484 temp3 = static_cast< wxDouble >(val);
27485 arg3 = &temp3;
27486 res3 = SWIG_AddTmpMask(ecode);
27487 }
27488 {
27489 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
27490 if (PyErr_Occurred()) SWIG_fail;
27491 }
27492 resultobj = SWIG_Py_Void();
27493 if (SWIG_IsTmpObj(res2)) {
27494 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
27495 } else {
27496 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27497 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
27498 }
27499 if (SWIG_IsTmpObj(res3)) {
27500 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
27501 } else {
27502 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27503 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
27504 }
27505 return resultobj;
27506 fail:
27507 return NULL;
27508 }
27509
27510
27511 SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27512 PyObject *resultobj = 0;
27513 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27514 void *result = 0 ;
27515 void *argp1 = 0 ;
27516 int res1 = 0 ;
27517 PyObject *swig_obj[1] ;
27518
27519 if (!args) SWIG_fail;
27520 swig_obj[0] = args;
27521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27522 if (!SWIG_IsOK(res1)) {
27523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
27524 }
27525 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27526 {
27527 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
27528 if (PyErr_Occurred()) SWIG_fail;
27529 }
27530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
27531 return resultobj;
27532 fail:
27533 return NULL;
27534 }
27535
27536
27537 SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27538 PyObject *obj;
27539 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27540 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
27541 return SWIG_Py_Void();
27542 }
27543
27544 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27545 PyObject *resultobj = 0;
27546 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27547 void *argp1 = 0 ;
27548 int res1 = 0 ;
27549 PyObject *swig_obj[1] ;
27550
27551 if (!args) SWIG_fail;
27552 swig_obj[0] = args;
27553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
27554 if (!SWIG_IsOK(res1)) {
27555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27556 }
27557 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27558 {
27559 delete arg1;
27560
27561 if (PyErr_Occurred()) SWIG_fail;
27562 }
27563 resultobj = SWIG_Py_Void();
27564 return resultobj;
27565 fail:
27566 return NULL;
27567 }
27568
27569
27570 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27571 PyObject *resultobj = 0;
27572 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27573 wxDouble arg2 ;
27574 wxDouble arg3 ;
27575 void *argp1 = 0 ;
27576 int res1 = 0 ;
27577 double val2 ;
27578 int ecode2 = 0 ;
27579 double val3 ;
27580 int ecode3 = 0 ;
27581
27582 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
27583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27584 if (!SWIG_IsOK(res1)) {
27585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27586 }
27587 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27588 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27589 if (!SWIG_IsOK(ecode2)) {
27590 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27591 }
27592 arg2 = static_cast< wxDouble >(val2);
27593 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27594 if (!SWIG_IsOK(ecode3)) {
27595 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27596 }
27597 arg3 = static_cast< wxDouble >(val3);
27598 {
27599 (arg1)->MoveToPoint(arg2,arg3);
27600 if (PyErr_Occurred()) SWIG_fail;
27601 }
27602 resultobj = SWIG_Py_Void();
27603 return resultobj;
27604 fail:
27605 return NULL;
27606 }
27607
27608
27609 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27610 PyObject *resultobj = 0;
27611 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27612 wxPoint2D *arg2 = 0 ;
27613 void *argp1 = 0 ;
27614 int res1 = 0 ;
27615 wxPoint2D temp2 ;
27616
27617 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27619 if (!SWIG_IsOK(res1)) {
27620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27621 }
27622 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27623 {
27624 arg2 = &temp2;
27625 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27626 }
27627 {
27628 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
27629 if (PyErr_Occurred()) SWIG_fail;
27630 }
27631 resultobj = SWIG_Py_Void();
27632 return resultobj;
27633 fail:
27634 return NULL;
27635 }
27636
27637
27638 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
27639 int argc;
27640 PyObject *argv[4];
27641
27642 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
27643 --argc;
27644 if (argc == 2) {
27645 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
27646 }
27647 if (argc == 3) {
27648 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
27649 }
27650
27651 fail:
27652 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
27653 return NULL;
27654 }
27655
27656
27657 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27658 PyObject *resultobj = 0;
27659 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27660 wxDouble arg2 ;
27661 wxDouble arg3 ;
27662 void *argp1 = 0 ;
27663 int res1 = 0 ;
27664 double val2 ;
27665 int ecode2 = 0 ;
27666 double val3 ;
27667 int ecode3 = 0 ;
27668
27669 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
27670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27671 if (!SWIG_IsOK(res1)) {
27672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27673 }
27674 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27675 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27676 if (!SWIG_IsOK(ecode2)) {
27677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27678 }
27679 arg2 = static_cast< wxDouble >(val2);
27680 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27681 if (!SWIG_IsOK(ecode3)) {
27682 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27683 }
27684 arg3 = static_cast< wxDouble >(val3);
27685 {
27686 (arg1)->AddLineToPoint(arg2,arg3);
27687 if (PyErr_Occurred()) SWIG_fail;
27688 }
27689 resultobj = SWIG_Py_Void();
27690 return resultobj;
27691 fail:
27692 return NULL;
27693 }
27694
27695
27696 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27697 PyObject *resultobj = 0;
27698 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27699 wxPoint2D *arg2 = 0 ;
27700 void *argp1 = 0 ;
27701 int res1 = 0 ;
27702 wxPoint2D temp2 ;
27703
27704 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27706 if (!SWIG_IsOK(res1)) {
27707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27708 }
27709 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27710 {
27711 arg2 = &temp2;
27712 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27713 }
27714 {
27715 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
27716 if (PyErr_Occurred()) SWIG_fail;
27717 }
27718 resultobj = SWIG_Py_Void();
27719 return resultobj;
27720 fail:
27721 return NULL;
27722 }
27723
27724
27725 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
27726 int argc;
27727 PyObject *argv[4];
27728
27729 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
27730 --argc;
27731 if (argc == 2) {
27732 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
27733 }
27734 if (argc == 3) {
27735 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
27736 }
27737
27738 fail:
27739 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
27740 return NULL;
27741 }
27742
27743
27744 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27745 PyObject *resultobj = 0;
27746 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27747 wxDouble arg2 ;
27748 wxDouble arg3 ;
27749 wxDouble arg4 ;
27750 wxDouble arg5 ;
27751 wxDouble arg6 ;
27752 wxDouble arg7 ;
27753 void *argp1 = 0 ;
27754 int res1 = 0 ;
27755 double val2 ;
27756 int ecode2 = 0 ;
27757 double val3 ;
27758 int ecode3 = 0 ;
27759 double val4 ;
27760 int ecode4 = 0 ;
27761 double val5 ;
27762 int ecode5 = 0 ;
27763 double val6 ;
27764 int ecode6 = 0 ;
27765 double val7 ;
27766 int ecode7 = 0 ;
27767
27768 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
27769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27770 if (!SWIG_IsOK(res1)) {
27771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27772 }
27773 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27774 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27775 if (!SWIG_IsOK(ecode2)) {
27776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27777 }
27778 arg2 = static_cast< wxDouble >(val2);
27779 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27780 if (!SWIG_IsOK(ecode3)) {
27781 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27782 }
27783 arg3 = static_cast< wxDouble >(val3);
27784 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
27785 if (!SWIG_IsOK(ecode4)) {
27786 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27787 }
27788 arg4 = static_cast< wxDouble >(val4);
27789 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
27790 if (!SWIG_IsOK(ecode5)) {
27791 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27792 }
27793 arg5 = static_cast< wxDouble >(val5);
27794 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
27795 if (!SWIG_IsOK(ecode6)) {
27796 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27797 }
27798 arg6 = static_cast< wxDouble >(val6);
27799 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
27800 if (!SWIG_IsOK(ecode7)) {
27801 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
27802 }
27803 arg7 = static_cast< wxDouble >(val7);
27804 {
27805 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
27806 if (PyErr_Occurred()) SWIG_fail;
27807 }
27808 resultobj = SWIG_Py_Void();
27809 return resultobj;
27810 fail:
27811 return NULL;
27812 }
27813
27814
27815 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27816 PyObject *resultobj = 0;
27817 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27818 wxPoint2D *arg2 = 0 ;
27819 wxPoint2D *arg3 = 0 ;
27820 wxPoint2D *arg4 = 0 ;
27821 void *argp1 = 0 ;
27822 int res1 = 0 ;
27823 wxPoint2D temp2 ;
27824 wxPoint2D temp3 ;
27825 wxPoint2D temp4 ;
27826
27827 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
27828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27829 if (!SWIG_IsOK(res1)) {
27830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27831 }
27832 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27833 {
27834 arg2 = &temp2;
27835 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
27836 }
27837 {
27838 arg3 = &temp3;
27839 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
27840 }
27841 {
27842 arg4 = &temp4;
27843 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
27844 }
27845 {
27846 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
27847 if (PyErr_Occurred()) SWIG_fail;
27848 }
27849 resultobj = SWIG_Py_Void();
27850 return resultobj;
27851 fail:
27852 return NULL;
27853 }
27854
27855
27856 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
27857 int argc;
27858 PyObject *argv[8];
27859
27860 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
27861 --argc;
27862 if (argc == 4) {
27863 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
27864 }
27865 if (argc == 7) {
27866 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
27867 }
27868
27869 fail:
27870 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
27871 return NULL;
27872 }
27873
27874
27875 SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27876 PyObject *resultobj = 0;
27877 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27878 wxGraphicsPath *arg2 = 0 ;
27879 void *argp1 = 0 ;
27880 int res1 = 0 ;
27881 void *argp2 = 0 ;
27882 int res2 = 0 ;
27883 PyObject * obj0 = 0 ;
27884 PyObject * obj1 = 0 ;
27885 char * kwnames[] = {
27886 (char *) "self",(char *) "path", NULL
27887 };
27888
27889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
27890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27891 if (!SWIG_IsOK(res1)) {
27892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27893 }
27894 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27895 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
27896 if (!SWIG_IsOK(res2)) {
27897 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
27898 }
27899 if (!argp2) {
27900 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
27901 }
27902 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
27903 {
27904 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
27905 if (PyErr_Occurred()) SWIG_fail;
27906 }
27907 resultobj = SWIG_Py_Void();
27908 return resultobj;
27909 fail:
27910 return NULL;
27911 }
27912
27913
27914 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27915 PyObject *resultobj = 0;
27916 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27917 void *argp1 = 0 ;
27918 int res1 = 0 ;
27919 PyObject *swig_obj[1] ;
27920
27921 if (!args) SWIG_fail;
27922 swig_obj[0] = args;
27923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27924 if (!SWIG_IsOK(res1)) {
27925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27926 }
27927 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27928 {
27929 (arg1)->CloseSubpath();
27930 if (PyErr_Occurred()) SWIG_fail;
27931 }
27932 resultobj = SWIG_Py_Void();
27933 return resultobj;
27934 fail:
27935 return NULL;
27936 }
27937
27938
27939 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27940 PyObject *resultobj = 0;
27941 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27942 wxPoint2D result;
27943 void *argp1 = 0 ;
27944 int res1 = 0 ;
27945 PyObject *swig_obj[1] ;
27946
27947 if (!args) SWIG_fail;
27948 swig_obj[0] = args;
27949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27950 if (!SWIG_IsOK(res1)) {
27951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
27952 }
27953 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27954 {
27955 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
27956 if (PyErr_Occurred()) SWIG_fail;
27957 }
27958 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
27959 return resultobj;
27960 fail:
27961 return NULL;
27962 }
27963
27964
27965 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27966 PyObject *resultobj = 0;
27967 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27968 wxDouble arg2 ;
27969 wxDouble arg3 ;
27970 wxDouble arg4 ;
27971 wxDouble arg5 ;
27972 wxDouble arg6 ;
27973 bool arg7 = (bool) true ;
27974 void *argp1 = 0 ;
27975 int res1 = 0 ;
27976 double val2 ;
27977 int ecode2 = 0 ;
27978 double val3 ;
27979 int ecode3 = 0 ;
27980 double val4 ;
27981 int ecode4 = 0 ;
27982 double val5 ;
27983 int ecode5 = 0 ;
27984 double val6 ;
27985 int ecode6 = 0 ;
27986 bool val7 ;
27987 int ecode7 = 0 ;
27988
27989 if ((nobjs < 6) || (nobjs > 7)) SWIG_fail;
27990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
27991 if (!SWIG_IsOK(res1)) {
27992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
27993 }
27994 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27995 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27996 if (!SWIG_IsOK(ecode2)) {
27997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
27998 }
27999 arg2 = static_cast< wxDouble >(val2);
28000 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28001 if (!SWIG_IsOK(ecode3)) {
28002 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
28003 }
28004 arg3 = static_cast< wxDouble >(val3);
28005 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
28006 if (!SWIG_IsOK(ecode4)) {
28007 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
28008 }
28009 arg4 = static_cast< wxDouble >(val4);
28010 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
28011 if (!SWIG_IsOK(ecode5)) {
28012 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
28013 }
28014 arg5 = static_cast< wxDouble >(val5);
28015 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
28016 if (!SWIG_IsOK(ecode6)) {
28017 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
28018 }
28019 arg6 = static_cast< wxDouble >(val6);
28020 if (swig_obj[6]) {
28021 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
28022 if (!SWIG_IsOK(ecode7)) {
28023 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
28024 }
28025 arg7 = static_cast< bool >(val7);
28026 }
28027 {
28028 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
28029 if (PyErr_Occurred()) SWIG_fail;
28030 }
28031 resultobj = SWIG_Py_Void();
28032 return resultobj;
28033 fail:
28034 return NULL;
28035 }
28036
28037
28038 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28039 PyObject *resultobj = 0;
28040 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28041 wxPoint2D *arg2 = 0 ;
28042 wxDouble arg3 ;
28043 wxDouble arg4 ;
28044 wxDouble arg5 ;
28045 bool arg6 = (bool) true ;
28046 void *argp1 = 0 ;
28047 int res1 = 0 ;
28048 wxPoint2D temp2 ;
28049 double val3 ;
28050 int ecode3 = 0 ;
28051 double val4 ;
28052 int ecode4 = 0 ;
28053 double val5 ;
28054 int ecode5 = 0 ;
28055 bool val6 ;
28056 int ecode6 = 0 ;
28057
28058 if ((nobjs < 5) || (nobjs > 6)) SWIG_fail;
28059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28060 if (!SWIG_IsOK(res1)) {
28061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
28062 }
28063 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28064 {
28065 arg2 = &temp2;
28066 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
28067 }
28068 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28069 if (!SWIG_IsOK(ecode3)) {
28070 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
28071 }
28072 arg3 = static_cast< wxDouble >(val3);
28073 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
28074 if (!SWIG_IsOK(ecode4)) {
28075 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
28076 }
28077 arg4 = static_cast< wxDouble >(val4);
28078 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
28079 if (!SWIG_IsOK(ecode5)) {
28080 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
28081 }
28082 arg5 = static_cast< wxDouble >(val5);
28083 if (swig_obj[5]) {
28084 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
28085 if (!SWIG_IsOK(ecode6)) {
28086 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
28087 }
28088 arg6 = static_cast< bool >(val6);
28089 }
28090 {
28091 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
28092 if (PyErr_Occurred()) SWIG_fail;
28093 }
28094 resultobj = SWIG_Py_Void();
28095 return resultobj;
28096 fail:
28097 return NULL;
28098 }
28099
28100
28101 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
28102 int argc;
28103 PyObject *argv[8];
28104
28105 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
28106 --argc;
28107 if ((argc >= 5) && (argc <= 6)) {
28108 int _v = 0;
28109 {
28110 {
28111 _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
28112 }
28113 }
28114 if (!_v) goto check_1;
28115 if (argc > 5) {
28116 {
28117 {
28118 int res = SWIG_AsVal_bool(argv[5], NULL);
28119 _v = SWIG_CheckState(res);
28120 }
28121 }
28122 if (!_v) goto check_1;
28123 }
28124 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
28125 }
28126 check_1:
28127
28128 if ((argc >= 6) && (argc <= 7)) {
28129 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
28130 }
28131
28132 fail:
28133 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
28134 return NULL;
28135 }
28136
28137
28138 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28139 PyObject *resultobj = 0;
28140 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28141 wxDouble arg2 ;
28142 wxDouble arg3 ;
28143 wxDouble arg4 ;
28144 wxDouble arg5 ;
28145 void *argp1 = 0 ;
28146 int res1 = 0 ;
28147 double val2 ;
28148 int ecode2 = 0 ;
28149 double val3 ;
28150 int ecode3 = 0 ;
28151 double val4 ;
28152 int ecode4 = 0 ;
28153 double val5 ;
28154 int ecode5 = 0 ;
28155 PyObject * obj0 = 0 ;
28156 PyObject * obj1 = 0 ;
28157 PyObject * obj2 = 0 ;
28158 PyObject * obj3 = 0 ;
28159 PyObject * obj4 = 0 ;
28160 char * kwnames[] = {
28161 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
28162 };
28163
28164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28166 if (!SWIG_IsOK(res1)) {
28167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
28168 }
28169 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28170 ecode2 = SWIG_AsVal_double(obj1, &val2);
28171 if (!SWIG_IsOK(ecode2)) {
28172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
28173 }
28174 arg2 = static_cast< wxDouble >(val2);
28175 ecode3 = SWIG_AsVal_double(obj2, &val3);
28176 if (!SWIG_IsOK(ecode3)) {
28177 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
28178 }
28179 arg3 = static_cast< wxDouble >(val3);
28180 ecode4 = SWIG_AsVal_double(obj3, &val4);
28181 if (!SWIG_IsOK(ecode4)) {
28182 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
28183 }
28184 arg4 = static_cast< wxDouble >(val4);
28185 ecode5 = SWIG_AsVal_double(obj4, &val5);
28186 if (!SWIG_IsOK(ecode5)) {
28187 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
28188 }
28189 arg5 = static_cast< wxDouble >(val5);
28190 {
28191 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
28192 if (PyErr_Occurred()) SWIG_fail;
28193 }
28194 resultobj = SWIG_Py_Void();
28195 return resultobj;
28196 fail:
28197 return NULL;
28198 }
28199
28200
28201 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28202 PyObject *resultobj = 0;
28203 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28204 wxDouble arg2 ;
28205 wxDouble arg3 ;
28206 wxDouble arg4 ;
28207 wxDouble arg5 ;
28208 void *argp1 = 0 ;
28209 int res1 = 0 ;
28210 double val2 ;
28211 int ecode2 = 0 ;
28212 double val3 ;
28213 int ecode3 = 0 ;
28214 double val4 ;
28215 int ecode4 = 0 ;
28216 double val5 ;
28217 int ecode5 = 0 ;
28218 PyObject * obj0 = 0 ;
28219 PyObject * obj1 = 0 ;
28220 PyObject * obj2 = 0 ;
28221 PyObject * obj3 = 0 ;
28222 PyObject * obj4 = 0 ;
28223 char * kwnames[] = {
28224 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28225 };
28226
28227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28229 if (!SWIG_IsOK(res1)) {
28230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
28231 }
28232 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28233 ecode2 = SWIG_AsVal_double(obj1, &val2);
28234 if (!SWIG_IsOK(ecode2)) {
28235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
28236 }
28237 arg2 = static_cast< wxDouble >(val2);
28238 ecode3 = SWIG_AsVal_double(obj2, &val3);
28239 if (!SWIG_IsOK(ecode3)) {
28240 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
28241 }
28242 arg3 = static_cast< wxDouble >(val3);
28243 ecode4 = SWIG_AsVal_double(obj3, &val4);
28244 if (!SWIG_IsOK(ecode4)) {
28245 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
28246 }
28247 arg4 = static_cast< wxDouble >(val4);
28248 ecode5 = SWIG_AsVal_double(obj4, &val5);
28249 if (!SWIG_IsOK(ecode5)) {
28250 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
28251 }
28252 arg5 = static_cast< wxDouble >(val5);
28253 {
28254 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
28255 if (PyErr_Occurred()) SWIG_fail;
28256 }
28257 resultobj = SWIG_Py_Void();
28258 return resultobj;
28259 fail:
28260 return NULL;
28261 }
28262
28263
28264 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28265 PyObject *resultobj = 0;
28266 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28267 wxDouble arg2 ;
28268 wxDouble arg3 ;
28269 wxDouble arg4 ;
28270 void *argp1 = 0 ;
28271 int res1 = 0 ;
28272 double val2 ;
28273 int ecode2 = 0 ;
28274 double val3 ;
28275 int ecode3 = 0 ;
28276 double val4 ;
28277 int ecode4 = 0 ;
28278 PyObject * obj0 = 0 ;
28279 PyObject * obj1 = 0 ;
28280 PyObject * obj2 = 0 ;
28281 PyObject * obj3 = 0 ;
28282 char * kwnames[] = {
28283 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
28284 };
28285
28286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28288 if (!SWIG_IsOK(res1)) {
28289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
28290 }
28291 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28292 ecode2 = SWIG_AsVal_double(obj1, &val2);
28293 if (!SWIG_IsOK(ecode2)) {
28294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
28295 }
28296 arg2 = static_cast< wxDouble >(val2);
28297 ecode3 = SWIG_AsVal_double(obj2, &val3);
28298 if (!SWIG_IsOK(ecode3)) {
28299 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
28300 }
28301 arg3 = static_cast< wxDouble >(val3);
28302 ecode4 = SWIG_AsVal_double(obj3, &val4);
28303 if (!SWIG_IsOK(ecode4)) {
28304 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
28305 }
28306 arg4 = static_cast< wxDouble >(val4);
28307 {
28308 (arg1)->AddCircle(arg2,arg3,arg4);
28309 if (PyErr_Occurred()) SWIG_fail;
28310 }
28311 resultobj = SWIG_Py_Void();
28312 return resultobj;
28313 fail:
28314 return NULL;
28315 }
28316
28317
28318 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28319 PyObject *resultobj = 0;
28320 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28321 wxDouble arg2 ;
28322 wxDouble arg3 ;
28323 wxDouble arg4 ;
28324 wxDouble arg5 ;
28325 wxDouble arg6 ;
28326 void *argp1 = 0 ;
28327 int res1 = 0 ;
28328 double val2 ;
28329 int ecode2 = 0 ;
28330 double val3 ;
28331 int ecode3 = 0 ;
28332 double val4 ;
28333 int ecode4 = 0 ;
28334 double val5 ;
28335 int ecode5 = 0 ;
28336 double val6 ;
28337 int ecode6 = 0 ;
28338 PyObject * obj0 = 0 ;
28339 PyObject * obj1 = 0 ;
28340 PyObject * obj2 = 0 ;
28341 PyObject * obj3 = 0 ;
28342 PyObject * obj4 = 0 ;
28343 PyObject * obj5 = 0 ;
28344 char * kwnames[] = {
28345 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
28346 };
28347
28348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
28349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28350 if (!SWIG_IsOK(res1)) {
28351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
28352 }
28353 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28354 ecode2 = SWIG_AsVal_double(obj1, &val2);
28355 if (!SWIG_IsOK(ecode2)) {
28356 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
28357 }
28358 arg2 = static_cast< wxDouble >(val2);
28359 ecode3 = SWIG_AsVal_double(obj2, &val3);
28360 if (!SWIG_IsOK(ecode3)) {
28361 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
28362 }
28363 arg3 = static_cast< wxDouble >(val3);
28364 ecode4 = SWIG_AsVal_double(obj3, &val4);
28365 if (!SWIG_IsOK(ecode4)) {
28366 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
28367 }
28368 arg4 = static_cast< wxDouble >(val4);
28369 ecode5 = SWIG_AsVal_double(obj4, &val5);
28370 if (!SWIG_IsOK(ecode5)) {
28371 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
28372 }
28373 arg5 = static_cast< wxDouble >(val5);
28374 ecode6 = SWIG_AsVal_double(obj5, &val6);
28375 if (!SWIG_IsOK(ecode6)) {
28376 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
28377 }
28378 arg6 = static_cast< wxDouble >(val6);
28379 {
28380 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
28381 if (PyErr_Occurred()) SWIG_fail;
28382 }
28383 resultobj = SWIG_Py_Void();
28384 return resultobj;
28385 fail:
28386 return NULL;
28387 }
28388
28389
28390 SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28391 PyObject *resultobj = 0;
28392 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28393 wxDouble arg2 ;
28394 wxDouble arg3 ;
28395 wxDouble arg4 ;
28396 wxDouble arg5 ;
28397 void *argp1 = 0 ;
28398 int res1 = 0 ;
28399 double val2 ;
28400 int ecode2 = 0 ;
28401 double val3 ;
28402 int ecode3 = 0 ;
28403 double val4 ;
28404 int ecode4 = 0 ;
28405 double val5 ;
28406 int ecode5 = 0 ;
28407 PyObject * obj0 = 0 ;
28408 PyObject * obj1 = 0 ;
28409 PyObject * obj2 = 0 ;
28410 PyObject * obj3 = 0 ;
28411 PyObject * obj4 = 0 ;
28412 char * kwnames[] = {
28413 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28414 };
28415
28416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28418 if (!SWIG_IsOK(res1)) {
28419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
28420 }
28421 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28422 ecode2 = SWIG_AsVal_double(obj1, &val2);
28423 if (!SWIG_IsOK(ecode2)) {
28424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
28425 }
28426 arg2 = static_cast< wxDouble >(val2);
28427 ecode3 = SWIG_AsVal_double(obj2, &val3);
28428 if (!SWIG_IsOK(ecode3)) {
28429 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
28430 }
28431 arg3 = static_cast< wxDouble >(val3);
28432 ecode4 = SWIG_AsVal_double(obj3, &val4);
28433 if (!SWIG_IsOK(ecode4)) {
28434 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
28435 }
28436 arg4 = static_cast< wxDouble >(val4);
28437 ecode5 = SWIG_AsVal_double(obj4, &val5);
28438 if (!SWIG_IsOK(ecode5)) {
28439 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
28440 }
28441 arg5 = static_cast< wxDouble >(val5);
28442 {
28443 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
28444 if (PyErr_Occurred()) SWIG_fail;
28445 }
28446 resultobj = SWIG_Py_Void();
28447 return resultobj;
28448 fail:
28449 return NULL;
28450 }
28451
28452
28453 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28454 PyObject *resultobj = 0;
28455 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28456 wxDouble arg2 ;
28457 wxDouble arg3 ;
28458 wxDouble arg4 ;
28459 wxDouble arg5 ;
28460 wxDouble arg6 ;
28461 void *argp1 = 0 ;
28462 int res1 = 0 ;
28463 double val2 ;
28464 int ecode2 = 0 ;
28465 double val3 ;
28466 int ecode3 = 0 ;
28467 double val4 ;
28468 int ecode4 = 0 ;
28469 double val5 ;
28470 int ecode5 = 0 ;
28471 double val6 ;
28472 int ecode6 = 0 ;
28473 PyObject * obj0 = 0 ;
28474 PyObject * obj1 = 0 ;
28475 PyObject * obj2 = 0 ;
28476 PyObject * obj3 = 0 ;
28477 PyObject * obj4 = 0 ;
28478 PyObject * obj5 = 0 ;
28479 char * kwnames[] = {
28480 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
28481 };
28482
28483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
28484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28485 if (!SWIG_IsOK(res1)) {
28486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
28487 }
28488 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28489 ecode2 = SWIG_AsVal_double(obj1, &val2);
28490 if (!SWIG_IsOK(ecode2)) {
28491 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
28492 }
28493 arg2 = static_cast< wxDouble >(val2);
28494 ecode3 = SWIG_AsVal_double(obj2, &val3);
28495 if (!SWIG_IsOK(ecode3)) {
28496 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
28497 }
28498 arg3 = static_cast< wxDouble >(val3);
28499 ecode4 = SWIG_AsVal_double(obj3, &val4);
28500 if (!SWIG_IsOK(ecode4)) {
28501 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
28502 }
28503 arg4 = static_cast< wxDouble >(val4);
28504 ecode5 = SWIG_AsVal_double(obj4, &val5);
28505 if (!SWIG_IsOK(ecode5)) {
28506 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
28507 }
28508 arg5 = static_cast< wxDouble >(val5);
28509 ecode6 = SWIG_AsVal_double(obj5, &val6);
28510 if (!SWIG_IsOK(ecode6)) {
28511 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
28512 }
28513 arg6 = static_cast< wxDouble >(val6);
28514 {
28515 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
28516 if (PyErr_Occurred()) SWIG_fail;
28517 }
28518 resultobj = SWIG_Py_Void();
28519 return resultobj;
28520 fail:
28521 return NULL;
28522 }
28523
28524
28525 SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28526 PyObject *resultobj = 0;
28527 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28528 void *result = 0 ;
28529 void *argp1 = 0 ;
28530 int res1 = 0 ;
28531 PyObject *swig_obj[1] ;
28532
28533 if (!args) SWIG_fail;
28534 swig_obj[0] = args;
28535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28536 if (!SWIG_IsOK(res1)) {
28537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28538 }
28539 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28540 {
28541 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
28542 if (PyErr_Occurred()) SWIG_fail;
28543 }
28544 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28545 return resultobj;
28546 fail:
28547 return NULL;
28548 }
28549
28550
28551 SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28552 PyObject *resultobj = 0;
28553 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28554 void *arg2 = (void *) 0 ;
28555 void *argp1 = 0 ;
28556 int res1 = 0 ;
28557 int res2 ;
28558 PyObject * obj0 = 0 ;
28559 PyObject * obj1 = 0 ;
28560 char * kwnames[] = {
28561 (char *) "self",(char *) "p", NULL
28562 };
28563
28564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
28565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28566 if (!SWIG_IsOK(res1)) {
28567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28568 }
28569 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28570 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
28571 if (!SWIG_IsOK(res2)) {
28572 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
28573 }
28574 {
28575 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
28576 if (PyErr_Occurred()) SWIG_fail;
28577 }
28578 resultobj = SWIG_Py_Void();
28579 return resultobj;
28580 fail:
28581 return NULL;
28582 }
28583
28584
28585 SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28586 PyObject *resultobj = 0;
28587 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28588 wxGraphicsMatrix *arg2 = 0 ;
28589 void *argp1 = 0 ;
28590 int res1 = 0 ;
28591 void *argp2 = 0 ;
28592 int res2 = 0 ;
28593 PyObject * obj0 = 0 ;
28594 PyObject * obj1 = 0 ;
28595 char * kwnames[] = {
28596 (char *) "self",(char *) "matrix", NULL
28597 };
28598
28599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
28600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28601 if (!SWIG_IsOK(res1)) {
28602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
28603 }
28604 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28605 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28606 if (!SWIG_IsOK(res2)) {
28607 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28608 }
28609 if (!argp2) {
28610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28611 }
28612 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28613 {
28614 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
28615 if (PyErr_Occurred()) SWIG_fail;
28616 }
28617 resultobj = SWIG_Py_Void();
28618 return resultobj;
28619 fail:
28620 return NULL;
28621 }
28622
28623
28624 SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28625 PyObject *resultobj = 0;
28626 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28627 wxRect2D result;
28628 void *argp1 = 0 ;
28629 int res1 = 0 ;
28630 PyObject *swig_obj[1] ;
28631
28632 if (!args) SWIG_fail;
28633 swig_obj[0] = args;
28634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28635 if (!SWIG_IsOK(res1)) {
28636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28637 }
28638 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28639 {
28640 result = ((wxGraphicsPath const *)arg1)->GetBox();
28641 if (PyErr_Occurred()) SWIG_fail;
28642 }
28643 resultobj = SWIG_NewPointerObj((new wxRect2D(static_cast< const wxRect2D& >(result))), SWIGTYPE_p_wxRect2D, SWIG_POINTER_OWN | 0 );
28644 return resultobj;
28645 fail:
28646 return NULL;
28647 }
28648
28649
28650 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28651 PyObject *resultobj = 0;
28652 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28653 wxDouble arg2 ;
28654 wxDouble arg3 ;
28655 int arg4 = (int) wxODDEVEN_RULE ;
28656 bool result;
28657 void *argp1 = 0 ;
28658 int res1 = 0 ;
28659 double val2 ;
28660 int ecode2 = 0 ;
28661 double val3 ;
28662 int ecode3 = 0 ;
28663 int val4 ;
28664 int ecode4 = 0 ;
28665
28666 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
28667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28668 if (!SWIG_IsOK(res1)) {
28669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28670 }
28671 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28672 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
28673 if (!SWIG_IsOK(ecode2)) {
28674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
28675 }
28676 arg2 = static_cast< wxDouble >(val2);
28677 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
28678 if (!SWIG_IsOK(ecode3)) {
28679 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
28680 }
28681 arg3 = static_cast< wxDouble >(val3);
28682 if (swig_obj[3]) {
28683 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
28684 if (!SWIG_IsOK(ecode4)) {
28685 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
28686 }
28687 arg4 = static_cast< int >(val4);
28688 }
28689 {
28690 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
28691 if (PyErr_Occurred()) SWIG_fail;
28692 }
28693 {
28694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28695 }
28696 return resultobj;
28697 fail:
28698 return NULL;
28699 }
28700
28701
28702 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28703 PyObject *resultobj = 0;
28704 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
28705 wxPoint2D *arg2 = 0 ;
28706 int arg3 = (int) wxODDEVEN_RULE ;
28707 bool result;
28708 void *argp1 = 0 ;
28709 int res1 = 0 ;
28710 wxPoint2D temp2 ;
28711 int val3 ;
28712 int ecode3 = 0 ;
28713
28714 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28716 if (!SWIG_IsOK(res1)) {
28717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
28718 }
28719 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
28720 {
28721 arg2 = &temp2;
28722 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
28723 }
28724 if (swig_obj[2]) {
28725 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
28726 if (!SWIG_IsOK(ecode3)) {
28727 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
28728 }
28729 arg3 = static_cast< int >(val3);
28730 }
28731 {
28732 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2D const &)*arg2,arg3);
28733 if (PyErr_Occurred()) SWIG_fail;
28734 }
28735 {
28736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28737 }
28738 return resultobj;
28739 fail:
28740 return NULL;
28741 }
28742
28743
28744 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
28745 int argc;
28746 PyObject *argv[5];
28747
28748 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
28749 --argc;
28750 if ((argc >= 2) && (argc <= 3)) {
28751 int _v = 0;
28752 {
28753 {
28754 _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
28755 }
28756 }
28757 if (!_v) goto check_1;
28758 if (argc > 2) {
28759 {
28760 {
28761 int res = SWIG_AsVal_int(argv[2], NULL);
28762 _v = SWIG_CheckState(res);
28763 }
28764 }
28765 if (!_v) goto check_1;
28766 }
28767 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
28768 }
28769 check_1:
28770
28771 if ((argc >= 3) && (argc <= 4)) {
28772 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
28773 }
28774
28775 fail:
28776 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
28777 return NULL;
28778 }
28779
28780
28781 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28782 PyObject *obj;
28783 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28784 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
28785 return SWIG_Py_Void();
28786 }
28787
28788 SWIGINTERN int NullGraphicsPen_set(PyObject *) {
28789 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
28790 return 1;
28791 }
28792
28793
28794 SWIGINTERN PyObject *NullGraphicsPen_get(void) {
28795 PyObject *pyobj = 0;
28796
28797 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
28798 return pyobj;
28799 }
28800
28801
28802 SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
28803 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
28804 return 1;
28805 }
28806
28807
28808 SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
28809 PyObject *pyobj = 0;
28810
28811 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
28812 return pyobj;
28813 }
28814
28815
28816 SWIGINTERN int NullGraphicsFont_set(PyObject *) {
28817 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
28818 return 1;
28819 }
28820
28821
28822 SWIGINTERN PyObject *NullGraphicsFont_get(void) {
28823 PyObject *pyobj = 0;
28824
28825 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
28826 return pyobj;
28827 }
28828
28829
28830 SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
28831 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
28832 return 1;
28833 }
28834
28835
28836 SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
28837 PyObject *pyobj = 0;
28838
28839 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
28840 return pyobj;
28841 }
28842
28843
28844 SWIGINTERN int NullGraphicsPath_set(PyObject *) {
28845 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
28846 return 1;
28847 }
28848
28849
28850 SWIGINTERN PyObject *NullGraphicsPath_get(void) {
28851 PyObject *pyobj = 0;
28852
28853 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
28854 return pyobj;
28855 }
28856
28857
28858 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28859 PyObject *resultobj = 0;
28860 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28861 void *argp1 = 0 ;
28862 int res1 = 0 ;
28863 PyObject *swig_obj[1] ;
28864
28865 if (!args) SWIG_fail;
28866 swig_obj[0] = args;
28867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
28868 if (!SWIG_IsOK(res1)) {
28869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28870 }
28871 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28872 {
28873 delete arg1;
28874
28875 if (PyErr_Occurred()) SWIG_fail;
28876 }
28877 resultobj = SWIG_Py_Void();
28878 return resultobj;
28879 fail:
28880 return NULL;
28881 }
28882
28883
28884 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28885 PyObject *resultobj = 0;
28886 wxWindowDC *arg1 = 0 ;
28887 wxGraphicsContext *result = 0 ;
28888 void *argp1 = 0 ;
28889 int res1 = 0 ;
28890
28891 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
28893 if (!SWIG_IsOK(res1)) {
28894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28895 }
28896 if (!argp1) {
28897 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
28898 }
28899 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
28900 {
28901 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
28902 if (PyErr_Occurred()) SWIG_fail;
28903 }
28904 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28905 return resultobj;
28906 fail:
28907 return NULL;
28908 }
28909
28910
28911 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28912 PyObject *resultobj = 0;
28913 wxWindow *arg1 = (wxWindow *) 0 ;
28914 wxGraphicsContext *result = 0 ;
28915 void *argp1 = 0 ;
28916 int res1 = 0 ;
28917
28918 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
28919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28920 if (!SWIG_IsOK(res1)) {
28921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
28922 }
28923 arg1 = reinterpret_cast< wxWindow * >(argp1);
28924 {
28925 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
28926 if (PyErr_Occurred()) SWIG_fail;
28927 }
28928 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28929 return resultobj;
28930 fail:
28931 return NULL;
28932 }
28933
28934
28935 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
28936 int argc;
28937 PyObject *argv[2];
28938
28939 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
28940 --argc;
28941 if (argc == 1) {
28942 int _v = 0;
28943 {
28944 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
28945 _v = SWIG_CheckState(res);
28946 }
28947 if (!_v) goto check_1;
28948 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
28949 }
28950 check_1:
28951
28952 if (argc == 1) {
28953 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
28954 }
28955
28956 fail:
28957 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
28958 return NULL;
28959 }
28960
28961
28962 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28963 PyObject *resultobj = 0;
28964 wxGraphicsContext *result = 0 ;
28965
28966 if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail;
28967 {
28968 result = (wxGraphicsContext *)wxGraphicsContext::Create();
28969 if (PyErr_Occurred()) SWIG_fail;
28970 }
28971 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28972 return resultobj;
28973 fail:
28974 return NULL;
28975 }
28976
28977
28978 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28979 PyObject *resultobj = 0;
28980 void *arg1 = (void *) 0 ;
28981 wxGraphicsContext *result = 0 ;
28982 int res1 ;
28983 PyObject * obj0 = 0 ;
28984 char * kwnames[] = {
28985 (char *) "context", NULL
28986 };
28987
28988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
28989 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
28990 if (!SWIG_IsOK(res1)) {
28991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
28992 }
28993 {
28994 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
28995 if (PyErr_Occurred()) SWIG_fail;
28996 }
28997 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
28998 return resultobj;
28999 fail:
29000 return NULL;
29001 }
29002
29003
29004 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29005 PyObject *resultobj = 0;
29006 void *arg1 = (void *) 0 ;
29007 wxGraphicsContext *result = 0 ;
29008 int res1 ;
29009 PyObject * obj0 = 0 ;
29010 char * kwnames[] = {
29011 (char *) "window", NULL
29012 };
29013
29014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
29015 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
29016 if (!SWIG_IsOK(res1)) {
29017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
29018 }
29019 {
29020 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
29021 if (PyErr_Occurred()) SWIG_fail;
29022 }
29023 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29024 return resultobj;
29025 fail:
29026 return NULL;
29027 }
29028
29029
29030 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29031 PyObject *resultobj = 0;
29032 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29033 wxGraphicsPath result;
29034 void *argp1 = 0 ;
29035 int res1 = 0 ;
29036 PyObject *swig_obj[1] ;
29037
29038 if (!args) SWIG_fail;
29039 swig_obj[0] = args;
29040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29041 if (!SWIG_IsOK(res1)) {
29042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29043 }
29044 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29045 {
29046 result = (arg1)->CreatePath();
29047 if (PyErr_Occurred()) SWIG_fail;
29048 }
29049 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
29050 return resultobj;
29051 fail:
29052 return NULL;
29053 }
29054
29055
29056 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29057 PyObject *resultobj = 0;
29058 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29059 wxPen *arg2 = 0 ;
29060 wxGraphicsPen result;
29061 void *argp1 = 0 ;
29062 int res1 = 0 ;
29063 void *argp2 = 0 ;
29064 int res2 = 0 ;
29065 PyObject * obj0 = 0 ;
29066 PyObject * obj1 = 0 ;
29067 char * kwnames[] = {
29068 (char *) "self",(char *) "pen", NULL
29069 };
29070
29071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
29072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29073 if (!SWIG_IsOK(res1)) {
29074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29075 }
29076 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29077 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
29078 if (!SWIG_IsOK(res2)) {
29079 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
29080 }
29081 if (!argp2) {
29082 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
29083 }
29084 arg2 = reinterpret_cast< wxPen * >(argp2);
29085 {
29086 result = (arg1)->CreatePen((wxPen const &)*arg2);
29087 if (PyErr_Occurred()) SWIG_fail;
29088 }
29089 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
29090 return resultobj;
29091 fail:
29092 return NULL;
29093 }
29094
29095
29096 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29097 PyObject *resultobj = 0;
29098 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29099 wxBrush *arg2 = 0 ;
29100 wxGraphicsBrush result;
29101 void *argp1 = 0 ;
29102 int res1 = 0 ;
29103 void *argp2 = 0 ;
29104 int res2 = 0 ;
29105 PyObject * obj0 = 0 ;
29106 PyObject * obj1 = 0 ;
29107 char * kwnames[] = {
29108 (char *) "self",(char *) "brush", NULL
29109 };
29110
29111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
29112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29113 if (!SWIG_IsOK(res1)) {
29114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29115 }
29116 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29117 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
29118 if (!SWIG_IsOK(res2)) {
29119 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29120 }
29121 if (!argp2) {
29122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29123 }
29124 arg2 = reinterpret_cast< wxBrush * >(argp2);
29125 {
29126 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
29127 if (PyErr_Occurred()) SWIG_fail;
29128 }
29129 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
29130 return resultobj;
29131 fail:
29132 return NULL;
29133 }
29134
29135
29136 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29137 PyObject *resultobj = 0;
29138 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29139 wxDouble arg2 ;
29140 wxDouble arg3 ;
29141 wxDouble arg4 ;
29142 wxDouble arg5 ;
29143 wxColour *arg6 = 0 ;
29144 wxColour *arg7 = 0 ;
29145 wxGraphicsBrush result;
29146 void *argp1 = 0 ;
29147 int res1 = 0 ;
29148 double val2 ;
29149 int ecode2 = 0 ;
29150 double val3 ;
29151 int ecode3 = 0 ;
29152 double val4 ;
29153 int ecode4 = 0 ;
29154 double val5 ;
29155 int ecode5 = 0 ;
29156 wxColour temp6 ;
29157 wxColour temp7 ;
29158 PyObject * obj0 = 0 ;
29159 PyObject * obj1 = 0 ;
29160 PyObject * obj2 = 0 ;
29161 PyObject * obj3 = 0 ;
29162 PyObject * obj4 = 0 ;
29163 PyObject * obj5 = 0 ;
29164 PyObject * obj6 = 0 ;
29165 char * kwnames[] = {
29166 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
29167 };
29168
29169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29171 if (!SWIG_IsOK(res1)) {
29172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29173 }
29174 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29175 ecode2 = SWIG_AsVal_double(obj1, &val2);
29176 if (!SWIG_IsOK(ecode2)) {
29177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
29178 }
29179 arg2 = static_cast< wxDouble >(val2);
29180 ecode3 = SWIG_AsVal_double(obj2, &val3);
29181 if (!SWIG_IsOK(ecode3)) {
29182 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
29183 }
29184 arg3 = static_cast< wxDouble >(val3);
29185 ecode4 = SWIG_AsVal_double(obj3, &val4);
29186 if (!SWIG_IsOK(ecode4)) {
29187 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
29188 }
29189 arg4 = static_cast< wxDouble >(val4);
29190 ecode5 = SWIG_AsVal_double(obj4, &val5);
29191 if (!SWIG_IsOK(ecode5)) {
29192 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
29193 }
29194 arg5 = static_cast< wxDouble >(val5);
29195 {
29196 arg6 = &temp6;
29197 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
29198 }
29199 {
29200 arg7 = &temp7;
29201 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
29202 }
29203 {
29204 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
29205 if (PyErr_Occurred()) SWIG_fail;
29206 }
29207 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
29208 return resultobj;
29209 fail:
29210 return NULL;
29211 }
29212
29213
29214 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29215 PyObject *resultobj = 0;
29216 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29217 wxDouble arg2 ;
29218 wxDouble arg3 ;
29219 wxDouble arg4 ;
29220 wxDouble arg5 ;
29221 wxDouble arg6 ;
29222 wxColour *arg7 = 0 ;
29223 wxColour *arg8 = 0 ;
29224 wxGraphicsBrush result;
29225 void *argp1 = 0 ;
29226 int res1 = 0 ;
29227 double val2 ;
29228 int ecode2 = 0 ;
29229 double val3 ;
29230 int ecode3 = 0 ;
29231 double val4 ;
29232 int ecode4 = 0 ;
29233 double val5 ;
29234 int ecode5 = 0 ;
29235 double val6 ;
29236 int ecode6 = 0 ;
29237 wxColour temp7 ;
29238 wxColour temp8 ;
29239 PyObject * obj0 = 0 ;
29240 PyObject * obj1 = 0 ;
29241 PyObject * obj2 = 0 ;
29242 PyObject * obj3 = 0 ;
29243 PyObject * obj4 = 0 ;
29244 PyObject * obj5 = 0 ;
29245 PyObject * obj6 = 0 ;
29246 PyObject * obj7 = 0 ;
29247 char * kwnames[] = {
29248 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
29249 };
29250
29251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
29252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29253 if (!SWIG_IsOK(res1)) {
29254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29255 }
29256 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29257 ecode2 = SWIG_AsVal_double(obj1, &val2);
29258 if (!SWIG_IsOK(ecode2)) {
29259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
29260 }
29261 arg2 = static_cast< wxDouble >(val2);
29262 ecode3 = SWIG_AsVal_double(obj2, &val3);
29263 if (!SWIG_IsOK(ecode3)) {
29264 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
29265 }
29266 arg3 = static_cast< wxDouble >(val3);
29267 ecode4 = SWIG_AsVal_double(obj3, &val4);
29268 if (!SWIG_IsOK(ecode4)) {
29269 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
29270 }
29271 arg4 = static_cast< wxDouble >(val4);
29272 ecode5 = SWIG_AsVal_double(obj4, &val5);
29273 if (!SWIG_IsOK(ecode5)) {
29274 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
29275 }
29276 arg5 = static_cast< wxDouble >(val5);
29277 ecode6 = SWIG_AsVal_double(obj5, &val6);
29278 if (!SWIG_IsOK(ecode6)) {
29279 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
29280 }
29281 arg6 = static_cast< wxDouble >(val6);
29282 {
29283 arg7 = &temp7;
29284 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
29285 }
29286 {
29287 arg8 = &temp8;
29288 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
29289 }
29290 {
29291 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
29292 if (PyErr_Occurred()) SWIG_fail;
29293 }
29294 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
29295 return resultobj;
29296 fail:
29297 return NULL;
29298 }
29299
29300
29301 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29302 PyObject *resultobj = 0;
29303 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29304 wxFont *arg2 = 0 ;
29305 wxColour const &arg3_defvalue = *wxBLACK ;
29306 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
29307 wxGraphicsFont result;
29308 void *argp1 = 0 ;
29309 int res1 = 0 ;
29310 void *argp2 = 0 ;
29311 int res2 = 0 ;
29312 wxColour temp3 ;
29313 PyObject * obj0 = 0 ;
29314 PyObject * obj1 = 0 ;
29315 PyObject * obj2 = 0 ;
29316 char * kwnames[] = {
29317 (char *) "self",(char *) "font",(char *) "col", NULL
29318 };
29319
29320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29322 if (!SWIG_IsOK(res1)) {
29323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29324 }
29325 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29326 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
29327 if (!SWIG_IsOK(res2)) {
29328 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29329 }
29330 if (!argp2) {
29331 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29332 }
29333 arg2 = reinterpret_cast< wxFont * >(argp2);
29334 if (obj2) {
29335 {
29336 arg3 = &temp3;
29337 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29338 }
29339 }
29340 {
29341 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
29342 if (PyErr_Occurred()) SWIG_fail;
29343 }
29344 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
29345 return resultobj;
29346 fail:
29347 return NULL;
29348 }
29349
29350
29351 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29352 PyObject *resultobj = 0;
29353 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29354 wxDouble arg2 = (wxDouble) 1.0 ;
29355 wxDouble arg3 = (wxDouble) 0.0 ;
29356 wxDouble arg4 = (wxDouble) 0.0 ;
29357 wxDouble arg5 = (wxDouble) 1.0 ;
29358 wxDouble arg6 = (wxDouble) 0.0 ;
29359 wxDouble arg7 = (wxDouble) 0.0 ;
29360 wxGraphicsMatrix result;
29361 void *argp1 = 0 ;
29362 int res1 = 0 ;
29363 double val2 ;
29364 int ecode2 = 0 ;
29365 double val3 ;
29366 int ecode3 = 0 ;
29367 double val4 ;
29368 int ecode4 = 0 ;
29369 double val5 ;
29370 int ecode5 = 0 ;
29371 double val6 ;
29372 int ecode6 = 0 ;
29373 double val7 ;
29374 int ecode7 = 0 ;
29375 PyObject * obj0 = 0 ;
29376 PyObject * obj1 = 0 ;
29377 PyObject * obj2 = 0 ;
29378 PyObject * obj3 = 0 ;
29379 PyObject * obj4 = 0 ;
29380 PyObject * obj5 = 0 ;
29381 PyObject * obj6 = 0 ;
29382 char * kwnames[] = {
29383 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
29384 };
29385
29386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29388 if (!SWIG_IsOK(res1)) {
29389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29390 }
29391 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29392 if (obj1) {
29393 ecode2 = SWIG_AsVal_double(obj1, &val2);
29394 if (!SWIG_IsOK(ecode2)) {
29395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
29396 }
29397 arg2 = static_cast< wxDouble >(val2);
29398 }
29399 if (obj2) {
29400 ecode3 = SWIG_AsVal_double(obj2, &val3);
29401 if (!SWIG_IsOK(ecode3)) {
29402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
29403 }
29404 arg3 = static_cast< wxDouble >(val3);
29405 }
29406 if (obj3) {
29407 ecode4 = SWIG_AsVal_double(obj3, &val4);
29408 if (!SWIG_IsOK(ecode4)) {
29409 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
29410 }
29411 arg4 = static_cast< wxDouble >(val4);
29412 }
29413 if (obj4) {
29414 ecode5 = SWIG_AsVal_double(obj4, &val5);
29415 if (!SWIG_IsOK(ecode5)) {
29416 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
29417 }
29418 arg5 = static_cast< wxDouble >(val5);
29419 }
29420 if (obj5) {
29421 ecode6 = SWIG_AsVal_double(obj5, &val6);
29422 if (!SWIG_IsOK(ecode6)) {
29423 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
29424 }
29425 arg6 = static_cast< wxDouble >(val6);
29426 }
29427 if (obj6) {
29428 ecode7 = SWIG_AsVal_double(obj6, &val7);
29429 if (!SWIG_IsOK(ecode7)) {
29430 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
29431 }
29432 arg7 = static_cast< wxDouble >(val7);
29433 }
29434 {
29435 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
29436 if (PyErr_Occurred()) SWIG_fail;
29437 }
29438 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
29439 return resultobj;
29440 fail:
29441 return NULL;
29442 }
29443
29444
29445 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29446 PyObject *resultobj = 0;
29447 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29448 void *argp1 = 0 ;
29449 int res1 = 0 ;
29450 PyObject *swig_obj[1] ;
29451
29452 if (!args) SWIG_fail;
29453 swig_obj[0] = args;
29454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29455 if (!SWIG_IsOK(res1)) {
29456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29457 }
29458 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29459 {
29460 (arg1)->PushState();
29461 if (PyErr_Occurred()) SWIG_fail;
29462 }
29463 resultobj = SWIG_Py_Void();
29464 return resultobj;
29465 fail:
29466 return NULL;
29467 }
29468
29469
29470 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29471 PyObject *resultobj = 0;
29472 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29473 void *argp1 = 0 ;
29474 int res1 = 0 ;
29475 PyObject *swig_obj[1] ;
29476
29477 if (!args) SWIG_fail;
29478 swig_obj[0] = args;
29479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29480 if (!SWIG_IsOK(res1)) {
29481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29482 }
29483 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29484 {
29485 (arg1)->PopState();
29486 if (PyErr_Occurred()) SWIG_fail;
29487 }
29488 resultobj = SWIG_Py_Void();
29489 return resultobj;
29490 fail:
29491 return NULL;
29492 }
29493
29494
29495 SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29496 PyObject *resultobj = 0;
29497 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29498 wxRegion *arg2 = 0 ;
29499 void *argp1 = 0 ;
29500 int res1 = 0 ;
29501 void *argp2 = 0 ;
29502 int res2 = 0 ;
29503 PyObject * obj0 = 0 ;
29504 PyObject * obj1 = 0 ;
29505 char * kwnames[] = {
29506 (char *) "self",(char *) "region", NULL
29507 };
29508
29509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
29510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29511 if (!SWIG_IsOK(res1)) {
29512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29513 }
29514 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29515 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
29516 if (!SWIG_IsOK(res2)) {
29517 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
29518 }
29519 if (!argp2) {
29520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
29521 }
29522 arg2 = reinterpret_cast< wxRegion * >(argp2);
29523 {
29524 (arg1)->Clip((wxRegion const &)*arg2);
29525 if (PyErr_Occurred()) SWIG_fail;
29526 }
29527 resultobj = SWIG_Py_Void();
29528 return resultobj;
29529 fail:
29530 return NULL;
29531 }
29532
29533
29534 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29535 PyObject *resultobj = 0;
29536 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29537 wxDouble arg2 ;
29538 wxDouble arg3 ;
29539 wxDouble arg4 ;
29540 wxDouble arg5 ;
29541 void *argp1 = 0 ;
29542 int res1 = 0 ;
29543 double val2 ;
29544 int ecode2 = 0 ;
29545 double val3 ;
29546 int ecode3 = 0 ;
29547 double val4 ;
29548 int ecode4 = 0 ;
29549 double val5 ;
29550 int ecode5 = 0 ;
29551 PyObject * obj0 = 0 ;
29552 PyObject * obj1 = 0 ;
29553 PyObject * obj2 = 0 ;
29554 PyObject * obj3 = 0 ;
29555 PyObject * obj4 = 0 ;
29556 char * kwnames[] = {
29557 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29558 };
29559
29560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29562 if (!SWIG_IsOK(res1)) {
29563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29564 }
29565 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29566 ecode2 = SWIG_AsVal_double(obj1, &val2);
29567 if (!SWIG_IsOK(ecode2)) {
29568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
29569 }
29570 arg2 = static_cast< wxDouble >(val2);
29571 ecode3 = SWIG_AsVal_double(obj2, &val3);
29572 if (!SWIG_IsOK(ecode3)) {
29573 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
29574 }
29575 arg3 = static_cast< wxDouble >(val3);
29576 ecode4 = SWIG_AsVal_double(obj3, &val4);
29577 if (!SWIG_IsOK(ecode4)) {
29578 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
29579 }
29580 arg4 = static_cast< wxDouble >(val4);
29581 ecode5 = SWIG_AsVal_double(obj4, &val5);
29582 if (!SWIG_IsOK(ecode5)) {
29583 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
29584 }
29585 arg5 = static_cast< wxDouble >(val5);
29586 {
29587 (arg1)->Clip(arg2,arg3,arg4,arg5);
29588 if (PyErr_Occurred()) SWIG_fail;
29589 }
29590 resultobj = SWIG_Py_Void();
29591 return resultobj;
29592 fail:
29593 return NULL;
29594 }
29595
29596
29597 SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29598 PyObject *resultobj = 0;
29599 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29600 void *argp1 = 0 ;
29601 int res1 = 0 ;
29602 PyObject *swig_obj[1] ;
29603
29604 if (!args) SWIG_fail;
29605 swig_obj[0] = args;
29606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29607 if (!SWIG_IsOK(res1)) {
29608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29609 }
29610 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29611 {
29612 (arg1)->ResetClip();
29613 if (PyErr_Occurred()) SWIG_fail;
29614 }
29615 resultobj = SWIG_Py_Void();
29616 return resultobj;
29617 fail:
29618 return NULL;
29619 }
29620
29621
29622 SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29623 PyObject *resultobj = 0;
29624 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29625 void *result = 0 ;
29626 void *argp1 = 0 ;
29627 int res1 = 0 ;
29628 PyObject *swig_obj[1] ;
29629
29630 if (!args) SWIG_fail;
29631 swig_obj[0] = args;
29632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29633 if (!SWIG_IsOK(res1)) {
29634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29635 }
29636 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29637 {
29638 result = (void *)(arg1)->GetNativeContext();
29639 if (PyErr_Occurred()) SWIG_fail;
29640 }
29641 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
29642 return resultobj;
29643 fail:
29644 return NULL;
29645 }
29646
29647
29648 SWIGINTERN PyObject *_wrap_GraphicsContext_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29649 PyObject *resultobj = 0;
29650 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29651 int result;
29652 void *argp1 = 0 ;
29653 int res1 = 0 ;
29654 PyObject *swig_obj[1] ;
29655
29656 if (!args) SWIG_fail;
29657 swig_obj[0] = args;
29658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29659 if (!SWIG_IsOK(res1)) {
29660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29661 }
29662 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29663 {
29664 result = (int)((wxGraphicsContext const *)arg1)->GetLogicalFunction();
29665 if (PyErr_Occurred()) SWIG_fail;
29666 }
29667 resultobj = SWIG_From_int(static_cast< int >(result));
29668 return resultobj;
29669 fail:
29670 return NULL;
29671 }
29672
29673
29674 SWIGINTERN PyObject *_wrap_GraphicsContext_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29675 PyObject *resultobj = 0;
29676 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29677 int arg2 ;
29678 bool result;
29679 void *argp1 = 0 ;
29680 int res1 = 0 ;
29681 int val2 ;
29682 int ecode2 = 0 ;
29683 PyObject * obj0 = 0 ;
29684 PyObject * obj1 = 0 ;
29685 char * kwnames[] = {
29686 (char *) "self",(char *) "function", NULL
29687 };
29688
29689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
29690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29691 if (!SWIG_IsOK(res1)) {
29692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29693 }
29694 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29695 ecode2 = SWIG_AsVal_int(obj1, &val2);
29696 if (!SWIG_IsOK(ecode2)) {
29697 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
29698 }
29699 arg2 = static_cast< int >(val2);
29700 {
29701 result = (bool)(arg1)->SetLogicalFunction(arg2);
29702 if (PyErr_Occurred()) SWIG_fail;
29703 }
29704 {
29705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29706 }
29707 return resultobj;
29708 fail:
29709 return NULL;
29710 }
29711
29712
29713 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29714 PyObject *resultobj = 0;
29715 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29716 wxDouble arg2 ;
29717 wxDouble arg3 ;
29718 void *argp1 = 0 ;
29719 int res1 = 0 ;
29720 double val2 ;
29721 int ecode2 = 0 ;
29722 double val3 ;
29723 int ecode3 = 0 ;
29724 PyObject * obj0 = 0 ;
29725 PyObject * obj1 = 0 ;
29726 PyObject * obj2 = 0 ;
29727 char * kwnames[] = {
29728 (char *) "self",(char *) "dx",(char *) "dy", NULL
29729 };
29730
29731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29733 if (!SWIG_IsOK(res1)) {
29734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29735 }
29736 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29737 ecode2 = SWIG_AsVal_double(obj1, &val2);
29738 if (!SWIG_IsOK(ecode2)) {
29739 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
29740 }
29741 arg2 = static_cast< wxDouble >(val2);
29742 ecode3 = SWIG_AsVal_double(obj2, &val3);
29743 if (!SWIG_IsOK(ecode3)) {
29744 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
29745 }
29746 arg3 = static_cast< wxDouble >(val3);
29747 {
29748 (arg1)->Translate(arg2,arg3);
29749 if (PyErr_Occurred()) SWIG_fail;
29750 }
29751 resultobj = SWIG_Py_Void();
29752 return resultobj;
29753 fail:
29754 return NULL;
29755 }
29756
29757
29758 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29759 PyObject *resultobj = 0;
29760 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29761 wxDouble arg2 ;
29762 wxDouble arg3 ;
29763 void *argp1 = 0 ;
29764 int res1 = 0 ;
29765 double val2 ;
29766 int ecode2 = 0 ;
29767 double val3 ;
29768 int ecode3 = 0 ;
29769 PyObject * obj0 = 0 ;
29770 PyObject * obj1 = 0 ;
29771 PyObject * obj2 = 0 ;
29772 char * kwnames[] = {
29773 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
29774 };
29775
29776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29778 if (!SWIG_IsOK(res1)) {
29779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29780 }
29781 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29782 ecode2 = SWIG_AsVal_double(obj1, &val2);
29783 if (!SWIG_IsOK(ecode2)) {
29784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
29785 }
29786 arg2 = static_cast< wxDouble >(val2);
29787 ecode3 = SWIG_AsVal_double(obj2, &val3);
29788 if (!SWIG_IsOK(ecode3)) {
29789 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
29790 }
29791 arg3 = static_cast< wxDouble >(val3);
29792 {
29793 (arg1)->Scale(arg2,arg3);
29794 if (PyErr_Occurred()) SWIG_fail;
29795 }
29796 resultobj = SWIG_Py_Void();
29797 return resultobj;
29798 fail:
29799 return NULL;
29800 }
29801
29802
29803 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29804 PyObject *resultobj = 0;
29805 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29806 wxDouble arg2 ;
29807 void *argp1 = 0 ;
29808 int res1 = 0 ;
29809 double val2 ;
29810 int ecode2 = 0 ;
29811 PyObject * obj0 = 0 ;
29812 PyObject * obj1 = 0 ;
29813 char * kwnames[] = {
29814 (char *) "self",(char *) "angle", NULL
29815 };
29816
29817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
29818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29819 if (!SWIG_IsOK(res1)) {
29820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29821 }
29822 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29823 ecode2 = SWIG_AsVal_double(obj1, &val2);
29824 if (!SWIG_IsOK(ecode2)) {
29825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
29826 }
29827 arg2 = static_cast< wxDouble >(val2);
29828 {
29829 (arg1)->Rotate(arg2);
29830 if (PyErr_Occurred()) SWIG_fail;
29831 }
29832 resultobj = SWIG_Py_Void();
29833 return resultobj;
29834 fail:
29835 return NULL;
29836 }
29837
29838
29839 SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29840 PyObject *resultobj = 0;
29841 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29842 wxGraphicsMatrix *arg2 = 0 ;
29843 void *argp1 = 0 ;
29844 int res1 = 0 ;
29845 void *argp2 = 0 ;
29846 int res2 = 0 ;
29847 PyObject * obj0 = 0 ;
29848 PyObject * obj1 = 0 ;
29849 char * kwnames[] = {
29850 (char *) "self",(char *) "matrix", NULL
29851 };
29852
29853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
29854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29855 if (!SWIG_IsOK(res1)) {
29856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29857 }
29858 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29859 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29860 if (!SWIG_IsOK(res2)) {
29861 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29862 }
29863 if (!argp2) {
29864 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29865 }
29866 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29867 {
29868 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
29869 if (PyErr_Occurred()) SWIG_fail;
29870 }
29871 resultobj = SWIG_Py_Void();
29872 return resultobj;
29873 fail:
29874 return NULL;
29875 }
29876
29877
29878 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29879 PyObject *resultobj = 0;
29880 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29881 wxGraphicsMatrix *arg2 = 0 ;
29882 void *argp1 = 0 ;
29883 int res1 = 0 ;
29884 void *argp2 = 0 ;
29885 int res2 = 0 ;
29886 PyObject * obj0 = 0 ;
29887 PyObject * obj1 = 0 ;
29888 char * kwnames[] = {
29889 (char *) "self",(char *) "matrix", NULL
29890 };
29891
29892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
29893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29894 if (!SWIG_IsOK(res1)) {
29895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29896 }
29897 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29898 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
29899 if (!SWIG_IsOK(res2)) {
29900 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29901 }
29902 if (!argp2) {
29903 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
29904 }
29905 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
29906 {
29907 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
29908 if (PyErr_Occurred()) SWIG_fail;
29909 }
29910 resultobj = SWIG_Py_Void();
29911 return resultobj;
29912 fail:
29913 return NULL;
29914 }
29915
29916
29917 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29918 PyObject *resultobj = 0;
29919 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29920 wxGraphicsMatrix result;
29921 void *argp1 = 0 ;
29922 int res1 = 0 ;
29923 PyObject *swig_obj[1] ;
29924
29925 if (!args) SWIG_fail;
29926 swig_obj[0] = args;
29927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29928 if (!SWIG_IsOK(res1)) {
29929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29930 }
29931 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29932 {
29933 result = ((wxGraphicsContext const *)arg1)->GetTransform();
29934 if (PyErr_Occurred()) SWIG_fail;
29935 }
29936 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
29937 return resultobj;
29938 fail:
29939 return NULL;
29940 }
29941
29942
29943 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29944 PyObject *resultobj = 0;
29945 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29946 wxGraphicsPen *arg2 = 0 ;
29947 void *argp1 = 0 ;
29948 int res1 = 0 ;
29949 void *argp2 = 0 ;
29950 int res2 = 0 ;
29951
29952 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29954 if (!SWIG_IsOK(res1)) {
29955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29956 }
29957 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29958 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
29959 if (!SWIG_IsOK(res2)) {
29960 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29961 }
29962 if (!argp2) {
29963 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
29964 }
29965 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
29966 {
29967 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
29968 if (PyErr_Occurred()) SWIG_fail;
29969 }
29970 resultobj = SWIG_Py_Void();
29971 return resultobj;
29972 fail:
29973 return NULL;
29974 }
29975
29976
29977 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29978 PyObject *resultobj = 0;
29979 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29980 wxPen *arg2 = 0 ;
29981 void *argp1 = 0 ;
29982 int res1 = 0 ;
29983 void *argp2 = 0 ;
29984 int res2 = 0 ;
29985
29986 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29988 if (!SWIG_IsOK(res1)) {
29989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29990 }
29991 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29992 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
29993 if (!SWIG_IsOK(res2)) {
29994 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29995 }
29996 if (!argp2) {
29997 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
29998 }
29999 arg2 = reinterpret_cast< wxPen * >(argp2);
30000 {
30001 (arg1)->SetPen((wxPen const &)*arg2);
30002 if (PyErr_Occurred()) SWIG_fail;
30003 }
30004 resultobj = SWIG_Py_Void();
30005 return resultobj;
30006 fail:
30007 return NULL;
30008 }
30009
30010
30011 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
30012 int argc;
30013 PyObject *argv[3];
30014
30015 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
30016 --argc;
30017 if (argc == 2) {
30018 int _v = 0;
30019 {
30020 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
30021 _v = SWIG_CheckState(res);
30022 }
30023 if (!_v) goto check_1;
30024 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
30025 }
30026 check_1:
30027
30028 if (argc == 2) {
30029 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
30030 }
30031
30032 fail:
30033 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
30034 return NULL;
30035 }
30036
30037
30038 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30039 PyObject *resultobj = 0;
30040 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30041 wxGraphicsBrush *arg2 = 0 ;
30042 void *argp1 = 0 ;
30043 int res1 = 0 ;
30044 void *argp2 = 0 ;
30045 int res2 = 0 ;
30046
30047 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30049 if (!SWIG_IsOK(res1)) {
30050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30051 }
30052 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30053 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
30054 if (!SWIG_IsOK(res2)) {
30055 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
30056 }
30057 if (!argp2) {
30058 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
30059 }
30060 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
30061 {
30062 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
30063 if (PyErr_Occurred()) SWIG_fail;
30064 }
30065 resultobj = SWIG_Py_Void();
30066 return resultobj;
30067 fail:
30068 return NULL;
30069 }
30070
30071
30072 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30073 PyObject *resultobj = 0;
30074 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30075 wxBrush *arg2 = 0 ;
30076 void *argp1 = 0 ;
30077 int res1 = 0 ;
30078 void *argp2 = 0 ;
30079 int res2 = 0 ;
30080
30081 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30083 if (!SWIG_IsOK(res1)) {
30084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30085 }
30086 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30087 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30088 if (!SWIG_IsOK(res2)) {
30089 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30090 }
30091 if (!argp2) {
30092 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30093 }
30094 arg2 = reinterpret_cast< wxBrush * >(argp2);
30095 {
30096 (arg1)->SetBrush((wxBrush const &)*arg2);
30097 if (PyErr_Occurred()) SWIG_fail;
30098 }
30099 resultobj = SWIG_Py_Void();
30100 return resultobj;
30101 fail:
30102 return NULL;
30103 }
30104
30105
30106 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
30107 int argc;
30108 PyObject *argv[3];
30109
30110 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
30111 --argc;
30112 if (argc == 2) {
30113 int _v = 0;
30114 {
30115 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
30116 _v = SWIG_CheckState(res);
30117 }
30118 if (!_v) goto check_1;
30119 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
30120 }
30121 check_1:
30122
30123 if (argc == 2) {
30124 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
30125 }
30126
30127 fail:
30128 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
30129 return NULL;
30130 }
30131
30132
30133 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30134 PyObject *resultobj = 0;
30135 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30136 wxGraphicsFont *arg2 = 0 ;
30137 void *argp1 = 0 ;
30138 int res1 = 0 ;
30139 void *argp2 = 0 ;
30140 int res2 = 0 ;
30141
30142 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30144 if (!SWIG_IsOK(res1)) {
30145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30146 }
30147 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30148 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
30149 if (!SWIG_IsOK(res2)) {
30150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
30151 }
30152 if (!argp2) {
30153 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
30154 }
30155 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
30156 {
30157 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
30158 if (PyErr_Occurred()) SWIG_fail;
30159 }
30160 resultobj = SWIG_Py_Void();
30161 return resultobj;
30162 fail:
30163 return NULL;
30164 }
30165
30166
30167 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30168 PyObject *resultobj = 0;
30169 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30170 wxFont *arg2 = 0 ;
30171 wxColour const &arg3_defvalue = *wxBLACK ;
30172 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30173 void *argp1 = 0 ;
30174 int res1 = 0 ;
30175 void *argp2 = 0 ;
30176 int res2 = 0 ;
30177 wxColour temp3 ;
30178
30179 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
30180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30181 if (!SWIG_IsOK(res1)) {
30182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30183 }
30184 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30185 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30186 if (!SWIG_IsOK(res2)) {
30187 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30188 }
30189 if (!argp2) {
30190 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30191 }
30192 arg2 = reinterpret_cast< wxFont * >(argp2);
30193 if (swig_obj[2]) {
30194 {
30195 arg3 = &temp3;
30196 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
30197 }
30198 }
30199 {
30200 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30201 if (PyErr_Occurred()) SWIG_fail;
30202 }
30203 resultobj = SWIG_Py_Void();
30204 return resultobj;
30205 fail:
30206 return NULL;
30207 }
30208
30209
30210 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
30211 int argc;
30212 PyObject *argv[4];
30213
30214 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
30215 --argc;
30216 if (argc == 2) {
30217 int _v = 0;
30218 {
30219 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
30220 _v = SWIG_CheckState(res);
30221 }
30222 if (!_v) goto check_1;
30223 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
30224 }
30225 check_1:
30226
30227 if ((argc >= 2) && (argc <= 3)) {
30228 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
30229 }
30230
30231 fail:
30232 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
30233 return NULL;
30234 }
30235
30236
30237 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30238 PyObject *resultobj = 0;
30239 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30240 wxGraphicsPath *arg2 = 0 ;
30241 void *argp1 = 0 ;
30242 int res1 = 0 ;
30243 void *argp2 = 0 ;
30244 int res2 = 0 ;
30245 PyObject * obj0 = 0 ;
30246 PyObject * obj1 = 0 ;
30247 char * kwnames[] = {
30248 (char *) "self",(char *) "path", NULL
30249 };
30250
30251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
30252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30253 if (!SWIG_IsOK(res1)) {
30254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30255 }
30256 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30257 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
30258 if (!SWIG_IsOK(res2)) {
30259 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
30260 }
30261 if (!argp2) {
30262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
30263 }
30264 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
30265 {
30266 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
30267 if (PyErr_Occurred()) SWIG_fail;
30268 }
30269 resultobj = SWIG_Py_Void();
30270 return resultobj;
30271 fail:
30272 return NULL;
30273 }
30274
30275
30276 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30277 PyObject *resultobj = 0;
30278 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30279 wxGraphicsPath *arg2 = 0 ;
30280 int arg3 = (int) wxODDEVEN_RULE ;
30281 void *argp1 = 0 ;
30282 int res1 = 0 ;
30283 void *argp2 = 0 ;
30284 int res2 = 0 ;
30285 int val3 ;
30286 int ecode3 = 0 ;
30287 PyObject * obj0 = 0 ;
30288 PyObject * obj1 = 0 ;
30289 PyObject * obj2 = 0 ;
30290 char * kwnames[] = {
30291 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
30292 };
30293
30294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30296 if (!SWIG_IsOK(res1)) {
30297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30298 }
30299 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30300 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
30301 if (!SWIG_IsOK(res2)) {
30302 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
30303 }
30304 if (!argp2) {
30305 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
30306 }
30307 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
30308 if (obj2) {
30309 ecode3 = SWIG_AsVal_int(obj2, &val3);
30310 if (!SWIG_IsOK(ecode3)) {
30311 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
30312 }
30313 arg3 = static_cast< int >(val3);
30314 }
30315 {
30316 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
30317 if (PyErr_Occurred()) SWIG_fail;
30318 }
30319 resultobj = SWIG_Py_Void();
30320 return resultobj;
30321 fail:
30322 return NULL;
30323 }
30324
30325
30326 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30327 PyObject *resultobj = 0;
30328 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30329 wxGraphicsPath *arg2 = 0 ;
30330 int arg3 = (int) wxODDEVEN_RULE ;
30331 void *argp1 = 0 ;
30332 int res1 = 0 ;
30333 void *argp2 = 0 ;
30334 int res2 = 0 ;
30335 int val3 ;
30336 int ecode3 = 0 ;
30337 PyObject * obj0 = 0 ;
30338 PyObject * obj1 = 0 ;
30339 PyObject * obj2 = 0 ;
30340 char * kwnames[] = {
30341 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
30342 };
30343
30344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30346 if (!SWIG_IsOK(res1)) {
30347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30348 }
30349 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30350 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
30351 if (!SWIG_IsOK(res2)) {
30352 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
30353 }
30354 if (!argp2) {
30355 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
30356 }
30357 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
30358 if (obj2) {
30359 ecode3 = SWIG_AsVal_int(obj2, &val3);
30360 if (!SWIG_IsOK(ecode3)) {
30361 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
30362 }
30363 arg3 = static_cast< int >(val3);
30364 }
30365 {
30366 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
30367 if (PyErr_Occurred()) SWIG_fail;
30368 }
30369 resultobj = SWIG_Py_Void();
30370 return resultobj;
30371 fail:
30372 return NULL;
30373 }
30374
30375
30376 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30377 PyObject *resultobj = 0;
30378 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30379 wxString *arg2 = 0 ;
30380 wxDouble arg3 ;
30381 wxDouble arg4 ;
30382 wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ;
30383 wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ;
30384 void *argp1 = 0 ;
30385 int res1 = 0 ;
30386 bool temp2 = false ;
30387 double val3 ;
30388 int ecode3 = 0 ;
30389 double val4 ;
30390 int ecode4 = 0 ;
30391 void *argp5 = 0 ;
30392 int res5 = 0 ;
30393 PyObject * obj0 = 0 ;
30394 PyObject * obj1 = 0 ;
30395 PyObject * obj2 = 0 ;
30396 PyObject * obj3 = 0 ;
30397 PyObject * obj4 = 0 ;
30398 char * kwnames[] = {
30399 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL
30400 };
30401
30402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30404 if (!SWIG_IsOK(res1)) {
30405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30406 }
30407 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30408 {
30409 arg2 = wxString_in_helper(obj1);
30410 if (arg2 == NULL) SWIG_fail;
30411 temp2 = true;
30412 }
30413 ecode3 = SWIG_AsVal_double(obj2, &val3);
30414 if (!SWIG_IsOK(ecode3)) {
30415 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
30416 }
30417 arg3 = static_cast< wxDouble >(val3);
30418 ecode4 = SWIG_AsVal_double(obj3, &val4);
30419 if (!SWIG_IsOK(ecode4)) {
30420 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
30421 }
30422 arg4 = static_cast< wxDouble >(val4);
30423 if (obj4) {
30424 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
30425 if (!SWIG_IsOK(res5)) {
30426 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
30427 }
30428 if (!argp5) {
30429 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
30430 }
30431 arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5);
30432 }
30433 {
30434 wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5);
30435 if (PyErr_Occurred()) SWIG_fail;
30436 }
30437 resultobj = SWIG_Py_Void();
30438 {
30439 if (temp2)
30440 delete arg2;
30441 }
30442 return resultobj;
30443 fail:
30444 {
30445 if (temp2)
30446 delete arg2;
30447 }
30448 return NULL;
30449 }
30450
30451
30452 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30453 PyObject *resultobj = 0;
30454 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30455 wxString *arg2 = 0 ;
30456 wxDouble arg3 ;
30457 wxDouble arg4 ;
30458 wxDouble arg5 ;
30459 wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ;
30460 wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ;
30461 void *argp1 = 0 ;
30462 int res1 = 0 ;
30463 bool temp2 = false ;
30464 double val3 ;
30465 int ecode3 = 0 ;
30466 double val4 ;
30467 int ecode4 = 0 ;
30468 double val5 ;
30469 int ecode5 = 0 ;
30470 void *argp6 = 0 ;
30471 int res6 = 0 ;
30472 PyObject * obj0 = 0 ;
30473 PyObject * obj1 = 0 ;
30474 PyObject * obj2 = 0 ;
30475 PyObject * obj3 = 0 ;
30476 PyObject * obj4 = 0 ;
30477 PyObject * obj5 = 0 ;
30478 char * kwnames[] = {
30479 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL
30480 };
30481
30482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30484 if (!SWIG_IsOK(res1)) {
30485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30486 }
30487 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30488 {
30489 arg2 = wxString_in_helper(obj1);
30490 if (arg2 == NULL) SWIG_fail;
30491 temp2 = true;
30492 }
30493 ecode3 = SWIG_AsVal_double(obj2, &val3);
30494 if (!SWIG_IsOK(ecode3)) {
30495 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
30496 }
30497 arg3 = static_cast< wxDouble >(val3);
30498 ecode4 = SWIG_AsVal_double(obj3, &val4);
30499 if (!SWIG_IsOK(ecode4)) {
30500 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
30501 }
30502 arg4 = static_cast< wxDouble >(val4);
30503 ecode5 = SWIG_AsVal_double(obj4, &val5);
30504 if (!SWIG_IsOK(ecode5)) {
30505 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
30506 }
30507 arg5 = static_cast< wxDouble >(val5);
30508 if (obj5) {
30509 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
30510 if (!SWIG_IsOK(res6)) {
30511 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
30512 }
30513 if (!argp6) {
30514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
30515 }
30516 arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6);
30517 }
30518 {
30519 wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6);
30520 if (PyErr_Occurred()) SWIG_fail;
30521 }
30522 resultobj = SWIG_Py_Void();
30523 {
30524 if (temp2)
30525 delete arg2;
30526 }
30527 return resultobj;
30528 fail:
30529 {
30530 if (temp2)
30531 delete arg2;
30532 }
30533 return NULL;
30534 }
30535
30536
30537 SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30538 PyObject *resultobj = 0;
30539 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30540 wxString *arg2 = 0 ;
30541 wxDouble *arg3 = (wxDouble *) 0 ;
30542 wxDouble *arg4 = (wxDouble *) 0 ;
30543 wxDouble *arg5 = (wxDouble *) 0 ;
30544 wxDouble *arg6 = (wxDouble *) 0 ;
30545 void *argp1 = 0 ;
30546 int res1 = 0 ;
30547 bool temp2 = false ;
30548 wxDouble temp3 ;
30549 int res3 = SWIG_TMPOBJ ;
30550 wxDouble temp4 ;
30551 int res4 = SWIG_TMPOBJ ;
30552 wxDouble temp5 ;
30553 int res5 = SWIG_TMPOBJ ;
30554 wxDouble temp6 ;
30555 int res6 = SWIG_TMPOBJ ;
30556 PyObject * obj0 = 0 ;
30557 PyObject * obj1 = 0 ;
30558 char * kwnames[] = {
30559 (char *) "self",(char *) "text", NULL
30560 };
30561
30562 arg3 = &temp3;
30563 arg4 = &temp4;
30564 arg5 = &temp5;
30565 arg6 = &temp6;
30566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
30567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30568 if (!SWIG_IsOK(res1)) {
30569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
30570 }
30571 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30572 {
30573 arg2 = wxString_in_helper(obj1);
30574 if (arg2 == NULL) SWIG_fail;
30575 temp2 = true;
30576 }
30577 {
30578 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
30579 if (PyErr_Occurred()) SWIG_fail;
30580 }
30581 resultobj = SWIG_Py_Void();
30582 if (SWIG_IsTmpObj(res3)) {
30583 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
30584 } else {
30585 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30586 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
30587 }
30588 if (SWIG_IsTmpObj(res4)) {
30589 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
30590 } else {
30591 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30592 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
30593 }
30594 if (SWIG_IsTmpObj(res5)) {
30595 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
30596 } else {
30597 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30598 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
30599 }
30600 if (SWIG_IsTmpObj(res6)) {
30601 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
30602 } else {
30603 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30604 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
30605 }
30606 {
30607 if (temp2)
30608 delete arg2;
30609 }
30610 return resultobj;
30611 fail:
30612 {
30613 if (temp2)
30614 delete arg2;
30615 }
30616 return NULL;
30617 }
30618
30619
30620 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30621 PyObject *resultobj = 0;
30622 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30623 wxString *arg2 = 0 ;
30624 PyObject *result = 0 ;
30625 void *argp1 = 0 ;
30626 int res1 = 0 ;
30627 bool temp2 = false ;
30628 PyObject * obj0 = 0 ;
30629 PyObject * obj1 = 0 ;
30630 char * kwnames[] = {
30631 (char *) "self",(char *) "text", NULL
30632 };
30633
30634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
30635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30636 if (!SWIG_IsOK(res1)) {
30637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30638 }
30639 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30640 {
30641 arg2 = wxString_in_helper(obj1);
30642 if (arg2 == NULL) SWIG_fail;
30643 temp2 = true;
30644 }
30645 {
30646 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
30647 if (PyErr_Occurred()) SWIG_fail;
30648 }
30649 resultobj = result;
30650 {
30651 if (temp2)
30652 delete arg2;
30653 }
30654 return resultobj;
30655 fail:
30656 {
30657 if (temp2)
30658 delete arg2;
30659 }
30660 return NULL;
30661 }
30662
30663
30664 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30665 PyObject *resultobj = 0;
30666 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30667 wxString *arg2 = 0 ;
30668 wxArrayDouble result;
30669 void *argp1 = 0 ;
30670 int res1 = 0 ;
30671 bool temp2 = false ;
30672 PyObject * obj0 = 0 ;
30673 PyObject * obj1 = 0 ;
30674 char * kwnames[] = {
30675 (char *) "self",(char *) "text", NULL
30676 };
30677
30678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
30679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30680 if (!SWIG_IsOK(res1)) {
30681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30682 }
30683 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30684 {
30685 arg2 = wxString_in_helper(obj1);
30686 if (arg2 == NULL) SWIG_fail;
30687 temp2 = true;
30688 }
30689 {
30690 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
30691 if (PyErr_Occurred()) SWIG_fail;
30692 }
30693 {
30694 resultobj = wxArrayDouble2PyList_helper(result);
30695 }
30696 {
30697 if (temp2)
30698 delete arg2;
30699 }
30700 return resultobj;
30701 fail:
30702 {
30703 if (temp2)
30704 delete arg2;
30705 }
30706 return NULL;
30707 }
30708
30709
30710 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30711 PyObject *resultobj = 0;
30712 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30713 wxBitmap *arg2 = 0 ;
30714 wxDouble arg3 ;
30715 wxDouble arg4 ;
30716 wxDouble arg5 ;
30717 wxDouble arg6 ;
30718 void *argp1 = 0 ;
30719 int res1 = 0 ;
30720 void *argp2 = 0 ;
30721 int res2 = 0 ;
30722 double val3 ;
30723 int ecode3 = 0 ;
30724 double val4 ;
30725 int ecode4 = 0 ;
30726 double val5 ;
30727 int ecode5 = 0 ;
30728 double val6 ;
30729 int ecode6 = 0 ;
30730 PyObject * obj0 = 0 ;
30731 PyObject * obj1 = 0 ;
30732 PyObject * obj2 = 0 ;
30733 PyObject * obj3 = 0 ;
30734 PyObject * obj4 = 0 ;
30735 PyObject * obj5 = 0 ;
30736 char * kwnames[] = {
30737 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30738 };
30739
30740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30742 if (!SWIG_IsOK(res1)) {
30743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30744 }
30745 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30746 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30747 if (!SWIG_IsOK(res2)) {
30748 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30749 }
30750 if (!argp2) {
30751 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30752 }
30753 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30754 ecode3 = SWIG_AsVal_double(obj2, &val3);
30755 if (!SWIG_IsOK(ecode3)) {
30756 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
30757 }
30758 arg3 = static_cast< wxDouble >(val3);
30759 ecode4 = SWIG_AsVal_double(obj3, &val4);
30760 if (!SWIG_IsOK(ecode4)) {
30761 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
30762 }
30763 arg4 = static_cast< wxDouble >(val4);
30764 ecode5 = SWIG_AsVal_double(obj4, &val5);
30765 if (!SWIG_IsOK(ecode5)) {
30766 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
30767 }
30768 arg5 = static_cast< wxDouble >(val5);
30769 ecode6 = SWIG_AsVal_double(obj5, &val6);
30770 if (!SWIG_IsOK(ecode6)) {
30771 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
30772 }
30773 arg6 = static_cast< wxDouble >(val6);
30774 {
30775 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
30776 if (PyErr_Occurred()) SWIG_fail;
30777 }
30778 resultobj = SWIG_Py_Void();
30779 return resultobj;
30780 fail:
30781 return NULL;
30782 }
30783
30784
30785 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30786 PyObject *resultobj = 0;
30787 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30788 wxIcon *arg2 = 0 ;
30789 wxDouble arg3 ;
30790 wxDouble arg4 ;
30791 wxDouble arg5 ;
30792 wxDouble arg6 ;
30793 void *argp1 = 0 ;
30794 int res1 = 0 ;
30795 void *argp2 = 0 ;
30796 int res2 = 0 ;
30797 double val3 ;
30798 int ecode3 = 0 ;
30799 double val4 ;
30800 int ecode4 = 0 ;
30801 double val5 ;
30802 int ecode5 = 0 ;
30803 double val6 ;
30804 int ecode6 = 0 ;
30805 PyObject * obj0 = 0 ;
30806 PyObject * obj1 = 0 ;
30807 PyObject * obj2 = 0 ;
30808 PyObject * obj3 = 0 ;
30809 PyObject * obj4 = 0 ;
30810 PyObject * obj5 = 0 ;
30811 char * kwnames[] = {
30812 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
30813 };
30814
30815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30817 if (!SWIG_IsOK(res1)) {
30818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30819 }
30820 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30821 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30822 if (!SWIG_IsOK(res2)) {
30823 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30824 }
30825 if (!argp2) {
30826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30827 }
30828 arg2 = reinterpret_cast< wxIcon * >(argp2);
30829 ecode3 = SWIG_AsVal_double(obj2, &val3);
30830 if (!SWIG_IsOK(ecode3)) {
30831 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
30832 }
30833 arg3 = static_cast< wxDouble >(val3);
30834 ecode4 = SWIG_AsVal_double(obj3, &val4);
30835 if (!SWIG_IsOK(ecode4)) {
30836 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
30837 }
30838 arg4 = static_cast< wxDouble >(val4);
30839 ecode5 = SWIG_AsVal_double(obj4, &val5);
30840 if (!SWIG_IsOK(ecode5)) {
30841 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
30842 }
30843 arg5 = static_cast< wxDouble >(val5);
30844 ecode6 = SWIG_AsVal_double(obj5, &val6);
30845 if (!SWIG_IsOK(ecode6)) {
30846 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
30847 }
30848 arg6 = static_cast< wxDouble >(val6);
30849 {
30850 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
30851 if (PyErr_Occurred()) SWIG_fail;
30852 }
30853 resultobj = SWIG_Py_Void();
30854 return resultobj;
30855 fail:
30856 return NULL;
30857 }
30858
30859
30860 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30861 PyObject *resultobj = 0;
30862 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30863 wxDouble arg2 ;
30864 wxDouble arg3 ;
30865 wxDouble arg4 ;
30866 wxDouble arg5 ;
30867 void *argp1 = 0 ;
30868 int res1 = 0 ;
30869 double val2 ;
30870 int ecode2 = 0 ;
30871 double val3 ;
30872 int ecode3 = 0 ;
30873 double val4 ;
30874 int ecode4 = 0 ;
30875 double val5 ;
30876 int ecode5 = 0 ;
30877 PyObject * obj0 = 0 ;
30878 PyObject * obj1 = 0 ;
30879 PyObject * obj2 = 0 ;
30880 PyObject * obj3 = 0 ;
30881 PyObject * obj4 = 0 ;
30882 char * kwnames[] = {
30883 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
30884 };
30885
30886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30888 if (!SWIG_IsOK(res1)) {
30889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30890 }
30891 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30892 ecode2 = SWIG_AsVal_double(obj1, &val2);
30893 if (!SWIG_IsOK(ecode2)) {
30894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
30895 }
30896 arg2 = static_cast< wxDouble >(val2);
30897 ecode3 = SWIG_AsVal_double(obj2, &val3);
30898 if (!SWIG_IsOK(ecode3)) {
30899 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
30900 }
30901 arg3 = static_cast< wxDouble >(val3);
30902 ecode4 = SWIG_AsVal_double(obj3, &val4);
30903 if (!SWIG_IsOK(ecode4)) {
30904 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
30905 }
30906 arg4 = static_cast< wxDouble >(val4);
30907 ecode5 = SWIG_AsVal_double(obj4, &val5);
30908 if (!SWIG_IsOK(ecode5)) {
30909 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
30910 }
30911 arg5 = static_cast< wxDouble >(val5);
30912 {
30913 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
30914 if (PyErr_Occurred()) SWIG_fail;
30915 }
30916 resultobj = SWIG_Py_Void();
30917 return resultobj;
30918 fail:
30919 return NULL;
30920 }
30921
30922
30923 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30924 PyObject *resultobj = 0;
30925 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30926 size_t arg2 ;
30927 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
30928 void *argp1 = 0 ;
30929 int res1 = 0 ;
30930 PyObject * obj0 = 0 ;
30931 PyObject * obj1 = 0 ;
30932 char * kwnames[] = {
30933 (char *) "self",(char *) "points", NULL
30934 };
30935
30936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
30937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30938 if (!SWIG_IsOK(res1)) {
30939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30940 }
30941 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30942 {
30943 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
30944 if (arg3 == NULL) SWIG_fail;
30945 }
30946 {
30947 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
30948 if (PyErr_Occurred()) SWIG_fail;
30949 }
30950 resultobj = SWIG_Py_Void();
30951 {
30952 if (arg3) delete [] arg3;
30953 }
30954 return resultobj;
30955 fail:
30956 {
30957 if (arg3) delete [] arg3;
30958 }
30959 return NULL;
30960 }
30961
30962
30963 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30964 PyObject *resultobj = 0;
30965 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30966 PyObject *arg2 = (PyObject *) 0 ;
30967 PyObject *arg3 = (PyObject *) 0 ;
30968 void *argp1 = 0 ;
30969 int res1 = 0 ;
30970 PyObject * obj0 = 0 ;
30971 PyObject * obj1 = 0 ;
30972 PyObject * obj2 = 0 ;
30973 char * kwnames[] = {
30974 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
30975 };
30976
30977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30979 if (!SWIG_IsOK(res1)) {
30980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
30981 }
30982 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30983 arg2 = obj1;
30984 arg3 = obj2;
30985 {
30986 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
30987 if (PyErr_Occurred()) SWIG_fail;
30988 }
30989 resultobj = SWIG_Py_Void();
30990 return resultobj;
30991 fail:
30992 return NULL;
30993 }
30994
30995
30996 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30997 PyObject *resultobj = 0;
30998 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
30999 size_t arg2 ;
31000 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
31001 int arg4 = (int) wxODDEVEN_RULE ;
31002 void *argp1 = 0 ;
31003 int res1 = 0 ;
31004 int val4 ;
31005 int ecode4 = 0 ;
31006 PyObject * obj0 = 0 ;
31007 PyObject * obj1 = 0 ;
31008 PyObject * obj2 = 0 ;
31009 char * kwnames[] = {
31010 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
31011 };
31012
31013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31015 if (!SWIG_IsOK(res1)) {
31016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
31017 }
31018 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
31019 {
31020 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
31021 if (arg3 == NULL) SWIG_fail;
31022 }
31023 if (obj2) {
31024 ecode4 = SWIG_AsVal_int(obj2, &val4);
31025 if (!SWIG_IsOK(ecode4)) {
31026 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
31027 }
31028 arg4 = static_cast< int >(val4);
31029 }
31030 {
31031 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
31032 if (PyErr_Occurred()) SWIG_fail;
31033 }
31034 resultobj = SWIG_Py_Void();
31035 {
31036 if (arg3) delete [] arg3;
31037 }
31038 return resultobj;
31039 fail:
31040 {
31041 if (arg3) delete [] arg3;
31042 }
31043 return NULL;
31044 }
31045
31046
31047 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31048 PyObject *resultobj = 0;
31049 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
31050 wxDouble arg2 ;
31051 wxDouble arg3 ;
31052 wxDouble arg4 ;
31053 wxDouble arg5 ;
31054 void *argp1 = 0 ;
31055 int res1 = 0 ;
31056 double val2 ;
31057 int ecode2 = 0 ;
31058 double val3 ;
31059 int ecode3 = 0 ;
31060 double val4 ;
31061 int ecode4 = 0 ;
31062 double val5 ;
31063 int ecode5 = 0 ;
31064 PyObject * obj0 = 0 ;
31065 PyObject * obj1 = 0 ;
31066 PyObject * obj2 = 0 ;
31067 PyObject * obj3 = 0 ;
31068 PyObject * obj4 = 0 ;
31069 char * kwnames[] = {
31070 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
31071 };
31072
31073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31075 if (!SWIG_IsOK(res1)) {
31076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
31077 }
31078 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
31079 ecode2 = SWIG_AsVal_double(obj1, &val2);
31080 if (!SWIG_IsOK(ecode2)) {
31081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
31082 }
31083 arg2 = static_cast< wxDouble >(val2);
31084 ecode3 = SWIG_AsVal_double(obj2, &val3);
31085 if (!SWIG_IsOK(ecode3)) {
31086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
31087 }
31088 arg3 = static_cast< wxDouble >(val3);
31089 ecode4 = SWIG_AsVal_double(obj3, &val4);
31090 if (!SWIG_IsOK(ecode4)) {
31091 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
31092 }
31093 arg4 = static_cast< wxDouble >(val4);
31094 ecode5 = SWIG_AsVal_double(obj4, &val5);
31095 if (!SWIG_IsOK(ecode5)) {
31096 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
31097 }
31098 arg5 = static_cast< wxDouble >(val5);
31099 {
31100 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
31101 if (PyErr_Occurred()) SWIG_fail;
31102 }
31103 resultobj = SWIG_Py_Void();
31104 return resultobj;
31105 fail:
31106 return NULL;
31107 }
31108
31109
31110 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31111 PyObject *resultobj = 0;
31112 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
31113 wxDouble arg2 ;
31114 wxDouble arg3 ;
31115 wxDouble arg4 ;
31116 wxDouble arg5 ;
31117 void *argp1 = 0 ;
31118 int res1 = 0 ;
31119 double val2 ;
31120 int ecode2 = 0 ;
31121 double val3 ;
31122 int ecode3 = 0 ;
31123 double val4 ;
31124 int ecode4 = 0 ;
31125 double val5 ;
31126 int ecode5 = 0 ;
31127 PyObject * obj0 = 0 ;
31128 PyObject * obj1 = 0 ;
31129 PyObject * obj2 = 0 ;
31130 PyObject * obj3 = 0 ;
31131 PyObject * obj4 = 0 ;
31132 char * kwnames[] = {
31133 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
31134 };
31135
31136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31138 if (!SWIG_IsOK(res1)) {
31139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
31140 }
31141 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
31142 ecode2 = SWIG_AsVal_double(obj1, &val2);
31143 if (!SWIG_IsOK(ecode2)) {
31144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
31145 }
31146 arg2 = static_cast< wxDouble >(val2);
31147 ecode3 = SWIG_AsVal_double(obj2, &val3);
31148 if (!SWIG_IsOK(ecode3)) {
31149 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
31150 }
31151 arg3 = static_cast< wxDouble >(val3);
31152 ecode4 = SWIG_AsVal_double(obj3, &val4);
31153 if (!SWIG_IsOK(ecode4)) {
31154 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
31155 }
31156 arg4 = static_cast< wxDouble >(val4);
31157 ecode5 = SWIG_AsVal_double(obj4, &val5);
31158 if (!SWIG_IsOK(ecode5)) {
31159 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
31160 }
31161 arg5 = static_cast< wxDouble >(val5);
31162 {
31163 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
31164 if (PyErr_Occurred()) SWIG_fail;
31165 }
31166 resultobj = SWIG_Py_Void();
31167 return resultobj;
31168 fail:
31169 return NULL;
31170 }
31171
31172
31173 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31174 PyObject *resultobj = 0;
31175 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
31176 wxDouble arg2 ;
31177 wxDouble arg3 ;
31178 wxDouble arg4 ;
31179 wxDouble arg5 ;
31180 wxDouble arg6 ;
31181 void *argp1 = 0 ;
31182 int res1 = 0 ;
31183 double val2 ;
31184 int ecode2 = 0 ;
31185 double val3 ;
31186 int ecode3 = 0 ;
31187 double val4 ;
31188 int ecode4 = 0 ;
31189 double val5 ;
31190 int ecode5 = 0 ;
31191 double val6 ;
31192 int ecode6 = 0 ;
31193 PyObject * obj0 = 0 ;
31194 PyObject * obj1 = 0 ;
31195 PyObject * obj2 = 0 ;
31196 PyObject * obj3 = 0 ;
31197 PyObject * obj4 = 0 ;
31198 PyObject * obj5 = 0 ;
31199 char * kwnames[] = {
31200 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
31201 };
31202
31203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
31204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31205 if (!SWIG_IsOK(res1)) {
31206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
31207 }
31208 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
31209 ecode2 = SWIG_AsVal_double(obj1, &val2);
31210 if (!SWIG_IsOK(ecode2)) {
31211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
31212 }
31213 arg2 = static_cast< wxDouble >(val2);
31214 ecode3 = SWIG_AsVal_double(obj2, &val3);
31215 if (!SWIG_IsOK(ecode3)) {
31216 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
31217 }
31218 arg3 = static_cast< wxDouble >(val3);
31219 ecode4 = SWIG_AsVal_double(obj3, &val4);
31220 if (!SWIG_IsOK(ecode4)) {
31221 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
31222 }
31223 arg4 = static_cast< wxDouble >(val4);
31224 ecode5 = SWIG_AsVal_double(obj4, &val5);
31225 if (!SWIG_IsOK(ecode5)) {
31226 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
31227 }
31228 arg5 = static_cast< wxDouble >(val5);
31229 ecode6 = SWIG_AsVal_double(obj5, &val6);
31230 if (!SWIG_IsOK(ecode6)) {
31231 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
31232 }
31233 arg6 = static_cast< wxDouble >(val6);
31234 {
31235 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
31236 if (PyErr_Occurred()) SWIG_fail;
31237 }
31238 resultobj = SWIG_Py_Void();
31239 return resultobj;
31240 fail:
31241 return NULL;
31242 }
31243
31244
31245 SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31246 PyObject *resultobj = 0;
31247 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
31248 bool result;
31249 void *argp1 = 0 ;
31250 int res1 = 0 ;
31251 PyObject *swig_obj[1] ;
31252
31253 if (!args) SWIG_fail;
31254 swig_obj[0] = args;
31255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31256 if (!SWIG_IsOK(res1)) {
31257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
31258 }
31259 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
31260 {
31261 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
31262 if (PyErr_Occurred()) SWIG_fail;
31263 }
31264 {
31265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31266 }
31267 return resultobj;
31268 fail:
31269 return NULL;
31270 }
31271
31272
31273 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31274 PyObject *obj;
31275 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31276 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
31277 return SWIG_Py_Void();
31278 }
31279
31280 SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31281 PyObject *resultobj = 0;
31282 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31283 void *argp1 = 0 ;
31284 int res1 = 0 ;
31285 PyObject *swig_obj[1] ;
31286
31287 if (!args) SWIG_fail;
31288 swig_obj[0] = args;
31289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
31290 if (!SWIG_IsOK(res1)) {
31291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31292 }
31293 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31294 {
31295 delete arg1;
31296
31297 if (PyErr_Occurred()) SWIG_fail;
31298 }
31299 resultobj = SWIG_Py_Void();
31300 return resultobj;
31301 fail:
31302 return NULL;
31303 }
31304
31305
31306 SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31307 PyObject *resultobj = 0;
31308 wxGraphicsRenderer *result = 0 ;
31309
31310 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
31311 {
31312 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
31313 if (PyErr_Occurred()) SWIG_fail;
31314 }
31315 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31316 return resultobj;
31317 fail:
31318 return NULL;
31319 }
31320
31321
31322 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31323 PyObject *resultobj = 0;
31324 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31325 wxWindowDC *arg2 = 0 ;
31326 wxGraphicsContext *result = 0 ;
31327 void *argp1 = 0 ;
31328 int res1 = 0 ;
31329 void *argp2 = 0 ;
31330 int res2 = 0 ;
31331
31332 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31334 if (!SWIG_IsOK(res1)) {
31335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31336 }
31337 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31338 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
31339 if (!SWIG_IsOK(res2)) {
31340 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
31341 }
31342 if (!argp2) {
31343 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
31344 }
31345 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31346 {
31347 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
31348 if (PyErr_Occurred()) SWIG_fail;
31349 }
31350 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
31351 return resultobj;
31352 fail:
31353 return NULL;
31354 }
31355
31356
31357 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31358 PyObject *resultobj = 0;
31359 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31360 wxWindow *arg2 = (wxWindow *) 0 ;
31361 wxGraphicsContext *result = 0 ;
31362 void *argp1 = 0 ;
31363 int res1 = 0 ;
31364 void *argp2 = 0 ;
31365 int res2 = 0 ;
31366
31367 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31369 if (!SWIG_IsOK(res1)) {
31370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31371 }
31372 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31373 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31374 if (!SWIG_IsOK(res2)) {
31375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
31376 }
31377 arg2 = reinterpret_cast< wxWindow * >(argp2);
31378 {
31379 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
31380 if (PyErr_Occurred()) SWIG_fail;
31381 }
31382 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
31383 return resultobj;
31384 fail:
31385 return NULL;
31386 }
31387
31388
31389 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
31390 int argc;
31391 PyObject *argv[3];
31392
31393 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
31394 --argc;
31395 if (argc == 2) {
31396 int _v = 0;
31397 {
31398 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
31399 _v = SWIG_CheckState(res);
31400 }
31401 if (!_v) goto check_1;
31402 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
31403 }
31404 check_1:
31405
31406 if (argc == 2) {
31407 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
31408 }
31409
31410 fail:
31411 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
31412 return NULL;
31413 }
31414
31415
31416 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31417 PyObject *resultobj = 0;
31418 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31419 wxGraphicsContext *result = 0 ;
31420 void *argp1 = 0 ;
31421 int res1 = 0 ;
31422 PyObject *swig_obj[1] ;
31423
31424 if (!args) SWIG_fail;
31425 swig_obj[0] = args;
31426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31427 if (!SWIG_IsOK(res1)) {
31428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31429 }
31430 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31431 {
31432 result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext();
31433 if (PyErr_Occurred()) SWIG_fail;
31434 }
31435 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
31436 return resultobj;
31437 fail:
31438 return NULL;
31439 }
31440
31441
31442 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31443 PyObject *resultobj = 0;
31444 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31445 void *arg2 = (void *) 0 ;
31446 wxGraphicsContext *result = 0 ;
31447 void *argp1 = 0 ;
31448 int res1 = 0 ;
31449 int res2 ;
31450 PyObject * obj0 = 0 ;
31451 PyObject * obj1 = 0 ;
31452 char * kwnames[] = {
31453 (char *) "self",(char *) "context", NULL
31454 };
31455
31456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
31457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31458 if (!SWIG_IsOK(res1)) {
31459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31460 }
31461 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31462 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
31463 if (!SWIG_IsOK(res2)) {
31464 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
31465 }
31466 {
31467 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
31468 if (PyErr_Occurred()) SWIG_fail;
31469 }
31470 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
31471 return resultobj;
31472 fail:
31473 return NULL;
31474 }
31475
31476
31477 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31478 PyObject *resultobj = 0;
31479 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31480 void *arg2 = (void *) 0 ;
31481 wxGraphicsContext *result = 0 ;
31482 void *argp1 = 0 ;
31483 int res1 = 0 ;
31484 int res2 ;
31485 PyObject * obj0 = 0 ;
31486 PyObject * obj1 = 0 ;
31487 char * kwnames[] = {
31488 (char *) "self",(char *) "window", NULL
31489 };
31490
31491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
31492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31493 if (!SWIG_IsOK(res1)) {
31494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31495 }
31496 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31497 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
31498 if (!SWIG_IsOK(res2)) {
31499 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
31500 }
31501 {
31502 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
31503 if (PyErr_Occurred()) SWIG_fail;
31504 }
31505 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
31506 return resultobj;
31507 fail:
31508 return NULL;
31509 }
31510
31511
31512 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31513 PyObject *resultobj = 0;
31514 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31515 wxGraphicsPath result;
31516 void *argp1 = 0 ;
31517 int res1 = 0 ;
31518 PyObject *swig_obj[1] ;
31519
31520 if (!args) SWIG_fail;
31521 swig_obj[0] = args;
31522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31523 if (!SWIG_IsOK(res1)) {
31524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31525 }
31526 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31527 {
31528 result = (arg1)->CreatePath();
31529 if (PyErr_Occurred()) SWIG_fail;
31530 }
31531 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
31532 return resultobj;
31533 fail:
31534 return NULL;
31535 }
31536
31537
31538 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31539 PyObject *resultobj = 0;
31540 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31541 wxDouble arg2 = (wxDouble) 1.0 ;
31542 wxDouble arg3 = (wxDouble) 0.0 ;
31543 wxDouble arg4 = (wxDouble) 0.0 ;
31544 wxDouble arg5 = (wxDouble) 1.0 ;
31545 wxDouble arg6 = (wxDouble) 0.0 ;
31546 wxDouble arg7 = (wxDouble) 0.0 ;
31547 wxGraphicsMatrix result;
31548 void *argp1 = 0 ;
31549 int res1 = 0 ;
31550 double val2 ;
31551 int ecode2 = 0 ;
31552 double val3 ;
31553 int ecode3 = 0 ;
31554 double val4 ;
31555 int ecode4 = 0 ;
31556 double val5 ;
31557 int ecode5 = 0 ;
31558 double val6 ;
31559 int ecode6 = 0 ;
31560 double val7 ;
31561 int ecode7 = 0 ;
31562 PyObject * obj0 = 0 ;
31563 PyObject * obj1 = 0 ;
31564 PyObject * obj2 = 0 ;
31565 PyObject * obj3 = 0 ;
31566 PyObject * obj4 = 0 ;
31567 PyObject * obj5 = 0 ;
31568 PyObject * obj6 = 0 ;
31569 char * kwnames[] = {
31570 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
31571 };
31572
31573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31575 if (!SWIG_IsOK(res1)) {
31576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31577 }
31578 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31579 if (obj1) {
31580 ecode2 = SWIG_AsVal_double(obj1, &val2);
31581 if (!SWIG_IsOK(ecode2)) {
31582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
31583 }
31584 arg2 = static_cast< wxDouble >(val2);
31585 }
31586 if (obj2) {
31587 ecode3 = SWIG_AsVal_double(obj2, &val3);
31588 if (!SWIG_IsOK(ecode3)) {
31589 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
31590 }
31591 arg3 = static_cast< wxDouble >(val3);
31592 }
31593 if (obj3) {
31594 ecode4 = SWIG_AsVal_double(obj3, &val4);
31595 if (!SWIG_IsOK(ecode4)) {
31596 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
31597 }
31598 arg4 = static_cast< wxDouble >(val4);
31599 }
31600 if (obj4) {
31601 ecode5 = SWIG_AsVal_double(obj4, &val5);
31602 if (!SWIG_IsOK(ecode5)) {
31603 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
31604 }
31605 arg5 = static_cast< wxDouble >(val5);
31606 }
31607 if (obj5) {
31608 ecode6 = SWIG_AsVal_double(obj5, &val6);
31609 if (!SWIG_IsOK(ecode6)) {
31610 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
31611 }
31612 arg6 = static_cast< wxDouble >(val6);
31613 }
31614 if (obj6) {
31615 ecode7 = SWIG_AsVal_double(obj6, &val7);
31616 if (!SWIG_IsOK(ecode7)) {
31617 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
31618 }
31619 arg7 = static_cast< wxDouble >(val7);
31620 }
31621 {
31622 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
31623 if (PyErr_Occurred()) SWIG_fail;
31624 }
31625 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
31626 return resultobj;
31627 fail:
31628 return NULL;
31629 }
31630
31631
31632 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31633 PyObject *resultobj = 0;
31634 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31635 wxPen *arg2 = 0 ;
31636 wxGraphicsPen result;
31637 void *argp1 = 0 ;
31638 int res1 = 0 ;
31639 void *argp2 = 0 ;
31640 int res2 = 0 ;
31641 PyObject * obj0 = 0 ;
31642 PyObject * obj1 = 0 ;
31643 char * kwnames[] = {
31644 (char *) "self",(char *) "pen", NULL
31645 };
31646
31647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
31648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31649 if (!SWIG_IsOK(res1)) {
31650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31651 }
31652 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31653 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
31654 if (!SWIG_IsOK(res2)) {
31655 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
31656 }
31657 if (!argp2) {
31658 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
31659 }
31660 arg2 = reinterpret_cast< wxPen * >(argp2);
31661 {
31662 result = (arg1)->CreatePen((wxPen const &)*arg2);
31663 if (PyErr_Occurred()) SWIG_fail;
31664 }
31665 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
31666 return resultobj;
31667 fail:
31668 return NULL;
31669 }
31670
31671
31672 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31673 PyObject *resultobj = 0;
31674 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31675 wxBrush *arg2 = 0 ;
31676 wxGraphicsBrush result;
31677 void *argp1 = 0 ;
31678 int res1 = 0 ;
31679 void *argp2 = 0 ;
31680 int res2 = 0 ;
31681 PyObject * obj0 = 0 ;
31682 PyObject * obj1 = 0 ;
31683 char * kwnames[] = {
31684 (char *) "self",(char *) "brush", NULL
31685 };
31686
31687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
31688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31689 if (!SWIG_IsOK(res1)) {
31690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31691 }
31692 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31693 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
31694 if (!SWIG_IsOK(res2)) {
31695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31696 }
31697 if (!argp2) {
31698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
31699 }
31700 arg2 = reinterpret_cast< wxBrush * >(argp2);
31701 {
31702 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
31703 if (PyErr_Occurred()) SWIG_fail;
31704 }
31705 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
31706 return resultobj;
31707 fail:
31708 return NULL;
31709 }
31710
31711
31712 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31713 PyObject *resultobj = 0;
31714 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31715 wxDouble arg2 ;
31716 wxDouble arg3 ;
31717 wxDouble arg4 ;
31718 wxDouble arg5 ;
31719 wxColour *arg6 = 0 ;
31720 wxColour *arg7 = 0 ;
31721 wxGraphicsBrush result;
31722 void *argp1 = 0 ;
31723 int res1 = 0 ;
31724 double val2 ;
31725 int ecode2 = 0 ;
31726 double val3 ;
31727 int ecode3 = 0 ;
31728 double val4 ;
31729 int ecode4 = 0 ;
31730 double val5 ;
31731 int ecode5 = 0 ;
31732 wxColour temp6 ;
31733 wxColour temp7 ;
31734 PyObject * obj0 = 0 ;
31735 PyObject * obj1 = 0 ;
31736 PyObject * obj2 = 0 ;
31737 PyObject * obj3 = 0 ;
31738 PyObject * obj4 = 0 ;
31739 PyObject * obj5 = 0 ;
31740 PyObject * obj6 = 0 ;
31741 char * kwnames[] = {
31742 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
31743 };
31744
31745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31747 if (!SWIG_IsOK(res1)) {
31748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31749 }
31750 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31751 ecode2 = SWIG_AsVal_double(obj1, &val2);
31752 if (!SWIG_IsOK(ecode2)) {
31753 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
31754 }
31755 arg2 = static_cast< wxDouble >(val2);
31756 ecode3 = SWIG_AsVal_double(obj2, &val3);
31757 if (!SWIG_IsOK(ecode3)) {
31758 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
31759 }
31760 arg3 = static_cast< wxDouble >(val3);
31761 ecode4 = SWIG_AsVal_double(obj3, &val4);
31762 if (!SWIG_IsOK(ecode4)) {
31763 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
31764 }
31765 arg4 = static_cast< wxDouble >(val4);
31766 ecode5 = SWIG_AsVal_double(obj4, &val5);
31767 if (!SWIG_IsOK(ecode5)) {
31768 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
31769 }
31770 arg5 = static_cast< wxDouble >(val5);
31771 {
31772 arg6 = &temp6;
31773 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
31774 }
31775 {
31776 arg7 = &temp7;
31777 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31778 }
31779 {
31780 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
31781 if (PyErr_Occurred()) SWIG_fail;
31782 }
31783 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
31784 return resultobj;
31785 fail:
31786 return NULL;
31787 }
31788
31789
31790 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31791 PyObject *resultobj = 0;
31792 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31793 wxDouble arg2 ;
31794 wxDouble arg3 ;
31795 wxDouble arg4 ;
31796 wxDouble arg5 ;
31797 wxDouble arg6 ;
31798 wxColour *arg7 = 0 ;
31799 wxColour *arg8 = 0 ;
31800 wxGraphicsBrush result;
31801 void *argp1 = 0 ;
31802 int res1 = 0 ;
31803 double val2 ;
31804 int ecode2 = 0 ;
31805 double val3 ;
31806 int ecode3 = 0 ;
31807 double val4 ;
31808 int ecode4 = 0 ;
31809 double val5 ;
31810 int ecode5 = 0 ;
31811 double val6 ;
31812 int ecode6 = 0 ;
31813 wxColour temp7 ;
31814 wxColour temp8 ;
31815 PyObject * obj0 = 0 ;
31816 PyObject * obj1 = 0 ;
31817 PyObject * obj2 = 0 ;
31818 PyObject * obj3 = 0 ;
31819 PyObject * obj4 = 0 ;
31820 PyObject * obj5 = 0 ;
31821 PyObject * obj6 = 0 ;
31822 PyObject * obj7 = 0 ;
31823 char * kwnames[] = {
31824 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
31825 };
31826
31827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31829 if (!SWIG_IsOK(res1)) {
31830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31831 }
31832 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31833 ecode2 = SWIG_AsVal_double(obj1, &val2);
31834 if (!SWIG_IsOK(ecode2)) {
31835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
31836 }
31837 arg2 = static_cast< wxDouble >(val2);
31838 ecode3 = SWIG_AsVal_double(obj2, &val3);
31839 if (!SWIG_IsOK(ecode3)) {
31840 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
31841 }
31842 arg3 = static_cast< wxDouble >(val3);
31843 ecode4 = SWIG_AsVal_double(obj3, &val4);
31844 if (!SWIG_IsOK(ecode4)) {
31845 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
31846 }
31847 arg4 = static_cast< wxDouble >(val4);
31848 ecode5 = SWIG_AsVal_double(obj4, &val5);
31849 if (!SWIG_IsOK(ecode5)) {
31850 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
31851 }
31852 arg5 = static_cast< wxDouble >(val5);
31853 ecode6 = SWIG_AsVal_double(obj5, &val6);
31854 if (!SWIG_IsOK(ecode6)) {
31855 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
31856 }
31857 arg6 = static_cast< wxDouble >(val6);
31858 {
31859 arg7 = &temp7;
31860 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
31861 }
31862 {
31863 arg8 = &temp8;
31864 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
31865 }
31866 {
31867 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
31868 if (PyErr_Occurred()) SWIG_fail;
31869 }
31870 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
31871 return resultobj;
31872 fail:
31873 return NULL;
31874 }
31875
31876
31877 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31878 PyObject *resultobj = 0;
31879 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
31880 wxFont *arg2 = 0 ;
31881 wxColour const &arg3_defvalue = *wxBLACK ;
31882 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
31883 wxGraphicsFont result;
31884 void *argp1 = 0 ;
31885 int res1 = 0 ;
31886 void *argp2 = 0 ;
31887 int res2 = 0 ;
31888 wxColour temp3 ;
31889 PyObject * obj0 = 0 ;
31890 PyObject * obj1 = 0 ;
31891 PyObject * obj2 = 0 ;
31892 char * kwnames[] = {
31893 (char *) "self",(char *) "font",(char *) "col", NULL
31894 };
31895
31896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
31898 if (!SWIG_IsOK(res1)) {
31899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
31900 }
31901 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
31902 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
31903 if (!SWIG_IsOK(res2)) {
31904 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31905 }
31906 if (!argp2) {
31907 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
31908 }
31909 arg2 = reinterpret_cast< wxFont * >(argp2);
31910 if (obj2) {
31911 {
31912 arg3 = &temp3;
31913 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31914 }
31915 }
31916 {
31917 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
31918 if (PyErr_Occurred()) SWIG_fail;
31919 }
31920 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
31921 return resultobj;
31922 fail:
31923 return NULL;
31924 }
31925
31926
31927 SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31928 PyObject *obj;
31929 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31930 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
31931 return SWIG_Py_Void();
31932 }
31933
31934 SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31935 PyObject *resultobj = 0;
31936 wxWindowDC *arg1 = 0 ;
31937 wxGCDC *result = 0 ;
31938 void *argp1 = 0 ;
31939 int res1 = 0 ;
31940
31941 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
31943 if (!SWIG_IsOK(res1)) {
31944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31945 }
31946 if (!argp1) {
31947 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
31948 }
31949 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
31950 {
31951 if (!wxPyCheckForApp()) SWIG_fail;
31952 PyThreadState* __tstate = wxPyBeginAllowThreads();
31953 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
31954 wxPyEndAllowThreads(__tstate);
31955 if (PyErr_Occurred()) SWIG_fail;
31956 }
31957 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
31958 return resultobj;
31959 fail:
31960 return NULL;
31961 }
31962
31963
31964 SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31965 PyObject *resultobj = 0;
31966 wxWindow *arg1 = (wxWindow *) 0 ;
31967 wxGCDC *result = 0 ;
31968 void *argp1 = 0 ;
31969 int res1 = 0 ;
31970
31971 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
31972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31973 if (!SWIG_IsOK(res1)) {
31974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'");
31975 }
31976 arg1 = reinterpret_cast< wxWindow * >(argp1);
31977 {
31978 if (!wxPyCheckForApp()) SWIG_fail;
31979 PyThreadState* __tstate = wxPyBeginAllowThreads();
31980 result = (wxGCDC *)new wxGCDC(arg1);
31981 wxPyEndAllowThreads(__tstate);
31982 if (PyErr_Occurred()) SWIG_fail;
31983 }
31984 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
31985 return resultobj;
31986 fail:
31987 return NULL;
31988 }
31989
31990
31991 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) {
31992 int argc;
31993 PyObject *argv[2];
31994
31995 if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail;
31996 --argc;
31997 if (argc == 1) {
31998 int _v = 0;
31999 {
32000 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
32001 _v = SWIG_CheckState(res);
32002 }
32003 if (!_v) goto check_1;
32004 return _wrap_new_GCDC__SWIG_0(self, argc, argv);
32005 }
32006 check_1:
32007
32008 if (argc == 1) {
32009 return _wrap_new_GCDC__SWIG_1(self, argc, argv);
32010 }
32011
32012 fail:
32013 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'");
32014 return NULL;
32015 }
32016
32017
32018 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32019 PyObject *resultobj = 0;
32020 wxGCDC *arg1 = (wxGCDC *) 0 ;
32021 void *argp1 = 0 ;
32022 int res1 = 0 ;
32023 PyObject *swig_obj[1] ;
32024
32025 if (!args) SWIG_fail;
32026 swig_obj[0] = args;
32027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
32028 if (!SWIG_IsOK(res1)) {
32029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
32030 }
32031 arg1 = reinterpret_cast< wxGCDC * >(argp1);
32032 {
32033 delete arg1;
32034
32035 if (PyErr_Occurred()) SWIG_fail;
32036 }
32037 resultobj = SWIG_Py_Void();
32038 return resultobj;
32039 fail:
32040 return NULL;
32041 }
32042
32043
32044 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32045 PyObject *resultobj = 0;
32046 wxGCDC *arg1 = (wxGCDC *) 0 ;
32047 wxGraphicsContext *result = 0 ;
32048 void *argp1 = 0 ;
32049 int res1 = 0 ;
32050 PyObject *swig_obj[1] ;
32051
32052 if (!args) SWIG_fail;
32053 swig_obj[0] = args;
32054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
32055 if (!SWIG_IsOK(res1)) {
32056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
32057 }
32058 arg1 = reinterpret_cast< wxGCDC * >(argp1);
32059 {
32060 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
32061 if (PyErr_Occurred()) SWIG_fail;
32062 }
32063 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
32064 return resultobj;
32065 fail:
32066 return NULL;
32067 }
32068
32069
32070 SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32071 PyObject *resultobj = 0;
32072 wxGCDC *arg1 = (wxGCDC *) 0 ;
32073 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
32074 void *argp1 = 0 ;
32075 int res1 = 0 ;
32076 void *argp2 = 0 ;
32077 int res2 = 0 ;
32078 PyObject * obj0 = 0 ;
32079 PyObject * obj1 = 0 ;
32080 char * kwnames[] = {
32081 (char *) "self",(char *) "ctx", NULL
32082 };
32083
32084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
32085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
32086 if (!SWIG_IsOK(res1)) {
32087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
32088 }
32089 arg1 = reinterpret_cast< wxGCDC * >(argp1);
32090 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
32091 if (!SWIG_IsOK(res2)) {
32092 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
32093 }
32094 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
32095 {
32096 (arg1)->SetGraphicsContext(arg2);
32097 if (PyErr_Occurred()) SWIG_fail;
32098 }
32099 resultobj = SWIG_Py_Void();
32100 return resultobj;
32101 fail:
32102 return NULL;
32103 }
32104
32105
32106 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32107 PyObject *obj;
32108 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32109 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
32110 return SWIG_Py_Void();
32111 }
32112
32113 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32114 return SWIG_Python_InitShadowInstance(args);
32115 }
32116
32117 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32118 PyObject *resultobj = 0;
32119 wxOverlay *result = 0 ;
32120
32121 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
32122 {
32123 PyThreadState* __tstate = wxPyBeginAllowThreads();
32124 result = (wxOverlay *)new wxOverlay();
32125 wxPyEndAllowThreads(__tstate);
32126 if (PyErr_Occurred()) SWIG_fail;
32127 }
32128 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
32129 return resultobj;
32130 fail:
32131 return NULL;
32132 }
32133
32134
32135 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32136 PyObject *resultobj = 0;
32137 wxOverlay *arg1 = (wxOverlay *) 0 ;
32138 void *argp1 = 0 ;
32139 int res1 = 0 ;
32140 PyObject *swig_obj[1] ;
32141
32142 if (!args) SWIG_fail;
32143 swig_obj[0] = args;
32144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
32145 if (!SWIG_IsOK(res1)) {
32146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
32147 }
32148 arg1 = reinterpret_cast< wxOverlay * >(argp1);
32149 {
32150 PyThreadState* __tstate = wxPyBeginAllowThreads();
32151 delete arg1;
32152
32153 wxPyEndAllowThreads(__tstate);
32154 if (PyErr_Occurred()) SWIG_fail;
32155 }
32156 resultobj = SWIG_Py_Void();
32157 return resultobj;
32158 fail:
32159 return NULL;
32160 }
32161
32162
32163 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32164 PyObject *resultobj = 0;
32165 wxOverlay *arg1 = (wxOverlay *) 0 ;
32166 void *argp1 = 0 ;
32167 int res1 = 0 ;
32168 PyObject *swig_obj[1] ;
32169
32170 if (!args) SWIG_fail;
32171 swig_obj[0] = args;
32172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
32173 if (!SWIG_IsOK(res1)) {
32174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
32175 }
32176 arg1 = reinterpret_cast< wxOverlay * >(argp1);
32177 {
32178 PyThreadState* __tstate = wxPyBeginAllowThreads();
32179 (arg1)->Reset();
32180 wxPyEndAllowThreads(__tstate);
32181 if (PyErr_Occurred()) SWIG_fail;
32182 }
32183 resultobj = SWIG_Py_Void();
32184 return resultobj;
32185 fail:
32186 return NULL;
32187 }
32188
32189
32190 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32191 PyObject *obj;
32192 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32193 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
32194 return SWIG_Py_Void();
32195 }
32196
32197 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32198 return SWIG_Python_InitShadowInstance(args);
32199 }
32200
32201 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32202 PyObject *resultobj = 0;
32203 wxOverlay *arg1 = 0 ;
32204 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
32205 int arg3 ;
32206 int arg4 ;
32207 int arg5 ;
32208 int arg6 ;
32209 wxDCOverlay *result = 0 ;
32210 void *argp1 = 0 ;
32211 int res1 = 0 ;
32212 void *argp2 = 0 ;
32213 int res2 = 0 ;
32214 int val3 ;
32215 int ecode3 = 0 ;
32216 int val4 ;
32217 int ecode4 = 0 ;
32218 int val5 ;
32219 int ecode5 = 0 ;
32220 int val6 ;
32221 int ecode6 = 0 ;
32222
32223 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
32224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
32225 if (!SWIG_IsOK(res1)) {
32226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
32227 }
32228 if (!argp1) {
32229 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
32230 }
32231 arg1 = reinterpret_cast< wxOverlay * >(argp1);
32232 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
32233 if (!SWIG_IsOK(res2)) {
32234 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
32235 }
32236 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
32237 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
32238 if (!SWIG_IsOK(ecode3)) {
32239 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
32240 }
32241 arg3 = static_cast< int >(val3);
32242 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
32243 if (!SWIG_IsOK(ecode4)) {
32244 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
32245 }
32246 arg4 = static_cast< int >(val4);
32247 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
32248 if (!SWIG_IsOK(ecode5)) {
32249 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
32250 }
32251 arg5 = static_cast< int >(val5);
32252 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
32253 if (!SWIG_IsOK(ecode6)) {
32254 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
32255 }
32256 arg6 = static_cast< int >(val6);
32257 {
32258 PyThreadState* __tstate = wxPyBeginAllowThreads();
32259 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
32260 wxPyEndAllowThreads(__tstate);
32261 if (PyErr_Occurred()) SWIG_fail;
32262 }
32263 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
32264 return resultobj;
32265 fail:
32266 return NULL;
32267 }
32268
32269
32270 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32271 PyObject *resultobj = 0;
32272 wxOverlay *arg1 = 0 ;
32273 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
32274 wxDCOverlay *result = 0 ;
32275 void *argp1 = 0 ;
32276 int res1 = 0 ;
32277 void *argp2 = 0 ;
32278 int res2 = 0 ;
32279
32280 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
32281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
32282 if (!SWIG_IsOK(res1)) {
32283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
32284 }
32285 if (!argp1) {
32286 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
32287 }
32288 arg1 = reinterpret_cast< wxOverlay * >(argp1);
32289 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
32290 if (!SWIG_IsOK(res2)) {
32291 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
32292 }
32293 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
32294 {
32295 PyThreadState* __tstate = wxPyBeginAllowThreads();
32296 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
32297 wxPyEndAllowThreads(__tstate);
32298 if (PyErr_Occurred()) SWIG_fail;
32299 }
32300 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
32301 return resultobj;
32302 fail:
32303 return NULL;
32304 }
32305
32306
32307 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
32308 int argc;
32309 PyObject *argv[7];
32310
32311 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
32312 --argc;
32313 if (argc == 2) {
32314 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
32315 }
32316 if (argc == 6) {
32317 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
32318 }
32319
32320 fail:
32321 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
32322 return NULL;
32323 }
32324
32325
32326 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32327 PyObject *resultobj = 0;
32328 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
32329 void *argp1 = 0 ;
32330 int res1 = 0 ;
32331 PyObject *swig_obj[1] ;
32332
32333 if (!args) SWIG_fail;
32334 swig_obj[0] = args;
32335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
32336 if (!SWIG_IsOK(res1)) {
32337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
32338 }
32339 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
32340 {
32341 PyThreadState* __tstate = wxPyBeginAllowThreads();
32342 delete arg1;
32343
32344 wxPyEndAllowThreads(__tstate);
32345 if (PyErr_Occurred()) SWIG_fail;
32346 }
32347 resultobj = SWIG_Py_Void();
32348 return resultobj;
32349 fail:
32350 return NULL;
32351 }
32352
32353
32354 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32355 PyObject *resultobj = 0;
32356 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
32357 void *argp1 = 0 ;
32358 int res1 = 0 ;
32359 PyObject *swig_obj[1] ;
32360
32361 if (!args) SWIG_fail;
32362 swig_obj[0] = args;
32363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
32364 if (!SWIG_IsOK(res1)) {
32365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
32366 }
32367 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
32368 {
32369 PyThreadState* __tstate = wxPyBeginAllowThreads();
32370 (arg1)->Clear();
32371 wxPyEndAllowThreads(__tstate);
32372 if (PyErr_Occurred()) SWIG_fail;
32373 }
32374 resultobj = SWIG_Py_Void();
32375 return resultobj;
32376 fail:
32377 return NULL;
32378 }
32379
32380
32381 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32382 PyObject *obj;
32383 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32384 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
32385 return SWIG_Py_Void();
32386 }
32387
32388 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32389 return SWIG_Python_InitShadowInstance(args);
32390 }
32391
32392 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32393 PyObject *resultobj = 0;
32394 int arg1 ;
32395 int arg2 ;
32396 int arg3 = (int) true ;
32397 int arg4 = (int) 1 ;
32398 wxImageList *result = 0 ;
32399 int val1 ;
32400 int ecode1 = 0 ;
32401 int val2 ;
32402 int ecode2 = 0 ;
32403 int val3 ;
32404 int ecode3 = 0 ;
32405 int val4 ;
32406 int ecode4 = 0 ;
32407 PyObject * obj0 = 0 ;
32408 PyObject * obj1 = 0 ;
32409 PyObject * obj2 = 0 ;
32410 PyObject * obj3 = 0 ;
32411 char * kwnames[] = {
32412 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
32413 };
32414
32415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32416 ecode1 = SWIG_AsVal_int(obj0, &val1);
32417 if (!SWIG_IsOK(ecode1)) {
32418 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
32419 }
32420 arg1 = static_cast< int >(val1);
32421 ecode2 = SWIG_AsVal_int(obj1, &val2);
32422 if (!SWIG_IsOK(ecode2)) {
32423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
32424 }
32425 arg2 = static_cast< int >(val2);
32426 if (obj2) {
32427 ecode3 = SWIG_AsVal_int(obj2, &val3);
32428 if (!SWIG_IsOK(ecode3)) {
32429 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
32430 }
32431 arg3 = static_cast< int >(val3);
32432 }
32433 if (obj3) {
32434 ecode4 = SWIG_AsVal_int(obj3, &val4);
32435 if (!SWIG_IsOK(ecode4)) {
32436 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
32437 }
32438 arg4 = static_cast< int >(val4);
32439 }
32440 {
32441 if (!wxPyCheckForApp()) SWIG_fail;
32442 PyThreadState* __tstate = wxPyBeginAllowThreads();
32443 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
32444 wxPyEndAllowThreads(__tstate);
32445 if (PyErr_Occurred()) SWIG_fail;
32446 }
32447 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
32448 return resultobj;
32449 fail:
32450 return NULL;
32451 }
32452
32453
32454 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32455 PyObject *resultobj = 0;
32456 wxImageList *arg1 = (wxImageList *) 0 ;
32457 void *argp1 = 0 ;
32458 int res1 = 0 ;
32459 PyObject *swig_obj[1] ;
32460
32461 if (!args) SWIG_fail;
32462 swig_obj[0] = args;
32463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
32464 if (!SWIG_IsOK(res1)) {
32465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
32466 }
32467 arg1 = reinterpret_cast< wxImageList * >(argp1);
32468 {
32469 PyThreadState* __tstate = wxPyBeginAllowThreads();
32470 delete arg1;
32471
32472 wxPyEndAllowThreads(__tstate);
32473 if (PyErr_Occurred()) SWIG_fail;
32474 }
32475 resultobj = SWIG_Py_Void();
32476 return resultobj;
32477 fail:
32478 return NULL;
32479 }
32480
32481
32482 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32483 PyObject *resultobj = 0;
32484 wxImageList *arg1 = (wxImageList *) 0 ;
32485 wxBitmap *arg2 = 0 ;
32486 wxBitmap const &arg3_defvalue = wxNullBitmap ;
32487 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
32488 int result;
32489 void *argp1 = 0 ;
32490 int res1 = 0 ;
32491 void *argp2 = 0 ;
32492 int res2 = 0 ;
32493 void *argp3 = 0 ;
32494 int res3 = 0 ;
32495 PyObject * obj0 = 0 ;
32496 PyObject * obj1 = 0 ;
32497 PyObject * obj2 = 0 ;
32498 char * kwnames[] = {
32499 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
32500 };
32501
32502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32504 if (!SWIG_IsOK(res1)) {
32505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
32506 }
32507 arg1 = reinterpret_cast< wxImageList * >(argp1);
32508 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
32509 if (!SWIG_IsOK(res2)) {
32510 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32511 }
32512 if (!argp2) {
32513 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32514 }
32515 arg2 = reinterpret_cast< wxBitmap * >(argp2);
32516 if (obj2) {
32517 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
32518 if (!SWIG_IsOK(res3)) {
32519 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32520 }
32521 if (!argp3) {
32522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32523 }
32524 arg3 = reinterpret_cast< wxBitmap * >(argp3);
32525 }
32526 {
32527 PyThreadState* __tstate = wxPyBeginAllowThreads();
32528 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
32529 wxPyEndAllowThreads(__tstate);
32530 if (PyErr_Occurred()) SWIG_fail;
32531 }
32532 resultobj = SWIG_From_int(static_cast< int >(result));
32533 return resultobj;
32534 fail:
32535 return NULL;
32536 }
32537
32538
32539 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32540 PyObject *resultobj = 0;
32541 wxImageList *arg1 = (wxImageList *) 0 ;
32542 wxBitmap *arg2 = 0 ;
32543 wxColour *arg3 = 0 ;
32544 int result;
32545 void *argp1 = 0 ;
32546 int res1 = 0 ;
32547 void *argp2 = 0 ;
32548 int res2 = 0 ;
32549 wxColour temp3 ;
32550 PyObject * obj0 = 0 ;
32551 PyObject * obj1 = 0 ;
32552 PyObject * obj2 = 0 ;
32553 char * kwnames[] = {
32554 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
32555 };
32556
32557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32559 if (!SWIG_IsOK(res1)) {
32560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
32561 }
32562 arg1 = reinterpret_cast< wxImageList * >(argp1);
32563 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
32564 if (!SWIG_IsOK(res2)) {
32565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32566 }
32567 if (!argp2) {
32568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
32569 }
32570 arg2 = reinterpret_cast< wxBitmap * >(argp2);
32571 {
32572 arg3 = &temp3;
32573 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32574 }
32575 {
32576 PyThreadState* __tstate = wxPyBeginAllowThreads();
32577 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
32578 wxPyEndAllowThreads(__tstate);
32579 if (PyErr_Occurred()) SWIG_fail;
32580 }
32581 resultobj = SWIG_From_int(static_cast< int >(result));
32582 return resultobj;
32583 fail:
32584 return NULL;
32585 }
32586
32587
32588 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32589 PyObject *resultobj = 0;
32590 wxImageList *arg1 = (wxImageList *) 0 ;
32591 wxIcon *arg2 = 0 ;
32592 int result;
32593 void *argp1 = 0 ;
32594 int res1 = 0 ;
32595 void *argp2 = 0 ;
32596 int res2 = 0 ;
32597 PyObject * obj0 = 0 ;
32598 PyObject * obj1 = 0 ;
32599 char * kwnames[] = {
32600 (char *) "self",(char *) "icon", NULL
32601 };
32602
32603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
32604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32605 if (!SWIG_IsOK(res1)) {
32606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
32607 }
32608 arg1 = reinterpret_cast< wxImageList * >(argp1);
32609 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
32610 if (!SWIG_IsOK(res2)) {
32611 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
32612 }
32613 if (!argp2) {
32614 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
32615 }
32616 arg2 = reinterpret_cast< wxIcon * >(argp2);
32617 {
32618 PyThreadState* __tstate = wxPyBeginAllowThreads();
32619 result = (int)(arg1)->Add((wxIcon const &)*arg2);
32620 wxPyEndAllowThreads(__tstate);
32621 if (PyErr_Occurred()) SWIG_fail;
32622 }
32623 resultobj = SWIG_From_int(static_cast< int >(result));
32624 return resultobj;
32625 fail:
32626 return NULL;
32627 }
32628
32629
32630 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32631 PyObject *resultobj = 0;
32632 wxImageList *arg1 = (wxImageList *) 0 ;
32633 int arg2 ;
32634 SwigValueWrapper<wxBitmap > result;
32635 void *argp1 = 0 ;
32636 int res1 = 0 ;
32637 int val2 ;
32638 int ecode2 = 0 ;
32639 PyObject * obj0 = 0 ;
32640 PyObject * obj1 = 0 ;
32641 char * kwnames[] = {
32642 (char *) "self",(char *) "index", NULL
32643 };
32644
32645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
32646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32647 if (!SWIG_IsOK(res1)) {
32648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
32649 }
32650 arg1 = reinterpret_cast< wxImageList * >(argp1);
32651 ecode2 = SWIG_AsVal_int(obj1, &val2);
32652 if (!SWIG_IsOK(ecode2)) {
32653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
32654 }
32655 arg2 = static_cast< int >(val2);
32656 {
32657 PyThreadState* __tstate = wxPyBeginAllowThreads();
32658 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
32659 wxPyEndAllowThreads(__tstate);
32660 if (PyErr_Occurred()) SWIG_fail;
32661 }
32662 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
32663 return resultobj;
32664 fail:
32665 return NULL;
32666 }
32667
32668
32669 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32670 PyObject *resultobj = 0;
32671 wxImageList *arg1 = (wxImageList *) 0 ;
32672 int arg2 ;
32673 wxIcon result;
32674 void *argp1 = 0 ;
32675 int res1 = 0 ;
32676 int val2 ;
32677 int ecode2 = 0 ;
32678 PyObject * obj0 = 0 ;
32679 PyObject * obj1 = 0 ;
32680 char * kwnames[] = {
32681 (char *) "self",(char *) "index", NULL
32682 };
32683
32684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
32685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32686 if (!SWIG_IsOK(res1)) {
32687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
32688 }
32689 arg1 = reinterpret_cast< wxImageList * >(argp1);
32690 ecode2 = SWIG_AsVal_int(obj1, &val2);
32691 if (!SWIG_IsOK(ecode2)) {
32692 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
32693 }
32694 arg2 = static_cast< int >(val2);
32695 {
32696 PyThreadState* __tstate = wxPyBeginAllowThreads();
32697 result = ((wxImageList const *)arg1)->GetIcon(arg2);
32698 wxPyEndAllowThreads(__tstate);
32699 if (PyErr_Occurred()) SWIG_fail;
32700 }
32701 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
32702 return resultobj;
32703 fail:
32704 return NULL;
32705 }
32706
32707
32708 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32709 PyObject *resultobj = 0;
32710 wxImageList *arg1 = (wxImageList *) 0 ;
32711 int arg2 ;
32712 wxBitmap *arg3 = 0 ;
32713 wxBitmap const &arg4_defvalue = wxNullBitmap ;
32714 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
32715 bool result;
32716 void *argp1 = 0 ;
32717 int res1 = 0 ;
32718 int val2 ;
32719 int ecode2 = 0 ;
32720 void *argp3 = 0 ;
32721 int res3 = 0 ;
32722 void *argp4 = 0 ;
32723 int res4 = 0 ;
32724 PyObject * obj0 = 0 ;
32725 PyObject * obj1 = 0 ;
32726 PyObject * obj2 = 0 ;
32727 PyObject * obj3 = 0 ;
32728 char * kwnames[] = {
32729 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
32730 };
32731
32732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32734 if (!SWIG_IsOK(res1)) {
32735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
32736 }
32737 arg1 = reinterpret_cast< wxImageList * >(argp1);
32738 ecode2 = SWIG_AsVal_int(obj1, &val2);
32739 if (!SWIG_IsOK(ecode2)) {
32740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
32741 }
32742 arg2 = static_cast< int >(val2);
32743 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
32744 if (!SWIG_IsOK(res3)) {
32745 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32746 }
32747 if (!argp3) {
32748 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
32749 }
32750 arg3 = reinterpret_cast< wxBitmap * >(argp3);
32751 if (obj3) {
32752 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
32753 if (!SWIG_IsOK(res4)) {
32754 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
32755 }
32756 if (!argp4) {
32757 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
32758 }
32759 arg4 = reinterpret_cast< wxBitmap * >(argp4);
32760 }
32761 {
32762 PyThreadState* __tstate = wxPyBeginAllowThreads();
32763 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
32764 wxPyEndAllowThreads(__tstate);
32765 if (PyErr_Occurred()) SWIG_fail;
32766 }
32767 {
32768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32769 }
32770 return resultobj;
32771 fail:
32772 return NULL;
32773 }
32774
32775
32776 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32777 PyObject *resultobj = 0;
32778 wxImageList *arg1 = (wxImageList *) 0 ;
32779 int arg2 ;
32780 wxDC *arg3 = 0 ;
32781 int arg4 ;
32782 int arg5 ;
32783 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
32784 bool arg7 = (bool) (bool)false ;
32785 bool result;
32786 void *argp1 = 0 ;
32787 int res1 = 0 ;
32788 int val2 ;
32789 int ecode2 = 0 ;
32790 void *argp3 = 0 ;
32791 int res3 = 0 ;
32792 int val4 ;
32793 int ecode4 = 0 ;
32794 int val5 ;
32795 int ecode5 = 0 ;
32796 int val6 ;
32797 int ecode6 = 0 ;
32798 bool val7 ;
32799 int ecode7 = 0 ;
32800 PyObject * obj0 = 0 ;
32801 PyObject * obj1 = 0 ;
32802 PyObject * obj2 = 0 ;
32803 PyObject * obj3 = 0 ;
32804 PyObject * obj4 = 0 ;
32805 PyObject * obj5 = 0 ;
32806 PyObject * obj6 = 0 ;
32807 char * kwnames[] = {
32808 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
32809 };
32810
32811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32813 if (!SWIG_IsOK(res1)) {
32814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
32815 }
32816 arg1 = reinterpret_cast< wxImageList * >(argp1);
32817 ecode2 = SWIG_AsVal_int(obj1, &val2);
32818 if (!SWIG_IsOK(ecode2)) {
32819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
32820 }
32821 arg2 = static_cast< int >(val2);
32822 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
32823 if (!SWIG_IsOK(res3)) {
32824 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32825 }
32826 if (!argp3) {
32827 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
32828 }
32829 arg3 = reinterpret_cast< wxDC * >(argp3);
32830 ecode4 = SWIG_AsVal_int(obj3, &val4);
32831 if (!SWIG_IsOK(ecode4)) {
32832 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
32833 }
32834 arg4 = static_cast< int >(val4);
32835 ecode5 = SWIG_AsVal_int(obj4, &val5);
32836 if (!SWIG_IsOK(ecode5)) {
32837 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
32838 }
32839 arg5 = static_cast< int >(val5);
32840 if (obj5) {
32841 ecode6 = SWIG_AsVal_int(obj5, &val6);
32842 if (!SWIG_IsOK(ecode6)) {
32843 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
32844 }
32845 arg6 = static_cast< int >(val6);
32846 }
32847 if (obj6) {
32848 ecode7 = SWIG_AsVal_bool(obj6, &val7);
32849 if (!SWIG_IsOK(ecode7)) {
32850 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
32851 }
32852 arg7 = static_cast< bool >(val7);
32853 }
32854 {
32855 PyThreadState* __tstate = wxPyBeginAllowThreads();
32856 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
32857 wxPyEndAllowThreads(__tstate);
32858 if (PyErr_Occurred()) SWIG_fail;
32859 }
32860 {
32861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32862 }
32863 return resultobj;
32864 fail:
32865 return NULL;
32866 }
32867
32868
32869 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32870 PyObject *resultobj = 0;
32871 wxImageList *arg1 = (wxImageList *) 0 ;
32872 int result;
32873 void *argp1 = 0 ;
32874 int res1 = 0 ;
32875 PyObject *swig_obj[1] ;
32876
32877 if (!args) SWIG_fail;
32878 swig_obj[0] = args;
32879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32880 if (!SWIG_IsOK(res1)) {
32881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
32882 }
32883 arg1 = reinterpret_cast< wxImageList * >(argp1);
32884 {
32885 PyThreadState* __tstate = wxPyBeginAllowThreads();
32886 result = (int)(arg1)->GetImageCount();
32887 wxPyEndAllowThreads(__tstate);
32888 if (PyErr_Occurred()) SWIG_fail;
32889 }
32890 resultobj = SWIG_From_int(static_cast< int >(result));
32891 return resultobj;
32892 fail:
32893 return NULL;
32894 }
32895
32896
32897 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32898 PyObject *resultobj = 0;
32899 wxImageList *arg1 = (wxImageList *) 0 ;
32900 int arg2 ;
32901 bool result;
32902 void *argp1 = 0 ;
32903 int res1 = 0 ;
32904 int val2 ;
32905 int ecode2 = 0 ;
32906 PyObject * obj0 = 0 ;
32907 PyObject * obj1 = 0 ;
32908 char * kwnames[] = {
32909 (char *) "self",(char *) "index", NULL
32910 };
32911
32912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
32913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32914 if (!SWIG_IsOK(res1)) {
32915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
32916 }
32917 arg1 = reinterpret_cast< wxImageList * >(argp1);
32918 ecode2 = SWIG_AsVal_int(obj1, &val2);
32919 if (!SWIG_IsOK(ecode2)) {
32920 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
32921 }
32922 arg2 = static_cast< int >(val2);
32923 {
32924 PyThreadState* __tstate = wxPyBeginAllowThreads();
32925 result = (bool)(arg1)->Remove(arg2);
32926 wxPyEndAllowThreads(__tstate);
32927 if (PyErr_Occurred()) SWIG_fail;
32928 }
32929 {
32930 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32931 }
32932 return resultobj;
32933 fail:
32934 return NULL;
32935 }
32936
32937
32938 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32939 PyObject *resultobj = 0;
32940 wxImageList *arg1 = (wxImageList *) 0 ;
32941 bool result;
32942 void *argp1 = 0 ;
32943 int res1 = 0 ;
32944 PyObject *swig_obj[1] ;
32945
32946 if (!args) SWIG_fail;
32947 swig_obj[0] = args;
32948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32949 if (!SWIG_IsOK(res1)) {
32950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
32951 }
32952 arg1 = reinterpret_cast< wxImageList * >(argp1);
32953 {
32954 PyThreadState* __tstate = wxPyBeginAllowThreads();
32955 result = (bool)(arg1)->RemoveAll();
32956 wxPyEndAllowThreads(__tstate);
32957 if (PyErr_Occurred()) SWIG_fail;
32958 }
32959 {
32960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32961 }
32962 return resultobj;
32963 fail:
32964 return NULL;
32965 }
32966
32967
32968 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32969 PyObject *resultobj = 0;
32970 wxImageList *arg1 = (wxImageList *) 0 ;
32971 int arg2 ;
32972 int *arg3 = 0 ;
32973 int *arg4 = 0 ;
32974 void *argp1 = 0 ;
32975 int res1 = 0 ;
32976 int val2 ;
32977 int ecode2 = 0 ;
32978 int temp3 ;
32979 int res3 = SWIG_TMPOBJ ;
32980 int temp4 ;
32981 int res4 = SWIG_TMPOBJ ;
32982 PyObject * obj0 = 0 ;
32983 PyObject * obj1 = 0 ;
32984 char * kwnames[] = {
32985 (char *) "self",(char *) "index", NULL
32986 };
32987
32988 arg3 = &temp3;
32989 arg4 = &temp4;
32990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
32991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
32992 if (!SWIG_IsOK(res1)) {
32993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
32994 }
32995 arg1 = reinterpret_cast< wxImageList * >(argp1);
32996 ecode2 = SWIG_AsVal_int(obj1, &val2);
32997 if (!SWIG_IsOK(ecode2)) {
32998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
32999 }
33000 arg2 = static_cast< int >(val2);
33001 {
33002 PyThreadState* __tstate = wxPyBeginAllowThreads();
33003 (arg1)->GetSize(arg2,*arg3,*arg4);
33004 wxPyEndAllowThreads(__tstate);
33005 if (PyErr_Occurred()) SWIG_fail;
33006 }
33007 resultobj = SWIG_Py_Void();
33008 if (SWIG_IsTmpObj(res3)) {
33009 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
33010 } else {
33011 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
33012 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
33013 }
33014 if (SWIG_IsTmpObj(res4)) {
33015 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
33016 } else {
33017 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
33018 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
33019 }
33020 return resultobj;
33021 fail:
33022 return NULL;
33023 }
33024
33025
33026 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33027 PyObject *obj;
33028 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33029 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
33030 return SWIG_Py_Void();
33031 }
33032
33033 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33034 return SWIG_Python_InitShadowInstance(args);
33035 }
33036
33037 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33038 PyObject *resultobj = 0;
33039 wxStockGDI *result = 0 ;
33040
33041 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
33042 {
33043 PyThreadState* __tstate = wxPyBeginAllowThreads();
33044 result = (wxStockGDI *)new wxStockGDI();
33045 wxPyEndAllowThreads(__tstate);
33046 if (PyErr_Occurred()) SWIG_fail;
33047 }
33048 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
33049 return resultobj;
33050 fail:
33051 return NULL;
33052 }
33053
33054
33055 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33056 PyObject *resultobj = 0;
33057 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
33058 void *argp1 = 0 ;
33059 int res1 = 0 ;
33060 PyObject *swig_obj[1] ;
33061
33062 if (!args) SWIG_fail;
33063 swig_obj[0] = args;
33064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
33065 if (!SWIG_IsOK(res1)) {
33066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
33067 }
33068 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
33069 {
33070 PyThreadState* __tstate = wxPyBeginAllowThreads();
33071 delete arg1;
33072
33073 wxPyEndAllowThreads(__tstate);
33074 if (PyErr_Occurred()) SWIG_fail;
33075 }
33076 resultobj = SWIG_Py_Void();
33077 return resultobj;
33078 fail:
33079 return NULL;
33080 }
33081
33082
33083 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33084 PyObject *resultobj = 0;
33085
33086 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
33087 {
33088 PyThreadState* __tstate = wxPyBeginAllowThreads();
33089 wxStockGDI::DeleteAll();
33090 wxPyEndAllowThreads(__tstate);
33091 if (PyErr_Occurred()) SWIG_fail;
33092 }
33093 resultobj = SWIG_Py_Void();
33094 return resultobj;
33095 fail:
33096 return NULL;
33097 }
33098
33099
33100 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33101 PyObject *resultobj = 0;
33102 wxStockGDI *result = 0 ;
33103
33104 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
33105 {
33106 PyThreadState* __tstate = wxPyBeginAllowThreads();
33107 {
33108 wxStockGDI &_result_ref = wxStockGDI::instance();
33109 result = (wxStockGDI *) &_result_ref;
33110 }
33111 wxPyEndAllowThreads(__tstate);
33112 if (PyErr_Occurred()) SWIG_fail;
33113 }
33114 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
33115 return resultobj;
33116 fail:
33117 return NULL;
33118 }
33119
33120
33121 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33122 PyObject *resultobj = 0;
33123 wxStockGDI::Item arg1 ;
33124 wxBrush *result = 0 ;
33125 int val1 ;
33126 int ecode1 = 0 ;
33127 PyObject * obj0 = 0 ;
33128 char * kwnames[] = {
33129 (char *) "item", NULL
33130 };
33131
33132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
33133 ecode1 = SWIG_AsVal_int(obj0, &val1);
33134 if (!SWIG_IsOK(ecode1)) {
33135 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
33136 }
33137 arg1 = static_cast< wxStockGDI::Item >(val1);
33138 {
33139 PyThreadState* __tstate = wxPyBeginAllowThreads();
33140 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
33141 wxPyEndAllowThreads(__tstate);
33142 if (PyErr_Occurred()) SWIG_fail;
33143 }
33144 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
33145 return resultobj;
33146 fail:
33147 return NULL;
33148 }
33149
33150
33151 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33152 PyObject *resultobj = 0;
33153 wxStockGDI::Item arg1 ;
33154 wxColour *result = 0 ;
33155 int val1 ;
33156 int ecode1 = 0 ;
33157 PyObject * obj0 = 0 ;
33158 char * kwnames[] = {
33159 (char *) "item", NULL
33160 };
33161
33162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
33163 ecode1 = SWIG_AsVal_int(obj0, &val1);
33164 if (!SWIG_IsOK(ecode1)) {
33165 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
33166 }
33167 arg1 = static_cast< wxStockGDI::Item >(val1);
33168 {
33169 PyThreadState* __tstate = wxPyBeginAllowThreads();
33170 result = (wxColour *)wxStockGDI::GetColour(arg1);
33171 wxPyEndAllowThreads(__tstate);
33172 if (PyErr_Occurred()) SWIG_fail;
33173 }
33174 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33175 return resultobj;
33176 fail:
33177 return NULL;
33178 }
33179
33180
33181 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33182 PyObject *resultobj = 0;
33183 wxStockGDI::Item arg1 ;
33184 wxCursor *result = 0 ;
33185 int val1 ;
33186 int ecode1 = 0 ;
33187 PyObject * obj0 = 0 ;
33188 char * kwnames[] = {
33189 (char *) "item", NULL
33190 };
33191
33192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
33193 ecode1 = SWIG_AsVal_int(obj0, &val1);
33194 if (!SWIG_IsOK(ecode1)) {
33195 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
33196 }
33197 arg1 = static_cast< wxStockGDI::Item >(val1);
33198 {
33199 PyThreadState* __tstate = wxPyBeginAllowThreads();
33200 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
33201 wxPyEndAllowThreads(__tstate);
33202 if (PyErr_Occurred()) SWIG_fail;
33203 }
33204 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
33205 return resultobj;
33206 fail:
33207 return NULL;
33208 }
33209
33210
33211 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33212 PyObject *resultobj = 0;
33213 wxStockGDI::Item arg1 ;
33214 wxPen *result = 0 ;
33215 int val1 ;
33216 int ecode1 = 0 ;
33217 PyObject * obj0 = 0 ;
33218 char * kwnames[] = {
33219 (char *) "item", NULL
33220 };
33221
33222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
33223 ecode1 = SWIG_AsVal_int(obj0, &val1);
33224 if (!SWIG_IsOK(ecode1)) {
33225 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
33226 }
33227 arg1 = static_cast< wxStockGDI::Item >(val1);
33228 {
33229 PyThreadState* __tstate = wxPyBeginAllowThreads();
33230 result = (wxPen *)wxStockGDI::GetPen(arg1);
33231 wxPyEndAllowThreads(__tstate);
33232 if (PyErr_Occurred()) SWIG_fail;
33233 }
33234 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
33235 return resultobj;
33236 fail:
33237 return NULL;
33238 }
33239
33240
33241 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33242 PyObject *resultobj = 0;
33243 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
33244 wxStockGDI::Item arg2 ;
33245 wxFont *result = 0 ;
33246 void *argp1 = 0 ;
33247 int res1 = 0 ;
33248 int val2 ;
33249 int ecode2 = 0 ;
33250 PyObject * obj0 = 0 ;
33251 PyObject * obj1 = 0 ;
33252 char * kwnames[] = {
33253 (char *) "self",(char *) "item", NULL
33254 };
33255
33256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
33257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
33258 if (!SWIG_IsOK(res1)) {
33259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
33260 }
33261 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
33262 ecode2 = SWIG_AsVal_int(obj1, &val2);
33263 if (!SWIG_IsOK(ecode2)) {
33264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
33265 }
33266 arg2 = static_cast< wxStockGDI::Item >(val2);
33267 {
33268 PyThreadState* __tstate = wxPyBeginAllowThreads();
33269 result = (wxFont *)(arg1)->GetFont(arg2);
33270 wxPyEndAllowThreads(__tstate);
33271 if (PyErr_Occurred()) SWIG_fail;
33272 }
33273 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33274 return resultobj;
33275 fail:
33276 return NULL;
33277 }
33278
33279
33280 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33281 PyObject *obj;
33282 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33283 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
33284 return SWIG_Py_Void();
33285 }
33286
33287 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33288 return SWIG_Python_InitShadowInstance(args);
33289 }
33290
33291 SWIGINTERN int NullBitmap_set(PyObject *) {
33292 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
33293 return 1;
33294 }
33295
33296
33297 SWIGINTERN PyObject *NullBitmap_get(void) {
33298 PyObject *pyobj = 0;
33299
33300 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
33301 return pyobj;
33302 }
33303
33304
33305 SWIGINTERN int NullIcon_set(PyObject *) {
33306 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
33307 return 1;
33308 }
33309
33310
33311 SWIGINTERN PyObject *NullIcon_get(void) {
33312 PyObject *pyobj = 0;
33313
33314 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
33315 return pyobj;
33316 }
33317
33318
33319 SWIGINTERN int NullCursor_set(PyObject *) {
33320 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
33321 return 1;
33322 }
33323
33324
33325 SWIGINTERN PyObject *NullCursor_get(void) {
33326 PyObject *pyobj = 0;
33327
33328 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
33329 return pyobj;
33330 }
33331
33332
33333 SWIGINTERN int NullPen_set(PyObject *) {
33334 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
33335 return 1;
33336 }
33337
33338
33339 SWIGINTERN PyObject *NullPen_get(void) {
33340 PyObject *pyobj = 0;
33341
33342 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
33343 return pyobj;
33344 }
33345
33346
33347 SWIGINTERN int NullBrush_set(PyObject *) {
33348 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
33349 return 1;
33350 }
33351
33352
33353 SWIGINTERN PyObject *NullBrush_get(void) {
33354 PyObject *pyobj = 0;
33355
33356 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
33357 return pyobj;
33358 }
33359
33360
33361 SWIGINTERN int NullPalette_set(PyObject *) {
33362 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
33363 return 1;
33364 }
33365
33366
33367 SWIGINTERN PyObject *NullPalette_get(void) {
33368 PyObject *pyobj = 0;
33369
33370 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
33371 return pyobj;
33372 }
33373
33374
33375 SWIGINTERN int NullFont_set(PyObject *) {
33376 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
33377 return 1;
33378 }
33379
33380
33381 SWIGINTERN PyObject *NullFont_get(void) {
33382 PyObject *pyobj = 0;
33383
33384 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
33385 return pyobj;
33386 }
33387
33388
33389 SWIGINTERN int NullColour_set(PyObject *) {
33390 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
33391 return 1;
33392 }
33393
33394
33395 SWIGINTERN PyObject *NullColour_get(void) {
33396 PyObject *pyobj = 0;
33397
33398 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
33399 return pyobj;
33400 }
33401
33402
33403 SWIGINTERN int NullIconBundle_set(PyObject *) {
33404 SWIG_Error(SWIG_AttributeError,"Variable NullIconBundle is read-only.");
33405 return 1;
33406 }
33407
33408
33409 SWIGINTERN PyObject *NullIconBundle_get(void) {
33410 PyObject *pyobj = 0;
33411
33412 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIconBundle), SWIGTYPE_p_wxIconBundle, 0 );
33413 return pyobj;
33414 }
33415
33416
33417 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33418 PyObject *resultobj = 0;
33419 wxGDIObjListBase *result = 0 ;
33420
33421 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
33422 {
33423 PyThreadState* __tstate = wxPyBeginAllowThreads();
33424 result = (wxGDIObjListBase *)new wxGDIObjListBase();
33425 wxPyEndAllowThreads(__tstate);
33426 if (PyErr_Occurred()) SWIG_fail;
33427 }
33428 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
33429 return resultobj;
33430 fail:
33431 return NULL;
33432 }
33433
33434
33435 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33436 PyObject *resultobj = 0;
33437 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
33438 void *argp1 = 0 ;
33439 int res1 = 0 ;
33440 PyObject *swig_obj[1] ;
33441
33442 if (!args) SWIG_fail;
33443 swig_obj[0] = args;
33444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
33445 if (!SWIG_IsOK(res1)) {
33446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
33447 }
33448 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
33449 {
33450 PyThreadState* __tstate = wxPyBeginAllowThreads();
33451 delete arg1;
33452
33453 wxPyEndAllowThreads(__tstate);
33454 if (PyErr_Occurred()) SWIG_fail;
33455 }
33456 resultobj = SWIG_Py_Void();
33457 return resultobj;
33458 fail:
33459 return NULL;
33460 }
33461
33462
33463 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33464 PyObject *obj;
33465 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33466 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
33467 return SWIG_Py_Void();
33468 }
33469
33470 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33471 return SWIG_Python_InitShadowInstance(args);
33472 }
33473
33474 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33475 PyObject *resultobj = 0;
33476 wxPenList *arg1 = (wxPenList *) 0 ;
33477 wxColour *arg2 = 0 ;
33478 int arg3 ;
33479 int arg4 ;
33480 wxPen *result = 0 ;
33481 void *argp1 = 0 ;
33482 int res1 = 0 ;
33483 wxColour temp2 ;
33484 int val3 ;
33485 int ecode3 = 0 ;
33486 int val4 ;
33487 int ecode4 = 0 ;
33488 PyObject * obj0 = 0 ;
33489 PyObject * obj1 = 0 ;
33490 PyObject * obj2 = 0 ;
33491 PyObject * obj3 = 0 ;
33492 char * kwnames[] = {
33493 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
33494 };
33495
33496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
33498 if (!SWIG_IsOK(res1)) {
33499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
33500 }
33501 arg1 = reinterpret_cast< wxPenList * >(argp1);
33502 {
33503 arg2 = &temp2;
33504 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33505 }
33506 ecode3 = SWIG_AsVal_int(obj2, &val3);
33507 if (!SWIG_IsOK(ecode3)) {
33508 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
33509 }
33510 arg3 = static_cast< int >(val3);
33511 ecode4 = SWIG_AsVal_int(obj3, &val4);
33512 if (!SWIG_IsOK(ecode4)) {
33513 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
33514 }
33515 arg4 = static_cast< int >(val4);
33516 {
33517 PyThreadState* __tstate = wxPyBeginAllowThreads();
33518 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
33519 wxPyEndAllowThreads(__tstate);
33520 if (PyErr_Occurred()) SWIG_fail;
33521 }
33522 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
33523 return resultobj;
33524 fail:
33525 return NULL;
33526 }
33527
33528
33529 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33530 PyObject *obj;
33531 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33532 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
33533 return SWIG_Py_Void();
33534 }
33535
33536 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33537 PyObject *resultobj = 0;
33538 wxBrushList *arg1 = (wxBrushList *) 0 ;
33539 wxColour *arg2 = 0 ;
33540 int arg3 = (int) wxSOLID ;
33541 wxBrush *result = 0 ;
33542 void *argp1 = 0 ;
33543 int res1 = 0 ;
33544 wxColour temp2 ;
33545 int val3 ;
33546 int ecode3 = 0 ;
33547 PyObject * obj0 = 0 ;
33548 PyObject * obj1 = 0 ;
33549 PyObject * obj2 = 0 ;
33550 char * kwnames[] = {
33551 (char *) "self",(char *) "colour",(char *) "style", NULL
33552 };
33553
33554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
33556 if (!SWIG_IsOK(res1)) {
33557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
33558 }
33559 arg1 = reinterpret_cast< wxBrushList * >(argp1);
33560 {
33561 arg2 = &temp2;
33562 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33563 }
33564 if (obj2) {
33565 ecode3 = SWIG_AsVal_int(obj2, &val3);
33566 if (!SWIG_IsOK(ecode3)) {
33567 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
33568 }
33569 arg3 = static_cast< int >(val3);
33570 }
33571 {
33572 PyThreadState* __tstate = wxPyBeginAllowThreads();
33573 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
33574 wxPyEndAllowThreads(__tstate);
33575 if (PyErr_Occurred()) SWIG_fail;
33576 }
33577 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
33578 return resultobj;
33579 fail:
33580 return NULL;
33581 }
33582
33583
33584 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33585 PyObject *obj;
33586 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33587 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
33588 return SWIG_Py_Void();
33589 }
33590
33591 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33592 PyObject *resultobj = 0;
33593 wxFontList *arg1 = (wxFontList *) 0 ;
33594 int arg2 ;
33595 int arg3 ;
33596 int arg4 ;
33597 int arg5 ;
33598 bool arg6 = (bool) false ;
33599 wxString const &arg7_defvalue = wxPyEmptyString ;
33600 wxString *arg7 = (wxString *) &arg7_defvalue ;
33601 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
33602 wxFont *result = 0 ;
33603 void *argp1 = 0 ;
33604 int res1 = 0 ;
33605 int val2 ;
33606 int ecode2 = 0 ;
33607 int val3 ;
33608 int ecode3 = 0 ;
33609 int val4 ;
33610 int ecode4 = 0 ;
33611 int val5 ;
33612 int ecode5 = 0 ;
33613 bool val6 ;
33614 int ecode6 = 0 ;
33615 bool temp7 = false ;
33616 int val8 ;
33617 int ecode8 = 0 ;
33618 PyObject * obj0 = 0 ;
33619 PyObject * obj1 = 0 ;
33620 PyObject * obj2 = 0 ;
33621 PyObject * obj3 = 0 ;
33622 PyObject * obj4 = 0 ;
33623 PyObject * obj5 = 0 ;
33624 PyObject * obj6 = 0 ;
33625 PyObject * obj7 = 0 ;
33626 char * kwnames[] = {
33627 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
33628 };
33629
33630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
33632 if (!SWIG_IsOK(res1)) {
33633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
33634 }
33635 arg1 = reinterpret_cast< wxFontList * >(argp1);
33636 ecode2 = SWIG_AsVal_int(obj1, &val2);
33637 if (!SWIG_IsOK(ecode2)) {
33638 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
33639 }
33640 arg2 = static_cast< int >(val2);
33641 ecode3 = SWIG_AsVal_int(obj2, &val3);
33642 if (!SWIG_IsOK(ecode3)) {
33643 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
33644 }
33645 arg3 = static_cast< int >(val3);
33646 ecode4 = SWIG_AsVal_int(obj3, &val4);
33647 if (!SWIG_IsOK(ecode4)) {
33648 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
33649 }
33650 arg4 = static_cast< int >(val4);
33651 ecode5 = SWIG_AsVal_int(obj4, &val5);
33652 if (!SWIG_IsOK(ecode5)) {
33653 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
33654 }
33655 arg5 = static_cast< int >(val5);
33656 if (obj5) {
33657 ecode6 = SWIG_AsVal_bool(obj5, &val6);
33658 if (!SWIG_IsOK(ecode6)) {
33659 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
33660 }
33661 arg6 = static_cast< bool >(val6);
33662 }
33663 if (obj6) {
33664 {
33665 arg7 = wxString_in_helper(obj6);
33666 if (arg7 == NULL) SWIG_fail;
33667 temp7 = true;
33668 }
33669 }
33670 if (obj7) {
33671 ecode8 = SWIG_AsVal_int(obj7, &val8);
33672 if (!SWIG_IsOK(ecode8)) {
33673 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
33674 }
33675 arg8 = static_cast< wxFontEncoding >(val8);
33676 }
33677 {
33678 PyThreadState* __tstate = wxPyBeginAllowThreads();
33679 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
33680 wxPyEndAllowThreads(__tstate);
33681 if (PyErr_Occurred()) SWIG_fail;
33682 }
33683 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33684 {
33685 if (temp7)
33686 delete arg7;
33687 }
33688 return resultobj;
33689 fail:
33690 {
33691 if (temp7)
33692 delete arg7;
33693 }
33694 return NULL;
33695 }
33696
33697
33698 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33699 PyObject *obj;
33700 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33701 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
33702 return SWIG_Py_Void();
33703 }
33704
33705 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33706 PyObject *resultobj = 0;
33707 wxColourDatabase *result = 0 ;
33708
33709 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
33710 {
33711 if (!wxPyCheckForApp()) SWIG_fail;
33712 PyThreadState* __tstate = wxPyBeginAllowThreads();
33713 result = (wxColourDatabase *)new wxColourDatabase();
33714 wxPyEndAllowThreads(__tstate);
33715 if (PyErr_Occurred()) SWIG_fail;
33716 }
33717 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
33718 return resultobj;
33719 fail:
33720 return NULL;
33721 }
33722
33723
33724 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33725 PyObject *resultobj = 0;
33726 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33727 void *argp1 = 0 ;
33728 int res1 = 0 ;
33729 PyObject *swig_obj[1] ;
33730
33731 if (!args) SWIG_fail;
33732 swig_obj[0] = args;
33733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
33734 if (!SWIG_IsOK(res1)) {
33735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33736 }
33737 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33738 {
33739 PyThreadState* __tstate = wxPyBeginAllowThreads();
33740 delete arg1;
33741
33742 wxPyEndAllowThreads(__tstate);
33743 if (PyErr_Occurred()) SWIG_fail;
33744 }
33745 resultobj = SWIG_Py_Void();
33746 return resultobj;
33747 fail:
33748 return NULL;
33749 }
33750
33751
33752 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33753 PyObject *resultobj = 0;
33754 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33755 wxString *arg2 = 0 ;
33756 wxColour result;
33757 void *argp1 = 0 ;
33758 int res1 = 0 ;
33759 bool temp2 = false ;
33760 PyObject * obj0 = 0 ;
33761 PyObject * obj1 = 0 ;
33762 char * kwnames[] = {
33763 (char *) "self",(char *) "name", NULL
33764 };
33765
33766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
33767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33768 if (!SWIG_IsOK(res1)) {
33769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33770 }
33771 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33772 {
33773 arg2 = wxString_in_helper(obj1);
33774 if (arg2 == NULL) SWIG_fail;
33775 temp2 = true;
33776 }
33777 {
33778 PyThreadState* __tstate = wxPyBeginAllowThreads();
33779 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
33780 wxPyEndAllowThreads(__tstate);
33781 if (PyErr_Occurred()) SWIG_fail;
33782 }
33783 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33784 {
33785 if (temp2)
33786 delete arg2;
33787 }
33788 return resultobj;
33789 fail:
33790 {
33791 if (temp2)
33792 delete arg2;
33793 }
33794 return NULL;
33795 }
33796
33797
33798 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33799 PyObject *resultobj = 0;
33800 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33801 wxColour *arg2 = 0 ;
33802 wxString result;
33803 void *argp1 = 0 ;
33804 int res1 = 0 ;
33805 wxColour temp2 ;
33806 PyObject * obj0 = 0 ;
33807 PyObject * obj1 = 0 ;
33808 char * kwnames[] = {
33809 (char *) "self",(char *) "colour", NULL
33810 };
33811
33812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
33813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33814 if (!SWIG_IsOK(res1)) {
33815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
33816 }
33817 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33818 {
33819 arg2 = &temp2;
33820 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33821 }
33822 {
33823 PyThreadState* __tstate = wxPyBeginAllowThreads();
33824 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
33825 wxPyEndAllowThreads(__tstate);
33826 if (PyErr_Occurred()) SWIG_fail;
33827 }
33828 {
33829 #if wxUSE_UNICODE
33830 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33831 #else
33832 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33833 #endif
33834 }
33835 return resultobj;
33836 fail:
33837 return NULL;
33838 }
33839
33840
33841 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33842 PyObject *resultobj = 0;
33843 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33844 wxString *arg2 = 0 ;
33845 wxColour *arg3 = 0 ;
33846 void *argp1 = 0 ;
33847 int res1 = 0 ;
33848 bool temp2 = false ;
33849 wxColour temp3 ;
33850 PyObject * obj0 = 0 ;
33851 PyObject * obj1 = 0 ;
33852 PyObject * obj2 = 0 ;
33853 char * kwnames[] = {
33854 (char *) "self",(char *) "name",(char *) "colour", NULL
33855 };
33856
33857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33859 if (!SWIG_IsOK(res1)) {
33860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33861 }
33862 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33863 {
33864 arg2 = wxString_in_helper(obj1);
33865 if (arg2 == NULL) SWIG_fail;
33866 temp2 = true;
33867 }
33868 {
33869 arg3 = &temp3;
33870 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33871 }
33872 {
33873 PyThreadState* __tstate = wxPyBeginAllowThreads();
33874 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
33875 wxPyEndAllowThreads(__tstate);
33876 if (PyErr_Occurred()) SWIG_fail;
33877 }
33878 resultobj = SWIG_Py_Void();
33879 {
33880 if (temp2)
33881 delete arg2;
33882 }
33883 return resultobj;
33884 fail:
33885 {
33886 if (temp2)
33887 delete arg2;
33888 }
33889 return NULL;
33890 }
33891
33892
33893 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33894 PyObject *resultobj = 0;
33895 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
33896 wxString *arg2 = 0 ;
33897 int arg3 ;
33898 int arg4 ;
33899 int arg5 ;
33900 void *argp1 = 0 ;
33901 int res1 = 0 ;
33902 bool temp2 = false ;
33903 int val3 ;
33904 int ecode3 = 0 ;
33905 int val4 ;
33906 int ecode4 = 0 ;
33907 int val5 ;
33908 int ecode5 = 0 ;
33909 PyObject * obj0 = 0 ;
33910 PyObject * obj1 = 0 ;
33911 PyObject * obj2 = 0 ;
33912 PyObject * obj3 = 0 ;
33913 PyObject * obj4 = 0 ;
33914 char * kwnames[] = {
33915 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
33916 };
33917
33918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33920 if (!SWIG_IsOK(res1)) {
33921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
33922 }
33923 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
33924 {
33925 arg2 = wxString_in_helper(obj1);
33926 if (arg2 == NULL) SWIG_fail;
33927 temp2 = true;
33928 }
33929 ecode3 = SWIG_AsVal_int(obj2, &val3);
33930 if (!SWIG_IsOK(ecode3)) {
33931 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
33932 }
33933 arg3 = static_cast< int >(val3);
33934 ecode4 = SWIG_AsVal_int(obj3, &val4);
33935 if (!SWIG_IsOK(ecode4)) {
33936 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
33937 }
33938 arg4 = static_cast< int >(val4);
33939 ecode5 = SWIG_AsVal_int(obj4, &val5);
33940 if (!SWIG_IsOK(ecode5)) {
33941 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
33942 }
33943 arg5 = static_cast< int >(val5);
33944 {
33945 PyThreadState* __tstate = wxPyBeginAllowThreads();
33946 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
33947 wxPyEndAllowThreads(__tstate);
33948 if (PyErr_Occurred()) SWIG_fail;
33949 }
33950 resultobj = SWIG_Py_Void();
33951 {
33952 if (temp2)
33953 delete arg2;
33954 }
33955 return resultobj;
33956 fail:
33957 {
33958 if (temp2)
33959 delete arg2;
33960 }
33961 return NULL;
33962 }
33963
33964
33965 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33966 PyObject *obj;
33967 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33968 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
33969 return SWIG_Py_Void();
33970 }
33971
33972 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33973 return SWIG_Python_InitShadowInstance(args);
33974 }
33975
33976 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33977 PyObject *resultobj = 0;
33978 wxFontList *result = 0 ;
33979
33980 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
33981 {
33982 PyThreadState* __tstate = wxPyBeginAllowThreads();
33983 result = (wxFontList *)_wxPyInitTheFontList();
33984 wxPyEndAllowThreads(__tstate);
33985 if (PyErr_Occurred()) SWIG_fail;
33986 }
33987 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
33988 return resultobj;
33989 fail:
33990 return NULL;
33991 }
33992
33993
33994 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33995 PyObject *resultobj = 0;
33996 wxPenList *result = 0 ;
33997
33998 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
33999 {
34000 PyThreadState* __tstate = wxPyBeginAllowThreads();
34001 result = (wxPenList *)_wxPyInitThePenList();
34002 wxPyEndAllowThreads(__tstate);
34003 if (PyErr_Occurred()) SWIG_fail;
34004 }
34005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
34006 return resultobj;
34007 fail:
34008 return NULL;
34009 }
34010
34011
34012 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34013 PyObject *resultobj = 0;
34014 wxBrushList *result = 0 ;
34015
34016 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
34017 {
34018 PyThreadState* __tstate = wxPyBeginAllowThreads();
34019 result = (wxBrushList *)_wxPyInitTheBrushList();
34020 wxPyEndAllowThreads(__tstate);
34021 if (PyErr_Occurred()) SWIG_fail;
34022 }
34023 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
34024 return resultobj;
34025 fail:
34026 return NULL;
34027 }
34028
34029
34030 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34031 PyObject *resultobj = 0;
34032 wxColourDatabase *result = 0 ;
34033
34034 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
34035 {
34036 PyThreadState* __tstate = wxPyBeginAllowThreads();
34037 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
34038 wxPyEndAllowThreads(__tstate);
34039 if (PyErr_Occurred()) SWIG_fail;
34040 }
34041 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
34042 return resultobj;
34043 fail:
34044 return NULL;
34045 }
34046
34047
34048 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34049 PyObject *resultobj = 0;
34050 wxEffects *result = 0 ;
34051
34052 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
34053 {
34054 PyThreadState* __tstate = wxPyBeginAllowThreads();
34055 result = (wxEffects *)new wxEffects();
34056 wxPyEndAllowThreads(__tstate);
34057 if (PyErr_Occurred()) SWIG_fail;
34058 }
34059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
34060 return resultobj;
34061 fail:
34062 return NULL;
34063 }
34064
34065
34066 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34067 PyObject *resultobj = 0;
34068 wxEffects *arg1 = (wxEffects *) 0 ;
34069 wxColour result;
34070 void *argp1 = 0 ;
34071 int res1 = 0 ;
34072 PyObject *swig_obj[1] ;
34073
34074 if (!args) SWIG_fail;
34075 swig_obj[0] = args;
34076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34077 if (!SWIG_IsOK(res1)) {
34078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
34079 }
34080 arg1 = reinterpret_cast< wxEffects * >(argp1);
34081 {
34082 PyThreadState* __tstate = wxPyBeginAllowThreads();
34083 result = ((wxEffects const *)arg1)->GetHighlightColour();
34084 wxPyEndAllowThreads(__tstate);
34085 if (PyErr_Occurred()) SWIG_fail;
34086 }
34087 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34088 return resultobj;
34089 fail:
34090 return NULL;
34091 }
34092
34093
34094 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34095 PyObject *resultobj = 0;
34096 wxEffects *arg1 = (wxEffects *) 0 ;
34097 wxColour result;
34098 void *argp1 = 0 ;
34099 int res1 = 0 ;
34100 PyObject *swig_obj[1] ;
34101
34102 if (!args) SWIG_fail;
34103 swig_obj[0] = args;
34104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34105 if (!SWIG_IsOK(res1)) {
34106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
34107 }
34108 arg1 = reinterpret_cast< wxEffects * >(argp1);
34109 {
34110 PyThreadState* __tstate = wxPyBeginAllowThreads();
34111 result = ((wxEffects const *)arg1)->GetLightShadow();
34112 wxPyEndAllowThreads(__tstate);
34113 if (PyErr_Occurred()) SWIG_fail;
34114 }
34115 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34116 return resultobj;
34117 fail:
34118 return NULL;
34119 }
34120
34121
34122 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34123 PyObject *resultobj = 0;
34124 wxEffects *arg1 = (wxEffects *) 0 ;
34125 wxColour result;
34126 void *argp1 = 0 ;
34127 int res1 = 0 ;
34128 PyObject *swig_obj[1] ;
34129
34130 if (!args) SWIG_fail;
34131 swig_obj[0] = args;
34132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34133 if (!SWIG_IsOK(res1)) {
34134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
34135 }
34136 arg1 = reinterpret_cast< wxEffects * >(argp1);
34137 {
34138 PyThreadState* __tstate = wxPyBeginAllowThreads();
34139 result = ((wxEffects const *)arg1)->GetFaceColour();
34140 wxPyEndAllowThreads(__tstate);
34141 if (PyErr_Occurred()) SWIG_fail;
34142 }
34143 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34144 return resultobj;
34145 fail:
34146 return NULL;
34147 }
34148
34149
34150 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34151 PyObject *resultobj = 0;
34152 wxEffects *arg1 = (wxEffects *) 0 ;
34153 wxColour result;
34154 void *argp1 = 0 ;
34155 int res1 = 0 ;
34156 PyObject *swig_obj[1] ;
34157
34158 if (!args) SWIG_fail;
34159 swig_obj[0] = args;
34160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34161 if (!SWIG_IsOK(res1)) {
34162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
34163 }
34164 arg1 = reinterpret_cast< wxEffects * >(argp1);
34165 {
34166 PyThreadState* __tstate = wxPyBeginAllowThreads();
34167 result = ((wxEffects const *)arg1)->GetMediumShadow();
34168 wxPyEndAllowThreads(__tstate);
34169 if (PyErr_Occurred()) SWIG_fail;
34170 }
34171 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34172 return resultobj;
34173 fail:
34174 return NULL;
34175 }
34176
34177
34178 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34179 PyObject *resultobj = 0;
34180 wxEffects *arg1 = (wxEffects *) 0 ;
34181 wxColour result;
34182 void *argp1 = 0 ;
34183 int res1 = 0 ;
34184 PyObject *swig_obj[1] ;
34185
34186 if (!args) SWIG_fail;
34187 swig_obj[0] = args;
34188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34189 if (!SWIG_IsOK(res1)) {
34190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
34191 }
34192 arg1 = reinterpret_cast< wxEffects * >(argp1);
34193 {
34194 PyThreadState* __tstate = wxPyBeginAllowThreads();
34195 result = ((wxEffects const *)arg1)->GetDarkShadow();
34196 wxPyEndAllowThreads(__tstate);
34197 if (PyErr_Occurred()) SWIG_fail;
34198 }
34199 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34200 return resultobj;
34201 fail:
34202 return NULL;
34203 }
34204
34205
34206 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34207 PyObject *resultobj = 0;
34208 wxEffects *arg1 = (wxEffects *) 0 ;
34209 wxColour *arg2 = 0 ;
34210 void *argp1 = 0 ;
34211 int res1 = 0 ;
34212 wxColour temp2 ;
34213 PyObject * obj0 = 0 ;
34214 PyObject * obj1 = 0 ;
34215 char * kwnames[] = {
34216 (char *) "self",(char *) "c", NULL
34217 };
34218
34219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
34220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34221 if (!SWIG_IsOK(res1)) {
34222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
34223 }
34224 arg1 = reinterpret_cast< wxEffects * >(argp1);
34225 {
34226 arg2 = &temp2;
34227 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34228 }
34229 {
34230 PyThreadState* __tstate = wxPyBeginAllowThreads();
34231 (arg1)->SetHighlightColour((wxColour const &)*arg2);
34232 wxPyEndAllowThreads(__tstate);
34233 if (PyErr_Occurred()) SWIG_fail;
34234 }
34235 resultobj = SWIG_Py_Void();
34236 return resultobj;
34237 fail:
34238 return NULL;
34239 }
34240
34241
34242 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34243 PyObject *resultobj = 0;
34244 wxEffects *arg1 = (wxEffects *) 0 ;
34245 wxColour *arg2 = 0 ;
34246 void *argp1 = 0 ;
34247 int res1 = 0 ;
34248 wxColour temp2 ;
34249 PyObject * obj0 = 0 ;
34250 PyObject * obj1 = 0 ;
34251 char * kwnames[] = {
34252 (char *) "self",(char *) "c", NULL
34253 };
34254
34255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
34256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34257 if (!SWIG_IsOK(res1)) {
34258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
34259 }
34260 arg1 = reinterpret_cast< wxEffects * >(argp1);
34261 {
34262 arg2 = &temp2;
34263 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34264 }
34265 {
34266 PyThreadState* __tstate = wxPyBeginAllowThreads();
34267 (arg1)->SetLightShadow((wxColour const &)*arg2);
34268 wxPyEndAllowThreads(__tstate);
34269 if (PyErr_Occurred()) SWIG_fail;
34270 }
34271 resultobj = SWIG_Py_Void();
34272 return resultobj;
34273 fail:
34274 return NULL;
34275 }
34276
34277
34278 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34279 PyObject *resultobj = 0;
34280 wxEffects *arg1 = (wxEffects *) 0 ;
34281 wxColour *arg2 = 0 ;
34282 void *argp1 = 0 ;
34283 int res1 = 0 ;
34284 wxColour temp2 ;
34285 PyObject * obj0 = 0 ;
34286 PyObject * obj1 = 0 ;
34287 char * kwnames[] = {
34288 (char *) "self",(char *) "c", NULL
34289 };
34290
34291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
34292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34293 if (!SWIG_IsOK(res1)) {
34294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
34295 }
34296 arg1 = reinterpret_cast< wxEffects * >(argp1);
34297 {
34298 arg2 = &temp2;
34299 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34300 }
34301 {
34302 PyThreadState* __tstate = wxPyBeginAllowThreads();
34303 (arg1)->SetFaceColour((wxColour const &)*arg2);
34304 wxPyEndAllowThreads(__tstate);
34305 if (PyErr_Occurred()) SWIG_fail;
34306 }
34307 resultobj = SWIG_Py_Void();
34308 return resultobj;
34309 fail:
34310 return NULL;
34311 }
34312
34313
34314 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34315 PyObject *resultobj = 0;
34316 wxEffects *arg1 = (wxEffects *) 0 ;
34317 wxColour *arg2 = 0 ;
34318 void *argp1 = 0 ;
34319 int res1 = 0 ;
34320 wxColour temp2 ;
34321 PyObject * obj0 = 0 ;
34322 PyObject * obj1 = 0 ;
34323 char * kwnames[] = {
34324 (char *) "self",(char *) "c", NULL
34325 };
34326
34327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
34328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34329 if (!SWIG_IsOK(res1)) {
34330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
34331 }
34332 arg1 = reinterpret_cast< wxEffects * >(argp1);
34333 {
34334 arg2 = &temp2;
34335 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34336 }
34337 {
34338 PyThreadState* __tstate = wxPyBeginAllowThreads();
34339 (arg1)->SetMediumShadow((wxColour const &)*arg2);
34340 wxPyEndAllowThreads(__tstate);
34341 if (PyErr_Occurred()) SWIG_fail;
34342 }
34343 resultobj = SWIG_Py_Void();
34344 return resultobj;
34345 fail:
34346 return NULL;
34347 }
34348
34349
34350 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34351 PyObject *resultobj = 0;
34352 wxEffects *arg1 = (wxEffects *) 0 ;
34353 wxColour *arg2 = 0 ;
34354 void *argp1 = 0 ;
34355 int res1 = 0 ;
34356 wxColour temp2 ;
34357 PyObject * obj0 = 0 ;
34358 PyObject * obj1 = 0 ;
34359 char * kwnames[] = {
34360 (char *) "self",(char *) "c", NULL
34361 };
34362
34363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
34364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34365 if (!SWIG_IsOK(res1)) {
34366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
34367 }
34368 arg1 = reinterpret_cast< wxEffects * >(argp1);
34369 {
34370 arg2 = &temp2;
34371 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34372 }
34373 {
34374 PyThreadState* __tstate = wxPyBeginAllowThreads();
34375 (arg1)->SetDarkShadow((wxColour const &)*arg2);
34376 wxPyEndAllowThreads(__tstate);
34377 if (PyErr_Occurred()) SWIG_fail;
34378 }
34379 resultobj = SWIG_Py_Void();
34380 return resultobj;
34381 fail:
34382 return NULL;
34383 }
34384
34385
34386 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34387 PyObject *resultobj = 0;
34388 wxEffects *arg1 = (wxEffects *) 0 ;
34389 wxColour *arg2 = 0 ;
34390 wxColour *arg3 = 0 ;
34391 wxColour *arg4 = 0 ;
34392 wxColour *arg5 = 0 ;
34393 wxColour *arg6 = 0 ;
34394 void *argp1 = 0 ;
34395 int res1 = 0 ;
34396 wxColour temp2 ;
34397 wxColour temp3 ;
34398 wxColour temp4 ;
34399 wxColour temp5 ;
34400 wxColour temp6 ;
34401 PyObject * obj0 = 0 ;
34402 PyObject * obj1 = 0 ;
34403 PyObject * obj2 = 0 ;
34404 PyObject * obj3 = 0 ;
34405 PyObject * obj4 = 0 ;
34406 PyObject * obj5 = 0 ;
34407 char * kwnames[] = {
34408 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
34409 };
34410
34411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
34412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34413 if (!SWIG_IsOK(res1)) {
34414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
34415 }
34416 arg1 = reinterpret_cast< wxEffects * >(argp1);
34417 {
34418 arg2 = &temp2;
34419 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34420 }
34421 {
34422 arg3 = &temp3;
34423 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34424 }
34425 {
34426 arg4 = &temp4;
34427 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
34428 }
34429 {
34430 arg5 = &temp5;
34431 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
34432 }
34433 {
34434 arg6 = &temp6;
34435 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
34436 }
34437 {
34438 PyThreadState* __tstate = wxPyBeginAllowThreads();
34439 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
34440 wxPyEndAllowThreads(__tstate);
34441 if (PyErr_Occurred()) SWIG_fail;
34442 }
34443 resultobj = SWIG_Py_Void();
34444 return resultobj;
34445 fail:
34446 return NULL;
34447 }
34448
34449
34450 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34451 PyObject *resultobj = 0;
34452 wxEffects *arg1 = (wxEffects *) 0 ;
34453 wxDC *arg2 = 0 ;
34454 wxRect *arg3 = 0 ;
34455 int arg4 = (int) 1 ;
34456 void *argp1 = 0 ;
34457 int res1 = 0 ;
34458 void *argp2 = 0 ;
34459 int res2 = 0 ;
34460 wxRect temp3 ;
34461 int val4 ;
34462 int ecode4 = 0 ;
34463 PyObject * obj0 = 0 ;
34464 PyObject * obj1 = 0 ;
34465 PyObject * obj2 = 0 ;
34466 PyObject * obj3 = 0 ;
34467 char * kwnames[] = {
34468 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
34469 };
34470
34471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34473 if (!SWIG_IsOK(res1)) {
34474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
34475 }
34476 arg1 = reinterpret_cast< wxEffects * >(argp1);
34477 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
34478 if (!SWIG_IsOK(res2)) {
34479 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
34480 }
34481 if (!argp2) {
34482 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
34483 }
34484 arg2 = reinterpret_cast< wxDC * >(argp2);
34485 {
34486 arg3 = &temp3;
34487 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
34488 }
34489 if (obj3) {
34490 ecode4 = SWIG_AsVal_int(obj3, &val4);
34491 if (!SWIG_IsOK(ecode4)) {
34492 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
34493 }
34494 arg4 = static_cast< int >(val4);
34495 }
34496 {
34497 PyThreadState* __tstate = wxPyBeginAllowThreads();
34498 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
34499 wxPyEndAllowThreads(__tstate);
34500 if (PyErr_Occurred()) SWIG_fail;
34501 }
34502 resultobj = SWIG_Py_Void();
34503 return resultobj;
34504 fail:
34505 return NULL;
34506 }
34507
34508
34509 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34510 PyObject *resultobj = 0;
34511 wxEffects *arg1 = (wxEffects *) 0 ;
34512 wxRect *arg2 = 0 ;
34513 wxDC *arg3 = 0 ;
34514 wxBitmap *arg4 = 0 ;
34515 bool result;
34516 void *argp1 = 0 ;
34517 int res1 = 0 ;
34518 wxRect temp2 ;
34519 void *argp3 = 0 ;
34520 int res3 = 0 ;
34521 void *argp4 = 0 ;
34522 int res4 = 0 ;
34523 PyObject * obj0 = 0 ;
34524 PyObject * obj1 = 0 ;
34525 PyObject * obj2 = 0 ;
34526 PyObject * obj3 = 0 ;
34527 char * kwnames[] = {
34528 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
34529 };
34530
34531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
34533 if (!SWIG_IsOK(res1)) {
34534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
34535 }
34536 arg1 = reinterpret_cast< wxEffects * >(argp1);
34537 {
34538 arg2 = &temp2;
34539 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
34540 }
34541 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34542 if (!SWIG_IsOK(res3)) {
34543 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
34544 }
34545 if (!argp3) {
34546 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
34547 }
34548 arg3 = reinterpret_cast< wxDC * >(argp3);
34549 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
34550 if (!SWIG_IsOK(res4)) {
34551 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
34552 }
34553 if (!argp4) {
34554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
34555 }
34556 arg4 = reinterpret_cast< wxBitmap * >(argp4);
34557 {
34558 PyThreadState* __tstate = wxPyBeginAllowThreads();
34559 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
34560 wxPyEndAllowThreads(__tstate);
34561 if (PyErr_Occurred()) SWIG_fail;
34562 }
34563 {
34564 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34565 }
34566 return resultobj;
34567 fail:
34568 return NULL;
34569 }
34570
34571
34572 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34573 PyObject *obj;
34574 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34575 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
34576 return SWIG_Py_Void();
34577 }
34578
34579 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34580 return SWIG_Python_InitShadowInstance(args);
34581 }
34582
34583 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34584 PyObject *resultobj = 0;
34585 int arg1 ;
34586 int arg2 ;
34587 bool arg3 ;
34588 wxSplitterRenderParams *result = 0 ;
34589 int val1 ;
34590 int ecode1 = 0 ;
34591 int val2 ;
34592 int ecode2 = 0 ;
34593 bool val3 ;
34594 int ecode3 = 0 ;
34595 PyObject * obj0 = 0 ;
34596 PyObject * obj1 = 0 ;
34597 PyObject * obj2 = 0 ;
34598 char * kwnames[] = {
34599 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
34600 };
34601
34602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34603 ecode1 = SWIG_AsVal_int(obj0, &val1);
34604 if (!SWIG_IsOK(ecode1)) {
34605 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
34606 }
34607 arg1 = static_cast< int >(val1);
34608 ecode2 = SWIG_AsVal_int(obj1, &val2);
34609 if (!SWIG_IsOK(ecode2)) {
34610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
34611 }
34612 arg2 = static_cast< int >(val2);
34613 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34614 if (!SWIG_IsOK(ecode3)) {
34615 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
34616 }
34617 arg3 = static_cast< bool >(val3);
34618 {
34619 PyThreadState* __tstate = wxPyBeginAllowThreads();
34620 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
34621 wxPyEndAllowThreads(__tstate);
34622 if (PyErr_Occurred()) SWIG_fail;
34623 }
34624 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
34625 return resultobj;
34626 fail:
34627 return NULL;
34628 }
34629
34630
34631 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34632 PyObject *resultobj = 0;
34633 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34634 void *argp1 = 0 ;
34635 int res1 = 0 ;
34636 PyObject *swig_obj[1] ;
34637
34638 if (!args) SWIG_fail;
34639 swig_obj[0] = args;
34640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
34641 if (!SWIG_IsOK(res1)) {
34642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34643 }
34644 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34645 {
34646 PyThreadState* __tstate = wxPyBeginAllowThreads();
34647 delete arg1;
34648
34649 wxPyEndAllowThreads(__tstate);
34650 if (PyErr_Occurred()) SWIG_fail;
34651 }
34652 resultobj = SWIG_Py_Void();
34653 return resultobj;
34654 fail:
34655 return NULL;
34656 }
34657
34658
34659 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34660 PyObject *resultobj = 0;
34661 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34662 int result;
34663 void *argp1 = 0 ;
34664 int res1 = 0 ;
34665 PyObject *swig_obj[1] ;
34666
34667 if (!args) SWIG_fail;
34668 swig_obj[0] = args;
34669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34670 if (!SWIG_IsOK(res1)) {
34671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34672 }
34673 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34674 result = (int)(int) ((arg1)->widthSash);
34675 resultobj = SWIG_From_int(static_cast< int >(result));
34676 return resultobj;
34677 fail:
34678 return NULL;
34679 }
34680
34681
34682 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34683 PyObject *resultobj = 0;
34684 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34685 int result;
34686 void *argp1 = 0 ;
34687 int res1 = 0 ;
34688 PyObject *swig_obj[1] ;
34689
34690 if (!args) SWIG_fail;
34691 swig_obj[0] = args;
34692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34693 if (!SWIG_IsOK(res1)) {
34694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34695 }
34696 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34697 result = (int)(int) ((arg1)->border);
34698 resultobj = SWIG_From_int(static_cast< int >(result));
34699 return resultobj;
34700 fail:
34701 return NULL;
34702 }
34703
34704
34705 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34706 PyObject *resultobj = 0;
34707 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
34708 bool result;
34709 void *argp1 = 0 ;
34710 int res1 = 0 ;
34711 PyObject *swig_obj[1] ;
34712
34713 if (!args) SWIG_fail;
34714 swig_obj[0] = args;
34715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
34716 if (!SWIG_IsOK(res1)) {
34717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
34718 }
34719 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
34720 result = (bool)(bool) ((arg1)->isHotSensitive);
34721 resultobj = SWIG_From_bool(static_cast< bool >(result));
34722 return resultobj;
34723 fail:
34724 return NULL;
34725 }
34726
34727
34728 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34729 PyObject *obj;
34730 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34731 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
34732 return SWIG_Py_Void();
34733 }
34734
34735 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34736 return SWIG_Python_InitShadowInstance(args);
34737 }
34738
34739 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34740 PyObject *resultobj = 0;
34741 wxHeaderButtonParams *result = 0 ;
34742
34743 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
34744 {
34745 PyThreadState* __tstate = wxPyBeginAllowThreads();
34746 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
34747 wxPyEndAllowThreads(__tstate);
34748 if (PyErr_Occurred()) SWIG_fail;
34749 }
34750 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
34751 return resultobj;
34752 fail:
34753 return NULL;
34754 }
34755
34756
34757 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34758 PyObject *resultobj = 0;
34759 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34760 void *argp1 = 0 ;
34761 int res1 = 0 ;
34762 PyObject *swig_obj[1] ;
34763
34764 if (!args) SWIG_fail;
34765 swig_obj[0] = args;
34766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
34767 if (!SWIG_IsOK(res1)) {
34768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34769 }
34770 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34771 {
34772 PyThreadState* __tstate = wxPyBeginAllowThreads();
34773 delete arg1;
34774
34775 wxPyEndAllowThreads(__tstate);
34776 if (PyErr_Occurred()) SWIG_fail;
34777 }
34778 resultobj = SWIG_Py_Void();
34779 return resultobj;
34780 fail:
34781 return NULL;
34782 }
34783
34784
34785 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34786 PyObject *resultobj = 0;
34787 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34788 wxColour *arg2 = (wxColour *) 0 ;
34789 void *argp1 = 0 ;
34790 int res1 = 0 ;
34791 wxColour temp2 ;
34792 PyObject *swig_obj[2] ;
34793
34794 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
34795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34796 if (!SWIG_IsOK(res1)) {
34797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34798 }
34799 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34800 {
34801 arg2 = &temp2;
34802 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34803 }
34804 if (arg1) (arg1)->m_arrowColour = *arg2;
34805
34806 resultobj = SWIG_Py_Void();
34807 return resultobj;
34808 fail:
34809 return NULL;
34810 }
34811
34812
34813 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34814 PyObject *resultobj = 0;
34815 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34816 wxColour *result = 0 ;
34817 void *argp1 = 0 ;
34818 int res1 = 0 ;
34819 PyObject *swig_obj[1] ;
34820
34821 if (!args) SWIG_fail;
34822 swig_obj[0] = args;
34823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34824 if (!SWIG_IsOK(res1)) {
34825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34826 }
34827 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34828 result = (wxColour *)& ((arg1)->m_arrowColour);
34829 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34830 return resultobj;
34831 fail:
34832 return NULL;
34833 }
34834
34835
34836 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34837 PyObject *resultobj = 0;
34838 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34839 wxColour *arg2 = (wxColour *) 0 ;
34840 void *argp1 = 0 ;
34841 int res1 = 0 ;
34842 wxColour temp2 ;
34843 PyObject *swig_obj[2] ;
34844
34845 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
34846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34847 if (!SWIG_IsOK(res1)) {
34848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34849 }
34850 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34851 {
34852 arg2 = &temp2;
34853 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34854 }
34855 if (arg1) (arg1)->m_selectionColour = *arg2;
34856
34857 resultobj = SWIG_Py_Void();
34858 return resultobj;
34859 fail:
34860 return NULL;
34861 }
34862
34863
34864 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34865 PyObject *resultobj = 0;
34866 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34867 wxColour *result = 0 ;
34868 void *argp1 = 0 ;
34869 int res1 = 0 ;
34870 PyObject *swig_obj[1] ;
34871
34872 if (!args) SWIG_fail;
34873 swig_obj[0] = args;
34874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34875 if (!SWIG_IsOK(res1)) {
34876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34877 }
34878 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34879 result = (wxColour *)& ((arg1)->m_selectionColour);
34880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34881 return resultobj;
34882 fail:
34883 return NULL;
34884 }
34885
34886
34887 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34888 PyObject *resultobj = 0;
34889 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34890 wxString *arg2 = (wxString *) 0 ;
34891 void *argp1 = 0 ;
34892 int res1 = 0 ;
34893 bool temp2 = false ;
34894 PyObject *swig_obj[2] ;
34895
34896 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
34897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34898 if (!SWIG_IsOK(res1)) {
34899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34900 }
34901 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34902 {
34903 arg2 = wxString_in_helper(swig_obj[1]);
34904 if (arg2 == NULL) SWIG_fail;
34905 temp2 = true;
34906 }
34907 if (arg1) (arg1)->m_labelText = *arg2;
34908
34909 resultobj = SWIG_Py_Void();
34910 {
34911 if (temp2)
34912 delete arg2;
34913 }
34914 return resultobj;
34915 fail:
34916 {
34917 if (temp2)
34918 delete arg2;
34919 }
34920 return NULL;
34921 }
34922
34923
34924 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34925 PyObject *resultobj = 0;
34926 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34927 wxString *result = 0 ;
34928 void *argp1 = 0 ;
34929 int res1 = 0 ;
34930 PyObject *swig_obj[1] ;
34931
34932 if (!args) SWIG_fail;
34933 swig_obj[0] = args;
34934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34935 if (!SWIG_IsOK(res1)) {
34936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34937 }
34938 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34939 result = (wxString *)& ((arg1)->m_labelText);
34940 {
34941 #if wxUSE_UNICODE
34942 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
34943 #else
34944 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
34945 #endif
34946 }
34947 return resultobj;
34948 fail:
34949 return NULL;
34950 }
34951
34952
34953 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34954 PyObject *resultobj = 0;
34955 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34956 wxFont *arg2 = (wxFont *) 0 ;
34957 void *argp1 = 0 ;
34958 int res1 = 0 ;
34959 void *argp2 = 0 ;
34960 int res2 = 0 ;
34961 PyObject *swig_obj[2] ;
34962
34963 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
34964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34965 if (!SWIG_IsOK(res1)) {
34966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34967 }
34968 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34969 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
34970 if (!SWIG_IsOK(res2)) {
34971 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
34972 }
34973 arg2 = reinterpret_cast< wxFont * >(argp2);
34974 if (arg1) (arg1)->m_labelFont = *arg2;
34975
34976 resultobj = SWIG_Py_Void();
34977 return resultobj;
34978 fail:
34979 return NULL;
34980 }
34981
34982
34983 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34984 PyObject *resultobj = 0;
34985 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34986 wxFont *result = 0 ;
34987 void *argp1 = 0 ;
34988 int res1 = 0 ;
34989 PyObject *swig_obj[1] ;
34990
34991 if (!args) SWIG_fail;
34992 swig_obj[0] = args;
34993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34994 if (!SWIG_IsOK(res1)) {
34995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34996 }
34997 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34998 result = (wxFont *)& ((arg1)->m_labelFont);
34999 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
35000 return resultobj;
35001 fail:
35002 return NULL;
35003 }
35004
35005
35006 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35007 PyObject *resultobj = 0;
35008 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
35009 wxColour *arg2 = (wxColour *) 0 ;
35010 void *argp1 = 0 ;
35011 int res1 = 0 ;
35012 wxColour temp2 ;
35013 PyObject *swig_obj[2] ;
35014
35015 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
35016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
35017 if (!SWIG_IsOK(res1)) {
35018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
35019 }
35020 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
35021 {
35022 arg2 = &temp2;
35023 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
35024 }
35025 if (arg1) (arg1)->m_labelColour = *arg2;
35026
35027 resultobj = SWIG_Py_Void();
35028 return resultobj;
35029 fail:
35030 return NULL;
35031 }
35032
35033
35034 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35035 PyObject *resultobj = 0;
35036 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
35037 wxColour *result = 0 ;
35038 void *argp1 = 0 ;
35039 int res1 = 0 ;
35040 PyObject *swig_obj[1] ;
35041
35042 if (!args) SWIG_fail;
35043 swig_obj[0] = args;
35044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
35045 if (!SWIG_IsOK(res1)) {
35046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
35047 }
35048 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
35049 result = (wxColour *)& ((arg1)->m_labelColour);
35050 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
35051 return resultobj;
35052 fail:
35053 return NULL;
35054 }
35055
35056
35057 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35058 PyObject *resultobj = 0;
35059 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
35060 wxBitmap *arg2 = (wxBitmap *) 0 ;
35061 void *argp1 = 0 ;
35062 int res1 = 0 ;
35063 void *argp2 = 0 ;
35064 int res2 = 0 ;
35065 PyObject *swig_obj[2] ;
35066
35067 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
35068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
35069 if (!SWIG_IsOK(res1)) {
35070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
35071 }
35072 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
35073 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
35074 if (!SWIG_IsOK(res2)) {
35075 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
35076 }
35077 arg2 = reinterpret_cast< wxBitmap * >(argp2);
35078 if (arg1) (arg1)->m_labelBitmap = *arg2;
35079
35080 resultobj = SWIG_Py_Void();
35081 return resultobj;
35082 fail:
35083 return NULL;
35084 }
35085
35086
35087 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35088 PyObject *resultobj = 0;
35089 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
35090 wxBitmap *result = 0 ;
35091 void *argp1 = 0 ;
35092 int res1 = 0 ;
35093 PyObject *swig_obj[1] ;
35094
35095 if (!args) SWIG_fail;
35096 swig_obj[0] = args;
35097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
35098 if (!SWIG_IsOK(res1)) {
35099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
35100 }
35101 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
35102 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
35103 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
35104 return resultobj;
35105 fail:
35106 return NULL;
35107 }
35108
35109
35110 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35111 PyObject *resultobj = 0;
35112 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
35113 int arg2 ;
35114 void *argp1 = 0 ;
35115 int res1 = 0 ;
35116 int val2 ;
35117 int ecode2 = 0 ;
35118 PyObject *swig_obj[2] ;
35119
35120 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
35121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
35122 if (!SWIG_IsOK(res1)) {
35123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
35124 }
35125 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
35126 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
35127 if (!SWIG_IsOK(ecode2)) {
35128 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
35129 }
35130 arg2 = static_cast< int >(val2);
35131 if (arg1) (arg1)->m_labelAlignment = arg2;
35132
35133 resultobj = SWIG_Py_Void();
35134 return resultobj;
35135 fail:
35136 return NULL;
35137 }
35138
35139
35140 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35141 PyObject *resultobj = 0;
35142 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
35143 int result;
35144 void *argp1 = 0 ;
35145 int res1 = 0 ;
35146 PyObject *swig_obj[1] ;
35147
35148 if (!args) SWIG_fail;
35149 swig_obj[0] = args;
35150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
35151 if (!SWIG_IsOK(res1)) {
35152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
35153 }
35154 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
35155 result = (int) ((arg1)->m_labelAlignment);
35156 resultobj = SWIG_From_int(static_cast< int >(result));
35157 return resultobj;
35158 fail:
35159 return NULL;
35160 }
35161
35162
35163 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35164 PyObject *obj;
35165 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35166 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
35167 return SWIG_Py_Void();
35168 }
35169
35170 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35171 return SWIG_Python_InitShadowInstance(args);
35172 }
35173
35174 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35175 PyObject *resultobj = 0;
35176 int arg1 ;
35177 int arg2 ;
35178 wxRendererVersion *result = 0 ;
35179 int val1 ;
35180 int ecode1 = 0 ;
35181 int val2 ;
35182 int ecode2 = 0 ;
35183 PyObject * obj0 = 0 ;
35184 PyObject * obj1 = 0 ;
35185 char * kwnames[] = {
35186 (char *) "version_",(char *) "age_", NULL
35187 };
35188
35189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
35190 ecode1 = SWIG_AsVal_int(obj0, &val1);
35191 if (!SWIG_IsOK(ecode1)) {
35192 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
35193 }
35194 arg1 = static_cast< int >(val1);
35195 ecode2 = SWIG_AsVal_int(obj1, &val2);
35196 if (!SWIG_IsOK(ecode2)) {
35197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
35198 }
35199 arg2 = static_cast< int >(val2);
35200 {
35201 PyThreadState* __tstate = wxPyBeginAllowThreads();
35202 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
35203 wxPyEndAllowThreads(__tstate);
35204 if (PyErr_Occurred()) SWIG_fail;
35205 }
35206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
35207 return resultobj;
35208 fail:
35209 return NULL;
35210 }
35211
35212
35213 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35214 PyObject *resultobj = 0;
35215 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
35216 void *argp1 = 0 ;
35217 int res1 = 0 ;
35218 PyObject *swig_obj[1] ;
35219
35220 if (!args) SWIG_fail;
35221 swig_obj[0] = args;
35222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
35223 if (!SWIG_IsOK(res1)) {
35224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
35225 }
35226 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
35227 {
35228 PyThreadState* __tstate = wxPyBeginAllowThreads();
35229 delete arg1;
35230
35231 wxPyEndAllowThreads(__tstate);
35232 if (PyErr_Occurred()) SWIG_fail;
35233 }
35234 resultobj = SWIG_Py_Void();
35235 return resultobj;
35236 fail:
35237 return NULL;
35238 }
35239
35240
35241 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35242 PyObject *resultobj = 0;
35243 wxRendererVersion *arg1 = 0 ;
35244 bool result;
35245 void *argp1 = 0 ;
35246 int res1 = 0 ;
35247 PyObject * obj0 = 0 ;
35248 char * kwnames[] = {
35249 (char *) "ver", NULL
35250 };
35251
35252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
35253 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
35254 if (!SWIG_IsOK(res1)) {
35255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
35256 }
35257 if (!argp1) {
35258 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
35259 }
35260 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
35261 {
35262 PyThreadState* __tstate = wxPyBeginAllowThreads();
35263 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
35264 wxPyEndAllowThreads(__tstate);
35265 if (PyErr_Occurred()) SWIG_fail;
35266 }
35267 {
35268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35269 }
35270 return resultobj;
35271 fail:
35272 return NULL;
35273 }
35274
35275
35276 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35277 PyObject *resultobj = 0;
35278 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
35279 int result;
35280 void *argp1 = 0 ;
35281 int res1 = 0 ;
35282 PyObject *swig_obj[1] ;
35283
35284 if (!args) SWIG_fail;
35285 swig_obj[0] = args;
35286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
35287 if (!SWIG_IsOK(res1)) {
35288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
35289 }
35290 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
35291 result = (int)(int) ((arg1)->version);
35292 resultobj = SWIG_From_int(static_cast< int >(result));
35293 return resultobj;
35294 fail:
35295 return NULL;
35296 }
35297
35298
35299 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35300 PyObject *resultobj = 0;
35301 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
35302 int result;
35303 void *argp1 = 0 ;
35304 int res1 = 0 ;
35305 PyObject *swig_obj[1] ;
35306
35307 if (!args) SWIG_fail;
35308 swig_obj[0] = args;
35309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
35310 if (!SWIG_IsOK(res1)) {
35311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
35312 }
35313 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
35314 result = (int)(int) ((arg1)->age);
35315 resultobj = SWIG_From_int(static_cast< int >(result));
35316 return resultobj;
35317 fail:
35318 return NULL;
35319 }
35320
35321
35322 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35323 PyObject *obj;
35324 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35325 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
35326 return SWIG_Py_Void();
35327 }
35328
35329 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35330 return SWIG_Python_InitShadowInstance(args);
35331 }
35332
35333 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35334 PyObject *resultobj = 0;
35335 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35336 wxWindow *arg2 = (wxWindow *) 0 ;
35337 wxDC *arg3 = 0 ;
35338 wxRect *arg4 = 0 ;
35339 int arg5 = (int) 0 ;
35340 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
35341 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
35342 int result;
35343 void *argp1 = 0 ;
35344 int res1 = 0 ;
35345 void *argp2 = 0 ;
35346 int res2 = 0 ;
35347 void *argp3 = 0 ;
35348 int res3 = 0 ;
35349 wxRect temp4 ;
35350 int val5 ;
35351 int ecode5 = 0 ;
35352 int val6 ;
35353 int ecode6 = 0 ;
35354 void *argp7 = 0 ;
35355 int res7 = 0 ;
35356 PyObject * obj0 = 0 ;
35357 PyObject * obj1 = 0 ;
35358 PyObject * obj2 = 0 ;
35359 PyObject * obj3 = 0 ;
35360 PyObject * obj4 = 0 ;
35361 PyObject * obj5 = 0 ;
35362 PyObject * obj6 = 0 ;
35363 char * kwnames[] = {
35364 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
35365 };
35366
35367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35369 if (!SWIG_IsOK(res1)) {
35370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35371 }
35372 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35373 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35374 if (!SWIG_IsOK(res2)) {
35375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35376 }
35377 arg2 = reinterpret_cast< wxWindow * >(argp2);
35378 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35379 if (!SWIG_IsOK(res3)) {
35380 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
35381 }
35382 if (!argp3) {
35383 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
35384 }
35385 arg3 = reinterpret_cast< wxDC * >(argp3);
35386 {
35387 arg4 = &temp4;
35388 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35389 }
35390 if (obj4) {
35391 ecode5 = SWIG_AsVal_int(obj4, &val5);
35392 if (!SWIG_IsOK(ecode5)) {
35393 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
35394 }
35395 arg5 = static_cast< int >(val5);
35396 }
35397 if (obj5) {
35398 ecode6 = SWIG_AsVal_int(obj5, &val6);
35399 if (!SWIG_IsOK(ecode6)) {
35400 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
35401 }
35402 arg6 = static_cast< wxHeaderSortIconType >(val6);
35403 }
35404 if (obj6) {
35405 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
35406 if (!SWIG_IsOK(res7)) {
35407 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
35408 }
35409 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
35410 }
35411 {
35412 PyThreadState* __tstate = wxPyBeginAllowThreads();
35413 result = (int)(arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
35414 wxPyEndAllowThreads(__tstate);
35415 if (PyErr_Occurred()) SWIG_fail;
35416 }
35417 resultobj = SWIG_From_int(static_cast< int >(result));
35418 return resultobj;
35419 fail:
35420 return NULL;
35421 }
35422
35423
35424 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35425 PyObject *resultobj = 0;
35426 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35427 wxWindow *arg2 = (wxWindow *) 0 ;
35428 wxDC *arg3 = 0 ;
35429 wxRect *arg4 = 0 ;
35430 int arg5 = (int) 0 ;
35431 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
35432 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
35433 int result;
35434 void *argp1 = 0 ;
35435 int res1 = 0 ;
35436 void *argp2 = 0 ;
35437 int res2 = 0 ;
35438 void *argp3 = 0 ;
35439 int res3 = 0 ;
35440 wxRect temp4 ;
35441 int val5 ;
35442 int ecode5 = 0 ;
35443 int val6 ;
35444 int ecode6 = 0 ;
35445 void *argp7 = 0 ;
35446 int res7 = 0 ;
35447 PyObject * obj0 = 0 ;
35448 PyObject * obj1 = 0 ;
35449 PyObject * obj2 = 0 ;
35450 PyObject * obj3 = 0 ;
35451 PyObject * obj4 = 0 ;
35452 PyObject * obj5 = 0 ;
35453 PyObject * obj6 = 0 ;
35454 char * kwnames[] = {
35455 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
35456 };
35457
35458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35460 if (!SWIG_IsOK(res1)) {
35461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35462 }
35463 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35464 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35465 if (!SWIG_IsOK(res2)) {
35466 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
35467 }
35468 arg2 = reinterpret_cast< wxWindow * >(argp2);
35469 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35470 if (!SWIG_IsOK(res3)) {
35471 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
35472 }
35473 if (!argp3) {
35474 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
35475 }
35476 arg3 = reinterpret_cast< wxDC * >(argp3);
35477 {
35478 arg4 = &temp4;
35479 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35480 }
35481 if (obj4) {
35482 ecode5 = SWIG_AsVal_int(obj4, &val5);
35483 if (!SWIG_IsOK(ecode5)) {
35484 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
35485 }
35486 arg5 = static_cast< int >(val5);
35487 }
35488 if (obj5) {
35489 ecode6 = SWIG_AsVal_int(obj5, &val6);
35490 if (!SWIG_IsOK(ecode6)) {
35491 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
35492 }
35493 arg6 = static_cast< wxHeaderSortIconType >(val6);
35494 }
35495 if (obj6) {
35496 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
35497 if (!SWIG_IsOK(res7)) {
35498 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
35499 }
35500 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
35501 }
35502 {
35503 PyThreadState* __tstate = wxPyBeginAllowThreads();
35504 result = (int)(arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
35505 wxPyEndAllowThreads(__tstate);
35506 if (PyErr_Occurred()) SWIG_fail;
35507 }
35508 resultobj = SWIG_From_int(static_cast< int >(result));
35509 return resultobj;
35510 fail:
35511 return NULL;
35512 }
35513
35514
35515 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35516 PyObject *resultobj = 0;
35517 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35518 wxWindow *arg2 = (wxWindow *) 0 ;
35519 int result;
35520 void *argp1 = 0 ;
35521 int res1 = 0 ;
35522 void *argp2 = 0 ;
35523 int res2 = 0 ;
35524 PyObject * obj0 = 0 ;
35525 PyObject * obj1 = 0 ;
35526 char * kwnames[] = {
35527 (char *) "self",(char *) "win", NULL
35528 };
35529
35530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
35531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35532 if (!SWIG_IsOK(res1)) {
35533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35534 }
35535 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35536 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35537 if (!SWIG_IsOK(res2)) {
35538 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
35539 }
35540 arg2 = reinterpret_cast< wxWindow * >(argp2);
35541 {
35542 PyThreadState* __tstate = wxPyBeginAllowThreads();
35543 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
35544 wxPyEndAllowThreads(__tstate);
35545 if (PyErr_Occurred()) SWIG_fail;
35546 }
35547 resultobj = SWIG_From_int(static_cast< int >(result));
35548 return resultobj;
35549 fail:
35550 return NULL;
35551 }
35552
35553
35554 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35555 PyObject *resultobj = 0;
35556 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35557 wxWindow *arg2 = (wxWindow *) 0 ;
35558 wxDC *arg3 = 0 ;
35559 wxRect *arg4 = 0 ;
35560 int arg5 = (int) 0 ;
35561 void *argp1 = 0 ;
35562 int res1 = 0 ;
35563 void *argp2 = 0 ;
35564 int res2 = 0 ;
35565 void *argp3 = 0 ;
35566 int res3 = 0 ;
35567 wxRect temp4 ;
35568 int val5 ;
35569 int ecode5 = 0 ;
35570 PyObject * obj0 = 0 ;
35571 PyObject * obj1 = 0 ;
35572 PyObject * obj2 = 0 ;
35573 PyObject * obj3 = 0 ;
35574 PyObject * obj4 = 0 ;
35575 char * kwnames[] = {
35576 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35577 };
35578
35579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35581 if (!SWIG_IsOK(res1)) {
35582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35583 }
35584 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35585 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35586 if (!SWIG_IsOK(res2)) {
35587 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35588 }
35589 arg2 = reinterpret_cast< wxWindow * >(argp2);
35590 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35591 if (!SWIG_IsOK(res3)) {
35592 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
35593 }
35594 if (!argp3) {
35595 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
35596 }
35597 arg3 = reinterpret_cast< wxDC * >(argp3);
35598 {
35599 arg4 = &temp4;
35600 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35601 }
35602 if (obj4) {
35603 ecode5 = SWIG_AsVal_int(obj4, &val5);
35604 if (!SWIG_IsOK(ecode5)) {
35605 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
35606 }
35607 arg5 = static_cast< int >(val5);
35608 }
35609 {
35610 PyThreadState* __tstate = wxPyBeginAllowThreads();
35611 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35612 wxPyEndAllowThreads(__tstate);
35613 if (PyErr_Occurred()) SWIG_fail;
35614 }
35615 resultobj = SWIG_Py_Void();
35616 return resultobj;
35617 fail:
35618 return NULL;
35619 }
35620
35621
35622 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35623 PyObject *resultobj = 0;
35624 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35625 wxWindow *arg2 = (wxWindow *) 0 ;
35626 wxDC *arg3 = 0 ;
35627 wxRect *arg4 = 0 ;
35628 int arg5 = (int) 0 ;
35629 void *argp1 = 0 ;
35630 int res1 = 0 ;
35631 void *argp2 = 0 ;
35632 int res2 = 0 ;
35633 void *argp3 = 0 ;
35634 int res3 = 0 ;
35635 wxRect temp4 ;
35636 int val5 ;
35637 int ecode5 = 0 ;
35638 PyObject * obj0 = 0 ;
35639 PyObject * obj1 = 0 ;
35640 PyObject * obj2 = 0 ;
35641 PyObject * obj3 = 0 ;
35642 PyObject * obj4 = 0 ;
35643 char * kwnames[] = {
35644 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35645 };
35646
35647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35649 if (!SWIG_IsOK(res1)) {
35650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35651 }
35652 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35653 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35654 if (!SWIG_IsOK(res2)) {
35655 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
35656 }
35657 arg2 = reinterpret_cast< wxWindow * >(argp2);
35658 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35659 if (!SWIG_IsOK(res3)) {
35660 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
35661 }
35662 if (!argp3) {
35663 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
35664 }
35665 arg3 = reinterpret_cast< wxDC * >(argp3);
35666 {
35667 arg4 = &temp4;
35668 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35669 }
35670 if (obj4) {
35671 ecode5 = SWIG_AsVal_int(obj4, &val5);
35672 if (!SWIG_IsOK(ecode5)) {
35673 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
35674 }
35675 arg5 = static_cast< int >(val5);
35676 }
35677 {
35678 PyThreadState* __tstate = wxPyBeginAllowThreads();
35679 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
35680 wxPyEndAllowThreads(__tstate);
35681 if (PyErr_Occurred()) SWIG_fail;
35682 }
35683 resultobj = SWIG_Py_Void();
35684 return resultobj;
35685 fail:
35686 return NULL;
35687 }
35688
35689
35690 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35691 PyObject *resultobj = 0;
35692 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35693 wxWindow *arg2 = (wxWindow *) 0 ;
35694 wxDC *arg3 = 0 ;
35695 wxSize *arg4 = 0 ;
35696 int arg5 ;
35697 wxOrientation arg6 ;
35698 int arg7 = (int) 0 ;
35699 void *argp1 = 0 ;
35700 int res1 = 0 ;
35701 void *argp2 = 0 ;
35702 int res2 = 0 ;
35703 void *argp3 = 0 ;
35704 int res3 = 0 ;
35705 wxSize temp4 ;
35706 int val5 ;
35707 int ecode5 = 0 ;
35708 int val6 ;
35709 int ecode6 = 0 ;
35710 int val7 ;
35711 int ecode7 = 0 ;
35712 PyObject * obj0 = 0 ;
35713 PyObject * obj1 = 0 ;
35714 PyObject * obj2 = 0 ;
35715 PyObject * obj3 = 0 ;
35716 PyObject * obj4 = 0 ;
35717 PyObject * obj5 = 0 ;
35718 PyObject * obj6 = 0 ;
35719 char * kwnames[] = {
35720 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
35721 };
35722
35723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35725 if (!SWIG_IsOK(res1)) {
35726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35727 }
35728 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35729 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35730 if (!SWIG_IsOK(res2)) {
35731 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
35732 }
35733 arg2 = reinterpret_cast< wxWindow * >(argp2);
35734 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35735 if (!SWIG_IsOK(res3)) {
35736 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
35737 }
35738 if (!argp3) {
35739 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
35740 }
35741 arg3 = reinterpret_cast< wxDC * >(argp3);
35742 {
35743 arg4 = &temp4;
35744 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
35745 }
35746 ecode5 = SWIG_AsVal_int(obj4, &val5);
35747 if (!SWIG_IsOK(ecode5)) {
35748 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
35749 }
35750 arg5 = static_cast< int >(val5);
35751 ecode6 = SWIG_AsVal_int(obj5, &val6);
35752 if (!SWIG_IsOK(ecode6)) {
35753 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
35754 }
35755 arg6 = static_cast< wxOrientation >(val6);
35756 if (obj6) {
35757 ecode7 = SWIG_AsVal_int(obj6, &val7);
35758 if (!SWIG_IsOK(ecode7)) {
35759 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
35760 }
35761 arg7 = static_cast< int >(val7);
35762 }
35763 {
35764 PyThreadState* __tstate = wxPyBeginAllowThreads();
35765 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
35766 wxPyEndAllowThreads(__tstate);
35767 if (PyErr_Occurred()) SWIG_fail;
35768 }
35769 resultobj = SWIG_Py_Void();
35770 return resultobj;
35771 fail:
35772 return NULL;
35773 }
35774
35775
35776 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35777 PyObject *resultobj = 0;
35778 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35779 wxWindow *arg2 = (wxWindow *) 0 ;
35780 wxDC *arg3 = 0 ;
35781 wxRect *arg4 = 0 ;
35782 int arg5 = (int) 0 ;
35783 void *argp1 = 0 ;
35784 int res1 = 0 ;
35785 void *argp2 = 0 ;
35786 int res2 = 0 ;
35787 void *argp3 = 0 ;
35788 int res3 = 0 ;
35789 wxRect temp4 ;
35790 int val5 ;
35791 int ecode5 = 0 ;
35792 PyObject * obj0 = 0 ;
35793 PyObject * obj1 = 0 ;
35794 PyObject * obj2 = 0 ;
35795 PyObject * obj3 = 0 ;
35796 PyObject * obj4 = 0 ;
35797 char * kwnames[] = {
35798 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35799 };
35800
35801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35803 if (!SWIG_IsOK(res1)) {
35804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35805 }
35806 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35807 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35808 if (!SWIG_IsOK(res2)) {
35809 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35810 }
35811 arg2 = reinterpret_cast< wxWindow * >(argp2);
35812 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35813 if (!SWIG_IsOK(res3)) {
35814 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35815 }
35816 if (!argp3) {
35817 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
35818 }
35819 arg3 = reinterpret_cast< wxDC * >(argp3);
35820 {
35821 arg4 = &temp4;
35822 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35823 }
35824 if (obj4) {
35825 ecode5 = SWIG_AsVal_int(obj4, &val5);
35826 if (!SWIG_IsOK(ecode5)) {
35827 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
35828 }
35829 arg5 = static_cast< int >(val5);
35830 }
35831 {
35832 PyThreadState* __tstate = wxPyBeginAllowThreads();
35833 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35834 wxPyEndAllowThreads(__tstate);
35835 if (PyErr_Occurred()) SWIG_fail;
35836 }
35837 resultobj = SWIG_Py_Void();
35838 return resultobj;
35839 fail:
35840 return NULL;
35841 }
35842
35843
35844 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35845 PyObject *resultobj = 0;
35846 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35847 wxWindow *arg2 = (wxWindow *) 0 ;
35848 wxDC *arg3 = 0 ;
35849 wxRect *arg4 = 0 ;
35850 int arg5 = (int) 0 ;
35851 void *argp1 = 0 ;
35852 int res1 = 0 ;
35853 void *argp2 = 0 ;
35854 int res2 = 0 ;
35855 void *argp3 = 0 ;
35856 int res3 = 0 ;
35857 wxRect temp4 ;
35858 int val5 ;
35859 int ecode5 = 0 ;
35860 PyObject * obj0 = 0 ;
35861 PyObject * obj1 = 0 ;
35862 PyObject * obj2 = 0 ;
35863 PyObject * obj3 = 0 ;
35864 PyObject * obj4 = 0 ;
35865 char * kwnames[] = {
35866 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35867 };
35868
35869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35871 if (!SWIG_IsOK(res1)) {
35872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35873 }
35874 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35875 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35876 if (!SWIG_IsOK(res2)) {
35877 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
35878 }
35879 arg2 = reinterpret_cast< wxWindow * >(argp2);
35880 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35881 if (!SWIG_IsOK(res3)) {
35882 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35883 }
35884 if (!argp3) {
35885 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
35886 }
35887 arg3 = reinterpret_cast< wxDC * >(argp3);
35888 {
35889 arg4 = &temp4;
35890 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35891 }
35892 if (obj4) {
35893 ecode5 = SWIG_AsVal_int(obj4, &val5);
35894 if (!SWIG_IsOK(ecode5)) {
35895 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
35896 }
35897 arg5 = static_cast< int >(val5);
35898 }
35899 {
35900 PyThreadState* __tstate = wxPyBeginAllowThreads();
35901 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
35902 wxPyEndAllowThreads(__tstate);
35903 if (PyErr_Occurred()) SWIG_fail;
35904 }
35905 resultobj = SWIG_Py_Void();
35906 return resultobj;
35907 fail:
35908 return NULL;
35909 }
35910
35911
35912 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35913 PyObject *resultobj = 0;
35914 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35915 wxWindow *arg2 = (wxWindow *) 0 ;
35916 wxDC *arg3 = 0 ;
35917 wxRect *arg4 = 0 ;
35918 int arg5 = (int) 0 ;
35919 void *argp1 = 0 ;
35920 int res1 = 0 ;
35921 void *argp2 = 0 ;
35922 int res2 = 0 ;
35923 void *argp3 = 0 ;
35924 int res3 = 0 ;
35925 wxRect temp4 ;
35926 int val5 ;
35927 int ecode5 = 0 ;
35928 PyObject * obj0 = 0 ;
35929 PyObject * obj1 = 0 ;
35930 PyObject * obj2 = 0 ;
35931 PyObject * obj3 = 0 ;
35932 PyObject * obj4 = 0 ;
35933 char * kwnames[] = {
35934 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35935 };
35936
35937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35939 if (!SWIG_IsOK(res1)) {
35940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35941 }
35942 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35943 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35944 if (!SWIG_IsOK(res2)) {
35945 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
35946 }
35947 arg2 = reinterpret_cast< wxWindow * >(argp2);
35948 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35949 if (!SWIG_IsOK(res3)) {
35950 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35951 }
35952 if (!argp3) {
35953 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
35954 }
35955 arg3 = reinterpret_cast< wxDC * >(argp3);
35956 {
35957 arg4 = &temp4;
35958 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35959 }
35960 if (obj4) {
35961 ecode5 = SWIG_AsVal_int(obj4, &val5);
35962 if (!SWIG_IsOK(ecode5)) {
35963 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
35964 }
35965 arg5 = static_cast< int >(val5);
35966 }
35967 {
35968 PyThreadState* __tstate = wxPyBeginAllowThreads();
35969 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
35970 wxPyEndAllowThreads(__tstate);
35971 if (PyErr_Occurred()) SWIG_fail;
35972 }
35973 resultobj = SWIG_Py_Void();
35974 return resultobj;
35975 fail:
35976 return NULL;
35977 }
35978
35979
35980 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35981 PyObject *resultobj = 0;
35982 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35983 wxWindow *arg2 = (wxWindow *) 0 ;
35984 wxDC *arg3 = 0 ;
35985 wxRect *arg4 = 0 ;
35986 int arg5 = (int) 0 ;
35987 void *argp1 = 0 ;
35988 int res1 = 0 ;
35989 void *argp2 = 0 ;
35990 int res2 = 0 ;
35991 void *argp3 = 0 ;
35992 int res3 = 0 ;
35993 wxRect temp4 ;
35994 int val5 ;
35995 int ecode5 = 0 ;
35996 PyObject * obj0 = 0 ;
35997 PyObject * obj1 = 0 ;
35998 PyObject * obj2 = 0 ;
35999 PyObject * obj3 = 0 ;
36000 PyObject * obj4 = 0 ;
36001 char * kwnames[] = {
36002 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
36003 };
36004
36005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
36007 if (!SWIG_IsOK(res1)) {
36008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
36009 }
36010 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
36011 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
36012 if (!SWIG_IsOK(res2)) {
36013 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
36014 }
36015 arg2 = reinterpret_cast< wxWindow * >(argp2);
36016 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
36017 if (!SWIG_IsOK(res3)) {
36018 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
36019 }
36020 if (!argp3) {
36021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
36022 }
36023 arg3 = reinterpret_cast< wxDC * >(argp3);
36024 {
36025 arg4 = &temp4;
36026 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
36027 }
36028 if (obj4) {
36029 ecode5 = SWIG_AsVal_int(obj4, &val5);
36030 if (!SWIG_IsOK(ecode5)) {
36031 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
36032 }
36033 arg5 = static_cast< int >(val5);
36034 }
36035 {
36036 PyThreadState* __tstate = wxPyBeginAllowThreads();
36037 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
36038 wxPyEndAllowThreads(__tstate);
36039 if (PyErr_Occurred()) SWIG_fail;
36040 }
36041 resultobj = SWIG_Py_Void();
36042 return resultobj;
36043 fail:
36044 return NULL;
36045 }
36046
36047
36048 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36049 PyObject *resultobj = 0;
36050 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
36051 wxWindow *arg2 = (wxWindow *) 0 ;
36052 wxDC *arg3 = 0 ;
36053 wxRect *arg4 = 0 ;
36054 int arg5 = (int) 0 ;
36055 void *argp1 = 0 ;
36056 int res1 = 0 ;
36057 void *argp2 = 0 ;
36058 int res2 = 0 ;
36059 void *argp3 = 0 ;
36060 int res3 = 0 ;
36061 wxRect temp4 ;
36062 int val5 ;
36063 int ecode5 = 0 ;
36064 PyObject * obj0 = 0 ;
36065 PyObject * obj1 = 0 ;
36066 PyObject * obj2 = 0 ;
36067 PyObject * obj3 = 0 ;
36068 PyObject * obj4 = 0 ;
36069 char * kwnames[] = {
36070 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
36071 };
36072
36073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
36075 if (!SWIG_IsOK(res1)) {
36076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
36077 }
36078 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
36079 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
36080 if (!SWIG_IsOK(res2)) {
36081 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
36082 }
36083 arg2 = reinterpret_cast< wxWindow * >(argp2);
36084 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
36085 if (!SWIG_IsOK(res3)) {
36086 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
36087 }
36088 if (!argp3) {
36089 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
36090 }
36091 arg3 = reinterpret_cast< wxDC * >(argp3);
36092 {
36093 arg4 = &temp4;
36094 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
36095 }
36096 if (obj4) {
36097 ecode5 = SWIG_AsVal_int(obj4, &val5);
36098 if (!SWIG_IsOK(ecode5)) {
36099 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
36100 }
36101 arg5 = static_cast< int >(val5);
36102 }
36103 {
36104 PyThreadState* __tstate = wxPyBeginAllowThreads();
36105 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
36106 wxPyEndAllowThreads(__tstate);
36107 if (PyErr_Occurred()) SWIG_fail;
36108 }
36109 resultobj = SWIG_Py_Void();
36110 return resultobj;
36111 fail:
36112 return NULL;
36113 }
36114
36115
36116 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36117 PyObject *resultobj = 0;
36118 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
36119 wxWindow *arg2 = (wxWindow *) 0 ;
36120 SwigValueWrapper<wxSplitterRenderParams > result;
36121 void *argp1 = 0 ;
36122 int res1 = 0 ;
36123 void *argp2 = 0 ;
36124 int res2 = 0 ;
36125 PyObject * obj0 = 0 ;
36126 PyObject * obj1 = 0 ;
36127 char * kwnames[] = {
36128 (char *) "self",(char *) "win", NULL
36129 };
36130
36131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
36132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
36133 if (!SWIG_IsOK(res1)) {
36134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
36135 }
36136 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
36137 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
36138 if (!SWIG_IsOK(res2)) {
36139 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
36140 }
36141 arg2 = reinterpret_cast< wxWindow * >(argp2);
36142 {
36143 PyThreadState* __tstate = wxPyBeginAllowThreads();
36144 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
36145 wxPyEndAllowThreads(__tstate);
36146 if (PyErr_Occurred()) SWIG_fail;
36147 }
36148 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
36149 return resultobj;
36150 fail:
36151 return NULL;
36152 }
36153
36154
36155 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36156 PyObject *resultobj = 0;
36157 wxRendererNative *result = 0 ;
36158
36159 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
36160 {
36161 if (!wxPyCheckForApp()) SWIG_fail;
36162 PyThreadState* __tstate = wxPyBeginAllowThreads();
36163 {
36164 wxRendererNative &_result_ref = wxRendererNative::Get();
36165 result = (wxRendererNative *) &_result_ref;
36166 }
36167 wxPyEndAllowThreads(__tstate);
36168 if (PyErr_Occurred()) SWIG_fail;
36169 }
36170 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
36171 return resultobj;
36172 fail:
36173 return NULL;
36174 }
36175
36176
36177 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36178 PyObject *resultobj = 0;
36179 wxRendererNative *result = 0 ;
36180
36181 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
36182 {
36183 if (!wxPyCheckForApp()) SWIG_fail;
36184 PyThreadState* __tstate = wxPyBeginAllowThreads();
36185 {
36186 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
36187 result = (wxRendererNative *) &_result_ref;
36188 }
36189 wxPyEndAllowThreads(__tstate);
36190 if (PyErr_Occurred()) SWIG_fail;
36191 }
36192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
36193 return resultobj;
36194 fail:
36195 return NULL;
36196 }
36197
36198
36199 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36200 PyObject *resultobj = 0;
36201 wxRendererNative *result = 0 ;
36202
36203 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
36204 {
36205 if (!wxPyCheckForApp()) SWIG_fail;
36206 PyThreadState* __tstate = wxPyBeginAllowThreads();
36207 {
36208 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
36209 result = (wxRendererNative *) &_result_ref;
36210 }
36211 wxPyEndAllowThreads(__tstate);
36212 if (PyErr_Occurred()) SWIG_fail;
36213 }
36214 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
36215 return resultobj;
36216 fail:
36217 return NULL;
36218 }
36219
36220
36221 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36222 PyObject *resultobj = 0;
36223 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
36224 wxRendererNative *result = 0 ;
36225 void *argp1 = 0 ;
36226 int res1 = 0 ;
36227 PyObject * obj0 = 0 ;
36228 char * kwnames[] = {
36229 (char *) "renderer", NULL
36230 };
36231
36232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
36233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
36234 if (!SWIG_IsOK(res1)) {
36235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
36236 }
36237 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
36238 {
36239 if (!wxPyCheckForApp()) SWIG_fail;
36240 PyThreadState* __tstate = wxPyBeginAllowThreads();
36241 result = (wxRendererNative *)wxRendererNative::Set(arg1);
36242 wxPyEndAllowThreads(__tstate);
36243 if (PyErr_Occurred()) SWIG_fail;
36244 }
36245 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
36246 return resultobj;
36247 fail:
36248 return NULL;
36249 }
36250
36251
36252 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36253 PyObject *resultobj = 0;
36254 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
36255 SwigValueWrapper<wxRendererVersion > result;
36256 void *argp1 = 0 ;
36257 int res1 = 0 ;
36258 PyObject *swig_obj[1] ;
36259
36260 if (!args) SWIG_fail;
36261 swig_obj[0] = args;
36262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
36263 if (!SWIG_IsOK(res1)) {
36264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
36265 }
36266 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
36267 {
36268 PyThreadState* __tstate = wxPyBeginAllowThreads();
36269 result = ((wxRendererNative const *)arg1)->GetVersion();
36270 wxPyEndAllowThreads(__tstate);
36271 if (PyErr_Occurred()) SWIG_fail;
36272 }
36273 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
36274 return resultobj;
36275 fail:
36276 return NULL;
36277 }
36278
36279
36280 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36281 PyObject *obj;
36282 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
36283 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
36284 return SWIG_Py_Void();
36285 }
36286
36287 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36288 PyObject *resultobj = 0;
36289 wxPseudoDC *result = 0 ;
36290
36291 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
36292 {
36293 PyThreadState* __tstate = wxPyBeginAllowThreads();
36294 result = (wxPseudoDC *)new wxPseudoDC();
36295 wxPyEndAllowThreads(__tstate);
36296 if (PyErr_Occurred()) SWIG_fail;
36297 }
36298 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
36299 return resultobj;
36300 fail:
36301 return NULL;
36302 }
36303
36304
36305 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36306 PyObject *resultobj = 0;
36307 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36308 void *argp1 = 0 ;
36309 int res1 = 0 ;
36310 PyObject *swig_obj[1] ;
36311
36312 if (!args) SWIG_fail;
36313 swig_obj[0] = args;
36314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36315 if (!SWIG_IsOK(res1)) {
36316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36317 }
36318 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36319 {
36320 PyThreadState* __tstate = wxPyBeginAllowThreads();
36321 (arg1)->BeginDrawing();
36322 wxPyEndAllowThreads(__tstate);
36323 if (PyErr_Occurred()) SWIG_fail;
36324 }
36325 resultobj = SWIG_Py_Void();
36326 return resultobj;
36327 fail:
36328 return NULL;
36329 }
36330
36331
36332 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36333 PyObject *resultobj = 0;
36334 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36335 void *argp1 = 0 ;
36336 int res1 = 0 ;
36337 PyObject *swig_obj[1] ;
36338
36339 if (!args) SWIG_fail;
36340 swig_obj[0] = args;
36341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36342 if (!SWIG_IsOK(res1)) {
36343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36344 }
36345 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36346 {
36347 PyThreadState* __tstate = wxPyBeginAllowThreads();
36348 (arg1)->EndDrawing();
36349 wxPyEndAllowThreads(__tstate);
36350 if (PyErr_Occurred()) SWIG_fail;
36351 }
36352 resultobj = SWIG_Py_Void();
36353 return resultobj;
36354 fail:
36355 return NULL;
36356 }
36357
36358
36359 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36360 PyObject *resultobj = 0;
36361 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36362 void *argp1 = 0 ;
36363 int res1 = 0 ;
36364 PyObject *swig_obj[1] ;
36365
36366 if (!args) SWIG_fail;
36367 swig_obj[0] = args;
36368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
36369 if (!SWIG_IsOK(res1)) {
36370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36371 }
36372 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36373 {
36374 PyThreadState* __tstate = wxPyBeginAllowThreads();
36375 delete arg1;
36376
36377 wxPyEndAllowThreads(__tstate);
36378 if (PyErr_Occurred()) SWIG_fail;
36379 }
36380 resultobj = SWIG_Py_Void();
36381 return resultobj;
36382 fail:
36383 return NULL;
36384 }
36385
36386
36387 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36388 PyObject *resultobj = 0;
36389 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36390 void *argp1 = 0 ;
36391 int res1 = 0 ;
36392 PyObject *swig_obj[1] ;
36393
36394 if (!args) SWIG_fail;
36395 swig_obj[0] = args;
36396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36397 if (!SWIG_IsOK(res1)) {
36398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36399 }
36400 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36401 {
36402 PyThreadState* __tstate = wxPyBeginAllowThreads();
36403 (arg1)->RemoveAll();
36404 wxPyEndAllowThreads(__tstate);
36405 if (PyErr_Occurred()) SWIG_fail;
36406 }
36407 resultobj = SWIG_Py_Void();
36408 return resultobj;
36409 fail:
36410 return NULL;
36411 }
36412
36413
36414 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36415 PyObject *resultobj = 0;
36416 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36417 int result;
36418 void *argp1 = 0 ;
36419 int res1 = 0 ;
36420 PyObject *swig_obj[1] ;
36421
36422 if (!args) SWIG_fail;
36423 swig_obj[0] = args;
36424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36425 if (!SWIG_IsOK(res1)) {
36426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36427 }
36428 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36429 {
36430 PyThreadState* __tstate = wxPyBeginAllowThreads();
36431 result = (int)(arg1)->GetLen();
36432 wxPyEndAllowThreads(__tstate);
36433 if (PyErr_Occurred()) SWIG_fail;
36434 }
36435 resultobj = SWIG_From_int(static_cast< int >(result));
36436 return resultobj;
36437 fail:
36438 return NULL;
36439 }
36440
36441
36442 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36443 PyObject *resultobj = 0;
36444 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36445 int arg2 ;
36446 void *argp1 = 0 ;
36447 int res1 = 0 ;
36448 int val2 ;
36449 int ecode2 = 0 ;
36450 PyObject * obj0 = 0 ;
36451 PyObject * obj1 = 0 ;
36452 char * kwnames[] = {
36453 (char *) "self",(char *) "id", NULL
36454 };
36455
36456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) 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_SetId" "', 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_SetId" "', expected argument " "2"" of type '" "int""'");
36465 }
36466 arg2 = static_cast< int >(val2);
36467 {
36468 PyThreadState* __tstate = wxPyBeginAllowThreads();
36469 (arg1)->SetId(arg2);
36470 wxPyEndAllowThreads(__tstate);
36471 if (PyErr_Occurred()) SWIG_fail;
36472 }
36473 resultobj = SWIG_Py_Void();
36474 return resultobj;
36475 fail:
36476 return NULL;
36477 }
36478
36479
36480 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36481 PyObject *resultobj = 0;
36482 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36483 int arg2 ;
36484 void *argp1 = 0 ;
36485 int res1 = 0 ;
36486 int val2 ;
36487 int ecode2 = 0 ;
36488 PyObject * obj0 = 0 ;
36489 PyObject * obj1 = 0 ;
36490 char * kwnames[] = {
36491 (char *) "self",(char *) "id", NULL
36492 };
36493
36494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
36495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36496 if (!SWIG_IsOK(res1)) {
36497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36498 }
36499 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36500 ecode2 = SWIG_AsVal_int(obj1, &val2);
36501 if (!SWIG_IsOK(ecode2)) {
36502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
36503 }
36504 arg2 = static_cast< int >(val2);
36505 {
36506 PyThreadState* __tstate = wxPyBeginAllowThreads();
36507 (arg1)->ClearId(arg2);
36508 wxPyEndAllowThreads(__tstate);
36509 if (PyErr_Occurred()) SWIG_fail;
36510 }
36511 resultobj = SWIG_Py_Void();
36512 return resultobj;
36513 fail:
36514 return NULL;
36515 }
36516
36517
36518 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36519 PyObject *resultobj = 0;
36520 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36521 int arg2 ;
36522 void *argp1 = 0 ;
36523 int res1 = 0 ;
36524 int val2 ;
36525 int ecode2 = 0 ;
36526 PyObject * obj0 = 0 ;
36527 PyObject * obj1 = 0 ;
36528 char * kwnames[] = {
36529 (char *) "self",(char *) "id", NULL
36530 };
36531
36532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
36533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36534 if (!SWIG_IsOK(res1)) {
36535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36536 }
36537 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36538 ecode2 = SWIG_AsVal_int(obj1, &val2);
36539 if (!SWIG_IsOK(ecode2)) {
36540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
36541 }
36542 arg2 = static_cast< int >(val2);
36543 {
36544 PyThreadState* __tstate = wxPyBeginAllowThreads();
36545 (arg1)->RemoveId(arg2);
36546 wxPyEndAllowThreads(__tstate);
36547 if (PyErr_Occurred()) SWIG_fail;
36548 }
36549 resultobj = SWIG_Py_Void();
36550 return resultobj;
36551 fail:
36552 return NULL;
36553 }
36554
36555
36556 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36557 PyObject *resultobj = 0;
36558 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36559 int arg2 ;
36560 int arg3 ;
36561 int arg4 ;
36562 void *argp1 = 0 ;
36563 int res1 = 0 ;
36564 int val2 ;
36565 int ecode2 = 0 ;
36566 int val3 ;
36567 int ecode3 = 0 ;
36568 int val4 ;
36569 int ecode4 = 0 ;
36570 PyObject * obj0 = 0 ;
36571 PyObject * obj1 = 0 ;
36572 PyObject * obj2 = 0 ;
36573 PyObject * obj3 = 0 ;
36574 char * kwnames[] = {
36575 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
36576 };
36577
36578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36580 if (!SWIG_IsOK(res1)) {
36581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36582 }
36583 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36584 ecode2 = SWIG_AsVal_int(obj1, &val2);
36585 if (!SWIG_IsOK(ecode2)) {
36586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
36587 }
36588 arg2 = static_cast< int >(val2);
36589 ecode3 = SWIG_AsVal_int(obj2, &val3);
36590 if (!SWIG_IsOK(ecode3)) {
36591 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
36592 }
36593 arg3 = static_cast< int >(val3);
36594 ecode4 = SWIG_AsVal_int(obj3, &val4);
36595 if (!SWIG_IsOK(ecode4)) {
36596 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
36597 }
36598 arg4 = static_cast< int >(val4);
36599 {
36600 PyThreadState* __tstate = wxPyBeginAllowThreads();
36601 (arg1)->TranslateId(arg2,arg3,arg4);
36602 wxPyEndAllowThreads(__tstate);
36603 if (PyErr_Occurred()) SWIG_fail;
36604 }
36605 resultobj = SWIG_Py_Void();
36606 return resultobj;
36607 fail:
36608 return NULL;
36609 }
36610
36611
36612 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36613 PyObject *resultobj = 0;
36614 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36615 int arg2 ;
36616 bool arg3 = (bool) true ;
36617 void *argp1 = 0 ;
36618 int res1 = 0 ;
36619 int val2 ;
36620 int ecode2 = 0 ;
36621 bool val3 ;
36622 int ecode3 = 0 ;
36623 PyObject * obj0 = 0 ;
36624 PyObject * obj1 = 0 ;
36625 PyObject * obj2 = 0 ;
36626 char * kwnames[] = {
36627 (char *) "self",(char *) "id",(char *) "greyout", NULL
36628 };
36629
36630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36632 if (!SWIG_IsOK(res1)) {
36633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36634 }
36635 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36636 ecode2 = SWIG_AsVal_int(obj1, &val2);
36637 if (!SWIG_IsOK(ecode2)) {
36638 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
36639 }
36640 arg2 = static_cast< int >(val2);
36641 if (obj2) {
36642 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36643 if (!SWIG_IsOK(ecode3)) {
36644 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
36645 }
36646 arg3 = static_cast< bool >(val3);
36647 }
36648 {
36649 PyThreadState* __tstate = wxPyBeginAllowThreads();
36650 (arg1)->SetIdGreyedOut(arg2,arg3);
36651 wxPyEndAllowThreads(__tstate);
36652 if (PyErr_Occurred()) SWIG_fail;
36653 }
36654 resultobj = SWIG_Py_Void();
36655 return resultobj;
36656 fail:
36657 return NULL;
36658 }
36659
36660
36661 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36662 PyObject *resultobj = 0;
36663 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36664 int arg2 ;
36665 bool result;
36666 void *argp1 = 0 ;
36667 int res1 = 0 ;
36668 int val2 ;
36669 int ecode2 = 0 ;
36670 PyObject * obj0 = 0 ;
36671 PyObject * obj1 = 0 ;
36672 char * kwnames[] = {
36673 (char *) "self",(char *) "id", NULL
36674 };
36675
36676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
36677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36678 if (!SWIG_IsOK(res1)) {
36679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36680 }
36681 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36682 ecode2 = SWIG_AsVal_int(obj1, &val2);
36683 if (!SWIG_IsOK(ecode2)) {
36684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
36685 }
36686 arg2 = static_cast< int >(val2);
36687 {
36688 PyThreadState* __tstate = wxPyBeginAllowThreads();
36689 result = (bool)(arg1)->GetIdGreyedOut(arg2);
36690 wxPyEndAllowThreads(__tstate);
36691 if (PyErr_Occurred()) SWIG_fail;
36692 }
36693 {
36694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36695 }
36696 return resultobj;
36697 fail:
36698 return NULL;
36699 }
36700
36701
36702 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36703 PyObject *resultobj = 0;
36704 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36705 int arg2 ;
36706 int arg3 ;
36707 int arg4 = (int) 1 ;
36708 wxColour const &arg5_defvalue = *wxWHITE ;
36709 wxColour *arg5 = (wxColour *) &arg5_defvalue ;
36710 PyObject *result = 0 ;
36711 void *argp1 = 0 ;
36712 int res1 = 0 ;
36713 int val2 ;
36714 int ecode2 = 0 ;
36715 int val3 ;
36716 int ecode3 = 0 ;
36717 int val4 ;
36718 int ecode4 = 0 ;
36719 wxColour temp5 ;
36720 PyObject * obj0 = 0 ;
36721 PyObject * obj1 = 0 ;
36722 PyObject * obj2 = 0 ;
36723 PyObject * obj3 = 0 ;
36724 PyObject * obj4 = 0 ;
36725 char * kwnames[] = {
36726 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
36727 };
36728
36729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36731 if (!SWIG_IsOK(res1)) {
36732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36733 }
36734 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36735 ecode2 = SWIG_AsVal_int(obj1, &val2);
36736 if (!SWIG_IsOK(ecode2)) {
36737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
36738 }
36739 arg2 = static_cast< int >(val2);
36740 ecode3 = SWIG_AsVal_int(obj2, &val3);
36741 if (!SWIG_IsOK(ecode3)) {
36742 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
36743 }
36744 arg3 = static_cast< int >(val3);
36745 if (obj3) {
36746 ecode4 = SWIG_AsVal_int(obj3, &val4);
36747 if (!SWIG_IsOK(ecode4)) {
36748 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
36749 }
36750 arg4 = static_cast< int >(val4);
36751 }
36752 if (obj4) {
36753 {
36754 arg5 = &temp5;
36755 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
36756 }
36757 }
36758 {
36759 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColour const &)*arg5);
36760 if (PyErr_Occurred()) SWIG_fail;
36761 }
36762 resultobj = result;
36763 return resultobj;
36764 fail:
36765 return NULL;
36766 }
36767
36768
36769 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36770 PyObject *resultobj = 0;
36771 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36772 int arg2 ;
36773 int arg3 ;
36774 PyObject *result = 0 ;
36775 void *argp1 = 0 ;
36776 int res1 = 0 ;
36777 int val2 ;
36778 int ecode2 = 0 ;
36779 int val3 ;
36780 int ecode3 = 0 ;
36781 PyObject * obj0 = 0 ;
36782 PyObject * obj1 = 0 ;
36783 PyObject * obj2 = 0 ;
36784 char * kwnames[] = {
36785 (char *) "self",(char *) "x",(char *) "y", NULL
36786 };
36787
36788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36790 if (!SWIG_IsOK(res1)) {
36791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36792 }
36793 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36794 ecode2 = SWIG_AsVal_int(obj1, &val2);
36795 if (!SWIG_IsOK(ecode2)) {
36796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
36797 }
36798 arg2 = static_cast< int >(val2);
36799 ecode3 = SWIG_AsVal_int(obj2, &val3);
36800 if (!SWIG_IsOK(ecode3)) {
36801 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
36802 }
36803 arg3 = static_cast< int >(val3);
36804 {
36805 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
36806 if (PyErr_Occurred()) SWIG_fail;
36807 }
36808 resultobj = result;
36809 return resultobj;
36810 fail:
36811 return NULL;
36812 }
36813
36814
36815 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36816 PyObject *resultobj = 0;
36817 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36818 int arg2 ;
36819 wxDC *arg3 = (wxDC *) 0 ;
36820 void *argp1 = 0 ;
36821 int res1 = 0 ;
36822 int val2 ;
36823 int ecode2 = 0 ;
36824 void *argp3 = 0 ;
36825 int res3 = 0 ;
36826 PyObject * obj0 = 0 ;
36827 PyObject * obj1 = 0 ;
36828 PyObject * obj2 = 0 ;
36829 char * kwnames[] = {
36830 (char *) "self",(char *) "id",(char *) "dc", NULL
36831 };
36832
36833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36835 if (!SWIG_IsOK(res1)) {
36836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36837 }
36838 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36839 ecode2 = SWIG_AsVal_int(obj1, &val2);
36840 if (!SWIG_IsOK(ecode2)) {
36841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
36842 }
36843 arg2 = static_cast< int >(val2);
36844 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
36845 if (!SWIG_IsOK(res3)) {
36846 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
36847 }
36848 arg3 = reinterpret_cast< wxDC * >(argp3);
36849 {
36850 PyThreadState* __tstate = wxPyBeginAllowThreads();
36851 (arg1)->DrawIdToDC(arg2,arg3);
36852 wxPyEndAllowThreads(__tstate);
36853 if (PyErr_Occurred()) SWIG_fail;
36854 }
36855 resultobj = SWIG_Py_Void();
36856 return resultobj;
36857 fail:
36858 return NULL;
36859 }
36860
36861
36862 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36863 PyObject *resultobj = 0;
36864 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36865 int arg2 ;
36866 wxRect *arg3 = 0 ;
36867 void *argp1 = 0 ;
36868 int res1 = 0 ;
36869 int val2 ;
36870 int ecode2 = 0 ;
36871 wxRect temp3 ;
36872 PyObject * obj0 = 0 ;
36873 PyObject * obj1 = 0 ;
36874 PyObject * obj2 = 0 ;
36875 char * kwnames[] = {
36876 (char *) "self",(char *) "id",(char *) "rect", NULL
36877 };
36878
36879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36881 if (!SWIG_IsOK(res1)) {
36882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36883 }
36884 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36885 ecode2 = SWIG_AsVal_int(obj1, &val2);
36886 if (!SWIG_IsOK(ecode2)) {
36887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
36888 }
36889 arg2 = static_cast< int >(val2);
36890 {
36891 arg3 = &temp3;
36892 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36893 }
36894 {
36895 PyThreadState* __tstate = wxPyBeginAllowThreads();
36896 (arg1)->SetIdBounds(arg2,*arg3);
36897 wxPyEndAllowThreads(__tstate);
36898 if (PyErr_Occurred()) SWIG_fail;
36899 }
36900 resultobj = SWIG_Py_Void();
36901 return resultobj;
36902 fail:
36903 return NULL;
36904 }
36905
36906
36907 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36908 PyObject *resultobj = 0;
36909 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36910 int arg2 ;
36911 wxRect result;
36912 void *argp1 = 0 ;
36913 int res1 = 0 ;
36914 int val2 ;
36915 int ecode2 = 0 ;
36916 PyObject * obj0 = 0 ;
36917 PyObject * obj1 = 0 ;
36918 char * kwnames[] = {
36919 (char *) "self",(char *) "id", NULL
36920 };
36921
36922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
36923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36924 if (!SWIG_IsOK(res1)) {
36925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36926 }
36927 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36928 ecode2 = SWIG_AsVal_int(obj1, &val2);
36929 if (!SWIG_IsOK(ecode2)) {
36930 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
36931 }
36932 arg2 = static_cast< int >(val2);
36933 {
36934 PyThreadState* __tstate = wxPyBeginAllowThreads();
36935 result = wxPseudoDC_GetIdBounds(arg1,arg2);
36936 wxPyEndAllowThreads(__tstate);
36937 if (PyErr_Occurred()) SWIG_fail;
36938 }
36939 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
36940 return resultobj;
36941 fail:
36942 return NULL;
36943 }
36944
36945
36946 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36947 PyObject *resultobj = 0;
36948 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36949 wxDC *arg2 = (wxDC *) 0 ;
36950 wxRect *arg3 = 0 ;
36951 void *argp1 = 0 ;
36952 int res1 = 0 ;
36953 void *argp2 = 0 ;
36954 int res2 = 0 ;
36955 wxRect temp3 ;
36956 PyObject * obj0 = 0 ;
36957 PyObject * obj1 = 0 ;
36958 PyObject * obj2 = 0 ;
36959 char * kwnames[] = {
36960 (char *) "self",(char *) "dc",(char *) "rect", NULL
36961 };
36962
36963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36965 if (!SWIG_IsOK(res1)) {
36966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36967 }
36968 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36969 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36970 if (!SWIG_IsOK(res2)) {
36971 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
36972 }
36973 arg2 = reinterpret_cast< wxDC * >(argp2);
36974 {
36975 arg3 = &temp3;
36976 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36977 }
36978 {
36979 PyThreadState* __tstate = wxPyBeginAllowThreads();
36980 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
36981 wxPyEndAllowThreads(__tstate);
36982 if (PyErr_Occurred()) SWIG_fail;
36983 }
36984 resultobj = SWIG_Py_Void();
36985 return resultobj;
36986 fail:
36987 return NULL;
36988 }
36989
36990
36991 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36992 PyObject *resultobj = 0;
36993 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36994 wxDC *arg2 = (wxDC *) 0 ;
36995 wxRegion *arg3 = 0 ;
36996 void *argp1 = 0 ;
36997 int res1 = 0 ;
36998 void *argp2 = 0 ;
36999 int res2 = 0 ;
37000 void *argp3 = 0 ;
37001 int res3 = 0 ;
37002 PyObject * obj0 = 0 ;
37003 PyObject * obj1 = 0 ;
37004 PyObject * obj2 = 0 ;
37005 char * kwnames[] = {
37006 (char *) "self",(char *) "dc",(char *) "region", NULL
37007 };
37008
37009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37011 if (!SWIG_IsOK(res1)) {
37012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37013 }
37014 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37015 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
37016 if (!SWIG_IsOK(res2)) {
37017 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
37018 }
37019 arg2 = reinterpret_cast< wxDC * >(argp2);
37020 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
37021 if (!SWIG_IsOK(res3)) {
37022 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
37023 }
37024 if (!argp3) {
37025 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
37026 }
37027 arg3 = reinterpret_cast< wxRegion * >(argp3);
37028 {
37029 PyThreadState* __tstate = wxPyBeginAllowThreads();
37030 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
37031 wxPyEndAllowThreads(__tstate);
37032 if (PyErr_Occurred()) SWIG_fail;
37033 }
37034 resultobj = SWIG_Py_Void();
37035 return resultobj;
37036 fail:
37037 return NULL;
37038 }
37039
37040
37041 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37042 PyObject *resultobj = 0;
37043 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37044 wxDC *arg2 = (wxDC *) 0 ;
37045 void *argp1 = 0 ;
37046 int res1 = 0 ;
37047 void *argp2 = 0 ;
37048 int res2 = 0 ;
37049 PyObject * obj0 = 0 ;
37050 PyObject * obj1 = 0 ;
37051 char * kwnames[] = {
37052 (char *) "self",(char *) "dc", NULL
37053 };
37054
37055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
37056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37057 if (!SWIG_IsOK(res1)) {
37058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37059 }
37060 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37061 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
37062 if (!SWIG_IsOK(res2)) {
37063 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
37064 }
37065 arg2 = reinterpret_cast< wxDC * >(argp2);
37066 {
37067 PyThreadState* __tstate = wxPyBeginAllowThreads();
37068 (arg1)->DrawToDC(arg2);
37069 wxPyEndAllowThreads(__tstate);
37070 if (PyErr_Occurred()) SWIG_fail;
37071 }
37072 resultobj = SWIG_Py_Void();
37073 return resultobj;
37074 fail:
37075 return NULL;
37076 }
37077
37078
37079 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37080 PyObject *resultobj = 0;
37081 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37082 int arg2 ;
37083 int arg3 ;
37084 wxColour *arg4 = 0 ;
37085 int arg5 = (int) wxFLOOD_SURFACE ;
37086 void *argp1 = 0 ;
37087 int res1 = 0 ;
37088 int val2 ;
37089 int ecode2 = 0 ;
37090 int val3 ;
37091 int ecode3 = 0 ;
37092 wxColour temp4 ;
37093 int val5 ;
37094 int ecode5 = 0 ;
37095 PyObject * obj0 = 0 ;
37096 PyObject * obj1 = 0 ;
37097 PyObject * obj2 = 0 ;
37098 PyObject * obj3 = 0 ;
37099 PyObject * obj4 = 0 ;
37100 char * kwnames[] = {
37101 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
37102 };
37103
37104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37106 if (!SWIG_IsOK(res1)) {
37107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37108 }
37109 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37110 ecode2 = SWIG_AsVal_int(obj1, &val2);
37111 if (!SWIG_IsOK(ecode2)) {
37112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
37113 }
37114 arg2 = static_cast< int >(val2);
37115 ecode3 = SWIG_AsVal_int(obj2, &val3);
37116 if (!SWIG_IsOK(ecode3)) {
37117 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
37118 }
37119 arg3 = static_cast< int >(val3);
37120 {
37121 arg4 = &temp4;
37122 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
37123 }
37124 if (obj4) {
37125 ecode5 = SWIG_AsVal_int(obj4, &val5);
37126 if (!SWIG_IsOK(ecode5)) {
37127 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
37128 }
37129 arg5 = static_cast< int >(val5);
37130 }
37131 {
37132 PyThreadState* __tstate = wxPyBeginAllowThreads();
37133 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
37134 wxPyEndAllowThreads(__tstate);
37135 if (PyErr_Occurred()) SWIG_fail;
37136 }
37137 resultobj = SWIG_Py_Void();
37138 return resultobj;
37139 fail:
37140 return NULL;
37141 }
37142
37143
37144 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37145 PyObject *resultobj = 0;
37146 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37147 wxPoint *arg2 = 0 ;
37148 wxColour *arg3 = 0 ;
37149 int arg4 = (int) wxFLOOD_SURFACE ;
37150 void *argp1 = 0 ;
37151 int res1 = 0 ;
37152 wxPoint temp2 ;
37153 wxColour temp3 ;
37154 int val4 ;
37155 int ecode4 = 0 ;
37156 PyObject * obj0 = 0 ;
37157 PyObject * obj1 = 0 ;
37158 PyObject * obj2 = 0 ;
37159 PyObject * obj3 = 0 ;
37160 char * kwnames[] = {
37161 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
37162 };
37163
37164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37166 if (!SWIG_IsOK(res1)) {
37167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37168 }
37169 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37170 {
37171 arg2 = &temp2;
37172 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37173 }
37174 {
37175 arg3 = &temp3;
37176 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
37177 }
37178 if (obj3) {
37179 ecode4 = SWIG_AsVal_int(obj3, &val4);
37180 if (!SWIG_IsOK(ecode4)) {
37181 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
37182 }
37183 arg4 = static_cast< int >(val4);
37184 }
37185 {
37186 PyThreadState* __tstate = wxPyBeginAllowThreads();
37187 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
37188 wxPyEndAllowThreads(__tstate);
37189 if (PyErr_Occurred()) SWIG_fail;
37190 }
37191 resultobj = SWIG_Py_Void();
37192 return resultobj;
37193 fail:
37194 return NULL;
37195 }
37196
37197
37198 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37199 PyObject *resultobj = 0;
37200 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37201 int arg2 ;
37202 int arg3 ;
37203 int arg4 ;
37204 int arg5 ;
37205 void *argp1 = 0 ;
37206 int res1 = 0 ;
37207 int val2 ;
37208 int ecode2 = 0 ;
37209 int val3 ;
37210 int ecode3 = 0 ;
37211 int val4 ;
37212 int ecode4 = 0 ;
37213 int val5 ;
37214 int ecode5 = 0 ;
37215 PyObject * obj0 = 0 ;
37216 PyObject * obj1 = 0 ;
37217 PyObject * obj2 = 0 ;
37218 PyObject * obj3 = 0 ;
37219 PyObject * obj4 = 0 ;
37220 char * kwnames[] = {
37221 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
37222 };
37223
37224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37226 if (!SWIG_IsOK(res1)) {
37227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37228 }
37229 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37230 ecode2 = SWIG_AsVal_int(obj1, &val2);
37231 if (!SWIG_IsOK(ecode2)) {
37232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
37233 }
37234 arg2 = static_cast< int >(val2);
37235 ecode3 = SWIG_AsVal_int(obj2, &val3);
37236 if (!SWIG_IsOK(ecode3)) {
37237 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
37238 }
37239 arg3 = static_cast< int >(val3);
37240 ecode4 = SWIG_AsVal_int(obj3, &val4);
37241 if (!SWIG_IsOK(ecode4)) {
37242 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
37243 }
37244 arg4 = static_cast< int >(val4);
37245 ecode5 = SWIG_AsVal_int(obj4, &val5);
37246 if (!SWIG_IsOK(ecode5)) {
37247 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
37248 }
37249 arg5 = static_cast< int >(val5);
37250 {
37251 PyThreadState* __tstate = wxPyBeginAllowThreads();
37252 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
37253 wxPyEndAllowThreads(__tstate);
37254 if (PyErr_Occurred()) SWIG_fail;
37255 }
37256 resultobj = SWIG_Py_Void();
37257 return resultobj;
37258 fail:
37259 return NULL;
37260 }
37261
37262
37263 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37264 PyObject *resultobj = 0;
37265 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37266 wxPoint *arg2 = 0 ;
37267 wxPoint *arg3 = 0 ;
37268 void *argp1 = 0 ;
37269 int res1 = 0 ;
37270 wxPoint temp2 ;
37271 wxPoint temp3 ;
37272 PyObject * obj0 = 0 ;
37273 PyObject * obj1 = 0 ;
37274 PyObject * obj2 = 0 ;
37275 char * kwnames[] = {
37276 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
37277 };
37278
37279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37281 if (!SWIG_IsOK(res1)) {
37282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37283 }
37284 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37285 {
37286 arg2 = &temp2;
37287 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37288 }
37289 {
37290 arg3 = &temp3;
37291 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37292 }
37293 {
37294 PyThreadState* __tstate = wxPyBeginAllowThreads();
37295 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
37296 wxPyEndAllowThreads(__tstate);
37297 if (PyErr_Occurred()) SWIG_fail;
37298 }
37299 resultobj = SWIG_Py_Void();
37300 return resultobj;
37301 fail:
37302 return NULL;
37303 }
37304
37305
37306 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37307 PyObject *resultobj = 0;
37308 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37309 int arg2 ;
37310 int arg3 ;
37311 void *argp1 = 0 ;
37312 int res1 = 0 ;
37313 int val2 ;
37314 int ecode2 = 0 ;
37315 int val3 ;
37316 int ecode3 = 0 ;
37317 PyObject * obj0 = 0 ;
37318 PyObject * obj1 = 0 ;
37319 PyObject * obj2 = 0 ;
37320 char * kwnames[] = {
37321 (char *) "self",(char *) "x",(char *) "y", NULL
37322 };
37323
37324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37326 if (!SWIG_IsOK(res1)) {
37327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37328 }
37329 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37330 ecode2 = SWIG_AsVal_int(obj1, &val2);
37331 if (!SWIG_IsOK(ecode2)) {
37332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
37333 }
37334 arg2 = static_cast< int >(val2);
37335 ecode3 = SWIG_AsVal_int(obj2, &val3);
37336 if (!SWIG_IsOK(ecode3)) {
37337 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
37338 }
37339 arg3 = static_cast< int >(val3);
37340 {
37341 PyThreadState* __tstate = wxPyBeginAllowThreads();
37342 (arg1)->CrossHair(arg2,arg3);
37343 wxPyEndAllowThreads(__tstate);
37344 if (PyErr_Occurred()) SWIG_fail;
37345 }
37346 resultobj = SWIG_Py_Void();
37347 return resultobj;
37348 fail:
37349 return NULL;
37350 }
37351
37352
37353 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37354 PyObject *resultobj = 0;
37355 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37356 wxPoint *arg2 = 0 ;
37357 void *argp1 = 0 ;
37358 int res1 = 0 ;
37359 wxPoint temp2 ;
37360 PyObject * obj0 = 0 ;
37361 PyObject * obj1 = 0 ;
37362 char * kwnames[] = {
37363 (char *) "self",(char *) "pt", NULL
37364 };
37365
37366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
37367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37368 if (!SWIG_IsOK(res1)) {
37369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37370 }
37371 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37372 {
37373 arg2 = &temp2;
37374 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37375 }
37376 {
37377 PyThreadState* __tstate = wxPyBeginAllowThreads();
37378 (arg1)->CrossHair((wxPoint const &)*arg2);
37379 wxPyEndAllowThreads(__tstate);
37380 if (PyErr_Occurred()) SWIG_fail;
37381 }
37382 resultobj = SWIG_Py_Void();
37383 return resultobj;
37384 fail:
37385 return NULL;
37386 }
37387
37388
37389 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37390 PyObject *resultobj = 0;
37391 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37392 int arg2 ;
37393 int arg3 ;
37394 int arg4 ;
37395 int arg5 ;
37396 int arg6 ;
37397 int arg7 ;
37398 void *argp1 = 0 ;
37399 int res1 = 0 ;
37400 int val2 ;
37401 int ecode2 = 0 ;
37402 int val3 ;
37403 int ecode3 = 0 ;
37404 int val4 ;
37405 int ecode4 = 0 ;
37406 int val5 ;
37407 int ecode5 = 0 ;
37408 int val6 ;
37409 int ecode6 = 0 ;
37410 int val7 ;
37411 int ecode7 = 0 ;
37412 PyObject * obj0 = 0 ;
37413 PyObject * obj1 = 0 ;
37414 PyObject * obj2 = 0 ;
37415 PyObject * obj3 = 0 ;
37416 PyObject * obj4 = 0 ;
37417 PyObject * obj5 = 0 ;
37418 PyObject * obj6 = 0 ;
37419 char * kwnames[] = {
37420 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
37421 };
37422
37423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37425 if (!SWIG_IsOK(res1)) {
37426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37427 }
37428 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37429 ecode2 = SWIG_AsVal_int(obj1, &val2);
37430 if (!SWIG_IsOK(ecode2)) {
37431 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
37432 }
37433 arg2 = static_cast< int >(val2);
37434 ecode3 = SWIG_AsVal_int(obj2, &val3);
37435 if (!SWIG_IsOK(ecode3)) {
37436 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
37437 }
37438 arg3 = static_cast< int >(val3);
37439 ecode4 = SWIG_AsVal_int(obj3, &val4);
37440 if (!SWIG_IsOK(ecode4)) {
37441 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
37442 }
37443 arg4 = static_cast< int >(val4);
37444 ecode5 = SWIG_AsVal_int(obj4, &val5);
37445 if (!SWIG_IsOK(ecode5)) {
37446 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
37447 }
37448 arg5 = static_cast< int >(val5);
37449 ecode6 = SWIG_AsVal_int(obj5, &val6);
37450 if (!SWIG_IsOK(ecode6)) {
37451 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
37452 }
37453 arg6 = static_cast< int >(val6);
37454 ecode7 = SWIG_AsVal_int(obj6, &val7);
37455 if (!SWIG_IsOK(ecode7)) {
37456 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
37457 }
37458 arg7 = static_cast< int >(val7);
37459 {
37460 PyThreadState* __tstate = wxPyBeginAllowThreads();
37461 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
37462 wxPyEndAllowThreads(__tstate);
37463 if (PyErr_Occurred()) SWIG_fail;
37464 }
37465 resultobj = SWIG_Py_Void();
37466 return resultobj;
37467 fail:
37468 return NULL;
37469 }
37470
37471
37472 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37473 PyObject *resultobj = 0;
37474 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37475 wxPoint *arg2 = 0 ;
37476 wxPoint *arg3 = 0 ;
37477 wxPoint *arg4 = 0 ;
37478 void *argp1 = 0 ;
37479 int res1 = 0 ;
37480 wxPoint temp2 ;
37481 wxPoint temp3 ;
37482 wxPoint temp4 ;
37483 PyObject * obj0 = 0 ;
37484 PyObject * obj1 = 0 ;
37485 PyObject * obj2 = 0 ;
37486 PyObject * obj3 = 0 ;
37487 char * kwnames[] = {
37488 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
37489 };
37490
37491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37493 if (!SWIG_IsOK(res1)) {
37494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37495 }
37496 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37497 {
37498 arg2 = &temp2;
37499 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37500 }
37501 {
37502 arg3 = &temp3;
37503 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37504 }
37505 {
37506 arg4 = &temp4;
37507 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37508 }
37509 {
37510 PyThreadState* __tstate = wxPyBeginAllowThreads();
37511 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
37512 wxPyEndAllowThreads(__tstate);
37513 if (PyErr_Occurred()) SWIG_fail;
37514 }
37515 resultobj = SWIG_Py_Void();
37516 return resultobj;
37517 fail:
37518 return NULL;
37519 }
37520
37521
37522 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37523 PyObject *resultobj = 0;
37524 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37525 int arg2 ;
37526 int arg3 ;
37527 int arg4 ;
37528 int arg5 ;
37529 void *argp1 = 0 ;
37530 int res1 = 0 ;
37531 int val2 ;
37532 int ecode2 = 0 ;
37533 int val3 ;
37534 int ecode3 = 0 ;
37535 int val4 ;
37536 int ecode4 = 0 ;
37537 int val5 ;
37538 int ecode5 = 0 ;
37539 PyObject * obj0 = 0 ;
37540 PyObject * obj1 = 0 ;
37541 PyObject * obj2 = 0 ;
37542 PyObject * obj3 = 0 ;
37543 PyObject * obj4 = 0 ;
37544 char * kwnames[] = {
37545 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37546 };
37547
37548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37550 if (!SWIG_IsOK(res1)) {
37551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37552 }
37553 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37554 ecode2 = SWIG_AsVal_int(obj1, &val2);
37555 if (!SWIG_IsOK(ecode2)) {
37556 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
37557 }
37558 arg2 = static_cast< int >(val2);
37559 ecode3 = SWIG_AsVal_int(obj2, &val3);
37560 if (!SWIG_IsOK(ecode3)) {
37561 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
37562 }
37563 arg3 = static_cast< int >(val3);
37564 ecode4 = SWIG_AsVal_int(obj3, &val4);
37565 if (!SWIG_IsOK(ecode4)) {
37566 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
37567 }
37568 arg4 = static_cast< int >(val4);
37569 ecode5 = SWIG_AsVal_int(obj4, &val5);
37570 if (!SWIG_IsOK(ecode5)) {
37571 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
37572 }
37573 arg5 = static_cast< int >(val5);
37574 {
37575 PyThreadState* __tstate = wxPyBeginAllowThreads();
37576 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
37577 wxPyEndAllowThreads(__tstate);
37578 if (PyErr_Occurred()) SWIG_fail;
37579 }
37580 resultobj = SWIG_Py_Void();
37581 return resultobj;
37582 fail:
37583 return NULL;
37584 }
37585
37586
37587 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37588 PyObject *resultobj = 0;
37589 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37590 wxRect *arg2 = 0 ;
37591 void *argp1 = 0 ;
37592 int res1 = 0 ;
37593 wxRect temp2 ;
37594 PyObject * obj0 = 0 ;
37595 PyObject * obj1 = 0 ;
37596 char * kwnames[] = {
37597 (char *) "self",(char *) "rect", NULL
37598 };
37599
37600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
37601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37602 if (!SWIG_IsOK(res1)) {
37603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37604 }
37605 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37606 {
37607 arg2 = &temp2;
37608 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37609 }
37610 {
37611 PyThreadState* __tstate = wxPyBeginAllowThreads();
37612 (arg1)->DrawCheckMark((wxRect const &)*arg2);
37613 wxPyEndAllowThreads(__tstate);
37614 if (PyErr_Occurred()) SWIG_fail;
37615 }
37616 resultobj = SWIG_Py_Void();
37617 return resultobj;
37618 fail:
37619 return NULL;
37620 }
37621
37622
37623 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37624 PyObject *resultobj = 0;
37625 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37626 int arg2 ;
37627 int arg3 ;
37628 int arg4 ;
37629 int arg5 ;
37630 double arg6 ;
37631 double arg7 ;
37632 void *argp1 = 0 ;
37633 int res1 = 0 ;
37634 int val2 ;
37635 int ecode2 = 0 ;
37636 int val3 ;
37637 int ecode3 = 0 ;
37638 int val4 ;
37639 int ecode4 = 0 ;
37640 int val5 ;
37641 int ecode5 = 0 ;
37642 double val6 ;
37643 int ecode6 = 0 ;
37644 double val7 ;
37645 int ecode7 = 0 ;
37646 PyObject * obj0 = 0 ;
37647 PyObject * obj1 = 0 ;
37648 PyObject * obj2 = 0 ;
37649 PyObject * obj3 = 0 ;
37650 PyObject * obj4 = 0 ;
37651 PyObject * obj5 = 0 ;
37652 PyObject * obj6 = 0 ;
37653 char * kwnames[] = {
37654 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
37655 };
37656
37657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
37658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37659 if (!SWIG_IsOK(res1)) {
37660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37661 }
37662 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37663 ecode2 = SWIG_AsVal_int(obj1, &val2);
37664 if (!SWIG_IsOK(ecode2)) {
37665 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
37666 }
37667 arg2 = static_cast< int >(val2);
37668 ecode3 = SWIG_AsVal_int(obj2, &val3);
37669 if (!SWIG_IsOK(ecode3)) {
37670 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
37671 }
37672 arg3 = static_cast< int >(val3);
37673 ecode4 = SWIG_AsVal_int(obj3, &val4);
37674 if (!SWIG_IsOK(ecode4)) {
37675 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
37676 }
37677 arg4 = static_cast< int >(val4);
37678 ecode5 = SWIG_AsVal_int(obj4, &val5);
37679 if (!SWIG_IsOK(ecode5)) {
37680 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
37681 }
37682 arg5 = static_cast< int >(val5);
37683 ecode6 = SWIG_AsVal_double(obj5, &val6);
37684 if (!SWIG_IsOK(ecode6)) {
37685 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
37686 }
37687 arg6 = static_cast< double >(val6);
37688 ecode7 = SWIG_AsVal_double(obj6, &val7);
37689 if (!SWIG_IsOK(ecode7)) {
37690 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
37691 }
37692 arg7 = static_cast< double >(val7);
37693 {
37694 PyThreadState* __tstate = wxPyBeginAllowThreads();
37695 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
37696 wxPyEndAllowThreads(__tstate);
37697 if (PyErr_Occurred()) SWIG_fail;
37698 }
37699 resultobj = SWIG_Py_Void();
37700 return resultobj;
37701 fail:
37702 return NULL;
37703 }
37704
37705
37706 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37707 PyObject *resultobj = 0;
37708 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37709 wxPoint *arg2 = 0 ;
37710 wxSize *arg3 = 0 ;
37711 double arg4 ;
37712 double arg5 ;
37713 void *argp1 = 0 ;
37714 int res1 = 0 ;
37715 wxPoint temp2 ;
37716 wxSize temp3 ;
37717 double val4 ;
37718 int ecode4 = 0 ;
37719 double val5 ;
37720 int ecode5 = 0 ;
37721 PyObject * obj0 = 0 ;
37722 PyObject * obj1 = 0 ;
37723 PyObject * obj2 = 0 ;
37724 PyObject * obj3 = 0 ;
37725 PyObject * obj4 = 0 ;
37726 char * kwnames[] = {
37727 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
37728 };
37729
37730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37732 if (!SWIG_IsOK(res1)) {
37733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37734 }
37735 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37736 {
37737 arg2 = &temp2;
37738 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37739 }
37740 {
37741 arg3 = &temp3;
37742 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37743 }
37744 ecode4 = SWIG_AsVal_double(obj3, &val4);
37745 if (!SWIG_IsOK(ecode4)) {
37746 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
37747 }
37748 arg4 = static_cast< double >(val4);
37749 ecode5 = SWIG_AsVal_double(obj4, &val5);
37750 if (!SWIG_IsOK(ecode5)) {
37751 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
37752 }
37753 arg5 = static_cast< double >(val5);
37754 {
37755 PyThreadState* __tstate = wxPyBeginAllowThreads();
37756 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
37757 wxPyEndAllowThreads(__tstate);
37758 if (PyErr_Occurred()) SWIG_fail;
37759 }
37760 resultobj = SWIG_Py_Void();
37761 return resultobj;
37762 fail:
37763 return NULL;
37764 }
37765
37766
37767 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37768 PyObject *resultobj = 0;
37769 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37770 int arg2 ;
37771 int arg3 ;
37772 void *argp1 = 0 ;
37773 int res1 = 0 ;
37774 int val2 ;
37775 int ecode2 = 0 ;
37776 int val3 ;
37777 int ecode3 = 0 ;
37778 PyObject * obj0 = 0 ;
37779 PyObject * obj1 = 0 ;
37780 PyObject * obj2 = 0 ;
37781 char * kwnames[] = {
37782 (char *) "self",(char *) "x",(char *) "y", NULL
37783 };
37784
37785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37787 if (!SWIG_IsOK(res1)) {
37788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37789 }
37790 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37791 ecode2 = SWIG_AsVal_int(obj1, &val2);
37792 if (!SWIG_IsOK(ecode2)) {
37793 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
37794 }
37795 arg2 = static_cast< int >(val2);
37796 ecode3 = SWIG_AsVal_int(obj2, &val3);
37797 if (!SWIG_IsOK(ecode3)) {
37798 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
37799 }
37800 arg3 = static_cast< int >(val3);
37801 {
37802 PyThreadState* __tstate = wxPyBeginAllowThreads();
37803 (arg1)->DrawPoint(arg2,arg3);
37804 wxPyEndAllowThreads(__tstate);
37805 if (PyErr_Occurred()) SWIG_fail;
37806 }
37807 resultobj = SWIG_Py_Void();
37808 return resultobj;
37809 fail:
37810 return NULL;
37811 }
37812
37813
37814 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37815 PyObject *resultobj = 0;
37816 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37817 wxPoint *arg2 = 0 ;
37818 void *argp1 = 0 ;
37819 int res1 = 0 ;
37820 wxPoint temp2 ;
37821 PyObject * obj0 = 0 ;
37822 PyObject * obj1 = 0 ;
37823 char * kwnames[] = {
37824 (char *) "self",(char *) "pt", NULL
37825 };
37826
37827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
37828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37829 if (!SWIG_IsOK(res1)) {
37830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37831 }
37832 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37833 {
37834 arg2 = &temp2;
37835 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37836 }
37837 {
37838 PyThreadState* __tstate = wxPyBeginAllowThreads();
37839 (arg1)->DrawPoint((wxPoint const &)*arg2);
37840 wxPyEndAllowThreads(__tstate);
37841 if (PyErr_Occurred()) SWIG_fail;
37842 }
37843 resultobj = SWIG_Py_Void();
37844 return resultobj;
37845 fail:
37846 return NULL;
37847 }
37848
37849
37850 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37851 PyObject *resultobj = 0;
37852 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37853 int arg2 ;
37854 int arg3 ;
37855 int arg4 ;
37856 int arg5 ;
37857 void *argp1 = 0 ;
37858 int res1 = 0 ;
37859 int val2 ;
37860 int ecode2 = 0 ;
37861 int val3 ;
37862 int ecode3 = 0 ;
37863 int val4 ;
37864 int ecode4 = 0 ;
37865 int val5 ;
37866 int ecode5 = 0 ;
37867 PyObject * obj0 = 0 ;
37868 PyObject * obj1 = 0 ;
37869 PyObject * obj2 = 0 ;
37870 PyObject * obj3 = 0 ;
37871 PyObject * obj4 = 0 ;
37872 char * kwnames[] = {
37873 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37874 };
37875
37876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37878 if (!SWIG_IsOK(res1)) {
37879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37880 }
37881 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37882 ecode2 = SWIG_AsVal_int(obj1, &val2);
37883 if (!SWIG_IsOK(ecode2)) {
37884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
37885 }
37886 arg2 = static_cast< int >(val2);
37887 ecode3 = SWIG_AsVal_int(obj2, &val3);
37888 if (!SWIG_IsOK(ecode3)) {
37889 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
37890 }
37891 arg3 = static_cast< int >(val3);
37892 ecode4 = SWIG_AsVal_int(obj3, &val4);
37893 if (!SWIG_IsOK(ecode4)) {
37894 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
37895 }
37896 arg4 = static_cast< int >(val4);
37897 ecode5 = SWIG_AsVal_int(obj4, &val5);
37898 if (!SWIG_IsOK(ecode5)) {
37899 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
37900 }
37901 arg5 = static_cast< int >(val5);
37902 {
37903 PyThreadState* __tstate = wxPyBeginAllowThreads();
37904 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
37905 wxPyEndAllowThreads(__tstate);
37906 if (PyErr_Occurred()) SWIG_fail;
37907 }
37908 resultobj = SWIG_Py_Void();
37909 return resultobj;
37910 fail:
37911 return NULL;
37912 }
37913
37914
37915 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37916 PyObject *resultobj = 0;
37917 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37918 wxRect *arg2 = 0 ;
37919 void *argp1 = 0 ;
37920 int res1 = 0 ;
37921 wxRect temp2 ;
37922 PyObject * obj0 = 0 ;
37923 PyObject * obj1 = 0 ;
37924 char * kwnames[] = {
37925 (char *) "self",(char *) "rect", NULL
37926 };
37927
37928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
37929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37930 if (!SWIG_IsOK(res1)) {
37931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37932 }
37933 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37934 {
37935 arg2 = &temp2;
37936 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37937 }
37938 {
37939 PyThreadState* __tstate = wxPyBeginAllowThreads();
37940 (arg1)->DrawRectangle((wxRect const &)*arg2);
37941 wxPyEndAllowThreads(__tstate);
37942 if (PyErr_Occurred()) SWIG_fail;
37943 }
37944 resultobj = SWIG_Py_Void();
37945 return resultobj;
37946 fail:
37947 return NULL;
37948 }
37949
37950
37951 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37952 PyObject *resultobj = 0;
37953 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37954 wxPoint *arg2 = 0 ;
37955 wxSize *arg3 = 0 ;
37956 void *argp1 = 0 ;
37957 int res1 = 0 ;
37958 wxPoint temp2 ;
37959 wxSize temp3 ;
37960 PyObject * obj0 = 0 ;
37961 PyObject * obj1 = 0 ;
37962 PyObject * obj2 = 0 ;
37963 char * kwnames[] = {
37964 (char *) "self",(char *) "pt",(char *) "sz", NULL
37965 };
37966
37967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37969 if (!SWIG_IsOK(res1)) {
37970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37971 }
37972 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37973 {
37974 arg2 = &temp2;
37975 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37976 }
37977 {
37978 arg3 = &temp3;
37979 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37980 }
37981 {
37982 PyThreadState* __tstate = wxPyBeginAllowThreads();
37983 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
37984 wxPyEndAllowThreads(__tstate);
37985 if (PyErr_Occurred()) SWIG_fail;
37986 }
37987 resultobj = SWIG_Py_Void();
37988 return resultobj;
37989 fail:
37990 return NULL;
37991 }
37992
37993
37994 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37995 PyObject *resultobj = 0;
37996 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37997 int arg2 ;
37998 int arg3 ;
37999 int arg4 ;
38000 int arg5 ;
38001 double arg6 ;
38002 void *argp1 = 0 ;
38003 int res1 = 0 ;
38004 int val2 ;
38005 int ecode2 = 0 ;
38006 int val3 ;
38007 int ecode3 = 0 ;
38008 int val4 ;
38009 int ecode4 = 0 ;
38010 int val5 ;
38011 int ecode5 = 0 ;
38012 double val6 ;
38013 int ecode6 = 0 ;
38014 PyObject * obj0 = 0 ;
38015 PyObject * obj1 = 0 ;
38016 PyObject * obj2 = 0 ;
38017 PyObject * obj3 = 0 ;
38018 PyObject * obj4 = 0 ;
38019 PyObject * obj5 = 0 ;
38020 char * kwnames[] = {
38021 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
38022 };
38023
38024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38026 if (!SWIG_IsOK(res1)) {
38027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38028 }
38029 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38030 ecode2 = SWIG_AsVal_int(obj1, &val2);
38031 if (!SWIG_IsOK(ecode2)) {
38032 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
38033 }
38034 arg2 = static_cast< int >(val2);
38035 ecode3 = SWIG_AsVal_int(obj2, &val3);
38036 if (!SWIG_IsOK(ecode3)) {
38037 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
38038 }
38039 arg3 = static_cast< int >(val3);
38040 ecode4 = SWIG_AsVal_int(obj3, &val4);
38041 if (!SWIG_IsOK(ecode4)) {
38042 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
38043 }
38044 arg4 = static_cast< int >(val4);
38045 ecode5 = SWIG_AsVal_int(obj4, &val5);
38046 if (!SWIG_IsOK(ecode5)) {
38047 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
38048 }
38049 arg5 = static_cast< int >(val5);
38050 ecode6 = SWIG_AsVal_double(obj5, &val6);
38051 if (!SWIG_IsOK(ecode6)) {
38052 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
38053 }
38054 arg6 = static_cast< double >(val6);
38055 {
38056 PyThreadState* __tstate = wxPyBeginAllowThreads();
38057 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
38058 wxPyEndAllowThreads(__tstate);
38059 if (PyErr_Occurred()) SWIG_fail;
38060 }
38061 resultobj = SWIG_Py_Void();
38062 return resultobj;
38063 fail:
38064 return NULL;
38065 }
38066
38067
38068 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38069 PyObject *resultobj = 0;
38070 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38071 wxRect *arg2 = 0 ;
38072 double arg3 ;
38073 void *argp1 = 0 ;
38074 int res1 = 0 ;
38075 wxRect temp2 ;
38076 double val3 ;
38077 int ecode3 = 0 ;
38078 PyObject * obj0 = 0 ;
38079 PyObject * obj1 = 0 ;
38080 PyObject * obj2 = 0 ;
38081 char * kwnames[] = {
38082 (char *) "self",(char *) "r",(char *) "radius", NULL
38083 };
38084
38085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38087 if (!SWIG_IsOK(res1)) {
38088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38089 }
38090 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38091 {
38092 arg2 = &temp2;
38093 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
38094 }
38095 ecode3 = SWIG_AsVal_double(obj2, &val3);
38096 if (!SWIG_IsOK(ecode3)) {
38097 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
38098 }
38099 arg3 = static_cast< double >(val3);
38100 {
38101 PyThreadState* __tstate = wxPyBeginAllowThreads();
38102 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
38103 wxPyEndAllowThreads(__tstate);
38104 if (PyErr_Occurred()) SWIG_fail;
38105 }
38106 resultobj = SWIG_Py_Void();
38107 return resultobj;
38108 fail:
38109 return NULL;
38110 }
38111
38112
38113 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38114 PyObject *resultobj = 0;
38115 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38116 wxPoint *arg2 = 0 ;
38117 wxSize *arg3 = 0 ;
38118 double arg4 ;
38119 void *argp1 = 0 ;
38120 int res1 = 0 ;
38121 wxPoint temp2 ;
38122 wxSize temp3 ;
38123 double val4 ;
38124 int ecode4 = 0 ;
38125 PyObject * obj0 = 0 ;
38126 PyObject * obj1 = 0 ;
38127 PyObject * obj2 = 0 ;
38128 PyObject * obj3 = 0 ;
38129 char * kwnames[] = {
38130 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
38131 };
38132
38133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38135 if (!SWIG_IsOK(res1)) {
38136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38137 }
38138 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38139 {
38140 arg2 = &temp2;
38141 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38142 }
38143 {
38144 arg3 = &temp3;
38145 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
38146 }
38147 ecode4 = SWIG_AsVal_double(obj3, &val4);
38148 if (!SWIG_IsOK(ecode4)) {
38149 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
38150 }
38151 arg4 = static_cast< double >(val4);
38152 {
38153 PyThreadState* __tstate = wxPyBeginAllowThreads();
38154 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
38155 wxPyEndAllowThreads(__tstate);
38156 if (PyErr_Occurred()) SWIG_fail;
38157 }
38158 resultobj = SWIG_Py_Void();
38159 return resultobj;
38160 fail:
38161 return NULL;
38162 }
38163
38164
38165 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38166 PyObject *resultobj = 0;
38167 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38168 int arg2 ;
38169 int arg3 ;
38170 int arg4 ;
38171 void *argp1 = 0 ;
38172 int res1 = 0 ;
38173 int val2 ;
38174 int ecode2 = 0 ;
38175 int val3 ;
38176 int ecode3 = 0 ;
38177 int val4 ;
38178 int ecode4 = 0 ;
38179 PyObject * obj0 = 0 ;
38180 PyObject * obj1 = 0 ;
38181 PyObject * obj2 = 0 ;
38182 PyObject * obj3 = 0 ;
38183 char * kwnames[] = {
38184 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
38185 };
38186
38187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38189 if (!SWIG_IsOK(res1)) {
38190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38191 }
38192 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38193 ecode2 = SWIG_AsVal_int(obj1, &val2);
38194 if (!SWIG_IsOK(ecode2)) {
38195 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
38196 }
38197 arg2 = static_cast< int >(val2);
38198 ecode3 = SWIG_AsVal_int(obj2, &val3);
38199 if (!SWIG_IsOK(ecode3)) {
38200 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
38201 }
38202 arg3 = static_cast< int >(val3);
38203 ecode4 = SWIG_AsVal_int(obj3, &val4);
38204 if (!SWIG_IsOK(ecode4)) {
38205 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
38206 }
38207 arg4 = static_cast< int >(val4);
38208 {
38209 PyThreadState* __tstate = wxPyBeginAllowThreads();
38210 (arg1)->DrawCircle(arg2,arg3,arg4);
38211 wxPyEndAllowThreads(__tstate);
38212 if (PyErr_Occurred()) SWIG_fail;
38213 }
38214 resultobj = SWIG_Py_Void();
38215 return resultobj;
38216 fail:
38217 return NULL;
38218 }
38219
38220
38221 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38222 PyObject *resultobj = 0;
38223 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38224 wxPoint *arg2 = 0 ;
38225 int arg3 ;
38226 void *argp1 = 0 ;
38227 int res1 = 0 ;
38228 wxPoint temp2 ;
38229 int val3 ;
38230 int ecode3 = 0 ;
38231 PyObject * obj0 = 0 ;
38232 PyObject * obj1 = 0 ;
38233 PyObject * obj2 = 0 ;
38234 char * kwnames[] = {
38235 (char *) "self",(char *) "pt",(char *) "radius", NULL
38236 };
38237
38238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38240 if (!SWIG_IsOK(res1)) {
38241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38242 }
38243 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38244 {
38245 arg2 = &temp2;
38246 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38247 }
38248 ecode3 = SWIG_AsVal_int(obj2, &val3);
38249 if (!SWIG_IsOK(ecode3)) {
38250 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
38251 }
38252 arg3 = static_cast< int >(val3);
38253 {
38254 PyThreadState* __tstate = wxPyBeginAllowThreads();
38255 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
38256 wxPyEndAllowThreads(__tstate);
38257 if (PyErr_Occurred()) SWIG_fail;
38258 }
38259 resultobj = SWIG_Py_Void();
38260 return resultobj;
38261 fail:
38262 return NULL;
38263 }
38264
38265
38266 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38267 PyObject *resultobj = 0;
38268 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38269 int arg2 ;
38270 int arg3 ;
38271 int arg4 ;
38272 int arg5 ;
38273 void *argp1 = 0 ;
38274 int res1 = 0 ;
38275 int val2 ;
38276 int ecode2 = 0 ;
38277 int val3 ;
38278 int ecode3 = 0 ;
38279 int val4 ;
38280 int ecode4 = 0 ;
38281 int val5 ;
38282 int ecode5 = 0 ;
38283 PyObject * obj0 = 0 ;
38284 PyObject * obj1 = 0 ;
38285 PyObject * obj2 = 0 ;
38286 PyObject * obj3 = 0 ;
38287 PyObject * obj4 = 0 ;
38288 char * kwnames[] = {
38289 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38290 };
38291
38292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38294 if (!SWIG_IsOK(res1)) {
38295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38296 }
38297 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38298 ecode2 = SWIG_AsVal_int(obj1, &val2);
38299 if (!SWIG_IsOK(ecode2)) {
38300 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
38301 }
38302 arg2 = static_cast< int >(val2);
38303 ecode3 = SWIG_AsVal_int(obj2, &val3);
38304 if (!SWIG_IsOK(ecode3)) {
38305 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
38306 }
38307 arg3 = static_cast< int >(val3);
38308 ecode4 = SWIG_AsVal_int(obj3, &val4);
38309 if (!SWIG_IsOK(ecode4)) {
38310 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
38311 }
38312 arg4 = static_cast< int >(val4);
38313 ecode5 = SWIG_AsVal_int(obj4, &val5);
38314 if (!SWIG_IsOK(ecode5)) {
38315 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
38316 }
38317 arg5 = static_cast< int >(val5);
38318 {
38319 PyThreadState* __tstate = wxPyBeginAllowThreads();
38320 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
38321 wxPyEndAllowThreads(__tstate);
38322 if (PyErr_Occurred()) SWIG_fail;
38323 }
38324 resultobj = SWIG_Py_Void();
38325 return resultobj;
38326 fail:
38327 return NULL;
38328 }
38329
38330
38331 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38332 PyObject *resultobj = 0;
38333 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38334 wxRect *arg2 = 0 ;
38335 void *argp1 = 0 ;
38336 int res1 = 0 ;
38337 wxRect temp2 ;
38338 PyObject * obj0 = 0 ;
38339 PyObject * obj1 = 0 ;
38340 char * kwnames[] = {
38341 (char *) "self",(char *) "rect", NULL
38342 };
38343
38344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
38345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38346 if (!SWIG_IsOK(res1)) {
38347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38348 }
38349 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38350 {
38351 arg2 = &temp2;
38352 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
38353 }
38354 {
38355 PyThreadState* __tstate = wxPyBeginAllowThreads();
38356 (arg1)->DrawEllipse((wxRect const &)*arg2);
38357 wxPyEndAllowThreads(__tstate);
38358 if (PyErr_Occurred()) SWIG_fail;
38359 }
38360 resultobj = SWIG_Py_Void();
38361 return resultobj;
38362 fail:
38363 return NULL;
38364 }
38365
38366
38367 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38368 PyObject *resultobj = 0;
38369 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38370 wxPoint *arg2 = 0 ;
38371 wxSize *arg3 = 0 ;
38372 void *argp1 = 0 ;
38373 int res1 = 0 ;
38374 wxPoint temp2 ;
38375 wxSize temp3 ;
38376 PyObject * obj0 = 0 ;
38377 PyObject * obj1 = 0 ;
38378 PyObject * obj2 = 0 ;
38379 char * kwnames[] = {
38380 (char *) "self",(char *) "pt",(char *) "sz", NULL
38381 };
38382
38383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38385 if (!SWIG_IsOK(res1)) {
38386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38387 }
38388 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38389 {
38390 arg2 = &temp2;
38391 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38392 }
38393 {
38394 arg3 = &temp3;
38395 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
38396 }
38397 {
38398 PyThreadState* __tstate = wxPyBeginAllowThreads();
38399 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
38400 wxPyEndAllowThreads(__tstate);
38401 if (PyErr_Occurred()) SWIG_fail;
38402 }
38403 resultobj = SWIG_Py_Void();
38404 return resultobj;
38405 fail:
38406 return NULL;
38407 }
38408
38409
38410 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38411 PyObject *resultobj = 0;
38412 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38413 wxIcon *arg2 = 0 ;
38414 int arg3 ;
38415 int arg4 ;
38416 void *argp1 = 0 ;
38417 int res1 = 0 ;
38418 void *argp2 = 0 ;
38419 int res2 = 0 ;
38420 int val3 ;
38421 int ecode3 = 0 ;
38422 int val4 ;
38423 int ecode4 = 0 ;
38424 PyObject * obj0 = 0 ;
38425 PyObject * obj1 = 0 ;
38426 PyObject * obj2 = 0 ;
38427 PyObject * obj3 = 0 ;
38428 char * kwnames[] = {
38429 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
38430 };
38431
38432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38434 if (!SWIG_IsOK(res1)) {
38435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38436 }
38437 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38438 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
38439 if (!SWIG_IsOK(res2)) {
38440 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
38441 }
38442 if (!argp2) {
38443 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
38444 }
38445 arg2 = reinterpret_cast< wxIcon * >(argp2);
38446 ecode3 = SWIG_AsVal_int(obj2, &val3);
38447 if (!SWIG_IsOK(ecode3)) {
38448 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
38449 }
38450 arg3 = static_cast< int >(val3);
38451 ecode4 = SWIG_AsVal_int(obj3, &val4);
38452 if (!SWIG_IsOK(ecode4)) {
38453 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
38454 }
38455 arg4 = static_cast< int >(val4);
38456 {
38457 PyThreadState* __tstate = wxPyBeginAllowThreads();
38458 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
38459 wxPyEndAllowThreads(__tstate);
38460 if (PyErr_Occurred()) SWIG_fail;
38461 }
38462 resultobj = SWIG_Py_Void();
38463 return resultobj;
38464 fail:
38465 return NULL;
38466 }
38467
38468
38469 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38470 PyObject *resultobj = 0;
38471 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38472 wxIcon *arg2 = 0 ;
38473 wxPoint *arg3 = 0 ;
38474 void *argp1 = 0 ;
38475 int res1 = 0 ;
38476 void *argp2 = 0 ;
38477 int res2 = 0 ;
38478 wxPoint temp3 ;
38479 PyObject * obj0 = 0 ;
38480 PyObject * obj1 = 0 ;
38481 PyObject * obj2 = 0 ;
38482 char * kwnames[] = {
38483 (char *) "self",(char *) "icon",(char *) "pt", NULL
38484 };
38485
38486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38488 if (!SWIG_IsOK(res1)) {
38489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38490 }
38491 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38492 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
38493 if (!SWIG_IsOK(res2)) {
38494 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
38495 }
38496 if (!argp2) {
38497 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
38498 }
38499 arg2 = reinterpret_cast< wxIcon * >(argp2);
38500 {
38501 arg3 = &temp3;
38502 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38503 }
38504 {
38505 PyThreadState* __tstate = wxPyBeginAllowThreads();
38506 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
38507 wxPyEndAllowThreads(__tstate);
38508 if (PyErr_Occurred()) SWIG_fail;
38509 }
38510 resultobj = SWIG_Py_Void();
38511 return resultobj;
38512 fail:
38513 return NULL;
38514 }
38515
38516
38517 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38518 PyObject *resultobj = 0;
38519 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38520 wxBitmap *arg2 = 0 ;
38521 int arg3 ;
38522 int arg4 ;
38523 bool arg5 = (bool) false ;
38524 void *argp1 = 0 ;
38525 int res1 = 0 ;
38526 void *argp2 = 0 ;
38527 int res2 = 0 ;
38528 int val3 ;
38529 int ecode3 = 0 ;
38530 int val4 ;
38531 int ecode4 = 0 ;
38532 bool val5 ;
38533 int ecode5 = 0 ;
38534 PyObject * obj0 = 0 ;
38535 PyObject * obj1 = 0 ;
38536 PyObject * obj2 = 0 ;
38537 PyObject * obj3 = 0 ;
38538 PyObject * obj4 = 0 ;
38539 char * kwnames[] = {
38540 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
38541 };
38542
38543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38545 if (!SWIG_IsOK(res1)) {
38546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38547 }
38548 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38549 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
38550 if (!SWIG_IsOK(res2)) {
38551 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38552 }
38553 if (!argp2) {
38554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38555 }
38556 arg2 = reinterpret_cast< wxBitmap * >(argp2);
38557 ecode3 = SWIG_AsVal_int(obj2, &val3);
38558 if (!SWIG_IsOK(ecode3)) {
38559 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
38560 }
38561 arg3 = static_cast< int >(val3);
38562 ecode4 = SWIG_AsVal_int(obj3, &val4);
38563 if (!SWIG_IsOK(ecode4)) {
38564 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
38565 }
38566 arg4 = static_cast< int >(val4);
38567 if (obj4) {
38568 ecode5 = SWIG_AsVal_bool(obj4, &val5);
38569 if (!SWIG_IsOK(ecode5)) {
38570 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
38571 }
38572 arg5 = static_cast< bool >(val5);
38573 }
38574 {
38575 PyThreadState* __tstate = wxPyBeginAllowThreads();
38576 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
38577 wxPyEndAllowThreads(__tstate);
38578 if (PyErr_Occurred()) SWIG_fail;
38579 }
38580 resultobj = SWIG_Py_Void();
38581 return resultobj;
38582 fail:
38583 return NULL;
38584 }
38585
38586
38587 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38588 PyObject *resultobj = 0;
38589 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38590 wxBitmap *arg2 = 0 ;
38591 wxPoint *arg3 = 0 ;
38592 bool arg4 = (bool) false ;
38593 void *argp1 = 0 ;
38594 int res1 = 0 ;
38595 void *argp2 = 0 ;
38596 int res2 = 0 ;
38597 wxPoint temp3 ;
38598 bool val4 ;
38599 int ecode4 = 0 ;
38600 PyObject * obj0 = 0 ;
38601 PyObject * obj1 = 0 ;
38602 PyObject * obj2 = 0 ;
38603 PyObject * obj3 = 0 ;
38604 char * kwnames[] = {
38605 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
38606 };
38607
38608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38610 if (!SWIG_IsOK(res1)) {
38611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38612 }
38613 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38614 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
38615 if (!SWIG_IsOK(res2)) {
38616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38617 }
38618 if (!argp2) {
38619 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
38620 }
38621 arg2 = reinterpret_cast< wxBitmap * >(argp2);
38622 {
38623 arg3 = &temp3;
38624 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38625 }
38626 if (obj3) {
38627 ecode4 = SWIG_AsVal_bool(obj3, &val4);
38628 if (!SWIG_IsOK(ecode4)) {
38629 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
38630 }
38631 arg4 = static_cast< bool >(val4);
38632 }
38633 {
38634 PyThreadState* __tstate = wxPyBeginAllowThreads();
38635 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
38636 wxPyEndAllowThreads(__tstate);
38637 if (PyErr_Occurred()) SWIG_fail;
38638 }
38639 resultobj = SWIG_Py_Void();
38640 return resultobj;
38641 fail:
38642 return NULL;
38643 }
38644
38645
38646 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38647 PyObject *resultobj = 0;
38648 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38649 wxString *arg2 = 0 ;
38650 int arg3 ;
38651 int arg4 ;
38652 void *argp1 = 0 ;
38653 int res1 = 0 ;
38654 bool temp2 = false ;
38655 int val3 ;
38656 int ecode3 = 0 ;
38657 int val4 ;
38658 int ecode4 = 0 ;
38659 PyObject * obj0 = 0 ;
38660 PyObject * obj1 = 0 ;
38661 PyObject * obj2 = 0 ;
38662 PyObject * obj3 = 0 ;
38663 char * kwnames[] = {
38664 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
38665 };
38666
38667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38669 if (!SWIG_IsOK(res1)) {
38670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38671 }
38672 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38673 {
38674 arg2 = wxString_in_helper(obj1);
38675 if (arg2 == NULL) SWIG_fail;
38676 temp2 = true;
38677 }
38678 ecode3 = SWIG_AsVal_int(obj2, &val3);
38679 if (!SWIG_IsOK(ecode3)) {
38680 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
38681 }
38682 arg3 = static_cast< int >(val3);
38683 ecode4 = SWIG_AsVal_int(obj3, &val4);
38684 if (!SWIG_IsOK(ecode4)) {
38685 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
38686 }
38687 arg4 = static_cast< int >(val4);
38688 {
38689 PyThreadState* __tstate = wxPyBeginAllowThreads();
38690 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
38691 wxPyEndAllowThreads(__tstate);
38692 if (PyErr_Occurred()) SWIG_fail;
38693 }
38694 resultobj = SWIG_Py_Void();
38695 {
38696 if (temp2)
38697 delete arg2;
38698 }
38699 return resultobj;
38700 fail:
38701 {
38702 if (temp2)
38703 delete arg2;
38704 }
38705 return NULL;
38706 }
38707
38708
38709 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38710 PyObject *resultobj = 0;
38711 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38712 wxString *arg2 = 0 ;
38713 wxPoint *arg3 = 0 ;
38714 void *argp1 = 0 ;
38715 int res1 = 0 ;
38716 bool temp2 = false ;
38717 wxPoint temp3 ;
38718 PyObject * obj0 = 0 ;
38719 PyObject * obj1 = 0 ;
38720 PyObject * obj2 = 0 ;
38721 char * kwnames[] = {
38722 (char *) "self",(char *) "text",(char *) "pt", NULL
38723 };
38724
38725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38727 if (!SWIG_IsOK(res1)) {
38728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38729 }
38730 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38731 {
38732 arg2 = wxString_in_helper(obj1);
38733 if (arg2 == NULL) SWIG_fail;
38734 temp2 = true;
38735 }
38736 {
38737 arg3 = &temp3;
38738 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38739 }
38740 {
38741 PyThreadState* __tstate = wxPyBeginAllowThreads();
38742 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
38743 wxPyEndAllowThreads(__tstate);
38744 if (PyErr_Occurred()) SWIG_fail;
38745 }
38746 resultobj = SWIG_Py_Void();
38747 {
38748 if (temp2)
38749 delete arg2;
38750 }
38751 return resultobj;
38752 fail:
38753 {
38754 if (temp2)
38755 delete arg2;
38756 }
38757 return NULL;
38758 }
38759
38760
38761 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38762 PyObject *resultobj = 0;
38763 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38764 wxString *arg2 = 0 ;
38765 int arg3 ;
38766 int arg4 ;
38767 double arg5 ;
38768 void *argp1 = 0 ;
38769 int res1 = 0 ;
38770 bool temp2 = false ;
38771 int val3 ;
38772 int ecode3 = 0 ;
38773 int val4 ;
38774 int ecode4 = 0 ;
38775 double val5 ;
38776 int ecode5 = 0 ;
38777 PyObject * obj0 = 0 ;
38778 PyObject * obj1 = 0 ;
38779 PyObject * obj2 = 0 ;
38780 PyObject * obj3 = 0 ;
38781 PyObject * obj4 = 0 ;
38782 char * kwnames[] = {
38783 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
38784 };
38785
38786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38788 if (!SWIG_IsOK(res1)) {
38789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38790 }
38791 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38792 {
38793 arg2 = wxString_in_helper(obj1);
38794 if (arg2 == NULL) SWIG_fail;
38795 temp2 = true;
38796 }
38797 ecode3 = SWIG_AsVal_int(obj2, &val3);
38798 if (!SWIG_IsOK(ecode3)) {
38799 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
38800 }
38801 arg3 = static_cast< int >(val3);
38802 ecode4 = SWIG_AsVal_int(obj3, &val4);
38803 if (!SWIG_IsOK(ecode4)) {
38804 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
38805 }
38806 arg4 = static_cast< int >(val4);
38807 ecode5 = SWIG_AsVal_double(obj4, &val5);
38808 if (!SWIG_IsOK(ecode5)) {
38809 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
38810 }
38811 arg5 = static_cast< double >(val5);
38812 {
38813 PyThreadState* __tstate = wxPyBeginAllowThreads();
38814 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
38815 wxPyEndAllowThreads(__tstate);
38816 if (PyErr_Occurred()) SWIG_fail;
38817 }
38818 resultobj = SWIG_Py_Void();
38819 {
38820 if (temp2)
38821 delete arg2;
38822 }
38823 return resultobj;
38824 fail:
38825 {
38826 if (temp2)
38827 delete arg2;
38828 }
38829 return NULL;
38830 }
38831
38832
38833 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38834 PyObject *resultobj = 0;
38835 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38836 wxString *arg2 = 0 ;
38837 wxPoint *arg3 = 0 ;
38838 double arg4 ;
38839 void *argp1 = 0 ;
38840 int res1 = 0 ;
38841 bool temp2 = false ;
38842 wxPoint temp3 ;
38843 double val4 ;
38844 int ecode4 = 0 ;
38845 PyObject * obj0 = 0 ;
38846 PyObject * obj1 = 0 ;
38847 PyObject * obj2 = 0 ;
38848 PyObject * obj3 = 0 ;
38849 char * kwnames[] = {
38850 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
38851 };
38852
38853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38857 }
38858 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38859 {
38860 arg2 = wxString_in_helper(obj1);
38861 if (arg2 == NULL) SWIG_fail;
38862 temp2 = true;
38863 }
38864 {
38865 arg3 = &temp3;
38866 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38867 }
38868 ecode4 = SWIG_AsVal_double(obj3, &val4);
38869 if (!SWIG_IsOK(ecode4)) {
38870 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
38871 }
38872 arg4 = static_cast< double >(val4);
38873 {
38874 PyThreadState* __tstate = wxPyBeginAllowThreads();
38875 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
38876 wxPyEndAllowThreads(__tstate);
38877 if (PyErr_Occurred()) SWIG_fail;
38878 }
38879 resultobj = SWIG_Py_Void();
38880 {
38881 if (temp2)
38882 delete arg2;
38883 }
38884 return resultobj;
38885 fail:
38886 {
38887 if (temp2)
38888 delete arg2;
38889 }
38890 return NULL;
38891 }
38892
38893
38894 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38895 PyObject *resultobj = 0;
38896 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38897 int arg2 ;
38898 wxPoint *arg3 = (wxPoint *) 0 ;
38899 int arg4 = (int) 0 ;
38900 int arg5 = (int) 0 ;
38901 void *argp1 = 0 ;
38902 int res1 = 0 ;
38903 int val4 ;
38904 int ecode4 = 0 ;
38905 int val5 ;
38906 int ecode5 = 0 ;
38907 PyObject * obj0 = 0 ;
38908 PyObject * obj1 = 0 ;
38909 PyObject * obj2 = 0 ;
38910 PyObject * obj3 = 0 ;
38911 char * kwnames[] = {
38912 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
38913 };
38914
38915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38917 if (!SWIG_IsOK(res1)) {
38918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38919 }
38920 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38921 {
38922 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38923 if (arg3 == NULL) SWIG_fail;
38924 }
38925 if (obj2) {
38926 ecode4 = SWIG_AsVal_int(obj2, &val4);
38927 if (!SWIG_IsOK(ecode4)) {
38928 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
38929 }
38930 arg4 = static_cast< int >(val4);
38931 }
38932 if (obj3) {
38933 ecode5 = SWIG_AsVal_int(obj3, &val5);
38934 if (!SWIG_IsOK(ecode5)) {
38935 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
38936 }
38937 arg5 = static_cast< int >(val5);
38938 }
38939 {
38940 PyThreadState* __tstate = wxPyBeginAllowThreads();
38941 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
38942 wxPyEndAllowThreads(__tstate);
38943 if (PyErr_Occurred()) SWIG_fail;
38944 }
38945 resultobj = SWIG_Py_Void();
38946 {
38947 if (arg3) delete [] arg3;
38948 }
38949 return resultobj;
38950 fail:
38951 {
38952 if (arg3) delete [] arg3;
38953 }
38954 return NULL;
38955 }
38956
38957
38958 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38959 PyObject *resultobj = 0;
38960 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38961 int arg2 ;
38962 wxPoint *arg3 = (wxPoint *) 0 ;
38963 int arg4 = (int) 0 ;
38964 int arg5 = (int) 0 ;
38965 int arg6 = (int) wxODDEVEN_RULE ;
38966 void *argp1 = 0 ;
38967 int res1 = 0 ;
38968 int val4 ;
38969 int ecode4 = 0 ;
38970 int val5 ;
38971 int ecode5 = 0 ;
38972 int val6 ;
38973 int ecode6 = 0 ;
38974 PyObject * obj0 = 0 ;
38975 PyObject * obj1 = 0 ;
38976 PyObject * obj2 = 0 ;
38977 PyObject * obj3 = 0 ;
38978 PyObject * obj4 = 0 ;
38979 char * kwnames[] = {
38980 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
38981 };
38982
38983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38985 if (!SWIG_IsOK(res1)) {
38986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38987 }
38988 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38989 {
38990 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38991 if (arg3 == NULL) SWIG_fail;
38992 }
38993 if (obj2) {
38994 ecode4 = SWIG_AsVal_int(obj2, &val4);
38995 if (!SWIG_IsOK(ecode4)) {
38996 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
38997 }
38998 arg4 = static_cast< int >(val4);
38999 }
39000 if (obj3) {
39001 ecode5 = SWIG_AsVal_int(obj3, &val5);
39002 if (!SWIG_IsOK(ecode5)) {
39003 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
39004 }
39005 arg5 = static_cast< int >(val5);
39006 }
39007 if (obj4) {
39008 ecode6 = SWIG_AsVal_int(obj4, &val6);
39009 if (!SWIG_IsOK(ecode6)) {
39010 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
39011 }
39012 arg6 = static_cast< int >(val6);
39013 }
39014 {
39015 PyThreadState* __tstate = wxPyBeginAllowThreads();
39016 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
39017 wxPyEndAllowThreads(__tstate);
39018 if (PyErr_Occurred()) SWIG_fail;
39019 }
39020 resultobj = SWIG_Py_Void();
39021 {
39022 if (arg3) delete [] arg3;
39023 }
39024 return resultobj;
39025 fail:
39026 {
39027 if (arg3) delete [] arg3;
39028 }
39029 return NULL;
39030 }
39031
39032
39033 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39034 PyObject *resultobj = 0;
39035 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39036 wxString *arg2 = 0 ;
39037 wxRect *arg3 = 0 ;
39038 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
39039 int arg5 = (int) -1 ;
39040 void *argp1 = 0 ;
39041 int res1 = 0 ;
39042 bool temp2 = false ;
39043 wxRect temp3 ;
39044 int val4 ;
39045 int ecode4 = 0 ;
39046 int val5 ;
39047 int ecode5 = 0 ;
39048 PyObject * obj0 = 0 ;
39049 PyObject * obj1 = 0 ;
39050 PyObject * obj2 = 0 ;
39051 PyObject * obj3 = 0 ;
39052 PyObject * obj4 = 0 ;
39053 char * kwnames[] = {
39054 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
39055 };
39056
39057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39059 if (!SWIG_IsOK(res1)) {
39060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39061 }
39062 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39063 {
39064 arg2 = wxString_in_helper(obj1);
39065 if (arg2 == NULL) SWIG_fail;
39066 temp2 = true;
39067 }
39068 {
39069 arg3 = &temp3;
39070 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
39071 }
39072 if (obj3) {
39073 ecode4 = SWIG_AsVal_int(obj3, &val4);
39074 if (!SWIG_IsOK(ecode4)) {
39075 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
39076 }
39077 arg4 = static_cast< int >(val4);
39078 }
39079 if (obj4) {
39080 ecode5 = SWIG_AsVal_int(obj4, &val5);
39081 if (!SWIG_IsOK(ecode5)) {
39082 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
39083 }
39084 arg5 = static_cast< int >(val5);
39085 }
39086 {
39087 PyThreadState* __tstate = wxPyBeginAllowThreads();
39088 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
39089 wxPyEndAllowThreads(__tstate);
39090 if (PyErr_Occurred()) SWIG_fail;
39091 }
39092 resultobj = SWIG_Py_Void();
39093 {
39094 if (temp2)
39095 delete arg2;
39096 }
39097 return resultobj;
39098 fail:
39099 {
39100 if (temp2)
39101 delete arg2;
39102 }
39103 return NULL;
39104 }
39105
39106
39107 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39108 PyObject *resultobj = 0;
39109 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39110 wxString *arg2 = 0 ;
39111 wxBitmap *arg3 = 0 ;
39112 wxRect *arg4 = 0 ;
39113 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
39114 int arg6 = (int) -1 ;
39115 void *argp1 = 0 ;
39116 int res1 = 0 ;
39117 bool temp2 = false ;
39118 void *argp3 = 0 ;
39119 int res3 = 0 ;
39120 wxRect temp4 ;
39121 int val5 ;
39122 int ecode5 = 0 ;
39123 int val6 ;
39124 int ecode6 = 0 ;
39125 PyObject * obj0 = 0 ;
39126 PyObject * obj1 = 0 ;
39127 PyObject * obj2 = 0 ;
39128 PyObject * obj3 = 0 ;
39129 PyObject * obj4 = 0 ;
39130 PyObject * obj5 = 0 ;
39131 char * kwnames[] = {
39132 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
39133 };
39134
39135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
39136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39137 if (!SWIG_IsOK(res1)) {
39138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39139 }
39140 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39141 {
39142 arg2 = wxString_in_helper(obj1);
39143 if (arg2 == NULL) SWIG_fail;
39144 temp2 = true;
39145 }
39146 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
39147 if (!SWIG_IsOK(res3)) {
39148 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
39149 }
39150 if (!argp3) {
39151 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
39152 }
39153 arg3 = reinterpret_cast< wxBitmap * >(argp3);
39154 {
39155 arg4 = &temp4;
39156 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
39157 }
39158 if (obj4) {
39159 ecode5 = SWIG_AsVal_int(obj4, &val5);
39160 if (!SWIG_IsOK(ecode5)) {
39161 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
39162 }
39163 arg5 = static_cast< int >(val5);
39164 }
39165 if (obj5) {
39166 ecode6 = SWIG_AsVal_int(obj5, &val6);
39167 if (!SWIG_IsOK(ecode6)) {
39168 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
39169 }
39170 arg6 = static_cast< int >(val6);
39171 }
39172 {
39173 PyThreadState* __tstate = wxPyBeginAllowThreads();
39174 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
39175 wxPyEndAllowThreads(__tstate);
39176 if (PyErr_Occurred()) SWIG_fail;
39177 }
39178 resultobj = SWIG_Py_Void();
39179 {
39180 if (temp2)
39181 delete arg2;
39182 }
39183 return resultobj;
39184 fail:
39185 {
39186 if (temp2)
39187 delete arg2;
39188 }
39189 return NULL;
39190 }
39191
39192
39193 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39194 PyObject *resultobj = 0;
39195 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39196 int arg2 ;
39197 wxPoint *arg3 = (wxPoint *) 0 ;
39198 void *argp1 = 0 ;
39199 int res1 = 0 ;
39200 PyObject * obj0 = 0 ;
39201 PyObject * obj1 = 0 ;
39202 char * kwnames[] = {
39203 (char *) "self",(char *) "points", NULL
39204 };
39205
39206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
39207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39208 if (!SWIG_IsOK(res1)) {
39209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39210 }
39211 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39212 {
39213 arg3 = wxPoint_LIST_helper(obj1, &arg2);
39214 if (arg3 == NULL) SWIG_fail;
39215 }
39216 {
39217 PyThreadState* __tstate = wxPyBeginAllowThreads();
39218 (arg1)->DrawSpline(arg2,arg3);
39219 wxPyEndAllowThreads(__tstate);
39220 if (PyErr_Occurred()) SWIG_fail;
39221 }
39222 resultobj = SWIG_Py_Void();
39223 {
39224 if (arg3) delete [] arg3;
39225 }
39226 return resultobj;
39227 fail:
39228 {
39229 if (arg3) delete [] arg3;
39230 }
39231 return NULL;
39232 }
39233
39234
39235 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39236 PyObject *resultobj = 0;
39237 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39238 void *argp1 = 0 ;
39239 int res1 = 0 ;
39240 PyObject *swig_obj[1] ;
39241
39242 if (!args) SWIG_fail;
39243 swig_obj[0] = args;
39244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39245 if (!SWIG_IsOK(res1)) {
39246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39247 }
39248 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39249 {
39250 PyThreadState* __tstate = wxPyBeginAllowThreads();
39251 (arg1)->Clear();
39252 wxPyEndAllowThreads(__tstate);
39253 if (PyErr_Occurred()) SWIG_fail;
39254 }
39255 resultobj = SWIG_Py_Void();
39256 return resultobj;
39257 fail:
39258 return NULL;
39259 }
39260
39261
39262 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39263 PyObject *resultobj = 0;
39264 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39265 wxFont *arg2 = 0 ;
39266 void *argp1 = 0 ;
39267 int res1 = 0 ;
39268 void *argp2 = 0 ;
39269 int res2 = 0 ;
39270 PyObject * obj0 = 0 ;
39271 PyObject * obj1 = 0 ;
39272 char * kwnames[] = {
39273 (char *) "self",(char *) "font", NULL
39274 };
39275
39276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
39277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39278 if (!SWIG_IsOK(res1)) {
39279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39280 }
39281 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39282 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
39283 if (!SWIG_IsOK(res2)) {
39284 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
39285 }
39286 if (!argp2) {
39287 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
39288 }
39289 arg2 = reinterpret_cast< wxFont * >(argp2);
39290 {
39291 PyThreadState* __tstate = wxPyBeginAllowThreads();
39292 (arg1)->SetFont((wxFont const &)*arg2);
39293 wxPyEndAllowThreads(__tstate);
39294 if (PyErr_Occurred()) SWIG_fail;
39295 }
39296 resultobj = SWIG_Py_Void();
39297 return resultobj;
39298 fail:
39299 return NULL;
39300 }
39301
39302
39303 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39304 PyObject *resultobj = 0;
39305 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39306 wxPen *arg2 = 0 ;
39307 void *argp1 = 0 ;
39308 int res1 = 0 ;
39309 void *argp2 = 0 ;
39310 int res2 = 0 ;
39311 PyObject * obj0 = 0 ;
39312 PyObject * obj1 = 0 ;
39313 char * kwnames[] = {
39314 (char *) "self",(char *) "pen", NULL
39315 };
39316
39317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
39318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39319 if (!SWIG_IsOK(res1)) {
39320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39321 }
39322 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39323 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
39324 if (!SWIG_IsOK(res2)) {
39325 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
39326 }
39327 if (!argp2) {
39328 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
39329 }
39330 arg2 = reinterpret_cast< wxPen * >(argp2);
39331 {
39332 PyThreadState* __tstate = wxPyBeginAllowThreads();
39333 (arg1)->SetPen((wxPen const &)*arg2);
39334 wxPyEndAllowThreads(__tstate);
39335 if (PyErr_Occurred()) SWIG_fail;
39336 }
39337 resultobj = SWIG_Py_Void();
39338 return resultobj;
39339 fail:
39340 return NULL;
39341 }
39342
39343
39344 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39345 PyObject *resultobj = 0;
39346 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39347 wxBrush *arg2 = 0 ;
39348 void *argp1 = 0 ;
39349 int res1 = 0 ;
39350 void *argp2 = 0 ;
39351 int res2 = 0 ;
39352 PyObject * obj0 = 0 ;
39353 PyObject * obj1 = 0 ;
39354 char * kwnames[] = {
39355 (char *) "self",(char *) "brush", NULL
39356 };
39357
39358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
39359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39360 if (!SWIG_IsOK(res1)) {
39361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39362 }
39363 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39364 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
39365 if (!SWIG_IsOK(res2)) {
39366 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
39367 }
39368 if (!argp2) {
39369 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
39370 }
39371 arg2 = reinterpret_cast< wxBrush * >(argp2);
39372 {
39373 PyThreadState* __tstate = wxPyBeginAllowThreads();
39374 (arg1)->SetBrush((wxBrush const &)*arg2);
39375 wxPyEndAllowThreads(__tstate);
39376 if (PyErr_Occurred()) SWIG_fail;
39377 }
39378 resultobj = SWIG_Py_Void();
39379 return resultobj;
39380 fail:
39381 return NULL;
39382 }
39383
39384
39385 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39386 PyObject *resultobj = 0;
39387 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39388 wxBrush *arg2 = 0 ;
39389 void *argp1 = 0 ;
39390 int res1 = 0 ;
39391 void *argp2 = 0 ;
39392 int res2 = 0 ;
39393 PyObject * obj0 = 0 ;
39394 PyObject * obj1 = 0 ;
39395 char * kwnames[] = {
39396 (char *) "self",(char *) "brush", NULL
39397 };
39398
39399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
39400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39401 if (!SWIG_IsOK(res1)) {
39402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39403 }
39404 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39405 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
39406 if (!SWIG_IsOK(res2)) {
39407 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
39408 }
39409 if (!argp2) {
39410 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
39411 }
39412 arg2 = reinterpret_cast< wxBrush * >(argp2);
39413 {
39414 PyThreadState* __tstate = wxPyBeginAllowThreads();
39415 (arg1)->SetBackground((wxBrush const &)*arg2);
39416 wxPyEndAllowThreads(__tstate);
39417 if (PyErr_Occurred()) SWIG_fail;
39418 }
39419 resultobj = SWIG_Py_Void();
39420 return resultobj;
39421 fail:
39422 return NULL;
39423 }
39424
39425
39426 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39427 PyObject *resultobj = 0;
39428 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39429 int arg2 ;
39430 void *argp1 = 0 ;
39431 int res1 = 0 ;
39432 int val2 ;
39433 int ecode2 = 0 ;
39434 PyObject * obj0 = 0 ;
39435 PyObject * obj1 = 0 ;
39436 char * kwnames[] = {
39437 (char *) "self",(char *) "mode", NULL
39438 };
39439
39440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
39441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39442 if (!SWIG_IsOK(res1)) {
39443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39444 }
39445 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39446 ecode2 = SWIG_AsVal_int(obj1, &val2);
39447 if (!SWIG_IsOK(ecode2)) {
39448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
39449 }
39450 arg2 = static_cast< int >(val2);
39451 {
39452 PyThreadState* __tstate = wxPyBeginAllowThreads();
39453 (arg1)->SetBackgroundMode(arg2);
39454 wxPyEndAllowThreads(__tstate);
39455 if (PyErr_Occurred()) SWIG_fail;
39456 }
39457 resultobj = SWIG_Py_Void();
39458 return resultobj;
39459 fail:
39460 return NULL;
39461 }
39462
39463
39464 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39465 PyObject *resultobj = 0;
39466 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39467 wxPalette *arg2 = 0 ;
39468 void *argp1 = 0 ;
39469 int res1 = 0 ;
39470 void *argp2 = 0 ;
39471 int res2 = 0 ;
39472 PyObject * obj0 = 0 ;
39473 PyObject * obj1 = 0 ;
39474 char * kwnames[] = {
39475 (char *) "self",(char *) "palette", NULL
39476 };
39477
39478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
39479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39480 if (!SWIG_IsOK(res1)) {
39481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39482 }
39483 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39484 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
39485 if (!SWIG_IsOK(res2)) {
39486 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
39487 }
39488 if (!argp2) {
39489 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
39490 }
39491 arg2 = reinterpret_cast< wxPalette * >(argp2);
39492 {
39493 PyThreadState* __tstate = wxPyBeginAllowThreads();
39494 (arg1)->SetPalette((wxPalette const &)*arg2);
39495 wxPyEndAllowThreads(__tstate);
39496 if (PyErr_Occurred()) SWIG_fail;
39497 }
39498 resultobj = SWIG_Py_Void();
39499 return resultobj;
39500 fail:
39501 return NULL;
39502 }
39503
39504
39505 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39506 PyObject *resultobj = 0;
39507 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39508 wxColour *arg2 = 0 ;
39509 void *argp1 = 0 ;
39510 int res1 = 0 ;
39511 wxColour temp2 ;
39512 PyObject * obj0 = 0 ;
39513 PyObject * obj1 = 0 ;
39514 char * kwnames[] = {
39515 (char *) "self",(char *) "colour", NULL
39516 };
39517
39518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
39519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39520 if (!SWIG_IsOK(res1)) {
39521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39522 }
39523 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39524 {
39525 arg2 = &temp2;
39526 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
39527 }
39528 {
39529 PyThreadState* __tstate = wxPyBeginAllowThreads();
39530 (arg1)->SetTextForeground((wxColour const &)*arg2);
39531 wxPyEndAllowThreads(__tstate);
39532 if (PyErr_Occurred()) SWIG_fail;
39533 }
39534 resultobj = SWIG_Py_Void();
39535 return resultobj;
39536 fail:
39537 return NULL;
39538 }
39539
39540
39541 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39542 PyObject *resultobj = 0;
39543 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39544 wxColour *arg2 = 0 ;
39545 void *argp1 = 0 ;
39546 int res1 = 0 ;
39547 wxColour temp2 ;
39548 PyObject * obj0 = 0 ;
39549 PyObject * obj1 = 0 ;
39550 char * kwnames[] = {
39551 (char *) "self",(char *) "colour", NULL
39552 };
39553
39554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
39555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39556 if (!SWIG_IsOK(res1)) {
39557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39558 }
39559 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39560 {
39561 arg2 = &temp2;
39562 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
39563 }
39564 {
39565 PyThreadState* __tstate = wxPyBeginAllowThreads();
39566 (arg1)->SetTextBackground((wxColour const &)*arg2);
39567 wxPyEndAllowThreads(__tstate);
39568 if (PyErr_Occurred()) SWIG_fail;
39569 }
39570 resultobj = SWIG_Py_Void();
39571 return resultobj;
39572 fail:
39573 return NULL;
39574 }
39575
39576
39577 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39578 PyObject *resultobj = 0;
39579 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
39580 int arg2 ;
39581 void *argp1 = 0 ;
39582 int res1 = 0 ;
39583 int val2 ;
39584 int ecode2 = 0 ;
39585 PyObject * obj0 = 0 ;
39586 PyObject * obj1 = 0 ;
39587 char * kwnames[] = {
39588 (char *) "self",(char *) "function", NULL
39589 };
39590
39591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
39592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
39593 if (!SWIG_IsOK(res1)) {
39594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
39595 }
39596 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
39597 ecode2 = SWIG_AsVal_int(obj1, &val2);
39598 if (!SWIG_IsOK(ecode2)) {
39599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
39600 }
39601 arg2 = static_cast< int >(val2);
39602 {
39603 PyThreadState* __tstate = wxPyBeginAllowThreads();
39604 (arg1)->SetLogicalFunction(arg2);
39605 wxPyEndAllowThreads(__tstate);
39606 if (PyErr_Occurred()) SWIG_fail;
39607 }
39608 resultobj = SWIG_Py_Void();
39609 return resultobj;
39610 fail:
39611 return NULL;
39612 }
39613
39614
39615 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39616 PyObject *obj;
39617 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39618 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
39619 return SWIG_Py_Void();
39620 }
39621
39622 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39623 return SWIG_Python_InitShadowInstance(args);
39624 }
39625
39626 static PyMethodDef SwigMethods[] = {
39627 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
39628 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
39629 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
39630 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
39631 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
39632 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
39633 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
39634 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39635 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
39636 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
39637 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
39638 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
39639 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
39640 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
39641 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39642 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39643 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
39644 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
39645 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
39646 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39647 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39648 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
39649 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
39650 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
39651 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
39652 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
39653 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
39654 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39655 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
39656 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
39657 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
39658 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
39659 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
39660 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
39661 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
39662 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
39663 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
39664 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
39665 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
39666 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
39667 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
39668 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
39669 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39670 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
39671 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39672 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39673 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
39674 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
39675 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
39676 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
39677 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
39678 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
39679 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39680 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39681 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
39682 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
39683 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
39684 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39685 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
39686 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39687 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39688 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
39689 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
39690 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
39691 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
39692 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
39693 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
39694 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
39695 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
39696 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39697 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
39698 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39699 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39700 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
39701 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
39702 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
39703 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
39704 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
39705 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
39706 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
39707 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
39708 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
39709 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
39710 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
39711 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
39712 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
39713 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
39714 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39715 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
39716 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
39717 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
39718 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39719 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39720 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39721 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39722 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39723 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39724 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39725 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
39726 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
39727 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39728 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39729 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
39730 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
39731 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
39732 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
39733 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
39734 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
39735 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
39736 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
39737 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
39738 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
39739 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
39740 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
39741 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
39742 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
39743 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
39744 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
39745 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
39746 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
39747 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
39748 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
39749 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
39750 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
39751 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
39752 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39753 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
39754 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
39755 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39756 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39757 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
39758 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
39759 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
39760 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
39761 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
39762 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
39763 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
39764 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
39765 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
39766 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
39767 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
39768 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
39769 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
39770 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
39771 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
39772 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39773 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
39774 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
39775 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
39776 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39777 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
39778 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
39779 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
39780 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
39781 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
39782 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
39783 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
39784 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
39785 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
39786 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
39787 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39788 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39789 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
39790 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
39791 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
39792 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
39793 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
39794 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
39795 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
39796 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
39797 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39798 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39799 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39800 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39801 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39802 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
39803 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
39804 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
39805 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
39806 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
39807 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
39808 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
39809 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
39810 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
39811 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
39812 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
39813 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
39814 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39815 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39816 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
39817 { (char *)"IconBundle_IsOk", (PyCFunction)_wrap_IconBundle_IsOk, METH_O, NULL},
39818 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39819 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
39820 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39821 { (char *)"IconBundle_GetIconOfExactSize", (PyCFunction) _wrap_IconBundle_GetIconOfExactSize, METH_VARARGS | METH_KEYWORDS, NULL},
39822 { (char *)"IconBundle_GetIconCount", (PyCFunction)_wrap_IconBundle_GetIconCount, METH_O, NULL},
39823 { (char *)"IconBundle_GetIconByIndex", (PyCFunction) _wrap_IconBundle_GetIconByIndex, METH_VARARGS | METH_KEYWORDS, NULL},
39824 { (char *)"IconBundle_IsEmpty", (PyCFunction)_wrap_IconBundle_IsEmpty, METH_O, NULL},
39825 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
39826 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
39827 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
39828 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
39829 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39830 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
39831 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
39832 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
39833 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
39834 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
39835 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
39836 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
39837 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
39838 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
39839 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
39840 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39841 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
39842 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
39843 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
39844 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39845 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39846 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
39847 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
39848 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
39849 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
39850 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
39851 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39852 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
39853 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
39854 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
39855 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
39856 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
39857 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39858 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
39859 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39860 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
39861 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
39862 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39863 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
39864 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
39865 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39866 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
39867 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
39868 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39869 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
39870 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39871 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
39872 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
39873 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
39874 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
39875 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
39876 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
39877 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
39878 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
39879 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
39880 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
39881 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
39882 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
39883 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
39884 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
39885 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
39886 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
39887 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
39888 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
39889 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
39890 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
39891 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
39892 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
39893 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
39894 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
39895 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
39896 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
39897 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
39898 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
39899 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
39900 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
39901 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39902 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39903 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39904 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39905 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39906 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39907 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39908 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39909 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39910 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
39911 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
39912 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
39913 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
39914 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
39915 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
39916 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
39917 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
39918 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
39919 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
39920 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
39921 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
39922 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
39923 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
39924 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
39925 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
39926 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39927 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39928 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
39929 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
39930 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
39931 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39932 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39933 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
39934 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39935 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
39936 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
39937 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
39938 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
39939 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
39940 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39941 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
39942 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
39943 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
39944 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
39945 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
39946 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
39947 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
39948 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39949 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
39950 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
39951 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39952 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39953 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
39954 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
39955 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
39956 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
39957 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
39958 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
39959 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
39960 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
39961 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
39962 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
39963 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
39964 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
39965 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
39966 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
39967 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
39968 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
39969 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39970 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
39971 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
39972 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39973 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
39974 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
39975 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
39976 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39977 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39978 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
39979 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
39980 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
39981 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
39982 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
39983 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
39984 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
39985 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
39986 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
39987 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
39988 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
39989 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
39990 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
39991 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39992 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
39993 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
39994 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
39995 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
39996 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
39997 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
39998 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
39999 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
40000 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
40001 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
40002 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
40003 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
40004 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
40005 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
40006 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
40007 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
40008 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
40009 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
40010 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
40011 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
40012 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
40013 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
40014 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
40015 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
40016 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
40017 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
40018 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
40019 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
40020 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
40021 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
40022 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
40023 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
40024 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
40025 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
40026 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
40027 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
40028 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
40029 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
40030 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
40031 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
40032 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
40033 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
40034 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
40035 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
40036 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
40037 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
40038 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
40039 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
40040 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
40041 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
40042 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
40043 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
40044 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
40045 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
40046 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
40047 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
40048 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
40049 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
40050 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40051 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
40052 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
40053 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
40054 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40055 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
40056 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
40057 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
40058 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40059 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
40060 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40061 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
40062 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
40063 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
40064 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40065 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40066 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40067 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40068 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
40069 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40070 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40071 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
40072 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40073 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
40074 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
40075 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
40076 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
40077 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40078 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40079 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40080 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40081 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40082 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
40083 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40084 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
40085 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40086 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
40087 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40088 { (char *)"DC_StretchBlit", (PyCFunction) _wrap_DC_StretchBlit, METH_VARARGS | METH_KEYWORDS, NULL},
40089 { (char *)"DC_StretchBlitPointSize", (PyCFunction) _wrap_DC_StretchBlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40090 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40091 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
40092 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40093 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
40094 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
40095 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
40096 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
40097 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40098 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40099 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
40100 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
40101 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
40102 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
40103 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
40104 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
40105 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
40106 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
40107 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40108 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
40109 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
40110 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
40111 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
40112 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
40113 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
40114 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
40115 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
40116 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
40117 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
40118 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
40119 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
40120 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
40121 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
40122 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
40123 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
40124 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
40125 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
40126 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
40127 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
40128 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
40129 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
40130 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
40131 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
40132 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
40133 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
40134 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
40135 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
40136 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
40137 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
40138 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
40139 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
40140 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
40141 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
40142 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
40143 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
40144 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
40145 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
40146 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
40147 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
40148 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
40149 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
40150 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
40151 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
40152 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
40153 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
40154 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
40155 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40156 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
40157 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
40158 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
40159 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40160 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
40161 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
40162 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
40163 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
40164 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
40165 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40166 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
40167 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
40168 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
40169 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
40170 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
40171 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
40172 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
40173 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
40174 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
40175 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
40176 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
40177 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
40178 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
40179 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
40180 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
40181 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
40182 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
40183 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
40184 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
40185 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
40186 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
40187 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
40188 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
40189 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
40190 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
40191 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
40192 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
40193 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
40194 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
40195 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
40196 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
40197 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
40198 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
40199 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
40200 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
40201 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
40202 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
40203 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
40204 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
40205 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
40206 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
40207 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
40208 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
40209 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
40210 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
40211 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
40212 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
40213 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
40214 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
40215 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
40216 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
40217 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
40218 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
40219 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
40220 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
40221 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
40222 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
40223 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
40224 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
40225 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
40226 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
40227 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
40228 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
40229 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
40230 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
40231 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
40232 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
40233 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
40234 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
40235 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
40236 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
40237 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
40238 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
40239 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
40240 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
40241 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
40242 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
40243 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
40244 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
40245 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
40246 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
40247 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
40248 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
40249 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
40250 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
40251 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
40252 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
40253 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
40254 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
40255 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
40256 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
40257 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
40258 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
40259 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
40260 { (char *)"SVGFileDC_swigregister", SVGFileDC_swigregister, METH_VARARGS, NULL},
40261 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
40262 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
40263 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
40264 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
40265 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
40266 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
40267 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
40268 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
40269 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
40270 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
40271 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
40272 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
40273 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
40274 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
40275 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
40276 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
40277 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
40278 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
40279 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
40280 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
40281 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
40282 { (char *)"GraphicsMatrix_Get", (PyCFunction)_wrap_GraphicsMatrix_Get, METH_O, NULL},
40283 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
40284 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
40285 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
40286 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
40287 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
40288 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
40289 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40290 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
40291 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
40292 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
40293 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
40294 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
40295 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
40296 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
40297 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
40298 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
40299 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
40300 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
40301 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40302 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40303 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
40304 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40305 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
40306 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40307 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
40308 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
40309 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
40310 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
40311 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
40312 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
40313 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
40314 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
40315 { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL},
40316 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
40317 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
40318 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
40319 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
40320 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40321 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40322 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40323 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
40324 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
40325 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
40326 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
40327 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
40328 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
40329 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
40330 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
40331 { (char *)"GraphicsContext_GetLogicalFunction", (PyCFunction)_wrap_GraphicsContext_GetLogicalFunction, METH_O, NULL},
40332 { (char *)"GraphicsContext_SetLogicalFunction", (PyCFunction) _wrap_GraphicsContext_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
40333 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
40334 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
40335 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
40336 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
40337 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
40338 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
40339 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
40340 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
40341 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
40342 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
40343 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
40344 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
40345 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
40346 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
40347 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
40348 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
40349 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
40350 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40351 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40352 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
40353 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
40354 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
40355 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
40356 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40357 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
40358 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40359 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
40360 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
40361 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
40362 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
40363 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
40364 { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL},
40365 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
40366 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
40367 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
40368 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
40369 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
40370 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40371 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40372 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40373 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
40374 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
40375 { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL},
40376 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
40377 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
40378 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
40379 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
40380 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
40381 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
40382 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
40383 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
40384 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
40385 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
40386 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
40387 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
40388 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
40389 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
40390 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
40391 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
40392 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
40393 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
40394 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
40395 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40396 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40397 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40398 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
40399 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
40400 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
40401 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
40402 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
40403 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
40404 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
40405 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
40406 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
40407 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
40408 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
40409 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
40410 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40411 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
40412 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
40413 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
40414 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
40415 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
40416 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
40417 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
40418 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
40419 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
40420 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
40421 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
40422 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
40423 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40424 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
40425 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
40426 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
40427 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
40428 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
40429 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
40430 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
40431 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
40432 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
40433 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
40434 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
40435 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
40436 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
40437 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
40438 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
40439 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
40440 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
40441 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
40442 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
40443 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
40444 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
40445 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
40446 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
40447 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
40448 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
40449 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
40450 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
40451 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
40452 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40453 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
40454 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
40455 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
40456 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
40457 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
40458 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
40459 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
40460 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
40461 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
40462 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
40463 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
40464 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
40465 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
40466 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
40467 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
40468 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
40469 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
40470 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
40471 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
40472 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
40473 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
40474 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
40475 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
40476 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
40477 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
40478 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
40479 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
40480 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
40481 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
40482 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
40483 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
40484 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
40485 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
40486 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
40487 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
40488 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
40489 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
40490 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
40491 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
40492 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
40493 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
40494 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
40495 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
40496 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
40497 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
40498 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
40499 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
40500 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
40501 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
40502 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
40503 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
40504 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
40505 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
40506 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
40507 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
40508 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
40509 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
40510 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
40511 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
40512 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
40513 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
40514 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
40515 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
40516 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
40517 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
40518 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
40519 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
40520 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
40521 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
40522 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
40523 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
40524 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
40525 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
40526 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40527 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
40528 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
40529 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
40530 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40531 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
40532 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40533 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
40534 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
40535 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
40536 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40537 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40538 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40539 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40540 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
40541 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40542 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
40543 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
40544 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40545 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
40546 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
40547 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
40548 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
40549 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
40550 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
40551 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40552 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
40553 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40554 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
40555 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40556 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
40557 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
40558 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
40559 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
40560 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40561 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
40562 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
40563 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
40564 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
40565 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
40566 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
40567 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
40568 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
40569 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
40570 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
40571 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
40572 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
40573 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
40574 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
40575 { NULL, NULL, 0, NULL }
40576 };
40577
40578
40579 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
40580
40581 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
40582 return (void *)((wxClientDC *) ((wxPaintDC *) x));
40583 }
40584 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
40585 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
40586 }
40587 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
40588 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
40589 }
40590 static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
40591 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
40592 }
40593 static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
40594 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
40595 }
40596 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
40597 return (void *)((wxWindowDC *) ((wxClientDC *) x));
40598 }
40599 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
40600 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
40601 }
40602 static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
40603 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40604 }
40605 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
40606 return (void *)((wxLocale *) ((wxPyLocale *) x));
40607 }
40608 static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
40609 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
40610 }
40611 static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
40612 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
40613 }
40614 static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
40615 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40616 }
40617 static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
40618 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
40619 }
40620 static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
40621 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
40622 }
40623 static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
40624 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
40625 }
40626 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
40627 return (void *)((wxGDIObject *) ((wxIcon *) x));
40628 }
40629 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
40630 return (void *)((wxGDIObject *) ((wxPalette *) x));
40631 }
40632 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
40633 return (void *)((wxGDIObject *) ((wxPen *) x));
40634 }
40635 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
40636 return (void *)((wxGDIObject *) ((wxFont *) x));
40637 }
40638 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
40639 return (void *)((wxGDIObject *) ((wxCursor *) x));
40640 }
40641 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
40642 return (void *)((wxGDIObject *) ((wxBitmap *) x));
40643 }
40644 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
40645 return (void *)((wxGDIObject *) ((wxRegion *) x));
40646 }
40647 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
40648 return (void *)((wxGDIObject *) ((wxBrush *) x));
40649 }
40650 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
40651 return (void *)((wxDC *) ((wxPrinterDC *) x));
40652 }
40653 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
40654 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
40655 }
40656 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
40657 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40658 }
40659 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
40660 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
40661 }
40662 static void *_p_wxSVGFileDCTo_p_wxDC(void *x) {
40663 return (void *)((wxDC *) ((wxSVGFileDC *) x));
40664 }
40665 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
40666 return (void *)((wxDC *) ((wxMetaFileDC *) x));
40667 }
40668 static void *_p_wxClientDCTo_p_wxDC(void *x) {
40669 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
40670 }
40671 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
40672 return (void *)((wxDC *) ((wxPostScriptDC *) x));
40673 }
40674 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
40675 return (void *)((wxDC *) ((wxWindowDC *) x));
40676 }
40677 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
40678 return (void *)((wxDC *) ((wxScreenDC *) x));
40679 }
40680 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
40681 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
40682 }
40683 static void *_p_wxGCDCTo_p_wxDC(void *x) {
40684 return (void *)((wxDC *) ((wxGCDC *) x));
40685 }
40686 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
40687 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
40688 }
40689 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
40690 return (void *)((wxDC *) ((wxMirrorDC *) x));
40691 }
40692 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
40693 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
40694 }
40695 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
40696 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
40697 }
40698 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
40699 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
40700 }
40701 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
40702 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
40703 }
40704 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
40705 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
40706 }
40707 static void *_p_wxPenTo_p_wxObject(void *x) {
40708 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
40709 }
40710 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
40711 return (void *)((wxObject *) ((wxRegionIterator *) x));
40712 }
40713 static void *_p_wxEventBlockerTo_p_wxObject(void *x) {
40714 return (void *)((wxObject *) (wxEvtHandler *) ((wxEventBlocker *) x));
40715 }
40716 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
40717 return (void *)((wxObject *) ((wxSizerItem *) x));
40718 }
40719 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
40720 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
40721 }
40722 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
40723 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
40724 }
40725 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
40726 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
40727 }
40728 static void *_p_wxIconTo_p_wxObject(void *x) {
40729 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
40730 }
40731 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
40732 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
40733 }
40734 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
40735 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
40736 }
40737 static void *_p_wxSizerTo_p_wxObject(void *x) {
40738 return (void *)((wxObject *) ((wxSizer *) x));
40739 }
40740 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
40741 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
40742 }
40743 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
40744 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
40745 }
40746 static void *_p_wxEventTo_p_wxObject(void *x) {
40747 return (void *)((wxObject *) ((wxEvent *) x));
40748 }
40749 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
40750 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
40751 }
40752 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
40753 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
40754 }
40755 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
40756 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
40757 }
40758 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
40759 return (void *)((wxObject *) ((wxPseudoDC *) x));
40760 }
40761 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
40762 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
40763 }
40764 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
40765 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
40766 }
40767 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
40768 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
40769 }
40770 static void *_p_wxDCTo_p_wxObject(void *x) {
40771 return (void *)((wxObject *) ((wxDC *) x));
40772 }
40773 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
40774 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
40775 }
40776 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
40777 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
40778 }
40779 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
40780 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
40781 }
40782 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
40783 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
40784 }
40785 static void *_p_wxControlTo_p_wxObject(void *x) {
40786 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
40787 }
40788 static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
40789 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
40790 }
40791 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
40792 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
40793 }
40794 static void *_p_wxClientDCTo_p_wxObject(void *x) {
40795 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
40796 }
40797 static void *_p_wxFSFileTo_p_wxObject(void *x) {
40798 return (void *)((wxObject *) ((wxFSFile *) x));
40799 }
40800 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
40801 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
40802 }
40803 static void *_p_wxRegionTo_p_wxObject(void *x) {
40804 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
40805 }
40806 static void *_p_wxPySizerTo_p_wxObject(void *x) {
40807 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
40808 }
40809 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
40810 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
40811 }
40812 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
40813 return (void *)((wxObject *) ((wxGDIObject *) x));
40814 }
40815 static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
40816 return (void *)((wxObject *) ((wxGraphicsObject *) x));
40817 }
40818 static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
40819 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
40820 }
40821 static void *_p_wxEffectsTo_p_wxObject(void *x) {
40822 return (void *)((wxObject *) ((wxEffects *) x));
40823 }
40824 static void *_p_wxPyEventTo_p_wxObject(void *x) {
40825 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
40826 }
40827 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
40828 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
40829 }
40830 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
40831 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
40832 }
40833 static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
40834 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
40835 }
40836 static void *_p_wxShowEventTo_p_wxObject(void *x) {
40837 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
40838 }
40839 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
40840 return (void *)((wxObject *) ((wxMenuItem *) x));
40841 }
40842 static void *_p_wxDateEventTo_p_wxObject(void *x) {
40843 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
40844 }
40845 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
40846 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
40847 }
40848 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
40849 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
40850 }
40851 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
40852 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
40853 }
40854 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
40855 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
40856 }
40857 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
40858 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
40859 }
40860 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
40861 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
40862 }
40863 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
40864 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
40865 }
40866 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
40867 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
40868 }
40869 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
40870 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
40871 }
40872 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
40873 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
40874 }
40875 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
40876 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
40877 }
40878 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
40879 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
40880 }
40881 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
40882 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
40883 }
40884 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
40885 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
40886 }
40887 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
40888 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
40889 }
40890 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
40891 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
40892 }
40893 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
40894 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
40895 }
40896 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
40897 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
40898 }
40899 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
40900 return (void *)((wxObject *) ((wxImageHandler *) x));
40901 }
40902 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
40903 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
40904 }
40905 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
40906 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
40907 }
40908 static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
40909 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
40910 }
40911 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
40912 return (void *)((wxObject *) ((wxEvtHandler *) x));
40913 }
40914 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
40915 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
40916 }
40917 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
40918 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
40919 }
40920 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
40921 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
40922 }
40923 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
40924 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
40925 }
40926 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
40927 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
40928 }
40929 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
40930 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
40931 }
40932 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
40933 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
40934 }
40935 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
40936 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
40937 }
40938 static void *_p_wxImageTo_p_wxObject(void *x) {
40939 return (void *)((wxObject *) ((wxImage *) x));
40940 }
40941 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
40942 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
40943 }
40944 static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
40945 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
40946 }
40947 static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
40948 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
40949 }
40950 static void *_p_wxPaletteTo_p_wxObject(void *x) {
40951 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
40952 }
40953 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
40954 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
40955 }
40956 static void *_p_wxImageListTo_p_wxObject(void *x) {
40957 return (void *)((wxObject *) ((wxImageList *) x));
40958 }
40959 static void *_p_wxGCDCTo_p_wxObject(void *x) {
40960 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
40961 }
40962 static void *_p_wxCursorTo_p_wxObject(void *x) {
40963 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
40964 }
40965 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
40966 return (void *)((wxObject *) ((wxEncodingConverter *) x));
40967 }
40968 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
40969 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
40970 }
40971 static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
40972 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
40973 }
40974 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
40975 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
40976 }
40977 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
40978 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
40979 }
40980 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
40981 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
40982 }
40983 static void *_p_wxWindowTo_p_wxObject(void *x) {
40984 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
40985 }
40986 static void *_p_wxMenuTo_p_wxObject(void *x) {
40987 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
40988 }
40989 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
40990 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
40991 }
40992 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
40993 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
40994 }
40995 static void *_p_wxSVGFileDCTo_p_wxObject(void *x) {
40996 return (void *)((wxObject *) (wxDC *) ((wxSVGFileDC *) x));
40997 }
40998 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
40999 return (void *)((wxObject *) ((wxFileSystem *) x));
41000 }
41001 static void *_p_wxBitmapTo_p_wxObject(void *x) {
41002 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
41003 }
41004 static void *_p_wxMaskTo_p_wxObject(void *x) {
41005 return (void *)((wxObject *) ((wxMask *) x));
41006 }
41007 static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
41008 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
41009 }
41010 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
41011 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
41012 }
41013 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
41014 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
41015 }
41016 static void *_p_wxPyAppTo_p_wxObject(void *x) {
41017 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
41018 }
41019 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
41020 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
41021 }
41022 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
41023 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
41024 }
41025 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
41026 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
41027 }
41028 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
41029 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
41030 }
41031 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
41032 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
41033 }
41034 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
41035 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
41036 }
41037 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
41038 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
41039 }
41040 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
41041 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
41042 }
41043 static void *_p_wxFontTo_p_wxObject(void *x) {
41044 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
41045 }
41046 static void *_p_wxBrushTo_p_wxObject(void *x) {
41047 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
41048 }
41049 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
41050 return (void *)((wxObject *) ((wxMetaFile *) x));
41051 }
41052 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
41053 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
41054 }
41055 static void *_p_wxColourTo_p_wxObject(void *x) {
41056 return (void *)((wxObject *) ((wxColour *) x));
41057 }
41058 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
41059 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
41060 }
41061 static void *_p_wxValidatorTo_p_wxObject(void *x) {
41062 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
41063 }
41064 static void *_p_wxControlTo_p_wxWindow(void *x) {
41065 return (void *)((wxWindow *) ((wxControl *) x));
41066 }
41067 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
41068 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
41069 }
41070 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
41071 return (void *)((wxWindow *) ((wxMenuBar *) x));
41072 }
41073 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
41074 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
41075 }
41076 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
41077 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
41078 }
41079 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
41080 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
41081 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
41082 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};
41083 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
41084 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
41085 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
41086 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
41087 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
41088 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
41089 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
41090 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
41091 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
41092 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
41093 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
41094 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
41095 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
41096 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
41097 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
41098 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
41099 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
41100 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
41101 static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
41102 static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
41103 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
41104 static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
41105 static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
41106 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
41107 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
41108 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
41109 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
41110 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
41111 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
41112 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
41113 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
41114 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
41115 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
41116 static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
41117 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
41118 static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
41119 static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
41120 static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
41121 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
41122 static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
41123 static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
41124 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
41125 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
41126 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
41127 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
41128 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
41129 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
41130 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
41131 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
41132 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
41133 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
41134 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
41135 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
41136 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
41137 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
41138 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
41139 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
41140 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
41141 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
41142 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
41143 static swig_type_info _swigt__p_wxEventBlocker = {"_p_wxEventBlocker", 0, 0, 0, 0, 0};
41144 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
41145 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
41146 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
41147 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
41148 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
41149 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
41150 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
41151 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
41152 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
41153 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
41154 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
41155 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
41156 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
41157 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
41158 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
41159 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
41160 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
41161 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
41162 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
41163 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
41164 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
41165 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
41166 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
41167 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
41168 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
41169 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
41170 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
41171 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
41172 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
41173 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
41174 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
41175 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
41176 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
41177 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
41178 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
41179 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
41180 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
41181 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
41182 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
41183 static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
41184 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
41185 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
41186 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
41187 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
41188 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
41189 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
41190 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
41191 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
41192 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
41193 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
41194 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
41195 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
41196 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
41197 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
41198 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
41199 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
41200 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
41201 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
41202 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
41203 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
41204 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
41205 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
41206 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
41207 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
41208 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
41209 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
41210 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
41211 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
41212 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
41213 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
41214 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
41215 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
41216 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
41217 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
41218 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
41219 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
41220 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
41221 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
41222 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
41223 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
41224 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
41225 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
41226 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
41227 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
41228 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
41229 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
41230 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
41231 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
41232 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
41233 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
41234 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
41235 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
41236 static swig_type_info _swigt__p_wxRect2D = {"_p_wxRect2D", "wxRect2D *", 0, 0, (void*)0, 0};
41237 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
41238 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
41239 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
41240 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
41241 static swig_type_info _swigt__p_wxSVGFileDC = {"_p_wxSVGFileDC", "wxSVGFileDC *", 0, 0, (void*)0, 0};
41242 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
41243 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
41244 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
41245 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
41246 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
41247 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
41248 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
41249
41250 static swig_type_info *swig_type_initial[] = {
41251 &_swigt__p_buffer,
41252 &_swigt__p_char,
41253 &_swigt__p_double,
41254 &_swigt__p_form_ops_t,
41255 &_swigt__p_int,
41256 &_swigt__p_unsigned_char,
41257 &_swigt__p_unsigned_int,
41258 &_swigt__p_unsigned_long,
41259 &_swigt__p_void,
41260 &_swigt__p_wxANIHandler,
41261 &_swigt__p_wxAcceleratorTable,
41262 &_swigt__p_wxActivateEvent,
41263 &_swigt__p_wxAlphaPixelData,
41264 &_swigt__p_wxAlphaPixelData_Accessor,
41265 &_swigt__p_wxAutoBufferedPaintDC,
41266 &_swigt__p_wxBMPHandler,
41267 &_swigt__p_wxBitmap,
41268 &_swigt__p_wxBoxSizer,
41269 &_swigt__p_wxBrush,
41270 &_swigt__p_wxBrushList,
41271 &_swigt__p_wxBufferedDC,
41272 &_swigt__p_wxBufferedPaintDC,
41273 &_swigt__p_wxCURHandler,
41274 &_swigt__p_wxChildFocusEvent,
41275 &_swigt__p_wxClientDC,
41276 &_swigt__p_wxClipboardTextEvent,
41277 &_swigt__p_wxCloseEvent,
41278 &_swigt__p_wxColour,
41279 &_swigt__p_wxColourDatabase,
41280 &_swigt__p_wxCommandEvent,
41281 &_swigt__p_wxContextMenuEvent,
41282 &_swigt__p_wxControl,
41283 &_swigt__p_wxControlWithItems,
41284 &_swigt__p_wxCursor,
41285 &_swigt__p_wxDC,
41286 &_swigt__p_wxDCBrushChanger,
41287 &_swigt__p_wxDCClipper,
41288 &_swigt__p_wxDCOverlay,
41289 &_swigt__p_wxDCPenChanger,
41290 &_swigt__p_wxDCTextColourChanger,
41291 &_swigt__p_wxDash,
41292 &_swigt__p_wxDateEvent,
41293 &_swigt__p_wxDisplayChangedEvent,
41294 &_swigt__p_wxDropFilesEvent,
41295 &_swigt__p_wxDuplexMode,
41296 &_swigt__p_wxEffects,
41297 &_swigt__p_wxEncodingConverter,
41298 &_swigt__p_wxEraseEvent,
41299 &_swigt__p_wxEvent,
41300 &_swigt__p_wxEventBlocker,
41301 &_swigt__p_wxEvtHandler,
41302 &_swigt__p_wxFSFile,
41303 &_swigt__p_wxFileSystem,
41304 &_swigt__p_wxFlexGridSizer,
41305 &_swigt__p_wxFocusEvent,
41306 &_swigt__p_wxFont,
41307 &_swigt__p_wxFontList,
41308 &_swigt__p_wxFontMapper,
41309 &_swigt__p_wxGBSizerItem,
41310 &_swigt__p_wxGCDC,
41311 &_swigt__p_wxGDIObjListBase,
41312 &_swigt__p_wxGDIObject,
41313 &_swigt__p_wxGIFHandler,
41314 &_swigt__p_wxGraphicsBrush,
41315 &_swigt__p_wxGraphicsContext,
41316 &_swigt__p_wxGraphicsFont,
41317 &_swigt__p_wxGraphicsMatrix,
41318 &_swigt__p_wxGraphicsObject,
41319 &_swigt__p_wxGraphicsPath,
41320 &_swigt__p_wxGraphicsPen,
41321 &_swigt__p_wxGraphicsRenderer,
41322 &_swigt__p_wxGridBagSizer,
41323 &_swigt__p_wxGridSizer,
41324 &_swigt__p_wxHeaderButtonParams,
41325 &_swigt__p_wxICOHandler,
41326 &_swigt__p_wxIcon,
41327 &_swigt__p_wxIconBundle,
41328 &_swigt__p_wxIconLocation,
41329 &_swigt__p_wxIconizeEvent,
41330 &_swigt__p_wxIdleEvent,
41331 &_swigt__p_wxImage,
41332 &_swigt__p_wxImageHandler,
41333 &_swigt__p_wxImageList,
41334 &_swigt__p_wxIndividualLayoutConstraint,
41335 &_swigt__p_wxInitDialogEvent,
41336 &_swigt__p_wxJPEGHandler,
41337 &_swigt__p_wxKeyEvent,
41338 &_swigt__p_wxLanguageInfo,
41339 &_swigt__p_wxLayoutConstraints,
41340 &_swigt__p_wxLocale,
41341 &_swigt__p_wxMask,
41342 &_swigt__p_wxMaximizeEvent,
41343 &_swigt__p_wxMemoryDC,
41344 &_swigt__p_wxMenu,
41345 &_swigt__p_wxMenuBar,
41346 &_swigt__p_wxMenuEvent,
41347 &_swigt__p_wxMenuItem,
41348 &_swigt__p_wxMetaFile,
41349 &_swigt__p_wxMetaFileDC,
41350 &_swigt__p_wxMirrorDC,
41351 &_swigt__p_wxMouseCaptureChangedEvent,
41352 &_swigt__p_wxMouseCaptureLostEvent,
41353 &_swigt__p_wxMouseEvent,
41354 &_swigt__p_wxMoveEvent,
41355 &_swigt__p_wxNativeEncodingInfo,
41356 &_swigt__p_wxNativeFontInfo,
41357 &_swigt__p_wxNativePixelData,
41358 &_swigt__p_wxNativePixelData_Accessor,
41359 &_swigt__p_wxNavigationKeyEvent,
41360 &_swigt__p_wxNcPaintEvent,
41361 &_swigt__p_wxNotifyEvent,
41362 &_swigt__p_wxObject,
41363 &_swigt__p_wxOverlay,
41364 &_swigt__p_wxPCXHandler,
41365 &_swigt__p_wxPNGHandler,
41366 &_swigt__p_wxPNMHandler,
41367 &_swigt__p_wxPaintDC,
41368 &_swigt__p_wxPaintEvent,
41369 &_swigt__p_wxPalette,
41370 &_swigt__p_wxPaletteChangedEvent,
41371 &_swigt__p_wxPaperSize,
41372 &_swigt__p_wxPen,
41373 &_swigt__p_wxPenList,
41374 &_swigt__p_wxPixelDataBase,
41375 &_swigt__p_wxPoint,
41376 &_swigt__p_wxPoint2D,
41377 &_swigt__p_wxPostScriptDC,
41378 &_swigt__p_wxPrintData,
41379 &_swigt__p_wxPrinterDC,
41380 &_swigt__p_wxPseudoDC,
41381 &_swigt__p_wxPyApp,
41382 &_swigt__p_wxPyCommandEvent,
41383 &_swigt__p_wxPyEvent,
41384 &_swigt__p_wxPyFontEnumerator,
41385 &_swigt__p_wxPyImageHandler,
41386 &_swigt__p_wxPyLocale,
41387 &_swigt__p_wxPySizer,
41388 &_swigt__p_wxPyValidator,
41389 &_swigt__p_wxQueryNewPaletteEvent,
41390 &_swigt__p_wxRect,
41391 &_swigt__p_wxRect2D,
41392 &_swigt__p_wxRegion,
41393 &_swigt__p_wxRegionIterator,
41394 &_swigt__p_wxRendererNative,
41395 &_swigt__p_wxRendererVersion,
41396 &_swigt__p_wxSVGFileDC,
41397 &_swigt__p_wxScreenDC,
41398 &_swigt__p_wxScrollEvent,
41399 &_swigt__p_wxScrollWinEvent,
41400 &_swigt__p_wxSetCursorEvent,
41401 &_swigt__p_wxShowEvent,
41402 &_swigt__p_wxSize,
41403 &_swigt__p_wxSizeEvent,
41404 &_swigt__p_wxSizer,
41405 &_swigt__p_wxSizerItem,
41406 &_swigt__p_wxSplitterRenderParams,
41407 &_swigt__p_wxStaticBoxSizer,
41408 &_swigt__p_wxStdDialogButtonSizer,
41409 &_swigt__p_wxStockGDI,
41410 &_swigt__p_wxString,
41411 &_swigt__p_wxSysColourChangedEvent,
41412 &_swigt__p_wxTGAHandler,
41413 &_swigt__p_wxTIFFHandler,
41414 &_swigt__p_wxUpdateUIEvent,
41415 &_swigt__p_wxValidator,
41416 &_swigt__p_wxWindow,
41417 &_swigt__p_wxWindowCreateEvent,
41418 &_swigt__p_wxWindowDC,
41419 &_swigt__p_wxWindowDestroyEvent,
41420 &_swigt__p_wxXPMHandler,
41421 };
41422
41423 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
41424 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
41425 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
41426 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
41427 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
41428 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
41429 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
41430 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
41431 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
41432 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
41433 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
41434 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
41435 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
41436 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
41437 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
41438 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}};
41439 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
41440 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}};
41441 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
41442 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
41443 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
41444 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxSVGFileDC, _p_wxSVGFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}};
41445 static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
41446 static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
41447 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
41448 static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
41449 static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
41450 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
41451 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
41452 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
41453 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
41454 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
41455 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
41456 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
41457 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
41458 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}};
41459 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}};
41460 static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
41461 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
41462 static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
41463 static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
41464 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}};
41465 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
41466 static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
41467 static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
41468 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
41469 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
41470 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
41471 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
41472 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
41473 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
41474 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
41475 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}};
41476 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
41477 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}};
41478 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
41479 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
41480 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
41481 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
41482 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
41483 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
41484 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
41485 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
41486 static swig_cast_info _swigc__p_wxEventBlocker[] = {{&_swigt__p_wxEventBlocker, 0, 0, 0},{0, 0, 0, 0}};
41487 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
41488 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
41489 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
41490 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
41491 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
41492 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
41493 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
41494 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
41495 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
41496 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
41497 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
41498 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
41499 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
41500 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
41501 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
41502 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
41503 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
41504 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41505 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41506 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41507 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
41508 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
41509 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
41510 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
41511 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
41512 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
41513 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
41514 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
41515 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
41516 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
41517 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
41518 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
41519 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
41520 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
41521 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
41522 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
41523 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
41524 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
41525 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
41526 static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
41527 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
41528 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
41529 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
41530 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
41531 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
41532 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
41533 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
41534 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
41535 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
41536 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
41537 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
41538 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
41539 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
41540 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
41541 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
41542 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
41543 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
41544 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
41545 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
41546 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
41547 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
41548 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
41549 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
41550 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
41551 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
41552 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
41553 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
41554 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
41555 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
41556 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
41557 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
41558 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
41559 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
41560 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
41561 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
41562 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
41563 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxEventBlocker, _p_wxEventBlockerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsObject, _p_wxGraphicsObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsRenderer, _p_wxGraphicsRendererTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSVGFileDC, _p_wxSVGFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
41564 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
41565 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
41566 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
41567 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
41568 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
41569 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
41570 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}};
41571 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
41572 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
41573 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
41574 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
41575 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
41576 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
41577 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
41578 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
41579 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
41580 static swig_cast_info _swigc__p_wxRect2D[] = { {&_swigt__p_wxRect2D, 0, 0, 0},{0, 0, 0, 0}};
41581 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
41582 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
41583 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
41584 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
41585 static swig_cast_info _swigc__p_wxSVGFileDC[] = { {&_swigt__p_wxSVGFileDC, 0, 0, 0},{0, 0, 0, 0}};
41586 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
41587 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
41588 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
41589 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
41590 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
41591 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}};
41592 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}};
41593
41594 static swig_cast_info *swig_cast_initial[] = {
41595 _swigc__p_buffer,
41596 _swigc__p_char,
41597 _swigc__p_double,
41598 _swigc__p_form_ops_t,
41599 _swigc__p_int,
41600 _swigc__p_unsigned_char,
41601 _swigc__p_unsigned_int,
41602 _swigc__p_unsigned_long,
41603 _swigc__p_void,
41604 _swigc__p_wxANIHandler,
41605 _swigc__p_wxAcceleratorTable,
41606 _swigc__p_wxActivateEvent,
41607 _swigc__p_wxAlphaPixelData,
41608 _swigc__p_wxAlphaPixelData_Accessor,
41609 _swigc__p_wxAutoBufferedPaintDC,
41610 _swigc__p_wxBMPHandler,
41611 _swigc__p_wxBitmap,
41612 _swigc__p_wxBoxSizer,
41613 _swigc__p_wxBrush,
41614 _swigc__p_wxBrushList,
41615 _swigc__p_wxBufferedDC,
41616 _swigc__p_wxBufferedPaintDC,
41617 _swigc__p_wxCURHandler,
41618 _swigc__p_wxChildFocusEvent,
41619 _swigc__p_wxClientDC,
41620 _swigc__p_wxClipboardTextEvent,
41621 _swigc__p_wxCloseEvent,
41622 _swigc__p_wxColour,
41623 _swigc__p_wxColourDatabase,
41624 _swigc__p_wxCommandEvent,
41625 _swigc__p_wxContextMenuEvent,
41626 _swigc__p_wxControl,
41627 _swigc__p_wxControlWithItems,
41628 _swigc__p_wxCursor,
41629 _swigc__p_wxDC,
41630 _swigc__p_wxDCBrushChanger,
41631 _swigc__p_wxDCClipper,
41632 _swigc__p_wxDCOverlay,
41633 _swigc__p_wxDCPenChanger,
41634 _swigc__p_wxDCTextColourChanger,
41635 _swigc__p_wxDash,
41636 _swigc__p_wxDateEvent,
41637 _swigc__p_wxDisplayChangedEvent,
41638 _swigc__p_wxDropFilesEvent,
41639 _swigc__p_wxDuplexMode,
41640 _swigc__p_wxEffects,
41641 _swigc__p_wxEncodingConverter,
41642 _swigc__p_wxEraseEvent,
41643 _swigc__p_wxEvent,
41644 _swigc__p_wxEventBlocker,
41645 _swigc__p_wxEvtHandler,
41646 _swigc__p_wxFSFile,
41647 _swigc__p_wxFileSystem,
41648 _swigc__p_wxFlexGridSizer,
41649 _swigc__p_wxFocusEvent,
41650 _swigc__p_wxFont,
41651 _swigc__p_wxFontList,
41652 _swigc__p_wxFontMapper,
41653 _swigc__p_wxGBSizerItem,
41654 _swigc__p_wxGCDC,
41655 _swigc__p_wxGDIObjListBase,
41656 _swigc__p_wxGDIObject,
41657 _swigc__p_wxGIFHandler,
41658 _swigc__p_wxGraphicsBrush,
41659 _swigc__p_wxGraphicsContext,
41660 _swigc__p_wxGraphicsFont,
41661 _swigc__p_wxGraphicsMatrix,
41662 _swigc__p_wxGraphicsObject,
41663 _swigc__p_wxGraphicsPath,
41664 _swigc__p_wxGraphicsPen,
41665 _swigc__p_wxGraphicsRenderer,
41666 _swigc__p_wxGridBagSizer,
41667 _swigc__p_wxGridSizer,
41668 _swigc__p_wxHeaderButtonParams,
41669 _swigc__p_wxICOHandler,
41670 _swigc__p_wxIcon,
41671 _swigc__p_wxIconBundle,
41672 _swigc__p_wxIconLocation,
41673 _swigc__p_wxIconizeEvent,
41674 _swigc__p_wxIdleEvent,
41675 _swigc__p_wxImage,
41676 _swigc__p_wxImageHandler,
41677 _swigc__p_wxImageList,
41678 _swigc__p_wxIndividualLayoutConstraint,
41679 _swigc__p_wxInitDialogEvent,
41680 _swigc__p_wxJPEGHandler,
41681 _swigc__p_wxKeyEvent,
41682 _swigc__p_wxLanguageInfo,
41683 _swigc__p_wxLayoutConstraints,
41684 _swigc__p_wxLocale,
41685 _swigc__p_wxMask,
41686 _swigc__p_wxMaximizeEvent,
41687 _swigc__p_wxMemoryDC,
41688 _swigc__p_wxMenu,
41689 _swigc__p_wxMenuBar,
41690 _swigc__p_wxMenuEvent,
41691 _swigc__p_wxMenuItem,
41692 _swigc__p_wxMetaFile,
41693 _swigc__p_wxMetaFileDC,
41694 _swigc__p_wxMirrorDC,
41695 _swigc__p_wxMouseCaptureChangedEvent,
41696 _swigc__p_wxMouseCaptureLostEvent,
41697 _swigc__p_wxMouseEvent,
41698 _swigc__p_wxMoveEvent,
41699 _swigc__p_wxNativeEncodingInfo,
41700 _swigc__p_wxNativeFontInfo,
41701 _swigc__p_wxNativePixelData,
41702 _swigc__p_wxNativePixelData_Accessor,
41703 _swigc__p_wxNavigationKeyEvent,
41704 _swigc__p_wxNcPaintEvent,
41705 _swigc__p_wxNotifyEvent,
41706 _swigc__p_wxObject,
41707 _swigc__p_wxOverlay,
41708 _swigc__p_wxPCXHandler,
41709 _swigc__p_wxPNGHandler,
41710 _swigc__p_wxPNMHandler,
41711 _swigc__p_wxPaintDC,
41712 _swigc__p_wxPaintEvent,
41713 _swigc__p_wxPalette,
41714 _swigc__p_wxPaletteChangedEvent,
41715 _swigc__p_wxPaperSize,
41716 _swigc__p_wxPen,
41717 _swigc__p_wxPenList,
41718 _swigc__p_wxPixelDataBase,
41719 _swigc__p_wxPoint,
41720 _swigc__p_wxPoint2D,
41721 _swigc__p_wxPostScriptDC,
41722 _swigc__p_wxPrintData,
41723 _swigc__p_wxPrinterDC,
41724 _swigc__p_wxPseudoDC,
41725 _swigc__p_wxPyApp,
41726 _swigc__p_wxPyCommandEvent,
41727 _swigc__p_wxPyEvent,
41728 _swigc__p_wxPyFontEnumerator,
41729 _swigc__p_wxPyImageHandler,
41730 _swigc__p_wxPyLocale,
41731 _swigc__p_wxPySizer,
41732 _swigc__p_wxPyValidator,
41733 _swigc__p_wxQueryNewPaletteEvent,
41734 _swigc__p_wxRect,
41735 _swigc__p_wxRect2D,
41736 _swigc__p_wxRegion,
41737 _swigc__p_wxRegionIterator,
41738 _swigc__p_wxRendererNative,
41739 _swigc__p_wxRendererVersion,
41740 _swigc__p_wxSVGFileDC,
41741 _swigc__p_wxScreenDC,
41742 _swigc__p_wxScrollEvent,
41743 _swigc__p_wxScrollWinEvent,
41744 _swigc__p_wxSetCursorEvent,
41745 _swigc__p_wxShowEvent,
41746 _swigc__p_wxSize,
41747 _swigc__p_wxSizeEvent,
41748 _swigc__p_wxSizer,
41749 _swigc__p_wxSizerItem,
41750 _swigc__p_wxSplitterRenderParams,
41751 _swigc__p_wxStaticBoxSizer,
41752 _swigc__p_wxStdDialogButtonSizer,
41753 _swigc__p_wxStockGDI,
41754 _swigc__p_wxString,
41755 _swigc__p_wxSysColourChangedEvent,
41756 _swigc__p_wxTGAHandler,
41757 _swigc__p_wxTIFFHandler,
41758 _swigc__p_wxUpdateUIEvent,
41759 _swigc__p_wxValidator,
41760 _swigc__p_wxWindow,
41761 _swigc__p_wxWindowCreateEvent,
41762 _swigc__p_wxWindowDC,
41763 _swigc__p_wxWindowDestroyEvent,
41764 _swigc__p_wxXPMHandler,
41765 };
41766
41767
41768 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
41769
41770 static swig_const_info swig_const_table[] = {
41771 {0, 0, 0, 0.0, 0, 0}};
41772
41773 #ifdef __cplusplus
41774 }
41775 #endif
41776 /* -----------------------------------------------------------------------------
41777 * Type initialization:
41778 * This problem is tough by the requirement that no dynamic
41779 * memory is used. Also, since swig_type_info structures store pointers to
41780 * swig_cast_info structures and swig_cast_info structures store pointers back
41781 * to swig_type_info structures, we need some lookup code at initialization.
41782 * The idea is that swig generates all the structures that are needed.
41783 * The runtime then collects these partially filled structures.
41784 * The SWIG_InitializeModule function takes these initial arrays out of
41785 * swig_module, and does all the lookup, filling in the swig_module.types
41786 * array with the correct data and linking the correct swig_cast_info
41787 * structures together.
41788 *
41789 * The generated swig_type_info structures are assigned staticly to an initial
41790 * array. We just loop though that array, and handle each type individually.
41791 * First we lookup if this type has been already loaded, and if so, use the
41792 * loaded structure instead of the generated one. Then we have to fill in the
41793 * cast linked list. The cast data is initially stored in something like a
41794 * two-dimensional array. Each row corresponds to a type (there are the same
41795 * number of rows as there are in the swig_type_initial array). Each entry in
41796 * a column is one of the swig_cast_info structures for that type.
41797 * The cast_initial array is actually an array of arrays, because each row has
41798 * a variable number of columns. So to actually build the cast linked list,
41799 * we find the array of casts associated with the type, and loop through it
41800 * adding the casts to the list. The one last trick we need to do is making
41801 * sure the type pointer in the swig_cast_info struct is correct.
41802 *
41803 * First off, we lookup the cast->type name to see if it is already loaded.
41804 * There are three cases to handle:
41805 * 1) If the cast->type has already been loaded AND the type we are adding
41806 * casting info to has not been loaded (it is in this module), THEN we
41807 * replace the cast->type pointer with the type pointer that has already
41808 * been loaded.
41809 * 2) If BOTH types (the one we are adding casting info to, and the
41810 * cast->type) are loaded, THEN the cast info has already been loaded by
41811 * the previous module so we just ignore it.
41812 * 3) Finally, if cast->type has not already been loaded, then we add that
41813 * swig_cast_info to the linked list (because the cast->type) pointer will
41814 * be correct.
41815 * ----------------------------------------------------------------------------- */
41816
41817 #ifdef __cplusplus
41818 extern "C" {
41819 #if 0
41820 } /* c-mode */
41821 #endif
41822 #endif
41823
41824 #if 0
41825 #define SWIGRUNTIME_DEBUG
41826 #endif
41827
41828 SWIGRUNTIME void
41829 SWIG_InitializeModule(void *clientdata) {
41830 size_t i;
41831 swig_module_info *module_head;
41832 static int init_run = 0;
41833
41834 clientdata = clientdata;
41835
41836 if (init_run) return;
41837 init_run = 1;
41838
41839 /* Initialize the swig_module */
41840 swig_module.type_initial = swig_type_initial;
41841 swig_module.cast_initial = swig_cast_initial;
41842
41843 /* Try and load any already created modules */
41844 module_head = SWIG_GetModule(clientdata);
41845 if (module_head) {
41846 swig_module.next = module_head->next;
41847 module_head->next = &swig_module;
41848 } else {
41849 /* This is the first module loaded */
41850 swig_module.next = &swig_module;
41851 SWIG_SetModule(clientdata, &swig_module);
41852 }
41853
41854 /* Now work on filling in swig_module.types */
41855 #ifdef SWIGRUNTIME_DEBUG
41856 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
41857 #endif
41858 for (i = 0; i < swig_module.size; ++i) {
41859 swig_type_info *type = 0;
41860 swig_type_info *ret;
41861 swig_cast_info *cast;
41862
41863 #ifdef SWIGRUNTIME_DEBUG
41864 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41865 #endif
41866
41867 /* if there is another module already loaded */
41868 if (swig_module.next != &swig_module) {
41869 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
41870 }
41871 if (type) {
41872 /* Overwrite clientdata field */
41873 #ifdef SWIGRUNTIME_DEBUG
41874 printf("SWIG_InitializeModule: found type %s\n", type->name);
41875 #endif
41876 if (swig_module.type_initial[i]->clientdata) {
41877 type->clientdata = swig_module.type_initial[i]->clientdata;
41878 #ifdef SWIGRUNTIME_DEBUG
41879 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
41880 #endif
41881 }
41882 } else {
41883 type = swig_module.type_initial[i];
41884 }
41885
41886 /* Insert casting types */
41887 cast = swig_module.cast_initial[i];
41888 while (cast->type) {
41889 /* Don't need to add information already in the list */
41890 ret = 0;
41891 #ifdef SWIGRUNTIME_DEBUG
41892 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
41893 #endif
41894 if (swig_module.next != &swig_module) {
41895 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
41896 #ifdef SWIGRUNTIME_DEBUG
41897 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
41898 #endif
41899 }
41900 if (ret) {
41901 if (type == swig_module.type_initial[i]) {
41902 #ifdef SWIGRUNTIME_DEBUG
41903 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
41904 #endif
41905 cast->type = ret;
41906 ret = 0;
41907 } else {
41908 /* Check for casting already in the list */
41909 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
41910 #ifdef SWIGRUNTIME_DEBUG
41911 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
41912 #endif
41913 if (!ocast) ret = 0;
41914 }
41915 }
41916
41917 if (!ret) {
41918 #ifdef SWIGRUNTIME_DEBUG
41919 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
41920 #endif
41921 if (type->cast) {
41922 type->cast->prev = cast;
41923 cast->next = type->cast;
41924 }
41925 type->cast = cast;
41926 }
41927 cast++;
41928 }
41929 /* Set entry in modules->types array equal to the type */
41930 swig_module.types[i] = type;
41931 }
41932 swig_module.types[i] = 0;
41933
41934 #ifdef SWIGRUNTIME_DEBUG
41935 printf("**** SWIG_InitializeModule: Cast List ******\n");
41936 for (i = 0; i < swig_module.size; ++i) {
41937 int j = 0;
41938 swig_cast_info *cast = swig_module.cast_initial[i];
41939 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
41940 while (cast->type) {
41941 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
41942 cast++;
41943 ++j;
41944 }
41945 printf("---- Total casts: %d\n",j);
41946 }
41947 printf("**** SWIG_InitializeModule: Cast List ******\n");
41948 #endif
41949 }
41950
41951 /* This function will propagate the clientdata field of type to
41952 * any new swig_type_info structures that have been added into the list
41953 * of equivalent types. It is like calling
41954 * SWIG_TypeClientData(type, clientdata) a second time.
41955 */
41956 SWIGRUNTIME void
41957 SWIG_PropagateClientData(void) {
41958 size_t i;
41959 swig_cast_info *equiv;
41960 static int init_run = 0;
41961
41962 if (init_run) return;
41963 init_run = 1;
41964
41965 for (i = 0; i < swig_module.size; i++) {
41966 if (swig_module.types[i]->clientdata) {
41967 equiv = swig_module.types[i]->cast;
41968 while (equiv) {
41969 if (!equiv->converter) {
41970 if (equiv->type && !equiv->type->clientdata)
41971 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
41972 }
41973 equiv = equiv->next;
41974 }
41975 }
41976 }
41977 }
41978
41979 #ifdef __cplusplus
41980 #if 0
41981 {
41982 /* c-mode */
41983 #endif
41984 }
41985 #endif
41986
41987
41988
41989 #ifdef __cplusplus
41990 extern "C" {
41991 #endif
41992
41993 /* Python-specific SWIG API */
41994 #define SWIG_newvarlink() SWIG_Python_newvarlink()
41995 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
41996 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
41997
41998 /* -----------------------------------------------------------------------------
41999 * global variable support code.
42000 * ----------------------------------------------------------------------------- */
42001
42002 typedef struct swig_globalvar {
42003 char *name; /* Name of global variable */
42004 PyObject *(*get_attr)(void); /* Return the current value */
42005 int (*set_attr)(PyObject *); /* Set the value */
42006 struct swig_globalvar *next;
42007 } swig_globalvar;
42008
42009 typedef struct swig_varlinkobject {
42010 PyObject_HEAD
42011 swig_globalvar *vars;
42012 } swig_varlinkobject;
42013
42014 SWIGINTERN PyObject *
42015 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
42016 return PyString_FromString("<Swig global variables>");
42017 }
42018
42019 SWIGINTERN PyObject *
42020 swig_varlink_str(swig_varlinkobject *v) {
42021 PyObject *str = PyString_FromString("(");
42022 swig_globalvar *var;
42023 for (var = v->vars; var; var=var->next) {
42024 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
42025 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
42026 }
42027 PyString_ConcatAndDel(&str,PyString_FromString(")"));
42028 return str;
42029 }
42030
42031 SWIGINTERN int
42032 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
42033 PyObject *str = swig_varlink_str(v);
42034 fprintf(fp,"Swig global variables ");
42035 fprintf(fp,"%s\n", PyString_AsString(str));
42036 Py_DECREF(str);
42037 return 0;
42038 }
42039
42040 SWIGINTERN void
42041 swig_varlink_dealloc(swig_varlinkobject *v) {
42042 swig_globalvar *var = v->vars;
42043 while (var) {
42044 swig_globalvar *n = var->next;
42045 free(var->name);
42046 free(var);
42047 var = n;
42048 }
42049 }
42050
42051 SWIGINTERN PyObject *
42052 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
42053 PyObject *res = NULL;
42054 swig_globalvar *var = v->vars;
42055 while (var) {
42056 if (strcmp(var->name,n) == 0) {
42057 res = (*var->get_attr)();
42058 break;
42059 }
42060 var = var->next;
42061 }
42062 if (res == NULL && !PyErr_Occurred()) {
42063 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
42064 }
42065 return res;
42066 }
42067
42068 SWIGINTERN int
42069 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
42070 int res = 1;
42071 swig_globalvar *var = v->vars;
42072 while (var) {
42073 if (strcmp(var->name,n) == 0) {
42074 res = (*var->set_attr)(p);
42075 break;
42076 }
42077 var = var->next;
42078 }
42079 if (res == 1 && !PyErr_Occurred()) {
42080 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
42081 }
42082 return res;
42083 }
42084
42085 SWIGINTERN PyTypeObject*
42086 swig_varlink_type(void) {
42087 static char varlink__doc__[] = "Swig var link object";
42088 static PyTypeObject varlink_type;
42089 static int type_init = 0;
42090 if (!type_init) {
42091 const PyTypeObject tmp
42092 = {
42093 PyObject_HEAD_INIT(NULL)
42094 0, /* Number of items in variable part (ob_size) */
42095 (char *)"swigvarlink", /* Type name (tp_name) */
42096 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
42097 0, /* Itemsize (tp_itemsize) */
42098 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
42099 (printfunc) swig_varlink_print, /* Print (tp_print) */
42100 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
42101 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
42102 0, /* tp_compare */
42103 (reprfunc) swig_varlink_repr, /* tp_repr */
42104 0, /* tp_as_number */
42105 0, /* tp_as_sequence */
42106 0, /* tp_as_mapping */
42107 0, /* tp_hash */
42108 0, /* tp_call */
42109 (reprfunc)swig_varlink_str, /* tp_str */
42110 0, /* tp_getattro */
42111 0, /* tp_setattro */
42112 0, /* tp_as_buffer */
42113 0, /* tp_flags */
42114 varlink__doc__, /* tp_doc */
42115 0, /* tp_traverse */
42116 0, /* tp_clear */
42117 0, /* tp_richcompare */
42118 0, /* tp_weaklistoffset */
42119 #if PY_VERSION_HEX >= 0x02020000
42120 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
42121 #endif
42122 #if PY_VERSION_HEX >= 0x02030000
42123 0, /* tp_del */
42124 #endif
42125 #ifdef COUNT_ALLOCS
42126 0,0,0,0 /* tp_alloc -> tp_next */
42127 #endif
42128 };
42129 varlink_type = tmp;
42130 varlink_type.ob_type = &PyType_Type;
42131 type_init = 1;
42132 }
42133 return &varlink_type;
42134 }
42135
42136 /* Create a variable linking object for use later */
42137 SWIGINTERN PyObject *
42138 SWIG_Python_newvarlink(void) {
42139 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
42140 if (result) {
42141 result->vars = 0;
42142 }
42143 return ((PyObject*) result);
42144 }
42145
42146 SWIGINTERN void
42147 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
42148 swig_varlinkobject *v = (swig_varlinkobject *) p;
42149 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
42150 if (gv) {
42151 size_t size = strlen(name)+1;
42152 gv->name = (char *)malloc(size);
42153 if (gv->name) {
42154 strncpy(gv->name,name,size);
42155 gv->get_attr = get_attr;
42156 gv->set_attr = set_attr;
42157 gv->next = v->vars;
42158 }
42159 }
42160 v->vars = gv;
42161 }
42162
42163 SWIGINTERN PyObject *
42164 SWIG_globals() {
42165 static PyObject *_SWIG_globals = 0;
42166 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
42167 return _SWIG_globals;
42168 }
42169
42170 /* -----------------------------------------------------------------------------
42171 * constants/methods manipulation
42172 * ----------------------------------------------------------------------------- */
42173
42174 /* Install Constants */
42175 SWIGINTERN void
42176 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
42177 PyObject *obj = 0;
42178 size_t i;
42179 for (i = 0; constants[i].type; ++i) {
42180 switch(constants[i].type) {
42181 case SWIG_PY_POINTER:
42182 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
42183 break;
42184 case SWIG_PY_BINARY:
42185 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
42186 break;
42187 default:
42188 obj = 0;
42189 break;
42190 }
42191 if (obj) {
42192 PyDict_SetItemString(d, constants[i].name, obj);
42193 Py_DECREF(obj);
42194 }
42195 }
42196 }
42197
42198 /* -----------------------------------------------------------------------------*/
42199 /* Fix SwigMethods to carry the callback ptrs when needed */
42200 /* -----------------------------------------------------------------------------*/
42201
42202 SWIGINTERN void
42203 SWIG_Python_FixMethods(PyMethodDef *methods,
42204 swig_const_info *const_table,
42205 swig_type_info **types,
42206 swig_type_info **types_initial) {
42207 size_t i;
42208 for (i = 0; methods[i].ml_name; ++i) {
42209 const char *c = methods[i].ml_doc;
42210 if (c && (c = strstr(c, "swig_ptr: "))) {
42211 int j;
42212 swig_const_info *ci = 0;
42213 const char *name = c + 10;
42214 for (j = 0; const_table[j].type; ++j) {
42215 if (strncmp(const_table[j].name, name,
42216 strlen(const_table[j].name)) == 0) {
42217 ci = &(const_table[j]);
42218 break;
42219 }
42220 }
42221 if (ci) {
42222 size_t shift = (ci->ptype) - types;
42223 swig_type_info *ty = types_initial[shift];
42224 size_t ldoc = (c - methods[i].ml_doc);
42225 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
42226 char *ndoc = (char*)malloc(ldoc + lptr + 10);
42227 if (ndoc) {
42228 char *buff = ndoc;
42229 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
42230 if (ptr) {
42231 strncpy(buff, methods[i].ml_doc, ldoc);
42232 buff += ldoc;
42233 strncpy(buff, "swig_ptr: ", 10);
42234 buff += 10;
42235 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
42236 methods[i].ml_doc = ndoc;
42237 }
42238 }
42239 }
42240 }
42241 }
42242 }
42243
42244 #ifdef __cplusplus
42245 }
42246 #endif
42247
42248 /* -----------------------------------------------------------------------------*
42249 * Partial Init method
42250 * -----------------------------------------------------------------------------*/
42251
42252 #ifdef __cplusplus
42253 extern "C"
42254 #endif
42255 SWIGEXPORT void SWIG_init(void) {
42256 PyObject *m, *d;
42257
42258 /* Fix SwigMethods to carry the callback ptrs when needed */
42259 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
42260
42261 m = Py_InitModule((char *) SWIG_name, SwigMethods);
42262 d = PyModule_GetDict(m);
42263
42264 SWIG_InitializeModule(0);
42265 SWIG_InstallConstants(d,swig_const_table);
42266
42267
42268 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
42269 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
42270 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
42271 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
42272 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
42273 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
42274 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
42275 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
42276 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
42277 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
42278 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
42279 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
42280 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
42281 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
42282 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
42283 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
42284 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
42285 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
42286 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
42287 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
42288 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
42289 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
42290 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
42291 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
42292 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
42293 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
42294 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
42295 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
42296 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
42297 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
42298 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
42299 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
42300 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
42301 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
42302 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
42303 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
42304 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
42305 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
42306 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
42307 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
42308 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
42309 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
42310 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
42311 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
42312 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
42313 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
42314 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
42315 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
42316 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
42317 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
42318 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
42319 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
42320 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
42321 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
42322 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
42323 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
42324 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
42325 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
42326 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
42327 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
42328 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
42329 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
42330 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
42331 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
42332 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
42333 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
42334 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
42335 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
42336 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
42337 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
42338 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
42339 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
42340 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
42341 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
42342 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
42343 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
42344 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
42345 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
42346 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
42347 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
42348 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
42349 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
42350 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
42351 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
42352 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
42353 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
42354 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
42355 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
42356 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
42357 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
42358 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
42359 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
42360 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
42361 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
42362 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
42363 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
42364 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
42365 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
42366 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
42367 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
42368 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
42369 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
42370 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
42371 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
42372 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
42373 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
42374 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
42375 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
42376 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
42377 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
42378 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
42379 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
42380 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
42381 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
42382 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
42383 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
42384 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
42385 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
42386 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
42387 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
42388 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
42389 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
42390 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
42391 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
42392 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
42393 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
42394 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
42395 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
42396 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
42397 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
42398 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
42399 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
42400
42401 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
42402
42403 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
42404 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
42405 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
42406 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
42407 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
42408 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
42409 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
42410 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
42411 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
42412 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
42413 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
42414 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
42415 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
42416 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
42417 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
42418 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
42419 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
42420 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
42421 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
42422 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
42423 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
42424 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
42425 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
42426 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
42427 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
42428 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
42429 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
42430 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
42431 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
42432 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
42433 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
42434 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
42435 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
42436 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
42437 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
42438 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
42439 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
42440 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
42441 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
42442 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
42443 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
42444 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
42445 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
42446 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
42447 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
42448 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
42449 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
42450 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
42451 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
42452 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
42453 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
42454 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
42455 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
42456 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
42457 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
42458 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
42459 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
42460 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
42461 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
42462 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
42463 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
42464 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
42465 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
42466 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
42467 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
42468 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
42469 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
42470 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
42471 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
42472 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
42473 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
42474 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
42475 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
42476 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
42477 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
42478 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
42479 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
42480 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
42481 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
42482 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
42483 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
42484 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
42485 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
42486 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
42487 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
42488 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
42489 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
42490 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
42491 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
42492 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
42493 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
42494 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
42495 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
42496 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
42497 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
42498 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
42499 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
42500 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
42501 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
42502 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
42503 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
42504 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
42505 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
42506 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
42507 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
42508 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
42509 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
42510 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
42511 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
42512 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
42513 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
42514 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
42515 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
42516 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
42517 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
42518 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
42519 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
42520 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
42521 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
42522 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
42523 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
42524 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
42525 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
42526 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
42527 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
42528 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
42529 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
42530 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
42531 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
42532 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
42533 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
42534 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
42535 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
42536 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
42537 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
42538 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
42539 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
42540 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
42541 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
42542 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
42543 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
42544 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
42545 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
42546 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
42547 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
42548 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
42549 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
42550 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
42551 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
42552 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
42553 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
42554 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
42555 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
42556 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
42557 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
42558 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
42559 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
42560 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
42561 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
42562 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
42563 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
42564 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
42565 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
42566 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
42567 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
42568 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
42569 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
42570 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
42571 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
42572 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
42573 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
42574 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
42575 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
42576 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
42577 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
42578 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
42579 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
42580 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
42581 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
42582 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
42583 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
42584 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
42585 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
42586 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
42587 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
42588 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
42589 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
42590 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
42591 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
42592 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
42593 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
42594 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
42595 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
42596 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
42597 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
42598 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
42599 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
42600 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
42601 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
42602 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
42603 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
42604 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
42605 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
42606 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
42607 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
42608 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
42609 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
42610 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
42611 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
42612 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
42613 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
42614 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
42615 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
42616 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
42617 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
42618 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
42619 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
42620 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
42621 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
42622 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
42623 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
42624 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
42625 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
42626 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
42627 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
42628 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
42629 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
42630 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
42631 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
42632 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
42633 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
42634 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
42635 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
42636 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
42637 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
42638 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
42639 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
42640 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
42641 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
42642 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
42643 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
42644 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
42645 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
42646 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
42647 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
42648 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
42649 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
42650 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
42651 SWIG_Python_SetConstant(d, "BUFFER_USES_SHARED_BUFFER",SWIG_From_int(static_cast< int >(wxBUFFER_USES_SHARED_BUFFER)));
42652 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
42653 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
42654 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
42655 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
42656 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
42657 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
42658 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
42659 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
42660 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
42661 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
42662 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
42663 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
42664 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
42665 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
42666 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
42667 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
42668 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
42669 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
42670 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
42671 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
42672 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
42673 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
42674 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
42675 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
42676 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
42677 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
42678 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
42679 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
42680 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
42681 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
42682 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
42683 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
42684 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
42685 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
42686 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
42687 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
42688 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
42689 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
42690 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
42691 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
42692 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
42693 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
42694 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
42695 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
42696 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
42697 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
42698 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
42699 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
42700 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
42701 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
42702 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
42703 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
42704 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
42705 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
42706 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
42707 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
42708 SWIG_addvarlink(SWIG_globals(),(char*)"NullIconBundle",NullIconBundle_get, NullIconBundle_set);
42709 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
42710 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
42711 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
42712 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
42713 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
42714 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
42715 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
42716 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
42717 SWIG_Python_SetConstant(d, "CONTROL_FLAT",SWIG_From_int(static_cast< int >(wxCONTROL_FLAT)));
42718 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
42719 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
42720 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
42721 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
42722 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
42723 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
42724 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
42725 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
42726 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
42727 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
42728 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
42729 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
42730
42731 // Work around a chicken/egg problem in drawlist.cpp
42732 wxPyDrawList_SetAPIPtr();
42733
42734 }
42735